ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /tmp/ |
O:13:"Curl\Response":4:{s:6:"status";i:200;s:4:"body";s:2542032:"var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var tw,p9q,tMe,fS,Jw_,q0L,N_,Fji,yi,$_6,TL,rT,Zu,d_6,Eh6,S00,v9,c9,U_q,fuh,bSj,NTS,iq,Qi,P9,GL,Ii,Xe,ywj,Ri,ai,gT,TTT,rwi,ZSL,tC,oL,qQ,Cqe,AwM,UR,fc,ya,VMq,Wj9,D_0,siT,LjM,vhL,cw9,nhM,rq,w9i,ZA,iSw,Iui,Cc,X9M,R6q,Va,BTS,sR,vW,PW,GK,IL,XS,z60,e6_,BW,e9,zK,h6q,auM,MMT,gh9,hC,uei,aL,MQ,gq,luu,jiM,lJ,Kj_,HSi,qW,x_i,E$,kKq,pW6,$2,t9e,JCe,onT,Te,qRT,$Qq,bcj,Aj,fAS,Enh,yCe,Tq9,ZcT,V1,W4,s$,v4,Lh,ACM,V9w,c4,nh,wH,P4,Ge,L49,IT,XY,RT,eD,vn6,hj,aT,gH,cCj,lP,O$,QLw,kk,t4,oK,PJ6,J4,GKS,IAe,qK,p8, Ft,$k,XWi,dx,St,BqT,Uf,f8,NK,eSi,A4,hSu,aA0,M9L,zSh,C8,Th,yy,gn9,uSS,jLi,K4w,HcS,Vy,W2,DY,xQ0,keq,L8,o2i,$Wu,p4w,F8M,q$h,Jjh,tD6,dW6,E2M,S$e,v2,fni,n8,UWe,NHi,P2,Qy,yji,THu,Gh,IK,RK,Xt,zh,B2,u5,et,aK,MK,rji,jt,ZhS,Of,K8,pX,tH,JH,H2,kB,xk,qs,F$,$B,CP0,FS,dB,SU,h4,gx,Ub,mWi,fX,dq,b4,Ns,y6,YB,T9,rB,ZL,VD6,CX,W8T,mv,DWL,Wn,V6,DL,sb,LX,vn,cn,sTL,v2i,wB,cjq,n20,i4,Q6,I8,ihi,X$,QTe,R8,Geh,Bn,X49,z9,eU,hH,R9S,a8,BHe,Ms,z9e,e9S,h9h,gB,an_,u4,l4,Ob,KX,g2i,kT,jTj,MDi,pu,JY,o_,K80,qp,$T,Hh0,khj,p2i,de,EZ,Sc, UZ,fu,bC,Np,J4T,okh,qfj,$Kh,dKL,yY,EkS,Sfi,T3,re,Zb,Cu,UKq,y4h,Yfw,r4h,TxS,Z8u,A4q,WH,Db,sZ,Lu,vH,nu,we,DKi,QY,G3,I_,Xv,BH,z3,sKw,ec,hY,Mp,vk0,c4M,ge,lC,jc,Ku,HH,kY,pE,X2T,RI6,BxM,zI_,t2,J2,eIS,hIq,aYq,oO,qL,F6,$Y,d8,bh,yx,r8,A2,Mtu,gk6,vQ,uth,IO,X6,O86,pnq,xKu,JHT,zJ,eO,jO,Fvq,dsi,$si,KE,xY,EBi,HQ,on,BQ,Usj,Sbu,EP,dE,RO,Su,UP,fe,fL6,bZ,NBe,YW,yHT,TS,rE,Zr,A1,Ybh,TBq,rHw,mu,ZXe,C40,F$q,sP,AHj,ms9,VUj,Dsi,WvT,Dr,Le,vg,s8T,Lv6,vBh,cHi,cg,nBi,ne,b8L,fYe,wE,iZ,Pg,GS,Q8q,In,XI,Bg,P46,G90,zS,z3S,ju,Xni, BBS,uZ,gE,xW,p9,e3T,oq,h3i,qn,Fq,aLj,gBT,Sr,lLe,f9,bg,j8h,OXh,YJ,rv,k3T,tcw,JYL,C9,oTi,Zz,dpi,Nn,HXh,SZ0,$pq,qZS,Fa6,Up9,ETi,AM,pHT,Wt,ULh,fV6,bEu,N89,y2L,so,Ykj,vt,T8e,Chu,A2T,ct,n9,Qu,Xq,VOT,Rq,Bt,zq,WcT,DLL,aq,sO6,Mn,gv,c2M,wQT,QOq,iEi,Phi,lg,K9,pB,Jk,om,q6,FZ,$z,XQq,RVj,dg,B8_,EL,Sw,tk,UL,fB,bO,$n,N6,zV_,Yz,aV6,TC,rg,ZS,MO_,gY9,u6j,lV0,CB,jOw,Ak,mk,Kce,kSi,pgi,VM,qP_,oWh,Fu6,$aT,daS,WM,EW9,tuu,DS,SP6,Uae,LB,beT,NET,y1e,YP6,TEh,cM,r1T,Ze0,CZe,A1u,Wu9,maM,nB,wg,iO,QM,PM,GC,XZ,Rm,sni,zC,BM,Luu,ew, vWu,hk,c1i,nWh,wg6,ie_,am,gg,GS0,M6,IrL,uO,lO,Xge,jw,OL,KB,HM,xz,ks,hEj,REw,oa,eE_,qM,zEL,JT,pI,BEL,tT,$s,Mui,E8,dN,NM,yQ,Tc,lrh,Ys,CI,jnT,AT,gWS,HeM,xaw,kq6,WZ,DW,s8,pth,LI,vZ,cZ,nI,tri,wN,Ia,Xn,JMh,oJM,Ra,qoh,EJ6,HEi,dnj,Soj,Une,fzi,F5w,Nvu,BZ,zc,ev,yMj,aa,hT,Yoi,Tvq,rMu,lp,Z9j,jv,O8,CgS,KI,mne,HZ,AMq,Vrj,W5u,Dn6,xs,ko,pO,tS,JS,oV,qS,sqM,Fr,$o,d1,L5j,cMu,nJw,S7,fO,UQ,NS,yo,Yo,i9q,Qq6,TR,r1,ZR,Gq6,IzL,BvS,XtM,zO0,Mr_,CO,azi,eOT,AS,mB,gJu,Vo,uqS,W0,jq9,lzL,O9i,K5M,v0,c0,H9i,xni,kCq,nO,w1,pMq,it,tw6, Jki,qL0,Ezw,Qo,SLi,U6i,fSu,bBq,Ng0,IV,ykT,YLi,Tgw,aV,hS,e7,rki,ZBi,COi,MS,g1,ut,m60,H0,xo,kc,pZ,tK,JK,WkS,D6q,smq,op,$c,EH,bQ,NJ,TT,vzq,nzL,cki,wMj,iBj,V4,Qm6,POS,vC,GCh,ISh,XMw,RY0,iQ,nZ,Q4,PC,GT,BgT,zYw,eY_,Ip,Xj,hY9,Rp,aS6,Mwe,gz6,BC,uZL,zT,e4,lSw,jme,OB6,Kkw,HB0,x60,hK,ap,MJ,uQ,tvw,lQ,j4,JTq,pZ0,g5,osw,OH,KZ,HC,k8,xc,q8i,F10,$ML,p6,Es9,tf,UM0,fW6,bIM,NN0,yTh,Y8h,TNi,rTi,qR,F2,$8,Cp6,ZI9,AT9,mMw,EU,VvS,SL,W1w,DMT,UU,f6,bD,saw,NR,y_,L1L,Y8,Tf,rZ,ZH,C6,Af,my,V_,vsi,cTh,nsL,wZi,WU,iIS,Ppu,Qaq,sU, L6,IWu,Gci,BNL,hoL,eou,vU,aWT,Mvj,gsj,lWS,unM,jau,cU,OIi,K1M,wZ,HIj,xMM,kRj,p0L,iD,t7j,Q_,JST,PU,Gf,qQi,IQ,FBM,X2,RQ,$Si,dSS,BU,eL,SQ6,hf,Eo_,USe,fRh,bOi,ySe,aQ,YQi,uD,lD,rSe,ZOu,mS_,V7j,jL,OU,K6,HU,x8,k_,p2,t0,J0,ot,qd,FL,$_,LBM,sV9,voi,noT,cSh,iOu,DS_,w0L,WBi,dl,Ec,Ptj,GRi,IRu,bv,Nd,yD,SF,Rz0,Y_,QVe,zzw,ez0,B1h,Tt,rl,ZU,C2,hzi,X0S,aRj,A0,M7S,goe,uri,lRi,jVu,HOT,xSM,kTL,pCL,W8,JKi,ocM,$Jw,dJM,L2,SH_,v8,sc,f06,UJ_,yKi,rKT,n2,iv,ZZT,CQi,AKT,mJL,WSi,Gt,P8,DJ0,V4_,LSu,cK6,PQT,Rt,GTj,XL,zt,I0M,eF,at, Md,XCj,Rk9,B5j,kE,zkM,ekS,Ei,hkh,M4j,SI,gcS,ujq,HZe,l0e,NN,yv,YE,rQ,Zq,JfL,Cv,AB,m6,qUq,Dq,Fye,$Rw,si,E8L,vp,cp,nv,wQ,SUi,iu,Pp,G7,Ib,Xz,UR9,Bp,z7,eI,hB,ab,MN,fHL,b69,NZw,yfS,YUi,TZi,gQ,rfq,xE,Z6i,CDT,Afj,kl,tq,Jq,o3,$l,dD,EB,VL6,fF,bw,N9,Wyi,DR9,y2,sQ6,Lyw,Ty,GfM,IHw,XUj,rD,R8i,BZe,h86,CF,MLL,aHM,mx,u29,lHe,jQL,Wi,D8,O6q,sB,LF,vi,ci,nF,wD,iw,Q2,Pi,Gy,R3,Bi,zy,e5,KyT,H6S,xRj,a3,gD,ktM,OB,KF,Hi,xl,kX,te,Je,o_e,oY,q8,Fd,FE9,qcM,p80,EG,dh,ScS,SN,ZT,YX,CY,Ae,fUL,y0e,VI,r0h,Ycu,Tlw,Cvq,Ddj,A0i,VFj,WE_, DT,Ww,stq,LY,vw,cw,LET,GQ,v_u,IY,Xd,Bw,c0L,eN,he,n_i,aY,M8,i2e,l6,OG,KY,Hw,xX,k9,pG,tm,Jm,ou,Pv6,qI,du,$9,IU0,ztq,Rte,Blu,eth,htw,MFq,g_e,aU6,lUT,UA,fG,yB,jt_,O2S,NI,Y9,H2T,xde,JBS,tIS,CG,Am,mJ,VB,Wz,sA,qiq,F6e,$Ni,QB,Pz,dNe,EE9,Sie,Bz,z2,eq,UNe,fq0,NQw,Yii,gu,TQ6,jq,uk,Hz,x9,pz,rBT,d6,ET,SY,UT,br,Nv,Yp,VIi,W6S,r6,DNu,sbT,Cz,L66,vEe,AO,mD,cB_,nE0,ivu,sT,Pui,G7M,W7,Iqi,Xpe,BQ0,Rxi,nz,Qb0,exq,hx0,Ig,P7,aqh,MIq,Xm,Rg,gE0,uzq,eY,lqS,jbh,Ovi,K6e,ur,Hvu,xNS,kyM,pi9,t5_,Jq9,ol0,qBw,jY,Fxu,Kz,d9S,Elw,SBh, U9j,f8i,H7,ow,NDj,TDu,qD,rq9,CwM,bFi,Aqu,m9q,V5e,yqu,YB_,xp,kZ,Jy,ZFS,ty,pw,Wxe,D90,s3S,Lx_,vlT,cqq,Pwq,nlu,Ew,Sh,fw,Xiw,zKL,BDi,Uw,Cw,eK6,Vr,hKT,M5_,c3,a8h,kQ0,gle,x9i,Qr,pwi,oXe,P3,ic,tNi,Jeu,qGM,Iw,$8q,d8w,EXe,SGu,U89,fTS,bYT,FGq,yew,YGh,Thw,ZYi,rej,AeS,zp,m8S,eh,hy,aw,VN9,WGw,uc,lc,sYM,D8h,jh,LGu,ceL,wwj,nXi,iY9,GQL,QY6,FB,E3,dO,ITS,$5,SW,yP,Y5,XwM,Raj,rO,zaw,An,C0,VP,WS,Di,eaM,s3,vS,ha0,n0,i7,QP,aTh,MN_,gXM,ud9,PS,IN,lTi,XB,RN,BS,OYi,zv,eW,KGS,aN,u7,gO,M1,l7,jW,k20,FJ0,dIq,qAS,o9i,$I6,HS,pV, ffM,E9L,SAu,UI9,x8i,AmS,UN,Ckq,WJj,ZG9,K0,fV,qZ,EN,mIL,Jz,tqS,pze,Jmq,kK,rm6,TD,n90,rt,iGi,Qui,Pki,CV,G2u,IfM,Xze,Bui,zL9,Vt,hL9,WB,afS,Mq6,uaM,lfh,sN,juj,KJq,LV,HGS,vB,cB,og,JO0,dv_,GD,STT,bzS,X_,yO9,YTM,T6u,rOe,j3,Zz_,uR,RK0,MZ,lR,gt,Rl,Jt,tt,qq,$3,AO6,dP,SA,UY,mvi,VYq,Nq,Dvw,sg0,LD9,vpi,cO0,nph,w7T,izj,Qg_,Prw,rP,GEh,Zv,At,I4j,X7j,RNL,mi,B6e,zNL,sY,L1,vR,eNS,cR,hNS,wP,MY6,a4i,QF,PR,Gs,I$,gp0,XK,R$,umS,l4i,BR,zs,Hzw,jge,KDu,Ozw,eA,ht,a$,xvM,kp_,p36,Mq,Jy_,Ffi,qwS,gP,u3,l3,jA,OY,HR,x3,kM,pa,t5,J5, oZ,$Du,dDL,EZi,qO,FD,$M,d3,SV,fa,f1j,UDh,NO,bwi,yj,YM,TU,r3,Zy,mM,Vj,WA,Dy,sy,La,vA,cA,na,w3,iS,Yw_,PA,IZ,TX6,XD,ZwL,Cce,Ay9,VhM,DD9,aZ,sw_,g3,MO,cy9,nZe,w3_,lS,jV,Qw_,Ka,HA,xM,ky,GpL,p4,bF,NT,I1w,yw,PcT,Yy,Tg,RjM,X3j,rk,ZP,C4,A7,Vw,zju,ej0,DP,s_,vF,cF,hjS,L4,gZT,usj,l1h,jwi,OwT,Kf6,HwL,wk,n4,Mhi,pSj,iF,Jnj,o50,Xu,q39,PF,Gg,FYi,RF,d1h,S3u,BF,zg,U1_,h7,b0q,aF,Z00,TO0,NOh,Y3i,ynT,gk,uF,lF,jR,O_,K4,HF,kU,Ani,WYe,Jc,Ec6,oI,D1S,LYh,Fy,Sx,$U,Eh,dK,n5i,cnh,v5_,wSM,Uh,i0L,IiL,fQ,NP,R20,yV,YU,TM,rK,BOT,Zd, z26,e2q,Ac,Dd,sh,LQ,vd,cd,nQ,wK,io,QV,Pd,GM,II,Xy,h2j,ai6,RI,Bd,zM,ex,hc,aI,MW0,g5e,MP,q0,jNi,O0w,FG,$i,bN,N0,H0w,TX,Cf,x1M,pBq,kD_,t3i,Jzi,oK_,qN9,FP9,$Z6,EKi,dZu,SNq,bV_,yzL,feL,mX,VO,Ttw,YN9,WV,D6,sr,ZVw,Lf,vV,cV,Azj,mZL,nf,CRw,wL,DZi,iN,QO,PV,GX,I0,XG,R0,BV,zX,eK,h$,a0,M0,gL,uN,lN,jK,Or,Kf,HV,xi,k0,po,to,Jo,oA,qG,FU,$0,dA,Ea,S$,Ua,fo,bd,NG,y7,Y0,Tn,rA,Z$,Co,Ao,m3,V7,WX,D$,sa,Lo,vX,cX,no,wA,id,Q7,PX,Gn,IA,XU,RA,BX,zn,e$,ho,aA,MG,gA,ud,ld,j$,Ko,HX,LP9,x0,K,kf,Oa,pk,t9,J9,czq,qU,wBq,oc,iVh,$f,Ql0, Eq,FT,SC,Uq,fk,NU,GDL,Ie0,XB0,Rh6,VE,W1,ZJ,DJ,zhw,eh_,hhL,aee,PRL,M3q,bY,gKS,u_S,Lk,iY,v1,Yf,lej,yE,sq,c1,QE,OVq,Tk,rU,wU,nk,KP0,P1,Gk,Ic,XT,HVq,Rc,B1,zk,eC,h9,xZi,ks_,tAi,Jti,gU,uY,lY,jC,dqS,SY0,fvw,b1L,Kk,yte,YYT,JA,TPM,of,q7,FC,$t,d$,En,rtM,C3T,At6,Z1i,mqh,VAj,bL,N7,Yt,r$,ZM,CT,AA,Wi9,mC,VC,yC,sn,LT,vh,ch,Dqi,DM,LiM,nT,v3w,ct9,w$,n3h,iL,QC,wR6,i1w,Ph,Q$h,P3u,GW,GsM,Ive,XRj,RUw,If,XC,BPj,zUe,Rf,Bh,zW,eUM,e0,hA,af,M7,hU_,g$,uL,av9,lL,MA6,j0,g3M,uKw,lv0,j$q,O1w,Kii,On,H1i,xqw,kUw,KT,pAS,Hh,tV6,xt, J5L,kg,oMe,qyi,pC,F5,FM0,$g,d2,ED,Sm,$O9,UD,fC,bG,dOi,EM6,ys,Yg,UOw,Tw,fyM,baj,SyT,N3i,y5S,Yy_,Zl,T3e,CC,AD,mO,Vs,r5q,W$,Dl,LC,ZaT,v$,c$,CSi,w2,P$,iG,Re,B$,A5q,zw,mOS,hD,ae,Mz,VVe,uG,WM9,jm,OD,KC,Ie,H$,xg,kS,DO_,pr,tN,JN,sZq,oU,qi,FN,$S,d0,S6,UI,fr,bV,LM0,vMj,c59,nM0,e6,RU,hN,aU,wA_,iaT,QZe,Mi,g0,uV,PSh,GUu,z0,Iy0,XA6,lV,RRT,j6,OI,Ho,xS,kr,pW,tZ,oW,qw,$r,dm,EE,S_,F1,eR9,hRi,fW,b2,Nw,ay9,Yr,gMq,T1,rm,uDq,Zj,CW,AZ,V8,lyh,mR,W6,Dj,sE,jZi,c6,KM0,Haq,xOw,nW,wm,kgL,pFw,tRL,i2,oye,y8,J7_,q_h,Q8,Feq,P6,$TL, G1,dTq,Eyh,S_9,UT0,fP6,IW,Nkj,b4S,X1,z1,y7w,e_,Y_T,hZ,Tk0,r7e,aW,Z4q,CF9,A7q,mTi,Mw,VRi,gm,DTh,l2,j_,LeM,sF6,vy6,c7T,ny0,KW,H6,xr,wF9,i4M,QF0,PFe,Gg6,IPh,XFS,RgM,Bk0,zgh,pH,td,egu,hgj,Jd,o2,aPw,qk,FV,dp,MRS,El,SH,Ul,gyu,fH,uuL,bT,lPi,Nk,jF6,O4i,yH,Kei,H4S,xTT,Ya,Tz,rp,ZX,CH,kM6,pd0,Ad,mZ,VH,txi,Wv,DX,sl,LH,vv,JcL,oUi,cv,nH,qhj,wp,iT,QH,Pv,pRS,F_M,$PT,Gz,dPq,EUj,ShM,I2,XV,R2,Bv,zz,eH,hd,a2,Mk,gp,uT,UP9,fdL,kP,pJ,bQ_,tb,YP,oh,rR,Cow,DPu,Ac9,sI6,vUu,cc9,L__,nU0,wdu,iQh,nJ,GMS,Xdh,BKi,z7M,e7L,Qk,PT,adu, Mxj,jIi,GP,OQi,gUT,Ih,XF,Rh,BT,HQ0,pV6,xPh,oiq,U09,Srj,qr0,f6e,ep,$0L,FXh,y$i,r$q,TL0,m06,Zf0,ah,Mg,LXT,l9,viT,GXM,PNM,Q0j,ifi,niS,Rqh,XVu,wV9,a60,hqe,MKi,xP,l6i,giS,uGL,c$S,j0q,OfS,jp,KJ,zq0,BL9,equ,KX9,Ox,I69,x0i,pXT,Jou,qaM,dGS,E0e,UGi,f$T,NAh,boe,Zoe,YaM,yoS,Cdi,V$i,W39,DGj,sAu,UX,Idh,co9,L3q,No,io6,Ye,Pd9,Gn0,QAM,TO,I$0,ro,Zt,S0,Cx,Poe,Ai,mH,Vf,XXe,Ryw,Wl,BAM,zyu,eyi,Dt,sX,Lx,vl,cl,nx,wo,iA,Qf,hyw,a$_,Pl,M$9,GO,B6,IH,XA,uU_,g0e,RH,l$M,jAj,Bl,zO,Ooi,eg,K3M,Hoj,R7M,wX6,xGi,hi,Un,MU,ke,kk0,p1_, Mo,s0T,gR,tCe,fx,bA,ti,px,zP,oH,F3L,Sa6,Ji,VKT,AoS,J9L,bfq,d0L,go,n0q,i9,qq9,ofj,K_h,$Gu,Fq6,mG9,EX,WXe,D0T,YrT,o0w,t$L,J$M,kX9,ldL,uy_,h7h,Hfq,Ei9,TAu,CNq,A$_,FA,$e,qo,roT,knT,dUT,$U6,uA,lA,jg,OX,Kx,kI,Ju,o5,qm,Ff,dY,EJ,Ef0,Hl,xe,$I,UUL,Sq6,SE,fJM,bkw,fj,NUM,y9S,by,Nm,yp,YI,To,rY,Zs,Cj,ZkL,mT,Au,CYw,TUM,r9j,A9j,Vp,WP,mU0,VCh,Ds,Wqq,JO,sci,DUw,vfS,nfq,w1j,c96,ik9,Gk_,wY,iy,IJM,X1_,Qp,PP,Rbq,BUT,zbT,ebT,I5,R5,BP,aJ0,MCL,lJh,OkM,KqT,jcw,hu,Mm,a5,Hki,xUi,zo,kWu,phS,t0j,JA0,eE,$7_,d7q,Eti,FC_,qnw,otS, Sni,U7j,gf9,fMu,uTw,bT0,N$0,rAL,yAu,Yn6,T$L,AAj,ZTM,CL_,m7i,V0M,uy,sfh,WCu,LC0,D7_,vti,cAM,nth,whM,iTq,Qfu,PLT,GWL,IMh,Xhj,RuS,B$q,ly,euh,hu0,aMM,zuq,M0u,gti,jf0,OJ,xI,pD,OTL,t6,J6,ov,kw0,tm6,p$M,ogh,fli,fD,Fk,JDM,x7S,HT9,KCu,U1,$w,S8,TY,rC,yDS,ZN,CD,Yw,ZC0,YD9,T2T,CGL,A6,mN,mzL,WE,DN,s1,LD,vE,cE,nD,VmS,WO6,wC,Qb,GY,seu,LOM,PE,Iv,nge,w$L,Xk,iCT,zY,Qe_,e8,av,PGq,h6,MB,GwM,uf,X$h,RiM,j8,O1,p5,zii,HE,t_,o4,eiS,FH,k6,J_,hiT,$6,alq,dj,Mmi,KD,xw,B2i,qr,Et,ggu,u5S,Sd,llT,Ut,f5,bi,Nr,jeq,Y6,yd,Tb,rj,OC6, KO9,ZC,C5,A_,mU,Vd,HCh,Wk,DC,xzT,k0i,L5,vk,ck,t6i,po_,n5,JNq,oSe,qI0,wj,Fr6,$iq,diM,ESi,SI9,ii,Qd,Pk,Gb,Ui0,fEj,XH,br6,R4,Bk,N0j,yNM,zb,YIu,T0M,ANi,miu,rNq,Zrj,CV9,h_,a4,Mr,gj,V6T,Wre,ui,Diq,Lru,sUj,K5,Ot,cNL,nST,woT,irM,Hk,QU9,km,pR,PV0,IE6,XoL,Jh,$m,e40,SDj,dC,aE0,M6M,gS0,uNL,lEL,qB,os,jUM,S1,Um,Hri,xi6,k1w,fR,orT,p66,t_e,FR_,$wi,b_,dwS,qEq,Erw,NY,yq,Ym,SE0,UwL,Tj,ri,fje,Z9,bW9,CR,di,WL,NmS,Uzq,qDj,D9,sm,vL,cL,nR,wi,i_,LR,Gj,YEi,BL,TmT,rZe,ZWj,C2u,AZ9,zj,V_h,e1,DwM,hh,LRh,vrj,sWL,WRq,cZj,nri,w6S, l_,iWj,QW6,G1j,j1,N2j,KR,X66,Bmi,bf,zQj,eQi,xm,aj6,E1,hQq,FOS,dzw,EgL,Ijw,kH,pl,ts,M_0,gri,Js,u1T,qu,Fo,$H,d7,Ep,lje,Si,Up,jWj,OWS,fl,b$,Nu,y0,YH,TG,HWS,KRi,r7,xwh,pv_,ZZ,tHe,kzw,Xo,GG,Rr,zG,ei,gi,JdL,Sl6,A9,Ir,g7,Npi,Yl0,DZ,Op,Ws,Kl,kL,Ps,pq,AdM,tF,JF,mke,VHq,WZ6,Dk9,oj,s20,LZL,q2,vah,Q2w,iHw,cdq,wve,nai,Fp,PTq,$L,Gze,IXu,Rmi,BpS,zmT,gah,fq,bb,j29,N2,yX,OH0,xkS,kPT,pTe,tpL,YL,Jbq,qxe,FzT,vx,yb0,Sx_,Ugh,TRS,cx,rb_,C9q,ZJ_,Abj,wn,Px,mge,nq,GI,Ij,Vpi,Dgi,vPi,zI,gn,Hx,py,eru,hrh,qC,o7,dS,E5,aKM,uFh, gPq,lKT,U5,SJ,jh6,Kzi,HJ9,kO_,NC,xg9,pl_,tge,Yu,Tl,oeS,Bx,bE,Cy,Qh0,WzL,XTh,We,$u,OJh,wS,xL,XO,Be,zl,Tow,YX6,ku,hx,a7,Zxi,MC,gS,CAL,tx,uE,Mpi,jJ,Eew,FO,AiT,nPM,cb9,sh9,O5,He,wl6,nej,QHe,PA6,tG,oB,qE,JG,$R,d4,GOL,ES,Xl0,SP,BoS,ba,RDi,NE,yl,atS,YR,uAS,ltL,ZB,jHw,KHj,w4,Ql,PO,IB,HxT,X4,RB,hG,aB,ME,g4,xoj,ua,la,Juq,jP,OS,oIq,qJh,KK,FTS,$mu,dme,EI0,HO,xR,SJ9,fs0,tr,Jr,FE,$O,bjT,d9,E6,Sl,U6,fP,NYh,yuw,bK,YJL,TYw,Nl,Zje,ru_,Cy9,ym,mmM,Auj,YO,VEh,TA,r9,WTe,s5M,LTL,Z2,CP,Ar,vIL,mw,nIM,WI,wPu,iji,Vm,D2,s6, LP,IsT,RWT,Q5T,XPw,BY_,Pyi,Go6,zWu,eW0,nP,hWL,ME0,lsS,Ojw,j5_,R6,XE,el,Hjw,hr,a6,Ml,kYi,g9,pEi,xmh,uK,owi,lK,jl,q1M,O6,FNq,EPi,NRu,dBe,$Bw,S16,EwL,UBL,HI,fNh,bDi,kF,Y1M,pN,tJ,JJ,r60,A6i,FJ,$F,dc,V8j,mBL,ox,WNM,DB_,svh,vw6,Ed,XEL,b1,Ne,aN9,iK,gwM,uke,lNq,jv6,ODq,YF,KNS,T_,rc,ZI,HDe,mg,xBe,kbS,Ve,WJ,pke,tdi,J_h,o60,qtL,DI,AJ,FUi,sd,dr6,E6w,St6,LN,Ur0,fC0,b5S,NjS,y_T,YtT,Tji,r_i,Z5i,CiL,vJ,mri,cJ,VdS,wc,Dr9,PJ,A_T,nN,G_,Ix,XJ,Rx,BJ,z_,s4S,eQ,LUT,ax,i5e,Gbw,ICe,XkL,R$i,u1,BjM,Piu,wkS,z$j,Me,e$q,aCi,hJ, gc,c_9,n6e,l1,Mdi,g6M,Q4T,v6j,uH6,Od,lCM,KN,HJ,j49,xF,H5q,O5S,KUi,kN,xrS,pb,tP,JP,ok,kj6,pLi,t1M,qX,om6,qmi,Fc,F29,$N,dV,$Yi,dY6,Emq,Sm6,UYe,f9w,Tih,Nij,gIh,Sn,ZRq,C_u,yhw,Ymi,bR0,bm,DYT,fb,Uu,rh6,L26,W20,V1M,mY0,Ahi,yg,vmw,w9,YN,TZ,rV,chw,ZF,nme,Cb,wLM,zA,iR9,AP,PI,I6,as9,DF,vb,Gju,I9h,cb,wV,Lb,Wb,Qg,Vg,Qsj,P_w,Pb,XLj,RZe,Qe,WU9,Qm,GZ,BiT,nb,zZi,eZS,hZT,a9T,Ik,Xc,Rk,gmh,uRT,l9_,js9,ORM,K2M,h$j,zZ,en,hP,Bb,xYL,t8e,J6T,ak,kGe,psT,tij,Jsi,MX,oH9,gV,qpi,$ue,um,duq,EHe,jn,Spi,lm,kq,bl9,fZL,Yp0,ysq,T7L, rs0,N7j,p$,Uue,Zlw,Zo,C$0,ViL,AsM,mui,Av,$r6,WFj,Due,srh,LF_,vHL,ml,VJ,WD,csT,Do,sF,nHq,L$,wsw,ilw,vD,Qre,P$i,GGq,IZL,cD,Cfu,n$,B7L,wM,Ree,il,zeq,ZD6,qe,eei,QJ,G6,gHS,Mi_,a1,uo9,aZq,Ol6,Mj,KFT,Hli,px_,tai,oLi,kIS,qK0,Foq,$2w,d2e,ELe,U2_,f_q,bqM,SKi,ul,PD,yF9,xu_,YKi,JF9,ll,rFS,Nnw,gM,Zqj,CbS,Vaq,Loj,Woe,vLj,sjj,cF9,AF9,jT,nLw,m2_,xq,PbM,I_0,GIi,XxS,Rcw,Bnh,Qj9,zc6,eci,OF,hcL,a_i,Ma0,gL9,uph,Oqq,jjq,l_9,pL,KoM,x20,klL,peM,tJj,oy,qb,i1,JxL,ouh,q5u,dCi,$Cw,Fmj,EuS,UCS,faw,S5h,HD,Ou,NS6,yxe,Y59,VJ_,Zyj, CE6,AxM,Wmj,s7T,ssi,tX,rxh,TS0,DCe,BI,mC_,Eu,GA,D29,weM,nuu,iy_,Q7h,PES,GlS,Hqe,xN,Kb,vu6,Iah,cx6,Xei,R_6,FF_,BSu,iqS,wx9,Lm6,Hb,EO,S2,UO,e_0,fL,h_q,aaq,MJ_,gui,uOh,j7i,Oy9,kBe,Kmu,xCq,pO_,Nb,qS0,JGq,oRS,dEh,ERj,SSe,UE0,fBM,bn,rPe,$ES,tPM,yT,Zbe,HyM,Cm_,YA,mXL,Vn_,Wb6,APh,TF,Lb0,sk0,nNh,cPL,vNS,wbj,ibM,rJ,QkL,PmM,IF0,Xbe,GZq,RPw,aFL,zPM,eP_,hPi,Mne,gNT,uci,jke,lFi,Obu,Kb0,Hbj,k60,pDi,Jv9,tT0,oqu,xXi,qF_,$j9,djT,SFu,fow,Eqe,AX,b$i,NMM,Flq,yvj,Uj0,mQ,YFM,TMi,rve,Z$w,Clu,Avi,mjS,WlS,s1T,Llh,vqS,cve, nq6,Wm,wD_,D5,Q10,PlL,IoL,cm,R0_,BM9,z0_,e0i,aoM,h09,ug6,loi,nL,QT,MTq,gq9,j1w,GF,Klw,O$_,H$e,xji,kF0,JXj,pme,FQL,Iy,t2e,$b9,X9,Ubj,Bm,zF,f5q,Ry,bLj,e2,YOq,yX6,EAi,SOh,TJL,rXi,ZLT,dbj,Cn_,hX,AXq,NJw,XD_,Pm,V2q,Mb,WQu,Dbi,syT,LQh,vAi,cXi,nAq,wmT,iLq,gJ,QyM,Pnu,I5h,XmS,Rsq,GFi,BJS,zsu,esi,hs0,a5T,M2j,ln,zRh,gA_,u9M,j2,l5M,jyL,KL,HL0,xbi,Hm,pui,te9,kr9,KQh,xA,OO,OLS,tl,pt,Jli,Jl,kd,$Fh,Sgh,fh9,btj,ylw,qg0,UFe,Ygi,FW9,TFT,rlh,dF,oz,CBj,Zt9,FM,Ve0,WWT,Edw,dFi,mFT,DFq,NFM,od9,Eg,Se,Ug,szj,ft,itq,cli,Qzu, nd6,vdL,PBj,LWh,RHw,Gru,bB,BFS,eHe,ahh,MeM,gdS,jz9,Tr,Ot_,uM9,$d,xFq,kHT,mW,Tn_,NF,prM,tf_,oQh,JRu,q2i,HtM,Zh,Fh_,$cq,dcS,S2L,EQ6,by9,Ucw,rF,fD0,N_e,bg_,Y2j,yRu,hHj,rRw,T_i,Ct,yS,Zg6,Wu,AR6,mcT,Vfw,Wh9,Dcu,VS,BVM,lhT,sGw,z_S,qF,LhS,vQi,cRL,nQ0,wrj,Dh,sg,QG9,PUw,GHS,igS,IDe,Lt,zXe,RXT,B_i,eX9,vu,hX0,aDM,Mf_,cu,gQ0,lDq,jG9,Ogh,nt,uXL,wF,iB,Khh,Hg9,Gr,QS,Pu,xcL,Iz,kdM,pa6,tjM,o1i,JpM,hl,FLM,$he,qvi,dh9,az,E1i,MF,Sv9,gF,Uhi,fxe,YvS,ypL,ZAe,bAi,Tr0,uB,Nre,rpS,Csi,Api,mh0,VjS,je,WLT,Hu,Og,Dhq,xd,kQ,LLh, tR,JR,v1j,pg,cpS,oG,waj,n19,FX,$Q,d_,Ps6,iA0,QSq,E2,Gd9,Bre,Xaj,Ixh,RML,Sf,eMT,Mj9,g1u,U2,u0S,lxi,hM_,axi,KL9,HAS,xhL,k4h,p50,tXM,Nc,F06,yc,o7e,qWM,SWe,bU,YQ,TH,JL0,$fw,Uf9,r_,ZD,fwi,bme,NIi,Cg,yLu,YWi,TIe,rL0,Zme,CWw,ALi,W0u,mfj,Dfj,soL,v7M,cL_,w_,G4j,w5j,imT,Iwq,X5e,PWu,n7j,RTe,zTi,BIi,eTe,lw9,Qc,K0T,ki0,xfj,Hmj,g7q,u8L,hTj,awj,jow,Pr,GH,tBT,WO,zD9,J3w,XX,Br,qM6,oCh,Omh,$AS,dAe,ECq,zH,SMj,lU,fmq,b_i,NG0,YMq,y3T,TGe,jf,O2,r39,A3i,mAj,xQ,CHe,VBi,Wn0,Z_i,k1,Jp,DAu,sDw,tp,Ln_,vCj,c3e,nC0,i_L,wGu,Gi6, Im_,QDj,Rfi,BG6,PHi,F0,$1,zfw,hfi,dr,efw,amT,gCw,MB0,uw6,Ev,lmM,jDh,O_T,Sj,Uv,H_M,KnS,xAw,k$L,tb9,pfi,Jaw,oj0,qe_,FIu,$V6,Ej9,bs,fA,Nh,Seu,UVi,dVj,Yew,Ty0,raM,Aah,CXe,ZUT,mVj,Vbe,y$,Y1,WI6,DV_,sMh,LIi,caS,nju,rr,wfh,Td,CA,vj0,iUS,QMM,PX0,G$i,Ikh,mL,Xfj,Rlw,eli,V$,hlw,zlT,Wa,Dx,akT,MbM,uli,jMe,gju,lkh,va,OUe,HUw,xVw,pyS,to9,ca,nA,JW_,KIu,Fse,qV9,obq,wr,is,dHi,$HS,Q$,Pa,Ebh,Gd,SVu,UH6,fOh,IS,bnh,X0,NbL,RS,Ba,Tb_,rWj,Zn_,AWe,mHu,Voj,Cx6,DHS,Wsj,sX0,cWi,hp,wye,nbq,Lse,vbw,in0,QXj,aS,Mh,Pxj,G5e,IO0,XyM, RpM,Bbe,ep9,hpj,KsL,gbM,uhe,aOu,xH6,KA,x1,Jg0,tL,JL,oDL,k8_,Ov,F8,qf,k7,F7_,$7,d50,SCM,EDi,dI,pm,jj,$5T,oo,pcT,qCT,f30,gr,EW,bp6,Ndj,Ha,tGS,SX,UW,yg0,fm,bW,Nf,YC0,Tdi,ZpS,Cz9,rgM,yK,m5i,Agi,Y7,VGe,T4,rI,W7M,D5M,sPh,L7w,vDu,nDi,ipT,wci,cge,Zw,QPj,G8e,Pzj,Cm,AL,I3T,R19,BdS,m0,Xc6,z1S,e1i,h1q,a30,MGj,gDq,uxi,W5,Dw,jPi,l3h,Op_,sW,Lm,K7_,Hpw,kuq,x5T,pKT,c5,tzS,JV0,wI,oxe,qsM,Fte,$4_,d4e,Exw,U4q,fcS,b7_,Ss9,Nwi,yVS,Ys6,Tw_,rV0,Z7M,CMq,AVL,Io,m49,Vzj,WtT,Lt0,wKi,cVT,s9i,B5,vxq,D4w,nx_,z4,Q9L,i7i,eX,PMi, Gu9,Icw,Z5,XKh,RJi,aci,Mzw,gxS,hL,ubw,Mf,kA,lcT,gI,j9i,ao,O7u,Ktq,J8i,Km,H5,kC,p_,qze,oVh,H7i,t3,FVM,$yj,EVL,J3,Sz6,UyL,f7q,x7,Nfw,b36,oD,y80,pqS,jX,Yz_,Tfi,r8S,Z3w,x4i,kxe,OW,CeM,WVT,Dyw,LVe,VyM,nVT,vI,cI,K$,QR6,Pe6,i39,GxS,sRM,wqq,A8M,I7h,c8j,Xqh,vVh,im,M1L,Al9,qA,C$,my6,Bfh,a7S,$C,Myq,gVe,eGq,EM,u7S,l7T,RGM,jR9,hG0,O36,SB,dG,KVi,xyi,H3i,Fw,pNS,bH,tZ6,UM,NA,f_,yZ,KWM,JU6,Fd9,q7L,dtu,Evi,$t6,Ti,YC,Ut6,fg9,biM,mtq,rUq,Ziq,Y7_,Dti,yUL,C_,vvw,sdw,cUL,nvh,wNh,mn,VZ,P80,Qdj,iiq,Dm,AUh,cG,Igu,vG,WG,RF6, eFM,hFi,Wdw,BWi,iH,agh,C8L,GV_,sM,MZu,A3,gv0,uii,lgL,Gi,ID,XNw,jdq,Oiq,Xw,RD,Kdh,L_,Ldq,Hi0,xt6,kaw,zFw,pj9,n_,ts6,wG,fK,JQu,q4T,BG,zi,Fpe,$$h,d$j,PG,QZ,EGi,ovS,S4i,U$M,fpw,bMT,NaL,eB,h3,Taq,CI9,m$j,Y4i,nGj,wj6,iMq,QJ0,PIi,GaM,Ipi,RAj,Xjq,aD,MA,gG,Ba_,zAh,eA9,RW,hA_,uH,apq,lH,jB,r2,OM,ac,Msi,yf,v0u,gGT,u9,uPT,LW,v6,aH,lph,jJ9,OMi,Kpw,HMS,K_,kNi,p_T,HG,kj,pU,tSh,qje,FA0,ta,$3q,JEL,o4j,d3i,E4L,SjM,U3S,fGj,Ja,NzT,s$h,TW,u2,yEh,Yj9,OE,bdi,Wh,TzT,rEj,ZdT,oM,UE,AE_,m30,qV,Fl,VSe,dy,WAL,xC,D3u,sE9,OaS,Ee, Sb,LA9,Ue,fU,v4q,bX,cET,NV,yh,n4S,w_6,Weu,Yj,idS,PjM,QE0,T$,GNe,ry,Zk,IG0,X_j,Rnw,Bzw,znS,enw,hnM,MS6,Aa,aGu,g4i,uWT,lG0,jES,x3L,Odu,KA_,Hdq,pY9,JIL,o$M,q9u,tku,mI,F9M,$xe,dx_,E$6,S9L,Wf,Uxi,Dk,se,LU,fQe,bsS,yIT,Y9j,TsS,rIu,C0q,ZsT,AI6,vf,cf,W99,mxi,Vk0,nU,Dxj,sCe,wy,iX,L9q,Qh,v$e,Pf,cIi,G$,IM,n$6,Xl,RM,wY9,is9,Bf,z$,QC_,eb,P0S,Gmi,gy,IQu,XYe,Rw_,ewS,zw6,uX,hw0,aQj,Mk6,QIj,BsS,uQe,lQe,Osw,kLi,SM;tw=function(k){return function(){return kLi[k].apply(this,arguments)}}; g.Jw=function(k,p){return kLi[k]=p}; p9q=function(k){var p=0;return function(){return p<k.length?{done:!1,value:k[p++]}:{done:!0}}}; tMe=function(k){k=["object"==typeof globalThis&&globalThis,k,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var p=0;p<k.length;++p){var t=k[p];if(t&&t.Math==Math)return t}throw Error("Cannot find global object");}; fS=function(k,p){if(p)a:{var t=g.dT;k=k.split(".");for(var J=0;J<k.length-1;J++){var q=k[J];if(!(q in t))break a;t=t[q]}k=k[k.length-1];J=t[k];p=p(J);p!=J&&p!=null&&SM(t,k,{configurable:!0,writable:!0,value:p})}}; Jw_=function(k){k={next:k};k[Symbol.iterator]=function(){return this}; return k}; g.r=function(k,p){k.prototype=ohL(p.prototype);k.prototype.constructor=k;if(bq)bq(k,p);else for(var t in p)if(t!="prototype")if(Object.defineProperties){var J=Object.getOwnPropertyDescriptor(p,t);J&&Object.defineProperty(k,t,J)}else k[t]=p[t];k.AD=p.prototype}; g.Z=function(k){var p=typeof Symbol!="undefined"&&Symbol.iterator&&k[Symbol.iterator];if(p)return p.call(k);if(typeof k.length=="number")return{next:p9q(k)};throw Error(String(k)+" is not an iterable or ArrayLike");}; q0L=function(k){for(var p,t=[];!(p=k.next()).done;)t.push(p.value);return t}; g.m=function(k){return k instanceof Array?k:q0L(g.Z(k))}; N_=function(k){return Fji(k,k)}; Fji=function(k,p){k.raw=p;Object.freeze&&(Object.freeze(k),Object.freeze(p));return k}; yi=function(k,p){return Object.prototype.hasOwnProperty.call(k,p)}; $_6=function(k){if(!(k instanceof Object))throw new TypeError("Iterator result "+k+" is not an object");}; TL=function(){this.Z=!1;this.C=null;this.Y=void 0;this.T=1;this.X=this.S=0;this.L=this.N=null}; rT=function(k){if(k.Z)throw new TypeError("Generator is already running");k.Z=!0}; Zu=function(k,p){k.N={sb:p,p6:!0};k.T=k.S||k.X}; g.n=function(k,p,t){k.T=t;return{value:p}}; d_6=function(k,p,t){p=g.Z(p);var J=p.next();$_6(J);if(J.done)k.Y=J.value,k.T=t;else return k.C=p,g.n(k,J.value,t)}; g.CS=function(k){k.T=0}; g.Aw=function(k,p,t){k.S=p;t!=void 0&&(k.X=t)}; g.mj=function(k,p){k.S=0;k.X=p||0}; g.Vi=function(k,p,t){k.T=p;k.S=t||0}; g.W9=function(k,p){k.S=p||0;p=k.N.sb;k.N=null;return p}; g.Du=function(k,p,t,J){J?k.L[J]=k.N:k.L=[k.N];k.S=p||0;k.X=t||0}; g.s0=function(k,p,t){t=k.L.splice(t||0)[0];(t=k.N=k.N||t)?t.p6?k.T=k.S||k.X:t.oY!=void 0&&k.X<t.oY?(k.T=t.oY,k.N=null):k.T=k.X:k.T=p}; Eh6=function(k){this.T=new TL;this.Y=k}; S00=function(k,p){rT(k.T);var t=k.T.C;if(t)return v9(k,"return"in t?t["return"]:function(J){return{value:J,done:!0}},p,k.T.return); k.T.return(p);return c9(k)}; v9=function(k,p,t,J){try{var q=p.call(k.T.C,t);$_6(q);if(!q.done)return k.T.Z=!1,q;var F=q.value}catch(d){return k.T.C=null,Zu(k.T,d),c9(k)}k.T.C=null;J.call(k.T,F);return c9(k)}; c9=function(k){for(;k.T.T;)try{var p=k.Y(k.T);if(p)return k.T.Z=!1,{value:p.value,done:!1}}catch(t){k.T.Y=void 0,Zu(k.T,t)}k.T.Z=!1;if(k.T.N){p=k.T.N;k.T.N=null;if(p.p6)throw p.sb;return{value:p.return,done:!0}}return{value:void 0,done:!0}}; U_q=function(k){this.next=function(p){rT(k.T);k.T.C?p=v9(k,k.T.C.next,p,k.T.B):(k.T.B(p),p=c9(k));return p}; this.throw=function(p){rT(k.T);k.T.C?p=v9(k,k.T.C["throw"],p,k.T.B):(Zu(k.T,p),p=c9(k));return p}; this.return=function(p){return S00(k,p)}; this[Symbol.iterator]=function(){return this}}; fuh=function(k,p){p=new U_q(new Eh6(p));bq&&k.prototype&&bq(p,k.prototype);return p}; bSj=function(k){function p(J){return k.next(J)} function t(J){return k.throw(J)} return new Promise(function(J,q){function F(d){d.done?J(d.value):Promise.resolve(d.value).then(p,t).then(F,q)} F(k.next())})}; g.Q=function(k){return bSj(new U_q(new Eh6(k)))}; g.nS=function(){for(var k=Number(this),p=[],t=k;t<arguments.length;t++)p[t-k]=arguments[t];return p}; NTS=function(k,p,t){k instanceof String&&(k=String(k));for(var J=k.length,q=0;q<J;q++){var F=k[q];if(p.call(t,F,q,k))return{lK:q,HA:F}}return{lK:-1,HA:void 0}}; iq=function(k,p,t){if(k==null)throw new TypeError("The 'this' value for String.prototype."+t+" must not be null or undefined");if(p instanceof RegExp)throw new TypeError("First argument to String.prototype."+t+" must not be a regular expression");return k+""}; Qi=function(k,p){k instanceof String&&(k+="");var t=0,J=!1,q={next:function(){if(!J&&t<k.length){var F=t++;return{value:p(F,k[F]),done:!1}}J=!0;return{done:!0,value:void 0}}}; q[Symbol.iterator]=function(){return q}; return q}; P9=function(k){return k?k:Array.prototype.fill}; GL=function(k){return k?k:Array.prototype.copyWithin}; Ii=function(k){k=Math.trunc(k)||0;k<0&&(k+=this.length);if(!(k<0||k>=this.length))return this[k]}; Xe=function(k){return k?k:Ii}; ywj=function(k,p,t){k instanceof String&&(k=String(k));for(var J=k.length-1;J>=0;J--){var q=k[J];if(p.call(t,q,J,k))return{lK:J,HA:q}}return{lK:-1,HA:void 0}}; Ri=function(k){return k?k:function(p,t){return ywj(this,p,t).lK}}; g.eM=function(k,p,t){k=k.split(".");t=t||g.B9;for(var J;k.length&&(J=k.shift());)k.length||p===void 0?t[J]&&t[J]!==Object.prototype[J]?t=t[J]:t=t[J]={}:t[J]=p}; ai=function(k,p){var t=g.hw("CLOSURE_FLAGS");k=t&&t[k];return k!=null?k:p}; g.hw=function(k,p){k=k.split(".");p=p||g.B9;for(var t=0;t<k.length;t++)if(p=p[k[t]],p==null)return null;return p}; gT=function(k){var p=typeof k;return p!="object"?p:k?Array.isArray(k)?"array":p:"null"}; g.uq=function(k){var p=gT(k);return p=="array"||p=="object"&&typeof k.length=="number"}; g.lq=function(k){var p=typeof k;return p=="object"&&k!=null||p=="function"}; g.O0=function(k){return Object.prototype.hasOwnProperty.call(k,jM)&&k[jM]||(k[jM]=++Y0M)}; TTT=function(k,p,t){return k.call.apply(k.bind,arguments)}; rwi=function(k,p,t){if(!k)throw Error();if(arguments.length>2){var J=Array.prototype.slice.call(arguments,2);return function(){var q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(q,J);return k.apply(p,q)}}return function(){return k.apply(p,arguments)}}; g.H9=function(k,p,t){g.H9=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?TTT:rwi;return g.H9.apply(null,arguments)}; g.xh=function(k,p){var t=Array.prototype.slice.call(arguments,1);return function(){var J=t.slice();J.push.apply(J,arguments);return k.apply(this,J)}}; g.kn=function(){return Date.now()}; ZSL=function(k){return k}; g.pc=function(k,p){function t(){} t.prototype=p.prototype;k.AD=p.prototype;k.prototype=new t;k.prototype.constructor=k;k.Bj=function(J,q,F){for(var d=Array(arguments.length-2),S=2;S<arguments.length;S++)d[S-2]=arguments[S];return p.prototype[q].apply(J,d)}}; tC=function(k,p){if(p!==null&&p!==void 0){if(typeof p!=="object"&&typeof p!=="function")throw new TypeError("Object expected.");if(t===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var t=p[Symbol.dispose]}if(typeof t!=="function")throw new TypeError("Object not disposable.");k.stack.push({value:p,dispose:t,async:!1})}return p}; oL=function(k){function p(F){k.error=k.hasError?new SuppressedError(F,k.error,"An error was suppressed during disposal."):F;k.hasError=!0} function t(){for(;J=k.stack.pop();)try{if(!J.async&&q===1)return q=0,k.stack.push(J),Promise.resolve().then(t);if(J.dispose){var F=J.dispose.call(J.value);if(J.async)return q|=2,Promise.resolve(F).then(t,function(d){p(d);return t()})}else q|=1}catch(d){p(d)}if(q===1)return k.hasError?Promise.reject(k.error):Promise.resolve(); if(k.hasError)throw k.error;} var J,q=0;t()}; qQ=function(k,p,t){t=t===void 0?Error():t;var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.code=k;p+=":";t instanceof Error?(this.message=p+t.message,this.stack=t.stack||""):(this.message=p+String(t),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Cqe=function(k){var p=p===void 0?47:p;var t=[];FS(k,$n,6).forEach(function(J){dq(J,2)<=p&&t.push(dq(J,1))}); return t}; AwM=function(k){var p=p===void 0?47:p;var t=[];FS(k,$n,6).forEach(function(J){dq(J,2)>p&&t.push(dq(J,1))}); return t}; g.ER=function(k){k&&typeof k.dispose=="function"&&k.dispose()}; g.S9=function(k){for(var p=0,t=arguments.length;p<t;++p){var J=arguments[p];g.uq(J)?g.S9.apply(null,J):g.ER(J)}}; g.R=function(){this.jY=this.jY;this.Jn=this.Jn}; g.z=function(k,p){k.addOnDisposeCallback(g.xh(g.ER,p))}; UR=function(k){k.then(function(){},function(){})}; fc=function(){g.R.apply(this,arguments);this.C=1;this[m_w]=this.dispose}; ya=function(k){return{fieldType:2,fieldName:k}}; g.TK=function(k){return{fieldType:3,fieldName:k}}; VMq=function(k){this.T=k;k.YK("/client_streamz/bg/frs",g.TK("ke"))}; Wj9=function(k){this.T=k;k.YK("/client_streamz/bg/wrl",g.TK("mn"),ya("ac"),ya("sc"),g.TK("rk"),g.TK("mk"))}; D_0=function(k){this.Y=k;k.X3("/client_streamz/bg/ec",g.TK("en"),g.TK("mk"))}; siT=function(k){this.T=k;k.YK("/client_streamz/bg/el",g.TK("en"),g.TK("rk"),g.TK("mk"))}; LjM=function(k){this.Y=k;k.X3("/client_streamz/bg/cec",ya("ec"),g.TK("rk"),g.TK("mk"))}; vhL=function(k){this.Y=k;k.X3("/client_streamz/bg/po/csc",ya("cs"),g.TK("rk"),g.TK("mk"))}; cw9=function(k){this.Y=k;k.X3("/client_streamz/bg/po/ctav",g.TK("av"),g.TK("rk"),g.TK("mk"))}; nhM=function(k){this.Y=k;k.X3("/client_streamz/bg/po/cwsc",g.TK("su"),g.TK("rk"),g.TK("mk"))}; rq=function(k,p){if(Error.captureStackTrace)Error.captureStackTrace(this,rq);else{var t=Error().stack;t&&(this.stack=t)}k&&(this.message=String(k));p!==void 0&&(this.cause=p)}; w9i=function(){}; ZA=function(){throw Error("Invalid UTF8");}; iSw=function(k,p){p=String.fromCharCode.apply(null,p);return k==null?p:k+p}; Iui=function(k){var p=!1;p=p===void 0?!1:p;if(Qih){if(p&&(Pqe?!k.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(k)))throw Error("Found an unpaired surrogate");k=(GLS||(GLS=new TextEncoder)).encode(k)}else{for(var t=0,J=new Uint8Array(3*k.length),q=0;q<k.length;q++){var F=k.charCodeAt(q);if(F<128)J[t++]=F;else{if(F<2048)J[t++]=F>>6|192;else{if(F>=55296&&F<=57343){if(F<=56319&&q<k.length){var d=k.charCodeAt(++q);if(d>=56320&&d<=57343){F=(F-55296)*1024+ d-56320+65536;J[t++]=F>>18|240;J[t++]=F>>12&63|128;J[t++]=F>>6&63|128;J[t++]=F&63|128;continue}else q--}if(p)throw Error("Found an unpaired surrogate");F=65533}J[t++]=F>>12|224;J[t++]=F>>6&63|128}J[t++]=F&63|128}}k=t===J.length?J:J.subarray(0,t)}return k}; Cc=function(k){g.B9.setTimeout(function(){throw k;},0)}; X9M=function(k){return Array.prototype.map.call(k,function(p){p=p.toString(16);return p.length>1?p:"0"+p}).join("")}; R6q=function(k){for(var p=[],t=0;t<k.length;t+=2)p.push(parseInt(k.substring(t,t+2),16));return p}; g.m4=function(k){for(var p=[],t=0,J=0;J<k.length;J++){var q=k.charCodeAt(J);q<128?p[t++]=q:(q<2048?p[t++]=q>>6|192:((q&64512)==55296&&J+1<k.length&&(k.charCodeAt(J+1)&64512)==56320?(q=65536+((q&1023)<<10)+(k.charCodeAt(++J)&1023),p[t++]=q>>18|240,p[t++]=q>>12&63|128):p[t++]=q>>12|224,p[t++]=q>>6&63|128),p[t++]=q&63|128)}return p}; Va=function(k,p){return k.lastIndexOf(p,0)==0}; BTS=function(k,p){var t=k.length-p.length;return t>=0&&k.indexOf(p,t)==t}; g.WW=function(k){return/^[\s\xa0]*$/.test(k)}; g.DA=function(k,p){return k.indexOf(p)!=-1}; sR=function(k,p){return g.DA(k.toLowerCase(),p.toLowerCase())}; g.cW=function(k,p){var t=0;k=Lc(String(k)).split(".");p=Lc(String(p)).split(".");for(var J=Math.max(k.length,p.length),q=0;t==0&&q<J;q++){var F=k[q]||"",d=p[q]||"";do{F=/(\d*)(\D*)(.*)/.exec(F)||["","","",""];d=/(\d*)(\D*)(.*)/.exec(d)||["","","",""];if(F[0].length==0&&d[0].length==0)break;t=vW(F[1].length==0?0:parseInt(F[1],10),d[1].length==0?0:parseInt(d[1],10))||vW(F[2].length==0,d[2].length==0)||vW(F[2],d[2]);F=F[3];d=d[3]}while(t==0)}return t}; vW=function(k,p){return k<p?-1:k>p?1:0}; g.nc=function(){var k=g.B9.navigator;return k&&(k=k.userAgent)?k:""}; PW=function(k){return wq||iJ?Qa?Qa.brands.some(function(p){return(p=p.brand)&&g.DA(p,k)}):!1:!1}; GK=function(k){return g.DA(g.nc(),k)}; IL=function(){return wq||iJ?!!Qa&&Qa.brands.length>0:!1}; XS=function(){return IL()?!1:GK("Opera")}; z60=function(){return IL()?!1:GK("Trident")||GK("MSIE")}; e6_=function(){return IL()?PW("Microsoft Edge"):GK("Edg/")}; BW=function(){return GK("Firefox")||GK("FxiOS")}; e9=function(){return GK("Safari")&&!(zK()||(IL()?0:GK("Coast"))||XS()||(IL()?0:GK("Edge"))||e6_()||(IL()?PW("Opera"):GK("OPR"))||BW()||GK("Silk")||GK("Android"))}; zK=function(){return IL()?PW("Chromium"):(GK("Chrome")||GK("CriOS"))&&!(IL()?0:GK("Edge"))||GK("Silk")}; h6q=function(){return GK("Android")&&!(zK()||BW()||XS()||GK("Silk"))}; auM=function(k){var p={};k.forEach(function(t){p[t[0]]=t[1]}); return function(t){return p[t.find(function(J){return J in p})]||""}}; MMT=function(k){var p=g.nc();if(k==="Internet Explorer"){if(z60())if((k=/rv: *([\d\.]*)/.exec(p))&&k[1])p=k[1];else{k="";var t=/MSIE +([\d\.]+)/.exec(p);if(t&&t[1])if(p=/Trident\/(\d.\d)/.exec(p),t[1]=="7.0")if(p&&p[1])switch(p[1]){case "4.0":k="8.0";break;case "5.0":k="9.0";break;case "6.0":k="10.0";break;case "7.0":k="11.0"}else k="7.0";else k=t[1];p=k}else p="";return p}var J=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");t=[];for(var q;q=J.exec(p);)t.push([q[1],q[2],q[3]||void 0]); p=auM(t);switch(k){case "Opera":if(XS())return p(["Version","Opera"]);if(IL()?PW("Opera"):GK("OPR"))return p(["OPR"]);break;case "Microsoft Edge":if(IL()?0:GK("Edge"))return p(["Edge"]);if(e6_())return p(["Edg"]);break;case "Chromium":if(zK())return p(["Chrome","CriOS","HeadlessChrome"])}return k==="Firefox"&&BW()||k==="Safari"&&e9()||k==="Android Browser"&&h6q()||k==="Silk"&&GK("Silk")?(p=t[2])&&p[1]||"":""}; gh9=function(k){if(IL()&&k!=="Silk"){var p=Qa.brands.find(function(t){return t.brand===k}); if(!p||!p.version)return NaN;p=p.version.split(".")}else{p=MMT(k);if(p==="")return NaN;p=p.split(".")}return p.length===0?NaN:Number(p[0])}; hC=function(){return wq||iJ?!!Qa&&!!Qa.platform:!1}; uei=function(){return hC()?Qa.platform==="Android":GK("Android")}; aL=function(){return GK("iPhone")&&!GK("iPod")&&!GK("iPad")}; MQ=function(){return aL()||GK("iPad")||GK("iPod")}; gq=function(){return hC()?Qa.platform==="macOS":GK("Macintosh")}; luu=function(){return hC()?Qa.platform==="Windows":GK("Windows")}; g.uJ=function(k){return k[k.length-1]}; jiM=function(k,p){var t=k.length,J=typeof k==="string"?k.split(""):k;for(--t;t>=0;--t)t in J&&p.call(void 0,J[t],t,k)}; g.j9=function(k,p,t){p=lJ(k,p,t);return p<0?null:typeof k==="string"?k.charAt(p):k[p]}; lJ=function(k,p,t){for(var J=k.length,q=typeof k==="string"?k.split(""):k,F=0;F<J;F++)if(F in q&&p.call(t,q[F],F,k))return F;return-1}; g.OR=function(k,p,t){var J=k.length,q=typeof k==="string"?k.split(""):k;for(--J;J>=0;J--)if(J in q&&p.call(t,q[J],J,k))return J;return-1}; g.Kc=function(k,p){return OS0(k,p)>=0}; Kj_=function(k){if(!Array.isArray(k))for(var p=k.length-1;p>=0;p--)delete k[p];k.length=0}; g.xn=function(k,p){p=OS0(k,p);var t;(t=p>=0)&&g.HW(k,p);return t}; g.HW=function(k,p){return Array.prototype.splice.call(k,p,1).length==1}; g.k2=function(k,p){p=lJ(k,p);p>=0&&g.HW(k,p)}; HSi=function(k,p){var t=0;jiM(k,function(J,q){p.call(void 0,J,q,k)&&g.HW(k,q)&&t++})}; g.ph=function(k){return Array.prototype.concat.apply([],arguments)}; g.tj=function(k){var p=k.length;if(p>0){for(var t=Array(p),J=0;J<p;J++)t[J]=k[J];return t}return[]}; g.oT=function(k,p){for(var t=1;t<arguments.length;t++){var J=arguments[t];if(g.uq(J)){var q=k.length||0,F=J.length||0;k.length=q+F;for(var d=0;d<F;d++)k[q+d]=J[d]}else k.push(J)}}; g.FY=function(k,p,t,J){Array.prototype.splice.apply(k,qW(arguments,1))}; qW=function(k,p,t){return arguments.length<=2?Array.prototype.slice.call(k,p):Array.prototype.slice.call(k,p,t)}; x_i=function(k){for(var p=0,t=0,J={};t<k.length;){var q=k[t++],F=g.lq(q)?"o"+g.O0(q):(typeof q).charAt(0)+q;Object.prototype.hasOwnProperty.call(J,F)||(J[F]=!0,k[p++]=q)}k.length=p}; g.dH=function(k,p,t){return kKq(k,t||$2,!1,p)}; E$=function(k,p){return kKq(k,p,!0)}; kKq=function(k,p,t,J){for(var q=0,F=k.length,d;q<F;){var S=q+(F-q>>>1),U=void 0;t?U=p.call(void 0,k[S],S,k):U=p(J,k[S]);U>0?q=S+1:(F=S,d=!U)}return d?q:-q-1}; g.SD=function(k,p){k.sort(p||$2)}; pW6=function(k,p){var t=$2;g.SD(k,function(J,q){return t(p(J),p(q))})}; g.U$=function(k,p,t){if(!g.uq(k)||!g.uq(p)||k.length!=p.length)return!1;var J=k.length;t=t||t9e;for(var q=0;q<J;q++)if(!t(k[q],p[q]))return!1;return!0}; $2=function(k,p){return k>p?1:k<p?-1:0}; t9e=function(k,p){return k===p}; g.fh=function(k,p,t){t=g.dH(k,p,t);t<0&&g.FY(k,-(t+1),0,p)}; g.Y2=function(k,p,t){var J={};(0,g.y1)(k,function(q,F){J[p.call(t,q,F,k)]=q}); return J}; JCe=function(k){for(var p=[],t=0;t<k;t++)p[t]="";return p}; onT=function(k,p){p=Array.prototype.splice.call(k,p,1);Array.prototype.splice.call(k,0,0,p[0])}; Te=function(k){Te[" "](k);return k}; qRT=function(k,p){try{return Te(k[p]),!0}catch(t){}return!1}; $Qq=function(k,p){var t=F4L;return Object.prototype.hasOwnProperty.call(t,k)?t[k]:t[k]=p(k)}; g.rH=function(k){return $Qq(k,function(){return g.cW(dQ9,k)>=0})}; g.Zn=function(k,p){p===void 0&&(p=0);Enh();p=SRS[p];for(var t=Array(Math.floor(k.length/3)),J=p[64]||"",q=0,F=0;q<k.length-2;q+=3){var d=k[q],S=k[q+1],U=k[q+2],f=p[d>>2];d=p[(d&3)<<4|S>>4];S=p[(S&15)<<2|U>>6];U=p[U&63];t[F++]=""+f+d+S+U}f=0;U=J;switch(k.length-q){case 2:f=k[q+1],U=p[(f&15)<<2]||J;case 1:k=k[q],t[F]=""+p[k>>2]+p[(k&3)<<4|f>>4]+U+J}return t.join("")}; g.Ch=function(k,p){if(UQ_&&!p)k=g.B9.btoa(k);else{for(var t=[],J=0,q=0;q<k.length;q++){var F=k.charCodeAt(q);F>255&&(t[J++]=F&255,F>>=8);t[J++]=F}k=g.Zn(t,p)}return k}; bcj=function(k){var p=[];fAS(k,function(t){p.push(t)}); return p}; Aj=function(k){var p=k.length,t=p*3/4;t%3?t=Math.floor(t):g.DA("=.",k[p-1])&&(t=g.DA("=.",k[p-2])?t-2:t-1);var J=new Uint8Array(t),q=0;fAS(k,function(F){J[q++]=F}); return q!==t?J.subarray(0,q):J}; fAS=function(k,p){function t(U){for(;J<k.length;){var f=k.charAt(J++),b=m8[f];if(b!=null)return b;if(!g.WW(f))throw Error("Unknown base64 encoding at char: "+f);}return U} Enh();for(var J=0;;){var q=t(-1),F=t(0),d=t(64),S=t(64);if(S===64&&q===-1)break;p(q<<2|F>>4);d!=64&&(p(F<<4&240|d>>2),S!=64&&p(d<<6&192|S))}}; Enh=function(){if(!m8){m8={};for(var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),p=["+/=","+/","-_=","-_.","-_"],t=0;t<5;t++){var J=k.concat(p[t].split(""));SRS[t]=J;for(var q=0;q<J.length;q++){var F=J[q];m8[F]===void 0&&(m8[F]=q)}}}}; yCe=function(k){if(!Nqi)return g.Zn(k);for(var p="",t=0,J=k.length-10240;t<J;)p+=String.fromCharCode.apply(null,k.subarray(t,t+=10240));p+=String.fromCharCode.apply(null,t?k.subarray(t):k);return btoa(p)}; Tq9=function(k){return YR0[k]||""}; ZcT=function(k){if(!Nqi)return Aj(k);rCj.test(k)&&(k=k.replace(rCj,Tq9));k=atob(k);for(var p=new Uint8Array(k.length),t=0;t<k.length;t++)p[t]=k.charCodeAt(t);return p}; V1=function(k){return CJw&&k!=null&&k instanceof Uint8Array}; W4=function(k,p){ACM(p);this.T=k;if(k!=null&&k.length===0)throw Error("ByteString should be constructed with non-empty values");}; s$=function(){return mQj||(mQj=new W4(null,Dn))}; v4=function(k){return new Uint8Array(Lh(k)||0)}; Lh=function(k){ACM(Dn);var p=k.T;p=p==null||V1(p)?p:typeof p==="string"?ZcT(p):null;return p==null?p:k.T=p}; ACM=function(k){if(k!==Dn)throw Error("illegal external caller");}; V9w=function(k,p){k.__closure__error__context__984382||(k.__closure__error__context__984382={});k.__closure__error__context__984382.severity=p}; c4=function(k){k=Error(k);V9w(k,"warning");return k}; nh=function(k){if(k!=null){var p;var t=(p=W4M)!=null?p:W4M={};p=t[k]||0;p>=5||(t[k]=p+1,k=Error(),V9w(k,"incident"),Cc(k))}}; wH=function(k,p,t){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(t===void 0?0:t)&&Symbol.for&&k?Symbol.for(k):k!=null?Symbol(k):Symbol():p}; P4=function(k,p){iP||Q1 in k||DQ6(k,sLL);k[Q1]|=p}; Ge=function(k,p){iP||Q1 in k||DQ6(k,sLL);k[Q1]=p}; L49=function(k,p){Ge(p,(k|0)&-15615)}; IT=function(k,p){Ge(p,(k|34)&-15581)}; XY=function(){return typeof BigInt==="function"}; RT=function(k){return Array.prototype.slice.call(k)}; eD=function(k){return k!==null&&typeof k==="object"&&!Array.isArray(k)&&k.constructor===Object}; vn6=function(k,p){if(k!=null)if(typeof k==="string")k=k?new W4(k,Dn):s$();else if(k.constructor!==W4)if(V1(k))k=k.length?new W4(new Uint8Array(k),Dn):s$();else{if(!p)throw Error();k=void 0}return k}; hj=function(k){if(k&2)throw Error();}; aT=function(k,p){if(typeof p!=="number"||p<0||p>=k.length)throw Error();}; gH=function(k){var p=ZSL(MW);return p?k[p]:void 0}; cCj=function(k,p,t){var J=p&512?0:-1,q=k.length;p=p&64?p&256:!!q&&eD(k[q-1]);for(var F=q+(p?-1:0),d=0;d<F;d++)t(d-J,k[d]);if(p){k=k[q-1];for(var S in k)!isNaN(S)&&t(+S,k[S])}}; lP=function(k){k.SHO=!0;return k}; O$=function(k){var p=k;if(nnu(p)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(p))throw Error(String(p));}else if(wWi(p)&&!Number.isSafeInteger(p))throw Error(String(p));return jD?BigInt(k):k=icT(k)?k?"1":"0":nnu(k)?k.trim()||"0":String(k)}; QLw=function(k,p){if(k.length>p.length)return!1;if(k.length<p.length||k===p)return!0;for(var t=0;t<k.length;t++){var J=k[t],q=p[t];if(J>q)return!1;if(J<q)return!0}}; kk=function(k){var p=k>>>0;Kh=p;x2=(k-p)/4294967296>>>0}; t4=function(k){if(k<0){kk(0-k);var p=g.Z(p8(Kh,x2));k=p.next().value;p=p.next().value;Kh=k>>>0;x2=p>>>0}else kk(k)}; oK=function(k,p){var t=p*4294967296+(k>>>0);return Number.isSafeInteger(t)?t:J4(k,p)}; PJ6=function(k,p){var t=p&2147483648;t&&(k=~k+1>>>0,p=~p>>>0,k==0&&(p=p+1>>>0));k=oK(k,p);return typeof k==="number"?t?-k:k:t?"-"+k:k}; J4=function(k,p){p>>>=0;k>>>=0;if(p<=2097151)var t=""+(4294967296*p+k);else XY()?t=""+(BigInt(p)<<BigInt(32)|BigInt(k)):(t=(k>>>24|p<<8)&16777215,p=p>>16&65535,k=(k&16777215)+t*6777216+p*6710656,t+=p*8147497,p*=2,k>=1E7&&(t+=k/1E7>>>0,k%=1E7),t>=1E7&&(p+=t/1E7>>>0,t%=1E7),t=p+GKS(t)+GKS(k));return t}; GKS=function(k){k=String(k);return"0000000".slice(k.length)+k}; IAe=function(){var k=Kh,p=x2;p&2147483648?XY()?k=""+(BigInt(p|0)<<BigInt(32)|BigInt(k>>>0)):(p=g.Z(p8(k,p)),k=p.next().value,p=p.next().value,k="-"+J4(k,p)):k=J4(k,p);return k}; qK=function(k){if(k.length<16)t4(Number(k));else if(XY())k=BigInt(k),Kh=Number(k&BigInt(4294967295))>>>0,x2=Number(k>>BigInt(32)&BigInt(4294967295));else{var p=+(k[0]==="-");x2=Kh=0;for(var t=k.length,J=0+p,q=(t-p)%6+p;q<=t;J=q,q+=6)J=Number(k.slice(J,q)),x2*=1E6,Kh=Kh*1E6+J,Kh>=4294967296&&(x2+=Math.trunc(Kh/4294967296),x2>>>=0,Kh>>>=0);p&&(p=g.Z(p8(Kh,x2)),k=p.next().value,p=p.next().value,Kh=k,x2=p)}}; p8=function(k,p){p=~p;k?k=~k+1:p+=1;return[k,p]}; Ft=function(k,p){throw Error(p===void 0?"unexpected value "+k+"!":p);}; $k=function(k){if(k!=null&&typeof k!=="number")throw Error("Value of float/double field must be a number, found "+typeof k+": "+k);return k}; XWi=function(k){return k.displayName||k.name||"unknown type name"}; dx=function(k){if(k!=null&&typeof k!=="boolean")throw Error("Expected boolean but got "+gT(k)+": "+k);return k}; St=function(k){switch(typeof k){case "bigint":return!0;case "number":return Ef(k);case "string":return RSi.test(k);default:return!1}}; BqT=function(k){if(typeof k!=="number")throw c4("int32");if(!Ef(k))throw c4("int32");return k|0}; Uf=function(k){return k==null?k:BqT(k)}; f8=function(k){if(k==null)return k;if(typeof k==="string"&&k)k=+k;else if(typeof k!=="number")return;return Ef(k)?k|0:void 0}; NK=function(k){if(k==null)return k;if(typeof k==="string"&&k)k=+k;else if(typeof k!=="number")return;return Ef(k)?k>>>0:void 0}; eSi=function(k){var p=0;p=p===void 0?0:p;if(!St(k))throw c4("int64");var t=typeof k;switch(p){case 2048:switch(t){case "string":return yy(k);case "bigint":return String(Yk(64,k));default:return Th(k)}case 4096:switch(t){case "string":return p=rx(Number(k)),ZY(p)?k=O$(p):(p=k.indexOf("."),p!==-1&&(k=k.substring(0,p)),k=XY()?O$(Yk(64,BigInt(k))):O$(zSh(k))),k;case "bigint":return O$(Yk(64,k));default:return ZY(k)?O$(C8(k)):O$(Th(k))}case 0:switch(t){case "string":return yy(k);case "bigint":return O$(Yk(64, k));default:return C8(k)}default:return Ft(p,"Unknown format requested type for int64")}}; A4=function(k){return k==null?k:eSi(k)}; hSu=function(k){if(k[0]==="-")return!1;var p=k.length;return p<20?!0:p===20&&Number(k.substring(0,6))<184467}; aA0=function(k){var p=k.length;return k[0]==="-"?p<20?!0:p===20&&Number(k.substring(0,7))>-922337:p<19?!0:p===19&&Number(k.substring(0,6))<922337}; M9L=function(k){if(k<0){t4(k);var p=J4(Kh,x2);k=Number(p);return ZY(k)?k:p}p=String(k);if(hSu(p))return p;t4(k);return oK(Kh,x2)}; zSh=function(k){if(aA0(k))return k;qK(k);return IAe()}; C8=function(k){St(k);k=rx(k);ZY(k)||(t4(k),k=PJ6(Kh,x2));return k}; Th=function(k){St(k);k=rx(k);if(ZY(k))k=String(k);else{var p=String(k);aA0(p)?k=p:(t4(k),k=IAe())}return k}; yy=function(k){St(k);var p=rx(Number(k));if(ZY(p))return String(p);p=k.indexOf(".");p!==-1&&(k=k.substring(0,p));return zSh(k)}; gn9=function(k){if(k==null)return k;if(typeof k==="bigint")return m$(k)?k=Number(k):(k=Yk(64,k),k=m$(k)?Number(k):String(k)),k;if(St(k))return typeof k==="number"?C8(k):yy(k)}; uSS=function(k){if(k==null)return k;var p=typeof k;if(p==="bigint")return String(Yk(64,k));if(St(k)){if(p==="string")return yy(k);if(p==="number")return C8(k)}}; jLi=function(k){if(k==null)return k;var p=typeof k;if(p==="bigint")return String(lAS(64,k));if(St(k)){if(p==="string")return St(k),p=rx(Number(k)),ZY(p)&&p>=0?k=String(p):(p=k.indexOf("."),p!==-1&&(k=k.substring(0,p)),hSu(k)||(qK(k),k=J4(Kh,x2))),k;if(p==="number")return St(k),k=rx(k),k>=0&&ZY(k)?k:M9L(k)}}; K4w=function(k){if(k==null||typeof k=="string"||k instanceof W4)return k;if(V1(k))return V1(k)&&nh(OcL),k}; HcS=function(k){if(typeof k!=="string")throw Error();return k}; Vy=function(k){if(k!=null&&typeof k!=="string")throw Error();return k}; W2=function(k){return k==null||typeof k==="string"?k:void 0}; DY=function(k,p){if(!(k instanceof p))throw Error("Expected instanceof "+XWi(p)+" but got "+(k&&XWi(k.constructor)));return k}; xQ0=function(k,p,t){if(k!=null&&typeof k==="object"&&k.j3===sf)return k;if(Array.isArray(k)){var J=k[Q1]|0,q=J;q===0&&(q|=t&32);q|=t&2;q!==J&&Ge(k,q);return new p(k)}}; keq=function(k){return k}; L8=function(k){return k}; o2i=function(k,p,t,J){return p4w(k,p,t,J,tD6,Jjh)}; $Wu=function(k,p,t,J){return p4w(k,p,t,J,q$h,F8M)}; p4w=function(k,p,t,J,q,F){if(!t.length&&!J)return 0;for(var d=0,S=0,U=0,f=0,b=0,N=t.length-1;N>=0;N--){var y=t[N];J&&N===t.length-1&&y===J||(f++,y!=null&&U++)}if(J)for(var Y in J)N=+Y,isNaN(N)||(b+=dW6(N),S++,N>d&&(d=N));f=q(f,U)+F(S,d,b);Y=U;N=S;y=d;for(var T=b,A=t.length-1;A>=0;A--){var V=t[A];if(!(V==null||J&&A===t.length-1&&V===J)){V=A-p;var D=q(V,Y)+F(N,y,T);D<f&&(k=1+V,f=D);N++;Y--;T+=dW6(V);y=Math.max(y,V)}}p=q(0,0)+F(N,y,T);p<f&&(k=0,f=p);if(J){N=S;y=d;T=b;Y=U;for(var v in J)J=+v,isNaN(J)|| J>=1024||(N--,Y++,T-=v.length,d=q(J,Y)+F(N,y,T),d<f&&(k=1+J,f=d))}return k}; F8M=function(k,p,t){return t+k*3+(k>1?k-1:0)}; q$h=function(k,p){return(k>1?k-1:0)+(k-p)*4}; Jjh=function(k,p){return k==0?0:9*Math.max(1<<32-Math.clz32(k+k/2-1),4)<=p?k==0?0:k<4?100+(k-1)*16:k<6?148+(k-4)*16:k<12?244+(k-6)*16:k<22?436+(k-12)*19:k<44?820+(k-22)*17:52+32*k:40+4*p}; tD6=function(k){return 40+4*k}; dW6=function(k){return k>=100?k>=1E4?Math.ceil(Math.log10(1+k)):k<1E3?3:4:k<10?1:2}; E2M=function(k,p,t){var J=RT(k),q=J.length,F=p&256?J[q-1]:void 0;q+=F?-1:0;for(p=p&512?1:0;p<q;p++)J[p]=t(J[p]);if(F){p=J[p]={};for(var d in F)p[d]=t(F[d])}(k=gH(k))&&(J[MW]=RT(k));return J}; S$e=function(k,p,t,J,q){if(k!=null){if(Array.isArray(k)){var F=k[Q1]|0;return k.length===0&&F&1?void 0:q&&F&2?k:v2(k,p,t,J!==void 0,q)}return p(k,J)}}; v2=function(k,p,t,J,q){var F=J||t?k[Q1]|0:0,d=J?!!(F&32):void 0;J=RT(k);for(var S=0,U=J.length,f=0;f<U;f++){var b=J[f];if(f===U-1&&eD(b)){var N=void 0;var y=p,Y=t,T=d,A=q,V=void 0;for(N in b){var D=S$e(b[N],y,Y,T,A);if(D!=null){var v=void 0;((v=V)!=null?v:V={})[N]=D}}N=V}else N=S$e(J[f],p,t,d,q);J[f]=N;N!=null&&(S=f+1)}S<U&&(J.length=S);t&&((k=gH(k))&&(J[MW]=RT(k)),t(F,J));return J}; fni=function(k){switch(typeof k){case "number":return Number.isFinite(k)?k:""+k;case "bigint":return m$(k)?Number(k):""+k;case "boolean":return k?1:0;case "object":if(V1(k))return V1(k)&&nh(OcL),yCe(k);if(k.j3===sf)return UWe(k);if(k instanceof W4){var p=k.T;return p==null?"":typeof p==="string"?p:k.T=yCe(p)}return}return k}; n8=function(k,p){p&&(c2=p===L8||p!==keq&&p!==o2i&&p!==$Wu?L8:p);try{return UWe(k)}finally{c2=void 0}}; UWe=function(k){var p=k.sQ;k=v2(p,fni,void 0,void 0,!1);var t=p[Q1]|0;if((p=k.length)&&!(t&512)){var J=k[p-1],q=!1;eD(J)?(p--,q=!0):J=void 0;var F,d=(F=c2)!=null?F:L8;F=t&512?0:-1;t=p-F;d=d(t,F,k,J);J&&(k[p]=void 0);if(t<d&&J){t=!0;for(var S in J){var U=+S;U<=d?(q=U+F,k[q]=J[S],p=Math.max(q+1,p),q=!1,delete J[S]):t=!1}t&&(J=void 0)}for(t=p-1;p>0;t=p-1)if(S=k[t],S==null)p--,q=!0;else if(t-=F,t>=d)q=void 0,((q=J)!=null?q:J={})[t]=S,p--,q=!0;else break;q&&(k.length=p);J&&k.push(J)}return k}; NHi=function(k){switch(typeof k){case "boolean":return i5||(i5=[0,void 0,!0]);case "number":return k>0?void 0:k===0?bhu||(bhu=[0,void 0]):[-k,void 0];case "string":return[0,k];case "object":return k}}; P2=function(k,p,t){k=Qy(k,p[0],p[1],t?1:2);p!==i5&&t&&P4(k,8192);return k}; Qy=function(k,p,t,J){if(k==null){var q=96;t?(k=[t],q|=512):k=[];p&&(q=q&-16760833|(p&1023)<<14)}else{if(!Array.isArray(k))throw Error("narr");q=k[Q1]|0;8192&q||!(64&q)||2&q||yji();if(q&1024)throw Error("farr");if(q&64)return k;J===1||J===2||(q|=64);if(t&&(q|=512,t!==k[0]))throw Error("mid");a:{t=k;var F=t.length;if(F){var d=F-1;J=t[d];if(eD(J)){q|=256;p=q&512?0:-1;d-=p;if(d>=1024)throw Error("pvtlmt");for(var S in J)F=+S,F<d&&(t[F+p]=J[S],delete J[S]);q=q&-16760833|(d&1023)<<14;break a}}if(p){S=Math.max(p, F-(q&512?0:-1));if(S>1024)throw Error("spvt");q=q&-16760833|(S&1023)<<14}}}Ge(k,q);return k}; yji=function(){nh(Y$i)}; THu=function(k,p,t){t=t===void 0?IT:t;if(k!=null){if(CJw&&k instanceof Uint8Array)return p?k:new Uint8Array(k);if(Array.isArray(k)){var J=k[Q1]|0;if(J&2)return k;p&&(p=J===0||!!(J&32)&&!(J&64||!(J&16)));return p?(Ge(k,J|34),J&4&&Object.freeze(k),k):v2(k,THu,J&4?IT:t,!0,!0)}k.j3===sf&&(t=k.sQ,J=t[Q1]|0,k=J&2?k:new k.constructor(Gh(t,J,!0)));return k}}; Gh=function(k,p,t){var J=t||p&2?IT:L49,q=!!(p&32);k=E2M(k,p,function(F){return THu(F,q,J)}); P4(k,32|(t?2:0));return k}; IK=function(k){var p=k.sQ,t=p[Q1]|0;return t&2?new k.constructor(Gh(p,t,!1)):k}; RK=function(k,p){k=k.sQ;return Xt(k,k[Q1]|0,p)}; Xt=function(k,p,t){if(t===-1)return null;var J=t+(p&512?0:-1),q=k.length-1;if(J>=q&&p&256)return k[q][t];if(J<=q)return k[J]}; zh=function(k,p,t){var J=k.sQ,q=J[Q1]|0;hj(q);B2(J,q,p,t);return k}; B2=function(k,p,t,J){var q=p&512?0:-1,F=t+q,d=k.length-1;if(F>=d&&p&256)return k[d][t]=J,p;if(F<=d)return k[F]=J,p;J!==void 0&&(d=p>>14&1023||536870912,t>=d?J!=null&&(F={},k[d+q]=(F[t]=J,F),p|=256,Ge(k,p)):k[F]=J);return p}; u5=function(k,p,t,J,q){var F=k.sQ;k=F[Q1]|0;var d=2&k?1:J;q=!!q;J=et(F,k,p);var S=J[Q1]|0;if(!(4&S)){4&S&&(J=RT(J),S=h4(S,k),k=B2(F,k,p,J));for(var U=0,f=0;U<J.length;U++){var b=t(J[U]);b!=null&&(J[f++]=b)}f<U&&(J.length=f);S=aK(S,k);t=(S|20)&-2049;S=t&=-4097;Ge(J,S);2&S&&Object.freeze(J)}d===1||d===4&&32&S?MK(S)||(q=S,S|=2,S!==q&&Ge(J,S),Object.freeze(J)):(d===2&&MK(S)&&(J=RT(J),S=h4(S,k),S=gx(S,k,q),Ge(J,S),k=B2(F,k,p,J)),MK(S)||(p=S,S=gx(S,k,q),S!==p&&Ge(J,S)));return J}; et=function(k,p,t){k=Xt(k,p,t);return Array.isArray(k)?k:l5}; aK=function(k,p){k===0&&(k=h4(k,p));return k|1}; MK=function(k){return!!(2&k)&&!!(4&k)||!!(1024&k)}; rji=function(k){return vn6(k,!0)}; jt=function(k,p){k=k.sQ;var t=k[Q1]|0,J=Xt(k,t,p),q=rji(J);q!=null&&q!==J&&B2(k,t,p,q);return q==null?s$():q}; ZhS=function(k,p,t){var J=k.sQ,q=J[Q1]|0;hj(q);if(p==null)return B2(J,q,3),k;if(!Array.isArray(p))throw c4();var F=p[Q1]|0,d=F,S=MK(F),U=S||Object.isFrozen(p);S||(F=0);U||(p=RT(p),d=0,F=h4(F,q),F=gx(F,q,!0),U=!1);F|=21;S=4&F?2048&F?2048:4096&F?4096:0:void 0;S=S!=null?S:0;for(var f=0;f<p.length;f++){var b=p[f],N=t(b,S);Object.is(b,N)||(U&&(p=RT(p),d=0,F=h4(F,q),F=gx(F,q,!0),U=!1),p[f]=N)}F!==d&&(U&&(p=RT(p),F=h4(F,q),F=gx(F,q,!0)),Ge(p,F));B2(J,q,3,p);return k}; Of=function(k,p,t,J){var q=k.sQ,F=q[Q1]|0;hj(F);B2(q,F,p,(J==="0"?Number(t)===0:t===J)?void 0:t);return k}; K8=function(k,p,t,J){hj(p);var q=et(k,p,t),F=q!==l5;if(64&p||!(8192&p)||!F){var d=F?q[Q1]|0:0,S=d;if(!F||2&S||MK(S)||4&S&&!(32&S))q=RT(q),S=h4(S,p),p=B2(k,p,t,q);S=aK(S,p)&-13;S=gx(J?S&-17:S|16,p,!0);S!==d&&Ge(q,S)}return q}; pX=function(k,p,t,J){var q=k.sQ,F=q[Q1]|0;hj(F);if(J==null){var d=H2(q);if(xk(d,q,F,t)===p)d.set(t,0);else return k}else F=kB(q,F,t,p);B2(q,F,p,J);return k}; tH=function(k,p,t,J){var q=k[Q1]|0;q=kB(k,q,t,p);B2(k,q,p,J)}; JH=function(k,p){k=k.sQ;return xk(H2(k),k,k[Q1]|0,p)}; H2=function(k){if(iP){var p;return(p=k[o8])!=null?p:k[o8]=new Map}if(o8 in k)return k[o8];p=new Map;Object.defineProperty(k,o8,{value:p});return p}; kB=function(k,p,t,J){t.includes(J);var q=H2(k),F=xk(q,k,p,t);F!==J&&(F&&(p=B2(k,p,F)),q.set(t,J));return p}; xk=function(k,p,t,J){var q=k.get(J);if(q!=null)return q;for(var F=q=0;F<J.length;F++){var d=J[F];Xt(p,t,d)!=null&&(q!==0&&(t=B2(p,t,q)),q=d)}k.set(J,q);return q}; qs=function(k,p,t){var J=k[Q1]|0,q=Xt(k,J,t),F;if(q!=null&&q.j3===sf)return p=IK(q),p!==q&&B2(k,J,t,p),p.sQ;if(Array.isArray(q)){var d=q[Q1]|0;d&2?F=P2(Gh(q,d,!1),p,!0):d&64?F=q:F=P2(F,p,!0)}else F=P2(void 0,p,!0);F!==q&&B2(k,J,t,F);return F}; F$=function(k,p,t){k=k.sQ;var J=k[Q1]|0,q=Xt(k,J,t);p=xQ0(q,p,J);p!==q&&p!=null&&B2(k,J,t,p);return p}; $B=function(k,p,t){p=F$(k,p,t);if(p==null)return p;k=k.sQ;var J=k[Q1]|0;if(!(J&2)){var q=IK(p);q!==p&&(p=q,B2(k,J,t,p))}return p}; CP0=function(k,p,t,J,q,F,d){k=k.sQ;var S=!!(2&p),U=S?1:q;F=!!F;d&&(d=!S);q=et(k,p,J);var f=q[Q1]|0;S=!!(4&f);if(!S){f=aK(f,p);var b=q,N=p,y=!!(2&f);y&&(N|=2);for(var Y=!y,T=!0,A=0,V=0;A<b.length;A++){var D=xQ0(b[A],t,N);if(D instanceof t){if(!y){var v=!!((D.sQ[Q1]|0)&2);Y&&(Y=!v);T&&(T=v)}b[V++]=D}}V<A&&(b.length=V);f|=4;f=T?f|16:f&-17;f=Y?f|8:f&-9;Ge(b,f);y&&Object.freeze(b)}if(d&&!(8&f||!q.length&&(U===1||U===4&&32&f))){MK(f)&&(q=RT(q),f=h4(f,p),p=B2(k,p,J,q));t=q;d=f;for(b=0;b<t.length;b++)f=t[b], N=IK(f),f!==N&&(t[b]=N);d|=8;d=t.length?d&-17:d|16;Ge(t,d);f=d}U===1||U===4&&32&f?MK(f)||(p=f,f|=!q.length||16&f&&(!S||32&f)?2:1024,f!==p&&Ge(q,f),Object.freeze(q)):(U===2&&MK(f)&&(q=RT(q),f=h4(f,p),f=gx(f,p,F),Ge(q,f),p=B2(k,p,J,q)),MK(f)||(J=f,f=gx(f,p,F),f!==J&&Ge(q,f)));return q}; FS=function(k,p,t){var J=k.sQ[Q1]|0;return CP0(k,J,p,t,void 0===Aj6?2:4,!1,!(2&J))}; dB=function(k,p,t,J){J!=null?DY(J,p):J=void 0;return zh(k,t,J)}; SU=function(k,p,t,J){var q=k.sQ,F=q[Q1]|0;hj(F);if(J==null)return B2(q,F,t),k;if(!Array.isArray(J))throw c4();for(var d=J[Q1]|0,S=d,U=MK(d),f=U||Object.isFrozen(J),b=!0,N=!0,y=0;y<J.length;y++){var Y=J[y];DY(Y,p);U||(Y=!!((Y.sQ[Q1]|0)&2),b&&(b=!Y),N&&(N=Y))}U||(d=b?13:5,d=N?d|16:d&-17);f&&d===S||(J=RT(J),S=0,d=h4(d,F),d=gx(d,F,!0));d!==S&&Ge(J,d);B2(q,F,t,J);return k}; h4=function(k,p){k=(2&p?k|2:k&-3)|32;return k&=-1025}; gx=function(k,p,t){32&p&&t||(k&=-33);return k}; Ub=function(k,p,t,J){var q=k.sQ[Q1]|0;hj(q);k=CP0(k,q,t,p,2,!0);J=J!=null?DY(J,t):new t;k.push(J);k[Q1]=(J.sQ[Q1]|0)&2?k[Q1]&-9:k[Q1]&-17}; mWi=function(k){k=RK(k,1);var p=p===void 0?!1:p;var t=typeof k;p=k==null?k:t==="bigint"?String(Yk(64,k)):St(k)?t==="string"?yy(k):p?Th(k):C8(k):void 0;return p}; fX=function(k,p){return W2(RK(k,p))}; dq=function(k,p,t){t=t===void 0?0:t;var J;return(J=f8(RK(k,p)))!=null?J:t}; b4=function(k,p){var t=t===void 0?0:t;var J;return(J=NK(RK(k,p)))!=null?J:t}; Ns=function(k,p){var t;return(t=fX(k,p))!=null?t:""}; y6=function(k,p){var t=t===void 0?0:t;k=RK(k,p);k=k==null?k:Ef(k)?k|0:void 0;return k!=null?k:t}; YB=function(k,p,t){return zh(k,p,A4(t))}; T9=function(k,p,t){return zh(k,p,Vy(t))}; rB=function(k,p,t){return Of(k,p,Vy(t),"")}; ZL=function(k,p,t){if(t!=null){if(!Ef(t))throw c4("enum");t|=0}return zh(k,p,t)}; VD6=function(k,p){return Error("Invalid wire type: "+k+" (at position "+p+")")}; CX=function(){return Error("Failed to read varint, encoding is invalid.")}; W8T=function(k,p){return Error("Tried to read past the end of the data "+p+" > "+k)}; mv=function(k){if(typeof k==="string")return{buffer:ZcT(k),Yp:!1};if(Array.isArray(k))return{buffer:new Uint8Array(k),Yp:!1};if(k.constructor===Uint8Array)return{buffer:k,Yp:!1};if(k.constructor===ArrayBuffer)return{buffer:new Uint8Array(k),Yp:!1};if(k.constructor===W4)return{buffer:Lh(k)||new Uint8Array(0),Yp:!0};if(k instanceof Uint8Array)return{buffer:new Uint8Array(k.buffer,k.byteOffset,k.byteLength),Yp:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; DWL=function(k,p){this.Y=null;this.X=!1;this.T=this.N=this.C=0;this.init(k,void 0,void 0,p)}; Wn=function(k){var p=0,t=0,J=0,q=k.Y,F=k.T;do{var d=q[F++];p|=(d&127)<<J;J+=7}while(J<32&&d&128);J>32&&(t|=(d&127)>>4);for(J=3;J<32&&d&128;J+=7)d=q[F++],t|=(d&127)<<J;V6(k,F);if(d<128)return PJ6(p>>>0,t>>>0);throw CX();}; V6=function(k,p){k.T=p;if(p>k.N)throw W8T(k.N,p);}; DL=function(k){var p=k.Y,t=k.T,J=p[t++],q=J&127;if(J&128&&(J=p[t++],q|=(J&127)<<7,J&128&&(J=p[t++],q|=(J&127)<<14,J&128&&(J=p[t++],q|=(J&127)<<21,J&128&&(J=p[t++],q|=J<<28,J&128&&p[t++]&128&&p[t++]&128&&p[t++]&128&&p[t++]&128&&p[t++]&128)))))throw CX();V6(k,t);return q}; sb=function(k){var p=k.Y,t=k.T,J=p[t+0],q=p[t+1],F=p[t+2];p=p[t+3];V6(k,k.T+4);return(J<<0|q<<8|F<<16|p<<24)>>>0}; LX=function(k){var p=sb(k);k=sb(k);return oK(p,k)}; vn=function(k){var p=sb(k),t=sb(k);k=(t>>31)*2+1;var J=t>>>20&2047;p=4294967296*(t&1048575)+p;return J==2047?p?NaN:k*Infinity:J==0?k*4.9E-324*p:k*Math.pow(2,J-1075)*(p+4503599627370496)}; cn=function(k){for(var p=0,t=k.T,J=t+10,q=k.Y;t<J;){var F=q[t++];p|=F;if((F&128)===0)return V6(k,t),!!(p&127)}throw CX();}; sTL=function(k,p){if(p<0)throw Error("Tried to read a negative byte length: "+p);var t=k.T,J=t+p;if(J>k.N)throw W8T(p,k.N-t);k.T=J;return t}; v2i=function(k,p){if(p==0)return s$();var t=sTL(k,p);k.G4&&k.X?t=k.Y.subarray(t,t+p):(k=k.Y,p=t+p,t=t===p?new Uint8Array(0):L8h?k.slice(t,p):new Uint8Array(k.subarray(t,p)));return t.length==0?s$():new W4(t,Dn)}; wB=function(k,p){if(nX.length){var t=nX.pop();t.init(k,void 0,void 0,p);k=t}else k=new DWL(k,p);this.T=k;this.N=this.T.T;this.Y=this.C=-1;cjq(this,p)}; cjq=function(k,p){p=p===void 0?{}:p;k.Kj=p.Kj===void 0?!1:p.Kj}; n20=function(k){var p=k.T;if(p.T==p.N)return!1;k.N=k.T.T;var t=DL(k.T)>>>0;p=t>>>3;t&=7;if(!(t>=0&&t<=5))throw VD6(t,k.N);if(p<1)throw Error("Invalid field number: "+p+" (at position "+k.N+")");k.C=p;k.Y=t;return!0}; i4=function(k){switch(k.Y){case 0:k.Y!=0?i4(k):cn(k.T);break;case 1:k=k.T;V6(k,k.T+8);break;case 2:if(k.Y!=2)i4(k);else{var p=DL(k.T)>>>0;k=k.T;V6(k,k.T+p)}break;case 5:k=k.T;V6(k,k.T+4);break;case 3:p=k.C;do{if(!n20(k))throw Error("Unmatched start-group tag: stream EOF");if(k.Y==4){if(k.C!=p)throw Error("Unmatched end-group tag");break}i4(k)}while(1);break;default:throw VD6(k.Y,k.N);}}; Q6=function(k,p,t){var J=k.T.N,q=DL(k.T)>>>0,F=k.T.T+q,d=F-J;d<=0&&(k.T.N=F,t(p,k,void 0,void 0,void 0),d=F-k.T.T);if(d)throw Error("Message parsing ended unexpectedly. Expected to read "+(q+" bytes, instead read "+(q-d)+" bytes, either the data ended unexpectedly or the message misreported its own length"));k.T.T=F;k.T.N=J}; I8=function(k){var p=DL(k.T)>>>0;k=k.T;var t=sTL(k,p);k=k.Y;if(w4T){var J=k,q;(q=Pn)||(q=Pn=new TextDecoder("utf-8",{fatal:!0}));p=t+p;J=t===0&&p===J.length?J:J.subarray(t,p);try{var F=q.decode(J)}catch(f){if(G9===void 0){try{q.decode(new Uint8Array([128]))}catch(b){}try{q.decode(new Uint8Array([97])),G9=!0}catch(b){G9=!1}}!G9&&(Pn=void 0);throw f;}}else{F=t;p=F+p;t=[];for(var d=null,S,U;F<p;)S=k[F++],S<128?t.push(S):S<224?F>=p?ZA():(U=k[F++],S<194||(U&192)!==128?(F--,ZA()):t.push((S&31)<<6|U&63)): S<240?F>=p-1?ZA():(U=k[F++],(U&192)!==128||S===224&&U<160||S===237&&U>=160||((q=k[F++])&192)!==128?(F--,ZA()):t.push((S&15)<<12|(U&63)<<6|q&63)):S<=244?F>=p-2?ZA():(U=k[F++],(U&192)!==128||(S<<28)+(U-144)>>30!==0||((q=k[F++])&192)!==128||((J=k[F++])&192)!==128?(F--,ZA()):(S=(S&7)<<18|(U&63)<<12|(q&63)<<6|J&63,S-=65536,t.push((S>>10&1023)+55296,(S&1023)+56320))):ZA(),t.length>=8192&&(d=iSw(d,t),t.length=0);F=iSw(d,t)}return F}; ihi=function(k){var p=DL(k.T)>>>0;return v2i(k.T,p)}; X$=function(k,p,t){this.sQ=Qy(k,p,t)}; QTe=function(k,p){if(p==null||p=="")return new k;p=JSON.parse(p);if(!Array.isArray(p))throw Error("dnarr");P4(p,32);return new k(p)}; R8=function(k,p){this.Y=k>>>0;this.T=p>>>0}; Geh=function(k){if(!k)return PPu||(PPu=new R8(0,0));if(!/^\d+$/.test(k))return null;qK(k);return new R8(Kh,x2)}; Bn=function(k,p){this.Y=k>>>0;this.T=p>>>0}; X49=function(k){if(!k)return Ini||(Ini=new Bn(0,0));if(!/^-?\d+$/.test(k))return null;qK(k);return new Bn(Kh,x2)}; z9=function(){this.T=[]}; eU=function(k,p,t){for(;t>0||p>127;)k.T.push(p&127|128),p=(p>>>7|t<<25)>>>0,t>>>=7;k.T.push(p)}; hH=function(k,p){for(;p>127;)k.T.push(p&127|128),p>>>=7;k.T.push(p)}; R9S=function(k,p){if(p>=0)hH(k,p);else{for(var t=0;t<9;t++)k.T.push(p&127|128),p>>=7;k.T.push(1)}}; a8=function(k,p){k.T.push(p>>>0&255);k.T.push(p>>>8&255);k.T.push(p>>>16&255);k.T.push(p>>>24&255)}; BHe=function(){this.N=[];this.Y=0;this.T=new z9}; Ms=function(k,p){p.length!==0&&(k.N.push(p),k.Y+=p.length)}; z9e=function(k,p){gB(k,p,2);p=k.T.end();Ms(k,p);p.push(k.Y);return p}; e9S=function(k,p){var t=p.pop();for(t=k.Y+k.T.length()-t;t>127;)p.push(t&127|128),t>>>=7,k.Y++;p.push(t);k.Y++}; h9h=function(k,p){Ms(k,k.T.end());for(var t=0;t<p.length;t++)Ms(k,Lh(p[t])||new Uint8Array(0))}; gB=function(k,p,t){hH(k.T,p*8+t)}; an_=function(k,p,t){if(t!=null){switch(typeof t){case "string":Geh(t)}gB(k,p,1);switch(typeof t){case "number":k=k.T;kk(t);a8(k,Kh);a8(k,x2);break;case "bigint":t=BigInt.asUintN(64,t);t=new R8(Number(t&BigInt(4294967295)),Number(t>>BigInt(32)));k=k.T;p=t.T;a8(k,t.Y);a8(k,p);break;default:t=Geh(t),k=k.T,p=t.T,a8(k,t.Y),a8(k,p)}}}; u4=function(k,p,t){gB(k,p,2);hH(k.T,t.length);Ms(k,k.T.end());Ms(k,t)}; l4=function(){function k(){throw Error();} Object.setPrototypeOf(k,k.prototype);return k}; Ob=function(k,p,t){this.TQ=k;this.yC=p;k=ZSL(jU);this.T=!!k&&t===k||!1}; KX=function(k,p){var t=t===void 0?jU:t;return new Ob(k,p,t)}; g2i=function(k,p,t,J,q){p=MDi(p,J);p!=null&&(t=z9e(k,t),q(p,k),e9S(k,t))}; kT=function(k,p,t,J){var q=J[k];if(q)return q;q={};q.qih=J;q.IB=NHi(J[0]);var F=J[1],d=1;F&&F.constructor===Object&&(q.extensions=F,F=J[++d],typeof F==="function"&&(q.L6=!0,Hn!=null||(Hn=F),xB!=null||(xB=J[d+1]),F=J[d+=2]));for(var S={};F&&Array.isArray(F)&&F.length&&typeof F[0]==="number"&&F[0]>0;){for(var U=0;U<F.length;U++)S[F[U]]=F;F=J[++d]}for(U=1;F!==void 0;){typeof F==="number"&&(U+=F,F=J[++d]);var f=void 0;if(F instanceof Ob)var b=F;else b=uYq,d--;F=void 0;if((F=b)==null?0:F.T){F=J[++d];f= J;var N=d;typeof F==="function"&&(F=F(),f[N]=F);f=F}F=J[++d];N=U+1;typeof F==="number"&&F<0&&(N-=F,F=J[++d]);for(;U<N;U++){var y=S[U];f?t(q,U,b,f,y):p(q,U,b,y)}}return J[k]=q}; jTj=function(k){return Array.isArray(k)?k[0]instanceof Ob?k:[lnS,k]:[k,void 0]}; MDi=function(k,p){if(k instanceof X$)return k.sQ;if(Array.isArray(k))return P2(k,p,!1)}; pu=function(k,p,t,J){var q=t.TQ;k[p]=J?function(F,d,S){return q(F,d,S,J)}:q}; JY=function(k,p,t,J,q){var F=t.TQ,d,S;k[p]=function(U,f,b){return F(U,f,b,S||(S=kT(tY,pu,JY,J).IB),d||(d=o_(J)),q)}}; o_=function(k){var p=k[OhT];if(p!=null)return p;var t=kT(tY,pu,JY,k);p=t.L6?function(J,q){return Hn(J,q,t)}:function(J,q){for(var F=J[Q1]|0;n20(q)&&q.Y!=4;){var d=q.C,S=t[d]; if(S==null){var U=t.extensions;U&&(U=U[d])&&(U=K80(U),U!=null&&(S=t[d]=U))}S!=null&&S(q,J,d)||(S=q,d=S.N,i4(S),S.Kj?S=void 0:(U=S.T.T-d,S.T.T=d,S=v2i(S.T,U)),d=J,S&&((U=d[MW])?U.push(S):d[MW]=[S]))}F&8192&&P4(J,34);return!0}; return k[OhT]=p}; K80=function(k){k=jTj(k);var p=k[0].TQ;if(k=k[1]){var t=o_(k),J=kT(tY,pu,JY,k).IB;return function(q,F,d){return p(q,F,d,J,t)}}return p}; qp=function(k,p,t){k[p]=t.yC}; $T=function(k,p,t,J){var q,F,d=t.yC;k[p]=function(S,U,f){return d(S,U,f,F||(F=kT(Fv,qp,$T,J).IB),q||(q=Hh0(J)))}}; Hh0=function(k){var p=k[xW_];if(!p){var t=kT(Fv,qp,$T,k);p=function(J,q){return khj(J,q,t)}; k[xW_]=p}return p}; khj=function(k,p,t){cCj(k,k[Q1]|0|(t.IB[1]?512:0),function(J,q){if(q!=null){var F=p2i(t,J);F&&F(p,q,J)}}); (k=gH(k))&&h9h(p,k)}; p2i=function(k,p){var t=k[p];if(t)return t;if(t=k.extensions)if(t=t[p]){t=jTj(t);var J=t[0].yC;if(t=t[1]){var q=Hh0(t),F=kT(Fv,qp,$T,t).IB;t=k.L6?xB(F,q):function(d,S,U){return J(d,S,U,F,q)}}else t=J; return k[p]=t}}; de=function(k,p,t){if(Array.isArray(p)){var J=p[Q1]|0;if(J&4)return p;for(var q=0,F=0;q<p.length;q++){var d=k(p[q]);d!=null&&(p[F++]=d)}F<q&&(p.length=F);t&&(Ge(p,(J|5)&-6145),J&2&&Object.freeze(p));return p}}; EZ=function(k,p,t){return new Ob(k,p,t)}; Sc=function(k,p,t){return new Ob(k,p,t)}; UZ=function(k,p,t){B2(k,k[Q1]|0,p,t)}; fu=function(k,p,t){p=p==null||typeof p==="number"?p:p==="NaN"||p==="Infinity"||p==="-Infinity"?Number(p):void 0;p!=null&&(gB(k,t,1),k=k.T,t=tt0||(tt0=new DataView(new ArrayBuffer(8))),t.setFloat64(0,+p,!0),Kh=t.getUint32(0,!0),x2=t.getUint32(4,!0),a8(k,Kh),a8(k,x2))}; bC=function(k,p,t){p=uSS(p);if(p!=null){switch(typeof p){case "string":X49(p)}if(p!=null)switch(gB(k,t,0),typeof p){case "number":k=k.T;t4(p);eU(k,Kh,x2);break;case "bigint":t=BigInt.asUintN(64,p);t=new Bn(Number(t&BigInt(4294967295)),Number(t>>BigInt(32)));eU(k.T,t.Y,t.T);break;default:t=X49(p),eU(k.T,t.Y,t.T)}}}; Np=function(k,p,t){p=f8(p);p!=null&&p!=null&&(gB(k,t,0),R9S(k.T,p))}; J4T=function(k,p,t){p=p==null||typeof p==="boolean"?p:typeof p==="number"?!!p:void 0;p!=null&&(gB(k,t,0),k.T.T.push(p?1:0))}; okh=function(k,p,t){p=W2(p);p!=null&&u4(k,t,Iui(p))}; qfj=function(k,p,t,J,q){p=MDi(p,J);p!=null&&(t=z9e(k,t),q(p,k),e9S(k,t))}; $Kh=function(){this.T=F$q;this.isRepeated=0;this.Y=$B;this.defaultValue=void 0}; dKL=function(k){return function(){var p=new BHe;khj(this.sQ,p,kT(Fv,qp,$T,k));Ms(p,p.T.end());for(var t=new Uint8Array(p.Y),J=p.N,q=J.length,F=0,d=0;d<q;d++){var S=J[d];t.set(S,F);F+=S.length}p.N=[t];return t}}; yY=function(k){return function(p){return QTe(k,p)}}; EkS=function(k){this.sQ=Qy(k)}; Sfi=function(k,p){return ZhS(k,p,BqT)}; T3=function(k){this.sQ=Qy(k)}; re=function(k){this.sQ=Qy(k)}; Zb=function(k){this.sQ=Qy(k)}; Cu=function(k){this.sQ=Qy(k)}; UKq=function(k){this.sQ=Qy(k)}; g.Nxq=function(k){var p=new Cu;p=T9(p,1,k.Y);var t=fYe(k);p=ZhS(p,t,HcS);t=[];for(var J=[],q=g.Z(k.T.keys()),F=q.next();!F.done;F=q.next())J.push(F.value.split(","));for(q=0;q<J.length;q++){F=J[q];for(var d=k.C,S=k.Vz(F)||[],U=[],f=0;f<S.length;f++){var b=S[f],N=b&&b.T;b=new re;switch(d){case 3:N=Number(N);Number.isFinite(N)&&pX(b,1,AY,A4(N));break;case 2:pX(b,2,AY,$k(Number(N)))}U.push(b)}d=U;for(S=0;S<d.length;S++){U=d[S];f=new Zb;U=dB(f,re,2,U);f=[];b=b8L(k);for(N=0;N<b.length;N++){var y=b[N], Y=F[N],T=new T3;switch(y){case 3:pX(T,1,ma,Vy(String(Y)));break;case 2:y=Number(Y);Number.isFinite(y)&&pX(T,2,ma,Uf(y));break;case 1:pX(T,3,ma,dx(Y==="true"))}f.push(T)}SU(U,T3,1,f);t.push(U)}}SU(p,Zb,4,t);return p}; y4h=function(k){if(!k)return"";if(/^about:(?:blank|srcdoc)$/.test(k))return window.origin||"";k.indexOf("blob:")===0&&(k=k.substring(5));k=k.split("#")[0].split("?")[0];k=k.toLowerCase();k.indexOf("//")==0&&(k=window.location.protocol+k);/^[\w\-]*:\/\//.test(k)||(k=window.location.href);var p=k.substring(k.indexOf("://")+3),t=p.indexOf("/");t!=-1&&(p=p.substring(0,t));t=k.substring(0,k.indexOf("://"));if(!t)throw Error("URI is missing protocol: "+k);if(t!=="http"&&t!=="https"&&t!=="chrome-extension"&& t!=="moz-extension"&&t!=="file"&&t!=="android-app"&&t!=="chrome-search"&&t!=="chrome-untrusted"&&t!=="chrome"&&t!=="app"&&t!=="devtools")throw Error("Invalid URI scheme in origin: "+t);k="";var J=p.indexOf(":");if(J!=-1){var q=p.substring(J+1);p=p.substring(0,J);if(t==="http"&&q!=="80"||t==="https"&&q!=="443")k=":"+q}return t+"://"+p+k}; Yfw=function(){function k(){q[0]=1732584193;q[1]=4023233417;q[2]=2562383102;q[3]=271733878;q[4]=3285377520;b=f=0} function p(N){for(var y=d,Y=0;Y<64;Y+=4)y[Y/4]=N[Y]<<24|N[Y+1]<<16|N[Y+2]<<8|N[Y+3];for(Y=16;Y<80;Y++)N=y[Y-3]^y[Y-8]^y[Y-14]^y[Y-16],y[Y]=(N<<1|N>>>31)&4294967295;N=q[0];var T=q[1],A=q[2],V=q[3],D=q[4];for(Y=0;Y<80;Y++){if(Y<40)if(Y<20){var v=V^T&(A^V);var w=1518500249}else v=T^A^V,w=1859775393;else Y<60?(v=T&A|V&(T|A),w=2400959708):(v=T^A^V,w=3395469782);v=((N<<5|N>>>27)&4294967295)+v+D+w+y[Y]&4294967295;D=V;V=A;A=(T<<30|T>>>2)&4294967295;T=N;N=v}q[0]=q[0]+N&4294967295;q[1]=q[1]+T&4294967295;q[2]= q[2]+A&4294967295;q[3]=q[3]+V&4294967295;q[4]=q[4]+D&4294967295} function t(N,y){if(typeof N==="string"){N=unescape(encodeURIComponent(N));for(var Y=[],T=0,A=N.length;T<A;++T)Y.push(N.charCodeAt(T));N=Y}y||(y=N.length);Y=0;if(f==0)for(;Y+64<y;)p(N.slice(Y,Y+64)),Y+=64,b+=64;for(;Y<y;)if(F[f++]=N[Y++],b++,f==64)for(f=0,p(F);Y+64<y;)p(N.slice(Y,Y+64)),Y+=64,b+=64} function J(){var N=[],y=b*8;f<56?t(S,56-f):t(S,64-(f-56));for(var Y=63;Y>=56;Y--)F[Y]=y&255,y>>>=8;p(F);for(Y=y=0;Y<5;Y++)for(var T=24;T>=0;T-=8)N[y++]=q[Y]>>T&255;return N} for(var q=[],F=[],d=[],S=[128],U=1;U<64;++U)S[U]=0;var f,b;k();return{reset:k,update:t,digest:J,Q1:function(){for(var N=J(),y="",Y=0;Y<N.length;Y++)y+="0123456789ABCDEF".charAt(Math.floor(N[Y]/16))+"0123456789ABCDEF".charAt(N[Y]%16);return y}}}; r4h=function(k,p,t){var J=String(g.B9.location.href);return J&&k&&p?[p,TxS(y4h(J),k,t||null)].join(" "):null}; TxS=function(k,p,t){var J=[],q=[];if((Array.isArray(t)?2:1)==1)return q=[p,k],g.y1(J,function(S){q.push(S)}),Z8u(q.join(" ")); var F=[],d=[];g.y1(t,function(S){d.push(S.key);F.push(S.value)}); t=Math.floor((new Date).getTime()/1E3);q=F.length==0?[t,p,k]:[F.join(":"),t,p,k];g.y1(J,function(S){q.push(S)}); k=Z8u(q.join(" "));k=[t,k];d.length==0||k.push(d.join(""));return k.join("_")}; Z8u=function(k){var p=Yfw();p.update(k);return p.Q1().toLowerCase()}; A4q=function(){var k=null;if(!C5T)return k;try{var p=function(t){return t}; k=C5T.createPolicy("goog#html",{createHTML:p,createScript:p,createScriptURL:p})}catch(t){}return k}; WH=function(){VY===void 0&&(VY=A4q());return VY}; Db=function(k){this.T=k}; sZ=function(k){var p=WH();return new Db(p?p.createScriptURL(k):k)}; Lu=function(k){if(k instanceof Db)return k.T;throw Error("");}; vH=function(k){this.T=k}; g.cH=function(k){if(k instanceof vH)return k.T;throw Error("");}; nu=function(k){this.IG=k}; we=function(k){return new nu(function(p){return p.substr(0,k.length+1).toLowerCase()===k+":"})}; g.iC=function(k,p){p=p===void 0?mK6:p;a:if(p=p===void 0?mK6:p,!(k instanceof vH)){for(var t=0;t<p.length;++t){var J=p[t];if(J instanceof nu&&J.IG(k)){k=new vH(k);break a}}k=void 0}return k||Vt_}; DKi=function(k){if(W$i.test(k))return k}; QY=function(k){return k instanceof vH?g.cH(k):DKi(k)}; g.PH=function(k,p){p=QY(p);p!==void 0&&(k.href=p)}; G3=function(k){this.T=k}; I_=function(k){var p=WH();return new G3(p?p.createHTML(k):k)}; Xv=function(k){if(k instanceof G3)return k.T;throw Error("");}; g.R_=function(k,p,t,J){p=QY(p);return p!==void 0?k.open(p,t,J):null}; BH=function(k){k=k===void 0?document:k;var p,t;k=(t=(p=k).querySelector)==null?void 0:t.call(p,"script[nonce]");return k==null?"":k.nonce||k.getAttribute("nonce")||""}; z3=function(k){this.T=k}; sKw=function(k){var p=WH();return new z3(p?p.createScript(k):k)}; ec=function(k){if(k instanceof z3)return k.T;throw Error("");}; hY=function(k){var p=BH(k.ownerDocument);p&&k.setAttribute("nonce",p)}; g.a_=function(k,p){k.src=Lu(p);hY(k)}; Mp=function(){this.T=L$h[0].toLowerCase()}; vk0=function(k){var p="true".toString(),t=[new Mp];if(t.length===0)throw Error("");if(t.map(function(J){if(J instanceof Mp)J=J.T;else throw Error("");return J}).every(function(J){return"data-loaded".indexOf(J)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); k.setAttribute("data-loaded",p)}; c4M=function(k){var p=g.hw("window.location.href");k==null&&(k='Unknown Error of type "null/undefined"');if(typeof k==="string")return{message:k,name:"Unknown error",lineNumber:"Not available",fileName:p,stack:"Not available"};var t=!1;try{var J=k.lineNumber||k.line||"Not available"}catch(d){J="Not available",t=!0}try{var q=k.fileName||k.filename||k.sourceURL||g.B9.$googDebugFname||p}catch(d){q="Not available",t=!0}p=ge(k);if(!(!t&&k.lineNumber&&k.fileName&&k.stack&&k.message&&k.name)){t=k.message; if(t==null){if(k.constructor&&k.constructor instanceof Function){if(k.constructor.name)t=k.constructor.name;else if(t=k.constructor,uC[t])t=uC[t];else{t=String(t);if(!uC[t]){var F=/function\s+([^\(]+)/m.exec(t);uC[t]=F?F[1]:"[Anonymous]"}t=uC[t]}t='Unknown Error of type "'+t+'"'}else t="Unknown Error of unknown type";typeof k.toString==="function"&&Object.prototype.toString!==k.toString&&(t+=": "+k.toString())}return{message:t,name:k.name||"UnknownError",lineNumber:J,fileName:q,stack:p||"Not available"}}return{message:k.message, name:k.name,lineNumber:k.lineNumber,fileName:k.fileName,stack:p}}; ge=function(k,p){p||(p={});p[lC(k)]=!0;var t=k.stack||"",J=k.cause;J&&!p[lC(J)]&&(t+="\nCaused by: ",J.stack&&J.stack.indexOf(J.toString())==0||(t+=typeof J==="string"?J:J.message+"\n"),t+=ge(J,p));k=k.errors;if(Array.isArray(k)){J=1;var q;for(q=0;q<k.length&&!(J>4);q++)p[lC(k[q])]||(t+="\nInner error "+J++ +": ",k[q].stack&&k[q].stack.indexOf(k[q].toString())==0||(t+=typeof k[q]==="string"?k[q]:k[q].message+"\n"),t+=ge(k[q],p));q<k.length&&(t+="\n... "+(k.length-q)+" more inner errors")}return t}; lC=function(k){var p="";typeof k.toString==="function"&&(p=""+k);return p+k.stack}; jc=function(k,p,t){return k.parseFromString(Xv(p),t)}; g.OZ=function(k){return encodeURIComponent(String(k))}; Ku=function(k){return decodeURIComponent(k.replace(/\+/g," "))}; HH=function(k){nkT.test(k)&&(k.indexOf("&")!=-1&&(k=k.replace(w2h,"&")),k.indexOf("<")!=-1&&(k=k.replace(i8M,"<")),k.indexOf(">")!=-1&&(k=k.replace(QKq,">")),k.indexOf('"')!=-1&&(k=k.replace(P5q,""")),k.indexOf("'")!=-1&&(k=k.replace(Gh_,"'")),k.indexOf("\x00")!=-1&&(k=k.replace(IYw,"�")));return k}; g.xT=function(k){return k==null?"":String(k)}; kY=function(k){for(var p=0,t=0;t<k.length;++t)p=31*p+k.charCodeAt(t)>>>0;return p}; pE=function(k){var p=Number(k);return p==0&&g.WW(k)?NaN:p}; X2T=function(k){return String(k).replace(/\-([a-z])/g,function(p,t){return t.toUpperCase()})}; RI6=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; BxM=function(k){return k.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(p,t,J){return t+J.toUpperCase()})}; zI_=function(k){var p=1;k=k.split(":");for(var t=[];p>0&&k.length;)t.push(k.shift()),p--;k.length&&t.push(k.join(":"));return t}; t2=function(k){this.T=k||{cookie:""}}; J2=function(k){k=(k.T.cookie||"").split(";");for(var p=[],t=[],J,q,F=0;F<k.length;F++)q=Lc(k[F]),J=q.indexOf("="),J==-1?(p.push(""),t.push(q)):(p.push(q.substring(0,J)),t.push(q.substring(J+1)));return{keys:p,values:t}}; eIS=function(){var k=g.B9.__SAPISID||g.B9.__APISID||g.B9.__3PSAPISID||g.B9.__1PSAPISID||g.B9.__OVERRIDE_SID;if(k)return!0;typeof document!=="undefined"&&(k=new t2(document),k=k.get("SAPISID")||k.get("APISID")||k.get("__Secure-3PAPISID")||k.get("__Secure-1PAPISID"));return!!k}; hIq=function(k,p,t,J){(k=g.B9[k])||typeof document==="undefined"||(k=(new t2(document)).get(p));return k?r4h(k,t,J):null}; aYq=function(k){var p=y4h(String(g.B9.location.href)),t=[];if(eIS()){p=p.indexOf("https:")==0||p.indexOf("chrome-extension:")==0||p.indexOf("chrome-untrusted://new-tab-page")==0||p.indexOf("moz-extension:")==0;var J=p?g.B9.__SAPISID:g.B9.__APISID;J||typeof document==="undefined"||(J=new t2(document),J=J.get(p?"SAPISID":"APISID")||J.get("__Secure-3PAPISID"));(J=J?r4h(J,p?"SAPISIDHASH":"APISIDHASH",k):null)&&t.push(J);p&&((p=hIq("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",k))&&t.push(p),(k=hIq("__3PSAPISID", "__Secure-3PAPISID","SAPISID3PHASH",k))&&t.push(k))}return t.length==0?null:t.join(" ")}; oO=function(){}; qL=function(k){this.sQ=Qy(k)}; F6=function(k,p){this.intervalMs=k;this.callback=p;this.enabled=!1;this.T=function(){return g.kn()}; this.Y=this.T()}; $Y=function(k){this.sQ=Qy(k)}; d8=function(k){this.sQ=Qy(k)}; g.Ek=function(k,p,t){return Math.min(Math.max(k,p),t)}; g.SO=function(k,p){k%=p;return k*p<0?k+p:k}; bh=function(k,p,t){return k+t*(p-k)}; g.NL=function(k,p){this.x=k!==void 0?k:0;this.y=p!==void 0?p:0}; yx=function(k,p){return k==p?!0:k&&p?k.x==p.x&&k.y==p.y:!1}; g.YY=function(k,p){this.width=k;this.height=p}; g.TJ=function(k,p){return k==p?!0:k&&p?k.width==p.width&&k.height==p.height:!1}; r8=function(k){return k.width*k.height}; g.ZV=function(k,p,t){for(var J in k)p.call(t,k[J],J,k)}; g.CE=function(k,p,t){var J={},q;for(q in k)p.call(t,k[q],q,k)&&(J[q]=k[q]);return J}; A2=function(k,p){var t={},J;for(J in k)t[J]=p.call(void 0,k[J],J,k);return t}; g.mc=function(k,p,t){for(var J in k)if(p.call(t,k[J],J,k))return!0;return!1}; Mtu=function(k,p){for(var t in k)if(!p.call(void 0,k[t],t,k))return!1;return!0}; g.Vx=function(k){for(var p in k)return p}; gk6=function(k){for(var p in k)return k[p]}; g.WQ=function(k){var p=[],t=0,J;for(J in k)p[t++]=k[J];return p}; g.DV=function(k){var p=[],t=0,J;for(J in k)p[t++]=J;return p}; g.sk=function(k,p){return k!==null&&p in k}; g.LE=function(k,p){for(var t in k)if(k[t]==p)return!0;return!1}; vQ=function(k,p){for(var t in k)if(p.call(void 0,k[t],t,k))return t}; uth=function(k,p){return(p=vQ(k,p))&&k[p]}; g.cQ=function(k){for(var p in k)return!1;return!0}; g.lYe=function(k){for(var p in k)delete k[p]}; g.nE=function(k,p,t){return k!==null&&p in k?k[p]:t}; g.w8=function(k,p){for(var t in k)if(!(t in p)||k[t]!==p[t])return!1;for(var J in p)if(!(J in k))return!1;return!0}; g.ih=function(k){var p={},t;for(t in k)p[t]=k[t];return p}; g.Qx=function(k){if(!k||typeof k!=="object")return k;if(typeof k.clone==="function")return k.clone();if(typeof Map!=="undefined"&&k instanceof Map)return new Map(k);if(typeof Set!=="undefined"&&k instanceof Set)return new Set(k);if(k instanceof Date)return new Date(k.getTime());var p=Array.isArray(k)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(k)||k instanceof DataView?{}:new k.constructor(k.length),t;for(t in k)p[t]=g.Qx(k[t]);return p}; g.PQ=function(k,p){for(var t,J,q=1;q<arguments.length;q++){J=arguments[q];for(t in J)k[t]=J[t];for(var F=0;F<jKu.length;F++)t=jKu[F],Object.prototype.hasOwnProperty.call(J,t)&&(k[t]=J[t])}}; IO=function(k,p){this.T=k===GJ&&p||""}; X6=function(k){if(k instanceof G3)return k;k=String(k).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return I_(k)}; O86=function(k){var p=X6("");return I_(k.map(function(t){return Xv(X6(t))}).join(Xv(p).toString()))}; pnq=function(k){var p;if(!K$i.test("div"))throw Error("");if(H8T.indexOf("DIV")!==-1)throw Error("");var t="<div";k&&(t+=xKu(k));Array.isArray(p)||(p=p===void 0?[]:[p]);k9w.indexOf("DIV")!==-1?t+=">":(k=O86(p.map(function(J){return J instanceof G3?J:X6(String(J))})),t+=">"+k.toString()+"</div>"); return I_(t)}; xKu=function(k){for(var p="",t=Object.keys(k),J=0;J<t.length;J++){var q=t[J],F=k[q];if(!K$i.test(q))throw Error("");if(F!==void 0&&F!==null){if(/^on./i.test(q))throw Error("");tUe.indexOf(q.toLowerCase())!==-1&&(F=F instanceof vH?F.toString():DKi(String(F))||"about:invalid#zClosurez");F=q+'="'+X6(String(F))+'"';p+=" "+F}}return p}; JHT=function(k){var p=g.nS.apply(1,arguments);if(p.length===0)return sZ(k[0]);for(var t=k[0],J=0;J<p.length;J++)t+=encodeURIComponent(p[J])+k[J+1];return sZ(t)}; zJ=function(k){return k?new RO(BQ(k)):oBT||(oBT=new RO)}; eO=function(k,p){return typeof p==="string"?k.getElementById(p):p}; g.h2=function(k,p){return(p||document).getElementsByTagName(String(k))}; g.aO=function(k,p){return(p||document).querySelectorAll("."+k)}; g.lh=function(k,p){var t=p||document;t.getElementsByClassName?k=t.getElementsByClassName(k)[0]:(t=document,k=k?(p||t).querySelector(k?"."+k:""):g.uh(t,"*",k,p)[0]||null);return k||null}; g.uh=function(k,p,t,J){k=J||k;return(p=p&&p!="*"?String(p).toUpperCase():"")||t?k.querySelectorAll(p+(t?"."+t:"")):k.getElementsByTagName("*")}; jO=function(k,p){g.ZV(p,function(t,J){J=="style"?k.style.cssText=t:J=="class"?k.className=t:J=="for"?k.htmlFor=t:qbi.hasOwnProperty(J)?k.setAttribute(qbi[J],t):Va(J,"aria-")||Va(J,"data-")?k.setAttribute(J,t):k[J]=t})}; Fvq=function(k){k=k.document;k=k.compatMode=="CSS1Compat"?k.documentElement:k.body;return new g.YY(k.clientWidth,k.clientHeight)}; dsi=function(k){var p=$si(k);k=k.defaultView;return new g.NL(k.pageXOffset||p.scrollLeft,k.pageYOffset||p.scrollTop)}; $si=function(k){return k.scrollingElement?k.scrollingElement:g.Ok||k.compatMode!="CSS1Compat"?k.body||k.documentElement:k.documentElement}; KE=function(k){return k?k.defaultView:window}; xY=function(k,p,t){var J=arguments,q=document,F=J[1],d=HQ(q,String(J[0]));F&&(typeof F==="string"?d.className=F:Array.isArray(F)?d.className=F.join(" "):jO(d,F));J.length>2&&EBi(q,d,J,2);return d}; EBi=function(k,p,t,J){function q(S){S&&p.appendChild(typeof S==="string"?k.createTextNode(S):S)} for(;J<t.length;J++){var F=t[J];if(!g.uq(F)||g.lq(F)&&F.nodeType>0)q(F);else{a:{if(F&&typeof F.length=="number"){if(g.lq(F)){var d=typeof F.item=="function"||typeof F.item=="string";break a}if(typeof F==="function"){d=typeof F.item=="function";break a}}d=!1}g.y1(d?g.tj(F):F,q)}}}; g.kW=function(k){return HQ(document,k)}; HQ=function(k,p){p=String(p);k.contentType==="application/xhtml+xml"&&(p=p.toLowerCase());return k.createElement(p)}; g.pe=function(k){return document.createTextNode(String(k))}; g.t1=function(k,p){k.appendChild(p)}; g.J1=function(k){for(var p;p=k.firstChild;)k.removeChild(p)}; on=function(k,p,t){k.insertBefore(p,k.childNodes[t]||null)}; g.qa=function(k){return k&&k.parentNode?k.parentNode.removeChild(k):null}; g.FI=function(k,p){if(!k||!p)return!1;if(k.contains&&p.nodeType==1)return k==p||k.contains(p);if(typeof k.compareDocumentPosition!="undefined")return k==p||!!(k.compareDocumentPosition(p)&16);for(;p&&k!=p;)p=p.parentNode;return p==k}; BQ=function(k){return k.nodeType==9?k:k.ownerDocument||k.document}; g.$W=function(k,p){if("textContent"in k)k.textContent=p;else if(k.nodeType==3)k.data=String(p);else if(k.firstChild&&k.firstChild.nodeType==3){for(;k.lastChild!=k.firstChild;)k.removeChild(k.lastChild);k.firstChild.data=String(p)}else g.J1(k),k.appendChild(BQ(k).createTextNode(String(p)))}; Usj=function(k){return k.tagName=="A"&&k.hasAttribute("href")||k.tagName=="INPUT"||k.tagName=="TEXTAREA"||k.tagName=="SELECT"||k.tagName=="BUTTON"?!k.disabled&&(!k.hasAttribute("tabindex")||Sbu(k)):k.hasAttribute("tabindex")&&Sbu(k)}; Sbu=function(k){k=k.tabIndex;return typeof k==="number"&&k>=0&&k<32768}; EP=function(k,p,t){if(!p&&!t)return null;var J=p?String(p).toUpperCase():null;return dE(k,function(q){return(!J||q.nodeName==J)&&(!t||typeof q.className==="string"&&g.Kc(q.className.split(/\s+/),t))},!0)}; dE=function(k,p,t){k&&!t&&(k=k.parentNode);for(t=0;k;){if(p(k))return k;k=k.parentNode;t++}return null}; RO=function(k){this.T=k||g.B9.document||document}; Su=function(k){this.sQ=Qy(k)}; UP=function(k){this.sQ=Qy(k)}; fe=function(k){this.sQ=Qy(k)}; fL6=function(k,p){SU(k,UP,1,p)}; bZ=function(k){this.sQ=Qy(k)}; NBe=function(k,p){p=p===void 0?bXS:p;if(!Na){var t;k=(t=k.navigator)==null?void 0:t.userAgentData;if(!k||typeof k.getHighEntropyValues!=="function"||k.brands&&typeof k.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));t=(k.brands||[]).map(function(q){var F=new UP;F=T9(F,1,q.brand);return T9(F,2,q.version)}); fL6(zh(y3,2,dx(k.mobile)),t);Na=k.getHighEntropyValues(p)}var J=new Set(p);return Na.then(function(q){var F=y3.clone();J.has("platform")&&T9(F,3,q.platform);J.has("platformVersion")&&T9(F,4,q.platformVersion);J.has("architecture")&&T9(F,5,q.architecture);J.has("model")&&T9(F,6,q.model);J.has("uaFullVersion")&&T9(F,7,q.uaFullVersion);return F}).catch(function(){return y3.clone()})}; YW=function(k){this.sQ=Qy(k)}; yHT=function(k){this.sQ=Qy(k)}; TS=function(k){this.sQ=Qy(k,4)}; rE=function(k){this.sQ=Qy(k,36)}; Zr=function(k){this.sQ=Qy(k,19)}; A1=function(k,p){this.Ye=p=p===void 0?!1:p;this.uach=this.locale=null;this.Y=0;this.isFinal=!1;this.T=new Zr;Number.isInteger(k)&&this.T.UY(k);p||(this.locale=document.documentElement.getAttribute("lang"));Ybh(this,new YW)}; Ybh=function(k,p){dB(k.T,YW,1,p);y6(p,1)||ZL(p,1,1);k.Ye||(p=mu(k),Ns(p,5)||T9(p,5,k.locale));k.uach&&(p=mu(k),$B(p,fe,9)||dB(p,fe,9,k.uach))}; TBq=function(k,p){k.Y=p}; rHw=function(k){var p=p===void 0?bXS:p;var t=k.Ye?void 0:KE();t?NBe(t,p).then(function(J){k.uach=J;J=mu(k);dB(J,fe,9,k.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; mu=function(k){k=$B(k.T,YW,1);var p=$B(k,bZ,11);p||(p=new bZ,dB(k,bZ,11,p));return p}; ZXe=function(k){return g.Ok?"webkit"+k:k.toLowerCase()}; g.V3=function(k,p,t,J){this.C=k;this.X=p;this.T=this.N=k;this.S=t||0;this.Z=J||2}; g.Wg=function(k){k.T=Math.min(k.X,k.T*k.Z);k.N=Math.min(k.X,k.T+(k.S?Math.round(k.S*(Math.random()-.5)*2*k.T):0));k.Y++}; C40=function(k){this.sQ=Qy(k,8)}; F$q=function(k){this.sQ=Qy(k)}; sP=function(k){g.R.call(this);var p=this;this.componentId="";this.T=[];this.qO="";this.pageId=null;this.RY=this.NO=-1;this.Z=this.experimentIds=null;this.gy=this.Y8=this.S=this.C=0;this.IY=1;this.timeoutMillis=0;this.P0=!1;this.logSource=k.logSource;this.Xb=k.Xb||function(){}; this.N=new A1(k.logSource,k.Ye);this.network=k.network||null;this.E0=k.E0||null;this.B=k.pNp||null;this.sessionIndex=k.sessionIndex||null;this.wW=k.wW||!1;this.logger=null;this.withCredentials=!k.HB;this.Ye=k.Ye||!1;this.L=!this.Ye&&!!KE()&&!!KE().navigator&&KE().navigator.sendBeacon!==void 0;this.Oy=typeof URLSearchParams!=="undefined"&&!!(new URL(Dr())).searchParams&&!!(new URL(Dr())).searchParams.set;var t=ZL(new YW,1,1);Ybh(this.N,t);this.X=new g.V3(1E4,3E5,.1);k=AHj(this,k.YD);this.Y=new F6(this.X.getValue(), k);this.j6=new F6(6E5,k);this.wW||this.j6.start();this.Ye||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ma()}),document.addEventListener("pagehide",this.ma.bind(this)))}; AHj=function(k,p){return k.Oy?p?function(){p().then(function(){k.flush()})}:function(){k.flush()}:function(){}}; ms9=function(k){k.B||(k.B=Dr());try{return(new URL(k.B)).toString()}catch(p){return(new URL(k.B,KE().location.origin)).toString()}}; VUj=function(k,p,t){t=t===void 0?k.Xb():t;var J={},q=new URL(ms9(k));t&&(J.Authorization=t);k.sessionIndex&&(J["X-Goog-AuthUser"]=k.sessionIndex,q.searchParams.set("authuser",k.sessionIndex));k.pageId&&(Object.defineProperty(J,"X-Goog-PageId",{value:k.pageId}),q.searchParams.set("pageId",k.pageId));return{url:q.toString(),body:p,X7:1,requestHeaders:J,requestType:"POST",withCredentials:k.withCredentials,timeoutMillis:k.timeoutMillis}}; Dsi=function(k){WvT(k,function(p,t){p=new URL(p);p.searchParams.set("format","json");var J=!1;try{J=KE().navigator.sendBeacon(p.toString(),t.zH())}catch(q){}J||(k.L=!1);return J})}; WvT=function(k,p){if(k.T.length!==0){var t=new URL(ms9(k));t.searchParams.delete("format");var J=k.Xb();J&&t.searchParams.set("auth",J);t.searchParams.set("authuser",k.sessionIndex||"0");for(J=0;J<10&&k.T.length;++J){var q=k.T.slice(0,32),F=k.N.build(q,k.C,k.S,k.E0,k.Y8,k.gy);if(!p(t.toString(),F)){++k.S;break}k.C=0;k.S=0;k.Y8=0;k.gy=0;k.T=k.T.slice(q.length)}k.Y.enabled&&k.Y.stop()}}; Dr=function(){return"https://play.google.com/log?format=json&hasfast=true"}; Le=function(){this.uF=typeof AbortController!=="undefined"}; vg=function(k,p){g.R.call(this);this.logSource=k;this.sessionIndex=p;this.Xs="https://play.google.com/log?format=json&hasfast=true";this.Y=null;this.C=!1;this.network=null;this.componentId="";this.T=this.E0=null;this.N=!1;this.pageId=null}; s8T=function(k,p){k.Y=p;return k}; Lv6=function(k,p){k.network=p;return k}; vBh=function(k,p){k.T=p}; cHi=function(k){k.N=!0;return k}; cg=function(k,p,t,J,q,F,d){k=k===void 0?-1:k;p=p===void 0?"":p;t=t===void 0?"":t;J=J===void 0?!1:J;q=q===void 0?"":q;g.R.call(this);this.logSource=k;this.componentId=p;F?p=F:(k=new vg(k,"0"),k.componentId=p,g.z(this,k),t!==""&&(k.Xs=t),J&&(k.C=!0),q&&s8T(k,q),d&&Lv6(k,d),p=k.build());this.T=p}; nBi=function(k){this.T=k}; ne=function(k,p,t){this.Y=k;this.C=p;this.fields=t||[];this.T=new Map}; b8L=function(k){return k.fields.map(function(p){return p.fieldType})}; fYe=function(k){return k.fields.map(function(p){return p.fieldName})}; wE=function(k,p){ne.call(this,k,3,p)}; iZ=function(k,p){ne.call(this,k,2,p)}; g.Q3=function(k,p){this.type=k;this.currentTarget=this.target=p;this.defaultPrevented=this.Y=!1}; Pg=function(k,p){g.Q3.call(this,k?k.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.T=null;k&&this.init(k,p)}; GS=function(k){return!(!k||!k[wnh])}; Q8q=function(k,p,t,J,q){this.listener=k;this.proxy=null;this.src=p;this.type=t;this.capture=!!J;this.Jj=q;this.key=++iXj;this.removed=this.EB=!1}; In=function(k){k.removed=!0;k.listener=null;k.proxy=null;k.src=null;k.Jj=null}; XI=function(k){this.src=k;this.listeners={};this.T=0}; g.Rn=function(k,p){var t=p.type;t in k.listeners&&g.xn(k.listeners[t],p)&&(In(p),k.listeners[t].length==0&&(delete k.listeners[t],k.T--))}; Bg=function(k,p,t,J){for(var q=0;q<k.length;++q){var F=k[q];if(!F.removed&&F.listener==p&&F.capture==!!t&&F.Jj==J)return q}return-1}; g.eu=function(k,p,t,J,q){if(J&&J.once)return zS(k,p,t,J,q);if(Array.isArray(p)){for(var F=0;F<p.length;F++)g.eu(k,p[F],t,J,q);return null}t=gE(t);return GS(k)?k.listen(p,t,g.lq(J)?!!J.capture:!!J,q):P46(k,p,t,!1,J,q)}; P46=function(k,p,t,J,q,F){if(!p)throw Error("Invalid event type");var d=g.lq(q)?!!q.capture:!!q,S=uZ(k);S||(k[lZ]=S=new XI(k));t=S.add(p,t,J,d,F);if(t.proxy)return t;J=G90();t.proxy=J;J.src=k;J.listener=t;if(k.addEventListener)IL_||(q=d),q===void 0&&(q=!1),k.addEventListener(p.toString(),J,q);else if(k.attachEvent)k.attachEvent(Xni(p.toString()),J);else if(k.addListener&&k.removeListener)k.addListener(J);else throw Error("addEventListener and attachEvent are unavailable.");R3L++;return t}; G90=function(){function k(t){return p.call(k.src,k.listener,t)} var p=BBS;return k}; zS=function(k,p,t,J,q){if(Array.isArray(p)){for(var F=0;F<p.length;F++)zS(k,p[F],t,J,q);return null}t=gE(t);return GS(k)?k.m5(p,t,g.lq(J)?!!J.capture:!!J,q):P46(k,p,t,!0,J,q)}; z3S=function(k,p,t,J,q){if(Array.isArray(p))for(var F=0;F<p.length;F++)z3S(k,p[F],t,J,q);else J=g.lq(J)?!!J.capture:!!J,t=gE(t),GS(k)?k.qP(p,t,J,q):k&&(k=uZ(k))&&(p=k.bz(p,t,J,q))&&ju(p)}; ju=function(k){if(typeof k!=="number"&&k&&!k.removed){var p=k.src;if(GS(p))g.Rn(p.lO,k);else{var t=k.type,J=k.proxy;p.removeEventListener?p.removeEventListener(t,J,k.capture):p.detachEvent?p.detachEvent(Xni(t),J):p.addListener&&p.removeListener&&p.removeListener(J);R3L--;(t=uZ(p))?(g.Rn(t,k),t.T==0&&(t.src=null,p[lZ]=null)):In(k)}}}; Xni=function(k){return k in OP?OP[k]:OP[k]="on"+k}; BBS=function(k,p){if(k.removed)k=!0;else{p=new Pg(p,this);var t=k.listener,J=k.Jj||k.src;k.EB&&ju(k);k=t.call(J,p)}return k}; uZ=function(k){k=k[lZ];return k instanceof XI?k:null}; gE=function(k){if(typeof k==="function")return k;k[Ke]||(k[Ke]=function(p){return k.handleEvent(p)}); return k[Ke]}; g.Hg=function(){g.R.call(this);this.lO=new XI(this);this.K0=this;this.Cn=null}; xW=function(k,p,t,J){p=k.lO.listeners[String(p)];if(!p)return!0;p=p.concat();for(var q=!0,F=0;F<p.length;++F){var d=p[F];if(d&&!d.removed&&d.capture==t){var S=d.listener,U=d.Jj||d.src;d.EB&&g.Rn(k.lO,d);q=S.call(U,J)!==!1&&q}}return q&&!J.defaultPrevented}; p9=function(k,p){this.N=k;this.C=p;this.Y=0;this.T=null}; e3T=function(k,p){k.C(p);k.Y<100&&(k.Y++,p.next=k.T,k.T=p)}; oq=function(k){k=tM(k);JM||(JM=h3i());JM(k)}; h3i=function(){if(typeof MessageChannel!=="undefined"){var k=new MessageChannel,p={},t=p;k.port1.onmessage=function(){if(p.next!==void 0){p=p.next;var J=p.oQ;p.oQ=null;J()}}; return function(J){t.next={oQ:J};t=t.next;k.port2.postMessage(0)}}return function(J){g.B9.setTimeout(J,0)}}; qn=function(){this.Y=this.T=null}; Fq=function(){this.next=this.scope=this.T=null}; g.Eo=function(k,p){$J||aLj();dv||($J(),dv=!0);MU_.add(k,p)}; aLj=function(){var k=Promise.resolve(void 0);$J=function(){k.then(gBT)}}; gBT=function(){for(var k;k=MU_.remove();){try{k.T.call(k.scope)}catch(p){Cc(p)}e3T(u$T,k)}dv=!1}; Sr=function(k){return function(){return k}}; g.Uo=function(){}; lLe=function(k){var p=p||0;return function(){return k.apply(this,Array.prototype.slice.call(arguments,0,p))}}; f9=function(k){var p=!1,t;return function(){p||(t=k(),p=!0);return t}}; bg=function(k){var p=k;return function(){if(p){var t=p;p=null;t()}}}; j8h=function(k,p){var t=0;return function(J){g.B9.clearTimeout(t);var q=arguments;t=g.B9.setTimeout(function(){k.apply(p,q)},50)}}; g.yu=function(k){this.T=0;this.Z=void 0;this.C=this.Y=this.N=null;this.X=this.S=!1;if(k!=g.Uo)try{var p=this;k.call(void 0,function(t){Nn(p,2,t)},function(t){Nn(p,3,t)})}catch(t){Nn(this,3,t)}}; OXh=function(){this.next=this.context=this.Y=this.N=this.T=null;this.C=!1}; YJ=function(k,p,t){var J=Kvq.get();J.N=k;J.Y=p;J.context=t;return J}; g.Tq=function(k){if(k instanceof g.yu)return k;var p=new g.yu(g.Uo);Nn(p,2,k);return p}; rv=function(k){return new g.yu(function(p,t){t(k)})}; g.xse=function(k,p,t){HXh(k,p,t,null)||g.Eo(g.xh(p,k))}; k3T=function(k){return new g.yu(function(p,t){k.length||p(void 0);for(var J,q=0;q<k.length;q++)J=k[q],g.xse(J,p,t)})}; tcw=function(){var k,p,t=new g.yu(function(J,q){k=J;p=q}); return new pHT(t,k,p)}; JYL=function(k,p,t,J){Zz(k,YJ(p||g.Uo,t||null,J))}; C9=function(k,p){p=tM(p);p=YJ(p,p);p.C=!0;Zz(k,p);return k}; oTi=function(k,p){if(k.T==0)if(k.N){var t=k.N;if(t.Y){for(var J=0,q=null,F=null,d=t.Y;d&&(d.C||(J++,d.T==k&&(q=d),!(q&&J>1)));d=d.next)q||(F=d);q&&(t.T==0&&J==1?oTi(t,p):(F?(J=F,J.next==t.C&&(t.C=J),J.next=J.next.next):qZS(t),Fa6(t,q,3,p)))}k.N=null}else Nn(k,3,p)}; Zz=function(k,p){k.Y||k.T!=2&&k.T!=3||$pq(k);k.C?k.C.next=p:k.Y=p;k.C=p}; dpi=function(k,p,t,J){var q=YJ(null,null,null);q.T=new g.yu(function(F,d){q.N=p?function(S){try{var U=p.call(J,S);F(U)}catch(f){d(f)}}:F; q.Y=t?function(S){try{var U=t.call(J,S);U===void 0&&S instanceof AM?d(S):F(U)}catch(f){d(f)}}:d}); q.T.N=k;Zz(k,q);return q.T}; Nn=function(k,p,t){k.T==0&&(k===t&&(p=3,t=new TypeError("Promise cannot resolve to itself")),k.T=1,HXh(t,k.viy,k.kHy,k)||(k.Z=t,k.T=p,k.N=null,$pq(k),p!=3||t instanceof AM||ETi(k,t)))}; HXh=function(k,p,t,J){if(k instanceof g.yu)return JYL(k,p,t,J),!0;if(k)try{var q=!!k.$goog_Thenable}catch(d){q=!1}else q=!1;if(q)return k.then(p,t,J),!0;if(g.lq(k))try{var F=k.then;if(typeof F==="function")return SZ0(k,F,p,t,J),!0}catch(d){return t.call(J,d),!0}return!1}; SZ0=function(k,p,t,J,q){function F(U){S||(S=!0,J.call(q,U))} function d(U){S||(S=!0,t.call(q,U))} var S=!1;try{p.call(k,d,F)}catch(U){F(U)}}; $pq=function(k){k.S||(k.S=!0,g.Eo(k.U$,k))}; qZS=function(k){var p=null;k.Y&&(p=k.Y,k.Y=p.next,p.next=null);k.Y||(k.C=null);return p}; Fa6=function(k,p,t,J){if(t==3&&p.Y&&!p.C)for(;k&&k.X;k=k.N)k.X=!1;if(p.T)p.T.N=null,Up9(p,t,J);else try{p.C?p.N.call(p.context):Up9(p,t,J)}catch(q){fb0.call(null,q)}e3T(Kvq,p)}; Up9=function(k,p,t){p==2?k.N.call(k.context,t):k.Y&&k.Y.call(k.context,t)}; ETi=function(k,p){k.X=!0;g.Eo(function(){k.X&&fb0.call(null,p)})}; AM=function(k){rq.call(this,k)}; pHT=function(k,p,t){this.promise=k;this.resolve=p;this.reject=t}; g.m5=function(k,p){g.Hg.call(this);this.Th=k||1;this.Zd=p||g.B9;this.ub=(0,g.H9)(this.lOh,this);this.Kv=g.kn()}; g.Vu=function(k,p,t){if(typeof k==="function")t&&(k=(0,g.H9)(k,t));else if(k&&typeof k.handleEvent=="function")k=(0,g.H9)(k.handleEvent,k);else throw Error("Invalid listener argument");return Number(p)>2147483647?-1:g.B9.setTimeout(k,p||0)}; Wt=function(k,p){var t=null;return(new g.yu(function(J,q){t=g.Vu(function(){J(p)},k); t==-1&&q(Error("Failed to schedule timer."))})).pU(function(J){g.B9.clearTimeout(t); throw J;})}; g.Dz=function(k){g.R.call(this);this.Z=k;this.C=0;this.N=100;this.X=!1;this.Y=new Map;this.S=new Set;this.flushInterval=3E4;this.T=new g.m5(this.flushInterval);this.T.listen("tick",this.Ky,!1,this);g.z(this,this.T)}; ULh=function(k){k.T.enabled||k.T.start();k.C++;k.C>=k.N&&k.Ky()}; fV6=function(k,p){return k.S.has(p)?void 0:k.Y.get(p)}; bEu=function(k){for(var p=0;p<k.length;p++)k[p].clear()}; N89=function(k){switch(k){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; y2L=function(k){switch(k){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; so=function(k,p,t){t=t===void 0?{}:t;p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.code=k;this.metadata=t;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; g.L9=function(k){return(new Ykj).zH(k)}; Ykj=function(){}; vt=function(k,p,t){if(p==null)t.push("null");else{if(typeof p=="object"){if(Array.isArray(p)){var J=p;p=J.length;t.push("[");for(var q="",F=0;F<p;F++)t.push(q),vt(k,J[F],t),q=",";t.push("]");return}if(p instanceof String||p instanceof Number||p instanceof Boolean)p=p.valueOf();else{t.push("{");q="";for(J in p)Object.prototype.hasOwnProperty.call(p,J)&&(F=p[J],typeof F!="function"&&(t.push(q),T8e(J,t),t.push(":"),vt(k,F,t),q=","));t.push("}");return}}switch(typeof p){case "string":T8e(p,t);break;case "number":t.push(isFinite(p)&& !isNaN(p)?String(p):"null");break;case "boolean":t.push(String(p));break;case "function":t.push("null");break;default:throw Error("Unknown type: "+typeof p);}}}; T8e=function(k,p){p.push('"',k.replace(r2q,function(t){var J=ZEu[t];J||(J="\\u"+(t.charCodeAt(0)|65536).toString(16).slice(1),ZEu[t]=J);return J}),'"')}; Chu=function(k){switch(k){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; A2T=function(){}; ct=function(){}; n9=function(k,p,t,J,q,F,d){var S="";k&&(S+=k+":");t&&(S+="//",p&&(S+=p+"@"),S+=t,J&&(S+=":"+J));q&&(S+=q);F&&(S+="?"+F);d&&(S+="#"+d);return S}; Qu=function(k){return k?decodeURI(k):k}; g.Gq=function(k,p){return p.match(Pt)[k]||null}; g.Iq=function(k){return Qu(g.Gq(3,k))}; g.mLh=function(k){k=k.match(Pt);return n9(k[1],k[2],k[3],k[4])}; Xq=function(k){k=k.match(Pt);return n9(null,null,null,null,k[5],k[6],k[7])}; VOT=function(k){var p=k.indexOf("#");return p<0?k:k.slice(0,p)}; Rq=function(k,p){if(k){k=k.split("&");for(var t=0;t<k.length;t++){var J=k[t].indexOf("="),q=null;if(J>=0){var F=k[t].substring(0,J);q=k[t].substring(J+1)}else F=k[t];p(F,q?Ku(q):"")}}}; Bt=function(k,p){if(!p)return k;var t=k.indexOf("#");t<0&&(t=k.length);var J=k.indexOf("?");if(J<0||J>t){J=t;var q=""}else q=k.substring(J+1,t);k=[k.slice(0,J),q,k.slice(t)];t=k[1];k[1]=p?t?t+"&"+p:p:t;return k[0]+(k[1]?"?"+k[1]:"")+k[2]}; zq=function(k,p,t){if(Array.isArray(p))for(var J=0;J<p.length;J++)zq(k,String(p[J]),t);else p!=null&&t.push(k+(p===""?"":"="+g.OZ(p)))}; WcT=function(k,p){var t=[];for(p=p||0;p<k.length;p+=2)zq(k[p],k[p+1],t);return t.join("&")}; g.er=function(k){var p=[],t;for(t in k)zq(t,k[t],p);return p.join("&")}; DLL=function(k,p){var t=arguments.length==2?WcT(arguments[1],0):WcT(arguments,1);return Bt(k,t)}; g.hM=function(k,p){p=g.er(p);return Bt(k,p)}; aq=function(k,p,t){t=t!=null?"="+g.OZ(t):"";return Bt(k,p+t)}; sO6=function(k,p,t,J){for(var q=t.length;(p=k.indexOf(t,p))>=0&&p<J;){var F=k.charCodeAt(p-1);if(F==38||F==63)if(F=k.charCodeAt(p+q),!F||F==61||F==38||F==35)return p;p+=q+1}return-1}; Mn=function(k,p){var t=k.search(LcS),J=sO6(k,0,p,t);if(J<0)return null;var q=k.indexOf("&",J);if(q<0||q>t)q=t;J+=p.length+1;return Ku(k.slice(J,q!==-1?q:0))}; gv=function(k,p){for(var t=k.search(LcS),J=0,q,F=[];(q=sO6(k,J,p,t))>=0;)F.push(k.substring(J,q)),J=Math.min(k.indexOf("&",q)+1||t,t);F.push(k.slice(J));return F.join("").replace(vYi,"$1")}; c2M=function(k,p,t){return aq(gv(k,p),p,t)}; g.ug=function(k){g.Hg.call(this);this.headers=new Map;this.j6=k||null;this.N=!1;this.T=null;this.B="";this.Y=0;this.C="";this.X=this.NO=this.L=this.Y8=!1;this.gy=0;this.S=null;this.P0="";this.Z=!1}; wQT=function(k,p,t,J,q,F,d){var S=new g.ug;nYi.push(S);p&&S.listen("complete",p);S.m5("ready",S.h1);F&&(S.gy=Math.max(0,F));d&&(S.Z=d);S.send(k,t,J,q)}; QOq=function(k,p){k.N=!1;k.T&&(k.X=!0,k.T.abort(),k.X=!1);k.C=p;k.Y=5;iEi(k);lg(k)}; iEi=function(k){k.Y8||(k.Y8=!0,k.dispatchEvent("complete"),k.dispatchEvent("error"))}; Phi=function(k){if(k.N&&typeof jr!="undefined")if(k.L&&g.Oo(k)==4)setTimeout(k.Dp.bind(k),0);else if(k.dispatchEvent("readystatechange"),k.isComplete()){k.getStatus();k.N=!1;try{if(K9(k))k.dispatchEvent("complete"),k.dispatchEvent("success");else{k.Y=6;try{var p=g.Oo(k)>2?k.T.statusText:""}catch(t){p=""}k.C=p+" ["+k.getStatus()+"]";iEi(k)}}finally{lg(k)}}}; lg=function(k,p){if(k.T){k.S&&(clearTimeout(k.S),k.S=null);var t=k.T;k.T=null;p||k.dispatchEvent("ready");try{t.onreadystatechange=null}catch(J){}}}; K9=function(k){var p=k.getStatus();a:switch(p){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break a;default:t=!1}if(!t){if(p=p===0)k=g.Gq(1,String(k.B)),!k&&g.B9.self&&g.B9.self.location&&(k=g.B9.self.location.protocol.slice(0,-1)),p=!GJ_.test(k?k.toLowerCase():"");t=p}return t}; g.Oo=function(k){return k.T?k.T.readyState:0}; g.Ht=function(k){try{return k.T?k.T.responseText:""}catch(p){return""}}; g.xJ=function(k){try{if(!k.T)return null;if("response"in k.T)return k.T.response;switch(k.P0){case "":case "text":return k.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in k.T)return k.T.mozResponseArrayBuffer}return null}catch(p){return null}}; g.IV0=function(k){var p={};k=(k.T&&g.Oo(k)>=2?k.T.getAllResponseHeaders()||"":"").split("\r\n");for(var t=0;t<k.length;t++)if(!g.WW(k[t])){var J=zI_(k[t]),q=J[0];J=J[1];if(typeof J==="string"){J=J.trim();var F=p[q]||[];p[q]=F;F.push(J)}}return A2(p,function(d){return d.join(", ")})}; g.kz=function(k,p){return k.T?k.T.getResponseHeader(p):null}; pB=function(){}; Jk=function(k,p){this.logger=k;this.event=p;this.startTime=tk()}; om=function(){fc.apply(this,arguments);this.u3={Aw:function(){return[]}}}; q6=function(k,p,t){var J=tk();p=p();k.lj(t,tk()-J);return p}; FZ=function(){om.apply(this,arguments)}; $z=function(k){om.call(this);var p=this;this.logger=k;this.u3={Fuh:function(){return p.logger}, Aw:function(){return p.logger.u3.Aw()}}; this.addOnDisposeCallback(function(){return void p.logger.dispose()})}; XQq=function(k){return{gip:new VMq(k),errorCount:new LjM(k),eventCount:new D_0(k),Bv:new siT(k),Ath:new Wj9(k),uSp:new vhL(k),D2:new cw9(k),s3p:new nhM(k)}}; RVj=function(k,p,t,J){k=cHi(Lv6(s8T(new vg(1828,"0"),k),new pB));p.length&&vBh(k,Sfi(new EkS,p));J!==void 0&&(k.Xs=J);var q=new cg(1828,"","",!1,"",k.build());g.z(q,k);var F=new g.Dz({flush:function(d){try{q.flush(d)}catch(S){t(S)}}}); F.addOnDisposeCallback(function(){setTimeout(function(){try{F.Ky()}finally{q.dispose()}})}); F.N=1E5;F.flushInterval=3E4;F.T.setInterval(3E4);return F}; dg=function(k,p){g.R.call(this);var t=this;this.callback=k;this.Y=p;this.T=-p;this.addOnDisposeCallback(function(){return void clearTimeout(t.wf)})}; B8_=function(k){if(k.wf===void 0){var p=Math.max(0,k.T+k.Y-tk());k.wf=setTimeout(function(){try{k.callback()}finally{k.T=tk(),k.wf=void 0}},p)}}; EL=function(k,p,t){om.call(this);this.metrics=k;this.nH=p;this.yG=t}; Sw=function(k,p){p=p===void 0?[]:p;var t={nH:k.nH||"_",yG:k.yG||"",WY:k.WY||[],yH:k.yH|0,Xs:k.Xs,GM:k.GM||function(){}, Dj:k.Dj||function(F,d){return RVj(F,d,t.GM,t.Xs)}},J=t.Dj("47",t.WY.concat(p)); EL.call(this,XQq(J),t.nH,t.yG);var q=this;this.N=p;this.u3={Aw:function(){return q.options.WY.concat(q.N).sort(function(F,d){return F-d})}}; this.options=t;this.service=J;this.Y=!k.Dj;this.T=new dg(function(){return void q.service.Ky()},t.yH); this.addOnDisposeCallback(function(){q.T.dispose();q.Y&&q.service.dispose()})}; tk=function(){var k,p,t;return(t=(k=globalThis.performance)==null?void 0:(p=k.now)==null?void 0:p.call(k))!=null?t:Date.now()}; UL=function(k){this.sQ=Qy(k)}; fB=function(k){this.sQ=Qy(k)}; bO=function(k){this.sQ=Qy(k,0,bO.messageId)}; $n=function(k){this.sQ=Qy(k)}; N6=function(k){this.sQ=Qy(k)}; g.yM=function(){var k=this;this.promise=new Promise(function(p,t){k.resolve=p;k.reject=t})}; zV_=function(k,p,t){if(k.disable)return new FZ;p=p?Cqe(p):[];if(t)return t.vA(p),t.share();k={nH:k.nH,yG:k.yG,WY:k.Js,yH:k.lBy,Xs:k.Xs,GM:k.GM,Dj:k.Dj};t=p;t=t===void 0?[]:t;return new Sw(k,t)}; Yz=function(k){function p(T,A,V,D){Promise.resolve().then(function(){U.done();S.tY();S.dispose();d.resolve({m7:T,LGr:A,lw0:V,xap:D})})} function t(T,A,V,D){if(!J.logger.MO()){var v="k";A?v="h":V&&(v="u");v!=="k"?D!==0&&(J.logger.cV(v),J.logger.lj(v,T)):J.Y<=0?(J.logger.cV(v),J.logger.lj(v,T),J.Y=Math.floor(Math.random()*200)):J.Y--}} g.R.call(this);var J=this;this.Y=Math.floor(Math.random()*200);this.T=new N6;if("challenge"in k&&eVM(k.challenge)){var q=Ns(k.challenge,4);var F=Ns(k.challenge,5);Ns(k.challenge,7)&&(this.T=hVi(Ns(k.challenge,7)))}else q=k.program,F=k.globalName;this.addOnDisposeCallback(function(){var T,A,V;return g.Q(function(D){if(D.T==1)return g.n(D,J.N,2);T=D.Y;A=T.LGr;(V=A)==null||V();g.CS(D)})}); this.logger=zV_(k.qF||{},this.T,k.cX);g.z(this,this.logger);var d=new g.yM;this.N=d.promise;this.logger.cV("t");var S=this.logger.share(),U=new Jk(S,"t");if(!g.B9[F])throw this.logger.Y4(25),Error("EGOU");if(!g.B9[F].a)throw this.logger.Y4(26),Error("ELIU");try{var f=g.B9[F].a;F=[];for(var b=[],N=Cqe(this.T),y=0;y<N.length;y++)F.push(N[y]),b.push(1);var Y=AwM(this.T);for(N=0;N<Y.length;N++)F.push(Y[N]),b.push(2);this.C=g.Z(f(q,p,!0,k.Mr,t,[F,b],Ns(this.T,5))).next().value;this.FJ=d.promise.then(function(){})}catch(T){throw this.logger.Y4(28), T; }}; aV6=function(k){if(!k)return null;k=fX(k,4);return k===null||k===void 0?null:sZ(k)}; TC=function(){this.Y={};this.T=null}; rg=function(){TC.instance||(TC.instance=new TC);return TC.instance}; ZS=function(k,p){return MO_(k,$B(p,UL,1),$B(p,fB,2),Ns(p,3))}; MO_=function(k,p,t,J){if(!p&&!t)return Promise.resolve();if(!J)return gY9(p,t);var q;(q=k.Y)[J]||(q[J]=new Promise(function(F,d){gY9(p,t).then(function(){k.T=J;F()},function(S){delete k.Y[J]; d(S)})})); return k.Y[J]}; gY9=function(k,p){return p?u6j(p):k?lV0(k):Promise.resolve()}; u6j=function(k){return new Promise(function(p,t){var J=g.kW("SCRIPT"),q=aV6(k);g.a_(J,q);J.onload=function(){g.qa(J);p()}; J.onerror=function(){g.qa(J);t(Error("EWLS"))}; (g.h2("HEAD")[0]||document.documentElement).appendChild(J)})}; lV0=function(k){return new Promise(function(p){var t=g.kW("SCRIPT");if(k){var J=fX(k,6);J=J===null||J===void 0?null:sKw(J)}else J=null;t.textContent=ec(J);hY(t);(g.h2("HEAD")[0]||document.documentElement).appendChild(t);g.qa(t);p()})}; CB=function(k){this.sQ=Qy(k)}; jOw=function(k,p){return rB(k,1,p)}; Ak=function(k){this.sQ=Qy(k)}; mk=function(k,p,t){this.client=k;this.WM=p;this.T=t}; Kce=function(k,p,t,J,q){var F,d,S,U,f;return g.Q(function(b){if(b.T==1)return F=jOw(new CB,k.WM),p&&rB(F,2,p),t&&rB(F,3,t),d=k.T(),g.n(b,J.XN("c",q,k.client.create(F,d)),2);S=b.Y;U=v4(jt(S,2));if(U.length)return b.return(q6(J,function(){for(var N=new Uint8Array(U.length),y=0;y<U.length;y++)N[y]=U[y]+97;if(g.B9.TextDecoder)N=(new TextDecoder).decode(N);else if(N.length<=8192)N=String.fromCharCode.apply(null,N);else{y="";for(var Y=0;Y<N.length;Y+=8192)y+=String.fromCharCode.apply(null,Array.prototype.slice.call(N, Y,Y+8192));N=y}return OET(N)},"U")); f=$B(S,bO,1);if(!f)throw Error("Missing field");return b.return(f)})}; kSi=function(k,p,t,J){var q,F;return g.Q(function(d){q=k.T();var S=new Ak;S=rB(S,1,k.WM);F=rB(S,2,p);S=d.return;var U=t.XN;var f=k.client;f=HEi(f.T,f.Y+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",F,q||{},xLS);return S.call(d,U.call(t,"g",J,f))})}; pgi=function(k,p,t,J,q){return k instanceof mk?Kce(k,J,q,p,t):k.gq(J,q)}; VM=function(k){g.R.call(this);var p=this;this.options=k;this.S=new g.yM;this.FJ=this.S.promise;this.X=new g.yM;this.B=1;this.N=new g.yM;this.C=[];this.LY=k.LY||function(){}; this.logger=new $z(zV_(k.qF||{}));tuu(this,k.Xu,k.Jx,k.YmY,k.xVp,Object.assign({},J19,k.IZ||{}));this.addOnDisposeCallback(function(){return void oWh(p)})}; qP_=function(k){var p;return g.Q(function(t){if(k.MO())throw Error("Already disposed");(p=k.T)!=null&&(p.endTimeMs=0,p.RX(1));return g.n(t,k.N.promise,0)})}; oWh=function(k){k.Z=Error("Cancelled by dispose");k.X.resolve();UR(k.S.promise);k.S.reject(Error("Cancelled by dispose"));k.logger.dispose();Promise.all(k.C).then(function(){var t;return g.Q(function(J){(t=k.Y)==null||t.dispose();k.Y=void 0;g.CS(J)})}); k.C=[];var p;(p=k.T)!=null&&(p.endTimeMs=0,p.RX(1));UR(k.N.promise);k.N.reject(Error("Cancelled by dispose"))}; Fu6=function(k,p){var t=k.LY;k.LY=function(){t();p()}}; $aT=function(k,p){k.MO()||(k.Y=p,k.logger.update(p.Ce()),k.X.resolve(),k.S.resolve(void 0),k.LY())}; daS=function(k,p){p&&(Promise.all(k.C).then(function(){return void p.dispose()}),k.C=[])}; WM=function(k,p){k.B=p;var t,J;(J=(t=k.options).dxO)==null||J.call(t,p)}; EW9=function(k){k.MO()||(k.N.resolve(),k.N=new g.yM)}; tuu=function(k,p,t,J,q,F){J=J===void 0?rg():J;q=q===void 0?Promise.resolve(void 0):q;var d,S,U,f,b,N,y,Y,T,A,V,D;g.Q(function(v){switch(v.T){case 1:return g.n(v,0,3);case 3:S=null;if(!d){v.oY(6);break}WM(k,7);g.Aw(v,7);return g.n(v,DS(d.snapshot({}),F.BX,function(){return Promise.resolve("E:CTO")}),9); case 9:S=v.Y;g.Vi(v,6);break;case 7:g.W9(v),S="E:UCE";case 6:U=void 0,f=d?F.GK:F.Hv,b=new g.V3(f,F.d9,F.zK,F.w9),N=0;case 10:if(!(N<F.maxAttempts)){v.oY(12);break}if(N===0){v.oY(13);break}WM(k,0);k.T=new SP6(b.getValue(),F.ej,F.GX);return g.n(v,k.T.promise,14);case 14:y=v.Y,k.T=void 0,y===1?(N=0,b.reset()):g.Wg(b);case 13:g.Aw(v,15);Y=void 0;if(t){Y=t;v.oY(17);break}WM(k,5);T=J.T;return g.n(v,DS(pgi(p,k.logger,N,T,S),F.yh,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18); case 18:Y=v.Y;case 17:return WM(k,3),g.n(v,DS(ZS(J,Y),F.Tsp,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19); case 19:return WM(k,8),g.n(v,q,20);case 20:return A=new Yz({challenge:Y,qF:k.options.qF,Mr:k.options.Mr}),g.n(v,DS(A.FJ,F.JD6,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21); case 21:U=A;v.oY(12);break;case 15:V=g.W9(v),k.handleError(V),EW9(k);case 11:N++;v.oY(10);break;case 12:if(k.MO()){v.oY(5);break}U&&(t=void 0,daS(k,d),d=U,$aT(k,U),EW9(k));WM(k,2);k.T=new SP6(F.Tah,F.ej,F.GX);return g.n(v,k.T.promise,22);case 22:k.T=void 0;if(k.MO()){v.oY(5);break}v.oY(3);break;case 5:(D=d)==null||D.dispose(),g.CS(v)}})}; DS=function(k,p,t){var J,q=new Promise(function(F){J=setTimeout(F,p)}); return Promise.race([k.finally(function(){return void clearTimeout(J)}), q.then(t)])}; SP6=function(k,p,t){function J(){var F=q.endTimeMs-Date.now();F<=t?q.RX(0):setTimeout(J,Math.min(F,p))} var q=this;this.endTimeMs=Date.now()+k;this.promise=new Promise(function(F){q.RX=F}); J()}; Uae=function(k,p){try{return globalThis.sessionStorage.setItem(k,p),!0}catch(t){return!1}}; LB=function(k,p,t,J){p=p===void 0?0:p;t=t===void 0?k.length:t;var q=0;for(J&&(q=LB(J));p<t;p++)J=typeof k==="string"?k.charCodeAt(p):k[p],q=fri(31,q)+J|0;return q}; beT=function(k,p){return[LB(k,0,k.length>>1,p),LB(k,k.length>>1)]}; NET=function(k){var p=g.Z(beT(k,vM));k=p.next().value;p=p.next().value;return k.toString(16)+p.toString(16)}; y1e=function(k,p){var t=beT(p);k=new Uint32Array(k.buffer);p=k[0];var J=g.Z(t);t=J.next().value;J=J.next().value;for(var q=1;q<k.length;q+=2){for(var F=p,d=q,S=t,U=J,f=0;f<22;f++)d=d>>>8|d<<24,d+=F|0,d^=S+38293,F=F<<3|F>>>29,F^=d,U=U>>>8|U<<24,U+=S|0,U^=f+38293,S=S<<3|S>>>29,S^=U;F=[F,d];k[q]^=F[0];q+1<k.length&&(k[q+1]^=F[1])}}; YP6=function(k,p,t,J,q){var F=(4-(vM.length+t.length)%4)%4,d=new Uint8Array(4+F+vM.length+4+t.length),S=new DataView(d.buffer),U=0;S.setUint32(U,Math.random()*4294967295);U=U+4+F;d.set(vM,U);U+=vM.length;S.setUint32(U,q);d.set(t,U+4);y1e(d,J);return k.vN(p,function(f){return void globalThis.sessionStorage.removeItem(f)})?Uae(p,g.Zn(d))?"s":"t":"i"}; TEh=function(k,p){var t=globalThis.sessionStorage.getItem(k);if(!t)return["m"];try{var J=Aj(t);y1e(J,p)}catch(q){return globalThis.sessionStorage.removeItem(k),["c"]}for(p=4;p<7&&J[p]===0;)p++;for(t=0;t<vM.length;t++)if(J[p++]!==vM[t])return globalThis.sessionStorage.removeItem(k),["d"];t=(new DataView(J.buffer)).getUint32(p);return Math.floor(Date.now()/1E3)>=t?(globalThis.sessionStorage.removeItem(k),["e"]):["a",new Uint8Array(J.buffer,p+4)]}; cM=function(k,p,t){t=t===void 0?[]:t;this.maxItems=k;this.T=p===void 0?0:p;this.Y=t}; r1T=function(k){var p=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!p)return new cM(k);var t=p.split(",");if(t.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cM(k);p=t.slice(1);p.length===1&&p[0]===""&&(p=[]);t=Number(t[0]);return isNaN(t)||t<0||t>p.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cM(k)):new cM(k,t,p)}; Ze0=function(k,p){this.logger=p;try{var t=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(J){t=!1}t&&(this.index=r1T(k))}; CZe=function(k,p,t,J,q){var F=k.index?q6(k.logger,function(){return YP6(k.index,NET(p),t,J,q)},"W"):"u"; k.logger.Yj(F)}; A1u=function(k,p,t){var J=g.Z(k.index?q6(k.logger,function(){return TEh(NET(p),t)},"R"):["u"]),q=J.next().value; J=J.next().value;k.logger.TM(q);return J}; Wu9=function(k){function p(){t-=J;t-=q;t^=q>>>13;J-=q;J-=t;J^=t<<8;q-=t;q-=J;q^=J>>>13;t-=J;t-=q;t^=q>>>12;J-=q;J-=t;J^=t<<16;q-=t;q-=J;q^=J>>>5;t-=J;t-=q;t^=q>>>3;J-=q;J-=t;J^=t<<10;q-=t;q-=J;q^=J>>>15} k=maM(k);for(var t=2654435769,J=2654435769,q=314159265,F=k.length,d=F,S=0;d>=12;d-=12,S+=12)t+=nB(k,S),J+=nB(k,S+4),q+=nB(k,S+8),p();q+=F;switch(d){case 11:q+=k[S+10]<<24;case 10:q+=k[S+9]<<16;case 9:q+=k[S+8]<<8;case 8:J+=k[S+7]<<24;case 7:J+=k[S+6]<<16;case 6:J+=k[S+5]<<8;case 5:J+=k[S+4];case 4:t+=k[S+3]<<24;case 3:t+=k[S+2]<<16;case 2:t+=k[S+1]<<8;case 1:t+=k[S+0]}p();return VuL.toString(q)}; maM=function(k){for(var p=[],t=0;t<k.length;t++)p.push(k.charCodeAt(t));return p}; nB=function(k,p){return k[p+0]+(k[p+1]<<8)+(k[p+2]<<16)+(k[p+3]<<24)}; wg=function(k){g.R.call(this);var p=this;this.logger=k;this.Y=new g.yM;this[DaT]=this.dispose;this.addOnDisposeCallback(function(){UR(p.Y.promise);p.Y.reject()})}; iO=function(k,p){var t=setTimeout(function(){k.Y.resolve()},p); k.addOnDisposeCallback(function(){return void clearTimeout(t)})}; QM=function(k,p,t,J){return q6(k.logger,function(){return t?k.Fy(p,J):k.Qj(p,J)},k.T)}; PM=function(k,p,t,J){wg.call(this,k);this.C=p;this.S=t;this.T="m";this.N="x";this.X=0;iO(this,J)}; GC=function(k,p,t){wg.call(this,k);this.C=p;this.T="f";this.N="z";iO(this,t)}; XZ=function(k,p,t){wg.call(this,k);this.C=p;this.T="w";this.N="z";iO(this,t)}; Rm=function(k,p){wg.call(this,k);this.error=p;this.T="e";this.N="y"}; sni=function(k,p){var t=(p(k.error.message)+":"+p(k.error.stack)).substring(0,2048);p=t.length+1;t=BM(t);var J=new Uint8Array(4+t.length);J.set([42,p&127|128,p>>7,k.error.code]);J.set(t,4);return J}; zC=function(k,p,t){wg.call(this,k);this.C=p;this.clientState=t;this.T="S";this.N="q"}; BM=function(k){return globalThis.TextEncoder?(new TextEncoder).encode(k):g.m4(k)}; Luu=function(k,p,t){return k instanceof mk?kSi(k,t,p,1):k.w3(t)}; ew=function(k,p,t){g.R.call(this);var J=this;this.logger=k;this.onError=p;this.state=t;this.Z=0;this.Y=void 0;this.addOnDisposeCallback(function(){J.T&&(J.T.dispose(),J.T=void 0)})}; vWu=function(k,p){p=p instanceof qQ?p:new qQ(5,"TVD:error",p);return k.reportError(p)}; hk=function(k,p,t){try{if(k.MO())throw new qQ(21,"BNT:disposed");if(!k.T&&k.Y)throw k.Y;var J,q;return(q=(J=c1i(k,p,t))!=null?J:nWh(k,p,t))!=null?q:wg6(k,p,t)}catch(F){if(!p.GT)throw vWu(k,F);return ie_(k,t,F)}}; c1i=function(k,p,t){var J;return(J=k.T)==null?void 0:QM(J,function(){return am(k,p)},t,function(q){var F; if(k.T instanceof PM&&((F=p.i6)==null?0:F.l7))try{var d;(d=k.cache)==null||CZe(d,am(k,p),q,p.i6.Kr,k.B-120)}catch(S){k.reportError(new qQ(24,"ELX:write",S))}})}; nWh=function(k,p,t){var J;if((J=p.i6)!=null&&J.Rz)try{var q,F=(q=k.cache)==null?void 0:A1u(q,am(k,p),p.i6.Kr);return F?t?q6(k.logger,function(){return g.Zn(F,2)},"a"):F:void 0}catch(d){k.reportError(new qQ(23,"RXO:read",d))}}; wg6=function(k,p,t){var J={stack:[],error:void 0,hasError:!1};try{if(!p.kQ)throw new qQ(29,"SDF:notready");return QM(tC(J,new zC(k.logger,k.Z,k.state)),function(){return am(k,p)},t)}catch(q){J.error=q,J.hasError=!0}finally{oL(J)}}; ie_=function(k,p,t){var J={stack:[],error:void 0,hasError:!1};try{var q=vWu(k,t);return QM(tC(J,new Rm(k.logger,q)),function(){return[]},p)}catch(F){J.error=F,J.hasError=!0}finally{oL(J)}}; am=function(k,p){return p.JG?p.JG:p.pH?q6(k.logger,function(){return p.JG=BM(p.pH)},"c"):[]}; gg=function(k){var p;ew.call(this,k.UX.Ce(),(p=k.onError)!=null?p:function(){},0); var t=this;this.X=0;this.C=new g.yM;this.N=!1;this.UX=k.UX;this.Xu=k.Xu;this.IZ=Object.assign({},Qne,k.IZ||{});k.yG&&(this.logger instanceof Sw||this.logger instanceof $z)&&this.logger.S9(k.yG);this.Wf=k.Wf||!1;if(PZe(k)){var J=this.UX;this.S=function(){return qP_(J).catch(function(d){d=t.reportError(new qQ(t.N?20:32,"TRG:Disposed",d));t.Y=d;var S;(S=t.T)==null||S.dispose();t.T=void 0;t.C.reject(d)})}; Fu6(J,function(){return void M6(t)}); J.B===2&&M6(this)}else this.S=k.HMp,M6(this);var q=this.logger.share();q.cV("o");var F=new Jk(q,"o");this.C.promise.then(function(){F.done();q.tY();q.dispose()},function(){return void q.dispose()}); this.addOnDisposeCallback(function(){t.N||(t.Y?t.logger.tY():(t.Y=t.reportError(new qQ(32,"TNP:Disposed")),t.logger.tY(),t.C.reject(t.Y)));t.logger.dispose()})}; GS0=function(k,p){if(!(p instanceof qQ))if(p instanceof so){var t=Error(p.toString());t.stack=p.stack;p=new qQ(11,"EBH:Error",t)}else p=new qQ(12,"BSO:Unknown",p);return k.reportError(p)}; M6=function(k){var p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A;return g.Q(function(V){switch(V.T){case 1:p=void 0;k.X++;t=new g.yM;k.UX instanceof VM&&k.UX.C.push(t.promise);if(!k.Wf){V.oY(2);break}J=new g.yM;setTimeout(function(){return void J.resolve()}); return g.n(V,J.promise,2);case 2:return q=k.logger.share(),g.Aw(V,4,5),k.state=5,F={},d=[],g.n(V,DS(k.UX.snapshot({pH:F,R2:d}),k.IZ.Y7O,function(){return Promise.reject(new qQ(15,"MDA:Timeout"))}),7); case 7:S=V.Y;if(k.MO())throw new qQ(k.N?20:32,"MDA:Disposed");U=d[0];k.state=6;return g.n(V,DS(Luu(k.Xu,k.logger,S),k.IZ.gT,function(){return Promise.reject(new qQ(10,"BWB:Timeout"))}),8); case 8:f=V.Y;if(k.MO())throw new qQ(k.N?20:32,"BWB:Disposed");k.state=7;p=q6(q,function(){var v=IrL(k,f,t,U);v.Y.promise.then(function(){return void k.S()}).catch(function(){}); return v},"i"); case 5:g.Du(V);q.dispose();g.s0(V,6);break;case 4:b=g.W9(V);(N=p)==null||N.dispose();if(!k.Y){y=GS0(k,b);t.resolve();var D;if(D=k.UX instanceof VM&&k.X<2)a:if(b instanceof qQ)D=b.code!==32&&b.code!==20&&b.code!==10;else{if(b instanceof so)switch(b.code){case 2:case 13:case 14:case 4:break;default:D=!1;break a}D=!0}if(D)return Y=(1+Math.random()*.25)*(k.N?6E4:1E3),T=setTimeout(function(){return void k.S()},Y),k.addOnDisposeCallback(function(){return void clearTimeout(T)}),V.return(); k.Y=y}q.Y4(k.N?13:14);k.C.reject(k.Y);return V.return();case 6:k.state=8,k.X=0,(A=k.T)==null||A.dispose(),k.T=p,k.N=!0,k.C.resolve(),g.CS(V)}})}; IrL=function(k,p,t,J){var q=b4(p,2)*1E3;if(q<=0)throw new qQ(31,"TTM:Invalid");if(Ns(p,4))return new XZ(k.logger,Ns(p,4),q);if(!b4(p,3))return new GC(k.logger,v4(jt(p,1)),q);if(!J)throw new qQ(4,"PMD:Undefined");J=J(v4(jt(p,1)));if(!(J instanceof Function))throw new qQ(16,"APF:Failed");k.B=Math.floor((Date.now()+q)/1E3);k=new PM(k.logger,J,b4(p,3),q);k.addOnDisposeCallback(function(){return void t.resolve()}); return k}; uO=function(){var k=0,p;return function(t){p||(p=new FZ);var J=new zC(p,k,1),q=QM(J,function(){return BM(t)},!0); J.dispose();k++;return q}}; lO=function(k){this.sQ=Qy(k)}; Xge=function(k,p,t){this.WK=k;this.Gj=p;this.metadata=t}; jw=function(k,p){p=p===void 0?{}:p;this.qxG=k;this.metadata=p;this.status=null}; OL=function(k,p,t,J,q){this.name=k;this.methodType="unary";this.requestType=p;this.responseType=t;this.T=J;this.Y=q}; KB=function(k){this.sQ=Qy(k)}; HM=function(k){this.sQ=Qy(k)}; xz=function(k){this.sQ=Qy(k)}; ks=function(k,p){this.Z=k.eA0;this.B=p;this.T=k.xhr;this.N=[];this.X=[];this.S=[];this.C=[];this.Y=[];this.Z&&REw(this)}; hEj=function(k,p){var t=new BEL;g.eu(k.T,"complete",function(){if(K9(k.T)){var J=g.Ht(k.T);if(p&&k.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");J=atob(J)}try{var q=k.B(J)}catch(S){pI(k,tT(new so(13,"Error when deserializing response data; error: "+S+(", response: "+J)),t));return}J=N89(k.T.getStatus());JT(k,oa(k));J==0?zEL(k,q):pI(k,tT(new so(J,"Xhr succeeded but the status code is not 200"),t))}else{J=g.Ht(k.T);q=oa(k);if(J){var F=eE_(k, J);J=F.code;var d=F.details;F=F.metadata}else J=2,d="Rpc failed due to xhr error. uri: "+String(k.T.B)+", error code: "+k.T.Y+", error: "+k.T.getLastError(),F=q;JT(k,q);pI(k,tT(new so(J,d,F),t))}})}; REw=function(k){k.Z.Mx("data",function(p){if("1"in p){var t=p["1"];try{var J=k.B(t)}catch(q){pI(k,new so(13,"Error when deserializing response data; error: "+q+(", response: "+t)))}J&&zEL(k,J)}if("2"in p)for(p=eE_(k,p["2"]),t=0;t<k.S.length;t++)k.S[t](p)}); k.Z.Mx("end",function(){JT(k,oa(k));for(var p=0;p<k.C.length;p++)k.C[p]()}); k.Z.Mx("error",function(){if(k.Y.length!=0){var p=k.T.Y;p!==0||K9(k.T)||(p=6);var t=-1;switch(p){case 0:var J=2;break;case 7:J=10;break;case 8:J=4;break;case 6:t=k.T.getStatus();J=N89(t);break;default:J=14}JT(k,oa(k));p=Chu(p)+", error: "+k.T.getLastError();t!=-1&&(p+=", http status code: "+t);pI(k,new so(J,p))}})}; oa=function(k){var p={},t=g.IV0(k.T);Object.keys(t).forEach(function(J){p[J]=t[J]}); return p}; eE_=function(k,p){var t=2,J={};try{var q=arq(p);t=dq(q,1);var F=q.getMessage();FS(q,HM,3).length&&(J["grpc-web-status-details-bin"]=p)}catch(d){k.T&&k.T.getStatus()===404?(t=5,F="Not Found: "+String(k.T.B)):(t=14,F="Unable to parse RpcStatus: "+d)}return{code:t,details:F,metadata:J}}; qM=function(k,p){p=k.indexOf(p);p>-1&&k.splice(p,1)}; zEL=function(k,p){for(var t=0;t<k.N.length;t++)k.N[t](p)}; JT=function(k,p){for(var t=0;t<k.X.length;t++)k.X[t](p)}; pI=function(k,p){for(var t=0;t<k.Y.length;t++)k.Y[t](p)}; BEL=function(){var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"}; tT=function(k,p){p.stack&&(k.stack+="\n"+p.stack);return k}; g.Fn=function(k){this.C=k.C66||null;this.N=k.Xg||!1;this.Y=void 0}; $s=function(k,p){g.Hg.call(this);this.Y8=k;this.S=p;this.X=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.B=new Headers;this.Y=null;this.gy="GET";this.L="";this.T=!1;this.Z=this.N=this.C=null}; Mui=function(k){k.N.read().then(k.ypb.bind(k)).catch(k.mY.bind(k))}; E8=function(k){k.readyState=4;k.C=null;k.N=null;k.Z=null;dN(k)}; dN=function(k){k.onreadystatechange&&k.onreadystatechange.call(k)}; g.Sv=function(k){this.T=this.B=this.X="";this.N=null;this.S=this.Y="";this.Z=!1;var p;k instanceof g.Sv?(this.Z=k.Z,g.U8(this,k.X),this.B=k.B,g.fI(this,k.T),g.bp(this,k.N),this.Y=k.Y,NM(this,k.C.clone()),this.S=k.S):k&&(p=String(k).match(Pt))?(this.Z=!1,g.U8(this,p[1]||"",!0),this.B=yQ(p[2]||""),g.fI(this,p[3]||"",!0),g.bp(this,p[4]),this.Y=yQ(p[5]||"",!0),NM(this,p[6]||"",!0),this.S=yQ(p[7]||"")):(this.Z=!1,this.C=new Ys(null,this.Z))}; g.U8=function(k,p,t){k.X=t?yQ(p,!0):p;k.X&&(k.X=k.X.replace(/:$/,""))}; g.fI=function(k,p,t){k.T=t?yQ(p,!0):p}; g.bp=function(k,p){if(p){p=Number(p);if(isNaN(p)||p<0)throw Error("Bad port number "+p);k.N=p}else k.N=null}; NM=function(k,p,t){p instanceof Ys?(k.C=p,gWS(k.C,k.Z)):(t||(p=Tc(p,uIe)),k.C=new Ys(p,k.Z))}; g.rN=function(k,p,t){k.C.set(p,t)}; g.ZW=function(k){return k instanceof g.Sv?k.clone():new g.Sv(k)}; yQ=function(k,p){return k?p?decodeURI(k.replace(/%25/g,"%2525")):decodeURIComponent(k):""}; Tc=function(k,p,t){return typeof k==="string"?(k=encodeURI(k).replace(p,lrh),t&&(k=k.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),k):null}; lrh=function(k){k=k.charCodeAt(0);return"%"+(k>>4&15).toString(16)+(k&15).toString(16)}; Ys=function(k,p){this.Y=this.T=null;this.N=k||null;this.C=!!p}; CI=function(k){k.T||(k.T=new Map,k.Y=0,k.N&&Rq(k.N,function(p,t){k.add(Ku(p),t)}))}; jnT=function(k,p){CI(k);p=AT(k,p);return k.T.has(p)}; g.Oe_=function(k,p,t){k.remove(p);t.length>0&&(k.N=null,k.T.set(AT(k,p),g.tj(t)),k.Y=k.Y+t.length)}; AT=function(k,p){p=String(p);k.C&&(p=p.toLowerCase());return p}; gWS=function(k,p){p&&!k.C&&(CI(k),k.N=null,k.T.forEach(function(t,J){var q=J.toLowerCase();J!=q&&(this.remove(J),g.Oe_(this,q,t))},k)); k.C=p}; g.Kui=function(k){var p="";g.ZV(k,function(t,J){p+=J;p+=":";p+=t;p+="\r\n"}); return p}; g.m1=function(k,p,t){if(g.cQ(t))return k;t=g.Kui(t);if(typeof k==="string")return aq(k,g.OZ(p),t);g.rN(k,p,t);return k}; g.VQ=function(k){g.R.call(this);this.Y=k;this.T={}}; HeM=function(k,p,t,J,q,F){if(Array.isArray(t))for(var d=0;d<t.length;d++)HeM(k,p,t[d],J,q,F);else{p=zS(p,t,J||k.handleEvent,q,F||k.Y||k);if(!p)return k;k.T[p.key]=p}return k}; xaw=function(){this.N=!0;this.Y=0;this.T=""}; kq6=function(k,p,t){k.N=!1;throw Error("The stream is broken @"+k.Y+". Error: "+t+". With input:\n"+p);}; WZ=function(){this.S=null;this.Z=[];this.C=this.Y=this.N=this.T=this.L=0;this.X=null;this.B=0}; DW=function(k,p,t,J){k.T=3;k.S="The stream is broken @"+k.L+"/"+t+". Error: "+J+". With input:\n"+p;throw Error(k.S);}; s8=function(){this.T=null;this.Y=0;this.N=new xaw;this.C=new WZ}; pth=function(k,p,t){k.T="The stream is broken @"+k.Y+". Error: "+t+". With input:\n"+p;throw Error(k.T);}; LI=function(k){return k=="\r"||k=="\n"||k==" "||k=="\t"}; vZ=function(k){this.L=null;this.S=[];this.C="";this.Y8=[];this.N=this.Y=0;this.Z=!1;this.B=0;this.NO=/[\\"]/g;this.T=this.X=0;this.gy=!(!k||!k.jL)}; cZ=function(k,p,t){k.X=3;k.L="The stream is broken @"+k.N+"/"+t+". With input:\n"+p;throw Error(k.L);}; nI=function(){this.X=this.N=null;this.Y=this.T=0;this.C=[];this.S=!1}; tri=function(k){var p=g.kz(k,"Content-Type");if(!p)return null;p=p.toLowerCase();return p.startsWith("application/json")?p.startsWith("application/json+protobuf")?new nI:new vZ:p.startsWith("application/x-protobuf")?(k=g.kz(k,"Content-Transfer-Encoding"))?k.toLowerCase()=="base64"?new s8:null:new WZ:null}; wN=function(k){this.T=k;this.Y=null;this.X=this.N=0;this.L=!1;this.C=this.Z=this.S=null;this.B=new g.VQ(this);this.B.listen(this.T,"readystatechange",this.gy)}; Ia=function(k,p){k.X!=p&&(k.X=p,k.Z&&k.Z())}; Xn=function(k){k.B.removeAll();if(k.T){var p=k.T;k.T=null;p.abort();p.dispose()}}; JMh=function(k){k=this.N=k;var p=(0,g.H9)(this.C3y,this);k.C=p;k=this.N;p=(0,g.H9)(this.rBy,this);k.Z=p;this.Y={};this.T={}}; oJM=function(k,p){for(var t={},J=0;J<k.length;t={V3:void 0},J++)t.V3=k[J],p.forEach(function(q){return function(F){try{F(q.V3)}catch(d){}}}(t))}; Ra=function(k,p){var t=k.Y[p];t&&t.forEach(function(J){try{J()}catch(q){}}); (t=k.T[p])&&t.forEach(function(J){J()}); k.T[p]=[]}; qoh=function(){var k={format:"jspb"};k=k===void 0?{}:k;this.X=k.Igr||g.hw("suppressCorsPreflight",k)||!1;this.Y=k.withCredentials||g.hw("withCredentials",k)||!1;this.C=k.nqh||[];this.S=k.cVy||[];this.T=k.dVS;this.N=k.k3y||!1}; EJ6=function(k,p,t,J,q,F){F=F===void 0?{}:F;var d=p.substring(0,p.length-q.name.length),S,U=(S=F)==null?void 0:S.signal;return F5w(function(f){return new $nL(function(b,N){if(U==null?0:U.aborted){var y=new so(1,"Aborted");y.cause=U.reason;N(y)}else{var Y={},T=dnj(k,f,d);T.Mx("error",function(A){return N(A)}); T.Mx("metadata",function(A){Y=A}); T.Mx("data",function(A){var V=Y;V=V===void 0?{}:V;b(new jw(A,V))}); U&&U.addEventListener("abort",function(){T.cancel();var A=new so(1,"Aborted");A.cause=U.reason;N(A)})}})},k.S).call(k,q.Z(t,J)).then(function(f){return f.qxG})}; HEi=function(k,p,t,J,q){var F=F===void 0?{}:F;return EJ6(k,p,t,J,q,F)}; dnj=function(k,p,t){var J=p.Gj,q=p.getMetadata(),F=Soj(k,!0);k=Une(k,q,F,t+J.getName());t=fzi(F,J.Y,!1);hEj(t,q["X-Goog-Encode-Response-If-Executable"]=="base64");p=J.T(p.WK);F.send(k,"POST",p);return t}; Soj=function(k,p){p=k.N&&!p;return k.T||p?new g.ug(new g.Fn({C66:k.T,Xg:p})):new g.ug}; Une=function(k,p,t,J){p["Content-Type"]="application/json+protobuf";p["X-User-Agent"]="grpc-web-javascript/0.1";var q=p.Authorization;if(q&&b9h.has(q.split(" ")[0])||k.Y)t.Z=!0;if(k.X)J=g.m1(J,"$httpHeaders",p);else for(var F in p)t.headers.set(F,p[F]);return J}; fzi=function(k,p,t){if(t){k.isActive();t=new wN(k);var J=new JMh(t)}return new ks({xhr:k,eA0:J},p)}; F5w=function(k,p){return p.reduce(function(t,J){return function(q){return J.intercept(q,t)}},k)}; Nvu=function(){this.T=new qoh;this.Y="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; BZ=function(k){g.R.call(this);this.owner=k;this.signals=new Set;k&&g.z(k,this)}; zc=function(k,p){k.signals.has(p);return p}; ev=function(k){g.R.call(this);this.Ni=k;this.slots=new Map;this.g0=new Set;this.ql=!1}; yMj=function(k,p){k.MO()||k.slots.set(p,{slotId:p,slot:void 0,wU:function(){return k.slots.delete(p)}})}; aa=function(k,p){new Promise(function(t){hT(function(){k.Ni&&(k.Nd=p,k.ql=!0);for(var J=g.Z(k.slots.values()),q=J.next();!q.done;q=J.next()){var F=q.value;q=F.slotId;F=F.slot;try{F(p,{signal:k,slotId:q})}catch(d){Cc(d)}}J=g.Z(k.g0);for(q=J.next();!q.done;q=J.next())q.value.resolve(p);k.g0.clear();t()})})}; hT=function(k){MM.push(k);Yoi()}; Yoi=function(){var k,p;g.Q(function(t){switch(t.T){case 1:if(gN)return t.return();g.Aw(t,2,3);gN=!0;k=Tvq(0);case 5:if(!(k<MM.length)){t.oY(3);break}return g.n(t,Promise.resolve(),8);case 8:k=Tvq(k);t.oY(5);break;case 3:g.Du(t);MM.length=0;gN=!1;g.s0(t,0);break;case 2:p=g.W9(t),Cc(p),t.oY(3)}})}; Tvq=function(k){for(var p=k+100;k<p&&k<MM.length;)try{MM[k++]()}catch(t){Cc(t)}return k}; rMu=function(k,p){if(k.MO())p();else{var t=up.get(k);if(t)t.push(p);else{var J=[p];up.set(k,J);k.addOnDisposeCallback(function(){for(var q=g.Z([].concat(g.m(J))),F=q.next();!F.done;F=q.next())F=F.value,F();up.delete(k)})}}}; lp=function(k,p,t){g.R.call(this);this.Z=k;this.milliseconds=p;this.A5=t;this.state=this.C=0}; Z9j=function(k){return new lp(!1,k,{LW:function(){}, Ep:void 0})}; jv=function(k){rq.call(this,k);this.name="TimerCancelledError"}; O8=function(k){rq.call(this,k);this.name="TimerDisposedError"}; CgS=function(k){var p={pH:k.pH,JG:k.JG,kQ:!0,GT:!0};k.i6&&(k=k.i6,p.i6={Kr:k.Kr,Rz:k.Rz,l7:k.l7});return p}; KI=function(k){var p;ew.call(this,k.ECh?new FZ:new Sw({nH:k.nH,yG:k.WM,WY:k.WY},[]),(p=k.onError)!=null?p:function(){},1); this.N=new g.yM;this.Jx=void 0;this.Xu=k.Xu;this.Zm=k.Zm;var t;this.onEvent=(t=k.onEvent)!=null?t:function(){}}; mne=function(k){var p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V;return g.Q(function(D){switch(D.T){case 1:p=void 0,t=k.isReady()?6E4:1E3,J=new g.V3(t,6E5,.25,2),q={},F=1;case 2:if(!(F<=2)){D.oY(4);break}g.Aw(D,5);k.state=3;k.Z=F-1;return g.n(D,k.Jx&&F===1?k.Jx:k.gq(F),7);case 7:return d=D.Y,k.Jx=void 0,k.state=4,S=new Jk(k.logger,"b"),g.n(D,ZS(rg(),d),8);case 8:return k.state=5,k.onEvent(1),q.q7=3,q.Uq=new Yz({challenge:d,cX:k.logger}),U=HZ(k,12E4).then(function(w){return function(){k.onEvent(w.q7);return Promise.reject(new qQ(15, "MDA:Timeout"))}}(q)),g.n(D,Promise.race([q.Uq.FJ, U]),9);case 9:return k.onEvent(2),f=[],k.onEvent(4),q.q7=6,g.n(D,Promise.race([q.Uq.snapshot({R2:f}),U]),10);case 10:return b=D.Y,k.onEvent(5),N=g.Z(f),y=N.next().value,q.YB=y,S.done(),k.state=6,g.n(D,AMq(k,k.logger.XN("g",F,k.Xu.w3(b)),new qQ(10,"BWB:Timeout")),11);case 11:return q.pN=D.Y,k.state=7,Y=q6(k.logger,function(w){return function(){var X=w.pN;var B=w.Uq;var O=w.YB;if(Ns(X,4))B.dispose(),B=new XZ(k.logger,Ns(X,4),b4(X,2)*1E3);else if(b4(X,3)){if(!O)throw new qQ(4,"PMD:Undefined");var l= O(v4(jt(X,1)));if(!(l instanceof Function))throw new qQ(16,"APF:Failed");O=b4(X,2)*1E3;X=new PM(k.logger,l,b4(X,3),O);g.z(X,B);k.B=Math.floor((Date.now()+O)/1E3);B=X}else B.dispose(),B=new GC(k.logger,v4(jt(X,1)),b4(X,2)*1E3);return B}}(q),"i"),A=T=void 0,(A=(T=k).Zm)==null||A.call(T,v4(jt(q.pN,1))),k.state=8,D.return(Y); case 5:V=g.W9(D);p=V instanceof qQ?V:V instanceof O8?new qQ(20,"WTO:Disposed",V):V instanceof so?new qQ(11,"EBH:Error",V):new qQ(12,"BSO:Unknown",V);k.reportError(p);a:{if(V instanceof so)switch(V.code){case 2:case 13:case 14:case 4:var v=!0;break a;default:v=!1;break a}v=V instanceof qQ?V.code!==20:!0}if(!v)throw p;return g.n(D,HZ(k,J.getValue()),12);case 12:g.Wg(J);case 3:q={q7:void 0,pN:void 0,Uq:void 0,YB:void 0};F++;D.oY(2);break;case 4:throw p;}})}; HZ=function(k,p){p=Z9j(p);g.z(k,p);p.start();return p.B}; AMq=function(k,p,t){return Promise.race([p,HZ(k,12E4).then(function(){return Promise.reject(t)})])}; Vrj=function(k){var p,t,J;g.Q(function(q){switch(q.T){case 1:return p=void 0,g.Aw(q,5),g.n(q,mne(k),7);case 7:p=q.Y;g.Vi(q,6);break;case 5:t=g.W9(q);if(k.T){k.logger.Y4(13);q.oY(0);break}k.logger.Y4(14);p=new Rm(k.logger,t instanceof qQ?t:new qQ(14,"SOM:Init",t instanceof Error?t:Error(String(t))));case 6:return J=void 0,(J=k.T)==null||J.dispose(),k.T=p,k.N.resolve(),g.Aw(q,8),g.n(q,k.T.Y.promise,10);case 10:g.Vi(q,1);break;case 8:g.W9(q),q.oY(0)}})}; W5u=function(k,p){p.i6&&!k.cache&&k.J2(Math.min(p.i6.PGh,150))}; Dn6=function(k){var p={};g.y1(k,function(t){var J=t.event,q=p[J];p.hasOwnProperty(J)?q!==null&&(t.MR(q)||(p[J]=null)):p[J]=t}); HSi(k,function(t){return p[t.event]===null})}; xs=function(){this.fb=0;this.T=!1;this.Y=-1;this.EC=!1;this.UZ=0}; ko=function(){this.Y=null;this.T=!1}; pO=function(k){ko.call(this);this.C=k}; tS=function(){ko.call(this)}; JS=function(){ko.call(this)}; oV=function(){this.T={};this.Y=!0;this.N={}}; qS=function(k,p,t){k.T[p]||(k.T[p]=new pO(t));return k.T[p]}; sqM=function(k){k.T.queryid||(k.T.queryid=new JS)}; Fr=function(k,p,t){(k=k.T[p])&&k.N(t)}; $o=function(k,p){if(g.sk(k.N,p))return k.N[p];if(k=k.T[p])return k.getValue()}; d1=function(k){var p={},t=g.CE(k.T,function(J){return J.T}); g.ZV(t,function(J,q){J=k.N[q]!==void 0?String(k.N[q]):J.T&&J.Y!==null?String(J.Y):"";J.length>0&&(p[q]=J)},k); return p}; L5j=function(k){k=d1(k);var p=[];g.ZV(k,function(t,J){J in Object.prototype||typeof t!="undefined"&&p.push([J,":",t].join(""))}); return p}; cMu=function(k){qS(k,"od",vJi);qS(k,"opac",EQ).T=!0;qS(k,"sbeos",EQ).T=!0;qS(k,"prf",EQ).T=!0;qS(k,"mwt",EQ).T=!0;qS(k,"iogeo",EQ)}; nJw=function(){this.T=this.PO=null}; S7=function(){}; fO=function(){if(!UQ())throw Error();}; UQ=function(){return!(!bt||!bt.performance)}; NS=function(k){return k?k.passive&&wtL()?k:k.capture||!1:!1}; yo=function(k,p,t,J){return k.addEventListener?(k.addEventListener(p,t,NS(J)),!0):!1}; Yo=function(k){return k.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[k.visibilityState||k.webkitVisibilityState||k.mozVisibilityState||""]||0}; i9q=function(){}; Qq6=function(){return(wq||iJ)&&Qa?Qa.mobile:!TR()&&(GK("iPod")||GK("iPhone")||GK("Android")||GK("IEMobile"))}; TR=function(){return(wq||iJ)&&Qa?!Qa.mobile&&(GK("iPad")||GK("Android")||GK("Silk")):GK("iPad")||GK("Android")&&!GK("Mobile")||GK("Silk")}; r1=function(k){try{return!!k&&k.location.href!=null&&qRT(k,"foo")}catch(p){return!1}}; ZR=function(k,p){if(k)for(var t in k)Object.prototype.hasOwnProperty.call(k,t)&&p(k[t],t,k)}; Gq6=function(){var k=[];ZR(Pgq,function(p){k.push(p)}); return k}; IzL=function(k){var p,t;return(t=(p=/https?:\/\/[^\/]+/.exec(k))==null?void 0:p[0])!=null?t:""}; BvS=function(){var k=XtM("IFRAME"),p={};g.y1(ROu(),function(t){k.sandbox&&k.sandbox.supports&&k.sandbox.supports(t)&&(p[t]=!0)}); return p}; XtM=function(k,p){p=p===void 0?document:p;return p.createElement(String(k).toLowerCase())}; zO0=function(k){for(var p=k;k&&k!=k.parent;)k=k.parent,r1(k)&&(p=k);return p}; Mr_=function(k){k=k||CO();for(var p=new eOT(g.B9.location.href,!1),t=null,J=k.length-1,q=J;q>=0;--q){var F=k[q];!t&&hOS.test(F.url)&&(t=F);if(F.url&&!F.YQ){p=F;break}}q=null;F=k.length&&k[J].url;p.depth!=0&&F&&(q=k[J]);return new azi(p,q,t)}; CO=function(){var k=g.B9,p=[],t=null;do{var J=k;if(r1(J)){var q=J.location.href;t=J.document&&J.document.referrer||null}else q=t,t=null;p.push(new eOT(q||""));try{k=J.parent}catch(F){k=null}}while(k&&J!=k);J=0;for(k=p.length-1;J<=k;++J)p[J].depth=k-J;J=g.B9;if(J.location&&J.location.ancestorOrigins&&J.location.ancestorOrigins.length==p.length-1)for(k=1;k<p.length;++k)q=p[k],q.url||(q.url=J.location.ancestorOrigins[k-1]||"",q.YQ=!0);return p}; azi=function(k,p,t){this.T=k;this.Y=p;this.N=t}; eOT=function(k,p){this.url=k;this.YQ=!!p;this.depth=null}; AS=function(){this.N="&";this.Y={};this.C=0;this.T=[]}; mB=function(k,p){var t={};t[k]=p;return[t]}; gJu=function(k,p,t,J,q){var F=[];ZR(k,function(d,S){(d=Vo(d,p,t,J,q))&&F.push(S+"="+d)}); return F.join(p)}; Vo=function(k,p,t,J,q){if(k==null)return"";p=p||"&";t=t||",$";typeof t==="string"&&(t=t.split(""));if(k instanceof Array){if(J||(J=0),J<t.length){for(var F=[],d=0;d<k.length;d++)F.push(Vo(k[d],p,t,J+1,q));return F.join(t[J])}}else if(typeof k==="object")return q||(q=0),q<2?encodeURIComponent(gJu(k,p,t,J,q+1)):"...";return encodeURIComponent(String(k))}; uqS=function(k){var p=1,t;for(t in k.Y)t.length>p&&(p=t.length);return 3997-p-k.N.length-1}; W0=function(k,p){this.T=k;this.depth=p}; jq9=function(){function k(S,U){return S==null?U:S} var p=CO(),t=Math.max(p.length-1,0),J=Mr_(p);p=J.T;var q=J.Y,F=J.N,d=[];F&&d.push(new W0([F.url,F.YQ?2:0],k(F.depth,1)));q&&q!=F&&d.push(new W0([q.url,2],0));p.url&&p!=F&&d.push(new W0([p.url,0],k(p.depth,t)));J=g.DR(d,function(S,U){return d.slice(0,d.length-U)}); !p.url||(F||q)&&p!=F||(q=IzL(p.url))&&J.push([new W0([q,1],k(p.depth,t))]);J.push([]);return g.DR(J,function(S){return lzL(t,S)})}; lzL=function(k,p){g.sQ(p,function(q){return q.depth>=0}); var t=LO(p,function(q,F){return Math.max(q,F.depth)},-1),J=JCe(t+2); J[0]=k;g.y1(p,function(q){return J[q.depth+1]=q.T}); return J}; O9i=function(){var k=k===void 0?jq9():k;return k.map(function(p){return Vo(p)})}; K5M=function(k){var p=!1;p=p===void 0?!1:p;bt.google_image_requests||(bt.google_image_requests=[]);var t=XtM("IMG",bt.document);p&&(t.attributionSrc="");t.src=k;bt.google_image_requests.push(t)}; v0=function(k){var p="jE";if(k.jE&&k.hasOwnProperty(p))return k.jE;var t=new k;k.jE=t;k.hasOwnProperty(p);return t}; c0=function(){this.Y=new i9q;this.T=UQ()?new fO:new S7}; H9i=function(){nO();var k=bt.document;return!!(k&&k.body&&k.body.getBoundingClientRect&&typeof bt.setInterval==="function"&&typeof bt.clearInterval==="function"&&typeof bt.setTimeout==="function"&&typeof bt.clearTimeout==="function")}; xni=function(){nO();return O9i()}; kCq=function(){}; nO=function(){var k=v0(kCq);if(!k.T){if(!bt)throw Error("Context has not been set and window is undefined.");k.T=v0(c0)}return k.T}; w1=function(k){this.sQ=Qy(k)}; pMq=function(k){this.N=k;this.T=-1;this.Y=this.C=0}; it=function(k,p){return function(){var t=g.nS.apply(0,arguments);if(k.T>-1)return p.apply(null,g.m(t));try{return k.T=k.N.T.now(),p.apply(null,g.m(t))}finally{k.C+=k.N.T.now()-k.T,k.T=-1,k.Y+=1}}}; tw6=function(k,p){this.Y=k;this.N=p;this.T=new pMq(k)}; Jki=function(){this.T={}}; qL0=function(){var k=Qo().flags,p=oz6;k=k.T[p.key];if(p.valueType==="proto"){try{var t=JSON.parse(k);if(Array.isArray(t))return t}catch(J){}return p.defaultValue}return typeof k===typeof p.defaultValue?k:p.defaultValue}; Ezw=function(){this.N=void 0;this.Y=this.S=0;this.X=-1;this.FR=new oV;qS(this.FR,"mv",Fki).T=!0;qS(this.FR,"omid",EQ);qS(this.FR,"epoh",EQ).T=!0;qS(this.FR,"epph",EQ).T=!0;qS(this.FR,"umt",EQ).T=!0;qS(this.FR,"phel",EQ).T=!0;qS(this.FR,"phell",EQ).T=!0;qS(this.FR,"oseid",$6e).T=!0;var k=this.FR;k.T.sloi||(k.T.sloi=new tS);k.T.sloi.T=!0;qS(this.FR,"mm",P0);qS(this.FR,"ovms",d6T).T=!0;qS(this.FR,"xdi",EQ).T=!0;qS(this.FR,"amp",EQ).T=!0;qS(this.FR,"prf",EQ).T=!0;qS(this.FR,"gtx",EQ).T=!0;qS(this.FR, "mvp_lv",EQ).T=!0;qS(this.FR,"ssmol",EQ).T=!0;qS(this.FR,"fmd",EQ).T=!0;qS(this.FR,"gen204simple",EQ);this.T=new tw6(nO(),this.FR);this.C=!1;this.flags=new Jki}; Qo=function(){return v0(Ezw)}; SLi=function(k,p,t,J){if(Math.random()<(J||k.T))try{if(t instanceof AS)var q=t;else q=new AS,ZR(t,function(d,S){var U=q,f=U.C++;d=mB(S,d);U.T.push(f);U.Y[f]=d}); var F=q.b1(k.Y,"pagead2.googlesyndication.com","/pagead/gen_204?id="+p+"&");F&&(nO(),K5M(F))}catch(d){}}; U6i=function(k,p,t){t=t===void 0?{}:t;this.error=k;this.context=p.context;this.msg=p.message||"";this.id=p.id||"jserror";this.meta=t}; fSu=function(){var k=k===void 0?g.B9:k;return(k=k.performance)&&k.now&&k.timing?Math.floor(k.now()+k.timing.navigationStart):g.kn()}; bBq=function(){var k=k===void 0?g.B9:k;return(k=k.performance)&&k.now?k.now():null}; Ng0=function(k,p,t){this.label=k;this.type=p;this.value=t;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; IV=function(){var k=window;this.events=[];this.Y=k||g.B9;var p=null;k&&(k.google_js_reporting_queue=k.google_js_reporting_queue||[],this.events=k.google_js_reporting_queue,p=k.google_measure_js_timing);this.T=GR()||(p!=null?p:Math.random()<1)}; ykT=function(k){k&&Xr&&GR()&&(Xr.clearMarks("goog_"+k.label+"_"+k.uniqueId+"_start"),Xr.clearMarks("goog_"+k.label+"_"+k.uniqueId+"_end"))}; YLi=function(){var k=RV;this.T=B0;this.Eb="jserror";this.ZI=!0;this.Eu=null;this.Y=this.ZS;this.eW=k===void 0?null:k}; Tgw=function(k,p,t){var J=zR;return it(Qo().T.T,function(){try{if(J.eW&&J.eW.T){var q=J.eW.start(k.toString(),3);var F=p();J.eW.end(q)}else F=p()}catch(S){var d=J.ZI;try{ykT(q),d=J.Y(k,new e7(hS(S)),void 0,t)}catch(U){J.ZS(217,U)}if(!d)throw S;}return F})()}; aV=function(k,p,t,J){return it(Qo().T.T,function(){var q=g.nS.apply(0,arguments);return Tgw(k,function(){return p.apply(t,q)},J)})}; hS=function(k){var p=k.toString();k.name&&p.indexOf(k.name)==-1&&(p+=": "+k.name);k.message&&p.indexOf(k.message)==-1&&(p+=": "+k.message);if(k.stack)a:{k=k.stack;var t=p;try{k.indexOf(t)==-1&&(k=t+"\n"+k);for(var J;k!=J;)J=k,k=k.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");p=k.replace(/\n */g,"\n");break a}catch(q){p=t;break a}p=void 0}return p}; e7=function(k){U6i.call(this,Error(k),{message:k})}; rki=function(){bt&&typeof bt.google_measure_js_timing!="undefined"&&(bt.google_measure_js_timing||RV.disable())}; ZBi=function(k){zR.Eu=function(p){g.y1(k,function(t){t(p)})}}; COi=function(k,p){return Tgw(k,p)}; MS=function(k,p){return aV(k,p)}; g1=function(k,p,t,J){zR.ZS(k,p,t,J)}; ut=function(){return Date.now()-Ak6}; m60=function(){var k=Qo().N,p=lt>=0?ut()-lt:-1,t=j7?ut()-OQ:-1,J=KO>=0?ut()-KO:-1;if(k==947190542)return 100;if(k==79463069)return 200;k=[2E3,4E3];var q=[250,500,1E3];g1(637,Error(),.001);var F=p;t!=-1&&t<p&&(F=t);for(p=0;p<k.length;++p)if(F<k[p]){var d=q[p];break}d===void 0&&(d=q[k.length]);return J!=-1&&J>1500&&J<4E3?500:d}; H0=function(k,p,t,J){this.top=k;this.right=p;this.bottom=t;this.left=J}; xo=function(k){return k.right-k.left}; kc=function(k,p){return k==p?!0:k&&p?k.top==p.top&&k.right==p.right&&k.bottom==p.bottom&&k.left==p.left:!1}; pZ=function(k,p,t){p instanceof g.NL?(k.left+=p.x,k.right+=p.x,k.top+=p.y,k.bottom+=p.y):(k.left+=p,k.right+=p,typeof t==="number"&&(k.top+=t,k.bottom+=t));return k}; tK=function(k,p,t){var J=new H0(0,0,0,0);this.time=k;this.volume=null;this.N=p;this.T=J;this.Y=t}; JK=function(k,p,t,J,q,F,d,S){this.C=k;this.Z=p;this.N=t;this.S=J;this.T=q;this.X=F;this.Y=d;this.B=S}; WkS=function(k){var p=k!==k.top,t=k.top===zO0(k),J=-1,q=0;if(p&&t&&k.top.mraid){J=3;var F=k.top.mraid}else J=(F=k.mraid)?p?t?2:1:0:-1;F&&(F.IS_GMA_SDK||(q=2),Mtu(Vw6,function(d){return typeof F[d]==="function"})||(q=1)); return{CK:F,compatibility:q,TjY:J}}; D6q=function(){var k=window.document;return k&&typeof k.elementFromPoint==="function"}; smq=function(k,p,t){k&&p!==null&&p!=p.top&&(p=p.top);try{return(t===void 0?0:t)?(new g.YY(p.innerWidth,p.innerHeight)).round():Fvq(p||window).round()}catch(J){return new g.YY(-12245933,-12245933)}}; op=function(k,p,t){try{k&&(p=p.top);var J=smq(k,p,t),q=J.height,F=J.width;if(F===-12245933)return new H0(F,F,F,F);var d=dsi(zJ(p.document).T),S=d.x,U=d.y;return new H0(U,S+F,U+q,S)}catch(f){return new H0(-12245933,-12245933,-12245933,-12245933)}}; g.qJ=function(k,p,t,J){this.left=k;this.top=p;this.width=t;this.height=J}; $c=function(k,p){return k==p?!0:k&&p?k.left==p.left&&k.width==p.width&&k.top==p.top&&k.height==p.height:!1}; g.S4=function(k,p,t){if(typeof p==="string")(p=EH(k,p))&&(k.style[p]=t);else for(var J in p){t=k;var q=p[J],F=EH(t,J);F&&(t.style[F]=q)}}; EH=function(k,p){var t=Lki[p];if(!t){var J=X2T(p);t=J;k.style[J]===void 0&&(J=(g.Ok?"Webkit":UH?"Moz":null)+BxM(J),k.style[J]!==void 0&&(t=J));Lki[p]=t}return t}; g.fZ=function(k,p){var t=k.style[X2T(p)];return typeof t!=="undefined"?t:k.style[EH(k,p)]||""}; bQ=function(k,p){var t=BQ(k);return t.defaultView&&t.defaultView.getComputedStyle&&(k=t.defaultView.getComputedStyle(k,null))?k[p]||k.getPropertyValue(p)||"":""}; NJ=function(k,p){return bQ(k,p)||(k.currentStyle?k.currentStyle[p]:null)||k.style&&k.style[p]}; g.Yc=function(k,p,t){if(p instanceof g.NL){var J=p.x;p=p.y}else J=p,p=t;k.style.left=g.y4(J,!1);k.style.top=g.y4(p,!1)}; TT=function(k){try{return k.getBoundingClientRect()}catch(p){return{left:0,top:0,right:0,bottom:0}}}; vzq=function(k){var p=BQ(k),t=NJ(k,"position"),J=t=="fixed"||t=="absolute";for(k=k.parentNode;k&&k!=p;k=k.parentNode)if(k.nodeType==11&&k.host&&(k=k.host),t=NJ(k,"position"),J=J&&t=="static"&&k!=p.documentElement&&k!=p.body,!J&&(k.scrollWidth>k.clientWidth||k.scrollHeight>k.clientHeight||t=="fixed"||t=="absolute"||t=="relative"))return k;return null}; g.r5=function(k){var p=BQ(k),t=new g.NL(0,0);if(k==(p?BQ(p):document).documentElement)return t;k=TT(k);p=dsi(zJ(p).T);t.x=k.left+p.x;t.y=k.top+p.y;return t}; nzL=function(k,p){var t=new g.NL(0,0),J=KE(BQ(k));if(!qRT(J,"parent"))return t;do{var q=J==p?g.r5(k):cki(k);t.x+=q.x;t.y+=q.y}while(J&&J!=p&&J!=J.parent&&(k=J.frameElement)&&(J=J.parent));return t}; g.Z0=function(k,p){k=wMj(k);p=wMj(p);return new g.NL(k.x-p.x,k.y-p.y)}; cki=function(k){k=TT(k);return new g.NL(k.left,k.top)}; wMj=function(k){if(k.nodeType==1)return cki(k);k=k.changedTouches?k.changedTouches[0]:k;return new g.NL(k.clientX,k.clientY)}; g.CZ=function(k,p,t){if(p instanceof g.YY)t=p.height,p=p.width;else if(t==void 0)throw Error("missing height argument");k.style.width=g.y4(p,!0);k.style.height=g.y4(t,!0)}; g.y4=function(k,p){typeof k=="number"&&(k=(p?Math.round(k):k)+"px");return k}; g.AK=function(k){var p=iBj;if(NJ(k,"display")!="none")return p(k);var t=k.style,J=t.display,q=t.visibility,F=t.position;t.visibility="hidden";t.position="absolute";t.display="inline";k=p(k);t.display=J;t.position=F;t.visibility=q;return k}; iBj=function(k){var p=k.offsetWidth,t=k.offsetHeight,J=g.Ok&&!p&&!t;return(p===void 0||J)&&k.getBoundingClientRect?(k=TT(k),new g.YY(k.right-k.left,k.bottom-k.top)):new g.YY(p,t)}; g.mS=function(k,p){k.style.display=p?"":"none"}; V4=function(k,p){p=Math.pow(10,p);return Math.floor(k*p)/p}; Qm6=function(k){return new H0(k.top,k.right,k.bottom,k.left)}; POS=function(k){var p=k.top||0,t=k.left||0;return new H0(p,t+(k.width||0),p+(k.height||0),t)}; vC=function(k){return k!=null&&k>=0&&k<=1}; GCh=function(){var k=g.nc();return k?cC("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(p){return sR(k,p)})||sR(k,"OMI/")&&!sR(k,"XiaoMi/")?!0:sR(k,"Presto")&&sR(k,"Linux")&&!sR(k,"X11")&&!sR(k,"Android")&&!sR(k,"Mobi"):!1}; ISh=function(){this.N=!r1(bt.top);this.isMobileDevice=TR()||Qq6();var k=CO();this.domain=k.length>0&&k[k.length-1]!=null&&k[k.length-1].url!=null?g.Iq(k[k.length-1].url)||"":"";this.T=new H0(0,0,0,0);this.C=new g.YY(0,0);this.X=new g.YY(0,0);this.Z=new H0(0,0,0,0);this.frameOffset=new g.NL(0,0);this.S=0;this.B=!1;this.Y=!(!bt||!WkS(bt).CK);this.update(bt)}; XMw=function(k,p){p&&p.screen&&(k.C=new g.YY(p.screen.width,p.screen.height))}; RY0=function(k,p){a:{var t=k.T?new g.YY(xo(k.T),k.T.getHeight()):new g.YY(0,0);p=p===void 0?bt:p;p!==null&&p!=p.top&&(p=p.top);var J=0,q=0;try{var F=p.document,d=F.body,S=F.documentElement;if(F.compatMode=="CSS1Compat"&&S.scrollHeight)J=S.scrollHeight!=t.height?S.scrollHeight:S.offsetHeight,q=S.scrollWidth!=t.width?S.scrollWidth:S.offsetWidth;else{var U=S.scrollHeight,f=S.scrollWidth,b=S.offsetHeight,N=S.offsetWidth;S.clientHeight!=b&&(U=d.scrollHeight,f=d.scrollWidth,b=d.offsetHeight,N=d.offsetWidth); U>t.height?U>b?(J=U,q=f):(J=b,q=N):U<b?(J=U,q=f):(J=b,q=N)}var y=new g.YY(q,J);break a}catch(Y){y=new g.YY(-12245933,-12245933);break a}y=void 0}k.X=y}; iQ=function(){var k=nZ();if(k.S>0||k.B)return!0;k=nO().Y.isVisible();var p=Yo(w5)===0;return k||p}; nZ=function(){return v0(ISh)}; Q4=function(k){this.N=k;this.Y=0;this.T=null}; PC=function(k,p,t){this.N=k;this.RY=t===void 0?"na":t;this.X=[];this.isInitialized=!1;this.C=new tK(-1,!0,this);this.T=this;this.B=p;this.gy=this.L=!1;this.j6="uk";this.P0=!1;this.S=!0}; GT=function(k,p){g.Kc(k.X,p)||(k.X.push(p),p.O3(k.T),p.a$(k.C),p.TJ()&&(k.L=!0))}; BgT=function(k){k=k.T;k.XZ();k.Rd();var p=nZ();p.Z=op(!1,k.N,p.isMobileDevice);RY0(nZ(),k.N);k.C.T=k.J3()}; zYw=function(k){k.L=k.X.length?cC(k.X,function(p){return p.TJ()}):!1}; eY_=function(k){var p=g.tj(k.X);g.y1(p,function(t){t.a$(k.C)})}; Ip=function(k){var p=g.tj(k.X);g.y1(p,function(t){t.O3(k.T)}); k.T!=k||eY_(k)}; Xj=function(k,p,t,J){this.element=k;this.T=new H0(0,0,0,0);this.N=null;this.S=new H0(0,0,0,0);this.Y=p;this.FR=t;this.P0=J;this.NO=!1;this.timestamp=-1;this.L=new JK(p.C,this.element,this.T,new H0(0,0,0,0),0,0,ut(),0);this.X=void 0}; hY9=function(k,p){return k.X?new H0(Math.max(p.top+k.X.top,p.top),Math.min(p.left+k.X.right,p.right),Math.min(p.top+k.X.bottom,p.bottom),Math.max(p.left+k.X.left,p.left)):p.clone()}; Rp=function(k){this.X=!1;this.T=k;this.C=function(){}}; aS6=function(k,p,t){this.N=t===void 0?0:t;this.Y=k;this.T=p==null?"":p}; Mwe=function(k){switch(Math.trunc(k.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; gz6=function(k,p){return k.N<p.N?!0:k.N>p.N?!1:k.Y<p.Y?!0:k.Y>p.Y?!1:typeof k.T<typeof p.T?!0:typeof k.T>typeof p.T?!1:k.T<p.T}; BC=function(){this.N=0;this.T=[];this.Y=!1}; uZL=function(k,p){(0,g.y1)(p.T,function(t){k.add(t.Y,t.T,Mwe(t))})}; zT=function(k,p){var t=t===void 0?0:t;var J=J===void 0?!0:J;ZR(p,function(q,F){J&&q===void 0||k.add(F,q,t)}); return k}; e4=function(k){var p=lSw;k.Y&&(g.SD(k.T,function(t,J){return gz6(J,t)?1:gz6(t,J)?-1:0}),k.Y=!1); return LO(k.T,function(t,J){J=p(J);return""+t+(t!=""&&J!=""?"&":"")+J},"")}; lSw=function(k){var p=k.Y;k=k.T;return k===""?p:typeof k==="boolean"?k?p:"":Array.isArray(k)?k.length===0?p:p+"="+k.join():p+"="+(g.Kc(["mtos","tos","p"],p)?k:encodeURIComponent(k))}; jme=function(k){var p=p===void 0?!0:p;this.T=new BC;k!==void 0&&uZL(this.T,k);p&&this.T.add("v","unreleased",-16)}; OB6=function(k){var p=[],t=[];g.ZV(k,function(J,q){if(!(q in Object.prototype)&&typeof J!="undefined")switch(Array.isArray(J)&&(J=J.join(",")),J=[q,"=",J].join(""),q){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":p.unshift(J);break;case "req":case "url":case "referrer":case "iframe_loc":t.push(J);break;default:p.push(J)}}); return p.concat(t)}; Kkw=function(k){k=k.toString();nO();K5M(k)}; HB0=function(){this.T=0}; x60=function(k,p,t){(0,g.y1)(k.N,function(J){var q=k.T;if(!J.T&&(J.N(p,t),J.C())){J.T=!0;var F=J.Y(),d=new BC;d.add("id","av-js");d.add("type","verif");d.add("vtype",J.X);J=v0(HB0);d.add("i",J.T++);d.add("adk",q);zT(d,F);q=new jme(d);Kkw(q)}})}; hK=function(){this.Y=this.N=this.C=this.T=0}; ap=function(k){this.Y=k=k===void 0?kce:k;this.T=g.DR(this.Y,function(){return new hK})}; MJ=function(k,p){return pZ0(k,function(t){return t.T},p===void 0?!0:p)}; uQ=function(k,p){return g5(k,p,function(t){return t.T})}; tvw=function(k,p){return pZ0(k,function(t){return t.N},p===void 0?!0:p)}; lQ=function(k,p){return g5(k,p,function(t){return t.N})}; j4=function(k,p){return g5(k,p,function(t){return t.Y})}; JTq=function(k){g.y1(k.T,function(p){p.Y=0})}; pZ0=function(k,p,t){k=g.DR(k.T,function(J){return p(J)}); return t?k:osw(k)}; g5=function(k,p,t){var J=g.OR(k.Y,function(q){return p<=q}); return J==-1?0:t(k.T[J])}; osw=function(k){return g.DR(k,function(p,t,J){return t>0?J[t]-J[t-1]:J[t]})}; OH=function(){this.Y=new ap;this.RY=this.qO=0;this.W0=new hK;this.Y8=this.Z=-1;this.B0=1E3;this.pp=new ap([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.j6=this.NO=-1}; KZ=function(k,p){return tvw(k.Y,p===void 0?!0:p)}; HC=function(k,p,t,J){var q=q===void 0?!1:q;t=aV(J,t);yo(k,p,t,{capture:q})}; k8=function(k,p){p=xc(p);return p===0?0:xc(k)/p}; xc=function(k){return Math.max(k.bottom-k.top,0)*Math.max(k.right-k.left,0)}; q8i=function(k,p){if(!k||!p)return!1;for(var t=0;k!==null&&t++<100;){if(k===p)return!0;try{if(k=k.parentElement||k){var J=BQ(k),q=J&&KE(J),F=q&&q.frameElement;F&&(k=F)}}catch(d){break}}return!1}; F10=function(k,p,t){if(!k||!p)return!1;p=pZ(k.clone(),-p.left,-p.top);k=(p.left+p.right)/2;p=(p.top+p.bottom)/2;r1(window.top)&&window.top&&window.top.document&&(window=window.top);if(!D6q())return!1;k=window.document.elementFromPoint(k,p);if(!k)return!1;p=(p=(p=BQ(t))&&p.defaultView&&p.defaultView.frameElement)&&q8i(p,k);var J=k===t;k=!J&&k&&dE(k,function(q){return q===t}); return!(p||J||k)}; $ML=function(k,p,t,J){return nZ().N?!1:xo(k)<=0||k.getHeight()<=0?!0:t&&J?COi(208,function(){return F10(k,p,t)}):!1}; p6=function(k,p,t){g.R.call(this);this.position=dMS.clone();this.KY=this.Ys();this.lr=-2;this.timeCreated=Date.now();this.Hx=-1;this.tK=p;this.JI=null;this.zB=!1;this.e3=null;this.opacity=-1;this.requestSource=t;this.Wcy=!1;this.IE=function(){}; this.u5=function(){}; this.QG=new nJw;this.QG.PO=k;this.QG.T=k;this.ri=!1;this.qb={zT:null,HC:null};this.jj=!0;this.Fr=null;this.WW=this.dOT=!1;Qo().S++;this.KH=this.YF();this.tW=-1;this.W1=null;this.hasCompleted=this.w0b=!1;this.FR=new oV;cMu(this.FR);Es9(this);this.requestSource==1?Fr(this.FR,"od",1):Fr(this.FR,"od",0)}; Es9=function(k){k=k.QG.PO;var p;if(p=k&&k.getAttribute)p=/-[a-z]/.test("googleAvInapp")?!1:S8_&&k.dataset?"googleAvInapp"in k.dataset:k.hasAttribute?k.hasAttribute("data-"+RI6()):!!k.getAttribute("data-"+RI6());p&&(nZ().Y=!0)}; tf=function(k,p){p!=k.WW&&(k.WW=p,k=nZ(),p?k.S++:k.S>0&&k.S--)}; UM0=function(k,p){if(k.W1){if(p.getName()===k.W1.getName())return;k.W1.dispose();k.W1=null}p=p.create(k.QG.T,k.FR,k.TJ());if(p=p!=null&&p.observe()?p:null)k.W1=p}; fW6=function(k,p,t){if(!k.JI||k.tK==-1||p.Y===-1||k.JI.Y===-1)return 0;k=p.Y-k.JI.Y;return k>t?0:k}; bIM=function(k,p,t){if(k.W1){k.W1.MV();var J=k.W1.L,q=J.C,F=q.T;if(J.S!=null){var d=J.N;k.e3=new g.NL(d.left-F.left,d.top-F.top)}F=k.jx()?Math.max(J.T,J.X):J.T;d={};q.volume!==null&&(d.volume=q.volume);q=k.t3(J);k.JI=J;k.Zr(F,p,t,!1,d,q,J.B)}}; NN0=function(k){if(k.zB&&k.Fr){var p=$o(k.FR,"od")==1,t=nZ().T,J=k.Fr,q=k.W1?k.W1.getName():"ns",F=k.e3,d=new g.YY(xo(t),t.getHeight());t=k.jx();k={js0:q,e3:F,Yep:d,jx:t,fb:k.KH.fb,iHp:p};if(p=J.Y){p.MV();q=p.L;F=q.C.T;var S=d=null;q.S!=null&&F&&(d=q.N,d=new g.NL(d.left-F.left,d.top-F.top),S=new g.YY(F.right-F.left,F.bottom-F.top));q=t?Math.max(q.T,q.X):q.T;t={js0:p.getName(),e3:d,Yep:S,jx:t,iHp:!1,fb:q}}else t=null;t&&x60(J,k,t)}}; yTh=function(k,p,t){p&&(k.IE=p);t&&(k.u5=t)}; g.Jf=function(){}; g.oQ=function(k){return{value:k,done:!1}}; Y8h=function(){this.C=this.T=this.N=this.Y=this.X=0}; TNi=function(k){var p={};var t=g.kn()-k.X;p=(p.ptlt=t,p);(t=k.Y)&&(p.pnk=t);(t=k.N)&&(p.pnc=t);(t=k.C)&&(p.pnmm=t);(k=k.T)&&(p.pns=k);return p}; rTi=function(){xs.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; qR=function(k){return vC(k.volume)&&k.volume>0}; F2=function(k,p,t,J){t=t===void 0?!0:t;J=J===void 0?function(){return!0}:J; return function(q){var F=q[k];if(Array.isArray(F)&&J(q))return ZI9(F,p,t)}}; $8=function(k,p){return function(t){return p(t)?t[k]:void 0}}; Cp6=function(k){return function(p){for(var t=0;t<k.length;t++)if(k[t]===p.e||k[t]===void 0&&!p.hasOwnProperty("e"))return!0;return!1}}; ZI9=function(k,p,t){return t===void 0||t?g.dZ(k,function(J,q){return g.Kc(p,q)}):g.DR(p,function(J,q,F){return k.slice(q>0?F[q-1]+1:0,J+1).reduce(function(d,S){return d+S},0)})}; AT9=function(){this.Y=this.T=""}; mMw=function(){}; EU=function(k,p){var t={};if(k!==void 0)if(p!=null)for(var J in p){var q=p[J];J in Object.prototype||q!=null&&(t[J]=typeof q==="function"?q(k):k[q])}else g.PQ(t,k);return e4(zT(new BC,t))}; VvS=function(){var k={};this.Y=(k.vs=[1,0],k.vw=[0,1],k.am=[2,2],k.a=[4,4],k.f=[8,8],k.bm=[16,16],k.b=[32,32],k.avw=[0,64],k.avs=[64,0],k.pv=[256,256],k.gdr=[0,512],k.p=[0,1024],k.r=[0,2048],k.m=[0,4096],k.um=[0,8192],k.ef=[0,16384],k.s=[0,32768],k.pmx=[0,16777216],k.mut=[33554432,33554432],k.umutb=[67108864,67108864],k.tvoff=[134217728,134217728],k);this.T={};for(var p in this.Y)this.Y[p][1]>0&&(this.T[p]=0);this.N=0}; SL=function(k,p){var t=k.Y[p],J=t[1];k.N+=t[0];J>0&&k.T[p]==0&&(k.T[p]=1)}; W1w=function(k){var p=g.DV(k.Y),t=0,J;for(J in k.T)g.Kc(p,J)&&k.T[J]==1&&(t+=k.Y[J][1],k.T[J]=2);return t}; DMT=function(k){var p=0,t;for(t in k.T){var J=k.T[t];if(J==1||J==2)p+=k.Y[t][1]}return p}; UU=function(){this.T=this.Y=0}; f6=function(){OH.call(this);this.N=new hK;this.IY=this.L=this.P0=0;this.B=-1;this.Jp=new hK;this.X=new hK;this.T=new ap;this.S=this.C=-1;this.gy=new hK;this.B0=2E3;this.Oy=new UU;this.v0=new UU;this.k8=new UU}; bD=function(k,p,t){var J=k.IY;j7||t||k.B==-1||(J+=p-k.B);return J}; saw=function(){this.N=!1}; NR=function(k,p){this.N=!1;this.C=k;this.L=p;this.X=0}; y_=function(k,p){NR.call(this,k,p);this.Z=[]}; L1L=function(){}; Y8=function(){}; Tf=function(k,p,t,J){Xj.call(this,k,p,t,J)}; rZ=function(k,p,t){Xj.call(this,null,k,p,t);this.B=k.isActive();this.Z=0}; ZH=function(k){return[k.top,k.left,k.bottom,k.right]}; C6=function(k,p,t,J,q,F){F=F===void 0?new Y8:F;p6.call(this,p,t,J);this.j7=q;this.sG=0;this.qX={};this.zt=new VvS;this.b5={};this.uy="";this.k8=null;this.qW=!1;this.T=[];this.Pk=F.Y();this.S=F.N();this.C=null;this.N=-1;this.RY=this.L=void 0;this.Y8=this.gy=0;this.j6=-1;this.B0=this.v0=!1;this.P0=this.B=this.Y=this.vG=this.gs=0;new ap;this.Oy=this.IY=0;this.W0=-1;this.nU=0;this.Z=g.Uo;this.NO=[this.Ys()];this.ez=2;this.JQ={};this.JQ.pause="p";this.JQ.resume="r";this.JQ.skip="s";this.JQ.mute="m";this.JQ.unmute= "um";this.JQ.exitfullscreen="ef";this.X=null;this.pp=this.Jp=!1;this.Fd=Math.floor(Date.now()/1E3-1704067200);this.qO=0}; Af=function(k){k.hasCompleted=!0;k.nU!=0&&(k.nU=3)}; my=function(k){return k===void 0?k:Number(k)?V4(k,3):0}; V_=function(k,p){return k.NO[p!=null&&p<k.NO.length?p:k.NO.length-1]}; vsi=function(k){var p=!!$o(Qo().FR,"umt");return k.L||!p&&!k.RY?0:1}; cTh=function(k,p){k.En()?p=0:k.tK==-1?p=0:(p-=k.tK,p=p>Math.max(1E4,k.N/3)?0:p);var t=k.Z(k)||{};t=t.currentTime!==void 0?t.currentTime:k.gy;var J=t-k.gy,q=0;J>=0?(k.Y8+=p,k.Oy+=Math.max(p-J,0),q=Math.min(J,k.Y8)):k.IY+=Math.abs(J);J!=0&&(k.Y8=0);k.W0==-1&&J>0&&(k.W0=KO>=0?ut()-KO:-1);k.gy=t;return q}; nsL=function(k,p){cC(k.S,function(t){return t.C==p.C})||k.S.push(p)}; wZi=function(k){var p=uQ(k.f7().T,1);return WU(k,p)}; WU=function(k,p,t){return p>=15E3?!0:k.v0?(t===void 0?0:t)?!0:k.N>0?p>=k.N/2:k.j6>0?p>=k.j6:!1:!1}; iIS=function(k){var p=V4(k.KH.fb,2),t=k.zt.N,J=k.KH,q=V_(k),F=my(q.C),d=my(q.S),S=my(J.volume),U=V4(q.Z,2),f=V4(q.Y8,2),b=V4(J.fb,2),N=V4(q.NO,2),y=V4(q.j6,2);J=V4(J.UZ,2);var Y=k.G3().clone().round();k=k.W1&&k.W1.N?(k.W1?k.W1.N:null).clone().round():null;q=KZ(q,!1);return{gh0:p,Lu:t,F$:F,Ae:d,jp:S,qv:U,uQ:f,fb:b,Mv:N,Nv:y,UZ:J,position:Y,De:k,mz:q}}; Ppu=function(k,p){Qaq(k.T,p,function(){return{gh0:0,Lu:void 0,F$:-1,Ae:-1,jp:-1,qv:-1,uQ:-1,fb:-1,Mv:-1,Nv:-1,UZ:-1,position:void 0,De:void 0,mz:[]}}); k.T[p]=iIS(k)}; Qaq=function(k,p,t){for(var J=k.length;J<p+1;)k.push(t()),J++}; sU=function(k,p,t){var J=k.b5[p];if(J!=null)return J;J=Gci(k,p);var q=vQ(DH,function(F){return F==p}); k=IWu(k,J,J,t,XZq[DH[q]]);p=="fully_viewable_audible_half_duration_impression"&&(k.std="csm");return k}; L6=function(k,p,t){var J=[p];if(k!=p||t!=p)J.unshift(k),J.push(t);return J}; IWu=function(k,p,t,J,q){if(k.ri)return{"if":0,vs:0};var F=k.G3().clone().round(),d=k.W1?k.W1.N:null,S=nZ(),U=Qo(),f=k.f7(),b=k.W1?k.W1.getName():"ns",N={};N["if"]=S.N?1:void 0;N.sdk=k.C?k.C:void 0;N.t=k.timeCreated;N.p=[F.top,F.left,F.bottom,F.right];F&&d&&!kc(d,F)&&(F=d.round(),N.cp=[F.top,F.left,F.bottom,F.right]);N.tos=MJ(f.Y,!1);N.mtos=KZ(f);N.mcvt=f.W0.N;N.ps=void 0;F=bD(f,ut(),k.En());N.vht=F;N.mut=f.Jp.N;N.a=my(k.KH.volume);N.mv=my(f.S);N.fs=k.WW?1:0;N.ft=f.gy.T;N.at=f.X.T;N.as=f.C>0?1:0;N.atos= MJ(f.T);N.ssb=MJ(f.pp,!1);N.amtos=tvw(f.T,!1);N.uac=k.gs;N.vpt=f.N.T;b=="nio"&&(N.nio=1,N.avms="nio");N.gmm="4";N.gdr=WU(k,f.N.T,!0)?1:0;N.efpf=k.ez;if(b=="gsv"||b=="nis")b=k.W1,b.Z>0&&(N.nnut=b.Z);N.tcm=vsi(k);N.nmt=k.IY;N.bt=k.Oy;N.pst=k.W0;N.vpaid=k.L;N.dur=k.N;N.vmtime=k.gy;N.is=k.zt.N;k.T.length>=1&&(N.i0=k.T[0].Lu,N.a0=[k.T[0].jp],N.c0=[k.T[0].fb],N.ss0=[k.T[0].UZ],b=k.T[0].position,F=k.T[0].De,N.p0=b?ZH(b):void 0,b&&F&&!kc(F,b)&&(N.cp0=ZH(F)));k.T.length>=2&&(N.i1=k.T[1].Lu,N.a1=L6(k.T[1].F$, k.T[1].jp,k.T[1].Ae),N.c1=L6(k.T[1].qv,k.T[1].fb,k.T[1].uQ),N.ss1=L6(k.T[1].Mv,k.T[1].UZ,k.T[1].Nv),b=k.T[1].position,F=k.T[1].De,N.p1=b?ZH(b):void 0,b&&F&&!kc(F,b)&&(N.cp1=ZH(F)),N.mtos1=k.T[1].mz);k.T.length>=3&&(N.i2=k.T[2].Lu,N.a2=L6(k.T[2].F$,k.T[2].jp,k.T[2].Ae),N.c2=L6(k.T[2].qv,k.T[2].fb,k.T[2].uQ),N.ss2=L6(k.T[2].Mv,k.T[2].UZ,k.T[2].Nv),b=k.T[2].position,F=k.T[2].De,N.p2=b?ZH(b):void 0,b&&F&&!kc(F,b)&&(N.cp2=ZH(F)),N.mtos2=k.T[2].mz);k.T.length>=4&&(N.i3=k.T[3].Lu,N.a3=L6(k.T[3].F$,k.T[3].jp, k.T[3].Ae),N.c3=L6(k.T[3].qv,k.T[3].fb,k.T[3].uQ),N.ss3=L6(k.T[3].Mv,k.T[3].UZ,k.T[3].Nv),b=k.T[3].position,F=k.T[3].De,N.p3=b?ZH(b):void 0,b&&F&&!kc(F,b)&&(N.cp3=ZH(F)),N.mtos3=k.T[3].mz);N.cs=DMT(k.zt);p&&(N.ic=W1w(k.zt),N.dvpt=f.N.Y,N.dvs=j4(f.Y,.5),N.dfvs=j4(f.Y,1),N.davs=j4(f.T,.5),N.dafvs=j4(f.T,1),t&&(f.N.Y=0,JTq(f.Y),JTq(f.T)),k.uT()&&(N.dtos=f.P0,N.dav=f.L,N.dtoss=k.sG+1,t&&(f.P0=0,f.L=0,k.sG++)),N.dat=f.X.Y,N.dft=f.gy.Y,t&&(f.X.Y=0,f.gy.Y=0));N.ps=[S.X.width,S.X.height];N.bs=[xo(S.T),S.T.getHeight()]; N.scs=[S.C.width,S.C.height];N.dom=S.domain;k.vG&&(N.vds=k.vG);if(k.S.length>0||k.Pk)p=g.tj(k.S),k.Pk&&p.push(k.Pk),N.pings=g.DR(p,function(y){return y.toString()}); p=g.DR(g.dZ(k.S,function(y){return y.S()}),function(y){return y.getId()}); x_i(p);N.ces=p;k.Y&&(N.vmer=k.Y);k.B&&(N.vmmk=k.B);k.P0&&(N.vmiec=k.P0);N.avms=k.W1?k.W1.getName():"ns";k.W1&&g.PQ(N,k.W1.vY());J?(N.c=V4(k.KH.fb,2),N.ss=V4(k.KH.UZ,2)):N.tth=ut()-Roj;N.mc=V4(f.Y8,2);N.nc=V4(f.Z,2);N.mv=my(f.S);N.nv=my(f.C);N.lte=V4(k.lr,2);J=V_(k,q);KZ(f);N.qmtos=KZ(J);N.qnc=V4(J.Z,2);N.qmv=my(J.S);N.qnv=my(J.C);N.qas=J.C>0?1:0;N.qi=k.uy;N.avms||(N.avms="geo");N.psm=f.Oy.T;N.psv=f.Oy.getValue();N.psfv=f.v0.getValue();N.psa=f.k8.getValue();U=L5j(U.FR);U.length&&(N.veid=U);k.X&&g.PQ(N, TNi(k.X));N.avas=k.d3();N.vs=k.ip();N.co=BNL(k);N.tm=f.qO;N.tu=f.RY;return N}; Gci=function(k,p){if(g.Kc(zoM,p))return!0;var t=k.qX[p];return t!==void 0?(k.qX[p]=!0,!t):!1}; BNL=function(k){var p=k.qO.toString(10).padStart(2,"0");p=""+k.Fd+p;k.qO<99&&k.qO++;return p}; hoL=function(){this.T={};var k=KE();vU(this,k,document);var p=eou();try{if("1"==p){for(var t=k.parent;t!=k.top;t=t.parent)vU(this,t,t.document);vU(this,k.top,k.top.document)}}catch(J){}}; eou=function(){var k=document.documentElement;try{if(!r1(KE().top))return"2";var p=[],t=KE(k.ownerDocument);for(k=t;k!=t.top;k=k.parent)if(k.frameElement)p.push(k.frameElement);else break;return p&&p.length!=0?"1":"0"}catch(J){return"2"}}; vU=function(k,p,t){HC(t,"mousedown",function(){return aWT(k)},301); HC(p,"scroll",function(){return Mvj(k)},302); HC(t,"touchmove",function(){return gsj(k)},303); HC(t,"mousemove",function(){return unM(k)},304); HC(t,"keydown",function(){return lWS(k)},305)}; aWT=function(k){g.ZV(k.T,function(p){p.N>1E5||++p.N})}; Mvj=function(k){g.ZV(k.T,function(p){p.T>1E5||++p.T})}; gsj=function(k){g.ZV(k.T,function(p){p.T>1E5||++p.T})}; lWS=function(k){g.ZV(k.T,function(p){p.Y>1E5||++p.Y})}; unM=function(k){g.ZV(k.T,function(p){p.C>1E5||++p.C})}; jau=function(){this.T=[];this.Y=[]}; cU=function(k,p){return g.j9(k.T,function(t){return t.uy==p})}; OIi=function(k,p){return p?g.j9(k.T,function(t){return t.QG.PO==p}):null}; K1M=function(k,p){return g.j9(k.Y,function(t){return t.Ma()==2&&t.uy==p})}; wZ=function(){var k=n6;return k.T.length==0?k.Y:k.Y.length==0?k.T:g.ph(k.Y,k.T)}; HIj=function(k,p){k=p.Ma()==1?k.T:k.Y;var t=lJ(k,function(J){return J==p}); return t!=-1?(k.splice(t,1),p.W1&&p.W1.unobserve(),p.dispose(),!0):!1}; xMM=function(k){var p=n6;if(HIj(p,k)){switch(k.Ma()){case 0:var t=function(){return null}; case 2:t=function(){return K1M(p,k.uy)}; break;case 1:t=function(){return cU(p,k.uy)}}for(var J=t();J;J=t())HIj(p,J)}}; kRj=function(k){var p=n6;k=g.dZ(k,function(t){return!OIi(p,t.QG.PO)}); p.T.push.apply(p.T,g.m(k))}; p0L=function(k){var p=[];g.y1(k,function(t){cC(n6.T,function(J){return J.QG.PO===t.QG.PO&&J.uy===t.uy})||(n6.T.push(t),p.push(t))})}; iD=function(){this.T=this.Y=null}; t7j=function(k,p){function t(J,q){p(J,q)} if(k.Y==null)return!1;k.T=g.j9(k.Y,function(J){return J!=null&&J.fm()}); k.T&&(k.T.init(t)?BgT(k.T.T):p(k.T.T.s3(),k.T));return k.T!=null}; Q_=function(k){k=JST(k);Rp.call(this,k.length?k[k.length-1]:new PC(bt,0));this.N=k;this.Y=null}; JST=function(k){if(!k.length)return[];k=(0,g.dZ)(k,function(t){return t!=null&&t.ob()}); for(var p=1;p<k.length;p++)GT(k[p-1],k[p]);return k}; PU=function(k,p,t,J){Xj.call(this,k,p,t,J);this.Y8=this.gy=this.Z=this.B=this.C=null}; Gf=function(k){return k.C&&k.C.takeRecords?k.C.takeRecords():[]}; qQi=function(k){if(!k.element)return!1;var p=k.element,t=k.Y.T.N,J=Qo().T.T;k.C=new t.IntersectionObserver(it(J,function(q){return IQ(k,q)}),ooq); J=it(J,function(){k.C.unobserve(p);k.C.observe(p);IQ(k,Gf(k))}); t.ResizeObserver?(k.B=new t.ResizeObserver(J),k.B.observe(p)):t.MutationObserver&&(k.Z=new g.B9.MutationObserver(J),k.Z.observe(p,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));k.C.observe(p);IQ(k,Gf(k));return!0}; IQ=function(k,p){try{if(p.length){k.gy||(k.gy=ut());var t=FBM(p),J=nzL(k.element,k.Y.T.N),q=J.x,F=J.y;k.N=new H0(Math.round(F),Math.round(q)+t.boundingClientRect.width,Math.round(F)+t.boundingClientRect.height,Math.round(q));k.T=hY9(k,k.N);var d=Qm6(t.intersectionRect);k.S=pZ(d,k.N.left-d.left,k.N.top-d.top)}}catch(S){k.unobserve(),g1(299,S)}}; FBM=function(k){return LO(k,function(p,t){return p.time>t.time?p:t},k[0])}; X2=function(k){k=k===void 0?bt:k;Rp.call(this,new PC(k,2))}; RQ=function(){var k=$Si();PC.call(this,bt.top,k,"geo")}; $Si=function(){Qo();var k=nZ();return k.N||k.Y?0:2}; dSS=function(){}; BU=function(){this.done=!1;this.T={PX:0,cZ:0,EqG:0,BB:0,d6:-1,Ud:0,aS:0,J1:0,PDO:0};this.X=null;this.S=!1;this.N=null;this.Z=0;this.Y=new Q4(this)}; eL=function(){var k=zf;k.S||(k.S=!0,Eo_(k,function(){return k.C.apply(k,g.m(g.nS.apply(0,arguments)))}),k.C())}; SQ6=function(){v0(dSS);var k=v0(iD);k.T!=null&&k.T.T?BgT(k.T.T):nZ().update(bt)}; hf=function(k,p,t){if(!k.done&&(k.Y.cancel(),p.length!=0)){k.N=null;try{SQ6();var J=ut();Qo().X=J;if(v0(iD).T!=null)for(var q=0;q<p.length;q++)bIM(p[q],J,t);for(J=0;J<p.length;J++)NN0(p[J]);++k.T.BB}finally{t?g.y1(p,function(F){F.KH.fb=0}):k.Y.schedule()}}}; Eo_=function(k,p){if(!k.X){p=aV(142,p);nO();var t;w5.visibilityState?t="visibilitychange":w5.mozVisibilityState?t="mozvisibilitychange":w5.webkitVisibilityState&&(t="webkitvisibilitychange");t&&yo(w5,t,p,{capture:!1})&&(k.X=p)}}; USe=function(){var k=v0(iD);if(k.T!=null){var p=k.T;g.y1(wZ(),function(t){return UM0(t,p)})}}; fRh=function(k,p){k=k.Z;j7&&(k+=p-OQ);return k}; bOi=function(k){k=k===void 0?function(){return{}}:k; zR.Eb="av-js";B0.T=.01;ZBi([function(p){var t=Qo(),J={};J=(J.bin=t.Y,J.type="error",J);t=d1(t.FR);if(!zf.N){var q=zf,F=bt.document,d=lt>=0?ut()-lt:-1,S=ut();q.T.d6==-1&&(d=S);var U=nZ(),f=Qo(),b=d1(f.FR),N=wZ();try{if(N.length>0){var y=U.T;y&&(b.bs=[xo(y),y.getHeight()]);var Y=U.X;Y&&(b.ps=[Y.width,Y.height]);bt.screen&&(b.scs=[bt.screen.width,bt.screen.height])}else b.url=encodeURIComponent(bt.location.href.substring(0,512)),F.referrer&&(b.referrer=encodeURIComponent(F.referrer.substring(0,512))); b.tt=d;b.pt=lt;b.bin=f.Y;bt.google_osd_load_pub_page_exp!==void 0&&(b.olpp=bt.google_osd_load_pub_page_exp);b.deb=[1,q.T.PX,q.T.cZ,q.T.BB,q.T.d6,0,q.Y.Y,q.T.Ud,q.T.aS,q.T.J1,q.T.PDO,-1].join(";");b.tvt=fRh(q,S);U.Y&&(b.inapp=1);if(bt!==null&&bt!=bt.top){N.length>0&&(b.iframe_loc=encodeURIComponent(bt.location.href.substring(0,512)));var T=U.Z;b.is=[xo(T),T.getHeight()]}}catch(A){b.error=1}zf.N=b}y=g.ih(zf.N);Y=Qo().T;$o(Y.N,"prf")==1?(T=new w1,q=Y.T,F=0,q.T>-1&&(F=q.N.T.now()-q.T),T=Of(T,1,$k(q.C+ F),0),q=Y.T,T=Of(T,5,Uf(q.T>-1?q.Y+1:q.Y),0),T=Of(T,2,A4(Y.Y.T.N()),"0"),T=Of(T,3,A4(Y.Y.T.Y()),"0"),Y=Of(T,4,A4(Y.Y.T.T()),"0"),T={},Y=(T.pf=g.Zn(Y.T()),T)):Y={};g.PQ(y,Y);g.PQ(p,J,t,y,k())}])}; ySe=function(){var k=N1L||bt;if(!k)return"";var p=[];if(!k.location||!k.location.href)return"";p.push("url="+encodeURIComponent(k.location.href.substring(0,512)));k.document&&k.document.referrer&&p.push("referrer="+encodeURIComponent(k.document.referrer.substring(0,512)));return p.join("&")}; aQ=function(){var k="youtube.player.web_20250225_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250225_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250225_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250225_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),p;if(((p=k)==null?void 0:p.length)==2)return k[1];k="youtube.player.web_20250225_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var t;return((t=k)==null?void 0:t.length)==3?"20"+k[1]+k[2]:null}; YQi=function(){return"av.default_js".includes("ima_html5_sdk")?{yV:"ima",gJ:null}:"av.default_js".includes("ima_native_sdk")?{yV:"nima",gJ:null}:"av.default_js".includes("admob-native-video-javascript")?{yV:"an",gJ:null}:"youtube.player.web_20250225_01_RC00".includes("cast_js_sdk")?{yV:"cast",gJ:aQ()}:"youtube.player.web_20250225_01_RC00".includes("youtube.player.web")?{yV:"yw",gJ:aQ()}:"youtube.player.web_20250225_01_RC00".includes("outstream_web_client")?{yV:"out",gJ:aQ()}:"youtube.player.web_20250225_01_RC00".includes("drx_rewarded_web")? {yV:"r",gJ:aQ()}:"youtube.player.web_20250225_01_RC00".includes("gam_native_web_video")?{yV:"n",gJ:aQ()}:"youtube.player.web_20250225_01_RC00".includes("admob_interstitial_video")?{yV:"int",gJ:aQ()}:{yV:"j",gJ:null}}; uD=function(k,p){var t={sv:"966"};MR!==null&&(t.v=MR);t.cb=T19;t.nas=n6.T.length;t.msg=k;p!==void 0&&(k=rSe(p))&&(t.e=gZ[k]);return t}; lD=function(k){return Va(k,"custom_metric_viewable")}; rSe=function(k){var p=lD(k)?"custom_metric_viewable":k.toLowerCase();return vQ(DH,function(t){return t==p})}; ZOu=function(){this.T=void 0;this.Y=!1;this.N=0;this.C=-1;this.X="tos"}; mS_=function(k){try{var p=k.split(",");return p.length>g.DV(Cti).length?null:LO(p,function(t,J){J=J.toLowerCase().split("=");if(J.length!=2||ASq[J[0]]===void 0||!ASq[J[0]](J[1]))throw Error("Entry ("+J[0]+", "+J[1]+") is invalid.");t[J[0]]=J[1];return t},{})}catch(t){return null}}; V7j=function(k,p){if(k.T==void 0)return 0;switch(k.X){case "mtos":return k.Y?lQ(p.T,k.T):lQ(p.Y,k.T);case "tos":return k.Y?uQ(p.T,k.T):uQ(p.Y,k.T)}return 0}; jL=function(k,p,t,J){NR.call(this,p,J);this.Z=k;this.B=t}; OU=function(){}; K6=function(k){NR.call(this,"fully_viewable_audible_half_duration_impression",k)}; HU=function(k){this.T=k}; x8=function(k,p){NR.call(this,k,p)}; k_=function(k){y_.call(this,"measurable_impression",k)}; p2=function(){HU.apply(this,arguments)}; t0=function(k,p,t){rZ.call(this,k,p,t)}; J0=function(k){k=k===void 0?bt:k;Rp.call(this,new PC(k,2))}; ot=function(k,p,t){rZ.call(this,k,p,t)}; qd=function(k){k=k===void 0?bt:k;Rp.call(this,new PC(k,2))}; FL=function(){PC.call(this,bt,2,"mraid");this.Oy=0;this.Y8=this.NO=!1;this.Z=null;this.Y=WkS(this.N);this.C.T=new H0(0,0,0,0);this.qO=!1}; $_=function(k,p,t){k.cO("addEventListener",p,t)}; LBM=function(k){Qo().C=!!k.cO("isViewable");$_(k,"viewableChange",WBi);k.cO("getState")==="loading"?$_(k,"ready",DS_):sV9(k)}; sV9=function(k){typeof k.Y.CK.AFMA_LIDAR==="string"?(k.NO=!0,voi(k)):(k.Y.compatibility=3,k.Z="nc",k.iy("w"))}; voi=function(k){k.Y8=!1;var p=$o(Qo().FR,"rmmt")==1,t=!!k.cO("isViewable");(p?!t:1)&&nO().setTimeout(MS(524,function(){k.Y8||(cSh(k),g1(540,Error()),k.Z="mt",k.iy("w"))}),500); noT(k);$_(k,k.Y.CK.AFMA_LIDAR,w0L)}; noT=function(k){var p=$o(Qo().FR,"sneio")==1,t=k.Y.CK.AFMA_LIDAR_EXP_1!==void 0,J=k.Y.CK.AFMA_LIDAR_EXP_2!==void 0;(p=p&&J)&&(k.Y.CK.AFMA_LIDAR_EXP_2=!0);t&&(k.Y.CK.AFMA_LIDAR_EXP_1=!p)}; cSh=function(k){k.cO("removeEventListener",k.Y.CK.AFMA_LIDAR,w0L);k.NO=!1}; iOu=function(k,p){if(k.cO("getState")==="loading")return new g.YY(-1,-1);p=k.cO(p);if(!p)return new g.YY(-1,-1);k=parseInt(p.width,10);p=parseInt(p.height,10);return isNaN(k)||isNaN(p)?new g.YY(-1,-1):new g.YY(k,p)}; DS_=function(){try{var k=v0(FL);k.cO("removeEventListener","ready",DS_);sV9(k)}catch(p){g1(541,p)}}; w0L=function(k,p){try{var t=v0(FL);t.Y8=!0;var J=k?new H0(k.y,k.x+k.width,k.y+k.height,k.x):new H0(0,0,0,0);var q=ut(),F=iQ();var d=new tK(q,F,t);d.T=J;d.volume=p;t.a$(d)}catch(S){g1(542,S)}}; WBi=function(k){var p=Qo(),t=v0(FL);k&&!p.C&&(p.C=!0,t.qO=!0,t.Z&&t.iy("w",!0))}; dl=function(){this.isInitialized=!1;this.T=this.Y=null;var k={};this.Z=(k.start=this.bph,k.firstquartile=this.M66,k.midpoint=this.xOp,k.thirdquartile=this.lr8,k.complete=this.FS8,k.error=this.qyT,k.pause=this.oa,k.resume=this.h9,k.skip=this.Rhh,k.viewable_impression=this.Oi,k.mute=this.hU,k.unmute=this.hU,k.fullscreen=this.OpO,k.exitfullscreen=this.Syy,k.fully_viewable_audible_half_duration_impression=this.Oi,k.measurable_impression=this.Oi,k.abandon=this.oa,k.engagedview=this.Oi,k.impression=this.Oi, k.creativeview=this.Oi,k.progress=this.hU,k.custom_metric_viewable=this.Oi,k.bufferstart=this.oa,k.bufferfinish=this.h9,k.audio_measurable=this.Oi,k.audio_audible=this.Oi,k);k={};this.B=(k.overlay_resize=this.mOp,k.abandon=this.IN,k.close=this.IN,k.collapse=this.IN,k.overlay_unmeasurable_impression=function(p){return sU(p,"overlay_unmeasurable_impression",iQ())},k.overlay_viewable_immediate_impression=function(p){return sU(p,"overlay_viewable_immediate_impression",iQ())},k.overlay_unviewable_impression= function(p){return sU(p,"overlay_unviewable_impression",iQ())},k.overlay_viewable_end_of_session_impression=function(p){return sU(p,"overlay_viewable_end_of_session_impression",iQ())},k); Qo().Y=3;QVe(this);this.N=null}; Ec=function(k,p,t,J){k=k.XV(null,J,!0,p);k.C=t;kRj([k]);return k}; Ptj=function(k,p,t){Dn6(p);var J=k.T;g.y1(p,function(q){var F=g.DR(q.criteria,function(d){var S=mS_(d);if(S==null)d=null;else if(d=new ZOu,S.visible!=null&&(d.T=S.visible/100),S.audible!=null&&(d.Y=S.audible==1),S.time!=null){var U=S.timetype=="mtos"?"mtos":"tos",f=BTS(S.time,"%")?"%":"ms";S=parseInt(S.time,10);f=="%"&&(S/=100);d.setTime(S,f,U)}return d}); cC(F,function(d){return d==null})||nsL(t,new jL(q.id,q.event,F,J))})}; GRi=function(){var k=[],p=Qo();k.push(v0(RQ));$o(p.FR,"mvp_lv")&&k.push(v0(FL));p=[new J0,new qd];p.push(new Q_(k));p.push(new X2(bt));return p}; IRu=function(k){if(!k.isInitialized){k.isInitialized=!0;try{var p=ut(),t=Qo(),J=nZ();lt=p;t.N=79463069;k.Y!=="o"&&(N1L=zO0(bt));if(H9i()){zf.T.cZ=0;zf.T.d6=ut()-p;var q=GRi(),F=v0(iD);F.Y=q;t7j(F,function(){SF()})?zf.done||(USe(),GT(F.T.T,k),eL()):J.N?SF():eL()}else Uc=!0}catch(d){throw n6.reset(),d; }}}; bv=function(k){zf.Y.cancel();f2=k;zf.done=!0}; Nd=function(k){if(k.Y)return k.Y;var p=v0(iD).T;if(p)switch(p.getName()){case "nis":k.Y="n";break;case "gsv":k.Y="m"}k.Y||(k.Y="h");return k.Y}; yD=function(k,p,t){if(k.T==null)return p.vG|=4,!1;k=X0S(k.T,t,p);p.vG|=k;return k==0}; SF=function(){var k=[new X2(bt)],p=v0(iD);p.Y=k;t7j(p,function(){bv("i")})?zf.done||(USe(),eL()):bv("i")}; Rz0=function(k,p){if(!k.qW){var t=sU(k,"start",iQ());t=k.j7.T(t).T;var J={id:"lidarv"};J.r=p;J.sv="966";MR!==null&&(J.v=MR);Rq(t,function(q,F){return J[q]=q=="mtos"||q=="tos"?F:encodeURIComponent(F)}); p=ySe();Rq(p,function(q,F){return J[q]=encodeURIComponent(F)}); p="//pagead2.googlesyndication.com/pagead/gen_204?"+e4(zT(new BC,J));Kkw(p);k.qW=!0}}; Y_=function(k,p,t){hf(zf,[k],!iQ());Ppu(k,t);t!=4&&Qaq(k.NO,t,k.Ys);return sU(k,p,iQ())}; QVe=function(k){bOi(function(){var p=B1h();k.Y!=null&&(p.sdk=k.Y);var t=v0(iD);t.T!=null&&(p.avms=t.T.getName());return p})}; zzw=function(k,p,t,J){var q=OIi(n6,t);q!==null&&q.uy!==p&&(k.m6(q),q=null);q||(p=k.XV(t,ut(),!1,p),n6.Y.length==0&&(Qo().N=79463069),p0L([p]),q=p,q.C=Nd(k),J&&(q.k8=J));return q}; ez0=function(k,p){var t=k[p];t!==void 0&&t>0&&(k[p]=Math.floor(t*1E3))}; B1h=function(){var k=nZ(),p={},t={},J={};return Object.assign({},(p.sv="966",p),MR!==null&&(t.v=MR,t),(J["if"]=k.N?"1":"0",J.nas=String(n6.T.length),J))}; Tt=function(k){NR.call(this,"audio_audible",k)}; rl=function(k){y_.call(this,"audio_measurable",k)}; ZU=function(){HU.apply(this,arguments)}; C2=function(){}; hzi=function(k){this.T=k}; X0S=function(k,p,t){k=k.Y();if(typeof k==="function"){var J={};var q={};J=Object.assign({},MR!==null&&(J.v=MR,J),(q.sv="966",q.cb=T19,q.e=aRj(p),q));q=sU(t,p,iQ());g.PQ(J,q);t.b5[p]=q;J=t.Ma()==2?OB6(J).join("&"):t.j7.T(J).T;try{return k(t.uy,J,p),0}catch(F){return 2}}else return 1}; aRj=function(k){var p=lD(k)?"custom_metric_viewable":k;k=vQ(DH,function(t){return t==p}); return gZ[k]}; A0=function(){dl.call(this);this.S=null;this.X=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; M7S=function(k,p,t){t=t.opt_configurable_tracking_events;k.T!=null&&Array.isArray(t)&&Ptj(k,t,p)}; goe=function(k,p,t){var J=cU(n6,p);J||(J=t.opt_nativeTime||-1,J=Ec(k,p,Nd(k),J),t.opt_osdId&&(J.k8=t.opt_osdId));return J}; uri=function(k,p,t){var J=cU(n6,p);J||(J=Ec(k,p,"n",t.opt_nativeTime||-1));return J}; lRi=function(k,p){var t=cU(n6,p);t||(t=Ec(k,p,"h",-1));return t}; jVu=function(k){Qo();switch(Nd(k)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; HOT=function(k,p,t,J){t=t===void 0?{}:t;var q={};g.PQ(q,{opt_adElement:void 0,opt_fullscreen:void 0},t);var F=k.jR(p,t);t=F?F.j7:k.i8();if(q.opt_bounds)return t.T(uD("ol",J));if(J!==void 0)if(rSe(J)!==void 0)if(Uc)k=uD("ue",J);else if(IRu(k),f2=="i")k=uD("i",J),k["if"]=0;else if(p=k.jR(p,q)){b:{f2=="i"&&(p.ri=!0);F=q.opt_fullscreen;F!==void 0&&tf(p,!!F);var d;if(F=!nZ().Y)(F=sR(g.nc(),"CrKey")&&!(sR(g.nc(),"CrKey")&&sR(g.nc(),"SmartSpeaker"))||sR(g.nc(),"PlayStation")||sR(g.nc(),"Roku")||GCh()||sR(g.nc(), "Xbox"))||(F=g.nc(),F=sR(F,"AppleTV")||sR(F,"Apple TV")||sR(F,"CFNetwork")||sR(F,"tvOS")),F||(F=g.nc(),F=sR(F,"sdk_google_atv_x86")||sR(F,"Android TV")),F=!F;F&&(nO(),F=Yo(w5)===0);if(d=F){switch(p.Ma()){case 1:Rz0(p,"pv");break;case 2:k.tO(p)}bv("pv")}F=J.toLowerCase();if(d=!d)d=$o(Qo().FR,"ssmol")&&F==="loaded"?!1:g.Kc(OOS,F);if(d&&p.nU==0){f2!="i"&&(zf.done=!1);d=q!==void 0?q.opt_nativeTime:void 0;KO=d=typeof d==="number"?d:ut();p.zB=!0;var S=iQ();p.nU=1;p.qX={};p.qX.start=!1;p.qX.firstquartile= !1;p.qX.midpoint=!1;p.qX.thirdquartile=!1;p.qX.complete=!1;p.qX.resume=!1;p.qX.pause=!1;p.qX.skip=!1;p.qX.mute=!1;p.qX.unmute=!1;p.qX.viewable_impression=!1;p.qX.measurable_impression=!1;p.qX.fully_viewable_audible_half_duration_impression=!1;p.qX.fullscreen=!1;p.qX.exitfullscreen=!1;p.sG=0;S||(p.f7().B=d);hf(zf,[p],!S)}(d=p.JQ[F])&&SL(p.zt,d);$o(Qo().FR,"fmd")||g.Kc(KB6,F)&&p.Pk&&p.Pk.Y(p,null);switch(p.Ma()){case 1:var U=lD(F)?k.Z.custom_metric_viewable:k.Z[F];break;case 2:U=k.B[F]}if(U&&(J=U.call(k, p,q,J),$o(Qo().FR,"fmd")&&g.Kc(KB6,F)&&p.Pk&&p.Pk.Y(p,null),J!==void 0)){q=uD(void 0,F);g.PQ(q,J);J=q;break b}J=void 0}p.nU==3&&k.m6(p);k=J}else k=uD("nf",J);else k=void 0;else Uc?k=uD("ue"):F?(k=uD(),g.PQ(k,IWu(F,!0,!1,!1))):k=uD("nf");return typeof k==="string"?t.T():t.T(k)}; xSM=function(k,p){p&&(k.C=p)}; kTL=function(k){var p={};return p.viewability=k.T,p.googleViewability=k.Y,p}; pCL=function(k,p,t){t=t===void 0?{}:t;k=HOT(v0(A0),p,t,k);return kTL(k)}; W8=function(k){var p=g.nS.apply(1,arguments).filter(function(J){return J}).join("&"); if(!p)return k;var t=k.match(/[?&]adurl=/);return t?k.slice(0,t.index+1)+p+"&"+k.slice(t.index+1):k+(k.indexOf("?")===-1?"?":"&")+p}; JKi=function(k){var p=k.url;k=k.Vvp;this.T=p;this.Z=k;k=/[?&]dsh=1(&|$)/.test(p);this.X=!k&&/[?&]ae=1(&|$)/.test(p);this.S=!k&&/[?&]ae=2(&|$)/.test(p);if((this.Y=/[?&]adurl=([^&]*)/.exec(p))&&this.Y[1]){try{var t=decodeURIComponent(this.Y[1])}catch(J){t=null}this.N=t}this.C=(new Date).getTime()-t46}; ocM=function(k){k=k.Z;if(!k)return"";var p="";k.platform&&(p+="&uap="+encodeURIComponent(k.platform));k.platformVersion&&(p+="&uapv="+encodeURIComponent(k.platformVersion));k.uaFullVersion&&(p+="&uafv="+encodeURIComponent(k.uaFullVersion));k.architecture&&(p+="&uaa="+encodeURIComponent(k.architecture));k.model&&(p+="&uam="+encodeURIComponent(k.model));k.bitness&&(p+="&uab="+encodeURIComponent(k.bitness));k.fullVersionList&&(p+="&uafvl="+encodeURIComponent(k.fullVersionList.map(function(t){return encodeURIComponent(t.brand)+ ";"+encodeURIComponent(t.version)}).join("|"))); typeof k.wow64!=="undefined"&&(p+="&uaw="+Number(k.wow64));return p.substring(1)}; $Jw=function(k,p,t,J,q){var F=window;var d=d===void 0?!1:d;var S;t?S=(d===void 0?0:d)?"//ep1.adtrafficquality.google/bg/"+HH(t)+".js":"//pagead2.googlesyndication.com/bg/"+HH(t)+".js":S="";d=d===void 0?!1:d;t=F.document;var U={};p&&(U._scs_=p);U._bgu_=S;U._bgp_=J;U._li_="v_h.3.0.0.0";q&&(U._upb_=q);(p=F.GoogleTyFxhY)&&typeof p.push=="function"||(p=F.GoogleTyFxhY=[]);p.push(U);p=zJ(t).createElement("SCRIPT");p.type="text/javascript";p.async=!0;k=(d===void 0?0:d)?JHT(qHu,HH(k)+".js"):JHT(FSh,HH(k)+ ".js");g.a_(p,k);(F=(F.GoogleTyFxhYEET||{})[p.src])?F():t.getElementsByTagName("head")[0].appendChild(p)}; dJM=function(){try{var k,p;return!!((k=window)==null?0:(p=k.top)==null?0:p.location.href)&&!1}catch(t){return!0}}; L2=function(){var k=Ec6();k=k===void 0?"bevasrsg":k;return new Promise(function(p){var t=window===window.top?window:dJM()?window:window.top,J=t[k],q;((q=J)==null?0:q.bevasrs)?p(new sc(J.bevasrs)):(J||(J={},J=(J.nqfbel=[],J),t[k]=J),J.nqfbel.push(function(F){p(new sc(F))}))})}; SH_=function(k){var p={c:k.pH,e:k.JG,mc:k.kQ,me:k.GT};k.i6&&(p.co={c:k.i6.Kr,a:k.i6.Rz,s:k.i6.l7});return p}; v8=function(k){g.R.call(this);this.wpc=k}; sc=function(k){g.R.call(this);var p=this;this.UX=k;this.N="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.T=void 0;this.FJ=this.UX.p;this.C=this.P9.bind(this);this.addOnDisposeCallback(function(){return void UJ_(p)})}; f06=function(k){var p;return g.Q(function(t){if(t.T==1){if(!k.UX.wpc)throw new qQ(30,"NWA");return k.Y?t.return(k.Y):g.n(t,k.UX.wpc(),2)}p=t.Y;k.Y=new v8(p);return t.return(k.Y)})}; UJ_=function(k){k.T!==void 0&&(k.N.forEach(function(p){var t;(t=k.T)==null||t.removeEventListener(p,k.C)}),k.T=void 0)}; yKi=function(k){if(g.WW(g.xT(k)))return!1;if(k.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var p=new g.Sv(k)}catch(t){return g.j9(bZ0,function(J){return k.search(J)>0})!=null}return p.S.match(N5i)?!0:g.j9(bZ0,function(t){return k.match(t)!=null})!=null}; g.c8=function(k,p){return k.replace(YH_,function(t,J){try{var q=g.nE(p,J);if(q==null||q.toString()==null)return t;q=q.toString();if(q==""||!g.WW(g.xT(q)))return encodeURIComponent(q).replace(/%2C/g,",")}catch(F){}return t})}; rKT=function(k){var p=T5i.DG;if(p){var t,J;(J=(t=performance).mark)==null||J.call(t,"signalSetStart__"+k)}t={};return t[Symbol.dispose]=function(){if(p){var q,F;(F=(q=performance).measure)==null||F.call(q,"signalSet__"+k,"signalSetStart__"+k)}},t}; n2=function(k,p){return Object.is(k,p)}; iv=function(k){var p=wl;wl=k;return p}; ZZT=function(k){if(k.Zy!==void 0){var p=QD;QD=!0;try{for(var t=g.Z(k.Zy),J=t.next();!J.done;J=t.next()){var q=J.value;q.hN||(k=void 0,q.hN=!0,ZZT(q),(k=q.IQ)==null||k.call(q,q))}}finally{QD=p}}}; CQi=function(){var k;return((k=wl)==null?void 0:k.Zs)!==!1}; AKT=function(k){k&&(k.lQ=0);return iv(k)}; mJL=function(k,p){iv(p);if(k&&k.QA!==void 0&&k.pA!==void 0&&k.QY!==void 0){if(P8(k))for(p=k.lQ;p<k.QA.length;p++)Gt(k.QA[p],k.pA[p]);for(;k.QA.length>k.lQ;)k.QA.pop(),k.QY.pop(),k.pA.pop()}}; WSi=function(k,p,t){V4_(k);if(k.Zy.length===0&&k.QA!==void 0)for(var J=0;J<k.QA.length;J++)k.pA[J]=WSi(k.QA[J],k,J);k.OC.push(t);return k.Zy.push(p)-1}; Gt=function(k,p){V4_(k);if(k.Zy.length===1&&k.QA!==void 0)for(var t=0;t<k.QA.length;t++)Gt(k.QA[t],k.pA[t]);t=k.Zy.length-1;k.Zy[p]=k.Zy[t];k.OC[p]=k.OC[t];k.Zy.length--;k.OC.length--;p<k.Zy.length&&(t=k.OC[p],k=k.Zy[p],DJ0(k),k.pA[t]=p)}; P8=function(k){var p,t;return k.nf||((t=k==null?void 0:(p=k.Zy)==null?void 0:p.length)!=null?t:0)>0}; DJ0=function(k){k.QA!=null||(k.QA=[]);k.pA!=null||(k.pA=[]);k.QY!=null||(k.QY=[])}; V4_=function(k){k.Zy!=null||(k.Zy=[]);k.OC!=null||(k.OC=[])}; LSu=function(k){function p(){if(QD)throw Error("");if(wl!==null){var J=wl.lQ++;DJ0(wl);J<wl.QA.length&&wl.QA[J]!==t&&P8(wl)&&Gt(wl.QA[J],wl.pA[J]);wl.QA[J]!==t&&(wl.QA[J]=t,wl.pA[J]=P8(wl)?WSi(t,wl,J):0);wl.QY[J]=t.version}return t.value} var t=Object.create(spM);t.value=k;p[It]=t;return p}; cK6=function(k,p){if(!CQi())throw Error();k.iz(k.value,p)||(k.value=p,k.version++,vcj++,ZZT(k))}; PQT=function(k,p){function t(){nci++;return J()} p=p===void 0?"":p;var J=LSu(k);wCw++;var q=J[It];q.Pv=p!=null?p:"[signal]";t[It]=q;return[t,function(F){var d={stack:[],error:void 0,hasError:!1};try{if(tC(d,rKT(q.Pv)),iZq++,F&&F[QpM]){var S=F[QpM];if(!CQi())throw Error();cK6(q,S(q.value))}else cK6(q,F)}catch(U){d.error=U,d.hasError=!0}finally{oL(d)}}]}; Rt=function(k){g.Hg.call(this);var p=this;this.X=this.Y=0;this.Af=k!=null?k:{Hj:function(q,F){return setTimeout(q,F)}, KU:function(q){clearTimeout(q)}}; var t,J;this.T=(J=(t=window.navigator)==null?void 0:t.onLine)!=null?J:!0;this.N=function(){return g.Q(function(q){return g.n(q,XL(p),0)})}; window.addEventListener("offline",this.N);window.addEventListener("online",this.N);this.X||this.SV()}; GTj=function(){var k=g.B8;Rt.instance||(Rt.instance=new Rt(k));return Rt.instance}; XL=function(k,p){return k.C?k.C:k.C=new Promise(function(t){var J,q,F,d;return g.Q(function(S){switch(S.T){case 1:return J=window.AbortController?new window.AbortController:void 0,F=(q=J)==null?void 0:q.signal,d=!1,g.Aw(S,2,3),J&&(k.Y=k.Af.Hj(function(){J.abort()},p||2E4)),g.n(S,fetch("/generate_204",{method:"HEAD", signal:F}),5);case 5:d=!0;case 3:g.Du(S);k.C=void 0;k.Y&&(k.Af.KU(k.Y),k.Y=0);d!==k.T&&(k.T=d,k.T?k.dispatchEvent("networkstatus-online"):k.dispatchEvent("networkstatus-offline"));t(d);g.s0(S,0);break;case 2:g.W9(S),d=!1,S.oY(3)}})})}; zt=function(){this.data=[];this.T=-1}; I0M=function(k){k.T===-1&&(k.T=k.data.reduce(function(p,t,J){return p+(t?Math.pow(2,J):0)},0)); return k.T}; eF=function(k){k.setAttribute("role","link")}; at=function(k,p){Array.isArray(p)&&(p=p.join(" "));p===""||p==void 0?(h0||(p={},h0=(p.atomic=!1,p.autocomplete="none",p.dropeffect="none",p.haspopup=!1,p.live="off",p.multiline=!1,p.multiselectable=!1,p.orientation="vertical",p.readonly=!1,p.relevant="additions text",p.required=!1,p.sort="none",p.busy=!1,p.disabled=!1,p.hidden=!1,p.invalid="false",p)),p=h0,"label"in p?k.setAttribute("aria-label",p.label):k.removeAttribute("aria-label")):k.setAttribute("aria-label",p)}; Md=function(k){k=k.getAttribute("aria-label");return k==null||k==void 0?"":String(k)}; g.lv=function(k,p,t){g.R.call(this);this.T=null;this.C=!1;this.S=k;this.X=t;this.Y=p||window;this.N=(0,g.H9)(this.c7,this)}; XCj=function(k){k=k.Y;return k.requestAnimationFrame||k.webkitRequestAnimationFrame||k.mozRequestAnimationFrame||k.oRequestAnimationFrame||k.msRequestAnimationFrame||null}; Rk9=function(k){k=k.Y;return k.cancelAnimationFrame||k.cancelRequestAnimationFrame||k.webkitCancelRequestAnimationFrame||k.mozCancelRequestAnimationFrame||k.oCancelRequestAnimationFrame||k.msCancelRequestAnimationFrame||null}; g.jF=function(k,p,t){g.R.call(this);this.T=k;this.Th=p||0;this.Y=t;this.N=(0,g.H9)(this.ZT,this)}; g.Oc=function(k,p){k.isActive()||k.start(p)}; g.K2=function(k){k.stop();k.ZT()}; g.H8=function(k){k.isActive()&&g.K2(k)}; g.x_=function(k,p){this.T=k[g.B9.Symbol.iterator]();this.Y=p}; B5j=function(k){return typeof k.className=="string"?k.className:k.getAttribute&&k.getAttribute("class")||""}; kE=function(k){return k.classList?k.classList:B5j(k).match(/\S+/g)||[]}; g.pv=function(k,p){typeof k.className=="string"?k.className=p:k.setAttribute&&k.setAttribute("class",p)}; g.tB=function(k,p){return k.classList?k.classList.contains(p):g.Kc(kE(k),p)}; g.JB=function(k,p){if(k.classList)k.classList.add(p);else if(!g.tB(k,p)){var t=B5j(k);g.pv(k,t+(t.length>0?" "+p:p))}}; g.ob=function(k,p){if(k.classList)Array.prototype.forEach.call(p,function(q){g.JB(k,q)}); else{var t={};Array.prototype.forEach.call(kE(k),function(q){t[q]=!0}); Array.prototype.forEach.call(p,function(q){t[q]=!0}); p="";for(var J in t)p+=p.length>0?" "+J:J;g.pv(k,p)}}; g.qN=function(k,p){k.classList?k.classList.remove(p):g.tB(k,p)&&g.pv(k,Array.prototype.filter.call(kE(k),function(t){return t!=p}).join(" "))}; g.Fz=function(k,p){k.classList?Array.prototype.forEach.call(p,function(t){g.qN(k,t)}):g.pv(k,Array.prototype.filter.call(kE(k),function(t){return!g.Kc(p,t)}).join(" "))}; g.$E=function(k,p,t){t?g.JB(k,p):g.qN(k,p)}; zkM=function(k,p){var t=!g.tB(k,p);g.$E(k,p,t)}; g.dQ=function(){g.Hg.call(this);this.T=0;this.endTime=this.startTime=null}; ekS=function(k,p){Array.isArray(p)||(p=[p]);p=p.map(function(t){return typeof t==="string"?t:t.property+" "+t.duration+"s "+t.timing+" "+t.delay+"s"}); g.S4(k,"transition",p.join(","))}; Ei=function(k,p,t,J,q){g.dQ.call(this);this.Y=k;this.X=p;this.S=t;this.C=J;this.Z=Array.isArray(q)?q:[q]}; hkh=function(k,p,t,J){return new Ei(k,p,{opacity:t},{opacity:J},{property:"opacity",duration:p,timing:"ease-in",delay:0})}; M4j=function(k){k=Lc(k);if(k=="")return null;var p=String(k.slice(0,4)).toLowerCase();if(("url("<p?-1:"url("==p?0:1)==0)return!k.endsWith(")")||(k?k.split("(").length-1:0)>1||k&&k.split(")"),null;if(k.indexOf("(")>0){if(/"|'/.test(k))return null;p=/([\-\w]+)\(/g;for(var t;t=p.exec(k);)if(!(t[1].toLowerCase()in a00))return null}return k}; SI=function(k,p){k=g.B9[k];return k&&k.prototype?(p=Object.getOwnPropertyDescriptor(k.prototype,p))&&p.get||null:null}; gcS=function(k){var p=g.B9.CSSStyleDeclaration;return p&&p.prototype&&p.prototype[k]||null}; ujq=function(k,p,t,J){if(k)return k.apply(p,J);if(g.Ui&&document.documentMode<10){if(!p[t].call)throw Error("IE Clobbering detected");}else if(typeof p[t]!="function")throw Error("Clobbering detected");return p[t].apply(p,J)}; HZe=function(k){if(!k)return"";var p=document.createElement("div").style;l0e(k).forEach(function(t){var J=g.Ok&&t in jpw?t:t.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Va(J,"--")||Va(J,"var")||(t=ujq(OZi,k,k.getPropertyValue?"getPropertyValue":"getAttribute",[t])||"",t=M4j(t),t!=null&&ujq(KSu,p,p.setProperty?"setProperty":"setAttribute",[J,t]))}); return p.cssText||""}; l0e=function(k){g.uq(k)?k=g.tj(k):(k=g.DV(k),g.xn(k,"cssText"));return k}; g.bu=function(k){var p,t=p=0,J=!1;k=k.split(xJL);for(var q=0;q<k.length;q++){var F=k[q];g.fv.test(F)?(p++,t++):kf0.test(F)?J=!0:pUi.test(F)?t++:tLq.test(F)&&(J=!0)}p=t==0?J?1:0:p/t>.4?-1:1;return(p==0?null:p)==-1?"rtl":"ltr"}; g.T7=function(k){if(k instanceof NN||k instanceof yv||k instanceof YE)return k;if(typeof k.next=="function")return new NN(function(){return k}); if(typeof k[Symbol.iterator]=="function")return new NN(function(){return k[Symbol.iterator]()}); if(typeof k.Qe=="function")return new NN(function(){return k.Qe()}); throw Error("Not an iterator or iterable.");}; NN=function(k){this.Y=k}; yv=function(k){this.Y=k}; YE=function(k){NN.call(this,function(){return k}); this.N=k}; rQ=function(k,p,t,J,q,F,d,S){this.T=k;this.Z=p;this.N=t;this.X=J;this.C=q;this.S=F;this.Y=d;this.B=S}; Zq=function(k,p){if(p==0)return k.T;if(p==1)return k.Y;var t=bh(k.T,k.N,p),J=bh(k.N,k.C,p);k=bh(k.C,k.Y,p);t=bh(t,J,p);J=bh(J,k,p);return bh(t,J,p)}; JfL=function(k,p){var t=(p-k.T)/(k.Y-k.T);if(t<=0)return 0;if(t>=1)return 1;for(var J=0,q=1,F=0,d=0;d<8;d++){F=Zq(k,t);var S=(Zq(k,t+1E-6)-F)/1E-6;if(Math.abs(F-p)<1E-6)return t;if(Math.abs(S)<1E-6)break;else F<p?J=t:q=t,t-=(F-p)/S}for(d=0;Math.abs(F-p)>1E-6&&d<8;d++)F<p?(J=t,t=(t+q)/2):(q=t,t=(t+J)/2),F=Zq(k,t);return t}; Cv=function(k,p){this.start=k<p?k:p;this.end=k<p?p:k}; AB=function(k){return(k=k.exec(g.nc()))?k[1]:""}; m6=function(k){return g.cW(o8q,k)>=0}; g.Vv=function(k){g.R.call(this);this.S=1;this.N=[];this.C=0;this.T=[];this.Y={};this.Z=!!k}; qUq=function(k,p,t){g.Eo(function(){k.apply(p,t)})}; g.Wp=function(k){this.T=k}; Dq=function(k){this.T=k}; Fye=function(k){this.data=k}; $Rw=function(k){return k===void 0||k instanceof Fye?k:new Fye(k)}; si=function(k){this.T=k}; g.dRi=function(k){var p=k.creation;k=k.expiration;return!!k&&k<g.kn()||!!p&&p>g.kn()}; g.Lv=function(k){this.T=k}; E8L=function(){}; vp=function(){}; cp=function(k){this.T=k;this.Y=null}; nv=function(k){if(k.T==null)throw Error("Storage mechanism: Storage unavailable");var p;((p=k.Y)!=null?p:k.isAvailable())||Cc(Error("Storage mechanism: Storage unavailable"))}; wQ=function(){var k=null;try{k=g.B9.localStorage||null}catch(p){}cp.call(this,k)}; SUi=function(){var k=null;try{k=g.B9.sessionStorage||null}catch(p){}cp.call(this,k)}; iu=function(k,p){this.Y=k;this.T=p+"::"}; g.Qv=function(k){var p=new wQ;return p.isAvailable()?k?new iu(p,k):p:null}; Pp=function(k,p){this.T=k;this.Y=p}; G7=function(k){this.T=[];if(k)a:{if(k instanceof G7){var p=k.zS();k=k.Ve();if(this.T.length<=0){for(var t=this.T,J=0;J<p.length;J++)t.push(new Pp(p[J],k[J]));break a}}else p=g.DV(k),k=g.WQ(k);for(t=0;t<p.length;t++)this.vN(p[t],k[t])}}; Ib=function(){G7.apply(this,arguments)}; Xz=function(){}; UR9=function(k){var p,t,J=k.length,q=0;for(p=0;p<J;p++){var F=k.charCodeAt(p);if((F&64512)===55296&&p+1<J){var d=k.charCodeAt(p+1);(d&64512)===56320&&(F=65536+(F-55296<<10)+(d-56320),p++)}q+=F<128?1:F<2048?2:F<65536?3:4}var S=new Rb.TN(q);for(p=t=0;t<q;p++)F=k.charCodeAt(p),(F&64512)===55296&&p+1<J&&(d=k.charCodeAt(p+1),(d&64512)===56320&&(F=65536+(F-55296<<10)+(d-56320),p++)),F<128?S[t++]=F:(F<2048?S[t++]=192|F>>>6:(F<65536?S[t++]=224|F>>>12:(S[t++]=240|F>>>18,S[t++]=128|F>>>12&63),S[t++]=128|F>>> 6&63),S[t++]=128|F&63);return S}; Bp=function(k){for(var p=k.length;--p>=0;)k[p]=0}; z7=function(k,p,t,J,q){this.RF=k;this.LJ=p;this.pJ=t;this.X4=J;this.qQT=q;this.RK=k&&k.length}; eI=function(k,p){this.aQ=k;this.j$=0;this.aT=p}; hB=function(k,p){k.xC[k.pending++]=p&255;k.xC[k.pending++]=p>>>8&255}; ab=function(k,p,t){k.R3>16-t?(k.mV|=p<<k.R3&65535,hB(k,k.mV),k.mV=p>>16-k.R3,k.R3+=t-16):(k.mV|=p<<k.R3&65535,k.R3+=t)}; MN=function(k,p,t){ab(k,t[p*2],t[p*2+1])}; fHL=function(k,p){var t=0;do t|=k&1,k>>>=1,t<<=1;while(--p>0);return t>>>1}; b69=function(k,p,t){var J=Array(16),q=0,F;for(F=1;F<=15;F++)J[F]=q=q+t[F-1]<<1;for(t=0;t<=p;t++)q=k[t*2+1],q!==0&&(k[t*2]=fHL(J[q]++,q))}; NZw=function(k){var p;for(p=0;p<286;p++)k.Sm[p*2]=0;for(p=0;p<30;p++)k.mf[p*2]=0;for(p=0;p<19;p++)k.Ue[p*2]=0;k.Sm[512]=1;k.bT=k.b7=0;k.J_=k.matches=0}; yfS=function(k){k.R3>8?hB(k,k.mV):k.R3>0&&(k.xC[k.pending++]=k.mV);k.mV=0;k.R3=0}; YUi=function(k,p,t){yfS(k);hB(k,t);hB(k,~t);Rb.Oc(k.xC,k.window,p,t,k.pending);k.pending+=t}; TZi=function(k,p,t,J){var q=p*2,F=t*2;return k[q]<k[F]||k[q]===k[F]&&J[p]<=J[t]}; gQ=function(k,p,t){for(var J=k.Db[t],q=t<<1;q<=k.TR;){q<k.TR&&TZi(p,k.Db[q+1],k.Db[q],k.depth)&&q++;if(TZi(p,J,k.Db[q],k.depth))break;k.Db[t]=k.Db[q];t=q;q<<=1}k.Db[t]=J}; rfq=function(k,p,t){var J=0;if(k.J_!==0){do{var q=k.xC[k.cD+J*2]<<8|k.xC[k.cD+J*2+1];var F=k.xC[k.QU+J];J++;if(q===0)MN(k,F,p);else{var d=uu[F];MN(k,d+256+1,p);var S=lu[d];S!==0&&(F-=jI[d],ab(k,F,S));q--;d=q<256?Oi[q]:Oi[256+(q>>>7)];MN(k,d,t);S=Kv[d];S!==0&&(q-=Hp[d],ab(k,q,S))}}while(J<k.J_)}MN(k,256,p)}; xE=function(k,p){var t=p.aQ,J=p.aT.RF,q=p.aT.RK,F=p.aT.X4,d,S=-1;k.TR=0;k.Rm=573;for(d=0;d<F;d++)t[d*2]!==0?(k.Db[++k.TR]=S=d,k.depth[d]=0):t[d*2+1]=0;for(;k.TR<2;){var U=k.Db[++k.TR]=S<2?++S:0;t[U*2]=1;k.depth[U]=0;k.bT--;q&&(k.b7-=J[U*2+1])}p.j$=S;for(d=k.TR>>1;d>=1;d--)gQ(k,t,d);U=F;do d=k.Db[1],k.Db[1]=k.Db[k.TR--],gQ(k,t,1),J=k.Db[1],k.Db[--k.Rm]=d,k.Db[--k.Rm]=J,t[U*2]=t[d*2]+t[J*2],k.depth[U]=(k.depth[d]>=k.depth[J]?k.depth[d]:k.depth[J])+1,t[d*2+1]=t[J*2+1]=U,k.Db[1]=U++,gQ(k,t,1);while(k.TR>= 2);k.Db[--k.Rm]=k.Db[1];d=p.aQ;U=p.j$;J=p.aT.RF;q=p.aT.RK;F=p.aT.LJ;var f=p.aT.pJ,b=p.aT.qQT,N,y=0;for(N=0;N<=15;N++)k.Ic[N]=0;d[k.Db[k.Rm]*2+1]=0;for(p=k.Rm+1;p<573;p++){var Y=k.Db[p];N=d[d[Y*2+1]*2+1]+1;N>b&&(N=b,y++);d[Y*2+1]=N;if(!(Y>U)){k.Ic[N]++;var T=0;Y>=f&&(T=F[Y-f]);var A=d[Y*2];k.bT+=A*(N+T);q&&(k.b7+=A*(J[Y*2+1]+T))}}if(y!==0){do{for(N=b-1;k.Ic[N]===0;)N--;k.Ic[N]--;k.Ic[N+1]+=2;k.Ic[b]--;y-=2}while(y>0);for(N=b;N!==0;N--)for(Y=k.Ic[N];Y!==0;)J=k.Db[--p],J>U||(d[J*2+1]!==N&&(k.bT+=(N- d[J*2+1])*d[J*2],d[J*2+1]=N),Y--)}b69(t,S,k.Ic)}; Z6i=function(k,p,t){var J,q=-1,F=p[1],d=0,S=7,U=4;F===0&&(S=138,U=3);p[(t+1)*2+1]=65535;for(J=0;J<=t;J++){var f=F;F=p[(J+1)*2+1];++d<S&&f===F||(d<U?k.Ue[f*2]+=d:f!==0?(f!==q&&k.Ue[f*2]++,k.Ue[32]++):d<=10?k.Ue[34]++:k.Ue[36]++,d=0,q=f,F===0?(S=138,U=3):f===F?(S=6,U=3):(S=7,U=4))}}; CDT=function(k,p,t){var J,q=-1,F=p[1],d=0,S=7,U=4;F===0&&(S=138,U=3);for(J=0;J<=t;J++){var f=F;F=p[(J+1)*2+1];if(!(++d<S&&f===F)){if(d<U){do MN(k,f,k.Ue);while(--d!==0)}else f!==0?(f!==q&&(MN(k,f,k.Ue),d--),MN(k,16,k.Ue),ab(k,d-3,2)):d<=10?(MN(k,17,k.Ue),ab(k,d-3,3)):(MN(k,18,k.Ue),ab(k,d-11,7));d=0;q=f;F===0?(S=138,U=3):f===F?(S=6,U=3):(S=7,U=4)}}}; Afj=function(k){var p=4093624447,t;for(t=0;t<=31;t++,p>>>=1)if(p&1&&k.Sm[t*2]!==0)return 0;if(k.Sm[18]!==0||k.Sm[20]!==0||k.Sm[26]!==0)return 1;for(t=32;t<256;t++)if(k.Sm[t*2]!==0)return 1;return 0}; kl=function(k,p,t){k.xC[k.cD+k.J_*2]=p>>>8&255;k.xC[k.cD+k.J_*2+1]=p&255;k.xC[k.QU+k.J_]=t&255;k.J_++;p===0?k.Sm[t*2]++:(k.matches++,p--,k.Sm[(uu[t]+256+1)*2]++,k.mf[(p<256?Oi[p]:Oi[256+(p>>>7)])*2]++);return k.J_===k.RB-1}; tq=function(k,p){k.msg=pF[p];return p}; Jq=function(k){for(var p=k.length;--p>=0;)k[p]=0}; o3=function(k){var p=k.state,t=p.pending;t>k.im&&(t=k.im);t!==0&&(Rb.Oc(k.output,p.xC,p.K1,t,k.x5),k.x5+=t,p.K1+=t,k.rb+=t,k.im-=t,p.pending-=t,p.pending===0&&(p.K1=0))}; $l=function(k,p){var t=k.b2>=0?k.b2:-1,J=k.jz-k.b2,q=0;if(k.level>0){k.kf.EG===2&&(k.kf.EG=Afj(k));xE(k,k.zp);xE(k,k.OB);Z6i(k,k.Sm,k.zp.j$);Z6i(k,k.mf,k.OB.j$);xE(k,k.AF);for(q=18;q>=3&&k.Ue[mRT[q]*2+1]===0;q--);k.bT+=3*(q+1)+5+5+4;var F=k.bT+3+7>>>3;var d=k.b7+3+7>>>3;d<=F&&(F=d)}else F=d=J+5;if(J+4<=F&&t!==-1)ab(k,p?1:0,3),YUi(k,t,J);else if(k.strategy===4||d===F)ab(k,2+(p?1:0),3),rfq(k,q9,F3);else{ab(k,4+(p?1:0),3);t=k.zp.j$+1;J=k.OB.j$+1;q+=1;ab(k,t-257,5);ab(k,J-1,5);ab(k,q-4,4);for(F=0;F<q;F++)ab(k, k.Ue[mRT[F]*2+1],3);CDT(k,k.Sm,t-1);CDT(k,k.mf,J-1);rfq(k,k.Sm,k.mf)}NZw(k);p&&yfS(k);k.b2=k.jz;o3(k.kf)}; dD=function(k,p){k.xC[k.pending++]=p}; EB=function(k,p){k.xC[k.pending++]=p>>>8&255;k.xC[k.pending++]=p&255}; VL6=function(k,p){var t=k.ZE,J=k.jz,q=k.JP,F=k.iU,d=k.jz>k.Fo-262?k.jz-(k.Fo-262):0,S=k.window,U=k.C2,f=k.JK,b=k.jz+258,N=S[J+q-1],y=S[J+q];k.JP>=k.Tx&&(t>>=2);F>k.GA&&(F=k.GA);do{var Y=p;if(S[Y+q]===y&&S[Y+q-1]===N&&S[Y]===S[J]&&S[++Y]===S[J+1]){J+=2;for(Y++;S[++J]===S[++Y]&&S[++J]===S[++Y]&&S[++J]===S[++Y]&&S[++J]===S[++Y]&&S[++J]===S[++Y]&&S[++J]===S[++Y]&&S[++J]===S[++Y]&&S[++J]===S[++Y]&&J<b;);Y=258-(b-J);J=b-258;if(Y>q){k.K3=p;q=Y;if(Y>=F)break;N=S[J+q-1];y=S[J+q]}}}while((p=f[p&U])>d&&--t!== 0);return q<=k.GA?q:k.GA}; fF=function(k){var p=k.Fo,t;do{var J=k.DF-k.GA-k.jz;if(k.jz>=p+(p-262)){Rb.Oc(k.window,k.window,p,p,0);k.K3-=p;k.jz-=p;k.b2-=p;var q=t=k.Rr;do{var F=k.head[--q];k.head[q]=F>=p?F-p:0}while(--t);q=t=p;do F=k.JK[--q],k.JK[q]=F>=p?F-p:0;while(--t);J+=p}if(k.kf.x4===0)break;q=k.kf;t=k.window;F=k.jz+k.GA;var d=q.x4;d>J&&(d=J);d===0?t=0:(q.x4-=d,Rb.Oc(t,q.input,q.cI,d,F),q.state.wrap===1?q.oG=S5(q.oG,t,d,F):q.state.wrap===2&&(q.oG=UB(q.oG,t,d,F)),q.cI+=d,q.HF+=d,t=d);k.GA+=t;if(k.GA+k.vN>=3)for(J=k.jz-k.vN, k.zq=k.window[J],k.zq=(k.zq<<k.r4^k.window[J+1])&k.iT;k.vN&&!(k.zq=(k.zq<<k.r4^k.window[J+3-1])&k.iT,k.JK[J&k.C2]=k.head[k.zq],k.head[k.zq]=J,J++,k.vN--,k.GA+k.vN<3););}while(k.GA<262&&k.kf.x4!==0)}; bw=function(k,p){for(var t;;){if(k.GA<262){fF(k);if(k.GA<262&&p===0)return 1;if(k.GA===0)break}t=0;k.GA>=3&&(k.zq=(k.zq<<k.r4^k.window[k.jz+3-1])&k.iT,t=k.JK[k.jz&k.C2]=k.head[k.zq],k.head[k.zq]=k.jz);t!==0&&k.jz-t<=k.Fo-262&&(k.Nh=VL6(k,t));if(k.Nh>=3)if(t=kl(k,k.jz-k.K3,k.Nh-3),k.GA-=k.Nh,k.Nh<=k.DS&&k.GA>=3){k.Nh--;do k.jz++,k.zq=(k.zq<<k.r4^k.window[k.jz+3-1])&k.iT,k.JK[k.jz&k.C2]=k.head[k.zq],k.head[k.zq]=k.jz;while(--k.Nh!==0);k.jz++}else k.jz+=k.Nh,k.Nh=0,k.zq=k.window[k.jz],k.zq=(k.zq<<k.r4^ k.window[k.jz+1])&k.iT;else t=kl(k,0,k.window[k.jz]),k.GA--,k.jz++;if(t&&($l(k,!1),k.kf.im===0))return 1}k.vN=k.jz<2?k.jz:2;return p===4?($l(k,!0),k.kf.im===0?3:4):k.J_&&($l(k,!1),k.kf.im===0)?1:2}; N9=function(k,p){for(var t,J;;){if(k.GA<262){fF(k);if(k.GA<262&&p===0)return 1;if(k.GA===0)break}t=0;k.GA>=3&&(k.zq=(k.zq<<k.r4^k.window[k.jz+3-1])&k.iT,t=k.JK[k.jz&k.C2]=k.head[k.zq],k.head[k.zq]=k.jz);k.JP=k.Nh;k.j1=k.K3;k.Nh=2;t!==0&&k.JP<k.DS&&k.jz-t<=k.Fo-262&&(k.Nh=VL6(k,t),k.Nh<=5&&(k.strategy===1||k.Nh===3&&k.jz-k.K3>4096)&&(k.Nh=2));if(k.JP>=3&&k.Nh<=k.JP){J=k.jz+k.GA-3;t=kl(k,k.jz-1-k.j1,k.JP-3);k.GA-=k.JP-1;k.JP-=2;do++k.jz<=J&&(k.zq=(k.zq<<k.r4^k.window[k.jz+3-1])&k.iT,k.JK[k.jz&k.C2]= k.head[k.zq],k.head[k.zq]=k.jz);while(--k.JP!==0);k.fX=0;k.Nh=2;k.jz++;if(t&&($l(k,!1),k.kf.im===0))return 1}else if(k.fX){if((t=kl(k,0,k.window[k.jz-1]))&&$l(k,!1),k.jz++,k.GA--,k.kf.im===0)return 1}else k.fX=1,k.jz++,k.GA--}k.fX&&(kl(k,0,k.window[k.jz-1]),k.fX=0);k.vN=k.jz<2?k.jz:2;return p===4?($l(k,!0),k.kf.im===0?3:4):k.J_&&($l(k,!1),k.kf.im===0)?1:2}; Wyi=function(k,p){for(var t,J,q,F=k.window;;){if(k.GA<=258){fF(k);if(k.GA<=258&&p===0)return 1;if(k.GA===0)break}k.Nh=0;if(k.GA>=3&&k.jz>0&&(J=k.jz-1,t=F[J],t===F[++J]&&t===F[++J]&&t===F[++J])){for(q=k.jz+258;t===F[++J]&&t===F[++J]&&t===F[++J]&&t===F[++J]&&t===F[++J]&&t===F[++J]&&t===F[++J]&&t===F[++J]&&J<q;);k.Nh=258-(q-J);k.Nh>k.GA&&(k.Nh=k.GA)}k.Nh>=3?(t=kl(k,1,k.Nh-3),k.GA-=k.Nh,k.jz+=k.Nh,k.Nh=0):(t=kl(k,0,k.window[k.jz]),k.GA--,k.jz++);if(t&&($l(k,!1),k.kf.im===0))return 1}k.vN=0;return p=== 4?($l(k,!0),k.kf.im===0?3:4):k.J_&&($l(k,!1),k.kf.im===0)?1:2}; DR9=function(k,p){for(var t;;){if(k.GA===0&&(fF(k),k.GA===0)){if(p===0)return 1;break}k.Nh=0;t=kl(k,0,k.window[k.jz]);k.GA--;k.jz++;if(t&&($l(k,!1),k.kf.im===0))return 1}k.vN=0;return p===4?($l(k,!0),k.kf.im===0?3:4):k.J_&&($l(k,!1),k.kf.im===0)?1:2}; y2=function(k,p,t,J,q){this.Ju=k;this.F20=p;this.W2y=t;this.QOh=J;this.func=q}; sQ6=function(){this.kf=null;this.status=0;this.xC=null;this.wrap=this.pending=this.K1=this.y$=0;this.sX=null;this.US=0;this.method=8;this.T0=-1;this.C2=this.x$=this.Fo=0;this.window=null;this.DF=0;this.head=this.JK=null;this.iU=this.Tx=this.strategy=this.level=this.DS=this.ZE=this.JP=this.GA=this.K3=this.jz=this.fX=this.j1=this.Nh=this.b2=this.r4=this.iT=this.hC=this.Rr=this.zq=0;this.Sm=new Rb.bX(1146);this.mf=new Rb.bX(122);this.Ue=new Rb.bX(78);Jq(this.Sm);Jq(this.mf);Jq(this.Ue);this.AF=this.OB= this.zp=null;this.Ic=new Rb.bX(16);this.Db=new Rb.bX(573);Jq(this.Db);this.Rm=this.TR=0;this.depth=new Rb.bX(573);Jq(this.depth);this.R3=this.mV=this.vN=this.matches=this.b7=this.bT=this.cD=this.J_=this.RB=this.QU=0}; Lyw=function(k,p){if(!k||!k.state||p>5||p<0)return k?tq(k,-2):-2;var t=k.state;if(!k.output||!k.input&&k.x4!==0||t.status===666&&p!==4)return tq(k,k.im===0?-5:-2);t.kf=k;var J=t.T0;t.T0=p;if(t.status===42)if(t.wrap===2)k.oG=0,dD(t,31),dD(t,139),dD(t,8),t.sX?(dD(t,(t.sX.text?1:0)+(t.sX.pw?2:0)+(t.sX.extra?4:0)+(t.sX.name?8:0)+(t.sX.comment?16:0)),dD(t,t.sX.time&255),dD(t,t.sX.time>>8&255),dD(t,t.sX.time>>16&255),dD(t,t.sX.time>>24&255),dD(t,t.level===9?2:t.strategy>=2||t.level<2?4:0),dD(t,t.sX.os& 255),t.sX.extra&&t.sX.extra.length&&(dD(t,t.sX.extra.length&255),dD(t,t.sX.extra.length>>8&255)),t.sX.pw&&(k.oG=UB(k.oG,t.xC,t.pending,0)),t.US=0,t.status=69):(dD(t,0),dD(t,0),dD(t,0),dD(t,0),dD(t,0),dD(t,t.level===9?2:t.strategy>=2||t.level<2?4:0),dD(t,3),t.status=113);else{var q=8+(t.x$-8<<4)<<8;q|=(t.strategy>=2||t.level<2?0:t.level<6?1:t.level===6?2:3)<<6;t.jz!==0&&(q|=32);t.status=113;EB(t,q+(31-q%31));t.jz!==0&&(EB(t,k.oG>>>16),EB(t,k.oG&65535));k.oG=1}if(t.status===69)if(t.sX.extra){for(q= t.pending;t.US<(t.sX.extra.length&65535)&&(t.pending!==t.y$||(t.sX.pw&&t.pending>q&&(k.oG=UB(k.oG,t.xC,t.pending-q,q)),o3(k),q=t.pending,t.pending!==t.y$));)dD(t,t.sX.extra[t.US]&255),t.US++;t.sX.pw&&t.pending>q&&(k.oG=UB(k.oG,t.xC,t.pending-q,q));t.US===t.sX.extra.length&&(t.US=0,t.status=73)}else t.status=73;if(t.status===73)if(t.sX.name){q=t.pending;do{if(t.pending===t.y$&&(t.sX.pw&&t.pending>q&&(k.oG=UB(k.oG,t.xC,t.pending-q,q)),o3(k),q=t.pending,t.pending===t.y$)){var F=1;break}F=t.US<t.sX.name.length? t.sX.name.charCodeAt(t.US++)&255:0;dD(t,F)}while(F!==0);t.sX.pw&&t.pending>q&&(k.oG=UB(k.oG,t.xC,t.pending-q,q));F===0&&(t.US=0,t.status=91)}else t.status=91;if(t.status===91)if(t.sX.comment){q=t.pending;do{if(t.pending===t.y$&&(t.sX.pw&&t.pending>q&&(k.oG=UB(k.oG,t.xC,t.pending-q,q)),o3(k),q=t.pending,t.pending===t.y$)){F=1;break}F=t.US<t.sX.comment.length?t.sX.comment.charCodeAt(t.US++)&255:0;dD(t,F)}while(F!==0);t.sX.pw&&t.pending>q&&(k.oG=UB(k.oG,t.xC,t.pending-q,q));F===0&&(t.status=103)}else t.status= 103;t.status===103&&(t.sX.pw?(t.pending+2>t.y$&&o3(k),t.pending+2<=t.y$&&(dD(t,k.oG&255),dD(t,k.oG>>8&255),k.oG=0,t.status=113)):t.status=113);if(t.pending!==0){if(o3(k),k.im===0)return t.T0=-1,0}else if(k.x4===0&&(p<<1)-(p>4?9:0)<=(J<<1)-(J>4?9:0)&&p!==4)return tq(k,-5);if(t.status===666&&k.x4!==0)return tq(k,-5);if(k.x4!==0||t.GA!==0||p!==0&&t.status!==666){J=t.strategy===2?DR9(t,p):t.strategy===3?Wyi(t,p):Yl[t.level].func(t,p);if(J===3||J===4)t.status=666;if(J===1||J===3)return k.im===0&&(t.T0= -1),0;if(J===2&&(p===1?(ab(t,2,3),MN(t,256,q9),t.R3===16?(hB(t,t.mV),t.mV=0,t.R3=0):t.R3>=8&&(t.xC[t.pending++]=t.mV&255,t.mV>>=8,t.R3-=8)):p!==5&&(ab(t,0,3),YUi(t,0,0),p===3&&(Jq(t.head),t.GA===0&&(t.jz=0,t.b2=0,t.vN=0))),o3(k),k.im===0))return t.T0=-1,0}if(p!==4)return 0;if(t.wrap<=0)return 1;t.wrap===2?(dD(t,k.oG&255),dD(t,k.oG>>8&255),dD(t,k.oG>>16&255),dD(t,k.oG>>24&255),dD(t,k.HF&255),dD(t,k.HF>>8&255),dD(t,k.HF>>16&255),dD(t,k.HF>>24&255)):(EB(t,k.oG>>>16),EB(t,k.oG&65535));o3(k);t.wrap>0&& (t.wrap=-t.wrap);return t.pending!==0?0:1}; Ty=function(k){if(!(this instanceof Ty))return new Ty(k);k=this.options=Rb.assign({level:-1,method:8,chunkSize:16384,K2:15,mWT:8,strategy:0,KF:""},k||{});k.raw&&k.K2>0?k.K2=-k.K2:k.p_&&k.K2>0&&k.K2<16&&(k.K2+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.kf=new v89;this.kf.im=0;var p=this.kf;var t=k.level,J=k.method,q=k.K2,F=k.mWT,d=k.strategy;if(p){var S=1;t===-1&&(t=6);q<0?(S=0,q=-q):q>15&&(S=2,q-=16);if(F<1||F>9||J!==8||q<8||q>15||t<0||t>9||d<0||d>4)p=tq(p,-2);else{q===8&&(q=9); var U=new sQ6;p.state=U;U.kf=p;U.wrap=S;U.sX=null;U.x$=q;U.Fo=1<<U.x$;U.C2=U.Fo-1;U.hC=F+7;U.Rr=1<<U.hC;U.iT=U.Rr-1;U.r4=~~((U.hC+3-1)/3);U.window=new Rb.TN(U.Fo*2);U.head=new Rb.bX(U.Rr);U.JK=new Rb.bX(U.Fo);U.RB=1<<F+6;U.y$=U.RB*4;U.xC=new Rb.TN(U.y$);U.cD=1*U.RB;U.QU=3*U.RB;U.level=t;U.strategy=d;U.method=J;if(p&&p.state){p.HF=p.rb=0;p.EG=2;t=p.state;t.pending=0;t.K1=0;t.wrap<0&&(t.wrap=-t.wrap);t.status=t.wrap?42:113;p.oG=t.wrap===2?0:1;t.T0=0;if(!cfi){J=Array(16);for(F=d=0;F<28;F++)for(jI[F]= d,q=0;q<1<<lu[F];q++)uu[d++]=F;uu[d-1]=F;for(F=d=0;F<16;F++)for(Hp[F]=d,q=0;q<1<<Kv[F];q++)Oi[d++]=F;for(d>>=7;F<30;F++)for(Hp[F]=d<<7,q=0;q<1<<Kv[F]-7;q++)Oi[256+d++]=F;for(q=0;q<=15;q++)J[q]=0;for(q=0;q<=143;)q9[q*2+1]=8,q++,J[8]++;for(;q<=255;)q9[q*2+1]=9,q++,J[9]++;for(;q<=279;)q9[q*2+1]=7,q++,J[7]++;for(;q<=287;)q9[q*2+1]=8,q++,J[8]++;b69(q9,287,J);for(q=0;q<30;q++)F3[q*2+1]=5,F3[q*2]=fHL(q,5);n8h=new z7(q9,lu,257,286,15);wU6=new z7(F3,Kv,0,30,15);i6e=new z7([],QQw,0,19,7);cfi=!0}t.zp=new eI(t.Sm, n8h);t.OB=new eI(t.mf,wU6);t.AF=new eI(t.Ue,i6e);t.mV=0;t.R3=0;NZw(t);t=0}else t=tq(p,-2);t===0&&(p=p.state,p.DF=2*p.Fo,Jq(p.head),p.DS=Yl[p.level].F20,p.Tx=Yl[p.level].Ju,p.iU=Yl[p.level].W2y,p.ZE=Yl[p.level].QOh,p.jz=0,p.b2=0,p.GA=0,p.vN=0,p.Nh=p.JP=2,p.fX=0,p.zq=0);p=t}}else p=-2;if(p!==0)throw Error(pF[p]);k.header&&(p=this.kf)&&p.state&&p.state.wrap===2&&(p.state.sX=k.header);if(k.vD){var f;typeof k.vD==="string"?f=UR9(k.vD):PD_.call(k.vD)==="[object ArrayBuffer]"?f=new Uint8Array(k.vD):f=k.vD; k=this.kf;F=f;d=F.length;if(k&&k.state)if(f=k.state,p=f.wrap,p===2||p===1&&f.status!==42||f.GA)p=-2;else{p===1&&(k.oG=S5(k.oG,F,d,0));f.wrap=0;d>=f.Fo&&(p===0&&(Jq(f.head),f.jz=0,f.b2=0,f.vN=0),t=new Rb.TN(f.Fo),Rb.Oc(t,F,d-f.Fo,f.Fo,0),F=t,d=f.Fo);t=k.x4;J=k.cI;q=k.input;k.x4=d;k.cI=0;k.input=F;for(fF(f);f.GA>=3;){F=f.jz;d=f.GA-2;do f.zq=(f.zq<<f.r4^f.window[F+3-1])&f.iT,f.JK[F&f.C2]=f.head[f.zq],f.head[f.zq]=F,F++;while(--d);f.jz=F;f.GA=2;fF(f)}f.jz+=f.GA;f.b2=f.jz;f.vN=f.GA;f.GA=0;f.Nh=f.JP=2; f.fX=0;k.cI=J;k.input=q;k.x4=t;f.wrap=p;p=0}else p=-2;if(p!==0)throw Error(pF[p]);this.CBS=!0}}; GfM=function(k,p){p=p||{};p.p_=!0;p=new Ty(p);p.push(k,!0);if(p.err)throw p.msg||pF[p.err];return p.result}; IHw=function(){var k=g.nS.apply(0,arguments);return k.length===0?function(p){return p}:k.length===1?k[0]:k.reduce(function(p,t){return function(){return p(t.apply(null,g.m(g.nS.apply(0,arguments))))}})}; XUj=function(){var k=g.nS.apply(0,arguments);return function(p){return function(t,J){function q(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} t=p(t,J);var F={getState:t.getState,dispatch:function(d){return q.apply(null,[d].concat(g.m(g.nS.apply(1,arguments))))}}; J=k.map(function(d){return d(F)}); q=IHw.apply(null,g.m(J))(t.dispatch);return Object.assign({},t,{dispatch:q})}}}; rD=function(){return Math.random().toString(36).substring(7).split("").join(".")}; R8i=function(k){Object.keys(k).forEach(function(p){var t=k[p];if(typeof t(void 0,{type:Z8})==="undefined")throw Error('The slice reducer for key "'+p+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof t(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+rD()})==="undefined")throw Error('The slice reducer for key "'+ p+"\" returned undefined when probed with a random type. Don't try to handle '"+(Z8+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; BZe=function(k,p,t){function J(){if(b)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return S} function q(Y){if(typeof Y!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof Y+"'");if(b)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var T=!0;f===U&&(f=U.slice());f.push(Y);return function(){if(T){if(b)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); T=!1;f===U&&(f=U.slice());f.splice(f.indexOf(Y),1);U=null}}} function F(Y){if(typeof Y!=="object"||Y===null)var T=!1;else{for(T=Y;Object.getPrototypeOf(T)!==null;)T=Object.getPrototypeOf(T);T=Object.getPrototypeOf(Y)===T}if(!T)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof Y+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); if(typeof Y.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(b)throw Error("Reducers may not dispatch actions.");try{b=!0,S=d(S,Y)}finally{b=!1}T=U=f;for(var A=0;A<T.length;A++)(0,T[A])();return Y} if(typeof p==="function"&&typeof t==="function"||typeof t==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof p==="function"&&typeof t==="undefined"&&(t=p,p=void 0);if(typeof t!=="undefined"){if(typeof t!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+ typeof t+"'");return t(BZe)(k,p)}if(typeof k!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof k+"'");var d=k,S=p,U=[],f=U,b=!1;F({type:Z8});var N={},y=(N.dispatch=F,N.subscribe=q,N.getState=J,N.replaceReducer=function(Y){if(typeof Y!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof Y);d=Y;F({type:z8h});return y},N[e80]=function(){var Y={}; return Y.subscribe=function(T){function A(){T.next&&T.next(J())} if(typeof T!=="object"||T===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof T+"'");A();return{unsubscribe:q(A)}},Y[e80]=function(){return this},Y},N); return y}; h86=function(k){return k?(k=k.privateDoNotAccessOrElseSafeScriptWrappedValue)?sKw(k):null:null}; CF=function(k){return k?(k=k.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?sZ(k):null:null}; MLL=function(k){k=aHM(k);return I_(k)}; g.Aq=function(k){k=aHM(k);return sZ(k)}; aHM=function(k){return k===null?"null":k===void 0?"undefined":k}; mx=function(k){this.sQ=Qy(k)}; u29=function(k){var p=k.split(k.slice(0,0)),t=[-375141589,p,function(J,q,F,d,S){return q(F,d,S)}, -543470210,1808649673,function(J,q){J=(J%q.length+q.length)%q.length;q.splice(J,1)}, function(J,q){J=(J%q.length+q.length)%q.length;q.splice(-J).reverse().forEach(function(F){q.unshift(F)})}, 1766177180,1889546739,-698460868,391783096,-828664595,394316135,function(J){for(var q=J.length;q;)J.push(J.splice(--q,1)[0])}, -609510539,-1511189523,1194060374,-240948793,-1992072510,-1197234687,-472426677,1578971E3,384038758,-2121356466,1918723575,function(J,q){if(J.length!=0){q=(q%J.length+J.length)%J.length;var F=J[0];J[0]=J[q];J[q]=F}}, p,-742367349,null,948702308,function(J,q){J.length!=0&&(q=(q%J.length+J.length)%J.length,J.splice(0,1,J.splice(q,1,J[0])[0]))}, 663027008,1405569515,-977943328,-1456539238,function(J){J.reverse()}, function(J,q){for(q=(q%J.length+J.length)%J.length;q--;)J.unshift(J.pop())}, 734599958,-2078608313,p,-674471666,-543470210,function(){for(var J=64,q=[];++J-q.length-32;)switch(J){case 58:J=96;continue;case 91:J=44;break;case 65:J=47;continue;case 46:J=153;case 123:J-=58;default:q.push(String.fromCharCode(J))}return q}, -257585592,192481641,-2042345059,-1507138724,function(J,q,F,d,S,U){return q(d,S,U)}, 1400819492,",,]'(\",",825352628,null,-1403336813,602035027,637146970,33956776,/(()"\/[{]{)/,-1047793561,-754701455,function(J,q,F,d,S,U,f,b,N){return F(d,S,U,f,b,N)}, "forEach",null,1488253751,1728100674,function(){for(var J=64,q=[];++J-q.length-32;)switch(J){case 46:J=95;default:q.push(String.fromCharCode(J));case 94:case 95:case 96:break;case 123:J-=76;case 92:case 93:continue;case 58:J=44;case 91:}return q}, 1537857568,-1483359127,function(){for(var J=64,q=[];++J-q.length-32;){switch(J){case 58:J-=14;case 91:case 92:case 93:continue;case 123:J=47;case 94:case 95:case 96:continue;case 46:J=95}q.push(String.fromCharCode(J))}return q}, function(){for(var J=64,q=[];++J-q.length-32;){switch(J){case 91:J=44;continue;case 123:J=65;break;case 65:J-=18;continue;case 58:J=96;continue;case 46:J=95}q.push(String.fromCharCode(J))}return q}, -1361767076,-1456539238,1662122773,-955934023,function(J,q,F){var d=q.length;F.forEach(function(S,U,f){this.push(f[U]=q[(q.indexOf(S)-q.indexOf(this[U])+U+d--)%q.length])},J.split(""))}, -139299898,-261946347,1247844473,450913964,",54];c[52]=c;",function(J){throw J;}, 100277946,function(J,q,F,d,S,U,f,b){return q(F,d,S,U,f,b)}, "forEach",1214219102];t[28]=t;t[51]=t;t[61]=t;if(typeof g8M==="undefined")return k;try{try{t[22]!=-6&&(t[54]>=-9&&((0,t[47])((0,t[2])((0,t[5])(t[37],t[26]),t[36],t[26],t[4]),t[13],((0,t[2])((0,t[6])(t[19],t[28]),t[45],t[35],t[50])>(0,t[34])(t[60],t[62]))+(0,t[15])(t[75],t[37]),t[29]),1)||(((((0,t[76])((0,t[15])(t[18],t[13]),t[20],t[41],t[14]),t[80])(t[33],t[18]),t[79])(t[2],t[41]),t[63])(t[50],(0,t[54])(),t[16]),(0,t[79])(t[70],t[29]),t[3])(t[29])),(0,t[69])(),(0,t[15])(t[29],t[5])}catch(J){t[8]!= 6&&(t[17]<4||((((0,t[80])(t[53],t[29]),t[80])(t[66],t[41]),t[63])(t[50],(0,t[57])(),t[16]),""))&&(((0,t[25])(t[16]),t[80])(t[44],t[16]),t[80])(t[55],t[16]),t[21]!==4&&(t[67]!==6&&((((0,t[20])(t[18],t[10]),t[25])(t[29]),t[37])((0,t[3])(t[18]),t[3],(0,t[3])(t[31],t[65]),t[70],t[79]),1)||(0,t[68])((0,t[81])(t[72],(0,t[3])(),t[31]),t[65],t[39],t[44])>>>(0,t[68])((0,t[68])((0,t[45])(t[60],t[1]),t[35],t[31]),t[57],t[60]))}finally{t[22]>8&&(t[46]<=-6||(((0,t[40])(t[19],t[70]),t[57])(t[31]),""))&&((0,t[64])(t[38], t[9]),t[65])(t[53],t[42]),t[30]<=4&&(0,t[11])((0,t[57])(t[31]),(0,t[64])(t[52],t[60]),t[new Date("1969-12-31T20:46:08.000-03:15")/1E3],(0,t[81])(t[72],(0,t[6])(),t[44]),t[57],t[9]),(t[1]<=5||((0,t[18])(t[27],t[23]),0))&&(0,t[19])(t[21],t[52]),t[9]!=1&&(t[66]===-5?(((0,t[19])(t[35],t[39]),t[2])(t[11],(0,t[55])(),t[52]),t[2])(t[11],(0,t[55])(),t[52]):(0,t[60])((0,t[38])(t[74],t[63]),t[43],(0,t[43])(t[74],t[51]),t[74],t[14]))}try{t[12]>=7&&(t[14]>-3||((0,t[15])((0,t[60])((0,t[19])(t[12],t[52]),t[43], (0,t[2])(t[73],(0,t[77])(),t[52]),t[39],t[59]),t[18],t[68],t[39]),0))&&((((0,t[43])(t[74],t[58]),t[38])(t[41],t[6]),t[38])(t[64],t[61]),t[49])(t[23],t[57]),t[3]!=5&&(t[76]==8||((0,t[60])((0,t[19])(t[20],t[52]),t[49],(0,t[19])(t[65],t[74]),t[72],t[35]),0))&&(0,t[74])((0,t[74])((0,t[23])(t[49]),t[61],t[70],(0,t[56])(),t[82]),t[61],t[70],(0,t[30])(),t[14]),t[50]!=7&&(0,t[13])(t[16],t[46])>(0,t[24])(t[39],t[58])}catch(J){((0,t[18])(t[70],t[23]),t[43])(t[52],t[32]),(0,t[18])(t[22],t[74])}try{t[46]<7&& (t[35]!==-2&&(((0,t[48])(t[Math.pow(8,new Date("1969-12-31T23:00:04.000-01:00")/1E3)-68+-3954]),(0,t[68])((0,t[65])(t[41],t[60]),t[34],t[9],t[49]),t[49])(t[21],t[28]),1)||(0,t[57])(((0,t[41])(t[44]),t[65])(t[78],(0,t[71])(),t[28]),t[52],(0,t[41])(t[77]),t[29],t[28],t[66]))}catch(J){(0,t[41])(t[28])}finally{t[23]<-6&&(t[9]!==-9||((0,t[19])(t[26]),(0,t[41])(t[77]),0))&&((0,t[48])(t[38],t[44]),(0,t[24])(t[28],t[67])),t[2]<=-2&&(0,t[52])((0,t[48])(t[14],t[28]),t[24],t[44],t[64])}}catch(J){return"iVD_N6gFOh4sZ0BzuL-_w8_"+ k}return p.join("")}; lHe=function(k){return k,"skip-button"[10+!!k]}; g.V2=function(k){this.name=k}; jQL=function(k){this.sQ=Qy(k)}; Wi=function(k){this.sQ=Qy(k)}; D8=function(k){this.sQ=Qy(k)}; O6q=function(k){this.sQ=Qy(k)}; sB=function(k){this.sQ=Qy(k)}; LF=function(k){this.sQ=Qy(k)}; vi=function(k){this.sQ=Qy(k)}; ci=function(k){this.sQ=Qy(k)}; nF=function(k){this.sQ=Qy(k)}; wD=function(k){this.sQ=Qy(k)}; iw=function(k){this.sQ=Qy(k)}; Q2=function(k){this.sQ=Qy(k)}; Pi=function(k){this.sQ=Qy(k)}; Gy=function(k){this.sQ=Qy(k)}; R3=function(k){this.sQ=Qy(k)}; Bi=function(k){this.sQ=Qy(k,500)}; zy=function(k){this.sQ=Qy(k)}; e5=function(k){this.sQ=Qy(k)}; KyT=function(k){this.sQ=Qy(k)}; H6S=function(){return g.hw("yt.ads.biscotti.lastId_")||""}; xRj=function(k){g.eM("yt.ads.biscotti.lastId_",k)}; a3=function(){var k=arguments,p=hq;k.length>1?p[k[0]]=k[1]:k.length===1&&Object.assign(p,k[0])}; g.M9=function(k,p){return k in hq?hq[k]:p}; gD=function(k){var p=hq.EXPERIMENT_FLAGS;return p?p[k]:void 0}; ktM=function(k){uw.forEach(function(p){return p(k)})}; g.j5=function(k){return k&&window.yterr?function(){try{return k.apply(this,arguments)}catch(p){g.lw(p)}}:k}; g.lw=function(k){var p=g.hw("yt.logging.errors.log");p?p(k,"ERROR",void 0,void 0,void 0,void 0,void 0):(p=g.M9("ERRORS",[]),p.push([k,"ERROR",void 0,void 0,void 0,void 0,void 0]),a3("ERRORS",p));ktM(k)}; OB=function(k,p,t,J,q){var F=g.hw("yt.logging.errors.log");F?F(k,"WARNING",p,t,J,void 0,q):(F=g.M9("ERRORS",[]),F.push([k,"WARNING",p,t,J,void 0,q]),a3("ERRORS",F))}; KF=function(k,p){p=k.split(p);for(var t={},J=0,q=p.length;J<q;J++){var F=p[J].split("=");if(F.length===1&&F[0]||F.length===2)try{var d=p80(F[0]||""),S=p80(F[1]||"");if(d in t){var U=t[d];Array.isArray(U)?g.oT(U,S):t[d]=[U,S]}else t[d]=S}catch(y){var f=y,b=F[0],N=String(KF);f.args=[{key:b,value:F[1],query:k,method:tFq===N?"unchanged":N}];J0i.hasOwnProperty(b)||OB(f)}}return t}; Hi=function(k){var p=[];g.ZV(k,function(t,J){var q=g.OZ(J);g.y1(Array.isArray(t)?t:[t],function(F){F==""?p.push(q):p.push(q+"="+g.OZ(F))})}); return p.join("&")}; xl=function(k){k.charAt(0)==="?"&&(k=k.substring(1));return KF(k,"&")}; kX=function(k){return k.split(",").map(function(p){return xl(p)})}; g.pY=function(k){return k.indexOf("?")!==-1?(k=(k||"").split("#")[0],k=k.split("?",2),xl(k.length>1?k[1]:k[0])):{}}; te=function(k,p){return o_e(k,p||{},!0)}; Je=function(k,p){return o_e(k,p||{},!1)}; o_e=function(k,p,t){var J=k.split("#",2);k=J[0];J=J.length>1?"#"+J[1]:"";var q=k.split("?",2);k=q[0];q=xl(q[1]||"");for(var F in p)if(t||!g.sk(q,F))q[F]=p[F];return g.hM(k,q)+J}; oY=function(k){if(!p)var p=window.location.href;var t=g.Gq(1,k),J=g.Iq(k);t&&J?(k=k.match(Pt),p=p.match(Pt),k=k[3]==p[3]&&k[1]==p[1]&&k[4]==p[4]):k=J?g.Iq(p)===J&&(Number(g.Gq(4,p))||null)===(Number(g.Gq(4,k))||null):!0;return k}; q8=function(k){k||(k=document.location.href);k=g.Gq(1,k);return k!==null&&k==="https"}; Fd=function(k){k=qcM(k);return k===null?!1:k[0]==="com"&&k[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; FE9=function(k){k=qcM(k);return k===null?!1:k[1]==="google"?!0:k[2]==="google"?k[0]==="au"&&k[1]==="com"?!0:k[0]==="uk"&&k[1]==="co"?!0:!1:!1}; qcM=function(k){k=g.Iq(k);return k!==null?k.split(".").reverse():null}; p80=function(k){return k&&k.match($dh)?k:Ku(k)}; EG=function(k){var p=$X;k=k===void 0?H6S():k;var t=Object,J=t.assign,q=dh(p);var F=p.T;try{var d=F.screenX;var S=F.screenY}catch(D){}try{var U=F.outerWidth;var f=F.outerHeight}catch(D){}try{var b=F.innerWidth;var N=F.innerHeight}catch(D){}try{var y=F.screenLeft;var Y=F.screenTop}catch(D){}try{b=F.innerWidth,N=F.innerHeight}catch(D){}try{var T=F.screen.availWidth;var A=F.screen.availTop}catch(D){}F=[y,Y,d,S,T,A,U,f,b,N];d=smq(!1,p.T.top);S={};var V=V===void 0?g.B9:V;U=new zt;"SVGElement"in V&&"createElementNS"in V.document&&U.set(0);f=BvS();f["allow-top-navigation-by-user-activation"]&&U.set(1);f["allow-popups-to-escape-sandbox"]&&U.set(2);V.crypto&&V.crypto.subtle&&U.set(3);"TextDecoder"in V&&"TextEncoder"in V&&U.set(4);V=I0M(U);p=(S.bc=V,S.bih=d.height,S.biw=d.width,S.brdim=F.join(),S.vis=Yo(p.Y),S.wgl=!!bt.WebGLRenderingContext,S);t=J.call(t,q,p);t.ca_type="image";k&&(t.bid=k);return t}; dh=function(k){var p={};p.dt=ddj;p.flash="0";a:{try{var t=k.T.top.location.href}catch(b){k=2;break a}k=t?t===k.Y.location.href?0:1:2}p=(p.frm=k,p);try{p.u_tz=-(new Date).getTimezoneOffset();var J=J===void 0?bt:J;try{var q=J.history.length}catch(b){q=0}p.u_his=q;var F;p.u_h=(F=bt.screen)==null?void 0:F.height;var d;p.u_w=(d=bt.screen)==null?void 0:d.width;var S;p.u_ah=(S=bt.screen)==null?void 0:S.availHeight;var U;p.u_aw=(U=bt.screen)==null?void 0:U.availWidth;var f;p.u_cd=(f=bt.screen)==null?void 0: f.colorDepth}catch(b){}return p}; ScS=function(){if(!E_M)return null;var k=E_M();return"open"in k?k:null}; g.UG=function(k){switch(SN(k)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; SN=function(k){return k&&"status"in k?k.status:-1}; g.fY=function(k,p){typeof k==="function"&&(k=g.j5(k));return window.setTimeout(k,p)}; g.b6=function(k,p){typeof k==="function"&&(k=g.j5(k));return window.setInterval(k,p)}; g.N8=function(k){window.clearTimeout(k)}; g.yI=function(k){window.clearInterval(k)}; g.TQ=function(k){k=YX(k);return typeof k==="string"&&k==="false"?!1:!!k}; g.rh=function(k,p){k=YX(k);return k===void 0&&p!==void 0?p:Number(k||0)}; ZT=function(){return g.M9("EXPERIMENTS_TOKEN","")}; YX=function(k){return g.M9("EXPERIMENT_FLAGS",{})[k]}; CY=function(){for(var k=[],p=g.M9("EXPERIMENTS_FORCED_FLAGS",{}),t=g.Z(Object.keys(p)),J=t.next();!J.done;J=t.next())J=J.value,k.push({key:J,value:String(p[J])});t=g.M9("EXPERIMENT_FLAGS",{});J=g.Z(Object.keys(t));for(var q=J.next();!q.done;q=J.next())q=q.value,q.startsWith("force_")&&p[q]===void 0&&k.push({key:q,value:String(t[q])});return k}; Ae=function(k,p,t,J,q,F,d,S){function U(){(f&&"readyState"in f?f.readyState:0)===4&&p&&g.j5(p)(f)} t=t===void 0?"GET":t;J=J===void 0?"":J;S=S===void 0?!1:S;var f=ScS();if(!f)return null;"onloadend"in f?f.addEventListener("loadend",U,!1):f.onreadystatechange=U;g.TQ("debug_forward_web_query_parameters")&&(k=Udi(k,window.location.search));f.open(t,k,!0);F&&(f.responseType=F);d&&(f.withCredentials=!0);t=t==="POST"&&(window.FormData===void 0||!(J instanceof FormData));if(q=fUL(k,q))for(var b in q)f.setRequestHeader(b,q[b]),"content-type"===b.toLowerCase()&&(t=!1);t&&f.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(S&&"setAttributionReporting"in XMLHttpRequest.prototype){k={eventSourceEligible:!0,triggerEligible:!1};try{f.setAttributionReporting(k)}catch(N){OB(N)}}f.send(J);return f}; fUL=function(k,p){p=p===void 0?{}:p;var t=oY(k),J=g.M9("INNERTUBE_CLIENT_NAME"),q=g.TQ("web_ajax_ignore_global_headers_if_set"),F;for(F in b2w){var d=g.M9(b2w[F]),S=F==="X-Goog-AuthUser"||F==="X-Goog-PageId";F!=="X-Goog-Visitor-Id"||d||(d=g.M9("VISITOR_DATA"));var U;if(!(U=!d)){if(!(U=t||(g.Iq(k)?!1:!0))){U=k;var f;if(f=g.TQ("add_auth_headers_to_remarketing_google_dot_com_ping")&&F==="Authorization"&&(J==="TVHTML5"||J==="TVHTML5_UNPLUGGED"||J==="TVHTML5_SIMPLY")&&FE9(U))U=Qu(g.Gq(5,U))||"",U=U.split("/"), U="/"+(U.length>1?U[1]:""),f=U==="/pagead";U=f?!0:!1}U=!U}U||q&&p[F]!==void 0||J==="TVHTML5_UNPLUGGED"&&S||(p[F]=d)}"X-Goog-EOM-Visitor-Id"in p&&"X-Goog-Visitor-Id"in p&&delete p["X-Goog-Visitor-Id"];if(t||!g.Iq(k))p["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(t||!g.Iq(k)){try{var b=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}b&&(p["X-YouTube-Time-Zone"]=b)}document.location.hostname.endsWith("youtubeeducation.com")||!t&&g.Iq(k)||(p["X-YouTube-Ad-Signals"]= Hi(EG()));return p}; y0e=function(k,p){var t=g.Iq(k);g.TQ("debug_handle_relative_url_for_query_forward_killswitch")||!t&&oY(k)&&(t=document.location.hostname);var J=Qu(g.Gq(5,k));J=(t=t&&(t.endsWith("youtube.com")||t.endsWith("youtube-nocookie.com")))&&J&&J.startsWith("/api/");if(!t||J)return k;var q=xl(p),F={};g.y1(Nle,function(d){q[d]&&(F[d]=q[d])}); return Je(k,F)}; VI=function(k,p){p.method="POST";p.postParams||(p.postParams={});return g.mG(k,p)}; r0h=function(k,p){if(window.fetch&&p.format!=="XML"){var t={method:p.method||"GET",credentials:"same-origin"};p.headers&&(t.headers=p.headers);p.priority&&(t.priority=p.priority);k=Ycu(k,p);var J=Tlw(k,p);J&&(t.body=J);p.withCredentials&&(t.credentials="include");var q=p.context||g.B9,F=!1,d;fetch(k,t).then(function(S){if(!F){F=!0;d&&g.N8(d);var U=S.ok,f=function(b){b=b||{};U?p.onSuccess&&p.onSuccess.call(q,b,S):p.onError&&p.onError.call(q,b,S);p.onFinish&&p.onFinish.call(q,b,S)}; (p.format||"JSON")==="JSON"&&(U||S.status>=400&&S.status<500)?S.json().then(f,function(){f(null)}):f(null)}}).catch(function(){p.onError&&p.onError.call(q,{},{})}); k=p.timeout||0;p.onFetchTimeout&&k>0&&(d=g.fY(function(){F||(F=!0,g.N8(d),p.onFetchTimeout.call(p.context||g.B9))},k))}else g.mG(k,p)}; g.mG=function(k,p){var t=p.format||"JSON";k=Ycu(k,p);var J=Tlw(k,p),q=!1,F=Z20(k,function(U){if(!q){q=!0;S&&g.N8(S);var f=g.UG(U),b=null,N=400<=U.status&&U.status<500,y=500<=U.status&&U.status<600;if(f||N||y)b=Cvq(k,t,U,p.convertToSafeHtml);f&&(f=A0i(t,U,b));b=b||{};N=p.context||g.B9;f?p.onSuccess&&p.onSuccess.call(N,U,b):p.onError&&p.onError.call(N,U,b);p.onFinish&&p.onFinish.call(N,U,b)}},p.method,J,p.headers,p.responseType,p.withCredentials); J=p.timeout||0;if(p.onTimeout&&J>0){var d=p.onTimeout;var S=g.fY(function(){q||(q=!0,F.abort(),g.N8(S),d.call(p.context||g.B9,F))},J)}return F}; Ycu=function(k,p){p.includeDomain&&(k=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+k);var t=g.M9("XSRF_FIELD_NAME");if(p=p.urlParams)p[t]&&delete p[t],k=te(k,p);return k}; Tlw=function(k,p){var t=g.M9("XSRF_FIELD_NAME"),J=g.M9("XSRF_TOKEN"),q=p.postBody||"",F=p.postParams,d=g.M9("XSRF_FIELD_NAME"),S;p.headers&&(S=p.headers["Content-Type"]);p.excludeXsrf||g.Iq(k)&&!p.withCredentials&&g.Iq(k)!==document.location.hostname||p.method!=="POST"||S&&S!=="application/x-www-form-urlencoded"||p.postParams&&p.postParams[d]||(F||(F={}),F[t]=J);(g.TQ("ajax_parse_query_data_only_when_filled")&&F&&Object.keys(F).length>0||F)&&typeof q==="string"&&(q=xl(q),g.PQ(q,F),q=p.postBodyFormat&& p.postBodyFormat==="JSON"?JSON.stringify(q):g.er(q));F=q||F&&!g.cQ(F);!md0&&F&&p.method!=="POST"&&(md0=!0,g.lw(Error("AJAX request with postData should use POST")));return q}; Cvq=function(k,p,t,J){var q=null;switch(p){case "JSON":try{var F=t.responseText}catch(d){throw J=Error("Error reading responseText"),J.params=k,OB(J),d;}k=t.getResponseHeader("Content-Type")||"";F&&k.indexOf("json")>=0&&(F.substring(0,5)===")]}'\n"&&(F=F.substring(5)),q=JSON.parse(F));break;case "XML":if(k=(k=t.responseXML)?VFj(k):null)q={},g.y1(k.getElementsByTagName("*"),function(d){q[d.tagName]=WE_(d)})}J&&Ddj(q); return q}; Ddj=function(k){if(g.lq(k))for(var p in k)p==="html_content"||BTS(p,"_html")?k[p]=I_(k[p]):Ddj(k[p])}; A0i=function(k,p,t){if(p&&p.status===204)return!0;switch(k){case "JSON":return!!t;case "XML":return Number(t&&t.return_code)===0;case "RAW":return!0;default:return!!t}}; VFj=function(k){return k?(k=("responseXML"in k?k.responseXML:k).getElementsByTagName("root"))&&k.length>0?k[0]:null:null}; WE_=function(k){var p="";g.y1(k.childNodes,function(t){p+=t.nodeValue}); return p}; DT=function(k,p){var t=g.ih(p),J;return(new g.yu(function(q,F){t.onSuccess=function(d){g.UG(d)?q(new stq(d)):F(new Ww("Request failed, status="+SN(d),"net.badstatus",d))}; t.onError=function(d){F(new Ww("Unknown request error","net.unknown",d))}; t.onTimeout=function(d){F(new Ww("Request timed out","net.timeout",d))}; J=g.mG(k,t)})).pU(function(q){if(q instanceof AM){var F; (F=J)==null||F.abort()}return rv(q)})}; g.sG=function(k,p,t,J){function q(S,U,f){return S.pU(function(b){if(U<=0||SN(b.xhr)===403)return rv(new Ww("Request retried too many times","net.retryexhausted",b.xhr,b));b=Math.pow(2,t-U+1)*f;var N=d>0?Math.min(d,b):b;return F(f).then(function(){return q(DT(k,p),U-1,N)})})} function F(S){return new g.yu(function(U){setTimeout(U,S)})} var d=d===void 0?-1:d;return q(DT(k,p),t-1,J)}; Ww=function(k,p,t){rq.call(this,k+", errorCode="+p);this.errorCode=p;this.xhr=t;this.name="PromiseAjaxError"}; stq=function(k){this.xhr=k}; LY=function(k){this.T=k===void 0?null:k;this.N=0;this.Y=null}; vw=function(k){var p=new LY;k=k===void 0?null:k;p.N=2;p.Y=k===void 0?null:k;return p}; cw=function(k){var p=new LY;k=k===void 0?null:k;p.N=1;p.Y=k===void 0?null:k;return p}; g.i6=function(k,p,t,J,q){nY||wh.set(""+k,p,{fC:t,path:"/",domain:J===void 0?"youtube.com":J,secure:q===void 0?!1:q})}; g.QI=function(k,p){if(!nY)return wh.get(""+k,p)}; g.Pw=function(k,p,t){nY||wh.remove(""+k,p===void 0?"/":p,t===void 0?"youtube.com":t)}; LET=function(){if(g.TQ("embeds_web_enable_cookie_detection_fix")){if(!g.B9.navigator.cookieEnabled)return!1}else if(!wh.isEnabled())return!1;if(!wh.isEmpty())return!0;g.TQ("embeds_web_enable_cookie_detection_fix")?wh.set("TESTCOOKIESENABLED","1",{fC:60,lbS:"none",secure:!0}):wh.set("TESTCOOKIESENABLED","1",{fC:60});if(wh.get("TESTCOOKIESENABLED")!=="1")return!1;wh.remove("TESTCOOKIESENABLED");return!0}; g.e=function(k,p){if(k)return k[p.name]}; GQ=function(k){var p=g.M9("INNERTUBE_HOST_OVERRIDE");p&&(k=String(p)+String(Xq(k)));return k}; v_u=function(k){var p={};g.TQ("json_condensed_response")&&(p.prettyPrint="false");return k=Je(k,p)}; IY=function(k,p){var t=t===void 0?{}:t;k={method:p===void 0?"POST":p,mode:oY(k)?"same-origin":"cors",credentials:oY(k)?"same-origin":"include"};p={};for(var J=g.Z(Object.keys(t)),q=J.next();!q.done;q=J.next())q=q.value,t[q]&&(p[q]=t[q]);Object.keys(p).length>0&&(k.headers=p);return k}; Xd=function(){var k=/Chrome\/(\d+)/.exec(g.nc());return k?parseFloat(k[1]):NaN}; Bw=function(){return g.RY("android")&&g.RY("chrome")&&!(g.RY("trident/")||g.RY("edge/"))&&!g.RY("cobalt")}; c0L=function(){return g.RY("armv7")||g.RY("aarch64")||g.RY("android")}; g.zQ=function(){return g.RY("cobalt")}; eN=function(){return g.RY("cobalt")&&g.RY("appletv")}; he=function(){return g.RY("(ps3; leanback shell)")||g.RY("ps3")&&g.zQ()}; n_i=function(){return g.RY("(ps4; leanback shell)")||g.RY("ps4")&&g.zQ()}; g.w8i=function(){return g.zQ()&&(g.RY("ps4 vr")||g.RY("ps4 pro vr"))}; aY=function(){var k=/WebKit\/([0-9]+)/.exec(g.nc());return!!(k&&parseInt(k[1],10)>=600)}; M8=function(){var k=/WebKit\/([0-9]+)/.exec(g.nc());return!!(k&&parseInt(k[1],10)>=602)}; i2e=function(){return g.RY("iemobile")||g.RY("windows phone")&&g.RY("edge")}; l6=function(){return(gh||u6)&&g.RY("applewebkit")&&!g.RY("version")&&(!g.RY("safari")||g.RY("gsa/"))}; OG=function(){return g.jN&&g.RY("version/")}; KY=function(){return g.RY("smart-tv")&&g.RY("samsung")}; g.RY=function(k){var p=g.nc();return p?p.toLowerCase().indexOf(k)>=0:!1}; Hw=function(){return eIS()||l6()||OG()?!0:g.M9("EOM_VISITOR_DATA")?!1:!0}; xX=function(k,p){return p===void 0||p===null?k:p==="1"||p===!0||p===1||p==="True"?!0:!1}; k9=function(k,p,t){for(var J in t)if(t[J]==p)return t[J];return k}; pG=function(k,p){return p===void 0||p===null?k:Number(p)}; tm=function(k,p){return p===void 0||p===null?k:p.toString()}; Jm=function(k,p){if(p){if(k==="fullwidth")return Infinity;if(k==="fullheight")return 0}return k&&(p=k.match(QtL))&&(k=Number(p[2]),p=Number(p[1]),!isNaN(k)&&!isNaN(p)&&k>0)?p/k:NaN}; ou=function(k){var p=k.docid||k.video_id||k.videoId||k.id;if(p)return p;p=k.raw_player_response;p||(k=k.player_response)&&(p=JSON.parse(k));return p&&p.videoDetails&&p.videoDetails.videoId||null}; Pv6=function(k){return qI(k,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Fa=function(k){return k==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||k==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; qI=function(k,p){p=(p===void 0?0:p)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(p="EMBEDDED_PLAYER_MODE_PFL");var t=k.raw_embedded_player_response;if(!t&&(k=k.embedded_player_response))try{t=JSON.parse(k)}catch(J){return p}return t?k9(p,t.embeddedPlayerMode,Gt_):p}; du=function(k){rq.call(this,k.message||k.description||k.name);this.isMissing=k instanceof $9;this.isTimeout=k instanceof Ww&&k.errorCode=="net.timeout";this.isCanceled=k instanceof AM}; $9=function(){rq.call(this,"Biscotti ID is missing from server")}; IU0=function(){if(g.TQ("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Hw())return Error("User has not consented - not fetching biscotti id.");var k=g.M9("PLAYER_VARS",{});if(g.nE(k,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Pv6(k))return Error("Biscotti id fetching has been disabled for pfl.")}; ztq=function(){var k=IU0();if(k!==void 0)return rv(k);EA||(EA=DT("//googleads.g.doubleclick.net/pagead/id",X8h).then(Rte).pU(function(p){return Blu(2,p)})); return EA}; Rte=function(k){k=k.xhr.responseText;if(!Va(k,")]}'"))throw new $9;k=JSON.parse(k.substr(4));if((k.type||1)>1)throw new $9;k=k.id;xRj(k);EA=cw(k);eth(18E5,2);return k}; Blu=function(k,p){p=new du(p);xRj("");EA=vw(p);k>0&ð(12E4,k-1);throw p;}; eth=function(k,p){g.fY(function(){DT("//googleads.g.doubleclick.net/pagead/id",X8h).then(Rte,function(t){return Blu(p,t)}).pU(g.Uo)},k)}; htw=function(){try{var k=g.hw("yt.ads.biscotti.getId_");return k?k():ztq()}catch(p){return rv(p)}}; MFq=function(k){k&&(k.dataset?k.dataset[aU6()]="true":vk0(k))}; g_e=function(k){return k?k.dataset?k.dataset[aU6()]:k.getAttribute("data-loaded"):null}; aU6=function(){return uLh.loaded||(uLh.loaded="loaded".replace(/\-([a-z])/g,function(k,p){return p.toUpperCase()}))}; lUT=function(){var k=document;if("visibilityState"in k)return k.visibilityState;var p=Sq+"VisibilityState";if(p in k)return k[p]}; UA=function(k,p){var t;cC(k,function(J){t=p[J];return!!t}); return t}; fG=function(k){if(k.requestFullscreen)k=k.requestFullscreen(void 0);else if(k.webkitRequestFullscreen)k=k.webkitRequestFullscreen();else if(k.mozRequestFullScreen)k=k.mozRequestFullScreen();else if(k.msRequestFullscreen)k=k.msRequestFullscreen();else if(k.webkitEnterFullscreen)k=k.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return k instanceof Promise?k:Promise.resolve()}; yB=function(k){var p;g.bk()?NI()==k&&(p=document):p=k;return p&&(k=UA(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],p))?(p=k.call(p),p instanceof Promise?p:Promise.resolve()):Promise.resolve()}; jt_=function(k){return g.j9(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(p){return"on"+p.toLowerCase()in k})}; O2S=function(){var k=document;return g.j9(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(p){return"on"+p.toLowerCase()in k})}; g.bk=function(){return!!UA(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; NI=function(k){k=k===void 0?!1:k;var p=UA(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(k)for(;p&&p.shadowRoot;)p=p.shadowRoot.fullscreenElement;return p?p:null}; Y9=function(k){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(k=k||window.event){this.event=k;for(var p in k)p in KEe||(this[p]=k[p]);this.scale=k.scale;this.rotation=k.rotation;var t=k.target||k.srcElement;t&&t.nodeType==3&&(t=t.parentNode);this.target=t;var J=k.relatedTarget; if(J)try{J=J.nodeName?J:null}catch(q){J=null}else this.type=="mouseover"?J=k.fromElement:this.type=="mouseout"&&(J=k.toElement);this.relatedTarget=J;this.clientX=k.clientX!=void 0?k.clientX:k.pageX;this.clientY=k.clientY!=void 0?k.clientY:k.pageY;this.keyCode=k.keyCode?k.keyCode:k.which;this.charCode=k.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=k.altKey;this.ctrlKey=k.ctrlKey;this.shiftKey=k.shiftKey;this.metaKey=k.metaKey;this.T=k.pageX;this.Y=k.pageY}}catch(q){}}; H2T=function(k){if(document.body&&document.documentElement){var p=document.body.scrollTop+document.documentElement.scrollTop;k.T=k.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);k.Y=k.clientY+p}}; xde=function(k,p,t,J){J=J===void 0?{}:J;k.addEventListener&&(p!="mouseenter"||"onmouseenter"in document?p!="mouseleave"||"onmouseenter"in document?p=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(p="MozMousePixelScroll"):p="mouseout":p="mouseover");return vQ(T2,function(q){var F=typeof q[4]==="boolean"&&q[4]==!!J,d=g.lq(q[4])&&g.lq(J)&&g.w8(q[4],J);return!!q.length&&q[0]==k&&q[1]==p&&q[2]==t&&(F||d)})}; g.ru=function(k,p,t,J){J=J===void 0?{}:J;if(!k||!k.addEventListener&&!k.attachEvent)return"";var q=xde(k,p,t,J);if(q)return q;q=++k7T.count+"";var F=!(p!="mouseenter"&&p!="mouseleave"||!k.addEventListener||"onmouseenter"in document);var d=F?function(S){S=new Y9(S);if(!dE(S.relatedTarget,function(U){return U==k},!0))return S.currentTarget=k,S.type=p,t.call(k,S)}:function(S){S=new Y9(S); S.currentTarget=k;return t.call(k,S)}; d=g.j5(d);k.addEventListener?(p=="mouseenter"&&F?p="mouseover":p=="mouseleave"&&F?p="mouseout":p=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(p="MozMousePixelScroll"),ppj()||typeof J==="boolean"?k.addEventListener(p,d,J):k.addEventListener(p,d,!!J.capture)):k.attachEvent("on"+p,d);T2[q]=[k,p,t,d,J];return q}; JBS=function(k){return tIS(k,function(p){return g.tB(p,"ytp-ad-has-logging-urls")})}; tIS=function(k,p){var t=document.body||document;return g.ru(t,"click",function(J){var q=dE(J.target,function(F){return F===t||p(F)},!0); q&&q!==t&&!q.disabled&&(J.currentTarget=q,k.call(q,J))})}; g.Zf=function(k){k&&(typeof k=="string"&&(k=[k]),g.y1(k,function(p){if(p in T2){var t=T2[p],J=t[0],q=t[1],F=t[3];t=t[4];J.removeEventListener?ppj()||typeof t==="boolean"?J.removeEventListener(q,F,t):J.removeEventListener(q,F,!!t.capture):J.detachEvent&&J.detachEvent("on"+q,F);delete T2[p]}}))}; CG=function(k){for(var p in T2)T2[p][0]==k&&g.Zf(p)}; Am=function(k){k=k||window.event;var p;k.composedPath&&typeof k.composedPath==="function"?p=k.composedPath():p=k.path;p&&p.length?k=p[0]:(k=k||window.event,k=k.target||k.srcElement,k.nodeType==3&&(k=k.parentNode));return k}; mJ=function(k){this.Z=k;this.T=null;this.C=0;this.S=null;this.X=0;this.Y=[];for(k=0;k<4;k++)this.Y.push(0);this.N=0;this.Y8=g.ru(window,"mousemove",(0,g.H9)(this.L,this));this.B=g.b6((0,g.H9)(this.gy,this),25)}; VB=function(k){g.R.call(this);this.Z=[];this.gs=k||this}; Wz=function(k,p,t,J){for(var q=0;q<t.length;q++)k.V(p,t[q],J)}; g.Df=function(k,p){for(;k.Z.length;){var t=k.Z.pop(),J=void 0;p&&oEw()&&(J={passive:!0});t.target.removeEventListener(t.name,t.callback,J)}}; sA=function(k){k=k||{};var p={},t={};this.url=k.url||"";this.args=k.args||g.ih(p);this.assets=k.assets||{};this.attrs=k.attrs||g.ih(t);this.fallback=k.fallback||null;this.fallbackMessage=k.fallbackMessage||null;this.html5=!!k.html5;this.disable=k.disable||{};this.loaded=!!k.loaded;this.messages=k.messages||{}}; qiq=function(k){k instanceof sA||(k=new sA(k));return k}; g.cz=function(k,p,t){var J=t&&t>0?t:0;t=J?Date.now()+J*1E3:0;if((J=J?(0,g.LG)():vz())&&window.JSON){typeof p!=="string"&&(p=JSON.stringify(p,void 0));try{J.set(k,p,t)}catch(q){J.remove(k)}}}; g.nG=function(k){var p=vz(),t=(0,g.LG)();if(!p&&!t||!window.JSON)return null;try{var J=p.get(k)}catch(q){}if(typeof J!=="string")try{J=t.get(k)}catch(q){}if(typeof J!=="string")return null;try{J=JSON.parse(J,void 0)}catch(q){}return J}; F6e=function(){var k=(0,g.LG)();if(k&&(k=k.Y("yt-player-quality")))return k.creation}; g.wu=function(k){try{var p=vz(),t=(0,g.LG)();p&&p.remove(k);t&&t.remove(k)}catch(J){}}; g.ik=function(){return g.nG("yt-remote-session-screen-id")}; $Ni=function(k){var p=this;this.Y=void 0;this.T=!1;k.addEventListener("beforeinstallprompt",function(t){t.preventDefault();p.Y=t}); k.addEventListener("appinstalled",function(){p.T=!0},{once:!0})}; QB=function(){if(!g.B9.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.B9.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.B9.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.B9.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.B9.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(k){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Pz=function(){this.ZH=!0}; dNe=function(){Pz.instance||(Pz.instance=new Pz);return Pz.instance}; EE9=function(k){switch(k){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}}; Sie=function(){this.T=g.M9("ALT_PREF_COOKIE_NAME","PREF");this.Y=g.M9("ALT_PREF_COOKIE_DOMAIN","youtube.com");var k=g.QI(this.T);k&&this.parse(k)}; g.Iu=function(){G2||(G2=new Sie);return G2}; g.Xa=function(k,p){return!!((UNe("f"+(Math.floor(p/31)+1))||0)&1<<p%31)}; Bz=function(k,p){var t="f"+(Math.floor(k/31)+1);k=1<<k%31;var J=UNe(t)||0;J=p?J|k:J&~k;J===0?delete Ru[t]:(p=J.toString(16),Ru[t]=p.toString())}; z2=function(k){if(/^f([1-9][0-9]*)$/.test(k))throw Error("ExpectedRegexMatch: "+k);}; eq=function(k){if(!/^\w+$/.test(k))throw Error("ExpectedRegexMismatch: "+k);}; UNe=function(k){k=Ru[k]!==void 0?Ru[k].toString():null;return k!=null&&/^[A-Fa-f0-9]+$/.test(k)?parseInt(k,16):null}; fq0=function(){var k=g.B9.navigator;return k?k.connection:void 0}; NQw=function(){var k=fq0();if(k){var p=bvi[k.type||"unknown"]||"CONN_UNKNOWN";k=bvi[k.effectiveType||"unknown"]||"CONN_UNKNOWN";p==="CONN_CELLULAR_UNKNOWN"&&k!=="CONN_UNKNOWN"&&(p=k);if(p!=="CONN_UNKNOWN")return p;if(k!=="CONN_UNKNOWN")return k}}; Yii=function(){var k=fq0();if(k!=null&&k.effectiveType)return yBi.hasOwnProperty(k.effectiveType)?yBi[k.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; g.hm=function(k){var p=g.nS.apply(1,arguments);var t=Error.call(this,k);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.args=[].concat(g.m(p));Object.setPrototypeOf(this,this.constructor.prototype)}; g.MI=function(){try{return g.au(),!0}catch(k){return!1}}; g.au=function(k){if(g.M9("DATASYNC_ID")!==void 0)return g.M9("DATASYNC_ID");throw new g.hm("Datasync ID not set",k===void 0?"unknown":k);}; gu=function(){this.T=new WeakMap}; g.lk=function(k,p,t){return uk(p,0,t)}; TQ6=function(k){var p=g.hw("yt.scheduler.instance.addImmediateJob");p?p(k):k()}; jq=function(){gu.apply(this,arguments)}; g.OA=function(){jq.instance||(jq.instance=new jq);return jq.instance}; g.KG=function(){return!!g.hw("yt.scheduler.instance")}; uk=function(k,p,t){t!==void 0&&Number.isNaN(Number(t))&&(t=void 0);var J=g.hw("yt.scheduler.instance.addJob");return J?J(k,p,t):t===void 0?(k(),NaN):g.fY(k,t||0)}; Hz=function(k,p){(k=g.hw("yt.scheduler.instance.setPriorityThreshold"))&&k(p)}; x9=function(k){this.T=(k=g.Qv(k))?new si(k):null;this.Y=document.domain||window.location.hostname}; pz=function(){var k;return(k=kp())==null?void 0:k.get("LAST_RESULT_ENTRY_KEY",!0)}; rBT=function(){var k={};for(tO=new JO(k.handleError===void 0?og:k.handleError,k.logEvent===void 0?g.qv:k.logEvent);Fm.length>0;)switch(k=Fm.shift(),k.type){case "ERROR":tO.Y4(k.payload);break;case "EVENT":tO.logEvent(k.eventType,k.payload)}}; d6=function(k){$p||(tO?tO.Y4(k):(Fm.push({type:"ERROR",payload:k}),Fm.length>10&&Fm.shift()))}; ET=function(k,p){$p||(tO?tO.logEvent(k,p):(Fm.push({type:"EVENT",eventType:k,payload:p}),Fm.length>10&&Fm.shift()))}; SY=function(k){if(k.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; UT=function(k){return k.substr(0,k.indexOf(":"))||k}; g.fz=function(k,p,t,J,q){p=p===void 0?{}:p;t=t===void 0?Zve[k]:t;J=J===void 0?Cu0[k]:J;q=q===void 0?ABL[k]:q;g.hm.call(this,t,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:k},p));this.type=k;this.message=t;this.level=J;this.T=q;Object.setPrototypeOf(this,g.fz.prototype)}; br=function(k,p){g.fz.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:p,foundObjectStores:k},Zve.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,br.prototype)}; Nv=function(k,p){var t=Error.call(this);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.index=k;this.objectStore=p;Object.setPrototypeOf(this,Nv.prototype)}; Yp=function(k,p,t,J){p=UT(p);var q=k instanceof Error?k:Error("Unexpected error: "+k);if(q instanceof g.fz)return q;k={objectStoreNames:t,dbName:p,dbVersion:J};if(q.name==="QuotaExceededError")return new g.fz("QUOTA_EXCEEDED",k);if(g.y9&&q.name==="UnknownError")return new g.fz("QUOTA_MAYBE_EXCEEDED",k);if(q instanceof Nv)return new g.fz("MISSING_INDEX",Object.assign({},k,{objectStore:q.objectStore,index:q.index}));if(q.name==="InvalidStateError"&&mNT.some(function(F){return q.message.includes(F)}))return new g.fz("EXECUTE_TRANSACTION_ON_CLOSED_DB", k); if(q.name==="AbortError")return new g.fz("UNKNOWN_ABORT",k,q.message);q.args=[Object.assign({},k,{name:"IdbError",sj:q.name})];q.level="WARNING";return q}; g.TE=function(k,p,t){var J=pz();return new g.fz("IDB_NOT_SUPPORTED",{context:{caller:k,publicName:p,version:t,hasSucceededOnce:J==null?void 0:J.hasSucceededOnce}})}; VIi=function(k){if(!k)throw Error();throw k;}; W6S=function(k){return k}; r6=function(k){this.T=k}; g.Z4=function(k){function p(q){if(J.state.status==="PENDING"){J.state={status:"REJECTED",reason:q};q=g.Z(J.Y);for(var F=q.next();!F.done;F=q.next())F=F.value,F()}} function t(q){if(J.state.status==="PENDING"){J.state={status:"FULFILLED",value:q};q=g.Z(J.T);for(var F=q.next();!F.done;F=q.next())F=F.value,F()}} var J=this;this.state={status:"PENDING"};this.T=[];this.Y=[];k=k.T;try{k(t,p)}catch(q){p(q)}}; DNu=function(k,p,t,J,q){try{if(k.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var F=t(k.state.value);F instanceof g.Z4?Cz(k,p,F,J,q):J(F)}catch(d){q(d)}}; sbT=function(k,p,t,J,q){try{if(k.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var F=t(k.state.reason);F instanceof g.Z4?Cz(k,p,F,J,q):J(F)}catch(d){q(d)}}; Cz=function(k,p,t,J,q){p===t?q(new TypeError("Circular promise chain detected.")):t.then(function(F){F instanceof g.Z4?Cz(k,p,F,J,q):J(F)},function(F){q(F)})}; L66=function(k,p,t){function J(){t(k.error);F()} function q(){p(k.result);F()} function F(){try{k.removeEventListener("success",q),k.removeEventListener("error",J)}catch(d){}} k.addEventListener("success",q);k.addEventListener("error",J)}; vEe=function(k){return new Promise(function(p,t){L66(k,p,t)})}; AO=function(k){return new g.Z4(new r6(function(p,t){L66(k,p,t)}))}; mD=function(k,p){return new g.Z4(new r6(function(t,J){function q(){var F=k?p(k):null;F?F.then(function(d){k=d;q()},J):t()} q()}))}; cB_=function(k,p){this.request=k;this.cursor=p}; nE0=function(k){return AO(k).then(function(p){return p?new cB_(k,p):null})}; g.wpu=function(k){k.cursor.continue(void 0);return nE0(k.request)}; ivu=function(k,p){this.T=k;this.options=p;this.transactionCount=0;this.N=Math.round((0,g.V9)());this.Y=!1}; g.D4=function(k,p,t){k=k.T.createObjectStore(p,t);return new W7(k)}; sT=function(k,p){k.T.objectStoreNames.contains(p)&&k.T.deleteObjectStore(p)}; g.c7=function(k,p,t){return g.Lz(k,[p],{mode:"readwrite",RO:!0},function(J){return g.v7(J.objectStore(p),t)})}; g.Lz=function(k,p,t,J){var q,F,d,S,U,f,b,N,y,Y,T,A;return g.Q(function(V){switch(V.T){case 1:var D={mode:"readonly",RO:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof t==="string"?D.mode=t:Object.assign(D,t);q=D;k.transactionCount++;F=q.RO?3:1;d=0;case 2:if(S){V.oY(4);break}d++;U=Math.round((0,g.V9)());g.Aw(V,5);f=k.T.transaction(p,q.mode);D=new nz(f);D=Qb0(D,J);return g.n(V,D,7);case 7:return b=V.Y,N=Math.round((0,g.V9)()),Pui(k,U,N,d,void 0,p.join(),q),V.return(b);case 5:y=g.W9(V);Y=Math.round((0,g.V9)()); T=Yp(y,k.T.name,p.join(),k.T.version);if((A=T instanceof g.fz&&!T.T)||d>=F)Pui(k,U,Y,d,T,p.join(),q),S=T;V.oY(2);break;case 4:return V.return(Promise.reject(S))}})}; Pui=function(k,p,t,J,q,F,d){p=t-p;q?(q instanceof g.fz&&(q.type==="QUOTA_EXCEEDED"||q.type==="QUOTA_MAYBE_EXCEEDED")&&ET("QUOTA_EXCEEDED",{dbName:UT(k.T.name),objectStoreNames:F,transactionCount:k.transactionCount,transactionMode:d.mode}),q instanceof g.fz&&q.type==="UNKNOWN_ABORT"&&(t-=k.N,t<0&&t>=2147483648&&(t=0),ET("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:F,transactionDuration:p,transactionCount:k.transactionCount,dbDuration:t}),k.Y=!0),G7M(k,!1,J,F,p,d.tag),d6(q)):G7M(k,!0,J,F,p, d.tag)}; G7M=function(k,p,t,J,q,F){ET("TRANSACTION_ENDED",{objectStoreNames:J,connectionHasUnknownAbortedTransaction:k.Y,duration:q,isSuccessful:p,tryCount:t,tag:F===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":F})}; W7=function(k){this.T=k}; g.w6=function(k,p,t){k.T.createIndex(p,t,{unique:!1})}; Iqi=function(k,p){return g.ir(k,{query:p},function(t){return t.delete().then(function(){return g.Q9(t)})}).then(function(){})}; Xpe=function(k,p,t){var J=[];return g.ir(k,{query:p},function(q){if(!(t!==void 0&&J.length>=t))return J.push(q.getValue()),g.Q9(q)}).then(function(){return J})}; BQ0=function(k){return"getAllKeys"in IDBObjectStore.prototype?AO(k.T.getAllKeys(void 0,void 0)):Rxi(k)}; Rxi=function(k){var p=[];return g.zxj(k,{query:void 0},function(t){p.push(t.cursor.primaryKey);return g.wpu(t)}).then(function(){return p})}; g.v7=function(k,p,t){return AO(k.T.put(p,t))}; g.ir=function(k,p,t){k=k.T.openCursor(p.query,p.direction);return P7(k).then(function(J){return mD(J,t)})}; g.zxj=function(k,p,t){var J=p.query;p=p.direction;k="openKeyCursor"in IDBObjectStore.prototype?k.T.openKeyCursor(J,p):k.T.openCursor(J,p);return nE0(k).then(function(q){return mD(q,t)})}; nz=function(k){var p=this;this.T=k;this.N=new Map;this.Y=!1;this.done=new Promise(function(t,J){p.T.addEventListener("complete",function(){t()}); p.T.addEventListener("error",function(q){q.currentTarget===q.target&&J(p.T.error)}); p.T.addEventListener("abort",function(){var q=p.T.error;if(q)J(q);else if(!p.Y){q=g.fz;for(var F=p.T.objectStoreNames,d=[],S=0;S<F.length;S++){var U=F.item(S);if(U===null)throw Error("Invariant: item in DOMStringList is null");d.push(U)}q=new q("UNKNOWN_ABORT",{objectStoreNames:d.join(),dbName:p.T.db.name,mode:p.T.mode});J(q)}})})}; Qb0=function(k,p){var t=new Promise(function(J,q){try{p(k).then(function(F){J(F)}).catch(q)}catch(F){q(F),k.abort()}}); return Promise.all([t,k.done]).then(function(J){return g.Z(J).next().value})}; exq=function(k){this.T=k}; hx0=function(k,p,t){var J=[];return g.GE(k,{query:p},function(q){if(!(t!==void 0&&J.length>=t))return J.push(q.getValue()),g.Q9(q)}).then(function(){return J})}; g.GE=function(k,p,t){k=k.T.openCursor(p.query===void 0?null:p.query,p.direction===void 0?"next":p.direction);return P7(k).then(function(J){return mD(J,t)})}; Ig=function(k,p){this.request=k;this.cursor=p}; P7=function(k){return AO(k).then(function(p){return p?new Ig(k,p):null})}; g.Q9=function(k){k.cursor.continue(void 0);return P7(k.request)}; aqh=function(k,p,t){return new Promise(function(J,q){function F(){y||(y=new ivu(d.result,{closed:N}));return y} var d=p!==void 0?self.indexedDB.open(k,p):self.indexedDB.open(k);var S=t.blocked,U=t.blocking,f=t.mAS,b=t.upgrade,N=t.closed,y;d.addEventListener("upgradeneeded",function(Y){try{if(Y.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(d.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");Y.dataLoss&&Y.dataLoss!=="none"&&ET("IDB_DATA_CORRUPTED",{reason:Y.dataLossMessage||"unknown reason",dbName:UT(k)});var T=F(),A=new nz(d.transaction); b&&b(T,function(V){return Y.oldVersion<V&&Y.newVersion>=V},A); A.done.catch(function(V){q(V)})}catch(V){q(V)}}); d.addEventListener("success",function(){var Y=d.result;U&&Y.addEventListener("versionchange",function(){U(F())}); Y.addEventListener("close",function(){ET("IDB_UNEXPECTEDLY_CLOSED",{dbName:UT(k),dbVersion:Y.version});f&&f()}); J(F())}); d.addEventListener("error",function(){q(d.error)}); S&&d.addEventListener("blocked",function(){S()})})}; MIq=function(k,p,t){t=t===void 0?{}:t;return aqh(k,p,t)}; Xm=function(k,p){p=p===void 0?{}:p;var t,J,q,F;return g.Q(function(d){if(d.T==1)return g.Aw(d,2),t=self.indexedDB.deleteDatabase(k),J=p,(q=J.blocked)&&t.addEventListener("blocked",function(){q()}),g.n(d,vEe(t),4); if(d.T!=2)return g.Vi(d,0);F=g.W9(d);throw Yp(F,k,"",-1);})}; Rg=function(k,p){this.name=k;this.options=p;this.N=!0;this.X=this.C=0}; gE0=function(k,p){return new g.fz("INCOMPATIBLE_DB_VERSION",{dbName:k.name,oldVersion:k.options.version,newVersion:p})}; g.B7=function(k,p){if(!p)throw g.TE("openWithToken",UT(k.name));return k.open()}; uzq=function(k,p){var t;return g.Q(function(J){if(J.T==1)return g.n(J,g.B7(zE,p),2);t=J.Y;return J.return(g.Lz(t,["databases"],{RO:!0,mode:"readwrite"},function(q){var F=q.objectStore("databases");return F.get(k.actualName).then(function(d){if(d?k.actualName!==d.actualName||k.publicName!==d.publicName||k.userIdentifier!==d.userIdentifier:1)return g.v7(F,k).then(function(){})})}))})}; eY=function(k,p){var t;return g.Q(function(J){if(J.T==1)return k?g.n(J,g.B7(zE,p),2):J.return();t=J.Y;return J.return(t.delete("databases",k))})}; lqS=function(k,p){var t,J;return g.Q(function(q){return q.T==1?(t=[],g.n(q,g.B7(zE,p),2)):q.T!=3?(J=q.Y,g.n(q,g.Lz(J,["databases"],{RO:!0,mode:"readonly"},function(F){t.length=0;return g.ir(F.objectStore("databases"),{},function(d){k(d.getValue())&&t.push(d.getValue());return g.Q9(d)})}),3)):q.return(t)})}; jbh=function(k,p){return lqS(function(t){return t.publicName===k&&t.userIdentifier!==void 0},p)}; Ovi=function(){var k,p,t,J;return g.Q(function(q){switch(q.T){case 1:k=pz();if((p=k)==null?0:p.hasSucceededOnce)return q.return(!0);if(hO&&aY()&&!M8()||g.ag)return q.return(!1);try{if(t=self,!(t.indexedDB&&t.IDBIndex&&t.IDBKeyRange&&t.IDBObjectStore))return q.return(!1)}catch(F){return q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return q.return(!1);g.Aw(q,2);J={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.n(q,uzq(J,Mv),4);case 4:return g.n(q,eY("yt-idb-test-do-not-use",Mv),5);case 5:return q.return(!0);case 2:return g.W9(q),q.return(!1)}})}; K6e=function(){if(g6!==void 0)return g6;$p=!0;return g6=Ovi().then(function(k){$p=!1;var p;if((p=kp())!=null&&p.T){var t;p={hasSucceededOnce:((t=pz())==null?void 0:t.hasSucceededOnce)||k};var J;(J=kp())==null||J.set("LAST_RESULT_ENTRY_KEY",p,2592E3,!0)}return k})}; ur=function(){return g.hw("ytglobal.idbToken_")||void 0}; g.lr=function(){var k=ur();return k?Promise.resolve(k):K6e().then(function(p){(p=p?Mv:void 0)&&g.eM("ytglobal.idbToken_",p);return p})}; Hvu=function(k){if(!g.MI())throw k=new g.fz("AUTH_INVALID",{dbName:k}),d6(k),k;var p=g.au();return{actualName:k+":"+p,publicName:k,userIdentifier:p}}; xNS=function(k,p,t,J){var q,F,d,S,U,f;return g.Q(function(b){switch(b.T){case 1:return F=(q=Error().stack)!=null?q:"",g.n(b,g.lr(),2);case 2:d=b.Y;if(!d)throw S=g.TE("openDbImpl",k,p),g.TQ("ytidb_async_stack_killswitch")||(S.stack=S.stack+"\n"+F.substring(F.indexOf("\n")+1)),d6(S),S;SY(k);U=t?{actualName:k,publicName:k,userIdentifier:void 0}:Hvu(k);g.Aw(b,3);return g.n(b,uzq(U,d),5);case 5:return g.n(b,MIq(U.actualName,p,J),6);case 6:return b.return(b.Y);case 3:return f=g.W9(b),g.Aw(b,7),g.n(b,eY(U.actualName, d),9);case 9:g.Vi(b,8);break;case 7:g.W9(b);case 8:throw f;}})}; kyM=function(k,p,t){t=t===void 0?{}:t;return xNS(k,p,!1,t)}; pi9=function(k,p,t){t=t===void 0?{}:t;return xNS(k,p,!0,t)}; t5_=function(k,p){p=p===void 0?{}:p;var t,J;return g.Q(function(q){if(q.T==1)return g.n(q,g.lr(),2);if(q.T!=3){t=q.Y;if(!t)return q.return();SY(k);J=Hvu(k);return g.n(q,Xm(J.actualName,p),3)}return g.n(q,eY(J.actualName,t),0)})}; Jq9=function(k,p,t){k=k.map(function(J){return g.Q(function(q){return q.T==1?g.n(q,Xm(J.actualName,p),2):g.n(q,eY(J.actualName,t),0)})}); return Promise.all(k).then(function(){})}; ol0=function(k){var p=p===void 0?{}:p;var t,J;return g.Q(function(q){if(q.T==1)return g.n(q,g.lr(),2);if(q.T!=3){t=q.Y;if(!t)return q.return();SY(k);return g.n(q,jbh(k,t),3)}J=q.Y;return g.n(q,Jq9(J,p,t),0)})}; qBw=function(k,p){p=p===void 0?{}:p;var t;return g.Q(function(J){if(J.T==1)return g.n(J,g.lr(),2);if(J.T!=3){t=J.Y;if(!t)return J.return();SY(k);return g.n(J,Xm(k,p),3)}return g.n(J,eY(k,t),0)})}; jY=function(k,p){Rg.call(this,k,p);this.options=p;SY(k)}; Fxu=function(k,p){var t;return function(){t||(t=new jY(k,p));return t}}; g.OT=function(k,p){return Fxu(k,p)}; Kz=function(k){return g.B7($9i(),k)}; d9S=function(k,p,t,J){var q,F,d;return g.Q(function(S){switch(S.T){case 1:return q={config:k,hashData:p,timestamp:J!==void 0?J:(0,g.V9)()},g.n(S,Kz(t),2);case 2:return F=S.Y,g.n(S,F.clear("hotConfigStore"),3);case 3:return g.n(S,g.c7(F,"hotConfigStore",q),4);case 4:return d=S.Y,S.return(d)}})}; Elw=function(k,p,t,J,q){var F,d,S;return g.Q(function(U){switch(U.T){case 1:return F={config:k,hashData:p,configData:t,timestamp:q!==void 0?q:(0,g.V9)()},g.n(U,Kz(J),2);case 2:return d=U.Y,g.n(U,d.clear("coldConfigStore"),3);case 3:return g.n(U,g.c7(d,"coldConfigStore",F),4);case 4:return S=U.Y,U.return(S)}})}; SBh=function(k){var p,t;return g.Q(function(J){return J.T==1?g.n(J,Kz(k),2):J.T!=3?(p=J.Y,t=void 0,g.n(J,g.Lz(p,["coldConfigStore"],{mode:"readwrite",RO:!0},function(q){return g.GE(q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(F){t=F.getValue()})}),3)):J.return(t)})}; U9j=function(k){var p,t;return g.Q(function(J){return J.T==1?g.n(J,Kz(k),2):J.T!=3?(p=J.Y,t=void 0,g.n(J,g.Lz(p,["hotConfigStore"],{mode:"readwrite",RO:!0},function(q){return g.GE(q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(F){t=F.getValue()})}),3)):J.return(t)})}; f8i=function(){return g.Q(function(k){return g.n(k,ol0("ytGcfConfig"),0)})}; H7=function(){g.R.call(this);this.Y=[];this.T=[];var k=g.hw("yt.gcf.config.hotUpdateCallbacks");k?(this.Y=[].concat(g.m(k)),this.T=k):(this.T=[],g.eM("yt.gcf.config.hotUpdateCallbacks",this.T))}; ow=function(){var k=this;this.X=!1;this.N=this.C=0;this.S=new H7;this.u3={jWS:function(){k.X=!0}, KuT:function(){return k.T}, FDb:function(p){xp(k,p)}, w4:function(p){k.w4(p)}, C_r:function(p){kZ(k,p)}, q0:function(){return k.coldHashData}, Xl:function(){return k.hotHashData}, ZFp:function(){return k.Y}, x8T:function(){return pw()}, Rzy:function(){return ty()}, m8p:function(){return g.hw("yt.gcf.config.coldHashData")}, bFT:function(){return g.hw("yt.gcf.config.hotHashData")}, tvp:function(){bFi(k)}, gq0:function(){k.w4(void 0);Jy(k);delete ow.instance}, oqr:function(p){k.N=p}, q9r:function(){return k.N}}}; NDj=function(){if(!ow.instance){var k=new ow;ow.instance=k}return ow.instance}; TDu=function(k){var p;g.Q(function(t){if(t.T==1)return g.TQ("start_client_gcf")||g.TQ("delete_gcf_config_db")?g.TQ("start_client_gcf")?g.n(t,g.lr(),3):t.oY(2):t.return();t.T!=2&&((p=t.Y)&&g.MI()&&!g.TQ("delete_gcf_config_db")?(k.X=!0,bFi(k)):(yqu(k),YB_(k)));return g.TQ("delete_gcf_config_db")?g.n(t,f8i(),0):t.oY(0)})}; qD=function(){var k;return(k=ty())!=null?k:g.M9("RAW_HOT_CONFIG_GROUP")}; rq9=function(k){var p,t,J,q,F,d;return g.Q(function(S){switch(S.T){case 1:if(k.Y)return S.return(ty());if(!k.X)return p=g.TE("getHotConfig IDB not initialized"),OB(p),S.return(Promise.reject(p));t=ur();J=g.M9("TIME_CREATED_MS");if(!t){q=g.TE("getHotConfig token error");OB(q);S.oY(2);break}return g.n(S,U9j(t),3);case 3:if((F=S.Y)&&F.timestamp>J)return xp(k,F.config),k.w4(F.hashData),S.return(ty());case 2:YB_(k);if(!(t&&k.Y&&k.hotHashData)){S.oY(4);break}return g.n(S,d9S(k.Y,k.hotHashData,t,J),4);case 4:return k.Y? S.return(ty()):(d=new g.hm("Config not available in ytConfig"),OB(d),S.return(Promise.reject(d)))}})}; CwM=function(k){var p,t,J,q,F,d;return g.Q(function(S){switch(S.T){case 1:if(k.T)return S.return(pw());if(!k.X)return p=g.TE("getColdConfig IDB not initialized"),OB(p),S.return(Promise.reject(p));t=ur();J=g.M9("TIME_CREATED_MS");if(!t){q=g.TE("getColdConfig");OB(q);S.oY(2);break}return g.n(S,SBh(t),3);case 3:if((F=S.Y)&&F.timestamp>J)return kZ(k,F.config),ZFS(k,F.configData),Jy(k,F.hashData),S.return(pw());case 2:yqu(k);if(!(t&&k.T&&k.coldHashData&&k.configData)){S.oY(4);break}return g.n(S,Elw(k.T, k.coldHashData,k.configData,t,J),4);case 4:return k.T?S.return(pw()):(d=new g.hm("Config not available in ytConfig"),OB(d),S.return(Promise.reject(d)))}})}; bFi=function(k){if(!k.Y||!k.T){if(!ur()){var p=g.TE("scheduleGetConfigs");OB(p)}k.C||(k.C=g.B8.Hj(function(){return g.Q(function(t){switch(t.T){case 1:return g.Aw(t,2),g.n(t,rq9(k),4);case 4:g.Vi(t,3);break;case 2:g.W9(t);case 3:return g.Aw(t,5),g.n(t,CwM(k),7);case 7:g.Vi(t,6);break;case 5:g.W9(t);case 6:k.C&&(k.C=0),g.CS(t)}})},100))}}; Aqu=function(k,p,t){var J,q,F;return g.Q(function(d){switch(d.T){case 1:if(!g.TQ("start_client_gcf")){d.oY(0);break}t&&xp(k,t);k.w4(p);J=ur();if(!J){d.oY(3);break}if(t){d.oY(4);break}return g.n(d,U9j(J),5);case 5:q=d.Y,t=(F=q)==null?void 0:F.config;case 4:return g.n(d,d9S(t,p,J),3);case 3:if(t)for(var S=t,U=g.Z(k.S.T),f=U.next();!f.done;f=U.next())f=f.value,f(S);g.CS(d)}})}; m9q=function(k,p,t){var J,q,F,d;return g.Q(function(S){if(S.T==1){if(!g.TQ("start_client_gcf"))return S.oY(0);Jy(k,p);return(J=ur())?t?S.oY(4):g.n(S,SBh(J),5):S.oY(0)}S.T!=4&&(q=S.Y,t=(F=q)==null?void 0:F.config);if(!t)return S.oY(0);d=t.configData;return g.n(S,Elw(t,p,d,J),0)})}; V5e=function(){var k=NDj(),p=(0,g.V9)()-k.N;if(!(k.N!==0&&p<g.rh("send_config_hash_timer"))){p=g.hw("yt.gcf.config.coldConfigData");var t=g.hw("yt.gcf.config.hotHashData"),J=g.hw("yt.gcf.config.coldHashData");p&&t&&J&&(k.N=(0,g.V9)());return{coldConfigData:p,hotHashData:t,coldHashData:J}}}; yqu=function(k){kZ(k,g.M9("RAW_COLD_CONFIG_GROUP"));Jy(k,g.M9("SERIALIZED_COLD_HASH_DATA"));var p;ZFS(k,(p=k.T)==null?void 0:p.configData)}; YB_=function(k){xp(k,g.M9("RAW_HOT_CONFIG_GROUP"));k.w4(g.M9("SERIALIZED_HOT_HASH_DATA"))}; xp=function(k,p){k.Y=p;g.eM("yt.gcf.config.hotConfigGroup",k.Y||null)}; kZ=function(k,p){k.T=p;g.eM("yt.gcf.config.coldConfigGroup",k.T||null)}; Jy=function(k,p){k.coldHashData=p;g.eM("yt.gcf.config.coldHashData",k.coldHashData||null)}; ZFS=function(k,p){k.configData=p;g.eM("yt.gcf.config.coldConfigData",k.configData||null)}; ty=function(){return g.hw("yt.gcf.config.hotConfigGroup")}; pw=function(){return g.hw("yt.gcf.config.coldConfigGroup")}; Wxe=function(){return"INNERTUBE_API_KEY"in hq&&"INNERTUBE_API_VERSION"in hq}; g.Fs=function(){return{innertubeApiKey:g.M9("INNERTUBE_API_KEY"),innertubeApiVersion:g.M9("INNERTUBE_API_VERSION"),eR:g.M9("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),zE:g.M9("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Gx:g.M9("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.M9("INNERTUBE_CONTEXT_CLIENT_VERSION"),aN:g.M9("INNERTUBE_CONTEXT_HL"),By:g.M9("INNERTUBE_CONTEXT_GL"),H8:g.M9("INNERTUBE_HOST_OVERRIDE")||"",d8:!!g.M9("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),WSY:!!g.M9("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.M9("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.$Z=function(k){var p={client:{hl:k.aN,gl:k.By,clientName:k.zE,clientVersion:k.innertubeContextClientVersion,configInfo:k.eR}};navigator.userAgent&&(p.client.userAgent=String(navigator.userAgent));var t=g.B9.devicePixelRatio;t&&t!=1&&(p.client.screenDensityFloat=String(t));t=ZT();t!==""&&(p.client.experimentsToken=t);t=CY();t.length>0&&(p.request={internalExperimentFlags:t});D90(k,void 0,p);s3S(void 0,p);Lx_(void 0,p);vlT(k,void 0,p);cqq(void 0,p);g.TQ("start_client_gcf")&&nlu(void 0,p);g.M9("DELEGATED_SESSION_ID")&& !g.TQ("pageid_as_header_web")&&(p.user={onBehalfOfUser:g.M9("DELEGATED_SESSION_ID")});!g.TQ("fill_delegate_context_in_gel_killswitch")&&(k=g.M9("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(p.user=Object.assign({},p.user,{serializedDelegationContext:k}));k=g.M9("INNERTUBE_CONTEXT");var J;if(g.TQ("enable_persistent_device_token")&&(k==null?0:(J=k.client)==null?0:J.rolloutToken)){var q;p.client.rolloutToken=k==null?void 0:(q=k.client)==null?void 0:q.rolloutToken}J=Object;q=J.assign;k=p.client; t={};for(var F=g.Z(Object.entries(xl(g.M9("DEVICE","")))),d=F.next();!d.done;d=F.next()){var S=g.Z(d.value);d=S.next().value;S=S.next().value;d==="cbrand"?t.deviceMake=S:d==="cmodel"?t.deviceModel=S:d==="cbr"?t.browserName=S:d==="cbrver"?t.browserVersion=S:d==="cos"?t.osName=S:d==="cosver"?t.osVersion=S:d==="cplatform"&&(t.platform=S)}p.client=q.call(J,k,t);return p}; D90=function(k,p,t){k=k.zE;if(k==="WEB"||k==="MWEB"||k===1||k===2)if(p){t=$B(p,D8,96)||new D8;var J=QB();J=Object.keys(wih).indexOf(J);J=J===-1?null:J;J!==null&&ZL(t,3,J);dB(p,D8,96,t)}else t&&(t.client.mainAppWebInfo=(J=t.client.mainAppWebInfo)!=null?J:{},t.client.mainAppWebInfo.webDisplayMode=QB())}; s3S=function(k,p){var t=g.hw("yt.embedded_player.embed_url");t&&(k?(p=$B(k,nF,7)||new nF,T9(p,4,t),dB(k,nF,7,p)):p&&(p.thirdParty={embedUrl:t}))}; Lx_=function(k,p){var t;if(g.TQ("web_log_memory_total_kbytes")&&((t=g.B9.navigator)==null?0:t.deviceMemory)){var J;t=(J=g.B9.navigator)==null?void 0:J.deviceMemory;k?zh(k,95,A4(t*1E6)):p&&(p.client.memoryTotalKbytes=""+t*1E6)}}; vlT=function(k,p,t){if(k.appInstallData)if(p){var J;t=(J=$B(p,Wi,62))!=null?J:new Wi;T9(t,6,k.appInstallData);dB(p,Wi,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},t.client.configInfo.appInstallData=k.appInstallData)}; cqq=function(k,p){var t=NQw();t&&(k?ZL(k,61,iFM[t]):p&&(p.client.connectionType=t));g.TQ("web_log_effective_connection_type")&&(t=Yii())&&(k?ZL(k,94,Q3u[t]):p&&(p.client.effectiveConnectionType=t))}; Pwq=function(k,p,t){t=t===void 0?{}:t;var J={};g.M9("EOM_VISITOR_DATA")?J={"X-Goog-EOM-Visitor-Id":g.M9("EOM_VISITOR_DATA")}:J={"X-Goog-Visitor-Id":t.visitorData||g.M9("VISITOR_DATA","")};if(p&&p.includes("www.youtube-nocookie.com"))return J;p=t.Lz||g.M9("AUTHORIZATION");p||(k?p="Bearer "+g.hw("gapi.auth.getToken")().access_token:(k=dNe().oe(dX),g.TQ("pageid_as_header_web")||delete k["X-Goog-PageId"],J=Object.assign({},J,k)));p&&(J.Authorization=p);return J}; nlu=function(k,p){var t=V5e();if(t){var J=t.coldConfigData,q=t.coldHashData;t=t.hotHashData;if(k){var F;p=(F=$B(k,Wi,62))!=null?F:new Wi;J=T9(p,1,J);T9(J,3,q).w4(t);dB(k,Wi,62,p)}else p&&(p.client.configInfo=p.client.configInfo||{},J&&(p.client.configInfo.coldConfigData=J),q&&(p.client.configInfo.coldHashData=q),t&&(p.client.configInfo.hotHashData=t))}}; Ew=function(k,p){this.version=k;this.args=p}; Sh=function(k,p){this.topic=k;this.T=p}; fw=function(k,p){var t=Uw();t&&t.publish.call(t,k.toString(),k,p)}; Xiw=function(k){var p=GyS,t=Uw();if(!t)return 0;var J=t.subscribe(p.toString(),function(q,F){var d=g.hw("ytPubsub2Pubsub2SkipSubKey");d&&d==J||(d=function(){if(bc[J])try{if(F&&p instanceof Sh&&p!=q)try{var S=p.T,U=F;if(!U.args||!U.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!S.N5){var f=new S;S.N5=f.version}var b=S.N5}catch(N){}if(!b||U.version!=b)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{F=Reflect.construct(S, g.tj(U.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+p.toString()+": "+N.message,N;}k.call(window,F)}catch(N){g.lw(N)}},I8i[p.toString()]?g.KG()?g.B8.Hj(d):g.fY(d,0):d())}); bc[J]=!0;ND[p.toString()]||(ND[p.toString()]=[]);ND[p.toString()].push(J);return J}; zKL=function(){var k=RK0,p=Xiw(function(t){k.apply(void 0,arguments);BDi(p)}); return p}; BDi=function(k){var p=Uw();p&&(typeof k==="number"&&(k=[k]),g.y1(k,function(t){p.unsubscribeByKey(t);delete bc[t]}))}; Uw=function(){return g.hw("ytPubsub2Pubsub2Instance")}; Cw=function(k,p,t){t=t===void 0?{sampleRate:.1}:t;Math.random()<Math.min(.02,t.sampleRate/100)&&fw("meta_logging_csi_event",{timerName:k,WDY:p})}; eK6=function(){Ay||(Ay=CF(g.M9("WORKER_SERIALIZATION_URL")));return Ay||void 0}; Vr=function(){var k=eK6();mf||k===void 0||(mf=new Worker(Lu(k),void 0));return mf}; hKT=function(){return typeof Worker==="function"&&eK6()?!0:!1}; M5_=function(){if(hKT()&&!W3){var k=function(t){t=t.data;if(t.op==="gzippedGelBatch"){var J=D1.get(t.key);J&&(a8h(t.gzippedBatch,J.latencyPayload,J.url,J.options,J.sendFn),D1.delete(t.key))}},p=Vr(); p&&(p.addEventListener("message",k),p.onerror=function(){D1.clear()},W3=!0)}}; c3=function(k,p,t,J,q){q=q===void 0?!1:q;var F={startTime:(0,g.V9)(),ticks:{},infos:{}};if(Lw)try{var d=gle(p);if(d!=null&&(d>u3q||d<l8S))J(k,t);else{if(g.TQ("gzip_gel_with_worker")&&(g.TQ("initial_gzip_use_main_thread")&&!j3T||!g.TQ("initial_gzip_use_main_thread"))){W3||M5_();var S=Vr();if(S&&!q){D1.set(v3,{latencyPayload:F,url:k,options:t,sendFn:J});S.postMessage({op:"gelBatchToGzip",serializedBatch:p,key:v3});v3++;return}}var U=GfM(OFi(p));a8h(U,F,k,t,J)}}catch(f){OB(f),J(k,t)}else J(k,t)}; a8h=function(k,p,t,J,q){j3T=!1;var F=(0,g.V9)();p.ticks.gelc=F;nw++;g.TQ("disable_compression_due_to_performance_degredation")&&F-p.startTime>=KxM&&(wX++,g.TQ("abandon_compression_after_N_slow_zips")?nw===g.rh("compression_disable_point")&&wX>HF9&&(Lw=!1):Lw=!1);x9i(p);J.headers||(J.headers={});J.headers["Content-Encoding"]="gzip";J.postBody=k;J.postParams=void 0;q(t,J)}; kQ0=function(k){var p=p===void 0?!1:p;var t=t===void 0?!1:t;var J=(0,g.V9)(),q={startTime:J,ticks:{},infos:{}},F=p?g.hw("yt.logging.gzipForFetch",!1):!0;if(Lw&&F){if(!k.body)return k;try{var d=t?k.body:typeof k.body==="string"?k.body:JSON.stringify(k.body);F=d;if(!t&&typeof d==="string"){var S=gle(d);if(S!=null&&(S>u3q||S<l8S))return k;t=p?{level:1}:void 0;F=GfM(OFi(d),t);var U=(0,g.V9)();q.ticks.gelc=U;if(p){nw++;if((g.TQ("disable_compression_due_to_performance_degredation")||g.TQ("disable_compression_due_to_performance_degradation_lr"))&& U-J>=KxM)if(wX++,g.TQ("abandon_compression_after_N_slow_zips")||g.TQ("abandon_compression_after_N_slow_zips_lr")){p=wX/nw;var f=HF9/g.rh("compression_disable_point");nw>0&&nw%g.rh("compression_disable_point")===0&&p>=f&&(Lw=!1)}else Lw=!1;x9i(q)}}k.headers=Object.assign({},{"Content-Encoding":"gzip"},k.headers||{});k.body=F;return k}catch(b){return OB(b),k}}else return k}; gle=function(k){try{return(new Blob(k.split(""))).size}catch(p){return OB(p),null}}; x9i=function(k){g.TQ("gel_compression_csi_killswitch")||!g.TQ("log_gel_compression_latency")&&!g.TQ("log_gel_compression_latency_lr")||Cw("gel_compression",k,{sampleRate:.1})}; Qr=function(k){var p=this;this.r3=this.T=!1;this.potentialEsfErrorCounter=this.Y=0;this.handleError=function(){}; this.m3=function(){}; this.now=Date.now;this.GB=!1;this.u3={P_p:function(b){p.GC=b}, h2S:function(){p.I5()}, n0:function(){p.Rl()}, UD:function(b){return g.Q(function(N){return g.n(N,p.UD(b),0)})}, GD:function(b,N){return p.GD(b,N)}, zD:function(){p.zD()}}; var t;this.Wx=(t=k.Wx)!=null?t:100;var J;this.vK=(J=k.vK)!=null?J:1;var q;this.DK=(q=k.DK)!=null?q:2592E6;var F;this.O_=(F=k.O_)!=null?F:12E4;var d;this.cK=(d=k.cK)!=null?d:5E3;var S;this.GC=(S=k.GC)!=null?S:void 0;this.fg=!!k.fg;var U;this.Cg=(U=k.Cg)!=null?U:.1;var f;this.mq=(f=k.mq)!=null?f:10;k.handleError&&(this.handleError=k.handleError);k.m3&&(this.m3=k.m3);k.GB&&(this.GB=k.GB);k.r3&&(this.r3=k.r3);this.Gb=k.Gb;this.Af=k.Af;this.GH=k.GH;this.SE=k.SE;this.sendFn=k.sendFn;this.Y9=k.Y9;this.Tz= k.Tz;ic(this)&&(!this.Gb||this.Gb("networkless_logging"))&&pwi(this)}; pwi=function(k){ic(k)&&!k.GB&&(k.T=!0,k.fg&&Math.random()<=k.Cg&&k.GH.t1(k.GC),k.zD(),k.SE.FI()&&k.I5(),k.SE.listen(k.Y9,k.I5.bind(k)),k.SE.listen(k.Tz,k.Rl.bind(k)))}; oXe=function(k,p){if(!ic(k))throw Error("IndexedDB is not supported: updateRequestHandlers");var t=p.options.onError?p.options.onError:function(){}; p.options.onError=function(q,F){var d,S,U,f;return g.Q(function(b){switch(b.T){case 1:d=tNi(F);(S=Jeu(F))&&k.Gb&&k.Gb("web_enable_error_204")&&k.handleError(Error("Request failed due to compression"),p.url,F);if(!(k.Gb&&k.Gb("nwl_consider_error_code")&&d||k.Gb&&!k.Gb("nwl_consider_error_code")&&k.potentialEsfErrorCounter<=k.mq)){b.oY(2);break}if(!k.SE.L4){b.oY(3);break}return g.n(b,k.SE.L4(),3);case 3:if(k.SE.FI()){b.oY(2);break}t(q,F);if(!k.Gb||!k.Gb("nwl_consider_error_code")||((U=p)==null?void 0: U.id)===void 0){b.oY(6);break}return g.n(b,k.GH.dg(p.id,k.GC,!1),6);case 6:return b.return();case 2:if(k.Gb&&k.Gb("nwl_consider_error_code")&&!d&&k.potentialEsfErrorCounter>k.mq)return b.return();k.potentialEsfErrorCounter++;if(((f=p)==null?void 0:f.id)===void 0){b.oY(8);break}return p.sendCount<k.vK?g.n(b,k.GH.dg(p.id,k.GC,!0,S?!1:void 0),12):g.n(b,k.GH.Uc(p.id,k.GC),8);case 12:k.Af.Hj(function(){k.SE.FI()&&k.I5()},k.cK); case 8:t(q,F),g.CS(b)}})}; var J=p.options.onSuccess?p.options.onSuccess:function(){}; p.options.onSuccess=function(q,F){var d;return g.Q(function(S){if(S.T==1)return((d=p)==null?void 0:d.id)===void 0?S.oY(2):g.n(S,k.GH.Uc(p.id,k.GC),2);k.SE.hS&&k.Gb&&k.Gb("vss_network_hint")&&k.SE.hS(!0);J(q,F);g.CS(S)})}; return p}; P3=function(k,p){k.ZF&&!k.SE.FI()?k.ZF(p):k.handleError(p)}; ic=function(k){return!!k.GC||k.r3}; tNi=function(k){var p;return(k=k==null?void 0:(p=k.error)==null?void 0:p.code)&&k>=400&&k<=599?!1:!0}; Jeu=function(k){var p;k=k==null?void 0:(p=k.error)==null?void 0:p.code;return!(k!==400&&k!==415)}; qGM=function(){if(Gp)return Gp();var k={};Gp=g.OT("LogsDatabaseV2",{Sn:(k.LogsRequestsStore={f5:2},k),shared:!1,upgrade:function(p,t,J){t(2)&&g.D4(p,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});t(3);t(5)&&(J=J.objectStore("LogsRequestsStore"),J.T.indexNames.contains("newRequest")&&J.T.deleteIndex("newRequest"),g.w6(J,"newRequestV2",["status","interface","timestamp"]));t(7)&&sT(p,"sapisid");t(9)&&sT(p,"SWHealthLog")}, version:9});return Gp()}; Iw=function(k){return g.B7(qGM(),k)}; $8q=function(k,p){var t,J,q,F;return g.Q(function(d){if(d.T==1)return t={startTime:(0,g.V9)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.n(d,Iw(p),2);if(d.T!=3)return J=d.Y,q=Object.assign({},k,{options:JSON.parse(JSON.stringify(k.options)),interface:g.M9("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.n(d,g.c7(J,"LogsRequestsStore",q),3);F=d.Y;t.ticks.tc=(0,g.V9)();FGq(t);return d.return(F)})}; d8w=function(k,p){var t,J,q,F,d,S,U,f;return g.Q(function(b){if(b.T==1)return t={startTime:(0,g.V9)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.n(b,Iw(p),2);if(b.T!=3)return J=b.Y,q=g.M9("INNERTUBE_CONTEXT_CLIENT_NAME",0),F=[k,q,0],d=[k,q,(0,g.V9)()],S=IDBKeyRange.bound(F,d),U="prev",g.TQ("use_fifo_for_networkless")&&(U="next"),f=void 0,g.n(b,g.Lz(J,["LogsRequestsStore"],{mode:"readwrite",RO:!0},function(N){return g.GE(N.objectStore("LogsRequestsStore").index("newRequestV2"), {query:S,direction:U},function(y){y.getValue()&&(f=y.getValue(),k==="NEW"&&(f.status="QUEUED",y.update(f)))})}),3); t.ticks.tc=(0,g.V9)();FGq(t);return b.return(f)})}; EXe=function(k,p){var t;return g.Q(function(J){if(J.T==1)return g.n(J,Iw(p),2);t=J.Y;return J.return(g.Lz(t,["LogsRequestsStore"],{mode:"readwrite",RO:!0},function(q){var F=q.objectStore("LogsRequestsStore");return F.get(k).then(function(d){if(d)return d.status="QUEUED",g.v7(F,d).then(function(){return d})})}))})}; SGu=function(k,p,t,J){t=t===void 0?!0:t;var q;return g.Q(function(F){if(F.T==1)return g.n(F,Iw(p),2);q=F.Y;return F.return(g.Lz(q,["LogsRequestsStore"],{mode:"readwrite",RO:!0},function(d){var S=d.objectStore("LogsRequestsStore");return S.get(k).then(function(U){return U?(U.status="NEW",t&&(U.sendCount+=1),J!==void 0&&(U.options.compress=J),g.v7(S,U).then(function(){return U})):g.Z4.resolve(void 0)})}))})}; U89=function(k,p){var t;return g.Q(function(J){if(J.T==1)return g.n(J,Iw(p),2);t=J.Y;return J.return(t.delete("LogsRequestsStore",k))})}; fTS=function(k){var p,t;return g.Q(function(J){if(J.T==1)return g.n(J,Iw(k),2);p=J.Y;t=(0,g.V9)()-2592E6;return g.n(J,g.Lz(p,["LogsRequestsStore"],{mode:"readwrite",RO:!0},function(q){return g.ir(q.objectStore("LogsRequestsStore"),{},function(F){if(F.getValue().timestamp<=t)return F.delete().then(function(){return g.Q9(F)})})}),0)})}; bYT=function(){g.Q(function(k){return g.n(k,ol0("LogsDatabaseV2"),0)})}; FGq=function(k){g.TQ("nwl_csi_killswitch")||Cw("networkless_performance",k,{sampleRate:1})}; yew=function(k){return g.B7(Nhu(),k)}; YGh=function(k){var p,t;g.Q(function(J){if(J.T==1)return g.n(J,yew(k),2);p=J.Y;t=(0,g.V9)()-2592E6;return g.n(J,g.Lz(p,["SWHealthLog"],{mode:"readwrite",RO:!0},function(q){return g.ir(q.objectStore("SWHealthLog"),{},function(F){if(F.getValue().timestamp<=t)return F.delete().then(function(){return g.Q9(F)})})}),0)})}; Thw=function(k){var p;return g.Q(function(t){if(t.T==1)return g.n(t,yew(k),2);p=t.Y;return g.n(t,p.clear("SWHealthLog"),0)})}; g.Xs=function(k,p,t,J,q,F,d){q=q===void 0?"":q;F=F===void 0?!1:F;d=d===void 0?!1:d;if(k)if(t&&!g.zQ())OB(new g.hm("Legacy referrer-scrubbed ping detected")),k&&rej(k,void 0,{scrubReferrer:!0});else if(q)Ae(k,p,"POST",q,J);else if(g.M9("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||J||d)Ae(k,p,"GET","",J,void 0,F,d);else{b:{try{var S=new JKi({url:k});if(S.X?typeof S.N!=="string"||S.N.length===0?0:{version:3,F4:S.N,RS:W8(S.T,"act=1","ri=1",ocM(S))}:S.S&&{version:4,F4:W8(S.T,"dct=1","suid="+S.C,""),RS:W8(S.T, "act=1","ri=1","suid="+S.C)}){var U=Qu(g.Gq(5,k));var f=!(!U||!U.endsWith("/aclk")||Mn(k,"ri")!=="1");break b}}catch(b){}f=!1}f?ZYi(k)?(p&&p(),t=!0):t=!1:t=!1;t||rej(k,p)}}; ZYi=function(k,p){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(k,p===void 0?"":p))return!0}catch(t){}return!1}; rej=function(k,p,t){t=t===void 0?{}:t;var J=new Image,q=""+C6M++;Rw[q]=J;J.onload=J.onerror=function(){p&&Rw[q]&&p();delete Rw[q]}; t.scrubReferrer&&(J.referrerPolicy="no-referrer");J.src=k}; AeS=function(k){var p;return((p=document.featurePolicy)==null?0:p.allowedFeatures().includes("attribution-reporting"))?k+"&nis=6":k+"&nis=5"}; zp=function(){B3||(B3=new x9("yt.offline"));return B3}; m8S=function(k){if(g.TQ("offline_error_handling")){var p=zp().get("errors",!0)||{};p[k.message]={name:k.name,stack:k.stack};k.level&&(p[k.message].level=k.level);zp().set("errors",p,2592E3,!0)}}; eh=function(){this.T=new Map;this.Y=!1}; hy=function(){if(!eh.instance){var k=g.hw("yt.networkRequestMonitor.instance")||new eh;g.eM("yt.networkRequestMonitor.instance",k);eh.instance=k}return eh.instance}; aw=function(){g.Hg.call(this);var k=this;this.Y=!1;this.T=GTj();this.T.listen("networkstatus-online",function(){if(k.Y&&g.TQ("offline_error_handling")){var p=zp().get("errors",!0);if(p){for(var t in p)if(p[t]){var J=new g.hm(t,"sent via offline_errors");J.name=p[t].name;J.stack=p[t].stack;J.level=p[t].level;g.lw(J)}zp().set("errors",{},2592E3,!0)}}})}; VN9=function(){if(!aw.instance){var k=g.hw("yt.networkStatusManager.instance")||new aw;g.eM("yt.networkStatusManager.instance",k);aw.instance=k}return aw.instance}; g.MD=function(k){k=k===void 0?{}:k;g.Hg.call(this);var p=this;this.T=this.C=0;this.Y=VN9();var t=g.hw("yt.networkStatusManager.instance.listen").bind(this.Y);t&&(k.rateLimit?(this.rateLimit=k.rateLimit,t("networkstatus-online",function(){WGw(p,"publicytnetworkstatus-online")}),t("networkstatus-offline",function(){WGw(p,"publicytnetworkstatus-offline")})):(t("networkstatus-online",function(){p.dispatchEvent("publicytnetworkstatus-online")}),t("networkstatus-offline",function(){p.dispatchEvent("publicytnetworkstatus-offline")})))}; WGw=function(k,p){k.rateLimit?k.T?(g.B8.KU(k.C),k.C=g.B8.Hj(function(){k.N!==p&&(k.dispatchEvent(p),k.N=p,k.T=(0,g.V9)())},k.rateLimit-((0,g.V9)()-k.T))):(k.dispatchEvent(p),k.N=p,k.T=(0,g.V9)()):k.dispatchEvent(p)}; uc=function(){var k=Qr.call;gX||(gX=new g.MD({ZMT:!0,huy:!0}));k.call(Qr,this,{GH:{t1:fTS,Uc:U89,h3:d8w,K26:EXe,dg:SGu,set:$8q},SE:gX,handleError:function(p,t,J){var q,F=J==null?void 0:(q=J.error)==null?void 0:q.code;if(F===400||F===415){var d;OB(new g.hm(p.message,t,J==null?void 0:(d=J.error)==null?void 0:d.code),void 0,void 0,void 0,!0)}else g.lw(p)}, m3:OB,sendFn:D8h,now:g.V9,ZF:m8S,Af:g.OA(),Y9:"publicytnetworkstatus-online",Tz:"publicytnetworkstatus-offline",fg:!0,Cg:.1,mq:g.rh("potential_esf_error_limit",10),Gb:g.TQ,GB:!(g.MI()&&g.Iq(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.yM;g.TQ("networkless_immediately_drop_all_requests")&&bYT();qBw("LogsDatabaseV2")}; lc=function(){var k=g.hw("yt.networklessRequestController.instance");k||(k=new uc,g.eM("yt.networklessRequestController.instance",k),g.TQ("networkless_logging")&&g.lr().then(function(p){k.GC=p;pwi(k);k.N.resolve();k.fg&&Math.random()<=k.Cg&&k.GC&&YGh(k.GC);g.TQ("networkless_immediately_drop_sw_health_store")&&sYM(k)})); return k}; sYM=function(k){var p;g.Q(function(t){if(!k.GC)throw p=g.TE("clearSWHealthLogsDb"),p;return t.return(Thw(k.GC).catch(function(J){k.handleError(J)}))})}; D8h=function(k,p,t,J){J=J===void 0?!1:J;p=g.TQ("web_fp_via_jspb")?Object.assign({},p):p;g.TQ("use_cfr_monitor")&&LGu(k,p);if(g.TQ("use_request_time_ms_header"))p.headers&&oY(k)&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.V9)())));else{var q;if((q=p.postParams)==null?0:q.requestTimeMs)p.postParams.requestTimeMs=Math.round((0,g.V9)())}t&&Object.keys(p).length===0?g.Xs(k):p.compress?p.postBody?(typeof p.postBody!=="string"&&(p.postBody=JSON.stringify(p.postBody)),c3(k,p.postBody, p,g.mG,J)):c3(k,JSON.stringify(p.postParams),p,VI,J):g.mG(k,p)}; jh=function(k,p){g.TQ("use_event_time_ms_header")&&oY(k)&&(p.headers||(p.headers={}),p.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.V9)())));return p}; LGu=function(k,p){var t=p.onError?p.onError:function(){}; p.onError=function(q,F){hy().requestComplete(k,!1);t(q,F)}; var J=p.onSuccess?p.onSuccess:function(){}; p.onSuccess=function(q,F){hy().requestComplete(k,!0);J(q,F)}}; g.Ow=function(k){this.config_=null;k?this.config_=k:Wxe()&&(this.config_=g.Fs())}; g.Kw=function(k,p,t,J){function q(f){try{if((f===void 0?0:f)&&J.retry&&!J.networklessOptions.bypassNetworkless)F.method="POST",J.networklessOptions.writeThenSend?lc().writeThenSend(U,F):lc().sendAndWrite(U,F);else if(J.compress){var b=!J.networklessOptions.writeThenSend;if(F.postBody){var N=F.postBody;typeof N!=="string"&&(N=JSON.stringify(F.postBody));c3(U,N,F,g.mG,b)}else c3(U,JSON.stringify(F.postParams),F,VI,b)}else g.TQ("web_all_payloads_via_jspb")?g.mG(U,F):VI(U,F)}catch(y){if(y.name==="InvalidAccessError")OB(Error("An extension is blocking network request.")); else throw y;}} !g.M9("VISITOR_DATA")&&p!=="visitor_id"&&Math.random()<.01&&OB(new g.hm("Missing VISITOR_DATA when sending innertube request.",p,t,J));if(!k.isReady())throw k=new g.hm("innertube xhrclient not ready",p,t,J),g.lw(k),k;var F={headers:J.headers||{},method:"POST",postParams:t,postBody:J.postBody,postBodyFormat:J.postBodyFormat||"JSON",onTimeout:function(){J.onTimeout()}, onFetchTimeout:J.onTimeout,onSuccess:function(f,b){if(J.onSuccess)J.onSuccess(b)}, onFetchSuccess:function(f){if(J.onSuccess)J.onSuccess(f)}, onError:function(f,b){if(J.onError)J.onError(b)}, onFetchError:function(f){if(J.onError)J.onError(f)}, timeout:J.timeout,withCredentials:!0,compress:J.compress};F.headers["Content-Type"]||(F.headers["Content-Type"]="application/json");t="";var d=k.config_.H8;d&&(t=d);d=k.config_.d8||!1;var S=Pwq(d,t,J);Object.assign(F.headers,S);F.headers.Authorization&&!t&&d&&(F.headers["x-origin"]=window.location.origin);var U=te(""+t+("/youtubei/"+k.config_.innertubeApiVersion+"/"+p),{alt:"json"});g.hw("ytNetworklessLoggingInitializationOptions")&&vXi.isNwlInitialized?K6e().then(function(f){q(f)}):q(!1)}; g.tn=function(k,p,t){var J=g.H3();if(J&&p){var q=J.subscribe(k,function(){function F(){xZ[q]&&p.apply&&typeof p.apply=="function"&&p.apply(t||window,d)} var d=arguments;try{g.k5[k]?F():g.fY(F,0)}catch(S){g.lw(S)}},t); xZ[q]=!0;p0[k]||(p0[k]=[]);p0[k].push(q);return q}return 0}; ceL=function(k){var p=g.tn("LOGGED_IN",function(t){k.apply(void 0,arguments);g.Jn(p)})}; g.Jn=function(k){var p=g.H3();p&&(typeof k==="number"?k=[k]:typeof k==="string"&&(k=[parseInt(k,10)]),g.y1(k,function(t){p.unsubscribeByKey(t);delete xZ[t]}))}; g.oN=function(k,p){var t=g.H3();return t?t.publish.apply(t,arguments):!1}; wwj=function(k){var p=g.H3();if(p)if(p.clear(k),k)nXi(k);else for(var t in p0)nXi(t)}; g.H3=function(){return g.B9.ytPubsubPubsubInstance}; nXi=function(k){p0[k]&&(k=p0[k],g.y1(k,function(p){xZ[p]&&delete xZ[p]}),k.length=0)}; g.q1=function(k,p,t){iY9(k,p,t===void 0?null:t)}; iY9=function(k,p,t){t=t===void 0?null:t;var J=QY6(k),q=document.getElementById(J),F=q&&g_e(q),d=q&&!F;F?p&&p():(p&&(F=g.tn(J,p),p=""+g.O0(p),P6j[p]=F),d||(q=GQL(k,J,function(){g_e(q)||(MFq(q),g.oN(J),g.fY(function(){wwj(J)},0))},t)))}; GQL=function(k,p,t,J){J=J===void 0?null:J;var q=g.kW("SCRIPT");q.id=p;q.onload=function(){t&&setTimeout(t,0)}; q.onreadystatechange=function(){switch(q.readyState){case "loaded":case "complete":q.onload()}}; J&&q.setAttribute("nonce",J);g.a_(q,g.Aq(k));k=document.getElementsByTagName("head")[0]||document.body;k.insertBefore(q,k.firstChild);return q}; QY6=function(k){var p=document.createElement("a");g.PH(p,k);k=p.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+kY(k)}; FB=function(k,p){if(k===p)k=!0;else if(Array.isArray(k)&&Array.isArray(p))k=g.U$(k,p,FB);else if(g.lq(k)&&g.lq(p))a:if(g.DV(k).length!=g.DV(p).length)k=!1;else{for(var t in k)if(!FB(k[t],p[t])){k=!1;break a}k=!0}else k=!1;return k}; E3=function(k){var p=g.nS.apply(1,arguments);if(!$5(k)||p.some(function(J){return!$5(J)}))throw Error("Only objects may be merged."); p=g.Z(p);for(var t=p.next();!t.done;t=p.next())dO(k,t.value)}; dO=function(k,p){for(var t in p)if($5(p[t])){if(t in k&&!$5(k[t]))throw Error("Cannot merge an object into a non-object.");t in k||(k[t]={});dO(k[t],p[t])}else if(SW(p[t])){if(t in k&&!SW(k[t]))throw Error("Cannot merge an array into a non-array.");t in k||(k[t]=[]);ITS(k[t],p[t])}else k[t]=p[t];return k}; ITS=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next())t=t.value,$5(t)?k.push(dO({},t)):SW(t)?k.push(ITS([],t)):k.push(t);return k}; $5=function(k){return typeof k==="object"&&!Array.isArray(k)}; SW=function(k){return typeof k==="object"&&Array.isArray(k)}; yP=function(k){g.R.call(this);this.Y=k}; Y5=function(k){yP.call(this,!0);this.T=k}; XwM=function(k,p){g.R.call(this);var t=this;this.N=[];this.Z=!1;this.Y=0;this.X=this.S=this.C=!1;this.gy=null;var J=(0,g.H9)(k,p);this.T=new g.jF(function(){return J(t.gy)},300); g.z(this,this.T);this.L=this.B=Infinity}; Raj=function(k,p){if(!p)return!1;for(var t=0;t<p.length;t++){var J=p.item(t);if(J&&k.N.includes(J.identifier))return!0}return!1}; rO=function(k){if(window.crypto&&window.crypto.getRandomValues)try{var p=Array(k),t=new Uint8Array(k);window.crypto.getRandomValues(t);for(var J=0;J<p.length;J++)p[J]=t[J];return p}catch(F){}p=Array(k);for(t=0;t<k;t++){J=Date.now();for(var q=0;q<J%23;q++)p[t]=Math.random();p[t]=Math.floor(Math.random()*256)}if(Tv)for(t=1,J=0;J<Tv.length;J++)p[t%k]^=p[(t-1)%k]/4^Tv.charCodeAt(J),t++;return p}; g.Zi=function(k){k=rO(k);for(var p=[],t=0;t<k.length;t++)p.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(k[t]&63));return p.join("")}; g.Bhe=function(){return g.DR(rO(16),function(k){return(k&15).toString(16)}).join("")}; zaw=function(){var k={};var p=k.vWr===void 0?!1:k.vWr;k=k.ZG===void 0?!0:k.ZG;if(g.hw("_lact",window)==null){var t=parseInt(g.M9("LACT"),10);t=isFinite(t)?Date.now()-Math.max(t,0):-1;g.eM("_lact",t,window);g.eM("_fact",t,window);t==-1&&C0();g.ru(document,"keydown",C0);g.ru(document,"keyup",C0);g.ru(document,"mousedown",C0);g.ru(document,"mouseup",C0);p?g.ru(window,"touchmove",function(){An("touchmove",200)},{passive:!0}):(g.ru(window,"resize",function(){An("resize",200)}),k&&g.ru(window,"scroll", function(){An("scroll",200)})); new mJ(function(){An("mouse",100)}); g.ru(document,"touchstart",C0,{passive:!0});g.ru(document,"touchend",C0,{passive:!0})}}; An=function(k,p){mY[k]||(mY[k]=!0,g.B8.Hj(function(){C0();mY[k]=!1},p))}; C0=function(){g.hw("_lact",window)==null&&(zaw(),g.hw("_lact",window));var k=Date.now();g.eM("_lact",k,window);g.hw("_fact",window)==-1&&g.eM("_fact",k,window);(k=g.hw("ytglobal.ytUtilActivityCallback_"))&&k()}; VP=function(){var k=g.hw("_lact",window);return k==null?-1:Math.max(Date.now()-k,0)}; WS=function(k){this.name=k}; Di=function(k){this.key=k}; eaM=function(){var k=this;this.T=new Map;this.N=new Map;this.Y=new Map;this.u3={IXr:function(){return new Map(k.T)}}}; s3=function(k,p){k.T.set(p.ML,p);var t=k.N.get(p.ML);if(t)try{t.RX(k.resolve(p.ML))}catch(J){t.Ww(J)}}; vS=function(k,p,t,J){J=J===void 0?!1:J;if(t.indexOf(p)>-1)throw Error("Deps cycle for: "+p);if(k.Y.has(p))return k.Y.get(p);if(!k.T.has(p)){if(J)return;throw Error("No provider for: "+p);}J=k.T.get(p);t.push(p);if(J.Sg!==void 0)var q=J.Sg;else if(J.Lcp)q=J[L0]?ha0(k,J[L0],t):[],q=J.Lcp.apply(J,g.m(q));else if(J.qr){q=J.qr;var F=q[L0]?ha0(k,q[L0],t):[];q=new (Function.prototype.bind.apply(q,[null].concat(g.m(F))))}else throw Error("Could not resolve providers for: "+p);t.pop();J.fg0||k.Y.set(p,q); return q}; ha0=function(k,p,t){return p?p.map(function(J){return J instanceof Di?vS(k,J.key,t,!0):vS(k,J,t)}):[]}; n0=function(){cS||(cS=new eaM);return cS}; i7=function(){var k,p;return"h5vcc"in wO&&((k=wO.h5vcc.traceEvent)==null?0:k.traceBegin)&&((p=wO.h5vcc.traceEvent)==null?0:p.traceEnd)?1:"performance"in wO&&wO.performance.mark&&wO.performance.measure?2:0}; QP=function(k){var p=i7();switch(p){case 1:wO.h5vcc.traceEvent.traceBegin("YTLR",k);break;case 2:wO.performance.mark(k+"-start");break;case 0:break;default:Ft(p,"unknown trace type")}}; aTh=function(k){var p=i7();switch(p){case 1:wO.h5vcc.traceEvent.traceEnd("YTLR",k);break;case 2:p=k+"-start";var t=k+"-end";wO.performance.mark(t);wO.performance.measure(k,p,t);break;case 0:break;default:Ft(p,"unknown trace type")}}; MN_=function(k){var p,t;(t=(p=window).onerror)==null||t.call(p,k.message,"",0,0,k)}; gXM=function(k){var p=this;var t=t===void 0?0:t;var J=J===void 0?g.OA():J;this.N=t;this.scheduler=J;this.Y=new g.yM;this.T=k;for(k={Ul:0};k.Ul<this.T.length;k={j8:void 0,Ul:k.Ul},k.Ul++)k.j8=this.T[k.Ul],t=function(q){return function(){q.j8.jX();p.T[q.Ul].X0=!0;p.T.every(function(F){return F.X0===!0})&&p.Y.resolve()}}(k),J=uk(t,PS(this,k.j8)),this.T[k.Ul]=Object.assign({},k.j8,{jX:t, jobId:J})}; ud9=function(k){var p=Array.from(k.T.keys()).sort(function(J,q){return PS(k,k.T[q])-PS(k,k.T[J])}); p=g.Z(p);for(var t=p.next();!t.done;t=p.next())t=k.T[t.value],t.jobId===void 0||t.X0||(k.scheduler.KU(t.jobId),uk(t.jX,10))}; PS=function(k,p){var t;return(t=p.priority)!=null?t:k.N}; IN=function(k){this.state=k;this.plugins=[];this.N=void 0;this.C={};Gv&&QP(this.state)}; lTi=function(k,p){var t=p.filter(function(q){return XB(k,q)===10}),J=p.filter(function(q){return XB(k,q)!==10}); return k.C.R2y?function(){var q=g.nS.apply(0,arguments);return g.Q(function(F){if(F.T==1)return g.n(F,k.MhY.apply(k,[t].concat(g.m(q))),2);k.EW.apply(k,[J].concat(g.m(q)));g.CS(F)})}:function(){var q=g.nS.apply(0,arguments); k.O$O.apply(k,[t].concat(g.m(q)));k.EW.apply(k,[J].concat(g.m(q)))}}; XB=function(k,p){var t,J;return(J=(t=k.N)!=null?t:p.priority)!=null?J:0}; RN=function(k){Gv&&k&&QP(k)}; BS=function(k){Gv&&k&&aTh(k)}; OYi=function(k,p,t){jYu&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+k.constructor.name+"] '"+k.state+"' to '"+p+"'"),console.log("with message: ",t),console.groupEnd())}; zv=function(k){if(g.TQ("web_lifecycle_error_handling_killswitch"))return k();try{return k()}catch(p){MN_(p)}}; eW=function(k){IN.call(this,k===void 0?"none":k);this.T=null;this.N=10;this.transitions=[{from:"none",KF:"application_navigating",action:this.X},{from:"application_navigating",KF:"none",action:this.S},{from:"application_navigating",KF:"application_navigating",action:function(){}}, {from:"none",KF:"none",action:function(){}}]}; KGS=function(){hn||(hn=new eW);return hn}; aN=function(){var k=this;this.store={};this.T=0;this.Y={};this.u3={MYh:function(){return k.T}}}; u7=function(k,p){var t=M1(p);if(k.Y[t])return k.Y[t];var J=Object.keys(k.store)||[];if(J.length<=1&&M1(p)===J[0])return J;for(var q=[],F=0;F<J.length;F++){var d=J[F].split("/");if(gO(p.auth,d[0])){var S=p.isJspb;gO(S===void 0?"undefined":S?"true":"false",d[1])&&gO(p.cttAuthInfo,d[2])&&(S=p.tier,S=S===void 0?"undefined":JSON.stringify(S),gO(S,d[3])&&q.push(J[F]))}}return k.Y[t]=q}; gO=function(k,p){return k===void 0||k==="undefined"?!0:k===p}; M1=function(k){return[k.auth===void 0?"undefined":k.auth,k.isJspb===void 0?"undefined":k.isJspb,k.cttAuthInfo===void 0?"undefined":k.cttAuthInfo,k.tier===void 0?"undefined":k.tier].join("/")}; l7=function(){this.C=this.T=this.Y=0;this.N=!1}; jW=function(){var k=g.hw("yt.logging.ims");k||(k=new aN,g.eM("yt.logging.ims",k));return k}; k20=function(){if(hKT()&&!HYq){var k=function(t){t=t.data;if(t.op==="serializedGelBatch"){var J=O3.get(t.key);J&&(x8i(t.serializedBatch,J.client,J.resolve,J.networklessOptions,J.isIsolated,J.useVSSEndpoint,J.dangerousLogToVisitorSession,J.requestsOutstanding),O3.delete(t.key))}},p=Vr(); p&&(p.addEventListener("message",k),p.onerror=function(){O3.clear()}); HYq=!0}}; FJ0=function(k,p){if(k.endpoint==="log_event"){K0(k);var t=HS(k),J=pze(k.payload)||"",q=tqS(J),F=200;if(q){if(q.enabled===!1&&!g.TQ("web_payload_policy_disabled_killswitch"))return;F=Jmq(q.tier);if(F===400){o9i(k,p);return}}x5[t]=!0;t={cttAuthInfo:t,isJspb:!1,tier:F};jW().storePayload(t,k.payload);qAS(p,!1,t,kK(J))}}; dIq=function(k,p,t){if(p.endpoint==="log_event"){K0(void 0,p);var J=HS(p,!0),q=tqS(k),F=200;if(q){if(q.enabled===!1&&!g.TQ("web_payload_policy_disabled_killswitch"))return;F=Jmq(q.tier);if(F===400){$I6(k,p,t);return}}x5[J]=!0;J={cttAuthInfo:J,isJspb:!0,tier:F};jW().storePayload(J,n8(p.payload));qAS(t,!0,J,kK(k))}}; qAS=function(k,p,t,J){function q(){pV({writeThenSend:!0},p,t.tier)} p=p===void 0?!1:p;J=J===void 0?!1:J;k&&(tz=new k);k=g.rh("tvhtml5_logging_max_batch_ads_fork")||g.rh("tvhtml5_logging_max_batch")||g.rh("web_logging_max_batch")||100;var F=(0,g.V9)(),d=Jz(p,t.tier),S=d.C;J&&(d.N=!0);J=0;t&&(J=jW().getSequenceCount(t));J>=1E3?q():J>=k?ol||(ol=qZ(function(){q();ol=void 0},0)):F-S>=10&&(E9L(p,t.tier),d.C=F)}; o9i=function(k,p){if(k.endpoint==="log_event"){g.TQ("more_accurate_gel_parser")&&jW().storePayload({isJspb:!1},k.payload);K0(k);var t=HS(k),J=new Map;J.set(t,[k.payload]);var q=pze(k.payload)||"";p&&(tz=new p);return new g.yu(function(F,d){tz&&tz.isReady()?SAu(J,tz,F,d,{bypassNetworkless:!0},!0,kK(q)):F()})}}; $I6=function(k,p,t){if(p.endpoint==="log_event"){K0(void 0,p);var J=HS(p,!0),q=new Map;q.set(J,[n8(p.payload)]);t&&(tz=new t);return new g.yu(function(F){tz&&tz.isReady()?UI9(q,tz,F,{bypassNetworkless:!0},!0,kK(k)):F()})}}; HS=function(k,p){var t="";if(k.dangerousLogToVisitorSession)t="visitorOnlyApprovedKey";else if(k.cttAuthInfo){if(p===void 0?0:p){p=k.cttAuthInfo.token;t=k.cttAuthInfo;var J=new e5;t.videoId?J.setVideoId(t.videoId):t.playlistId&&pX(J,2,F_,Vy(t.playlistId));$K[p]=J}else p=k.cttAuthInfo,t={},p.videoId?t.videoId=p.videoId:p.playlistId&&(t.playlistId=p.playlistId),dt[k.cttAuthInfo.token]=t;t=k.cttAuthInfo.token}return t}; pV=function(k,p,t){k=k===void 0?{}:k;p=p===void 0?!1:p;new g.yu(function(J,q){var F=Jz(p,t),d=F.N;F.N=!1;EN(F.Y);EN(F.T);F.T=0;tz&&tz.isReady()?t===void 0&&g.TQ("enable_web_tiered_gel")?ffM(J,q,k,p,300,d):ffM(J,q,k,p,t,d):(E9L(p,t),J())})}; ffM=function(k,p,t,J,q,F){var d=tz;t=t===void 0?{}:t;J=J===void 0?!1:J;q=q===void 0?200:q;F=F===void 0?!1:F;var S=new Map,U=new Map,f={isJspb:J,cttAuthInfo:void 0,tier:q},b={isJspb:J,cttAuthInfo:void 0};if(J){p=g.Z(Object.keys(x5));for(q=p.next();!q.done;q=p.next())q=q.value,U=g.TQ("enable_web_tiered_gel")?jW().smartExtractMatchingEntries({keys:[f,b],sizeLimit:1E3}):jW().extractMatchingEntries({isJspb:!0,cttAuthInfo:q}),U.length>0&&S.set(q,U),(g.TQ("web_fp_via_jspb_and_json")&&t.writeThenSend||!g.TQ("web_fp_via_jspb_and_json"))&& delete x5[q];UI9(S,d,k,t,!1,F)}else{S=g.Z(Object.keys(x5));for(f=S.next();!f.done;f=S.next())f=f.value,b=g.TQ("enable_web_tiered_gel")?jW().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:f,tier:q},{isJspb:!1,cttAuthInfo:f}],sizeLimit:1E3}):jW().extractMatchingEntries({isJspb:!1,cttAuthInfo:f}),b.length>0&&U.set(f,b),(g.TQ("web_fp_via_jspb_and_json")&&t.writeThenSend||!g.TQ("web_fp_via_jspb_and_json"))&&delete x5[f];SAu(U,d,k,p,t,!1,F)}}; E9L=function(k,p){function t(){pV({writeThenSend:!0},k,p)} k=k===void 0?!1:k;p=p===void 0?200:p;var J=Jz(k,p),q=J===bGi||J===Nui?5E3:ym_;g.TQ("web_gel_timeout_cap")&&!J.T&&(q=qZ(function(){t()},q),J.T=q); EN(J.Y);q=g.M9("LOGGING_BATCH_TIMEOUT",g.rh("web_gel_debounce_ms",1E4));g.TQ("shorten_initial_gel_batch_timeout")&&S3&&(q=YAu);q=qZ(function(){g.rh("gel_min_batch_size")>0?jW().getSequenceCount({cttAuthInfo:void 0,isJspb:k,tier:p})>=Tuu&&t():t()},q); J.Y=q}; SAu=function(k,p,t,J,q,F,d){q=q===void 0?{}:q;var S=Math.round((0,g.V9)()),U=k.size,f=rm6(d);k=g.Z(k);var b=k.next();for(d={};!b.done;d={Uf:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,JA:void 0,q9:void 0},b=k.next()){var N=g.Z(b.value);b=N.next().value;N=N.next().value;d.batchRequest=g.Qx({context:g.$Z(p.config_||g.Fs())});if(!g.uq(N)&&!g.TQ("throw_err_when_logevent_malformed_killswitch")){J();break}d.batchRequest.events=N;(N=dt[b])&&ZG9(d.batchRequest,b,N);delete dt[b];d.dangerousLogToVisitorSession= b==="visitorOnlyApprovedKey";Ckq(d.batchRequest,S,d.dangerousLogToVisitorSession);AmS(q);d.JA=function(y){g.TQ("start_client_gcf")&&g.B8.Hj(function(){return g.Q(function(Y){return g.n(Y,mIL(y),0)})}); U--;U||t()}; d.Uf=0;d.q9=function(y){return function(){y.Uf++;if(q.bypassNetworkless&&y.Uf===1)try{g.Kw(p,f,y.batchRequest,UN({writeThenSend:!0},y.dangerousLogToVisitorSession,y.JA,y.q9,F)),S3=!1}catch(Y){g.lw(Y),J()}U--;U||t()}}(d); try{g.Kw(p,f,d.batchRequest,UN(q,d.dangerousLogToVisitorSession,d.JA,d.q9,F)),S3=!1}catch(y){g.lw(y),J()}}}; UI9=function(k,p,t,J,q,F){J=J===void 0?{}:J;var d=Math.round((0,g.V9)()),S={value:k.size},U=new Map([].concat(g.m(k)));U=g.Z(U);for(var f=U.next();!f.done;f=U.next()){var b=g.Z(f.value).next().value,N=k.get(b);f=new KyT;var y=p.config_||g.Fs(),Y=new Q2,T=new sB;T9(T,1,y.aN);T9(T,2,y.By);ZL(T,16,y.Gx);T9(T,17,y.innertubeContextClientVersion);if(y.eR){var A=y.eR,V=new Wi;A.coldConfigData&&T9(V,1,A.coldConfigData);A.appInstallData&&T9(V,6,A.appInstallData);A.coldHashData&&T9(V,3,A.coldHashData);A.hotHashData&& V.w4(A.hotHashData);dB(T,Wi,62,V)}(A=g.B9.devicePixelRatio)&&A!=1&&zh(T,65,$k(A));A=ZT();A!==""&&T9(T,54,A);A=CY();if(A.length>0){V=new ci;for(var D=0;D<A.length;D++){var v=new LF;T9(v,1,A[D].key);pX(v,2,Vq6,Vy(A[D].value));Ub(V,15,LF,v)}dB(Y,ci,5,V)}D90(y,T);s3S(Y);Lx_(T);vlT(y,T);cqq(T);g.TQ("start_client_gcf")&&nlu(T);g.M9("DELEGATED_SESSION_ID")&&!g.TQ("pageid_as_header_web")&&(y=new iw,T9(y,3,g.M9("DELEGATED_SESSION_ID")));!g.TQ("fill_delegate_context_in_gel_killswitch")&&(A=g.M9("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (V=$B(Y,iw,3)||new iw,y=Y,A=T9(V,18,A),dB(y,iw,3,A));y=T;A=g.Z(Object.entries(xl(g.M9("DEVICE",""))));for(V=A.next();!V.done;V=A.next())D=g.Z(V.value),V=D.next().value,D=D.next().value,V==="cbrand"?T9(y,12,D):V==="cmodel"?T9(y,13,D):V==="cbr"?T9(y,87,D):V==="cbrver"?T9(y,88,D):V==="cos"?T9(y,18,D):V==="cosver"?T9(y,19,D):V==="cplatform"&&ZL(y,42,EE9(D));Y.aP(T);dB(f,Q2,1,Y);if(T=$K[b])a:{if(T.nZ())Y=1;else if(T.getPlaylistId())Y=2;else break a;dB(f,e5,4,T);T=$B(f,Q2,1)||new Q2;y=$B(T,iw,3)||new iw; A=new wD;A.setToken(b);ZL(A,1,Y);Ub(y,12,wD,A);dB(T,iw,3,y)}delete $K[b];b=b==="visitorOnlyApprovedKey";fV()||YB(f,2,d);!b&&(Y=g.M9("EVENT_ID"))&&(T=WJj(),y=new zy,T9(y,1,Y),YB(y,2,T),dB(f,zy,5,y));AmS(J);if(g.TQ("jspb_serialize_with_worker")&&(Y=Vr())&&J.writeThenSend){O3.set(bR,{client:p,resolve:t,networklessOptions:J,isIsolated:q,useVSSEndpoint:F,dangerousLogToVisitorSession:b,requestsOutstanding:S});Y.postMessage({op:"gelBatchToSerialize",batchRequest:n8(f),clientEvents:N,key:bR});bR++;break}if(N){Y= [];for(T=0;T<N.length;T++)try{Y.push(new Bi(N[T]))}catch(w){g.lw(new g.hm("Transport failed to deserialize "+String(N[T])))}N=Y}else N=[];N=g.Z(N);for(Y=N.next();!Y.done;Y=N.next())Ub(f,3,Bi,Y.value);N={startTime:(0,g.V9)(),ticks:{},infos:{}};f=f.zH();N.ticks.geljspc=(0,g.V9)();g.TQ("log_jspb_serialize_latency")&&Cw("gel_jspb_serialize",N,{sampleRate:.1});x8i(f,p,t,J,q,F,b,S)}}; x8i=function(k,p,t,J,q,F,d,S){J=J===void 0?{}:J;S=S===void 0?{value:0}:S;F=rm6(F);J=UN(J,d,function(U){g.TQ("start_client_gcf")&&g.B8.Hj(function(){return g.Q(function(f){return g.n(f,mIL(U),0)})}); S.value--;S.value||t()},function(){S.value--; S.value||t()},q); J.headers["Content-Type"]="application/json+protobuf";J.postBodyFormat="JSPB";J.postBody=k;g.Kw(p,F,"",J);S3=!1}; AmS=function(k){g.TQ("always_send_and_write")&&(k.writeThenSend=!1)}; UN=function(k,p,t,J,q){k={retry:!0,onSuccess:t,onError:J,networklessOptions:k,dangerousLogToVisitorSession:p,MwG:!!q,headers:{},postBodyFormat:"",postBody:"",compress:g.TQ("compress_gel")||g.TQ("compress_gel_lr")};fV()&&(k.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.V9)())));return k}; Ckq=function(k,p,t){fV()||(k.requestTimeMs=String(p));g.TQ("unsplit_gel_payloads_in_logs")&&(k.unsplitGelPayloadsInLogs=!0);!t&&(p=g.M9("EVENT_ID"))&&(t=WJj(),k.serializedClientEventId={serializedEventId:p,clientCounter:String(t)})}; WJj=function(){var k=g.M9("BATCH_CLIENT_COUNTER")||0;k||(k=Math.floor(Math.random()*65535/2));k++;k>65535&&(k=1);a3("BATCH_CLIENT_COUNTER",k);return k}; ZG9=function(k,p,t){if(t.videoId)var J="VIDEO";else if(t.playlistId)J="PLAYLIST";else return;k.credentialTransferTokenTargetId=t;k.context=k.context||{};k.context.user=k.context.user||{};k.context.user.credentialTransferTokens=[{token:p,scope:J}]}; K0=function(k,p){if(!g.hw("yt.logging.transport.enableScrapingForTest")){var t=YX("il_payload_scraping");if((t!==void 0?String(t):"")==="enable_il_payload_scraping")NZ=[],g.eM("yt.logging.transport.enableScrapingForTest",!0),g.eM("yt.logging.transport.scrapedPayloadsForTesting",NZ),g.eM("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.eM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.eM("yt.logging.transport.scrapeClientEvent",!0);else return}t=g.hw("yt.logging.transport.scrapedPayloadsForTesting");var J=g.hw("yt.logging.transport.payloadToScrape");p&&(p=p.payload,(p=g.hw("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(p)())&&t.push(p));p=g.hw("yt.logging.transport.scrapeClientEvent");if(J&&J.length>=1)for(var q=0;q<J.length;q++)if(k&&k.payload[J[q]])if(p)t.push(k.payload);else{var F=void 0;t.push(((F=k)==null?void 0:F.payload)[J[q]])}g.eM("yt.logging.transport.scrapedPayloadsForTesting", t)}; fV=function(){return g.TQ("use_request_time_ms_header")||g.TQ("lr_use_request_time_ms_header")}; qZ=function(k,p){return g.TQ("transport_use_scheduler")===!1?g.fY(k,p):g.TQ("logging_avoid_blocking_during_navigation")||g.TQ("lr_logging_avoid_blocking_during_navigation")?g.lk(0,function(){if(KGS().currentState==="none")k();else{var t={};KGS().install((t.none={callback:k},t))}},p):uk(k,0,p)}; EN=function(k){g.TQ("transport_use_scheduler")?g.B8.KU(k):g.N8(k)}; mIL=function(k){var p,t,J,q,F,d,S,U,f,b;return g.Q(function(N){return N.T==1?(J=(p=k)==null?void 0:(t=p.responseContext)==null?void 0:t.globalConfigGroup,q=g.e(J,DIu),d=(F=J)==null?void 0:F.hotHashData,S=g.e(J,sui),f=(U=J)==null?void 0:U.coldHashData,(b=n0().resolve(new Di(ow)))?d?q?g.n(N,Aqu(b,d,q),2):g.n(N,Aqu(b,d),2):N.oY(2):N.return()):f?S?g.n(N,m9q(b,f,S),0):g.n(N,m9q(b,f),0):N.oY(0)})}; Jz=function(k,p){p=p===void 0?200:p;return k?p===300?bGi:LJ6:p===300?Nui:v9h}; tqS=function(k){if(g.TQ("enable_web_tiered_gel")){k=cmL[k||""];var p,t,J,q=n0().resolve(new Di(ow))==null?void 0:(p=qD())==null?void 0:(t=p.loggingHotConfig)==null?void 0:(J=t.eventLoggingConfig)==null?void 0:J.payloadPolicies;if(q)for(p=0;p<q.length;p++)if(q[p].payloadNumber===k)return q[p]}}; pze=function(k){k=Object.keys(k);k=g.Z(k);for(var p=k.next();!p.done;p=k.next())if(p=p.value,cmL[p])return p}; Jmq=function(k){switch(k){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; kK=function(k){return k==="gelDebuggingEvent"}; rm6=function(k){return(k===void 0?0:k)&&g.TQ("vss_through_gel_video_stats")?"video_stats":"log_event"}; TD=function(k,p,t,J){J=J===void 0?{}:J;var q={},F=Math.round(J.timestamp||(0,g.V9)());q.eventTimeMs=F<Number.MAX_SAFE_INTEGER?F:0;q[k]=p;k=VP();q.context={lastActivityMs:String(J.timestamp||!isFinite(k)?-1:k)};J.sequenceGroup&&!g.TQ("web_gel_sequence_info_killswitch")&&(k=q.context,p=J.sequenceGroup,p={index:n90(p),groupKey:p},k.sequence=p,J.endOfSequence&&delete YK[J.sequenceGroup]);(J.sendIsolatedPayload?o9i:FJ0)({endpoint:"log_event",payload:q,cttAuthInfo:J.cttAuthInfo,dangerousLogToVisitorSession:J.dangerousLogToVisitorSession}, t)}; n90=function(k){YK[k]=k in YK?YK[k]+1:0;return YK[k]}; g.qv=function(k,p,t){t=t===void 0?{}:t;var J=g.Ow;g.M9("ytLoggingEventsDefaultDisabled",!1)&&g.Ow===g.Ow&&(J=null);TD(k,p,J,t)}; rt=function(k){this.T=k}; g.Ze=function(k){return new rt({trackingParams:k})}; iGi=function(k){var p=wzT++;return new rt({veType:k,veCounter:p,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})}; Qui=function(k){return g.M9("client-screen-nonce-store",{})[k===void 0?0:k]}; Pki=function(k,p){p=p===void 0?0:p;var t=g.M9("client-screen-nonce-store");t||(t={},a3("client-screen-nonce-store",t));t[p]=k}; CV=function(k){k=k===void 0?0:k;return k===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+k}; G2u=function(k){return g.M9(CV(k===void 0?0:k))}; g.Az=function(k){return(k=G2u(k===void 0?0:k))?new rt({veType:k,youtubeData:void 0,jspbYoutubeData:void 0}):null}; IfM=function(){var k=g.M9("csn-to-ctt-auth-info");k||(k={},a3("csn-to-ctt-auth-info",k));return k}; Xze=function(){return Object.values(g.M9("client-screen-nonce-store",{})).filter(function(k){return k!==void 0})}; g.mP=function(k){k=Qui(k===void 0?0:k);if(!k&&!g.M9("USE_CSN_FALLBACK",!0))return null;k||(k="UNDEFINED_CSN");return k?k:null}; Bui=function(k){for(var p=g.Z(Object.values(RLS)),t=p.next();!t.done;t=p.next())if(g.mP(t.value)===k)return!0;return!1}; zL9=function(k,p,t){var J=IfM();(t=g.mP(t))&&delete J[t];p&&(J[k]=p)}; Vt=function(k){return IfM()[k]}; hL9=function(k,p,t,J){t=t===void 0?0:t;if(k!==Qui(t)||p!==g.M9(CV(t)))if(zL9(k,J,t),Pki(k,t),a3(CV(t),p),p=function(){setTimeout(function(){k&&g.qv("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:eLe,clientScreenNonce:k})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(p)}catch(q){p()}else p()}; WB=function(k,p){var t=t===void 0?!0:t;var J=g.M9("VALID_SESSION_TEMPDATA_DOMAINS",[]),q=g.Iq(window.location.href);q&&J.push(q);q=g.Iq(k);if(g.Kc(J,q)||!q&&Va(k,"/"))if(J=document.createElement("a"),g.PH(J,k),k=J.href)if(k=Xq(k),k=VOT(k))if(t&&!p.csn&&(p.itct||p.ved)&&(p=Object.assign({csn:g.mP()},p)),F){var F=parseInt(F,10);isFinite(F)&&F>0&&afS(k,p,F)}else afS(k,p)}; afS=function(k,p,t){k=Mq6(k);p=p?g.er(p):"";t=t||5;Hw()&&g.i6(k,p,t)}; Mq6=function(k){for(var p=g.Z(g9w),t=p.next();!t.done;t=p.next())k=gv(k,t.value);return"ST-"+kY(k).toString(36)}; uaM=function(k){if(k.name==="JavaException")return!0;k=k.stack;return k.includes("chrome://")||k.includes("chrome-extension://")||k.includes("moz-extension://")}; lfh=function(){this.Wb=[];this.jn=[]}; sN=function(){if(!De){var k=De=new lfh;k.jn.length=0;k.Wb.length=0;juj(k,OGq)}return De}; juj=function(k,p){p.jn&&k.jn.push.apply(k.jn,p.jn);p.Wb&&k.Wb.push.apply(k.Wb,p.Wb)}; KJq=function(k){function p(){return k.charCodeAt(J++)} var t=k.length,J=0;do{var q=LV(p);if(q===Infinity)break;var F=q>>3;switch(q&7){case 0:q=LV(p);if(F===2)return q;break;case 1:if(F===2)return;J+=8;break;case 2:q=LV(p);if(F===2)return k.substr(J,q);J+=q;break;case 5:if(F===2)return;J+=4;break;default:return}}while(J<t)}; LV=function(k){var p=k(),t=p&127;if(p<128)return t;p=k();t|=(p&127)<<7;if(p<128)return t;p=k();t|=(p&127)<<14;if(p<128)return t;p=k();return p<128?t|(p&127)<<21:Infinity}; HGS=function(k,p,t,J){if(k)if(Array.isArray(k)){var q=J;for(J=0;J<k.length&&!(k[J]&&(q+=vB(J,k[J],p,t),q>500));J++);J=q}else if(typeof k==="object")for(q in k){if(k[q]){var F=q;var d=k[q],S=p,U=t;F=typeof d!=="string"||F!=="clickTrackingParams"&&F!=="trackingParams"?0:(d=KJq(atob(d.replace(/-/g,"+").replace(/_/g,"/"))))?vB(F+".ve",d,S,U):0;J+=F;J+=vB(q,k[q],p,t);if(J>500)break}}else t[p]=cB(k),J+=t[p].length;else t[p]=cB(k),J+=t[p].length;return J}; vB=function(k,p,t,J){t+="."+k;k=cB(p);J[t]=k;return t.length+k.length}; cB=function(k){try{return(typeof k==="string"?k:String(JSON.stringify(k))).substr(0,500)}catch(p){return"unable to serialize "+typeof k+" ("+p.message+")"}}; og=function(k){g.nV(k)}; g.wt=function(k){g.nV(k,"WARNING")}; g.nV=function(k,p){var t=t===void 0?{}:t;t.name=g.M9("INNERTUBE_CONTEXT_CLIENT_NAME",1);t.version=g.M9("INNERTUBE_CONTEXT_CLIENT_VERSION");p=p===void 0?"ERROR":p;var J=!1;p=p===void 0?"ERROR":p;J=J===void 0?!1:J;if(k){k.hasOwnProperty("level")&&k.level&&(p=k.level);if(g.TQ("console_log_js_exceptions")){var q=[];q.push("Name: "+k.name);q.push("Message: "+k.message);k.hasOwnProperty("params")&&q.push("Error Params: "+JSON.stringify(k.params));k.hasOwnProperty("args")&&q.push("Error args: "+JSON.stringify(k.args)); q.push("File name: "+k.fileName);q.push("Stacktrace: "+k.stack);window.console.log(q.join("\n"),k)}if(!(xI9>=5)){q=kEw;var F=c4M(k),d=F.message||"Unknown Error",S=F.name||"UnknownError",U=F.stack||k.Y||"Not available";if(U.startsWith(S+": "+d)){var f=U.split("\n");f.shift();U=f.join("\n")}f=F.lineNumber||"Not available";F=F.fileName||"Not available";var b=0;if(k.hasOwnProperty("args")&&k.args&&k.args.length)for(var N=0;N<k.args.length&&!(b=HGS(k.args[N],"params."+N,t,b),b>=500);N++);else if(k.hasOwnProperty("params")&& k.params){var y=k.params;if(typeof k.params==="object")for(N in y){if(y[N]){var Y="params."+N,T=cB(y[N]);t[Y]=T;b+=Y.length+T.length;if(b>500)break}}else t.params=cB(y)}if(q.length)for(N=0;N<q.length&&!(b=HGS(q[N],"params.context."+N,t,b),b>=500);N++);navigator.vendor&&!t.hasOwnProperty("vendor")&&(t["device.vendor"]=navigator.vendor);t={message:d,name:S,lineNumber:f,fileName:F,stack:U,params:t,sampleWeight:1};q=Number(k.columnNumber);isNaN(q)||(t.lineNumber=t.lineNumber+":"+q);if(k.level==="IGNORED")k= 0;else a:{k=sN();q=g.Z(k.jn);for(d=q.next();!d.done;d=q.next())if(d=d.value,t.message&&t.message.match(d.oW)){k=d.weight;break a}k=g.Z(k.Wb);for(q=k.next();!q.done;q=k.next())if(q=q.value,q.callback(t)){k=q.weight;break a}k=1}t.sampleWeight=k;k=g.Z(p7h);for(q=k.next();!q.done;q=k.next())if(q=q.value,q.oH[t.name])for(S=g.Z(q.oH[t.name]),d=S.next();!d.done;d=S.next())if(N=d.value,d=t.message.match(N.Gh)){t.params["params.error.original"]=d[0];S=N.groups;N={};for(f=0;f<S.length;f++)N[S[f]]=d[f+1],t.params["params.error."+ S[f]]=d[f+1];t.message=q.tL(N);break}t.params||(t.params={});k=sN();t.params["params.errorServiceSignature"]="msg="+k.jn.length+"&cb="+k.Wb.length;t.params["params.serviceWorker"]="false";g.B9.document&&g.B9.document.querySelectorAll&&(t.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new IO(GJ,"sample")).constructor!==IO&&(t.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(t);if(t.sampleWeight!==0&&!tYw.has(t.message)){if(J&& g.TQ("web_enable_error_204"))JO0(p===void 0?"ERROR":p,t);else{p=p===void 0?"ERROR":p;p==="ERROR"?(iR.publish("handleError",t),g.TQ("record_app_crashed_web")&&opM===0&&t.sampleWeight===1&&(opM++,J={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.TQ("report_client_error_with_app_crash_ks")||(J.systemHealth={crashData:{clientError:{logMessage:{message:t.message}}}}),g.qv("appCrashed",J)),qTj++):p==="WARNING"&&iR.publish("handleWarning",t);if(g.TQ("kevlar_gel_error_routing")){J=p;k=void 0;k=k===void 0?{}:k; b:{q=g.Z(FDL);for(d=q.next();!d.done;d=q.next())if(g.RY(d.value.toLowerCase())){q=!0;break b}q=!1}if(q)k=void 0;else{d={stackTrace:t.stack};t.fileName&&(d.filename=t.fileName);q=t.lineNumber&&t.lineNumber.split?t.lineNumber.split(":"):[];q.length!==0&&(q.length!==1||isNaN(Number(q[0]))?q.length!==2||isNaN(Number(q[0]))||isNaN(Number(q[1]))||(d.lineNumber=Number(q[0]),d.columnNumber=Number(q[1])):d.lineNumber=Number(q[0]));q={level:"ERROR_LEVEL_UNKNOWN",message:t.message,errorClassName:t.name,sampleWeight:t.sampleWeight}; J==="ERROR"?q.level="ERROR_LEVEL_ERROR":J==="WARNING"&&(q.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};k.pageUrl=window.location.href;k.kvPairs=[];g.M9("FEXP_EXPERIMENTS")&&(k.experimentIds=g.M9("FEXP_EXPERIMENTS"));S=g.M9("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!gD("web_disable_gel_stp_ecatcher_killswitch")&&S)for(N=g.Z(Object.keys(S)),f=N.next();!f.done;f=N.next())f=f.value,k.kvPairs.push({key:f,value:String(S[f])});if(S=t.params)for(N=g.Z(Object.keys(S)),f=N.next();!f.done;f= N.next())f=f.value,k.kvPairs.push({key:"client."+f,value:String(S[f])});S=g.M9("SERVER_NAME");N=g.M9("SERVER_VERSION");S&&N&&(k.kvPairs.push({key:"server.name",value:S}),k.kvPairs.push({key:"server.version",value:N}));k={errorMetadata:k,stackTrace:d,logMessage:q}}if(k&&(g.qv("clientError",k),J==="ERROR"||g.TQ("errors_flush_gel_always_killswitch")))a:{if(g.TQ("web_fp_via_jspb")){J=!0;J=J===void 0?!1:J;k=$vu;$vu=[];if(k)for(k=g.Z(k),q=k.next();!q.done;q=k.next())q=q.value,J?TD(q.payloadName,q.payload, g.Ow,q.options):g.qv(q.payloadName,q.payload,q.options);pV(void 0,!0);if(!g.TQ("web_fp_via_jspb_and_json"))break a}pV(void 0,!1)}}g.TQ("suppress_error_204_logging")||JO0(p,t)}try{tYw.add(t.message)}catch(A){}xI9++}}}}; JO0=function(k,p){var t=p.params||{};k={urlParams:{a:"logerror",t:"jserror",type:p.name,msg:p.message.substr(0,250),line:p.lineNumber,level:k,"client.name":t.name},postParams:{url:g.M9("PAGE_NAME",window.location.href),file:p.fileName},method:"POST"};t.version&&(k["client.version"]=t.version);if(k.postParams){p.stack&&(k.postParams.stack=p.stack);p=g.Z(Object.keys(t));for(var J=p.next();!J.done;J=p.next())J=J.value,k.postParams["client."+J]=t[J];if(t=g.M9("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(p= g.Z(Object.keys(t)),J=p.next();!J.done;J=p.next())J=J.value,k.postParams[J]=t[J];(t=g.M9("LAVA_VERSION"))&&(k.postParams["lava.version"]=t);t=g.M9("SERVER_NAME");p=g.M9("SERVER_VERSION");t&&p&&(k.postParams["server.name"]=t,k.postParams["server.version"]=p)}g.mG(g.M9("ECATCHER_REPORT_HOST","")+"/error_204",k)}; dv_=function(k){var p=g.nS.apply(1,arguments);k.args||(k.args=[]);k.args.push.apply(k.args,g.m(p))}; GD=function(k){var p=g.e(k,Qt);if(p)return p;if((p=g.e(k,Ep6))&&p.commands)return STT(p.commands);if((p=g.e(k,Uvh))&&p.commands)return STT(p.commands);if((k=g.e(k,f4h))&&k.identifier&&k.command&&(PB||(PB=[]),!PB.includes(k.identifier)))return PB.push(k.identifier),g.e(k.command,Qt)}; STT=function(k){if(k.length!==0){var p=[];k=g.Z(k);for(var t=k.next();!t.done;t=k.next())(t=GD(t.value))&&p.push(t);return{commandExecutorCommand:{commands:p}}}}; g.Il=function(k,p,t){t===void 0?delete k[p.name]:k[p.name]=t}; bzS=function(k){for(var p=0,t=0;t<k.length;t++)p=p*31+k.charCodeAt(t),t<k.length-1&&(p%=0x800000000000);return p%1E5}; X_=function(k){Ew.call(this,1,arguments);this.csn=k}; yO9=function(k,p,t,J,q,F,d,S){var U=N60(),f=new rt({veType:p,youtubeData:F,jspbYoutubeData:void 0});F=Rl({},U);q&&(F.cttAuthInfo=q);q={csn:U,pageVe:f.getAsJson()};g.TQ("expectation_logging")&&S&&S.screenCreatedLoggingExpectations&&(q.screenCreatedLoggingExpectations=S.screenCreatedLoggingExpectations);t&&t.visualElement?(q.implicitGesture={parentCsn:t.clientScreenNonce,gesturedVe:t.visualElement.getAsJson()},d&&(q.implicitGesture.gestureType=d)):t&&g.wt(new g.hm("newScreen() parent element does not have a VE - rootVe", p));J&&(q.cloneCsn=J);k?TD("screenCreated",q,k,F):g.qv("screenCreated",q,F);fw(GyS,new X_(U));BB.clear();zD.clear();e3.clear();return U}; g.al=function(k,p,t,J,q){g.hz(k,p,t,[J],q===void 0?!1:q)}; g.hz=function(k,p,t,J,q){q=q===void 0?!1:q;for(var F=Rl({cttAuthInfo:Vt(p)||void 0},p),d=g.Z(J),S=d.next();!S.done;S=d.next()){S=S.value;var U=S.getAsJson();(g.cQ(U)||!U.trackingParams&&!U.veType)&&g.wt(Error("Child VE logged with no data"));if(g.TQ("no_client_ve_attach_unless_shown")){var f=MZ(S,p);if(U.veType&&!zD.has(f)&&!e3.has(f)&&!q){if(!g.TQ("il_attach_cache_limit")||BB.size<1E3){BB.set(f,[k,p,t,S]);return}g.TQ("il_attach_cache_limit")&&BB.size>1E3&&g.wt(new g.hm("IL Attach cache exceeded limit"))}S= MZ(t,p);BB.has(S)?gt(t,p):e3.set(S,!0)}}J=J.filter(function(b){b.csn!==p?(b.csn=p,b=!0):b=!1;return b}); t={csn:p,parentVe:t.getAsJson(),childVes:g.DR(J,function(b){return b.getAsJson()})}; p==="UNDEFINED_CSN"?uR("visualElementAttached",F,t):k?TD("visualElementAttached",t,k,F):g.qv("visualElementAttached",t,F)}; YTM=function(k,p,t,J,q){lR(t,p);J=Rl({cttAuthInfo:Vt(p)||void 0},p);t={csn:p,ve:t.getAsJson(),eventType:1};q&&(t.clientData=q);p==="UNDEFINED_CSN"?uR("visualElementShown",J,t):k?TD("visualElementShown",t,k,J):g.qv("visualElementShown",t,J)}; T6u=function(k,p,t,J){var q=(J=J===void 0?!1:J)?16:8;J=Rl({cttAuthInfo:Vt(p)||void 0,endOfSequence:J},p);t={csn:p,ve:t.getAsJson(),eventType:q};p==="UNDEFINED_CSN"?uR("visualElementHidden",J,t):k?TD("visualElementHidden",t,k,J):g.qv("visualElementHidden",t,J)}; rOe=function(k,p,t,J,q){j3(k,p,t,void 0,J,q)}; j3=function(k,p,t,J,q){lR(t,p);J=J||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var F=Rl({cttAuthInfo:Vt(p)||void 0},p);t={csn:p,ve:t.getAsJson(),gestureType:J};q&&(t.clientData=q);p==="UNDEFINED_CSN"?uR("visualElementGestured",F,t):k?TD("visualElementGestured",t,k,F):g.qv("visualElementGestured",t,F)}; Zz_=function(){var k=rO(16);for(var p=[],t=0;t<k.length;t++)p.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(k[t]&63));return p.join("")}; uR=function(k,p,t){ON.push({payloadName:k,payload:t,R6h:void 0,options:p});KV||(KV=zKL())}; RK0=function(k){if(ON){for(var p=g.Z(ON),t=p.next();!t.done;t=p.next())t=t.value,t.payload&&(t.payload.csn=k.csn,g.qv(t.payloadName,t.payload,t.options));ON.length=0}KV=0}; MZ=function(k,p){return""+k.getAsJson().veType+k.getAsJson().veCounter+p}; lR=function(k,p){if(g.TQ("no_client_ve_attach_unless_shown")){var t=MZ(k,p);zD.set(t,!0);gt(k,p)}}; gt=function(k,p){k=MZ(k,p);BB.has(k)&&(p=BB.get(k)||[],g.al(p[0],p[1],p[2],p[3],!0),BB.delete(k))}; Rl=function(k,p){g.TQ("log_sequence_info_on_gel_web")&&(k.sequenceGroup=p);return k}; g.HB=function(k,p,t,J){g.j5(YTM)(void 0,k,p,t,J,void 0)}; g.xK=function(k,p){g.j5(function(){g.y1(p,function(t){lR(t,k);var J=Rl({cttAuthInfo:Vt(k)||void 0},k);t={csn:k,ve:t.getAsJson(),eventType:4};k==="UNDEFINED_CSN"?uR("visualElementShown",J,t):g.qv("visualElementShown",t,J)})})()}; g.k3=function(k,p){g.j5(function(){g.y1(p,function(t){T6u(void 0,k,t)})})()}; g.p1=function(k,p,t){g.j5(rOe)(void 0,k,p,t,void 0)}; Jt=function(k,p,t,J,q,F){t=t===void 0?{}:t;this.componentType=k;this.renderer=p===void 0?null:p;this.macros=t;this.layoutId=J;this.interactionLoggingClientData=q;this.T=F;this.id=tt(k)}; tt=function(k){var p=":"+(Xz.getInstance().T++).toString(36);return k+p}; g.o$=function(k){k=k===void 0?!1:k;g.R.call(this);this.eb=new g.Vv(k);g.z(this,this.eb)}; qq=function(){var k="ytp-id-"+CrL.toString();CrL++;return k}; g.FK=function(k){g.R.call(this);this.qW={};this.lm={};this.element=this.createElement(k)}; $3=function(k,p,t,J){if(J.substring(0,2)==="{{")k.lm[J]=[p,t];else return J}; AO6=function(k,p){var t=[];if(!p)return t;p=g.Z(p);for(var J=p.next();!J.done;J=p.next())if(J=J.value,J!=null){var q=J.nodeType;q===1||q===3?t.push(J):J&&typeof J.K==="string"?t.push(k.createElement(J)):J.element?t.push(J.element):typeof J==="string"&&J.indexOf("\n")!==-1?J.split("\n").forEach(function(F,d){d>0&&t.push(g.kW("BR"));t.push(g.pe(F))}):t.push(g.pe(J))}return t}; dP=function(k,p,t,J){if(t==="child"){g.J1(p);var q;J===void 0?q=void 0:q=!Array.isArray(J)||J&&typeof J.K==="string"?[J]:J;t=AO6(k,q);t=g.Z(t);for(k=t.next();!k.done;k=t.next())p.appendChild(k.value)}else t==="style"?g.S4(p,"cssText",J?J:""):J===null||J===void 0?p.removeAttribute(t):(k=J.toString(),t==="href"&&(k=g.cH(g.iC(k))),p.setAttribute(t,k))}; g.M=function(k){g.FK.call(this,k);this.NW=!0;this.X=!1;this.listeners=[]}; g.EY=function(k){g.M.call(this,k);this.IY=new g.o$;g.z(this,this.IY)}; SA=function(k,p,t,J,q,F,d){d=d===void 0?null:d;g.EY.call(this,p);this.api=k;this.macros={};this.componentType=t;this.Z=this.B=null;this.Jp=d;this.layoutId=J;this.interactionLoggingClientData=q;this.VT=F;this.k8=null;this.pn=new Y5(this.element);g.z(this,this.pn);this.pp=this.V(this.element,"click",this.onClick);this.P0=[];this.NO=new XwM(this.onClick,this);g.z(this,this.NO);this.gs=!1;this.Oy=this.gy=null}; UY=function(k,p){k=k===void 0?null:k;p=p===void 0?null:p;if(k==null)return g.wt(Error("Got null or undefined adText object")),"";var t=g.xT(k.text);if(!k.isTemplated)return t;if(p==null)return g.wt(Error("Missing required parameters for a templated message")),t;k=g.Z(Object.entries(p));for(p=k.next();!p.done;p=k.next()){var J=g.Z(p.value);p=J.next().value;J=J.next().value;t=t.replace("{"+p+"}",J)}return t}; mvi=function(k){k=k===void 0?null:k;return k!=null&&(k=k.thumbnail,k!=null&&k.thumbnails!=null&&k.thumbnails.length!=0&&k.thumbnails[0].url!=null)?g.xT(k.thumbnails[0].url):""}; VYq=function(k){k=k===void 0?null:k;return k!=null&&(k=k.thumbnail,k!=null&&k.thumbnails!=null&&k.thumbnails.length!=0&&k.thumbnails[0].width!=null&&k.thumbnails[0].height!=null)?new g.YY(k.thumbnails[0].width||0,k.thumbnails[0].height||0):new g.YY(0,0)}; g.f1=function(k){if(k.simpleText)return k.simpleText;if(k.runs){var p=[];k=g.Z(k.runs);for(var t=k.next();!t.done;t=k.next())t=t.value,t.text&&p.push(t.text);return p.join("")}return""}; g.b3=function(k){if(k.simpleText)return k=document.createTextNode(k.simpleText),k;var p=[];if(k.runs)for(var t=0;t<k.runs.length;t++){var J=k.runs[t];if(J.text){var q=p,F=q.push,d=null;var S=J.text;J.bold&&(d=xY("B",null,d||S));J.italics&&(d=xY("I",null,d||S));J.strikethrough&&(d=xY("STRIKE",null,d||S));J.navigationEndpoint&&J.navigationEndpoint.urlEndpoint&&(J=J.navigationEndpoint.urlEndpoint,d=xY("A",null,d||S),g.PH(d,J.url),J.target=="TARGET_NEW_WINDOW"&&(d.target="_blank"));S=d||xY("SPAN",null, S);F.call(q,S)}}return p.length==1?p[0]:xY("SPAN",null,p)}; g.WDi=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z", fill:"#fff"}}]}}; Nq=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",J:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; g.yF=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{K:"path",J:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; g.Y3=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{K:"path",J:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; Dvw=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{K:"path",J:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{K:"path",J:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; sg0=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{K:"path",sF:!0,J:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; LD9=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{K:"path",sF:!0,J:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; g.Ts=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; vpi=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",J:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; cO0=function(){return{K:"svg",J:{viewBox:"0 0 24 24"},U:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}}; nph=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; w7T=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; izj=function(){return{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{K:"path",J:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",J:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; Qg_=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; Prw=function(){return{K:"svg",J:{viewBox:"0 0 24 24"},U:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}}; rP=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",J:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}}; GEh=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{K:"path",sF:!0,J:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; Zv=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}}; g.C1=function(){return{K:"svg",J:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{K:"path",J:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}}; At=function(){return{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{K:"path",J:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",J:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}}; I4j=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; X7j=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",W:"ytp-svg-fill",J:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; RNL=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}}; mi=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}}; B6e=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; g.VF=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}}; g.WR=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z", fill:"#fff"}}]}}; g.Dv=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 16 16",width:"100%"},U:[{K:"path",J:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}}; zNL=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; sY=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; L1=function(k,p,t){p=p===void 0?!1:p;t=t===void 0?!1:t;if(!k)return null;switch(k.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return t?{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:At();case "CHECK_BOX":return{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.Ts();case "INFO_OUTLINE":return p?{K:"svg",J:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},U:[{K:"path",J:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: izj();case "REMOVE_CIRCLE":return{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return Zv();case "SKIP_NEXT_NEW":return{K:"svg",J:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},U:[{K:"path",J:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return Prw(); case "DISLIKE":return cO0();default:return g.wt(new g.hm("Unexpected icon:",k)),null}}; vR=function(k,p,t,J,q,F,d,S,U){q=q===void 0?[]:q;d=d===void 0?!1:d;U=U===void 0?!1:U;q={K:"button",S6:["ytp-ad-button"].concat(q)};S!=null&&(q.J={tabindex:S});SA.call(this,k,q,F===void 0?"button":F,p,t,J);this.T=this.Y=this.N=null;this.S=d;this.C=U;this.hide()}; eNS=function(k){var p=null;k.T!=null&&(p=[k.T.serviceEndpoint,k.T.navigationEndpoint].filter(function(t){return t!=null}),k.T.command&&(p=p.concat(k.T.command))); return p||[]}; cR=function(){g.R.call(this);var k=this;this.T=new Map;this.Y=JBS(function(p){if(p.target&&(p=k.T.get(p.target))&&p)for(var t=0;t<p.length;t++)g.Xs(p[t])})}; hNS=function(){n1==null&&(n1=new cR);return n1}; wP=function(k,p){if(k.simpleText){a:{k=k.simpleText;if(p&&(p=a4i(k))){p=xY("SPAN",null,p);break a}p=g.pe(k)}return p}var t=[];if(k.runs)for(var J=0;J<k.runs.length;J++){var q=k.runs[J];q.text&&t.push(MY6(q,p))}return t.length==1?t[0]:xY("SPAN",null,t)}; MY6=function(k,p){var t=null,J=k.text;p&&(J=a4i(J)||J);k.bold&&(t=xY("B",null,t||J));k.italics&&(t=xY("I",null,t||J));k.strikethrough&&(t=xY("STRIKE",null,t||J));k.navigationEndpoint&&g.e(k.navigationEndpoint,g.i3)&&(p=g.e(k.navigationEndpoint,g.i3),t=xY("A",null,t||J),g.PH(t,p.url),p.target=="TARGET_NEW_WINDOW"&&(t.target="_blank"),k=k.navigationEndpoint.loggingUrls)&&(k=k.map(function(q){return q.baseUrl}),hNS().register(t,k),g.JB(t,"ytp-ad-has-logging-urls")); return t||xY("SPAN",null,J)}; a4i=function(k){k=k.split(/(?:\r\n|\r|\n)/g);if(k.length>1){for(var p=[k[0]],t=1;t<k.length;t++)p.push(xY("BR")),p.push(k[t]);return p}return null}; QF=function(k,p,t,J,q,F,d,S,U){F=F===void 0?!1:F;d=d===void 0?[]:d;U=U===void 0?!1:U;SA.call(this,k,{K:"span",S6:["ytp-ad-hover-text-button"].concat(d)},S===void 0?"ad-hover-text-button":S,p,t,J);this.button=this.Y=null;this.L=F;this.S=q;this.N=U;this.hide()}; PR=function(k){return k&&k.thumbnails&&(k.thumbnails||null).length!=0&&k.thumbnails[0].url?g.xT(k.thumbnails[0].url):""}; Gs=function(k,p,t,J,q,F){F=F===void 0?!1:F;SA.call(this,k,{K:"img",W:"ytp-ad-image"},"ad-image",p,t,J,q===void 0?null:q);this.T=F;this.hide()}; I$=function(k,p,t,J,q,F){q=q===void 0?[]:q;SA.call(this,k,{K:"div",S6:["ytp-ad-confirm-dialog-background"],U:[{K:"div",W:"ytp-ad-confirm-dialog-container",U:[{K:"div",S6:["ytp-ad-confirm-dialog"].concat(q),J:{role:"dialog",tabindex:"-1"},U:[{K:"div",W:"ytp-ad-confirm-dialog-title",sy:"{{title}}"},{K:"div",W:"ytp-ad-confirm-dialog-messages"},{K:"div",W:"ytp-ad-confirm-dialog-confirm-container",U:[{K:"button",W:"ytp-ad-confirm-dialog-cancel-button",sy:"{{cancelLabel}}"},{K:"button",W:"ytp-ad-confirm-dialog-confirm-button", sy:"{{confirmLabel}}"}]}]}]},{K:"button",S6:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{K:"span",W:"ytp-ad-button-icon",U:[g.Ts()]}]}]},F===void 0?"confirm-dialog":F,p,t,J);this.L=this.Kp("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Kp("ytp-ad-confirm-dialog-cancel-button");this.S=this.Kp("ytp-ad-confirm-dialog-confirm-button");this.Y8=this.Kp("ytp-ad-confirm-dialog-messages");this.N=null;this.T=new VB;g.z(this,this.T);this.Y=null;this.hide()}; gp0=function(k,p){if(p.title){var t=g.f1(p.title);k.updateValue("title",t)}if(p.dialogMessages){t=g.Z(p.dialogMessages);for(var J=t.next();!J.done;J=t.next())J=wP(J.value),k.Y8.appendChild(J)}p.cancelLabel&&(t=g.f1(p.cancelLabel),k.updateValue("cancelLabel",t),k.T.V(k.C,"click",function(q){return k.bl(q)})); p.confirmLabel&&(p=g.f1(p.confirmLabel),k.updateValue("confirmLabel",p),k.T.V(k.S,"click",function(q){return k.Pr(q)})); k.T.V(k.L,"click",function(q){return k.KW(q)})}; XK=function(k,p,t,J,q,F){q=q===void 0?[]:q;F=F===void 0?"toggle-button":F;var d=tt("ytp-ad-toggle-button-input"),S={role:"button","aria-label":"{{tooltipText}}"};k.G().experiments.Gb("fix_h5_toggle_button_a11y")&&(S.tabindex="0");k.G().experiments.Gb("fix_toggle_button_role_for_ad_components")&&(S.role="checkbox");SA.call(this,k,{K:"div",S6:["ytp-ad-toggle-button"].concat(q),U:[{K:"label",W:"ytp-ad-toggle-button-label",J:{"for":d},U:[{K:"span",W:"ytp-ad-toggle-button-icon",J:S,U:[{K:"span",W:"ytp-ad-toggle-button-untoggled-icon", sy:"{{untoggledIconTemplateSpec}}"},{K:"span",W:"ytp-ad-toggle-button-toggled-icon",sy:"{{toggledIconTemplateSpec}}"}]},{K:"input",W:"ytp-ad-toggle-button-input",J:{id:d,type:"checkbox"}},{K:"span",W:"ytp-ad-toggle-button-text",sy:"{{buttonText}}"},{K:"span",W:"ytp-ad-toggle-button-tooltip",sy:"{{tooltipText}}"}]}]},F,p,t,J);this.C=this.Kp("ytp-ad-toggle-button");this.T=this.Kp("ytp-ad-toggle-button-input");this.Y=this.Kp("ytp-ad-toggle-button-icon");this.L=this.Kp("ytp-ad-toggle-button-untoggled-icon"); this.S=this.Kp("ytp-ad-toggle-button-toggled-icon");this.j6=this.Kp("ytp-ad-toggle-button-text");this.N=null;this.Y8=!1;this.hide()}; R$=function(k){k.Y8&&(k.isToggled()?(g.mS(k.L,!1),g.mS(k.S,!0),k.api.G().experiments.Gb("fix_toggle_button_role_for_ad_components")&&k.Y.setAttribute("aria-checked",!0)):(g.mS(k.L,!0),g.mS(k.S,!1),k.api.G().experiments.Gb("fix_toggle_button_role_for_ad_components")&&k.Y.setAttribute("aria-checked",!1)))}; umS=function(k,p){var t=null;k.N&&(t=(p?[k.N.defaultServiceEndpoint,k.N.defaultNavigationEndpoint]:[k.N.toggledServiceEndpoint]).filter(function(J){return J!=null})); return t||[]}; l4i=function(k,p,t){this.actionType=p;this.id=t;this.content=k}; BR=function(k){VB.call(this);this.T=k;this.V(this.T,"onAdUxUpdate",this.S)}; zs=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-feedback-dialog-background",U:[{K:"div",W:"ytp-ad-feedback-dialog-container",U:[{K:"div",W:"ytp-ad-feedback-dialog-form",J:{role:"dialog",tabindex:"-1"},U:[{K:"div",W:"ytp-ad-feedback-dialog-title",U:[{K:"span",sy:"{{title}}"}]},{K:"span",W:"ytp-ad-info-dialog-feedback-options-title",sy:"{{reasonsTitle}}"},{K:"div",W:"ytp-ad-info-dialog-feedback-options"},{K:"div",W:"ytp-ad-feedback-dialog-confirm-container",U:[{K:"button",W:"ytp-ad-feedback-dialog-cancel-button", sy:"{{cancelLabel}}"},{K:"button",W:"ytp-ad-feedback-dialog-confirm-button",sy:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",p,t,J);this.C=[];this.T=null;this.S=this.Kp("ytp-ad-feedback-dialog-cancel-button");this.L=this.Kp("ytp-ad-feedback-dialog-confirm-button");this.Y8=this.Kp("ytp-ad-info-dialog-feedback-options");this.j6=this.Kp("ytp-ad-feedback-dialog-title");this.N=this.Y=null;this.hide()}; Hzw=function(k,p){var t=p.cancelRenderer&&p.cancelRenderer.buttonRenderer||null;t&&(k.T=new vR(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,["ytp-ad-feedback-dialog-close-button"],"button"),g.z(k,k.T),k.T.init(tt("button"),t,k.macros),k.T.listen("click",k.Nq,k),k.T.QT(k.element));p.title&&(t=g.f1(p.title),k.updateValue("title",t));p.reasonsTitle&&(t=g.f1(p.reasonsTitle),k.updateValue("reasonsTitle",t));p.reasons&&jge(k,p.reasons);p.cancelLabel&&(t=g.f1(p.cancelLabel),k.updateValue("cancelLabel", t),g.ru(k.S,"click",function(){return k.Nq()})); p.confirmLabel&&(t=g.f1(p.confirmLabel),k.updateValue("confirmLabel",t),g.ru(k.L,"click",function(){return Ozw(k)})); p.undoRenderer&&KDu(k,p.undoRenderer)}; jge=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){var J=t.value;t=J.reason;if(t==null)g.wt(Error("AdFeedbackReason.reason was not set."));else if(J=J.endpoint,J==null)g.wt(Error("AdFeedbackReason.endpoint was not set."));else{t=new eA(t,J);g.z(k,t);J=k.Y8;var q=t.KE();J.appendChild(q);k.C.push(t)}}}; KDu=function(k,p){if(p=p&&p.buttonRenderer||null)p.serviceEndpoint?(k.Y=new vR(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.z(k,k.Y),k.Y.init(tt("ad-feedback-undo-mute-button"),p,k.macros),k.Y.listen("click",k.K_8,k),k.Y.QT(k.j6)):g.wt(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; Ozw=function(k){var p=k.C.filter(function(t){return t.isChecked()}); p.length!==0&&(p=p[0].getCommand(),k.layoutId?k.VT.executeCommand(p,k.layoutId):g.nV(Error("Missing layoutId for ad feedback dialog.")),k.api.onAdUxClicked("ad-feedback-dialog-confirm-button",k.layoutId),k.publish("a"),k.hide())}; eA=function(k,p){this.Y=p;this.T=new g.EY({K:"label",W:"ytp-ad-feedback-dialog-reason-label",U:[{K:"input",W:"ytp-ad-feedback-dialog-reason-input",J:{type:"radio",name:"feedback-reason-group"}},{K:"span",W:"ytp-ad-feedback-dialog-reason-text",sy:g.f1(k)}]});this.N=this.T.Kp("ytp-ad-feedback-dialog-reason-input")}; ht=function(k,p,t,J){I$.call(this,k,p,t,J,[],"ad-mute-confirm-dialog")}; a$=function(k,p,t,J,q){SA.call(this,k,{K:"div",W:"ytp-ad-info-dialog-background",U:[{K:"div",W:"ytp-ad-info-dialog-container",U:[{K:"div",W:"ytp-ad-info-dialog-form",J:{role:"dialog",tabindex:"-1"},U:[{K:"div",W:"ytp-ad-info-dialog-title",sy:"{{title}}"},{K:"ul",W:"ytp-ad-info-dialog-ad-reasons"},{K:"div",W:"ytp-ad-info-dialog-message"},{K:"div",W:"ytp-ad-info-dialog-mute-container"},{K:"div",W:"ytp-ad-info-dialog-confirm-container",U:[{K:"button",W:"ytp-ad-info-dialog-confirm-button",sy:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",p,t,J);this.T=this.Y=null;this.L=this.Kp("ytp-ad-info-dialog-confirm-button");this.v0=this.Kp("ytp-ad-info-dialog-mute-container");this.W0=this.Kp("ytp-ad-info-dialog-message");this.qO=this.Kp("ytp-ad-info-dialog-ad-reasons");this.C=this.N=null;this.j6=q;this.S=null;this.RY=!1;this.Y8=null;this.hide()}; xvM=function(k,p){if(p=p.content&&p.content.adFeedbackRenderer||null)k.Y=new zs(k.api,k.layoutId,k.interactionLoggingClientData,k.VT),g.z(k,k.Y),k.Y.init(tt("ad-feedback-dialog"),p,k.macros),k.Y.QT(k.j6),k.Y.subscribe("a",function(){return k.publish("c")})}; kp_=function(k,p){if(p=p.content&&p.content.confirmDialogRenderer||null)k.C=new ht(k.api,k.layoutId,k.interactionLoggingClientData,k.VT),g.z(k,k.C),k.C.init(tt("ad-mute-confirm-dialog"),p,k.macros),k.C.QT(k.j6),k.C.subscribe("b",function(){return k.publish("c")})}; p36=function(k){k.T&&k.T.listen("click",k.Id,k);g.ru(k.L,"click",function(){return k.Id()})}; Mq=function(k,p,t,J,q,F,d){QF.call(this,k,p,t,J,F===void 0?!0:F,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",d===void 0?!1:d);this.T=null;this.C=q;this.hide()}; Jy_=function(k,p,t){p=p.dialog&&g.e(p.dialog,th6)||null;p==null?g.nV(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(k.T=new a$(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,k.C),g.z(k,k.T),k.T.init(tt("ad-info-dialog"),p,t),k.T.QT(k.C),k.T.subscribe("d",function(){return k.publish("f")}),k.T.subscribe("c",function(){return k.publish("e")}))}; Ffi=function(k,p,t){k.button==null?g.nV(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(k.Y&&g.JB(k.Y.element,"ytp-ad-info-hover-text-short"),(p=p&&p.serviceEndpoint&&g.e(p.serviceEndpoint,oZe)||null)?(Jy_(k,p,t),k.button.listen("click",function(){k.T&&!k.T.NW&&(k.T.show(),qwS(k))})):k.button.listen("click",function(){return qwS(k)}))}; qwS=function(k){k.api.onAdUxClicked("ad-info-icon-button",k.layoutId)}; gP=function(k,p,t,J,q,F){SA.call(this,k,{K:"div",W:"ytp-ad-text"},F===void 0?"ad-text":F,p,t,J,q===void 0?null:q);this.T=null;this.hide()}; u3=function(k,p){p&&g.$W(k.element,UY(k.T,p))}; l3=function(k,p,t,J,q,F,d){SA.call(this,k,p,t,J,q,F);this.T=d;g.z(this,this.T);this.RY=this.L=-1}; jA=function(k){k.T&&k.L===-1&&(k.L=k.T.subscribe("h",k.pI,k),k.RY=k.T.subscribe("g",k.Yb,k),k.pI())}; OY=function(k){k.T!=null&&k.L!==-1&&(k.T.Jo(k.L),k.T.Jo(k.RY),k.RY=-1,k.L=-1)}; g.K1=function(k,p,t,J,q,F){g.R.call(this);this.element=k;this.state=null;t||k.hide();this.Y=p;this.N=J===void 0?p:J;this.T=F;this.onHidden=q;this.delay=new g.jF(this.lk,0,this);g.z(this,this.delay)}; HR=function(k,p){k=k.element.element;p?k.setAttribute("aria-hidden","true"):k.removeAttribute("aria-hidden")}; x3=function(k,p,t,J,q,F){l3.call(this,k,{K:"div",W:"ytp-ad-preview-slot"},"ad-preview",p,t,J,q);var d=this;this.v0=-1;this.C=this.api.G().experiments.Gb("enable_modern_skip_button_on_web");this.Y=new g.EY({K:"span",W:"ytp-ad-preview-container"});this.C&&this.Y.element.classList.add("ytp-ad-preview-container-detached");g.z(this,this.Y);this.N=this.C?new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-ad-preview-text-modern"):new gP(this.api,this.layoutId,this.interactionLoggingClientData, this.VT,"ytp-ad-preview-text");g.z(this,this.N);this.N.QT(this.Y.element);this.Y8=this.C?new g.EY({K:"span",W:"ytp-ad-preview-image-modern"}):new g.EY({K:"span",W:"ytp-ad-preview-image"});g.z(this,this.Y8);this.S=new Gs(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.S);this.S.QT(this.Y8.element);this.Y8.QT(this.Y.element);this.Y.QT(this.element);this.j6=new g.K1(this.Y,400,!1,100,function(){return d.hide()}); g.z(this,this.j6);this.qO=0;this.W0=!1;this.B0=F;this.hide()}; kM=function(k){k.j6.show(100);k.show()}; pa=function(k,p,t,J,q,F){l3.call(this,k,{K:"div",S6:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{K:"div",W:"ytp-flyout-cta-icon-container"},{K:"div",W:"ytp-flyout-cta-body",U:[{K:"div",W:"ytp-flyout-cta-text-container",U:[{K:"div",W:"ytp-flyout-cta-headline-container"},{K:"div",W:"ytp-flyout-cta-description-container"}]},{K:"div",W:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",p,t,J,q);this.N=new Gs(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-flyout-cta-icon"); g.z(this,this.N);this.N.QT(this.Kp("ytp-flyout-cta-icon-container"));this.N.element.classList.add("ytp-flyout-cta-icon-rounded");this.S=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-flyout-cta-headline");g.z(this,this.S);this.S.QT(this.Kp("ytp-flyout-cta-headline-container"));this.C=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-flyout-cta-description");g.z(this,this.C);this.C.QT(this.Kp("ytp-flyout-cta-description-container"));k=["ytp-flyout-cta-action-button"]; this.api.G().D("web_modern_buttons")&&k.push("ytp-flyout-cta-action-button-rounded");this.Y=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,k);g.z(this,this.Y);this.Y.QT(this.Kp("ytp-flyout-cta-action-button-container"));this.Y.element.setAttribute("tabIndex","-1");eF(this.Y.element);this.Y8=null;this.j6=0;this.qO=F;this.hide()}; t5=function(k,p,t,J,q){SA.call(this,k,{K:"div",W:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",p,t,J,q===void 0?null:q);var F=this;this.T=null;this.N=new XK(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,["ytp-ad-instream-user-sentiment-like-button"]);g.z(this,this.N);this.N.QT(this.element);this.Y=new XK(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,["ytp-ad-instream-user-sentiment-dislike-button"]);g.z(this,this.Y);this.Y.QT(this.element); this.C=new g.K1(this,400,!1,500,function(){return F.hide()}); g.z(this,this.C);this.hide()}; J5=function(k,p,t,J,q,F){q=q===void 0?0:q;F=F===void 0?!1:F;g.R.call(this);this.Y=k;this.N=!1;this.L=J;this.gy=F;this.S=!1;this.T=null;p>0&&(this.T=new g.jF(this.ib,p,this),g.z(this,this.T));this.X=new g.jF(this.ib,t,this);g.z(this,this.X);this.B=hkh(this.Y,q,1,J);g.z(this,this.B);this.Z=hkh(this.Y,0,J,1);g.z(this,this.Z);this.C=new VB;g.z(this,this.C)}; oZ=function(k,p,t){this.Y=k;this.isAsync=p;this.T=t}; $Du=function(k){switch(k){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ft(k,"unknown result type")}}; dDL=function(k,p){var t=1;k.isTrusted===!1&&(t=0);a3("ISDSTAT",t);qO(t,"i.s_",{triggerContext:"sk",metadata:p});return t}; EZi=function(k,p){var t=[];p?p.isTrusted===!0?t.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):p.isTrusted===!1?t.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):t.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):t.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");qO(0,"a.s_",{metadata:k,states:t});a3("ASDSTAT",0)}; qO=function(k,p,t){p=Swe[p];var J,q,F={detected:k===0,source:""+p.Y+((J=t.triggerContext)!=null?J:"")+((q=t.wC)!=null?q:""),detectionStates:t.states,durationMs:t.k7};t.metadata&&(F.contentCpn=t.metadata.contentCpn,F.adCpn=t.metadata.adCpn);g.qv("biscottiBasedDetection",F);p.T!==void 0&&(t=Number(g.M9("CATSTAT",0)),p.T!==void 0?(p=p.T,k=$Du(k),k=t&~(3<<p)|k<<p):k=t,a3("CATSTAT",k))}; FD=function(k){return k?"layout: "+k.layoutType:""}; $M=function(k,p,t){return k?!0:(g.wt(new g.hm("Assertion: "+p,t)),!1)}; d3=function(k,p,t,J,q){J=J===void 0?{}:J;if(!q||Math.random()<5E-4){p=p||null;t=t||null;k=k instanceof Error?k:new g.hm(k);if(k.args)for(var F=g.Z(k.args),d=F.next();!d.done;d=F.next())d=d.value,d instanceof Object&&(J=Object.assign({},d,J));J.category="H5 Ads Control Flow";p&&(J.slot=p?"slot: "+p.slotType:"");t&&(J.layout=FD(t),J.layoutId=t.layoutId);q&&(J.known_error_aggressively_sampled=!0);k.args=[J];g.wt(k)}}; g.Ey=function(k,p){this.state=k;this.oldState=p}; SV=function(k,p){return g.u(k.state,p)&&!g.u(k.oldState,p)?1:!g.u(k.state,p)&&g.u(k.oldState,p)?-1:0}; g.Uy=function(k,p){return SV(k,p)>0}; fa=function(k,p,t,J,q,F){l3.call(this,k,{K:"div",W:"ytp-ad-skip-button-slot"},"skip-button",p,t,J,q);var d=this;this.Y8=null;this.j6=!1;this.W0=F;this.S=this.api.G().experiments.Gb("enable_modern_skip_button_on_web");this.v0=!1;this.N=new g.EY({K:"span",S6:["ytp-ad-skip-button-container"]});this.S&&this.N.element.classList.add("ytp-ad-skip-button-container-detached");this.api.D("enable_ad_pod_index_autohide")&&this.N.element.classList.add("ytp-ad-skip-button-container--clean-player");g.z(this,this.N); this.N.QT(this.element);this.Y=this.C=null;this.B0=new g.K1(this.N,500,!1,100,function(){return d.hide()}); g.z(this,this.B0);this.qO=new J5(this.N.element,15E3,5E3,.5,.5,this.S);g.z(this,this.qO);this.hide()}; f1j=function(k){k=k.Y8&&k.Y8.adRendererCommands;return(k&&k.clickCommand&&g.e(k.clickCommand,g.bS)&&g.e(k.clickCommand,g.bS).commands||[]).some(function(p){return p.adLifecycleCommand?UDh(p.adLifecycleCommand):!1})}; UDh=function(k){return k.action==="END_LINEAR_AD"||k.action==="END_LINEAR_AD_PLACEMENT"}; NO=function(k,p,t,J,q,F){l3.call(this,k,{K:"div",W:"ytp-ad-skip-ad-slot"},"skip-ad",p,t,J,q);this.Y8=F;this.C=!1;this.S=0;this.N=this.Y=null;this.hide()}; bwi=function(k,p){k.C||(k.C=!0,k.Y&&(p?k.Y.j6.hide():k.Y.hide()),p?(k=k.N,k.B0.show(),k.show()):k.N.show())}; yj=function(k,p,t,J){vR.call(this,k,p,t,J,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; YM=function(k,p,t,J,q,F,d){F=F===void 0?!1:F;d=d===void 0?!1:d;SA.call(this,k,{K:"span",W:"ytp-ad-simple-ad-badge"},"simple-ad-badge",p,t,J);this.N=q;this.T=this.Kp("ytp-ad-simple-ad-badge");(this.Y=F)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");d&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; TU=function(k,p,t,J,q){q=q===void 0?!1:q;Jt.call(this,"player-overlay",k,{},p,J);this.videoAdDurationSeconds=t;this.interactionLoggingClientData=J;this.Ke=q}; r3=function(k,p){g.o$.call(this);this.api=k;this.durationMs=p;this.T=null;this.Jj=new VB(this);g.z(this,this.Jj);this.Y=NXe;this.Jj.V(this.api,"presentingplayerstatechange",this.H7);this.T=this.Jj.V(this.api,"onAdPlaybackProgress",this.OF)}; Zy=function(k){g.o$.call(this);this.T=!1;this.PR=0;this.Jj=new VB(this);g.z(this,this.Jj);this.durationMs=k;this.wf=new g.m5(100);g.z(this,this.wf);this.Jj.V(this.wf,"tick",this.OF);this.Y={seekableStart:0,seekableEnd:k/1E3,current:0};this.start()}; g.Ca=function(k,p){var t=Math.abs(Math.floor(k)),J=Math.floor(t/86400),q=Math.floor(t%86400/3600),F=Math.floor(t%3600/60);t=Math.floor(t%60);if(p){p="";J>0&&(p+=" "+J+" Days");if(J>0||q>0)p+=" "+q+" Hours";p+=" "+F+" Minutes";p+=" "+t+" Seconds";J=p.trim()}else{p="";J>0&&(p+=J+":",q<10&&(p+="0"));if(J>0||q>0)p+=q+":",F<10&&(p+="0");p+=F+":";t<10&&(p+="0");J=p+t}return k>=0?J:"-"+J}; g.A5=function(k){return(!("button"in k)||typeof k.button!=="number"||k.button===0)&&!("shiftKey"in k&&k.shiftKey)&&!("altKey"in k&&k.altKey)&&!("metaKey"in k&&k.metaKey)&&!("ctrlKey"in k&&k.ctrlKey)}; mM=function(k,p,t,J,q,F,d){l3.call(this,k,{K:"span",W:d?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",p,t,J,q);this.videoAdDurationSeconds=F;this.Y=null;this.api.D("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");d&&this.api.G().Y&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.D("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), hO&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; Vj=function(k,p,t,J){gP.call(this,k,p,t,J,"ytp-video-ad-top-bar-title","ad-title");k.D("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; WA=function(k){this.content=k.content;if(k.commandRuns){k=g.Z(k.commandRuns);for(var p=k.next();!p.done;p=k.next())p=p.value,this.loggingDirectives=g.e(p,yyq),p.onTap&&(this.interaction={onTap:p.onTap})}}; Dy=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ad-simple-attributed-string"},"ad-simple-attributed-string",p,t,J);this.hide()}; sy=function(k,p,t,J,q){SA.call(this,k,{K:"span",W:q?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",p,t,J);this.Y=q;this.adBadgeText=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);this.adBadgeText.QT(this.element);g.z(this,this.adBadgeText);q?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.D("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),hO&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; La=function(k,p,t,J,q){SA.call(this,k,{K:"span",W:"ytp-ad-pod-index"},"ad-pod-index",p,t,J);this.Y=q;this.api.G().Y&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.D("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),hO&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; vA=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",p,t,J);this.hide()}; cA=function(k,p){this.Y=k;this.T=p}; na=function(k,p,t){if(!k.getLength())return t!=null?t:Infinity;k=(p-k.Y)/k.getLength();return g.Ek(k,0,1)}; w3=function(k,p,t,J){J=J===void 0?!1:J;g.EY.call(this,{K:"div",W:"ytp-ad-persistent-progress-bar-container",U:[{K:"div",W:"ytp-ad-persistent-progress-bar"}]});this.api=k;this.Y=p;this.N=t;J&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.z(this,this.Y);this.progressBar=this.Kp("ytp-ad-persistent-progress-bar");this.T=-1;this.V(k,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; iS=function(k,p,t,J,q,F){SA.call(this,k,{K:"div",W:"ytp-ad-player-overlay",U:[{K:"div",W:"ytp-ad-player-overlay-flyout-cta"},{K:"div",W:"ytp-ad-player-overlay-instream-info"},{K:"div",W:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",W:"ytp-ad-player-overlay-progress-bar"},{K:"div",W:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",W:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",p,t,J);this.Y8=F;this.S=this.Kp("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.T=this.Kp("ytp-ad-player-overlay-instream-info");this.C=null;Yw_(this)&&(k=xY("div"),g.JB(k,"ytp-ad-player-overlay-top-bar-gradients"),this.api.D("disable_ad_preview_for_instream_ads")&&g.JB(k,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),p=this.T,p.parentNode&&p.parentNode.insertBefore(k,p),(p=this.api.getVideoData(2))&&p.isListed&&p.title&&(t=new Vj(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),t.QT(k),t.init(tt("ad-title"),{text:p.title},this.macros),g.z(this, t)),this.C=k);this.N=null;this.L=this.Kp("ytp-ad-player-overlay-skip-or-preview");this.RY=this.Kp("ytp-ad-player-overlay-progress-bar");this.qO=this.Kp("ytp-ad-player-overlay-instream-user-sentiment");this.j6=this.Kp("ytp-ad-player-overlay-ad-disclosure-banner");this.Y=q;g.z(this,this.Y);this.hide()}; Yw_=function(k){k=k.api.G();return g.Qj(k)&&k.Y}; PA=function(k,p,t){var J={};p&&(J.v=p);t&&(J.list=t);k={name:k,locale:void 0,feature:void 0};for(var q in J)k[q]=J[q];J=g.hM("/sharing_services",k);g.Xs(J)}; g.GU=function(k){k&=16777215;var p=[(k&16711680)>>16,(k&65280)>>8,k&255];k=p[0];var t=p[1];p=p[2];k=Number(k);t=Number(t);p=Number(p);if(k!=(k&255)||t!=(t&255)||p!=(p&255))throw Error('"('+k+","+t+","+p+'") is not a valid RGB color');t=k<<16|t<<8|p;return k<16?"#"+(16777216|t).toString(16).slice(1):"#"+t.toString(16)}; IZ=function(k){this.T=new si(k)}; TX6=function(){var k=!1;try{k=!!window.sessionStorage.getItem("session_logininfo")}catch(p){k=!0}return(g.M9("INNERTUBE_CLIENT_NAME")==="WEB"||g.M9("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&k}; XD=function(k){if(g.M9("LOGGED_IN",!0)&&TX6()){var p=g.M9("VALID_SESSION_TEMPDATA_DOMAINS",[]);var t=g.Iq(window.location.href);t&&p.push(t);t=g.Iq(k);g.Kc(p,t)||!t&&Va(k,"/")?(p=Xq(k),(p=VOT(p))?(p=Mq6(p),p=(p=g.QI(p)||null)?xl(p):{}):p=null):p=null;p==null&&(p={});t=p;var J=void 0;TX6()?(J||(J=g.M9("LOGIN_INFO")),J?(t.session_logininfo=J,t=!0):t=!1):t=!1;t&&WB(k,p)}}; g.ryi=function(k){var p=p===void 0?{}:p;var t=t===void 0?"":t;var J=J===void 0?window:J;k=g.hM(k,p);XD(k);t=g.iC(k+t);J=J.location;t=QY(t);t!==void 0&&(J.href=t)}; g.RZ=function(k,p,t){p=p===void 0?{}:p;t=t===void 0?!1:t;var J=g.M9("EVENT_ID");J&&(p.ei||(p.ei=J));p&&WB(k,p);t||(XD(k),g.ryi(k))}; g.BA=function(k,p,t,J,q){q=q===void 0?!1:q;t&&WB(k,t);t=g.iC(k);var F=g.cH(t);k!=F&&OB(Error("Unsafe window.open URL: "+k));k=F;p=p||kY(k).toString(36);try{if(q){q=k;q=AeS(q);XD(q);g.R_(window,q,p,"attributionsrc");return}}catch(d){g.lw(d)}XD(k);g.R_(window,t,p,J)}; ZwL=function(k){zU=k}; Cce=function(k){eV=k}; Ay9=function(k){h5=k}; VhM=function(){mDe=h5=eV=zU=null}; DD9=function(){var k=k===void 0?window.location.href:k;if(g.TQ("kevlar_disable_theme_param"))return null;var p=Qu(g.Gq(5,k));if(g.TQ("enable_dark_theme_only_on_shorts")&&p!=null&&p.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var t=g.pY(k).theme;return Wfj.get(t)||null}catch(J){}return null}; aZ=function(){this.T={};if(this.Y=LET()){var k=g.QI("CONSISTENCY");k&&sw_(this,{encryptedTokenJarContents:k})}}; sw_=function(k,p){if(p.encryptedTokenJarContents&&(k.T[p.encryptedTokenJarContents]=p,typeof p.expirationSeconds==="string")){var t=Number(p.expirationSeconds);setTimeout(function(){delete k.T[p.encryptedTokenJarContents]},t*1E3); k.Y&&g.i6("CONSISTENCY",p.encryptedTokenJarContents,t,void 0,!0)}}; g3=function(){this.Y=-1;var k=g.M9("LOCATION_PLAYABILITY_TOKEN");g.M9("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=MO(this))&&(k=this.localStorage.get("yt-location-playability-token"));k&&(this.locationPlayabilityToken=k,this.T=void 0)}; MO=function(k){return k.localStorage===void 0?new x9("yt-client-location"):k.localStorage}; g.uS=function(k,p,t){p=p===void 0?!1:p;t=t===void 0?!1:t;var J=g.M9("INNERTUBE_CONTEXT");if(!J)return g.nV(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};J=g.Qx(J);g.TQ("web_no_tracking_params_in_shell_killswitch")||delete J.clickTracking;J.client||(J.client={});var q=J.client;q.clientName==="MWEB"&&q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(q.clientFormFactor=g.M9("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");q.screenWidthPoints=window.innerWidth;q.screenHeightPoints= window.innerHeight;q.screenPixelDensity=Math.round(window.devicePixelRatio||1);q.screenDensityFloat=window.devicePixelRatio||1;q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var F=F===void 0?!1:F;g.Iu();var d="USER_INTERFACE_THEME_LIGHT";g.Xa(0,165)?d="USER_INTERFACE_THEME_DARK":g.Xa(0,174)?d="USER_INTERFACE_THEME_LIGHT":!g.TQ("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (d="USER_INTERFACE_THEME_DARK");F=F?d:DD9()||d;q.userInterfaceTheme=F;if(!p){if(F=NQw())q.connectionType=F;g.TQ("web_log_effective_connection_type")&&(F=Yii())&&(J.client.effectiveConnectionType=F)}var S;if(g.TQ("web_log_memory_total_kbytes")&&((S=g.B9.navigator)==null?0:S.deviceMemory)){var U;S=(U=g.B9.navigator)==null?void 0:U.deviceMemory;J.client.memoryTotalKbytes=""+S*1E6}g.TQ("web_gcf_hashes_innertube")&&(F=V5e())&&(U=F.coldConfigData,S=F.coldHashData,F=F.hotHashData,J.client.configInfo=J.client.configInfo|| {},U&&(J.client.configInfo.coldConfigData=U),S&&(J.client.configInfo.coldHashData=S),F&&(J.client.configInfo.hotHashData=F));U=g.pY(g.B9.location.href);!g.TQ("web_populate_internal_geo_killswitch")&&U.internalcountrycode&&(q.internalGeo=U.internalcountrycode);q.clientName==="MWEB"||q.clientName==="WEB"?(q.mainAppWebInfo={graftUrl:g.B9.location.href},g.TQ("kevlar_woffle")&&$Ni.instance&&(U=$Ni.instance,q.mainAppWebInfo.pwaInstallabilityStatus=!U.T&&U.Y?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),q.mainAppWebInfo.webDisplayMode=QB(),q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):q.clientName==="TVHTML5"&&(!g.TQ("web_lr_app_quality_killswitch")&&(U=g.M9("LIVING_ROOM_APP_QUALITY"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{appQuality:U})),U=g.M9("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{certificationScope:U}));if(!g.TQ("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(X){}f=void 0}f&&(q.timeZone=f)}(f=ZT())?q.experimentsToken=f:delete q.experimentsToken;f=CY();aZ.instance||(aZ.instance=new aZ);J.request=Object.assign({},J.request,{internalExperimentFlags:f,consistencyTokenJars:g.WQ(aZ.instance.T)});!g.TQ("web_prequest_context_killswitch")&&(f=g.M9("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(J.request.externalPrequestContext=f);q=g.Iu();f=g.Xa(0,58);q=q.get("gsml","");J.user=Object.assign({}, J.user);f&&(J.user.enableSafetyMode=f);q&&(J.user.lockedSafetyMode=!0);g.TQ("warm_op_csn_cleanup")?t&&(p=g.mP())&&(J.clientScreenNonce=p):!p&&(p=g.mP())&&(J.clientScreenNonce=p);k&&(J.clickTracking={clickTrackingParams:k});if(k=g.hw("yt.mdx.remote.remoteClient_"))J.remoteClient=k;g3.getInstance().setLocationOnInnerTubeContext(J);try{var b=EG(),N=b.bid;delete b.bid;J.adSignalsInfo={params:[],bid:N};for(var y=g.Z(Object.entries(b)),Y=y.next();!Y.done;Y=y.next()){var T=g.Z(Y.value),A=T.next().value, V=T.next().value;b=A;N=V;k=void 0;(k=J.adSignalsInfo.params)==null||k.push({key:b,value:""+N})}var D,v;if(((D=J.client)==null?void 0:D.clientName)==="TVHTML5"||((v=J.client)==null?void 0:v.clientName)==="TVHTML5_UNPLUGGED"){var w=g.M9("INNERTUBE_CONTEXT");w.adSignalsInfo&&(J.adSignalsInfo.advertisingId=w.adSignalsInfo.advertisingId,J.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",J.adSignalsInfo.limitAdTracking=w.adSignalsInfo.limitAdTracking)}}catch(X){g.nV(X)}return J}; cy9=function(k,p){if(!k)return!1;var t,J=(t=g.e(k,Lfq))==null?void 0:t.signal;if(J&&p.ea)return!!p.ea[J];var q;if((t=(q=g.e(k,vZ6))==null?void 0:q.request)&&p.zV)return!!p.zV[t];for(var F in k)if(p.kK[F])return!0;return!1}; nZe=function(k){var p={"Content-Type":"application/json"};g.M9("EOM_VISITOR_DATA")?p["X-Goog-EOM-Visitor-Id"]=g.M9("EOM_VISITOR_DATA"):g.M9("VISITOR_DATA")&&(p["X-Goog-Visitor-Id"]=g.M9("VISITOR_DATA"));p["X-Youtube-Bootstrap-Logged-In"]=g.M9("LOGGED_IN",!1);g.M9("DEBUG_SETTINGS_METADATA")&&(p["X-Debug-Settings-Metadata"]=g.M9("DEBUG_SETTINGS_METADATA"));k!=="cors"&&((k=g.M9("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(p["X-Youtube-Client-Name"]=k),(k=g.M9("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(p["X-Youtube-Client-Version"]= k),(k=g.M9("CHROME_CONNECTED_HEADER"))&&(p["X-Youtube-Chrome-Connected"]=k),(k=g.M9("DOMAIN_ADMIN_STATE"))&&(p["X-Youtube-Domain-Admin-State"]=k),g.M9("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(k=g.M9("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(p["X-YouTube-Lava-Device-Context"]=k));return p}; w3_=function(){this.T={}}; lS=function(){this.mappings=new w3_}; jV=function(k){return function(){return new k}}; Qw_=function(k){var p=p===void 0?"UNKNOWN_INTERFACE":p;if(k.length===1)return k[0];var t=iwj[p];if(t){t=new RegExp(t);for(var J=g.Z(k),q=J.next();!q.done;q=J.next())if(q=q.value,t.exec(q))return q}var F=[];Object.entries(iwj).forEach(function(d){var S=g.Z(d);d=S.next().value;S=S.next().value;p!==d&&F.push(S)}); t=new RegExp(F.join("|"));k.sort(function(d,S){return d.length-S.length}); J=g.Z(k);for(q=J.next();!q.done;q=J.next())if(q=q.value,!t.exec(q))return q;return k[0]}; g.Oy=function(k){return"/youtubei/v1/"+Qw_(k)}; Ka=function(){}; HA=function(){}; xM=function(){}; ky=function(k){return g.hw("ytcsi."+(k||"")+"data_")||PcT(k)}; GpL=function(){var k=ky();k.info||(k.info={});return k.info}; p4=function(k){k=ky(k);k.metadata||(k.metadata={});return k.metadata}; bF=function(k){k=ky(k);k.tick||(k.tick={});return k.tick}; NT=function(k){k=ky(k);if(k.gel){var p=k.gel;p.gelInfos||(p.gelInfos={});p.gelTicks||(p.gelTicks={})}else k.gel={gelTicks:{},gelInfos:{}};return k.gel}; I1w=function(k){k=NT(k);k.gelInfos||(k.gelInfos={});return k.gelInfos}; yw=function(k){var p=ky(k).nonce;p||(p=g.Zi(16),ky(k).nonce=p);return p}; PcT=function(k){var p={tick:{},info:{}};g.eM("ytcsi."+(k||"")+"data_",p);return p}; Yy=function(){var k=g.hw("ytcsi.debug");k||(k=[],g.eM("ytcsi.debug",k),g.eM("ytcsi.reference",{}));return k}; Tg=function(k){k=k||"";var p=X3j();if(p[k])return p[k];var t=Yy(),J={timerName:k,info:{},tick:{},span:{},jspbInfo:[]};t.push(J);return p[k]=J}; RjM=function(k){k=k||"";var p=X3j();p[k]&&delete p[k];var t=Yy(),J={timerName:k,info:{},tick:{},span:{},jspbInfo:[]};t.push(J);p[k]=J}; X3j=function(){var k=g.hw("ytcsi.reference");if(k)return k;Yy();return g.hw("ytcsi.reference")}; rk=function(k){return BXS[k]||"LATENCY_ACTION_UNKNOWN"}; ZP=function(k,p){Ew.call(this,1,arguments);this.wf=p}; C4=function(){this.T=0}; A7=function(){C4.instance||(C4.instance=new C4);return C4.instance}; Vw=function(k,p){me[p]=me[p]||{count:0};var t=me[p];t.count++;t.time=(0,g.V9)();k.T||(k.T=g.lk(0,function(){var J=(0,g.V9)(),q;for(q in me)me[q]&&J-me[q].time>6E4&&delete me[q];k&&(k.T=0)},5E3)); return t.count>5?(t.count===6&&Math.random()*1E5<1&&(t=new g.hm("CSI data exceeded logging limit with key",p.split("_")),p.indexOf("plev")>=0||g.wt(t)),!0):!1}; zju=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; ej0=function(){var k;if(g.TQ("csi_use_performance_navigation_timing")||g.TQ("csi_use_performance_navigation_timing_tvhtml5")){var p,t,J,q=WF==null?void 0:(k=WF.getEntriesByType)==null?void 0:(p=k.call(WF,"navigation"))==null?void 0:(t=p[0])==null?void 0:(J=t.toJSON)==null?void 0:J.call(t);q?(q.requestStart=DP(q.requestStart),q.responseEnd=DP(q.responseEnd),q.redirectStart=DP(q.redirectStart),q.redirectEnd=DP(q.redirectEnd),q.domainLookupEnd=DP(q.domainLookupEnd),q.connectStart=DP(q.connectStart), q.connectEnd=DP(q.connectEnd),q.responseStart=DP(q.responseStart),q.secureConnectionStart=DP(q.secureConnectionStart),q.domainLookupStart=DP(q.domainLookupStart),q.isPerformanceNavigationTiming=!0,k=q):k=WF.timing}else k=g.TQ("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(WF.timing)):WF.timing;return k}; DP=function(k){return Math.round(s_()+k)}; s_=function(){return(g.TQ("csi_use_time_origin")||g.TQ("csi_use_time_origin_tvhtml5"))&&WF.timeOrigin?Math.floor(WF.timeOrigin):WF.timing.navigationStart}; vF=function(k,p){L4("_start",k,p)}; cF=function(k,p){if(!g.TQ("web_csi_action_sampling_enabled")||!ky(p).actionDisabled){var t=Tg(p||"");E3(t.info,k);k.loadType&&(t=k.loadType,p4(p).loadType=t);E3(I1w(p),k);t=yw(p);p=ky(p).cttAuthInfo;A7().info(k,t,p)}}; hjS=function(){var k,p,t,J;return((J=n0().resolve(new Di(ow))==null?void 0:(k=qD())==null?void 0:(p=k.loggingHotConfig)==null?void 0:(t=p.csiConfig)==null?void 0:t.debugTicks)!=null?J:[]).map(function(q){return Object.values(q)[0]})}; L4=function(k,p,t){if(!g.TQ("web_csi_action_sampling_enabled")||!ky(t).actionDisabled){var J=yw(t),q;if(q=g.TQ("web_csi_debug_sample_enabled")&&J){(n0().resolve(new Di(ow))==null?0:qD())&&!a1M&&(a1M=!0,L4("gcfl",(0,g.V9)(),t));var F,d,S;q=(n0().resolve(new Di(ow))==null?void 0:(F=qD())==null?void 0:(d=F.loggingHotConfig)==null?void 0:(S=d.csiConfig)==null?void 0:S.debugSampleWeight)||0;if(F=q!==0)b:{F=hjS();if(F.length>0)for(d=0;d<F.length;d++)if(k===F[d]){F=!0;break b}F=!1}F?(q=bzS(J)%q!==0,ky(t).debugTicksExcludedLogged|| (F={},F.debugTicksExcluded=q,cF(F,t)),ky(t).debugTicksExcludedLogged=!0):q=!1}if(!q){if(k[0]!=="_"&&(q=k,F=p,WF.mark))if(q.startsWith("mark_")||(q="mark_"+q),t&&(q+=" ("+t+")"),F===void 0||g.TQ("web_csi_disable_alt_time_performance_mark"))WF.mark(q);else{F=g.TQ("csi_use_performance_navigation_timing")||g.TQ("csi_use_performance_navigation_timing_tvhtml5")?F-WF.timeOrigin:F-(WF.timeOrigin||WF.timing.navigationStart);try{WF.mark(q,{startTime:F})}catch(U){}}q=Tg(t||"");q.tick[k]=p||(0,g.V9)();if(q.callback&& q.callback[k])for(q=g.Z(q.callback[k]),F=q.next();!F.done;F=q.next())F=F.value,F();q=NT(t);q.gelTicks&&(q.gelTicks[k]=!0);F=bF(t);q=p||(0,g.V9)();g.TQ("log_repeated_ytcsi_ticks")?k in F||(F[k]=q):F[k]=q;F=ky(t).cttAuthInfo;k==="_start"?(k=A7(),Vw(k,"baseline_"+J)||g.qv("latencyActionBaselined",{clientActionNonce:J},{timestamp:p,cttAuthInfo:F})):A7().tick(k,J,p,F);Mhi(t);return q}}}; gZT=function(){var k,p=(k=WF.getEntriesByType)==null?void 0:k.call(WF,"mark");p&&p.forEach(function(t){if(t.name.startsWith("mark_")){var J;(J=WF.clearMarks)==null||J.call(WF,t.name)}})}; usj=function(){switch(lUT()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; l1h=function(k){function p(F,d,S){d=d.match("_rid")?d.split("_rid")[0]:d;typeof S==="number"&&(S=JSON.stringify(S));F.requestIds?F.requestIds.push({endpoint:d,id:S}):F.requestIds=[{endpoint:d,id:S}]} var t={};k=g.Z(Object.entries(k));for(var J=k.next();!J.done;J=k.next()){var q=g.Z(J.value);J=q.next().value;q=q.next().value;switch(J){case "GetBrowse_rid":p(t,J,q);break;case "GetGuide_rid":p(t,J,q);break;case "GetHome_rid":p(t,J,q);break;case "GetPlayer_rid":p(t,J,q);break;case "GetSearch_rid":p(t,J,q);break;case "GetSettings_rid":p(t,J,q);break;case "GetTrending_rid":p(t,J,q);break;case "GetWatchNext_rid":p(t,J,q);break;case "yt_red":t.isRedSubscriber=!!q;break;case "yt_ad":t.isMonetized=!!q}}return t}; jwi=function(k,p){k=document.querySelector(k);if(!k)return!1;var t="",J=k.nodeName;J==="SCRIPT"?(t=k.src,t||(t=k.getAttribute("data-timing-href"))&&(t=window.location.protocol+t)):J==="LINK"&&(t=k.href);BH(document)&&k.setAttribute("nonce",BH(document));return t?(k=WF.getEntriesByName(t))&&k[0]&&(k=k[0],t=s_(),L4("rsf_"+p,t+Math.round(k.fetchStart)),L4("rse_"+p,t+Math.round(k.responseEnd)),k.transferSize!==void 0&&k.transferSize===0)?!0:!1:!1}; OwT=function(){var k=window.location.protocol,p=WF.getEntriesByType("resource");p=g.dZ(p,function(t){return t.name.indexOf(k+"//fonts.gstatic.com/s/")===0}); (p=LO(p,function(t,J){return J.duration>t.duration?J:t},{duration:0}))&&p.startTime>0&&p.responseEnd>0&&(L4("wffs",DP(p.startTime)),L4("wffe",DP(p.responseEnd)))}; Kf6=function(k,p,t){WF&&WF.measure&&(k.startsWith("measure_")||(k="measure_"+k),t?WF.measure(k,p,t):p?WF.measure(k,p):WF.measure(k))}; HwL=function(k){var p=n4("aft",k);if(p)return p;p=g.M9((k||"")+"TIMING_AFT_KEYS",["ol"]);for(var t=p.length,J=0;J<t;J++){var q=n4(p[J],k);if(q)return q}return NaN}; wk=function(k,p){g.eM("ytglobal.timing"+(p||"")+"ready_",k)}; n4=function(k,p){if(k=bF(p)[k])return typeof k==="number"?k:k[k.length-1]}; Mhi=function(k){var p=n4("_start",k),t=HwL(k),J=g.TQ("enable_cow_info_csi")||!xD9;p&&t&&J&&(fw(kv6,new ZP(Math.round(t-p),k)),xD9=!0)}; pSj=function(){if(WF.getEntriesByType){var k=WF.getEntriesByType("paint");if(k=g.j9(k,function(t){return t.name==="first-paint"}))return DP(k.startTime)}var p; g.TQ("csi_use_performance_navigation_timing")||g.TQ("csi_use_performance_navigation_timing_tvhtml5")?p=WF.getEntriesByType("first-paint")[0].startTime:p=WF.timing.VnO;return p?Math.max(0,p):0}; iF=function(k){PcT(k);tW0();gZT();k||(g.M9("TIMING_ACTION")&&a3("PREVIOUS_ACTION",g.M9("TIMING_ACTION")),a3("TIMING_ACTION",""))}; Jnj=function(){var k=["pbs","pbu"];g.j5(function(){Tg("").info.actionType="watch";k&&a3("TIMING_AFT_KEYS",k);a3("TIMING_ACTION","watch");var p=l1h(g.M9("TIMING_INFO",{}));Object.keys(p).length>0&&cF(p);p={isNavigation:!0,actionType:rk(g.M9("TIMING_ACTION"))};var t=g.M9("PREVIOUS_ACTION");t&&(p.previousAction=rk(t));if(t=g.M9("CLIENT_PROTOCOL"))p.httpProtocol=t;if(t=g.M9("CLIENT_TRANSPORT"))p.transportProtocol=t;(t=g.mP())&&t!=="UNDEFINED_CSN"&&(p.clientScreenNonce=t);t=usj();if(t===1||t===-1)p.isVisible= !0;t=p4().loadType==="cold";var J=GpL();t||(t=J.yt_lt==="cold");if(t){p.loadType="cold";t=GpL();J=ej0();var q=s_(),F=g.M9("CSI_START_TIMESTAMP_MILLIS",0);F>0&&!g.TQ("embeds_web_enable_csi_start_override_killswitch")&&(q=F);q&&(L4("srt",J.responseStart),t.prerender!==1&&vF(q));t=pSj();t>0&&L4("fpt",t);t=ej0();t.isPerformanceNavigationTiming&&cF({performanceNavigationTiming:!0},void 0);L4("nreqs",t.requestStart,void 0);L4("nress",t.responseStart,void 0);L4("nrese",t.responseEnd,void 0);t.redirectEnd- t.redirectStart>0&&(L4("nrs",t.redirectStart,void 0),L4("nre",t.redirectEnd,void 0));t.domainLookupEnd-t.domainLookupStart>0&&(L4("ndnss",t.domainLookupStart,void 0),L4("ndnse",t.domainLookupEnd,void 0));t.connectEnd-t.connectStart>0&&(L4("ntcps",t.connectStart,void 0),L4("ntcpe",t.connectEnd,void 0));t.secureConnectionStart>=s_()&&t.connectEnd-t.secureConnectionStart>0&&(L4("nstcps",t.secureConnectionStart,void 0),L4("ntcpe",t.connectEnd,void 0));WF&&"getEntriesByType"in WF&&OwT();t=[];if(document.querySelector&& WF&&WF.getEntriesByName)for(var d in Qw)Qw.hasOwnProperty(d)&&(J=Qw[d],jwi(d,J)&&t.push(J));if(t.length>0)for(p.resourceInfo=[],d=g.Z(t),t=d.next();!t.done;t=d.next())p.resourceInfo.push({resourceCache:t.value})}cF(p);p=NT();p.preLoggedGelInfos||(p.preLoggedGelInfos=[]);d=p.preLoggedGelInfos;p=I1w();t=void 0;for(J=0;J<d.length;J++)if(q=d[J],q.loadType){t=q.loadType;break}if(p4().loadType==="cold"&&(p.loadType==="cold"||t==="cold")){t=bF();J=NT();J=J.gelTicks?J.gelTicks:J.gelTicks={};for(var S in t)if(!(S in J))if(typeof t[S]==="number")L4(S,n4(S));else if(g.TQ("log_repeated_ytcsi_ticks"))for(q=g.Z(t[S]),F=q.next();!F.done;F=q.next())L4(S.slice(1),F.value);S={};t=!1;d=g.Z(d);for(J=d.next();!J.done;J=d.next())t=J.value,E3(p,t),E3(S,t),t=!0;t&&cF(S)}wk(!0);S=g.M9("TIMING_ACTION");g.hw("ytglobal.timingready_")&&S&&PF()&&HwL()&&Mhi()})()}; o50=function(){var k=k===void 0?{}:k;g.j5(function(){PF()&&Gg("aa",void 0,void 0);RjM();iF();wk(!1);k.cttAuthInfo&&(ky().cttAuthInfo=k.cttAuthInfo);a3("TIMING_AFT_KEYS",[]);k.MnG?g.IF({loadType:"hot"}):g.IF({loadType:"warm"});a3("TIMING_ACTION","");delete g.M9("TIMING_INFO",{}).yt_lt;g.j5(vF)(k.startTime,void 0)})()}; Xu=function(k,p){p=p===void 0?{}:p;g.j5(function(){q39(k);var t=p.sampleRate;if(!g.TQ("web_csi_action_sampling_enabled")||t===void 0||t<=1)t=!1;else{var J=yw(k);t=bzS(J)%t!==0}t&&(ky(k).actionDisabled=!0);Tg(k||"").info.actionType=k;p.cttAuthInfo&&(ky(k).cttAuthInfo=p.cttAuthInfo);a3(k+"TIMING_ACTION",k);g.j5(vF)(p.startTime,k);t={actionType:rk(k)};p.nTy&&(t.previousAction=rk(g.M9("TIMING_ACTION")));(J=g.mP())&&J!=="UNDEFINED_CSN"&&(t.clientScreenNonce=J);g.IF(t,k);wk(!0,k)})()}; q39=function(k){g.j5(function(){PF(k)&&Gg("aa",void 0,k);RjM(k);iF(k)})()}; PF=function(k){return g.j5(function(){return RF("_start",k)})()}; g.IF=function(k,p,t){g.j5(cF)(k,p,t===void 0?!1:t)}; Gg=function(k,p,t){return g.j5(L4)(k,p,t)}; FYi=function(k){g.j5(Kf6)("action_finished",k,void 0)}; RF=function(k,p){return g.j5(function(){var t=bF(p);return k in t})()}; d1h=function(k){if(!g.TQ("universal_csi_network_ticks"))return"";k=Qu(g.Gq(5,k))||"";for(var p=Object.keys($1i),t=0;t<p.length;t++){var J=p[t];if(k.includes(J))return J}return""}; S3u=function(k){if(!g.TQ("universal_csi_network_ticks"))return function(){}; var p=$1i[k];return p?(BF(p),function(){var t=g.TQ("universal_csi_network_ticks")?(t=E5M[k])?BF(t):!1:!1;return t}):function(){}}; BF=function(k,p){return g.j5(function(){if(RF(k,p))return!1;Gg(k,void 0,p);return!0})()}; zg=function(k,p,t){g.j5(function(){if(!PF(t)||RF(k,t))return!1;Gg(k,p,t);return!0})()}; U1_=function(){g.j5(function(){var k=yw();requestAnimationFrame(function(){setTimeout(function(){k===yw()&&Gg("ftl",void 0,void 0)},0)})})()}; g.eR=function(k,p){var t=g.nS.apply(2,arguments);k=k===void 0?0:k;g.hm.call(this,p,t);this.errorType=k;Object.setPrototypeOf(this,this.constructor.prototype)}; h7=function(k,p,t,J){this.Fm=k;this.SE=p;this.T=t;this.C=J;this.N=void 0;this.Y=new Map;k.ea||(k.ea={});k.ea=Object.assign({},fiq,k.ea)}; b0q=function(k,p,t,J){if(h7.instance!==void 0){if(J=h7.instance,k=[k!==J.Fm,p!==J.SE,t!==J.T,!1,!1,!1,void 0!==J.N],k.some(function(q){return q}))throw new g.hm("InnerTubeTransportService is already initialized",k); }else h7.instance=new h7(k,p,t,J)}; aF=function(k,p,t){var J=J===void 0?dX:J;var q=NOh(k,p);return q?new g.yu(function(F,d){var S,U,f,b,N;return g.Q(function(y){switch(y.T){case 1:return g.n(y,q,2);case 2:S=y.Y;U=S.X(p,t,J);if(!U){d(new g.hm("Error: Failed to build request for command.",p));y.oY(0);break}XD(U.input);b=((f=U.Vk)==null?void 0:f.mode)==="cors"?"cors":void 0;if(k.T.ZH){N=ynT(k,U.config,b);y.oY(4);break}return g.n(y,Y3i(k,U.config,b),5);case 5:N=y.Y;case 4:F(TO0(k,U,N)),g.CS(y)}})}):rv(new g.hm("Error: No request builder found for command.", p))}; g.MT=function(k,p,t,J,q){function F(){} q=q===void 0?{YP:{identity:dX}}:q;var d=d===void 0?!0:d;F=S3u(d1h(t));p.context||(p.context=g.uS(J,d));return new g.yu(function(S){var U,f,b,N,y;return g.Q(function(Y){if(Y.T==1)return U=GQ(t),f=oY(U)?"same-origin":"cors",k.T.ZH?(b=ynT(k,q,f),Y.oY(2)):g.n(Y,Y3i(k,q,f),3);Y.T!=2&&(b=Y.Y);N=v_u(GQ(t));y={input:N,Vk:IY(N),XO:p,config:q};S(TO0(k,y,b,F));g.CS(Y)})})}; Z00=function(k,p,t){var J;if(p&&!(p==null?0:(J=p.sequenceMetaData)==null?0:J.skipProcessing)&&k.C){J=g.Z(rn0);for(var q=J.next();!q.done;q=J.next())q=q.value,k.C[q]&&k.C[q].handleResponse(p,t)}}; TO0=function(k,p,t,J){J=J===void 0?function(){}:J; var q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B,O,l,oi,$h,kh,h,x,C,a,zL,AC,bJ;return g.Q(function(LS){switch(LS.T){case 1:LS.oY(2);break;case 3:if((q=LS.Y)&&!q.isExpired())return LS.return(Promise.resolve(q.T()));case 2:if(!((F=p)==null?0:(d=F.XO)==null?0:d.context)){LS.oY(4);break}S=p.XO.context;LS.oY(5);break;case 5:U=g.Z([]),f=U.next();case 8:if(f.done){LS.oY(4);break}b=f.value;return g.n(LS,b.TZT(S),9);case 9:f=U.next();LS.oY(8);break;case 4:if((N=k.N)==null||!N.mVS(p.input,p.XO)){LS.oY(12);break}return g.n(LS, k.N.DxS(p.input,p.XO),13);case 13:return y=LS.Y,Z00(k,y,p),LS.return(y);case 12:return(A=(T=p.config)==null?void 0:T.WM)&&k.Y.has(A)?Y=k.Y.get(A):(V=JSON.stringify(p.XO),w=(v=(D=p.Vk)==null?void 0:D.headers)!=null?v:{},p.Vk=Object.assign({},p.Vk,{headers:Object.assign({},w,t)}),X=Object.assign({},p.Vk),p.Vk.method==="POST"&&(X=Object.assign({},X,{body:V})),((B=p.config)==null?0:B.jxS)&&Gg(p.config.jxS),O=function(){return k.SE.fetch(p.input,X,p.config)},Y=O(),A&&k.Y.set(A,Y)),g.n(LS,Y,14); case 14:if((l=LS.Y)&&"error"in l&&((oi=l)==null?0:($h=oi.error)==null?0:$h.details))for(kh=l.error.details,h=g.Z(kh),x=h.next();!x.done;x=h.next())C=x.value,(a=C["@type"])&&C76.indexOf(a)>-1&&(delete C["@type"],l=C);A&&k.Y.has(A)&&k.Y.delete(A);((zL=p.config)==null?0:zL.SxO)&&Gg(p.config.SxO);if(l||(AC=k.N)==null||!AC.OAT(p.input,p.XO)){LS.oY(15);break}return g.n(LS,k.N.ft0(p.input,p.XO),16);case 16:l=LS.Y;case 15:return Z00(k,l,p),((bJ=p.config)==null?0:bJ.UhT)&&Gg(p.config.UhT),J(),LS.return(l|| void 0)}})}; NOh=function(k,p){a:{k=k.Fm;var t,J=(t=g.e(p,Lfq))==null?void 0:t.signal;if(J&&k.ea&&(t=k.ea[J])){var q=t();break a}var F;if((t=(F=g.e(p,vZ6))==null?void 0:F.request)&&k.zV&&(F=k.zV[t])){q=F();break a}for(q in p)if(k.kK[q]&&(p=k.kK[q])){q=p();break a}q=void 0}if(q!==void 0)return Promise.resolve(q)}; Y3i=function(k,p,t){var J,q,F,d,S,U,f;return g.Q(function(b){if(b.T==1){F=((J=p)==null?void 0:(q=J.YP)==null?void 0:q.identity)||dX;U=(d=p)==null?void 0:(S=d.YP)==null?void 0:S.sessionIndex;var N=g.Tq(k.T.oe(F,{sessionIndex:U}));return g.n(b,N,2)}f=b.Y;return b.return(Promise.resolve(Object.assign({},nZe(t),f)))})}; ynT=function(k,p,t){var J,q=(p==null?void 0:(J=p.YP)==null?void 0:J.identity)||dX,F;p=p==null?void 0:(F=p.YP)==null?void 0:F.sessionIndex;k=k.T.oe(q,{sessionIndex:p});return Object.assign({},nZe(t),k)}; gk=function(){}; uF=function(){}; lF=function(k){this.S=k}; jR=function(){}; O_=function(){}; K4=function(){}; HF=function(){}; kU=function(k,p,t){this.T=k;this.Y=p;this.N=t}; Ani=function(k,p,t){if(k.T){var J=Qu(g.Gq(5,gv(p,"key")))||"/UNKNOWN_PATH";k.T.start(J)}k=t;g.TQ("wug_networking_gzip_request")&&(k=kQ0(t));return new window.Request(p,k)}; g.tc=function(k,p){if(!pQ){var t=n0();s3(t,{ML:m1M,qr:kU});var J={kK:{feedbackEndpoint:jV(jR),modifyChannelNotificationPreferenceEndpoint:jV(O_),playlistEditEndpoint:jV(K4),shareEntityEndpoint:jV(lF),subscribeEndpoint:jV(gk),unsubscribeEndpoint:jV(uF),webPlayerShareEntityServiceEndpoint:jV(HF)}},q=g3.getInstance(),F={};q&&(F.client_location=q);k===void 0&&(k=dNe());p===void 0&&(p=t.resolve(m1M));b0q(J,p,k,F);s3(t,{ML:VWq,Sg:h7.instance});pQ=t.resolve(VWq)}return pQ}; WYe=function(k){var p=new bO;if(k.interpreterJavascript){var t=h86(k.interpreterJavascript);t=ec(t).toString();var J=new UL;T9(J,6,t);dB(p,UL,1,J)}else k.interpreterUrl&&(t=CF(k.interpreterUrl),t=Lu(t).toString(),J=new fB,T9(J,4,t),dB(p,fB,2,J));k.interpreterHash&&rB(p,3,k.interpreterHash);k.program&&rB(p,4,k.program);k.globalName&&rB(p,5,k.globalName);k.clientExperimentsStateBlob&&rB(p,7,k.clientExperimentsStateBlob);return p}; Jc=function(k){var p={};k=k.split("&");k=g.Z(k);for(var t=k.next();!t.done;t=k.next())t=t.value.split("="),t.length===2&&(p[t[0]]=t[1]);return p}; Ec6=function(){if(g.TQ("bg_st_hr"))return"havuokmhhs-0";var k,p=((k=performance)==null?void 0:k.timeOrigin)||0;return"havuokmhhs-"+Math.floor(p)}; oI=function(k){this.T=k}; D1S=function(){return new Promise(function(k){var p=window.top;p.ntpevasrs!==void 0?k(new oI(p.ntpevasrs)):(p.ntpqfbel===void 0&&(p.ntpqfbel=[]),p.ntpqfbel.push(function(t){k(new oI(t))}))})}; LYh=function(){if(!g.TQ("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.TQ("disable_biscotti_fetch_entirely_for_all_web_clients")&&Hw()){var k=g.M9("PLAYER_VARS",{});if(g.nE(k,"privembed",!1)!="1"&&!Pv6(k)){var p=function(){qP=!0;"google_ad_status"in window?a3("DCLKSTAT",1):a3("DCLKSTAT",2)}; try{g.q1("//static.doubleclick.net/instream/ad_status.js",p)}catch(t){}sN9.push(g.B8.Hj(function(){if(!(qP||"google_ad_status"in window)){try{if(p){var t=""+g.O0(p),J=P6j[t];J&&g.Jn(J)}}catch(q){}qP=!0;a3("DCLKSTAT",3)}},5E3))}}}; Fy=function(){var k=Number(g.M9("DCLKSTAT",0));return isNaN(k)?0:k}; Sx=function(k,p,t){var J=this;this.network=k;this.options=p;this.Y=t;this.T=null;if(p.vqp){var q=new g.yM;this.T=q.promise;g.B9.ytAtRC&&uk(function(){var F,d;return g.Q(function(S){if(S.T==1){if(!g.B9.ytAtRC)return S.return();F=$U(null);return g.n(S,dK(J,F),2)}d=S.Y;g.B9.ytAtRC&&g.B9.ytAtRC(JSON.stringify(d));g.CS(S)})},2); D1S().then(function(F){var d,S,U,f;return g.Q(function(b){if(b.T==1)return F.bindInnertubeChallengeFetcher(function(N){return dK(J,$U(N))}),g.n(b,L2(),2); d=b.Y;S=F.getLatestChallengeResponse();U=S.challenge;if(!U)throw Error("BGE_MACIL");f={challenge:U,OU:Jc(U),UX:d,bgChallenge:new bO};q.resolve(f);F.registerChallengeFetchedCallback(function(N){N=N.challenge;if(!N)throw Error("BGE_MACR");N={challenge:N,OU:Jc(N),UX:d,bgChallenge:new bO};J.T=Promise.resolve(N)}); g.CS(b)})})}else p.preload&&v5_(this,new Promise(function(F){g.lk(0,function(){F(Eh(J))},0)}))}; $U=function(k){var p={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};k&&(p.interpreterHash=k);return p}; Eh=function(k,p){p=p===void 0?0:p;var t,J,q,F,d,S,U,f,b,N,y,Y;return g.Q(function(T){switch(T.T){case 1:t=$U(rg().T);if(g.TQ("att_fet_ks"))return g.Aw(T,7),g.n(T,dK(k,t),9);g.Aw(T,4);return g.n(T,cnh(k,t),6);case 6:d=T.Y;q=d.mhy;F=d.RwO;J=d;g.Vi(T,3);break;case 4:return g.W9(T),g.wt(Error("Failed to fetch attestation challenge after "+(p+" attempts; not retrying for 24h."))),Uh(k,864E5),T.return({challenge:"",OU:{},UX:void 0,bgChallenge:void 0});case 9:J=T.Y;if(!J)throw Error("Fetching Attestation challenge returned falsy"); if(!J.challenge)throw Error("Missing Attestation challenge");q=J.challenge;F=Jc(q);if("c1a"in F&&(!J.bgChallenge||!J.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Vi(T,3);break;case 7:S=g.W9(T);g.wt(S);p++;if(p>=5)return g.wt(Error("Failed to fetch attestation challenge after "+(p+" attempts; not retrying for 24h."))),Uh(k,864E5),T.return({challenge:"",OU:{},UX:void 0,bgChallenge:void 0});U=1E3*Math.pow(2,p-1)+Math.random()*1E3;return T.return(new Promise(function(A){g.lk(0, function(){A(Eh(k,p))},U)})); case 3:f=Number(F.t)||7200;Uh(k,f*1E3);b=void 0;if(!("c1a"in F&&J.bgChallenge)){T.oY(10);break}N=WYe(J.bgChallenge);g.Aw(T,11);return g.n(T,ZS(rg(),N),13);case 13:g.Vi(T,12);break;case 11:return y=g.W9(T),g.wt(y),T.return({challenge:q,OU:F,UX:b,bgChallenge:N});case 12:return g.Aw(T,14),b=new Yz({challenge:N,qF:{nH:"aGIf"}}),g.n(T,b.FJ,16);case 16:g.Vi(T,10);break;case 14:Y=g.W9(T),g.wt(Y),b=void 0;case 10:return T.return({challenge:q,OU:F,UX:b,bgChallenge:N})}})}; dK=function(k,p){var t;return g.Q(function(J){t=k.Y;if(!t||t.FI())return J.return(dK(k.network,p));zg("att_pna",void 0,"attestation_challenge_fetch");return J.return(new Promise(function(q){t.m5("publicytnetworkstatus-online",function(){dK(k.network,p).then(q)})}))})}; n5i=function(k){if(!k)throw Error("Fetching Attestation challenge returned falsy");if(!k.challenge)throw Error("Missing Attestation challenge");var p=k.challenge,t=Jc(p);if("c1a"in t&&(!k.bgChallenge||!k.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},k,{mhy:p,RwO:t})}; cnh=function(k,p){var t,J,q,F,d;return g.Q(function(S){switch(S.T){case 1:t=void 0,J=0,q={};case 2:if(!(J<5)){S.oY(4);break}if(!(J>0)){S.oY(5);break}q.Eg=1E3*Math.pow(2,J-1)+Math.random()*1E3;return g.n(S,new Promise(function(U){return function(f){g.lk(0,function(){f(void 0)},U.Eg)}}(q)),5); case 5:return g.Aw(S,7),g.n(S,dK(k,p),9);case 9:return F=S.Y,S.return(n5i(F));case 7:t=d=g.W9(S),d instanceof Error&&g.wt(d);case 8:J++;q={Eg:void 0};S.oY(2);break;case 4:throw t;}})}; v5_=function(k,p){k.T=p}; wSM=function(k){var p,t,J;return g.Q(function(q){if(q.T==1)return g.n(q,Promise.race([k.T,null]),2);p=q.Y;var F=Eh(k);k.T=F;(t=p)==null||(J=t.UX)==null||J.dispose();g.CS(q)})}; Uh=function(k,p){function t(){var q;return g.Q(function(F){q=J-Date.now();return q<1E3?g.n(F,wSM(k),0):(uk(t,0,Math.min(q,6E4)),F.oY(0))})} var J=Date.now()+p;t()}; i0L=function(k,p){return new Promise(function(t){g.lk(0,function(){t(p())},k)})}; g.QNi=function(k,p){var t;return g.Q(function(J){var q=g.hw("yt.aba.att");return(t=q?q:Sx.instance!==void 0?Sx.instance.N.bind(Sx.instance):null)?J.return(t("ENGAGEMENT_TYPE_PLAYBACK",k,p)):J.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.P70=function(){var k;return(k=(k=g.hw("yt.aba.att2"))?k:Sx.instance!==void 0?Sx.instance.C.bind(Sx.instance):null)?k():Promise.resolve(!1)}; IiL=function(k,p){var t=g.hw("ytDebugData.callbacks");t||(t={},g.eM("ytDebugData.callbacks",t));if(g.TQ("web_dd_iu")||GvM.includes(k))t[k]=p}; fQ=function(){var k=XSe;var p=p===void 0?[]:p;var t=t===void 0?[]:t;p=IHw.apply(null,[XUj.apply(null,g.m(p))].concat(g.m(t)));this.store=BZe(k,void 0,p)}; g.bo=function(k,p,t){for(var J=Object.assign({},k),q=g.Z(Object.keys(p)),F=q.next();!F.done;F=q.next()){F=F.value;var d=k[F],S=p[F];if(S===void 0)delete J[F];else if(d===void 0)J[F]=S;else if(Array.isArray(S)&&Array.isArray(d))J[F]=t?[].concat(g.m(d),g.m(S)):S;else if(!Array.isArray(S)&&g.lq(S)&&!Array.isArray(d)&&g.lq(d))J[F]=g.bo(d,S,t);else if(typeof S===typeof d)J[F]=S;else return p=new g.hm("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:F,z6y:d,updateValue:S}),g.nV(p), k}return J}; NP=function(k){var p=this;k=k===void 0?[]:k;this.sx=[];this.CU=this.MM=0;this.Ax=void 0;this.totalLength=0;k.forEach(function(t){p.append(t)})}; R20=function(k,p){return k.sx.length===0?!1:(k=k.sx[k.sx.length-1])&&k.buffer===p.buffer&&k.byteOffset+k.length===p.byteOffset}; yV=function(k,p){p=g.Z(p.sx);for(var t=p.next();!t.done;t=p.next())k.append(t.value)}; YU=function(k,p,t){return k.split(p).EU.split(t).lZ}; TM=function(k){k.Ax=void 0;k.MM=0;k.CU=0}; rK=function(k,p,t){k.isFocused(p);return p-k.CU+t<=k.sx[k.MM].length}; BOT=function(k){if(!k.Ax){var p=k.sx[k.MM];k.Ax=new DataView(p.buffer,p.byteOffset,p.length)}return k.Ax}; Zd=function(k,p,t){k=k.xN(p===void 0?0:p,t===void 0?-1:t);p=new Uint8Array(k.length);try{p.set(k)}catch(J){for(t=0;t<k.length;t++)p[t]=k[t]}return p}; z26=function(k,p){k.focus(p);return rK(k,p,4)?BOT(k).getUint32(p-k.CU):256*(256*(256*k.getUint8(p)+k.getUint8(p+1))+k.getUint8(p+2))+k.getUint8(p+3)}; e2q=function(k){for(var p=new Uint8Array(k.length),t=0;t<k.length;t++)p[t]=k.charCodeAt(t);return p}; Ac=function(k){return k.length?CQ?CQ.decode(k):String.fromCharCode.apply(null,k):""}; g.VV=function(k){if(!k.length)return"";try{if(CQ)return CQ.decode(k);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(k)}catch(d){}for(var p=0,t=[],J=k.length;p<J;){for(var q=0;q<1024&&p<J;){var F=k[p++];if(F<128)m_[q++]=F;else{if(F<224)F=(F&31)<<6|k[p++]&63;else if(F<240)F=(F&15)<<12|(k[p++]&63)<<6|k[p++]&63;else{if(q+1===1024){--p;break}F=(F&7)<<18|(k[p++]&63)<<12|(k[p++]&63)<<6|k[p++]&63;F-=65536;m_[q++]=55296|F>>10;F=56320|F&1023}m_[q++]=F}}F=String.fromCharCode.apply(String,m_); q<1024&&(F=F.substring(0,q));t.push(F)}return t.join("")}; Dd=function(k,p){var t;if((t=Wd)==null?0:t.encodeInto)return p=Wd.encodeInto(k,p),p.read<k.length?k.length*4:p.written;for(var J=t=0;J<k.length;J++){var q=k.charCodeAt(J);q<128?p[t++]=q:(q<2048?p[t++]=q>>6|192:((q&64512)===55296&&J+1<k.length&&(k.charCodeAt(J+1)&64512)===56320?(q=65536+((q&1023)<<10)+(k.charCodeAt(++J)&1023),p[t++]=q>>18|240,p[t++]=q>>12&63|128):p[t++]=q>>12|224,p[t++]=q>>6&63|128),p[t++]=q&63|128)}return t}; sh=function(k){if(Wd)return Wd.encode(k);var p=new Uint8Array(Math.ceil(k.length*1.2)),t=Dd(k,p);p.length<t&&(p=new Uint8Array(t),t=Dd(k,p));p.length>t&&(p=p.subarray(0,t));return p}; LQ=function(k){this.T=k;this.pos=0;this.Y=-1}; vd=function(k){var p=k.T.getUint8(k.pos);++k.pos;if(p<128)return p;for(var t=p&127,J=1;p>=128;)p=k.T.getUint8(k.pos),++k.pos,J*=128,t+=(p&127)*J;return t}; cd=function(k,p){var t=k.Y;for(k.Y=-1;k.T.BL(k.pos,1);){t<0&&(t=vd(k));var J=t>>3,q=t&7;if(J===p)return!0;if(J>p){k.Y=t;break}t=-1;switch(q){case 0:vd(k);break;case 1:k.pos+=8;break;case 2:J=vd(k);k.pos+=J;break;case 5:k.pos+=4}}return!1}; nQ=function(k,p){if(cd(k,p))return vd(k)}; wK=function(k,p){if(cd(k,p))return!!vd(k)}; io=function(k,p){if(cd(k,p)){p=vd(k);var t=k.T.xN(k.pos,p);k.pos+=p;return t}}; QV=function(k,p){if(k=io(k,p))return g.VV(k)}; Pd=function(k,p,t){if(k=io(k,p))return t(new LQ(new NP([k])))}; GM=function(k,p){for(var t=[];cd(k,p);)t.push(vd(k));return t.length?t:void 0}; II=function(k,p,t){for(var J=[],q;q=io(k,p);)J.push(t(new LQ(new NP([q]))));return J.length?J:void 0}; Xy=function(k,p){k=k instanceof Uint8Array?new NP([k]):k;return p(new LQ(k))}; h2j=function(k,p,t){if(p&&t&&t.buffer===p.exports.memory.buffer){var J=p.realloc(t.byteOffset,k);if(J)return new Uint8Array(p.exports.memory.buffer,J,k)}k=p?new Uint8Array(p.exports.memory.buffer,p.malloc(k),k):new Uint8Array(k);t&&k.set(t);return k}; ai6=function(k,p){this.gf=p;this.pos=0;this.Y=[];this.T=h2j(k===void 0?4096:k,p);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; RI=function(k,p){p=k.pos+p;if(!(k.T.length>=p)){for(var t=k.T.length*2;t<p;)t*=2;k.T=h2j(t,k.gf,k.T.subarray(0,k.pos));k.view=new DataView(k.T.buffer,k.T.byteOffset,k.T.byteLength)}}; Bd=function(k,p){if(p>268435455){RI(k,4);for(var t=p&1073741823,J=0;J<4;J++)k.view.setUint8(k.pos,t&127|128),t>>=7,k.pos+=1;p=Math.floor(p/268435456)}for(RI(k,4);p>127;)k.view.setUint8(k.pos,p&127|128),p>>=7,k.pos+=1;k.view.setUint8(k.pos,p);k.pos+=1}; zM=function(k,p,t){t!==void 0&&(Bd(k,p*8),Bd(k,t))}; ex=function(k,p,t){t!==void 0&&zM(k,p,t?1:0)}; hc=function(k,p,t){t!==void 0&&(Bd(k,p*8+2),p=t.length,Bd(k,p),RI(k,p),k.T.set(t,k.pos),k.pos+=p)}; aI=function(k,p,t){t!==void 0&&(MW0(k,p,Math.ceil(Math.log2(t.length*4+2)/7)),RI(k,t.length*1.2),p=Dd(t,k.T.subarray(k.pos)),k.pos+p>k.T.length&&(RI(k,p),p=Dd(t,k.T.subarray(k.pos))),k.pos+=p,g5e(k))}; MW0=function(k,p,t){t=t===void 0?2:t;Bd(k,p*8+2);k.Y.push(k.pos);k.Y.push(t);k.pos+=t}; g5e=function(k){for(var p=k.Y.pop(),t=k.Y.pop(),J=k.pos-t-p;p--;){var q=p?128:0;k.view.setUint8(t++,J&127|q);J>>=7}}; MP=function(k,p,t,J,q){t&&(MW0(k,p,q===void 0?3:q),J(k,t),g5e(k))}; g.gK=function(k,p,t){t=new ai6(4096,t);p(t,k);return new Uint8Array(t.T.buffer,t.T.byteOffset,t.pos)}; g.uo=function(k){var p=new LQ(new NP([Aj(decodeURIComponent(k))]));k=QV(p,2);p=nQ(p,4);var t=uBw[p];if(typeof t==="undefined")throw k=new g.hm("Failed to recognize field number",{name:"EntityKeyHelperError",JKT:p}),g.nV(k),k;return{k6:p,entityType:t,entityId:k}}; g.o0=function(k,p){var t=new ai6;hc(t,2,sh(k));k=li9[p];if(typeof k==="undefined")throw p=new g.hm("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:p}),g.nV(p),p;zM(t,4,k);zM(t,5,1);p=new Uint8Array(t.T.buffer,t.T.byteOffset,t.pos);return encodeURIComponent(g.Zn(p))}; q0=function(k,p,t,J){if(J===void 0)return J=Object.assign({},k[p]||{}),t=(delete J[t],J),J={},Object.assign({},k,(J[p]=t,J));var q={},F={};return Object.assign({},k,(F[p]=Object.assign({},k[p],(q[t]=J,q)),F))}; jNi=function(k,p,t,J,q){var F=k[p];if(F==null||!F[t])return k;J=g.bo(F[t],J,q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");q={};F={};return Object.assign({},k,(F[p]=Object.assign({},k[p],(q[t]=J,q)),F))}; O0w=function(k,p){k=k===void 0?{}:k;switch(p.type){case "ENTITY_LOADED":return p.payload.reduce(function(J,q){var F,d=(F=q.options)==null?void 0:F.persistenceOption;if(d&&d!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&d!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return J;if(!q.entityKey)return g.nV(Error("Missing entity key")),J;if(q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!q.payload)return g.nV(new g.hm("REPLACE entity mutation is missing a payload",{entityKey:q.entityKey})),J;var S=g.Vx(q.payload); return q0(J,S,q.entityKey,q.payload[S])}if(q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{q=q.entityKey;try{var U=g.uo(q).entityType;S=q0(J,U,q);break a}catch(N){if(N instanceof Error){g.nV(new g.hm("Failed to deserialize entity key",{entityKey:q,AO:N.message}));S=J;break a}throw N;}S=void 0}return S}if(q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!q.payload)return g.nV(new g.hm("UPDATE entity mutation is missing a payload",{entityKey:q.entityKey})),J;S=g.Vx(q.payload);var f,b;return jNi(J,S,q.entityKey, q.payload[S],(f=q.fieldMask)==null?void 0:(b=f.mergeOptions)==null?void 0:b.repeatedFieldsMergeOption)}return J},k); case "REPLACE_ENTITY":var t=p.payload;return q0(k,t.entityType,t.key,t.V1);case "REPLACE_ENTITIES":return Object.keys(p.payload).reduce(function(J,q){var F=p.payload[q];return Object.keys(F).reduce(function(d,S){return q0(d,q,S,F[S])},J)},k); case "UPDATE_ENTITY":return t=p.payload,jNi(k,t.entityType,t.key,t.V1,t.Wph);default:return k}}; FG=function(k,p,t){return k[p]?k[p][t]||null:null}; $i=function(k){return window.Int32Array?new Int32Array(k):Array(k)}; bN=function(k){g.R.call(this);this.counter=[0,0,0,0];this.Y=new Uint8Array(16);this.T=16;if(!KYq){var p,t=new Uint8Array(256),J=new Uint8Array(256);var q=1;for(p=0;p<256;p++)t[q]=p,J[p]=q,q^=q<<1^(q>>7&&283);dL=new Uint8Array(256);Er=$i(256);SK=$i(256);Ur=$i(256);ff=$i(256);for(var F=0;F<256;F++){q=F?J[255^t[F]]:0;q^=q<<1^q<<2^q<<3^q<<4;q=q&255^q>>>8^99;dL[F]=q;p=q<<1^(q>>7&&283);var d=p^q;Er[F]=p<<24|q<<16|q<<8|d;SK[F]=d<<24|Er[F]>>>8;Ur[F]=q<<24|SK[F]>>>8;ff[F]=q<<24|Ur[F]>>>8}KYq=!0}q=$i(44);for(t= 0;t<4;t++)q[t]=k[4*t]<<24|k[4*t+1]<<16|k[4*t+2]<<8|k[4*t+3];for(J=1;t<44;t++)k=q[t-1],t%4||(k=(dL[k>>16&255]^J)<<24|dL[k>>8&255]<<16|dL[k&255]<<8|dL[k>>>24],J=J<<1^(J>>7&&283)),q[t]=q[t-4]^k;this.key=q}; N0=function(k,p){for(var t=0;t<4;t++)k.counter[t]=p[t*4]<<24|p[t*4+1]<<16|p[t*4+2]<<8|p[t*4+3];k.T=16}; H0w=function(k){for(var p=k.key,t=k.counter[0]^p[0],J=k.counter[1]^p[1],q=k.counter[2]^p[2],F=k.counter[3]^p[3],d=3;d>=0&&!(k.counter[d]=-~k.counter[d]);d--);for(var S,U,f=4;f<40;)d=Er[t>>>24]^SK[J>>16&255]^Ur[q>>8&255]^ff[F&255]^p[f++],S=Er[J>>>24]^SK[q>>16&255]^Ur[F>>8&255]^ff[t&255]^p[f++],U=Er[q>>>24]^SK[F>>16&255]^Ur[t>>8&255]^ff[J&255]^p[f++],F=Er[F>>>24]^SK[t>>16&255]^Ur[J>>8&255]^ff[q&255]^p[f++],t=d,J=S,q=U;k=k.Y;d=p[40];k[0]=dL[t>>>24]^d>>>24;k[1]=dL[J>>16&255]^d>>16&255;k[2]=dL[q>>8&255]^ d>>8&255;k[3]=dL[F&255]^d&255;d=p[41];k[4]=dL[J>>>24]^d>>>24;k[5]=dL[q>>16&255]^d>>16&255;k[6]=dL[F>>8&255]^d>>8&255;k[7]=dL[t&255]^d&255;d=p[42];k[8]=dL[q>>>24]^d>>>24;k[9]=dL[F>>16&255]^d>>16&255;k[10]=dL[t>>8&255]^d>>8&255;k[11]=dL[J&255]^d&255;d=p[43];k[12]=dL[F>>>24]^d>>>24;k[13]=dL[t>>16&255]^d>>16&255;k[14]=dL[J>>8&255]^d>>8&255;k[15]=dL[q&255]^d&255}; TX=function(){if(!yO&&!g.ag){if(Yi)return Yi;var k;Yi=(k=window.crypto)==null?void 0:k.subtle;var p,t,J;if(((p=Yi)==null?0:p.importKey)&&((t=Yi)==null?0:t.sign)&&((J=Yi)==null?0:J.encrypt))return Yi;Yi=void 0}}; g.rL=function(k){this.C=k}; g.Z6=function(k){this.Y=k}; Cf=function(k){this.X=new Uint8Array(64);this.N=new Uint8Array(64);this.C=0;this.S=new Uint8Array(64);this.Y=0;this.X.set(k);this.N.set(k);for(k=0;k<64;k++)this.X[k]^=92,this.N[k]^=54;this.reset()}; x1M=function(k,p,t){for(var J=k.Z,q=k.T[0],F=k.T[1],d=k.T[2],S=k.T[3],U=k.T[4],f=k.T[5],b=k.T[6],N=k.T[7],y,Y,T,A=0;A<64;)A<16?(J[A]=T=p[t]<<24|p[t+1]<<16|p[t+2]<<8|p[t+3],t+=4):(y=J[A-2],Y=J[A-15],T=J[A-7]+J[A-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),J[A]=T),y=N+A$[A]+T+((U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7))+(U&f^~U&b),Y=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&F^q&d^F&d),N=y+Y,S+=y,A++,A<16?(J[A]=T=p[t]<<24|p[t+1]<<16|p[t+2]<<8|p[t+3],t+=4):(y= J[A-2],Y=J[A-15],T=J[A-7]+J[A-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),J[A]=T),y=b+A$[A]+T+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&U^~S&f),Y=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&q^N&F^q&F),b=y+Y,d+=y,A++,A<16?(J[A]=T=p[t]<<24|p[t+1]<<16|p[t+2]<<8|p[t+3],t+=4):(y=J[A-2],Y=J[A-15],T=J[A-7]+J[A-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),J[A]=T),y=f+A$[A]+T+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&S^ ~d&U),Y=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&N^b&q^N&q),f=y+Y,F+=y,A++,A<16?(J[A]=T=p[t]<<24|p[t+1]<<16|p[t+2]<<8|p[t+3],t+=4):(y=J[A-2],Y=J[A-15],T=J[A-7]+J[A-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3),J[A]=T),y=U+A$[A]+T+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&d^~F&S),Y=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&b^f&N^b&N),T=N,N=S,S=T,T=b,b=d,d=T,T=f,f=F,F=T,U=q+y,q=y+Y,A++;k.T[0]=q+k.T[0]|0;k.T[1]=F+k.T[1]|0;k.T[2]=d+k.T[2]|0;k.T[3]= S+k.T[3]|0;k.T[4]=U+k.T[4]|0;k.T[5]=f+k.T[5]|0;k.T[6]=b+k.T[6]|0;k.T[7]=N+k.T[7]|0}; pBq=function(k){var p=new Uint8Array(32),t=64-k.Y;k.Y>55&&(t+=64);var J=new Uint8Array(t);J[0]=128;for(var q=k.C*8,F=1;F<9;F++){var d=q%256;J[t-F]=d;q=(q-d)/256}k.update(J);for(t=0;t<8;t++)p[t*4]=k.T[t]>>>24,p[t*4+1]=k.T[t]>>>16&255,p[t*4+2]=k.T[t]>>>8&255,p[t*4+3]=k.T[t]&255;kD_(k);return p}; kD_=function(k){k.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];k.Z=[];k.Z.length=64;k.C=0;k.Y=0}; t3i=function(k){this.T=k}; Jzi=function(k,p,t){k=new Cf(k.T);k.update(p);k.update(t);p=pBq(k);k.update(k.X);k.update(p);p=pBq(k);k.reset();return p}; oK_=function(k){this.Y=k}; qN9=function(k,p,t,J){var q,F,d;return g.Q(function(S){switch(S.T){case 1:if(k.T){S.oY(2);break}return g.n(S,J.importKey("raw",k.Y,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:k.T=S.Y;case 2:return q=new Uint8Array(p.length+t.length),q.set(p),q.set(t,p.length),F={name:"HMAC",hash:"SHA-256"},g.n(S,J.sign(F,k.T,q),4);case 4:return d=S.Y,S.return(new Uint8Array(d))}})}; FP9=function(k,p,t){k.N||(k.N=new t3i(k.Y));return Jzi(k.N,p,t)}; $Z6=function(k,p,t){var J,q;return g.Q(function(F){if(F.T==1){J=TX();if(!J)return F.return(FP9(k,p,t));g.Aw(F,3);return g.n(F,qN9(k,p,t,J),5)}if(F.T!=3)return F.return(F.Y);q=g.W9(F);g.wt(q);yO=!0;return F.return(FP9(k,p,t))})}; EKi=function(k){for(var p="",t=0;t<k.length;t++){var J=k[t];if(t===0)J="M "+J.x.toFixed(1)+","+J.y.toFixed(1);else{var q=dZu(k[t-1],k[t-2],J),F=dZu(J,k[t-1],k[t+1],!0);J=" C "+(q.x.toFixed(1)+","+q.y.toFixed(1)+" "+F.x.toFixed(1)+","+F.y.toFixed(1)+" "+J.x.toFixed(1)+","+J.y.toFixed(1))}p+=J}return p}; dZu=function(k,p,t,J){J=J===void 0?!1:J;p=new SNq(p||k,t||k);return{x:k.x+((J===void 0?0:J)?p.T*-1:p.T)*.2,y:k.y+((J===void 0?0:J)?p.Y*-1:p.Y)*.2}}; SNq=function(k,p){this.Y=this.T=0;this.T=p.x-k.x;this.Y=p.y-k.y}; bV_=function(k,p){var t,J,q;return g.Q(function(F){if(F.T==1)return t={context:g.uS(),settingItemIds:p},J=g.Oy(UZi),g.n(F,g.MT(k,t,J),2);q=F.Y;return!q||q.errorMetadata?(feL("GetSettingValuesRequest",q),F.return(void 0)):F.return(q.settingValues)})}; yzL=function(k,p,t){var J,q,F;g.Q(function(d){if(d.T==1)return J={context:g.uS(),settingItemId:p,newValue:t},q=g.Oy(Nt6),g.n(d,g.MT(k,J,q),2);F=d.Y;if(!F||F.errorMetadata)return feL("SetSettingRequest",F),d.return(void 0);g.CS(d)})}; feL=function(k,p){p?p.errorMetadata&&g.wt(new g.hm(k+" failed with status "+p.errorMetadata.status)):g.wt(new g.hm(k+" failed with empty response"))}; mX=function(k,p,t){if(!p)return k.length>=1?k[k.length-1]:null;for(var J=g.Z(k),q=J.next();!q.done;q=J.next())if(q=q.value,q.width&&q.height&&(t&&q.width>=p||!t&&q.height>=p))return q;for(p=k.length-1;p>=0;p--)if(t&&k[p].width||!t&&k[p].height)return k[p];return k[0]}; VO=function(){this.state=1;this.UX=null;this.NA=void 0}; Ttw=function(k,p,t,J,q,F){var d=d===void 0?"trayride":d;t?(k.cH(2),g.q1(t,function(){if(window[d])YN9(k,J,d,q);else{k.cH(3);var S=QY6(t),U=document.getElementById(S);U&&(wwj(S),U.parentNode.removeChild(U));g.wt(new g.hm("Unable to load Botguard","from "+t))}},F)):p?(F=g.kW("SCRIPT"),p instanceof z3?(F.textContent=ec(p),hY(F)):F.textContent=p,F.nonce=BH(document),document.head.appendChild(F),document.head.removeChild(F),window[d]?YN9(k,J,d,q):(k.cH(4),g.wt(new g.hm("Unable to load Botguard from JS")))): g.wt(new g.hm("Unable to load VM; no url or JS provided"))}; YN9=function(k,p,t,J){k.cH(5);var q=!!k.NA&&rz0.includes(g.Iq(k.NA)||"");try{var F=new Yz({program:p,globalName:t,qF:{disable:!g.TQ("att_web_record_metrics")||!g.TQ("att_skip_metrics_for_cookieless_domains_ks")&&q,nH:"aGIf"}});F.FJ.then(function(){k.cH(6);J&&J(p)}); k.qe(F)}catch(d){k.cH(7),d instanceof Error&&g.wt(d)}}; WV=function(){var k=g.hw("yt.abuse.playerAttLoader");return k&&["bgvma","bgvmb","bgvmc"].every(function(p){return p in k})?k:null}; D6=function(){VO.apply(this,arguments)}; sr=function(){}; ZVw=function(k,p,t){for(var J=!1,q=g.Z(k.K7.entries()),F=q.next();!F.done;F=q.next())F=g.Z(F.value).next().value,F.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F.hp==="core"&&(J=!0);if(J){a:if(!t){k=g.Z(k.K7.entries());for(t=k.next();!t.done;t=k.next())if(J=g.Z(t.value),t=J.next().value,J=J.next().value,t.slotType==="SLOT_TYPE_IN_PLAYER"&&t.hp==="core"){t=J.layoutId;break a}t=void 0}t?p.Xt(t):d3("No triggering layout ID available when attempting to mute.")}}; Lf=function(k,p){this.Ga=k;this.KK=p}; vV=function(){}; cV=function(){}; Azj=function(k){g.R.call(this);var p=this;this.tj=k;this.T=new Map;nf(this,"commandExecutorCommand",function(t,J,q){CRw(p,t.commands,J,q)}); nf(this,"clickTrackingParams",function(){})}; mZL=function(k,p){nf(k,p.dP(),function(t,J,q){p.BY(t,J,q)})}; nf=function(k,p,t){k.MO();k.T.get(p)&&g.nV(Error("Extension name "+p+" already registered"));k.T.set(p,t)}; CRw=function(k,p,t,J){p=p===void 0?[]:p;k.MO();var q=[],F=[];p=g.Z(p);for(var d=p.next();!d.done;d=p.next())d=d.value,g.e(d,V3i)||g.e(d,WPi)?q.push(d):F.push(d);q=g.Z(q);for(p=q.next();!p.done;p=q.next())wL(k,p.value,t,J);F=g.Z(F);for(q=F.next();!q.done;q=F.next())wL(k,q.value,t,J)}; wL=function(k,p,t,J){k.MO();p.loggingUrls&&DZi(k,"loggingUrls",p.loggingUrls,t,J);p=g.Z(Object.entries(p));for(var q=p.next();!q.done;q=p.next()){var F=g.Z(q.value);q=F.next().value;F=F.next().value;q==="openPopupAction"?k.tj.get().Dt("innertubeCommand",{openPopupAction:F}):q==="confirmDialogEndpoint"?k.tj.get().Dt("innertubeCommand",{confirmDialogEndpoint:F}):slh.hasOwnProperty(q)||DZi(k,q,F,t,J)}}; DZi=function(k,p,t,J,q){if((k=k.T.get(p))&&typeof k==="function")try{k(t,J,q)}catch(F){g.nV(F)}else p=new g.hm("Unhandled field",p),g.wt(p)}; iN=function(k,p,t){this.Ex=k;this.T=p;this.mS=t}; QO=function(k){this.value=k}; PV=function(k){this.value=k}; GX=function(k){this.value=k}; I0=function(k){this.value=k}; XG=function(k){this.value=k}; R0=function(k){this.value=k}; BV=function(k){this.value=k}; zX=function(){QO.apply(this,arguments)}; eK=function(k){this.value=k}; h$=function(k){this.value=k}; a0=function(k){this.value=k}; M0=function(k){this.value=k}; gL=function(k){this.value=k}; uN=function(k){this.value=k}; lN=function(k){this.value=k}; jK=function(k){this.value=k}; Or=function(k){this.value=k}; Kf=function(k){this.value=k}; HV=function(){QO.apply(this,arguments)}; xi=function(k){this.value=k}; k0=function(k){this.value=k}; po=function(k){this.value=k}; to=function(k){this.value=k}; Jo=function(k){this.value=k}; oA=function(k){this.value=k}; qG=function(k){this.value=k}; FU=function(k){this.value=k}; $0=function(k){this.value=k}; dA=function(k){this.value=k}; Ea=function(k){this.value=k}; S$=function(k){this.value=k}; Ua=function(k){this.value=k}; fo=function(k){this.value=k}; bd=function(k){this.value=k}; NG=function(k){this.value=k}; y7=function(k){this.value=k}; Y0=function(k){this.value=k}; Tn=function(k){this.value=k}; rA=function(k){this.value=k}; Z$=function(k){this.value=k}; Co=function(k){this.value=k}; Ao=function(k){this.value=k}; m3=function(k){this.value=k}; V7=function(k){this.value=k}; WX=function(k){this.value=k}; D$=function(k){this.value=k}; sa=function(k){this.value=k}; Lo=function(k){this.value=k}; vX=function(k){this.value=k}; cX=function(k){this.value=k}; no=function(k){this.value=k}; wA=function(k){this.value=k}; id=function(k){this.value=k}; Q7=function(k){this.value=k}; PX=function(k){this.value=k}; Gn=function(k){this.value=k}; IA=function(k){this.value=k}; XU=function(){QO.apply(this,arguments)}; RA=function(k){this.value=k}; BX=function(){QO.apply(this,arguments)}; zn=function(){QO.apply(this,arguments)}; e$=function(){QO.apply(this,arguments)}; ho=function(){QO.apply(this,arguments)}; aA=function(){QO.apply(this,arguments)}; MG=function(k){this.value=k}; gA=function(k){this.value=k}; ud=function(k){this.value=k}; ld=function(k){this.value=k}; j$=function(k){this.value=k}; Ko=function(k,p,t){if(t&&!t.includes(k.layoutType))return!1;p=g.Z(p);for(t=p.next();!t.done;t=p.next())if(!Oa(k.clientMetadata,t.value))return!1;return!0}; HX=function(){return""}; LP9=function(k,p){switch(k){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 p(k),8}}; x0=function(k,p,t,J){J=J===void 0?!1:J;rq.call(this,k);this.RD=t;this.yl=J;this.args=[];p&&this.args.push(p)}; K=function(k,p,t,J){J=J===void 0?!1:J;rq.call(this,k);this.RD=t;this.yl=J;this.args=[];p&&this.args.push(p)}; kf=function(k){var p=new Map;k.forEach(function(t){p.set(t.getType(),t)}); this.T=p}; Oa=function(k,p){return k.T.has(p)}; pk=function(k,p){k=k.T.get(p);if(k!==void 0)return k.get()}; t9=function(k){return Array.from(k.T.keys())}; J9=function(k,p,t){if(t&&t!==k.slotType)return!1;p=g.Z(p);for(t=p.next();!t.done;t=p.next())if(!Oa(k.clientMetadata,t.value))return!1;return!0}; czq=function(k){var p;return((p=vKL.get(k))==null?void 0:p.V9)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; qU=function(k,p){var t={type:p.slotType,controlFlowManagerLayer:nK_.get(p.hp)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p.slotEntryTrigger&&(t.entryTriggerType=p.slotEntryTrigger.triggerType);p.slotPhysicalPosition!==1&&(t.slotPhysicalPosition=p.slotPhysicalPosition);if(k){t.debugData={slotId:p.slotId};if(k=p.slotEntryTrigger)t.debugData.slotEntryTriggerData=oc(k);k=p.slotFulfillmentTriggers;t.debugData.fulfillmentTriggerData=[];k=g.Z(k);for(var J=k.next();!J.done;J=k.next())t.debugData.fulfillmentTriggerData.push(oc(J.value)); p=p.slotExpirationTriggers;t.debugData.expirationTriggerData=[];p=g.Z(p);for(k=p.next();!k.done;k=p.next())t.debugData.expirationTriggerData.push(oc(k.value))}return t}; wBq=function(k,p){var t={type:p.layoutType,controlFlowManagerLayer:nK_.get(p.hp)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};k&&(t.debugData={layoutId:p.layoutId});return t}; oc=function(k,p){var t={type:k.triggerType};p!=null&&(t.category=p);k.triggeringSlotId!=null&&(t.triggerSourceData||(t.triggerSourceData={}),t.triggerSourceData.associatedSlotId=k.triggeringSlotId);k.triggeringLayoutId!=null&&(t.triggerSourceData||(t.triggerSourceData={}),t.triggerSourceData.associatedLayoutId=k.triggeringLayoutId);return t}; iVh=function(k,p,t,J){p={opportunityType:p};k&&(J||t)&&(J=g.DR(J||[],function(q){return qU(k,q)}),p.debugData=Object.assign({},t&&t.length>0?{associatedSlotId:t}:{},J.length>0?{slots:J}:{})); return p}; $f=function(k,p){return function(t){return Ql0(FT(k),p.slotId,p.slotType,p.slotPhysicalPosition,p.hp,p.slotEntryTrigger,p.slotFulfillmentTriggers,p.slotExpirationTriggers,t.layoutId,t.layoutType,t.hp)}}; Ql0=function(k,p,t,J,q,F,d,S,U,f,b){return{adClientDataEntry:{slotData:qU(k,{slotId:p,slotType:t,slotPhysicalPosition:J,hp:q,slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:S,clientMetadata:new kf([])}),layoutData:wBq(k,{layoutId:U,layoutType:f,hp:b,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],YI:new Map,clientMetadata:new kf([]),lG:{}})}}}; Eq=function(k){this.uh=k;k=Math.random();var p=this.uh.get();p=g.dU(p.j.G().experiments,"html5_debug_data_log_probability");p=Number.isFinite(p)&&p>=0&&p<=1?p:0;this.T=k<p}; FT=function(k){return k.T||k.uh.get().j.G().D("html5_force_debug_data_for_client_tmp_logs")}; SC=function(k,p,t,J){g.R.call(this);this.Y=p;this.Xd=t;this.uh=J;this.T=k(this,this,this,this,this);g.z(this,this.T);k=g.Z(p);for(p=k.next();!p.done;p=k.next())g.z(this,p.value)}; Uq=function(k,p){k.Y.add(p)}; fk=function(k,p){k.Y.delete(p)}; NU=function(k,p,t,J){d3(t,p,void 0,void 0,t.yl);t.RD?k.Xd.o9(J,t.RD,p):d3("adsClientErrorMessage is missing.",p);bY(k,p,!0)}; GDL=function(k,p,t){if(yE(k.T,p))if(Yf(k.T,p).C=t?"filled":"not_filled",t===null){k.Xd.LL("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",p);t=g.Z(k.Y);for(var J=t.next();!J.done;J=t.next())J.value.xi(p);bY(k,p,!1)}else{k.Xd.LL("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",p,t);k.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",p,t);var q,F=(q=t.N8)!=null?q:pk(t.clientMetadata,"metadata_type_sub_layouts");if(F)for(q=g.Z(F),F=q.next();!F.done;F=q.next())k.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", p,F.value);q=g.Z(k.Y);for(F=q.next();!F.done;F=q.next())F.value.Rs(p);if(yE(k.T,p))if(Yf(k.T,p).X)bY(k,p,!1);else{k.Xd.LL("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",p,t);try{J=k.T;if(!Yf(J,p))throw new x0("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!J.XI.ND.get(p.slotType))throw new x0("No LayoutRenderingAdapterFactory registered for slot of type: "+p.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(t.layoutExitNormalTriggers.length==0&&t.layoutExitSkipTriggers.length==0&&t.layoutExitMuteTriggers.length==0&&t.layoutExitUserInputSubmittedTriggers.length==0&&t.l3.length==0)throw new x0("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");Tk(J,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",t.layoutExitNormalTriggers);Tk(J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",t.layoutExitSkipTriggers);Tk(J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",t.layoutExitMuteTriggers); Tk(J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",t.layoutExitUserInputSubmittedTriggers);Tk(J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",t.l3)}catch(f){f instanceof x0?k.Tt(p,t,f,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):k.Tt(p,t,new x0("Unexpected error: "+f,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");bY(k,p,!0);return}Yf(k.T,p).S=!0;try{var d=k.T,S=Yf(d,p),U=d.XI.ND.get(p.slotType).get().build(d.C,d.Y,p,t);U.init();S.layout= t;if(S.N)throw new x0("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");S.N=U;rU(d,S,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",t.layoutExitNormalTriggers);rU(d,S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",t.layoutExitSkipTriggers);rU(d,S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",t.layoutExitMuteTriggers);rU(d,S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",t.layoutExitUserInputSubmittedTriggers);rU(d,S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", t.l3)}catch(f){ZJ(k,p);f instanceof x0?k.Tt(p,t,f,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):k.Tt(p,t,new x0("Unexpected error: "+f,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");bY(k,p,!0);return}k.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",p,t);J=g.Z(k.Y);for(d=J.next();!d.done;d=J.next())d.value.gj(p,t);ZJ(k,p);PRL(k,p)}else k=k.uh.get(),g.Ck(k.j.G())||A9(k.j.G())||g.mq(k.j.G())?k=!0:(d3("Composite VOD on legacy path."),k=!1),k&&d3("slot is unscheduled after been fulfilled.", p,t)}}; Ie0=function(k,p,t){p.hp!=="core"&&k.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",p,t,void 0)}; XB0=function(k,p,t){k.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",p,t,void 0);k=g.Z(k.Y);for(var J=k.next();!J.done;J=k.next())J.value.gj(p,t)}; Rh6=function(k,p,t){k=g.Z(k.Y);for(var J=k.next();!J.done;J=k.next())J.value.ox(p,t)}; VE=function(k,p,t){k.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",p,t,void 0);k=g.Z(k.Y);for(var J=k.next();!J.done;J=k.next())J.value.Hp(p,t)}; W1=function(k,p,t,J){k.Xd.LL(czq(J),p,t,void 0);k=g.Z(k.Y);for(var q=k.next();!q.done;q=k.next())q.value.PH(p,t,J)}; ZJ=function(k,p){if(yE(k.T,p)){Yf(k.T,p).S=!1;var t=DJ;p=Yf(k.T,p);var J=[].concat(g.m(p.B));Kj_(p.B);t(k,J)}}; DJ=function(k,p){p.sort(function(F,d){function S(U){d3("TriggerCategoryOrder enum does not contain trigger category: "+U)} return F.category===d.category?F.trigger.triggerId.localeCompare(d.trigger.triggerId):LP9(F.category,S)-LP9(d.category,S)}); var t=new Map;p=g.Z(p);for(var J=p.next();!J.done;J=p.next())if(J=J.value,yE(k.T,J.slot))if(Yf(k.T,J.slot).S)Yf(k.T,J.slot).B.push(J);else{k.Xd.XL("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",J.slot,J,J.layout);var q=t.get(J.category);q||(q=[]);q.push(J);t.set(J.category,q)}p=g.Z(Bt_);for(J=p.next();!J.done;J=p.next())q=g.Z(J.value),J=q.next().value,q=q.next().value,(J=t.get(J))&&zhw(k,J,q);(p=t.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&eh_(k,p);(p=t.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&hhL(k, p);(t=t.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&aee(k,t)}; zhw=function(k,p,t){p=g.Z(p);for(var J=p.next();!J.done;J=p.next())J=J.value,J.layout&&sq(k.T,J.slot)&&M3q(k,J.slot,J.layout,t)}; eh_=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next())bY(k,t.value.slot,!1)}; hhL=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;a:switch(Yf(k.T,t.slot).C){case "not_filled":var J=!0;break a;default:J=!1}J&&(k.Xd.Ay("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",t.slot),k.T.Yr(t.slot))}}; aee=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;k.Xd.Ay("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",t.slot);for(var J=g.Z(k.Y),q=J.next();!q.done;q=J.next())q.value.O7(t.slot);try{var F=k.T,d=t.slot,S=Yf(F,d);if(!S)throw new K("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!S.Y)throw new K("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(S.T!=="scheduled")throw new K("Tried to enter a slot from stage: "+ S.T,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(Lk(S))throw new K("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var U=g.Z(v1(F,d.slotType+"_"+d.slotPhysicalPosition).values()),f=U.next();!f.done;f=U.next()){var b=f.value;if(S!==b&&Lk(b))throw new K("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:b.T},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(N){N instanceof K&&N.RD?(k.Xd.o9("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED", N.RD,t.slot),d3(N,t.slot,c1(k.T,t.slot),void 0,N.yl)):(k.Xd.o9("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t.slot),d3(N,t.slot));bY(k,t.slot,!0);continue}t=Yf(k.T,t.slot);t.T!=="scheduled"&&nk(t.slot,t.T,"enterSlot");t.T="enter_requested";t.Y.eT()}}; PRL=function(k,p){if(yE(k.T,p)&&Lk(Yf(k.T,p))&&c1(k.T,p)&&!sq(k.T,p)){var t;k.Xd.LL("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",p,(t=c1(k.T,p))!=null?t:void 0);k=Yf(k.T,p);k.T!=="entered"&&nk(k.slot,k.T,"enterLayoutForSlot");k.T="rendering";k.N.startRendering(k.layout)}}; M3q=function(k,p,t,J){if(yE(k.T,p)){var q=k.Xd,F=q.LL,d;var S=((d=vKL.get(J))==null?void 0:d.mJ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";F.call(q,S,p,t);k=Yf(k.T,p);k.T!=="rendering"&&nk(k.slot,k.T,"exitLayout");k.T="rendering_stop_requested";k.N.au(t,J)}}; bY=function(k,p,t){if(yE(k.T,p)){a:switch(Yf(k.T,p).T){case "exit_requested":var J=!0;break a;default:J=!1}if(!J)a:switch(Yf(k.T,p).T){case "rendering_stop_requested":J=!0;break a;default:J=!1}if(J&&(Yf(k.T,p).X=!0,!t))return;if(Lk(Yf(k.T,p)))Yf(k.T,p).X=!0,gKS(k,p,t);else{a:switch(Yf(k.T,p).C){case "fill_requested":t=!0;break a;default:t=!1}if(t)Yf(k.T,p).X=!0,yE(k.T,p)&&(k.Xd.Ay("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",p),p=Yf(k.T,p),p.C="fill_cancel_requested",p.Z.mI());else{t= c1(k.T,p);(J=k.uh.get().j.G().experiments.Gb("h5_enable_layout_unscheduling_events"))&&(t?k.ox(p,t):d3(Error("Layout is null for LayoutUnscheduled event."),p,t,void 0,!1));k.Xd.Ay("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",p);var q=Yf(k.T,p),F=p.slotEntryTrigger,d=q.NO.get(F.triggerId);d&&(d.LU(F),q.NO.delete(F.triggerId));F=g.Z(p.slotFulfillmentTriggers);for(d=F.next();!d.done;d=F.next()){d=d.value;var S=q.gy.get(d.triggerId);S&&(S.LU(d),q.gy.delete(d.triggerId))}F=g.Z(p.slotExpirationTriggers); for(d=F.next();!d.done;d=F.next())if(d=d.value,S=q.L.get(d.triggerId))S.LU(d),q.L.delete(d.triggerId);q.layout!=null&&(F=q.layout,wU(q,F.layoutExitNormalTriggers),wU(q,F.layoutExitSkipTriggers),wU(q,F.layoutExitMuteTriggers),wU(q,F.layoutExitUserInputSubmittedTriggers),wU(q,F.l3));q.Z=void 0;q.Y!=null&&(q.Y.release(),q.Y=void 0);q.N!=null&&(q.N.release(),q.N=void 0);q=k.T;Yf(q,p)&&(q=v1(q,p.slotType+"_"+p.slotPhysicalPosition))&&q.delete(p.slotId);k.Xd.Ay("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", p);k=g.Z(k.Y);for(q=k.next();!q.done;q=k.next())q=q.value,q.bD(p),t&&!J&&q.ox(p,t)}}}}; gKS=function(k,p,t){if(yE(k.T,p)&&Lk(Yf(k.T,p))){var J=c1(k.T,p);if(J&&sq(k.T,p))M3q(k,p,J,t?"error":"abandoned");else{k.Xd.Ay("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",p);try{var q=Yf(k.T,p);if(!q)throw new K("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");q.T!=="enter_requested"&&q.T!=="entered"&&q.T!=="rendering"&&nk(q.slot,q.T,"exitSlot");q.T="exit_requested";if(q.Y===void 0)throw q.T="scheduled",new K("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");q.Y.hq()}catch(F){F instanceof K&&F.RD?(k.Xd.o9("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",F.RD,p),d3(F,p,void 0,void 0,F.yl)):(k.Xd.o9("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",p),d3(F,p))}}}}; u_S=function(k){this.slot=k;this.NO=new Map;this.gy=new Map;this.L=new Map;this.Y8=new Map;this.N=this.layout=this.Y=this.Z=void 0;this.S=this.X=!1;this.B=[];this.T="not_scheduled";this.C="not_filled"}; Lk=function(k){return k.T==="enter_requested"||k.isActive()}; iY=function(k,p,t,J,q,F){g.R.call(this);this.XI=k;this.N=p;this.X=t;this.C=J;this.Y=q;this.uh=F;this.T=new Map}; v1=function(k,p){return(k=k.T.get(p))?k:new Map}; Yf=function(k,p){return v1(k,p.slotType+"_"+p.slotPhysicalPosition).get(p.slotId)}; lej=function(k){var p=[];k.T.forEach(function(t){t=g.Z(t.values());for(var J=t.next();!J.done;J=t.next())p.push(J.value.slot)}); return p}; yE=function(k,p){return Yf(k,p)!=null}; sq=function(k,p){k=Yf(k,p);if(p=k.layout!=null)a:switch(k.T){case "rendering":case "rendering_stop_requested":p=!0;break a;default:p=!1}return p}; c1=function(k,p){(k=Yf(k,p))?k.layout!=null&&!k.layout&&d3("Unexpected empty layout",p):d3("Unexpected undefined slotState",p);return(k==null?void 0:k.layout)||null}; QE=function(k,p,t){if(t.length==0)throw new K("No "+jlS.get(p)+" triggers found for slot.",void 0,OVq(p));t=g.Z(t);for(var J=t.next();!J.done;J=t.next())if(J=J.value,!k.XI.jB.get(J.triggerType))throw new K("No trigger adapter registered for "+p+" trigger of type: "+J.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; OVq=function(k){switch(k){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; Tk=function(k,p,t){t=g.Z(t);for(var J=t.next();!J.done;J=t.next())if(J=J.value,!k.XI.jB.get(J.triggerType))throw new x0("No trigger adapter registered for "+jlS.get(p)+" trigger of type: "+J.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; rU=function(k,p,t,J){J=g.Z(J);for(var q=J.next();!q.done;q=J.next()){q=q.value;var F=k.XI.jB.get(q.triggerType);F.z6(t,q,p.slot,p.layout?p.layout:null);p.Y8.set(q.triggerId,F)}}; wU=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;var J=k.Y8.get(t.triggerId);J&&(J.LU(t),k.Y8.delete(t.triggerId))}}; nk=function(k,p,t){d3("Slot stage was "+p+" when calling method "+t,k)}; KP0=function(k){return P1(k.hd).concat(P1(k.jB)).concat(P1(k.hV)).concat(P1(k.HO)).concat(P1(k.ND))}; P1=function(k){var p=[];k=g.Z(k.values());for(var t=k.next();!t.done;t=k.next())t=t.value,t.rj&&p.push(t);return p}; Gk=function(k){g.R.call(this);var p=this;this.T=k;this.instance=null;this.addOnDisposeCallback(function(){g.ER(p.instance);p.instance=null})}; Ic=function(k){return new Gk(k)}; XT=function(k){g.R.call(this);this.T=k;this.Y=HVq(this)}; HVq=function(k){var p=new SC(function(t,J,q,F){return new iY(k.T.XI,t,J,q,F,k.T.uh)},new Set(KP0(k.T.XI).concat(k.T.listeners)),k.T.Xd,k.T.uh); g.z(k,p);return p}; Rc=function(k){this.T=k}; B1=function(k,p,t){CRw(k.T(),p,t)}; zk=function(k,p,t,J){(k=k.T())||d3("Could not initiate a command router instance.");wL(k,p,t,J)}; eC=function(){this.listeners=new Set}; h9=function(k){this.uh=k}; xZi=function(k,p){var t=p.bgp&&p.bgub,J=!!p.upb;p.siub&&p.scs&&(t||J)&&(J&&ac(k.uh.get(),"html5_export_sodar_snapshot")?L2().then(function(q){q=q.snapshot.bind(q);g.eM("yt.abuse.playerAttLoaderRun",q);$Jw(p.siub,p.scs,p.bgub,p.bgp,p.upb)}):$Jw(p.siub,p.scs,p.bgub,p.bgp,p.upb))}; ks_=function(k,p,t,J,q){this.callback=k;this.slot=p;this.Y=t;this.y4=J;this.uh=q;this.T=null}; tAi=function(k,p,t,J){k.T&&d3("Currently active request ongoing for slot. This should never happen",k.slot);k.T=p();k.T.then(function(q){k.T=null;J&&J(q);var F=q.Zj?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",d=k.Y.get(),S=k.slot.slotId,U=$f(k.y4.get(),{slotId:k.slot.slotId,slotType:k.slot.slotType,slotPhysicalPosition:k.slot.slotPhysicalPosition,hp:k.slot.hp,slotEntryTrigger:k.slot.slotEntryTrigger,slotFulfillmentTriggers:k.slot.slotFulfillmentTriggers,slotExpirationTriggers:k.slot.slotExpirationTriggers}), f=MU(d.Y.get(),F,S),b={layoutId:f,layoutType:F,hp:"core"};q={layoutId:f,layoutType:F,YI:new Map,layoutExitNormalTriggers:[new pRS(d.T,S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new Q7(q)]),lG:U(b)};GDL(k.callback,k.slot,q)},function(q){k.T=null; t&&t();q instanceof AM||NU(k.callback,k.slot,new K(q,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; Jti=function(k){if(k.T==null)k.callback.TD(k.slot);else try{k.T.cancel(),k.T=null,k.callback.TD(k.slot)}catch(p){k.T=null,NU(k.callback,k.slot,new K(p,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; gU=function(k,p,t,J){!k&&(t===void 0?0:t)&&g.wt(Error("Player URL validator detects invalid url. "+(J===void 0?"":J)+": "+p));return k}; uY=function(k,p){return p&&p.test(k)?!0:!1}; lY=function(k){return(k=o3L&&o3L.exec(k))?k[0]:""}; jC=function(k){var p=p===void 0?!1:p;return gU(uY(k,qYj),k,p,"Trusted Stream URL")}; g.Oq=function(k){var p=p===void 0?!1:p;return gU(uY(k,Fii),k,p,"Trusted Image URL")}; dqS=function(k){var p=p===void 0?!1:p;return gU(uY(k,$qM),k,p,"Trusted Promoted Video Domain URL")}; SY0=function(k){var p=p===void 0?!1:p;return gU(uY(k,E3S),k,p,"Drm Licensor URL")}; fvw=function(k,p){p=p===void 0?!1:p;return gU(uY(k,Uqw),k,p,"Captions URL")}; b1L=function(k){k=new g.Sv(k);g.U8(k,document.location.protocol);g.fI(k,document.location.hostname);document.location.port&&g.bp(k,document.location.port);return k.toString()}; Kk=function(k){k=new g.Sv(k);g.U8(k,document.location.protocol);return k.toString()}; g.xf=function(k,p,t){t=t===void 0?{}:t;this.start=k;this.end=p;this.active=!0;this.color="";this.aD=0;this.Y=NPh++;this.id=t.id||"";this.priority=t.priority||9;this.visible=t.visible||!1;this.style=t.style||H1.AD_MARKER;this.namespace=t.namespace||"";if(k=t.color)k=k.toString(16),this.color="#"+Array(7-k.length).join("0")+k;this.tooltip=t.tooltip;this.icons=t.icons?t.icons.filter(function(J){return g.sQ(J.thumbnails,function(q){return g.Oq(q.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; yte=function(k){return k===-0x8000000000000?"BEFORE_MEDIA_START":k===0?"MEDIA_START":k===0x7ffffffffffff?"MEDIA_END":k===0x8000000000000?"AFTER_MEDIA_END":k.toString()}; YYT=function(k,p){switch(k.style){case H1.CHAPTER_MARKER:return p?8:5;case H1.AD_MARKER:return 6;case H1.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.kt=function(k,p){return k.start-p.start||k.priority-p.priority||k.Y-p.Y}; g.pT=function(k){return"crn_"+k}; g.tA=function(k){return"crx_"+k}; JA=function(k,p,t,J,q,F,d,S,U){this.slot=p;this.Y=t;this.mS=d;this.FG=S;this.NP=U;this.T=new ks_(k,p,J,q,F)}; TPM=function(k){var p;(p=k.NP)==null||p.get().bV(pk(k.slot.clientMetadata,"metadata_type_cue_point").identifier)}; of=function(k,p,t,J,q,F){this.slot=p;this.T=t;this.Y=new ks_(k,p,J,q,F)}; q7=function(k,p){this.callback=k;this.slot=p}; FC=function(k,p){return J9(k,p.Yf,p.slotType)?!0:!1}; $t=function(){}; d$=function(k,p,t,J,q,F,d){this.T=k;this.Y=p;this.y4=t;this.uh=J;this.mS=q;this.FG=F;this.NP=d}; En=function(){}; rtM=function(k,p,t,J,q,F){this.callback=k;this.slot=p;this.layout=t;this.N=J;this.T=q;this.Y=F}; C3T=function(k){if(pk(k.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var p=Z1i(k,k.slot);S0(k.T.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[p]})}}; At6=function(k){if(pk(k.slot.clientMetadata,"metadata_type_prefetch_metadata")){var p=Z1i(k,k.slot);S0(k.T.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[p]})}}; Z1i=function(k,p){var t=Un(k.Y.get(),k.slot.slotType),J=Object,q=J.assign;k=k.slot;if(p.slotEntryTrigger){var F=p.slotId;var d=p.slotEntryTrigger;F=d.triggeringSlotId!=null&&d.triggeringSlotId===F?d.clone(t):d}else F=void 0;return q.call(J,{},k,{slotId:t,slotEntryTrigger:F,slotFulfillmentTriggers:mqh(p.slotId,t,p.slotFulfillmentTriggers),slotExpirationTriggers:mqh(p.slotId,t,p.slotExpirationTriggers)})}; mqh=function(k,p,t){var J=[];t=g.Z(t);for(var q=t.next();!q.done;q=t.next()){var F=J,d=F.push;var S=k;var U=p;q=q.value;S=q.triggeringSlotId!=null&&q.triggeringSlotId===S?q.clone(U):q;d.call(F,S)}return J}; g.fT=function(k,p){for(var t=g.Z(Object.keys(p)),J=t.next(),q={};!J.done;q={placeholder:void 0},J=t.next())J=J.value,q.placeholder=p[J],k=k.replace(new RegExp("\\$"+J,"gi"),function(F){return function(){return F.placeholder}}(q)); return k}; VAj=function(k,p,t){this.T=k;this.slot=p;this.layout=t}; bL=function(k,p,t){p.layoutId!==k.layout.layoutId?k.T.Tt(k.slot,p,new x0("Unknown layout received. Required LayoutId: "+k.layout.layoutId+("and LayoutType: "+k.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):t()}; N7=function(k,p,t,J){g.o$.call(this);this.callback=k;this.N=J;this.T=[];this.Y=new VAj(k,p,t)}; Yt=function(k,p,t,J,q,F,d,S){J=J||pk(t.clientMetadata,F);k=yC(k);var U=bg(function(){q.Hp(p,t)}); S.push(d(J,k,t.layoutId,{adsClientData:t.lG},function(){U()}))}; r$=function(k,p,t,J,q,F,d,S,U){if(p===k)if(U){if(U===S.layoutId){a:{k=g.Z(t.keys());for(p=k.next();!p.done;p=k.next())if(p=p.value,p.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F===t.get(p).layoutId){t=!0;break a}t=!1}t?TW(J,1):q?q():d3("Tried to call engagePingCallback but it is null",d,S)}}else d3("Companion AdUxClick received without a layoutId",d,S)}; ZM=function(k){var p,t,J,q,F;return!((p=k.get("active_view_viewable"))==null||!p.length)||!((t=k.get("active_view_measurable"))==null||!t.length)||!((J=k.get("active_view_fully_viewable_audible_half_duration"))==null||!J.length)||!((q=k.get("audio_audible"))==null||!q.length)||!((F=k.get("audio_measurable"))==null||!F.length)}; CT=function(k){var p,t;return(t=k==null?void 0:(p=k.activeViewTracking)==null?void 0:p.trafficType)!=null?t:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; AA=function(k){var p,t;return new Map([["impression",k.impressionPings||[]],["error",k.errorPings||[]],["mute",k.mutePings||[]],["unmute",k.unmutePings||[]],["pause",k.pausePings||[]],["rewind",k.rewindPings||[]],["resume",k.resumePings||[]],["skip",k.skipPings||[]],["swipe",k.swipePings||[]],["close",k.closePings||[]],["progress",k.progressPings||[]],["clickthrough",k.clickthroughPings||[]],["fullscreen",k.fullscreenPings||[]],["active_view_viewable",k.activeViewViewablePings||[]],["active_view_measurable", k.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",k.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((p=k.activeViewTracking)==null?void 0:p.activeViewAudioAudiblePings)||[]],["audio_measurable",((t=k.activeViewTracking)==null?void 0:t.activeViewAudioMeasurablePings)||[]],["end_fullscreen",k.endFullscreenPings||[]],["channel_clickthrough",k.channelClickthroughPings||[]],["abandon",k.abandonPings||[]],["start",k.startPings||[]],["first_quartile", k.firstQuartilePings||[]],["midpoint",k.secondQuartilePings||[]],["third_quartile",k.thirdQuartilePings||[]],["complete",k.completePings||[]],["unmuted_impression",k.unmutedImpressionPings||[]],["unmuted_error",k.unmutedErrorPings||[]],["unmuted_mute",k.unmutedMutePings||[]],["unmuted_unmute",k.unmutedUnmutePings||[]],["unmuted_pause",k.unmutedPausePings||[]],["unmuted_resume",k.unmutedResumePings||[]],["unmuted_close",k.unmutedClosePings||[]],["unmuted_progress",k.unmutedProgressPings||[]],["unmuted_clickthrough", k.unmutedClickthroughPings||[]],["unmuted_fullscreen",k.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",k.unmutedEndFullscreenPings||[]],["unmuted_abandon",k.unmutedAbandonPings||[]],["unmuted_start",k.unmutedStartPings||[]],["unmuted_first_quartile",k.unmutedFirstQuartilePings||[]],["unmuted_midpoint",k.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",k.unmutedThirdQuartilePings||[]],["unmuted_complete",k.unmutedCompletePings||[]],["unmuted_skip",k.unmutedSkipPings||[]]])}; Wi9=function(k){switch(k){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; mC=function(k,p,t,J,q){q=q===void 0?null:q;this.N=k;this.mS=p;this.layoutId=J;this.C=0;this.S=null;this.X=void 0;this.T=new Set;this.Y=Array.from(this.N.get("progress")||[]);this.Y.sort(function(F,d){return(F.offsetMilliseconds||0)-(d.offsetMilliseconds||0)}); this.Z={adPlacementConfig:t,hZ:q}}; VC=function(){return["metadata_type_ad_placement_config"]}; yC=function(k){var p=k.mS.get();return Wh(p,k.Z)}; sn=function(k,p,t){t=t===void 0?!1:t;k.T.has(p)?DM(k,p,[]):k.VF(p,t)}; LT=function(k,p,t){for(t=t===void 0?!1:t;k.C<k.Y.length;){var J=k.Y[k.C];if(J.offsetMilliseconds<=p||t)DM(k,"progress",[J]),k.C++;else break}}; vh=function(k,p){return k.T.has(p)}; ch=function(k){return k.Y.every(function(p){return p.hasOwnProperty("offsetMilliseconds")})}; Dqi=function(k,p,t){k.S=p;k.X=t}; DM=function(k,p,t){var J;s$h(k.mS.get(),k.layoutId,p,t,(J=k.S)!=null?J:void 0,k.X)}; LiM=function(k,p,t,J,q){Jt.call(this,"ads-engagement-panel-layout",k,p,t,J,q)}; nT=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.S=S;this.rj=!0;this.C=null;this.X=pk(t.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Uq(this.J5(),this);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; v3w=function(){var k=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_PANEL"]}}; ct9=function(k,p,t,J,q){Jt.call(this,"banner-image",k,p,t,J,q)}; w$=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.S=S;this.rj=!0;this.C=null;this.X=pk(t.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Uq(this.J5(),this);this.adPlacementConfig=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,this.adPlacementConfig,t.layoutId)}; n3h=function(){var k=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; iL=function(k,p,t,J,q){Jt.call(this,"action-companion",k,p,t,J,q)}; QC=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.S=S;this.rj=!0;this.C=null;this.X=pk(t.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Uq(this.J5(),this);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; wR6=function(){var k=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; i1w=function(k,p,t,J,q){Jt.call(this,"image-companion",k,p,t,J,q)}; Ph=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.S=S;this.rj=!0;this.C=null;this.X=pk(t.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Uq(this.J5(),this);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; Q$h=function(){var k=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; P3u=function(k,p,t,J,q){Jt.call(this,"shopping-companion",k,p,t,J,q)}; GW=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.S=S;this.rj=!0;this.C=null;this.X=pk(t.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Uq(this.J5(),this);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; GsM=function(){var k=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; Ive=function(k){var p;if(((p=k.adVideoOffset)==null?void 0:p.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var t;return((t=k.adVideoOffset)==null?void 0:t.percent)!=null}; XRj=function(k){var p;if(((p=k.adVideoOffset)==null?void 0:p.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var t;return((t=k.adVideoOffset)==null?void 0:t.milliseconds)!=null&&!isNaN(Number(k.adVideoOffset.milliseconds))}; RUw=function(k,p,t,J){this.MW=k;this.layoutId=t;this.X=J;this.Y=[];this.T=[];this.N=this.C=0;k=g.Z(p);for(p=k.next();!p.done;p=k.next())switch(p=p.value,t=void 0,(t=p.adVideoOffset)==null?void 0:t.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":Ive(p)?this.Y.push(p):d3("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":XRj(p)?this.T.push(p):d3("Invalid AdVideoProgressMillisecondsCommand");break;default:d3("Unknown or invalid AdVideoProgressOffSet kind")}this.Y.sort(function(q, F){return q.adVideoOffset.percent-F.adVideoOffset.percent}); this.T.sort(function(q,F){return Number(q.adVideoOffset.milliseconds)-Number(F.adVideoOffset.milliseconds)})}; If=function(k,p,t){t=t===void 0?!1:t;var J=k.X();if(J){for(;k.C<k.Y.length;){var q=k.Y[k.C];if(q.adVideoOffset.percent*J<=p||t)k.MW.get().executeCommand(q.command,k.layoutId),k.C++;else break}for(;k.N<k.T.length;)if(J=k.T[k.N],Number(J.adVideoOffset.milliseconds)<=p||t)k.MW.get().executeCommand(J.command,k.layoutId),k.N++;else break}}; XC=function(k,p,t,J,q,F){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.rj=!0;Uq(this.J5(),this);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; BPj=function(){var k=["metadata_type_action_companion_ad_renderer"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; zUe=function(k,p,t,J,q,F,d,S){this.callback=k;this.slot=p;this.layout=t;this.FG=J;this.mS=q;this.uh=d;this.uG=S;this.T=!1;k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId);var U;k=((U=pk(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:U.progressCommands)||[];var f=pk(t.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.Y=new RUw(F,k,t.layoutId,function(){return f*1E3})}; Rf=function(k,p,t,J,q,F){N7.call(this,k,p,t,J);this.FG=q;this.X=F;this.C=!1}; Bh=function(k,p,t,J,q){Jt.call(this,"top-banner-image-text-icon-buttoned",k,p,t,J,q)}; zW=function(k,p,t,J,q,F){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.rj=!0;Uq(this.J5(),this);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; eUM=function(){var k=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; e0=function(k,p,t){Jt.call(this,"display-underlay-text-grid-cards",k,{},p,t);this.interactionLoggingClientData=t}; hA=function(k,p,t,J,q,F){N7.call(this,k,p,t,J);this.mS=q;this.C=F;this.X=pk(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; af=function(k,p,t,J,q,F){q=q===void 0?!1:q;F=F===void 0?!1:F;Jt.call(this,"ad-action-interstitial",k,p,t,J);this.interactionLoggingClientData=J;this.XK=q;this.Ke=F}; M7=function(k,p,t,J,q){N7.call(this,k,p,t,J);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,q,k,t.layoutId)}; hU_=function(){var k=["metadata_type_ad_action_interstitial_renderer"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_ENDCAP"]}}; g$=function(k,p){return Ko(k,p.Yf,p.aG)?!0:!1}; uL=function(k,p,t){this.Y=k;this.N=p;this.T=t}; av9=function(k,p,t,J,q){Jt.call(this,"ads-engagement-panel",k,p,t,J,q)}; lL=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.S=S;this.rj=!0;this.C=null;this.X=pk(t.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Uq(this.J5(),this);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; MA6=function(){var k=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; j0=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.mS=q;this.J5=F;this.S=S;this.rj=!0;this.C=null;this.X=pk(t.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Uq(this.J5(),this);this.adPlacementConfig=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,this.adPlacementConfig,t.layoutId)}; g3M=function(){var k=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; uKw=function(k,p,t,J,q){this.EF=k;this.mS=p;this.J5=t;this.T=J;this.uG=q}; lv0=function(k,p,t){this.EF=k;this.mS=p;this.T=t}; j$q=function(k,p,t,J,q){this.callback=k;this.slot=p;this.layout=t;this.mS=J;this.Wj=q;k=pk(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; O1w=function(){var k=["metadata_type_client_forecasting_ad_renderer"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_FORECASTING"]}}; Kii=function(k,p,t,J,q){this.callback=k;this.slot=p;this.layout=t;this.mS=J;this.Wj=q;k=pk(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; On=function(k,p,t,J){this.uh=k;this.mS=p;this.Wj=t;this.uG=J}; H1i=function(k,p){return Oa(k.clientMetadata,"metadata_type_ad_info_ad_metadata")?pk(k.clientMetadata,"metadata_type_ad_info_ad_metadata"):p?{channelId:p.Nc,channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title}:(d3("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; xqw=function(k,p){return Oa(k.clientMetadata,"metadata_ad_video_is_listed")?pk(k.clientMetadata,"metadata_ad_video_is_listed"):p?p.isListed:(d3("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; kUw=function(k,p,t,J){Jt.call(this,"player-overlay-layout",k,{},t,J);this.videoAdDurationSeconds=p;this.interactionLoggingClientData=J}; KT=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.FG=q;this.mS=F;this.S=d;this.X=S;this.C=!1;this.Z=pk(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; pAS=function(k){if(k.layout.renderingContent){var p;return(p=pk(k.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:p.current}return pk(k.layout.clientMetadata,"metadata_type_player_bytes_callback")}; Hh=function(k,p,t,J,q,F,d,S){N7.call(this,k,p,t,J);this.FG=q;this.mS=F;this.S=d;this.X=S;this.C=!1;this.Z=pk(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; tV6=function(){return{Yf:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],aG:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; xt=function(k){if(k.layout.renderingContent){var p;return(p=pk(k.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:p.current}return pk(k.layout.clientMetadata,"metadata_type_player_bytes_callback")}; J5L=function(k,p,t){Jt.call(this,"ad-message",k,void 0,p,t)}; kg=function(k,p,t,J,q,F){N7.call(this,t,k,p,J);this.FG=q;this.uh=F}; oMe=function(){return{Yf:["metadata_type_valid_ad_message_renderer"],aG:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; qyi=function(k,p,t,J){Jt.call(this,"video-interstitial-buttoned-centered",k,p,t,J);this.interactionLoggingClientData=J}; pC=function(k,p,t,J,q){N7.call(this,k,p,t,J);k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,q,k,t.layoutId)}; F5=function(k,p,t,J,q,F,d,S,U){return g$(t,tV6())||t.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(t.renderingContent,tD)!==void 0?new Hh(k,p,t,J,q,F,d,S):g$(t,{Yf:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],aG:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||t.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(t.renderingContent,JD)!==void 0? new KT(k,p,t,J,q,F,d,S):g$(t,hU_())||t.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.e(t.renderingContent,oe)!==void 0?new M7(k,p,t,J,F):g$(t,oMe())?new kg(p,t,k,J,q,U):g$(t,{Yf:["metadata_type_instream_ad_player_overlay_renderer"],aG:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new Rf(k,p,t,J,q,S):t.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.e(t.renderingContent,qz)!==void 0?new pC(k,p,t,J,F):null}; FM0=function(k,p,t,J,q,F){this.EF=k;this.FG=p;this.mS=t;this.Y=J;this.T=q;this.uh=F}; $g=function(k){return!k.oldState.isPlaying()&&k.state.isPlaying()}; d2=function(k,p,t){return k<p?!1:t!=null?t<=p:k<=p+1}; ED=function(k,p,t,J,q,F,d,S){this.callback=k;this.slot=p;this.layout=t;this.FG=J;this.mS=q;this.uh=F;this.uG=d;this.XG=S;this.T=!1;k=pk(t.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId)}; Sm=function(k,p){k.T||(k.wy.VF(p),k.T=!0)}; $O9=function(k,p,t,J,q,F){this.FG=k;this.mS=p;this.MW=t;this.uh=J;this.uG=q;this.XG=F}; UD=function(){this.currentState=1;this.T="unknown"}; fC=function(k,p){if(k.currentState>1){g.wt(new g.hm("Exit already started",{current:k.currentState}));var t=!1}else t=!0;if(!t)return!1;k.currentState=2;k.T=p;return!0}; bG=function(k){if(k.currentState!==2)return!1;k.currentState=3;return!0}; dOi=function(k,p){var t=new Map;k=g.Z(k);for(var J=k.next();!J.done;J=k.next()){J=J.value;if(J.layoutType==="LAYOUT_TYPE_MEDIA")var q="v";else J.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(q=pk(J.clientMetadata,"metadata_type_linked_in_player_layout_type"),q=q==="LAYOUT_TYPE_ENDCAP"||q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":q==="LAYOUT_TYPE_SURVEY"?"s":q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):q="u";t.set(J.layoutId,q);if(q==="u"){var F={};q=p;J=(F.c=J.layoutId,F);q.j.yT("uct",J)}}k= p.DC();Nz={contentCpn:k,Om:t};J={};t=(J.ct=t.size,J.c=k,J);p.j.yT("acc",t)}; EM6=function(){Nz={contentCpn:"",Om:new Map}}; ys=function(k){var p;return(p=Nz.Om.get(k))!=null?p:"u"}; Yg=function(k,p,t){k.j.yT(p,t);SyT(k)}; UOw=function(k){var p=k.layoutId,t=k.sH;if(k.Y0){var J={};Yg(k.Ex,"slso",(J.ec=p,J.is=t,J.ctp=ys(p),J))}}; Tw=function(k){var p=k.layoutId,t=k.sH;if(k.Y0){var J={};Yg(k.Ex,"slse",(J.ec=p,J.is=t,J.ctp=ys(p),J))}}; fyM=function(k){var p=k.layoutId,t=k.sH,J=k.Ex;k.Y0&&(k={},Yg(J,"sleo",(k.xc=p,k.is=t,k.ctp=ys(p),k)),SyT(J))}; baj=function(k){var p=k.cpn,t=k.Ex;k=k.sH;var J=t.DC(),q={};Yg(t,"ce",(q.ec=p,q.ia=p!==J,q.r=Nz.Om.has(p),q.is=k,q.ctp=ys(p),q))}; SyT=function(k){if(k.DC()!==Nz.contentCpn){var p={};p=(p.c=Nz.contentCpn,p);k.j.yT("ccm",p)}}; N3i=function(k){var p=k.cpn,t=k.Ex;k=k.sH;var J=t.DC(),q={};Yg(t,"cx",(q.xc=p,q.ia=p!==J,q.r=Nz.Om.has(p),q.is=k,q.ctp=ys(p),q))}; y5S=function(k){this.params=k;this.T=new Set}; Yy_=function(k,p,t){if(!k.T.has(p)){k.T.add(p);var J={};k.params.LH.TA(p,Object.assign({},t,(J.p_ac=k.params.adCpn,J.p_isv=k.params.zhp&&k.params.pZ,J)))}}; Zl=function(k,p,t){if(r2(k.params.LH.uh.get(),!0)){var J=t.flush,q={};Yy_(k,p,(q.cts=t.currentTimeSec,q.f=J,q))}}; T3e=function(k,p){this.Ex=k;this.uh=p}; CC=function(k){var p=[];if(k){k=g.Z(Object.entries(k));for(var t=k.next();!t.done;t=k.next()){var J=g.Z(t.value);t=J.next().value;J=J.next().value;J!==void 0&&(J=typeof J==="boolean"?""+ +J:(""+J).replace(/[:,=]/g,"_"),p.push(t+"."+J))}}return p.join(";")}; AD=function(k,p,t){p=p===void 0?{}:p;this.errorCode=k;this.details=p;this.severity=t===void 0?0:t}; mO=function(k){return k===1||k===2}; Vs=function(k,p){p=p===void 0?0:p;if(k instanceof AD)return k;k=k&&k instanceof Error?k:Error(""+k);mO(p)?g.nV(k):g.wt(k);return new AD(p===1?"player.fatalexception":"player.exception",{name:""+k.name,message:""+k.message},p)}; r5q=function(k,p){function t(){var J=g.nS.apply(0,arguments);k.removeEventListener("playing",t);p.apply(null,g.m(J))} k.addEventListener("playing",t)}; W$=function(){var k=g.hw("yt.player.utils.videoElement_");k||(k=g.kW("VIDEO"),g.eM("yt.player.utils.videoElement_",k));return k}; Dl=function(k){var p=W$();return!!(p&&p.canPlayType&&p.canPlayType(k))}; LC=function(k){if(/opus/.test(k)&&g.sD&&!m6("38")&&!g.zQ())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(k);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(k);if(/webm/.test(k)&&!n_i())return!1;k==='audio/mp4; codecs="mp4a.40.2"'&&(k='video/mp4; codecs="avc1.4d401f"');return!!Dl(k)}; ZaT=function(k){try{var p=LC('video/mp4; codecs="avc1.42001E"')||LC('video/webm; codecs="vp9"');return(LC('audio/mp4; codecs="mp4a.40.2"')||LC('audio/webm; codecs="opus"'))&&(p||!k)||Dl('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(t){return"html5.missingapi"}}; v$=function(){var k=W$();return!(!k.webkitSupportsPresentationMode||typeof k.webkitSetPresentationMode!=="function")}; c$=function(){var k=W$();try{var p=k.muted;k.muted=!p;return k.muted!==p}catch(t){}return!1}; CSi=function(){var k;return((k=navigator.connection)==null?void 0:k.type)||""}; g.nC=function(){VB.apply(this,arguments)}; w2=function(k,p,t,J,q,F,d){this.sampleRate=k===void 0?0:k;this.numChannels=p===void 0?0:p;this.spatialAudioType=t===void 0?"SPATIAL_AUDIO_TYPE_NONE":t;this.T=J===void 0?!1:J;this.N=q===void 0?0:q;this.Y=F===void 0?0:F;this.audioQuality=d===void 0?"AUDIO_QUALITY_UNKNOWN":d}; P$=function(k,p,t,J,q,F,d,S,U){this.width=k;this.height=p;this.quality=F||iG(k,p);this.T=g.Qs[this.quality];this.fps=t||0;this.stereoLayout=!q||J!=null&&J!=="UNKNOWN"&&J!=="RECTANGULAR"?0:q;this.projectionType=J?J==="EQUIRECTANGULAR"&&q===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":J:"UNKNOWN";(k=d)||(k=g.Qs[this.quality],k===0?k="Auto":(p=this.fps,t=this.projectionType,k=k.toString()+(t==="EQUIRECTANGULAR"||t==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||t==="MESH"?"s":"p")+(p>55?"60":p>49?"50":p>39?"48":""))); this.qualityLabel=k;this.Y=S||"";this.primaries=U||""}; iG=function(k,p){var t=Math.max(k,p);k=Math.min(k,p);p=Gw[0];for(var J=0;J<Gw.length;J++){var q=Gw[J],F=g.Qs[q];if(t>=Math.floor(F*16/9)*1.3||k>=F*1.3)return p;p=q}return"tiny"}; Re=function(k,p,t){t=t===void 0?{}:t;this.id=k;this.mimeType=p;t.Lp>0||(t.Lp=16E3);Object.assign(this,t);k=g.Z(this.id.split(";"));this.itag=k.next().value;this.T=k.next().value;this.containerType=Ie(p);this.H0=X5[this.itag]||""}; B$=function(k){return k.H0==="9"||k.H0==="("||k.H0==="9h"||k.H0==="(h"}; A5q=function(k){return k.H0==="H"||k.H0==="h"}; zw=function(k){return k.H0==="9h"||k.H0==="(h"}; mOS=function(k){return!!k.xf&&!!k.xf.fairplay&&(k.H0==="("||k.H0==="(h"||k.H0==="A"||k.H0==="MEAC3")||em&&!!k.xf&&k.H0==="1e"}; hD=function(k){return k.H0==="1"||k.H0==="1h"||em&&k.H0==="1e"}; ae=function(k){return k.H0==="mac3"||k.H0==="meac3"||k.H0==="m"||k.H0==="i"}; Mz=function(k){return k.H0==="MAC3"||k.H0==="MEAC3"||k.H0==="M"||k.H0==="I"}; g.g2=function(k){return k.containerType===1}; VVe=function(k){return k.H0==="("||k.H0==="(h"||k.H0==="H"||em&&k.H0==="1e"}; uG=function(k){return k.mimeType==="application/x-mpegURL"}; g.lG=function(k,p){return{itag:+k.itag,lmt:p?0:k.lastModified,xtags:k.T||""}}; WM9=function(k){var p=navigator.mediaCapabilities;if(p==null||!p.decodingInfo||k.H0==="f")return Promise.resolve();var t={type:k.audio&&k.video?"file":"media-source"};k.video&&(t.video={contentType:k.mimeType,width:k.video.width||640,height:k.video.height||360,bitrate:k.Lp*8||1E6,framerate:k.video.fps||30});k.audio&&(t.audio={contentType:k.mimeType,channels:""+(k.audio.numChannels||2),bitrate:k.Lp*8||128E3,samplerate:k.audio.sampleRate||44100});return p.decodingInfo(t).then(function(J){k.Y=J})}; jm=function(k){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(k)}; OD=function(k){return/(vp9|vp09|vp8|avc1|av01)/.test(k)}; KC=function(k){return k.includes("vtt")||k.includes("text/mp4")}; Ie=function(k){return k.indexOf("/mp4")>=0?1:k.indexOf("/webm")>=0?2:k.indexOf("/x-flv")>=0?3:k.indexOf("/vtt")>=0?4:0}; H$=function(k,p,t,J,q,F){var d=new w2;p in g.Qs||(p="small");p==="light"&&(p="tiny");J&&q?(q=Number(q),J=Number(J)):(q=g.Qs[p],J=Math.round(q*16/9));F=new P$(J,q,0,null,void 0,p,F);k=unescape(k.replace(/"/g,'"'));return new Re(t,k,{audio:d,video:F})}; xg=function(k){var p="id="+k.id;k.video&&(p+=", res="+k.video.qualityLabel);var t,J;return p+", byterate=("+((t=k.El)==null?void 0:t.toFixed(0))+", "+((J=k.Lp)==null?void 0:J.toFixed(0))+")"}; kS=function(k,p){return{start:function(t){return k[t]}, end:function(t){return p[t]}, length:k.length}}; DO_=function(k,p,t){for(var J=[],q=[],F=0;F<k.length;F++)J.push(k.start(F)),q.push(k.end(F));J.push(p);q.push(t);J.sort(function(d,S){return d-S}); q.sort(function(d,S){return d-S}); return kS(J,q)}; pr=function(k,p,t){p=p===void 0?",":p;t=t===void 0?k?k.length:0:t;var J=[];if(k)for(t=Math.max(k.length-t,0);t<k.length;t++)J.push(k.start(t).toFixed(3)+"-"+k.end(t).toFixed(3));return J.join(p)}; tN=function(k,p){if(!k)return-1;try{for(var t=0;t<k.length;t++)if(k.start(t)<=p&&k.end(t)>=p)return t}catch(J){}return-1}; JN=function(k,p){return tN(k,p)>=0}; sZq=function(k,p){if(!k)return NaN;p=tN(k,p);return p>=0?k.start(p):NaN}; oU=function(k,p){if(!k)return NaN;p=tN(k,p);return p>=0?k.end(p):NaN}; qi=function(k){return k&&k.length?k.end(k.length-1):NaN}; FN=function(k,p){k=oU(k,p);return k>=0?k-p:0}; $S=function(k,p,t){for(var J=[],q=[],F=0;F<k.length;F++)k.end(F)<p||k.start(F)>t||(J.push(Math.max(p,k.start(F))-p),q.push(Math.min(t,k.end(F))-p));return kS(J,q)}; d0=function(k,p,t,J){g.o$.call(this);var q=this;this.BH=k;this.start=p;this.end=t;this.isActive=J;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.P8={error:function(){!q.MO()&&q.isActive&&q.publish("error",q)}, updateend:function(){!q.MO()&&q.isActive&&q.publish("updateend",q)}}; this.BH.bY(this.P8);this.Ly=this.isActive}; S6=function(k,p,t,J,q,F){g.o$.call(this);var d=this;this.bG=k;this.lD=p;this.id=t;this.containerType=J;this.H0=q;this.pZ=F;this.SX=this.Qu=this.LZ=null;this.Kg=!1;this.appendWindowStart=this.timestampOffset=0;this.M7=kS([],[]);this.xk=!1;this.oB=[];this.Yu=EI?[]:void 0;this.Jj=function(U){return d.publish(U.type,d)}; var S;if((S=this.bG)==null?0:S.addEventListener)this.bG.addEventListener("updateend",this.Jj),this.bG.addEventListener("error",this.Jj)}; UI=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; fr=function(k,p){this.oO=k;this.T=p===void 0?!1:p;this.Y=!1}; bV=function(k,p,t){t=t===void 0?!1:t;g.R.call(this);this.mediaElement=k;this.Dr=p;this.isView=t;this.S=0;this.C=!1;this.X=!0;this.L=0;this.callback=null;this.B=!1;this.Dr||(this.lD=this.mediaElement.KE());this.events=new g.nC(this);g.z(this,this.events);this.N=new fr(this.Dr?window.URL.createObjectURL(this.Dr):this.lD.webkitMediaSourceURL,!0);k=this.Dr||this.lD;Wz(this.events,k,["sourceopen","webkitsourceopen"],this.Lgy);Wz(this.events,k,["sourceclose","webkitsourceclose"],this.p1O);this.Z={updateend:this.dl}}; LM0=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; vMj=function(k,p){RU(k)?g.Eo(function(){p(k)}):k.callback=p}; c59=function(k,p,t){if(Bo){var J;z0(k.mediaElement,{l:"mswssb",sr:(J=k.mediaElement.Tb)==null?void 0:J.Uk()},!1);p.bY(k.Z,k);t.bY(k.Z,k)}k.T=p;k.Y=t;g.z(k,p);g.z(k,t)}; nM0=function(k,p,t,J){J=p.mimeType+(J===void 0?"":J);var q=t.mimeType;p=p.H0;t=t.H0;var F;k.gy=(F=k.Dr)==null?void 0:F.addSourceBuffer(q);var d;k.Y8=J.split(";")[0]==="fakesb"?void 0:(d=k.Dr)==null?void 0:d.addSourceBuffer(J);k.lD&&(k.lD.webkitSourceAddId("0",q),k.lD.webkitSourceAddId("1",J));F=new S6(k.gy,k.lD,"0",Ie(q),t,!1);J=new S6(k.Y8,k.lD,"1",Ie(J),p,!0);c59(k,F,J)}; e6=function(k){return!!k.T||!!k.Y}; RU=function(k){try{return hN(k)==="open"}catch(p){return!1}}; hN=function(k){if(k.Dr)return k.Dr.readyState;switch(k.lD.webkitSourceState){case k.lD.SOURCE_OPEN:return"open";case k.lD.SOURCE_ENDED:return"ended";default:return"closed"}}; aU=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; wA_=function(k){RU(k)&&(k.Dr?k.Dr.endOfStream():k.lD.webkitSourceEndOfStream(k.lD.EOS_NO_ERROR))}; iaT=function(k,p,t,J){if(!k.T||!k.Y)return null;var q=k.T.isView()?k.T.BH:k.T,F=k.Y.isView()?k.Y.BH:k.Y,d=new bV(k.mediaElement,k.Dr,!0);d.N=k.N;c59(d,new d0(q,p,t,J),new d0(F,p,t,J));RU(k)||k.T.NG(k.T.Yx());return d}; QZe=function(k){var p;(p=k.T)==null||p.Iz();var t;(t=k.Y)==null||t.Iz();k.X=!1}; Mi=function(){var k=this;this.Ww=this.RX=w9i;this.promise=new g.yu(function(p,t){k.RX=p;k.Ww=t})}; g0=function(){g.R.call(this);this.ZU=!1;this.oO=null;this.Z=this.S=!1;this.C=new g.Hg;this.Tb=null;g.z(this,this.C)}; uV=function(k){k=k.F1();return k.length<1?NaN:k.end(k.length-1)}; PSh=function(k){!k.Y&&LM0()&&(k.N?k.N.then(function(){return PSh(k)}):k.Yh()||(k.Y=k.D6()))}; GUu=function(k){k.Y&&(k.Y.dispose(),k.Y=void 0)}; z0=function(k,p,t){var J;((J=k.Tb)==null?0:J.DB())&&k.Tb.yT("rms",p,t===void 0?!1:t)}; Iy0=function(k,p,t){k.isPaused()||k.getCurrentTime()>p||t>10||(k.play(),g.fY(function(){Iy0(k,k.getCurrentTime(),t+1)},500))}; XA6=function(k,p){k.oO&&k.oO.MR(p)||(k.oO&&k.oO.dispose(),k.oO=p)}; lV=function(k){return FN(k.p$(),k.getCurrentTime())}; RRT=function(k,p){if(k.Pn()===0||k.hasError())return!1;var t=k.getCurrentTime()>0;return p>=0&&(k=k.F1(),k.length||!t)?JN(k,p):t}; j6=function(k){k.Yh()&&(k.Tb&&k.Tb.LR("rs_s"),hO&&k.getCurrentTime()>0&&k.seekTo(0),k.c9(),k.load(),XA6(k,null));delete k.N}; OI=function(k){switch(k.eE()){case 2:return"progressive.net.retryexhausted";case 3:return k=k.C$(),(k==null?0:k.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||B3q&&(k==null?0:k.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.Kr=function(k,p,t){this.JD=p===void 0?null:p;this.seekSource=t===void 0?null:t;this.state=k||64}; Ho=function(k,p,t){t=t===void 0?!1:t;return zRh(k,p.getCurrentTime(),(0,g.V9)(),lV(p),t)}; xS=function(k,p,t,J){if(!(p===k.state&&t===k.JD&&J===k.seekSource||p!==void 0&&(p&128&&!t||p&2&&p&16))){var q;if(q=p)q=p||k.state,q=!!(q&16||q&32);k=new g.Kr(p,t,q?J?J:k.seekSource:null)}return k}; kr=function(k,p,t){return xS(k,k.state|p,null,t===void 0?null:t)}; pW=function(k,p){return xS(k,k.state&~p,null,null)}; tZ=function(k,p,t,J){return xS(k,(k.state|p)&~t,null,J===void 0?null:J)}; g.u=function(k,p){return!!(k.state&p)}; g.JZ=function(k,p){return p.state===k.state&&p.JD===k.JD}; oW=function(k){return k.isPlaying()&&!g.u(k,16)&&!g.u(k,32)}; qw=function(k){return g.u(k,128)?-1:g.u(k,2)?0:g.u(k,2048)?3:g.u(k,64)?-1:g.u(k,1)&&!g.u(k,32)?3:g.u(k,8)?1:g.u(k,4)?2:-1}; $r=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V){g.R.call(this);var D=this;this.Xq=k;this.slot=p;this.layout=t;this.mS=J;this.uG=q;this.XG=F;this.FG=d;this.Qn=S;this.MW=U;this.ES=f;this.position=N;this.S=y;this.uh=Y;this.Ab=T;this.HN=A;this.context=V;this.rj=!0;this.X=!1;this.Bp="not_rendering";this.Y=!1;this.N=new UD;k=pk(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(t.YI,this.mS,k,t.layoutId);var v;k=((v=F1(this))==null?void 0:v.progressCommands)||[];this.C=new RUw(U, k,t.layoutId,function(){return D.CV()}); this.T=new y5S({adCpn:this.layout.layoutId,LH:V.LH,zhp:this.Ab,pZ:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; dm=function(k){return{layoutId:k.KV(),sH:k.Ab,Ex:k.XG.get(),Y0:k.jy()}}; EE=function(k,p){return p.layoutId!==k.layout.layoutId?(k.Xq.Tt(k.slot,p,new x0("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+k.layout.layoutId+("and LayoutType: "+k.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; S_=function(k){k.Bp="rendering_start_requested";k.ES(-1)}; F1=function(k){return pk(k.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; eR9=function(k){d3("Received layout exit signal when not in layout exit flow.",k.slot,k.layout)}; hRi=function(k){var p;return((p=UE(k.XG.get(),2))==null?void 0:p.clientPlaybackNonce)||""}; fW=function(k,p){switch(p){case "normal":k.VF("complete");break;case "skipped":k.VF("skip");break;case "abandoned":vh(k.wy,"impression")&&k.VF("abandon")}}; b2=function(k,p){k.X||(p=new g.Ey(p.state,new g.Kr),k.X=!0);return p}; Nw=function(k,p){$g(p)?k.ES(1):g.Uy(p,4)&&!g.Uy(p,2)&&k.LG();SV(p,4)<0&&!(SV(p,2)<0)&&k.i5()}; ay9=function(k){k.position===0&&(k.Qn.get(),k=pk(k.layout.clientMetadata,"metadata_type_ad_placement_config").kind,k={adBreakType:y8(k)},Gg("ad_bl"),g.IF(k))}; Yr=function(k,p){sn(k.wy,p,!k.Y)}; gMq=function(k){var p;return(((p=F1(k))==null?void 0:p.progressCommands)||[]).findIndex(function(t){return!!g.e(t==null?void 0:t.command,MVe)})!==-1}; T1=function(k,p){var t=pk(k.clientMetadata,"metadata_type_eligible_for_ssap");return t===void 0?(d3("Expected SSAP eligibility in PlayerBytes factory",k),!1):p.jy(t)}; rm=function(k,p){if(!ac(p.get(),"html5_ssap_pass_transition_reason"))return 3;switch(k){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return d3("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return d3("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:k}),3;default:Ft(k,"unknown layoutExitReason")}}; uDq=function(k){d3("getExitReason: unexpected reason",void 0,void 0,{reason:k})}; Zj=function(k,p){if(ac(p.get(),"html5_ssap_pass_transition_reason"))switch(k){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return uDq(k),"abandoned";case 3:case 1:return uDq(k),"error";default:Ft(k,"unexpected transition reason")}else switch(k){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return d3("getExitReason: unexpected reason",void 0,void 0,{reason:k}),"error";default:Ft(k,"unexpected transition reason")}}; CW=function(k,p,t){RF(k,t)||zg(k,p,t);RF(k,"video_to_ad")||zg(k,p,"video_to_ad");RF(k,"ad_to_video")||zg(k,p,"ad_to_video");RF(k,"ad_to_ad")||zg(k,p,"ad_to_ad")}; AZ=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D){$r.call(this,k,p,t,J,q,F,d,S,f,b,N,y,Y,T,A,V,D);var v=this;this.tj=U;this.lB=N;this.v$=!0;this.xQ=this.PR=0;this.jT=bg(function(){UOw(dm(v));v.Xq.Hp(v.slot,v.layout)}); this.fh=bg(function(){fyM(dm(v));v.Bp!=="rendering_stop_requested"&&v.lB(v);v.layoutExitReason?v.Xq.PH(v.slot,v.layout,v.layoutExitReason):eR9(v)}); this.wf=new g.m5(200);this.wf.listen("tick",function(){v.OF()}); g.z(this,this.wf)}; V8=function(k){k.xQ=Date.now();mR(k,k.PR);k.wf.start()}; lyh=function(k){k.PR=k.CV();k.z7(k.PR/1E3,!0);mR(k,k.PR)}; mR=function(k,p){p={current:p/1E3,duration:k.CV()/1E3};k.tj.get().Dt("onAdPlaybackProgress",p)}; W6=function(k){AZ.call(this,k.Xq,k.slot,k.mG,k.mS,k.uG,k.XG,k.FG,k.Qn,k.tj,k.MW,k.ES,k.lB,k.PS,k.eM,k.uh,k.Ab,k.HN,k.context)}; Dj=function(k){AZ.call(this,k.Xq,k.slot,k.mG,k.mS,k.uG,k.XG,k.FG,k.Qn,k.tj,k.MW,k.ES,k.lB,k.PS,k.eM,k.uh,k.Ab,k.HN,k.context)}; sE=function(){Dj.apply(this,arguments)}; jZi=function(k){return T1(k.slot,k.uh.get())?new sE(k):new W6(k)}; c6=function(k){$r.call(this,k.callback,k.slot,k.mG,k.mS,k.uG,k.XG,k.FG,k.Qn,k.MW,k.ES,k.lB,k.PS,k.eM,k.uh,k.Ab,k.HN,k.context);var p=this;this.adCpn="";this.Go=0;this.FC=!1;this.Yg=0;this.jT=bg(function(){UOw(dm(p));p.Xq.Hp(p.slot,p.layout)}); this.fh=bg(function(){fyM(dm(p));p.Bp!=="rendering_stop_requested"&&p.lB(p);p.layoutExitReason?p.Xq.PH(p.slot,p.layout,p.layoutExitReason):eR9(p)}); this.tB=k.tB;this.wS=k.wS;this.b3=k.b3;this.tj=k.tj;this.n$=k.n$;this.lB=k.lB;if(!this.jy()){ac(this.uh.get(),"html5_disable_media_load_timeout")||(this.oC=new g.jF(function(){p.Z9("load_timeout",new x0("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); k=LW(this.uh.get());var t=v6(this.uh.get());k&&t&&(this.FH=new g.jF(function(){var J=pk(p.layout.clientMetadata,"metadata_type_preload_player_vars");J&&p.wS.get().j.preloadVideoByPlayerVars(J,2,300)}))}}; KM0=function(k,p){var t=pk(p.clientMetadata,"metadata_type_ad_video_id"),J=pk(p.clientMetadata,"metadata_type_legacy_info_card_vast_extension");t&&J&&k.n$.get().j.G().Oy.add(t,{Ng:J});(p=pk(p.clientMetadata,"metadata_type_sodar_extension_data"))&&xZi(k.tB.get(),p);OaS(k.FG.get(),!1)}; Haq=function(k){OaS(k.FG.get(),!0);var p;((p=k.shrunkenPlayerBytesConfig)==null?0:p.shouldRequestShrunkenPlayerBytes)&&k.FG.get().YY(!1)}; xOw=function(k){var p=pk(k.h5().clientMetadata,"metadata_type_player_bytes_slot_metadata");p===void 0&&d3("PlayerBytesSlotMetadata is not filled",k.h5(),k.e6());return(p==null?void 0:p.gi)===!0}; nW=function(){c6.apply(this,arguments)}; wm=function(){nW.apply(this,arguments)}; kgL=function(k){return jZi(Object.assign({},k,{Xq:k.callback,ES:function(){}}))}; pFw=function(k){return new c6(Object.assign({},k,{ES:function(p){k.tj.get().Dt("onAdIntroStateChange",p)}}))}; tRL=function(k){function p(t){k.tj.get().OY(t)} return T1(k.slot,k.uh.get())?new wm(Object.assign({},k,{ES:p})):new c6(Object.assign({},k,{ES:p}))}; i2=function(k){for(var p=k.mG,t=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],J=g.Z(VC()),q=J.next();!q.done;q=J.next())t.push(q.value);if(g$(p,{Yf:t,aG:["LAYOUT_TYPE_MEDIA_BREAK"]}))return kgL(k);p=k.mG;t=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];J=g.Z(VC());for(q=J.next();!q.done;q=J.next())t.push(q.value);if(g$(p,{Yf:t,aG:["LAYOUT_TYPE_MEDIA"]}))return Oa(k.mG.clientMetadata,"metadata_type_ad_intro")?pFw(k):tRL(k)}; oye=function(k){var p=pk(k.clientMetadata,"metadata_type_ad_placement_config").kind,t=pk(k.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:k.layoutId,adType:J7_(t),adBreakType:y8(p)}}; y8=function(k){switch(k){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"}}; J7_=function(k){switch(k){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; q_h=function(k){try{return new Q8(k.pM,k.slot,k.layout,k.OX,k.o8,k.XG,k.NP,k.wS,k.J5,k.FG,k.QsS,k)}catch(p){}}; Q8=function(k,p,t,J,q,F,d,S,U,f,b,N){g.R.call(this);this.pM=k;this.slot=p;this.layout=t;this.OX=J;this.o8=q;this.XG=F;this.NP=d;this.wS=S;this.J5=U;this.FG=f;this.params=N;this.rj=!0;k=i2(b);if(!k)throw Error("Invalid params for sublayout");this.vH=k}; Feq=function(){this.T=1;this.Y=new UD}; P6=function(k,p,t,J,q,F,d,S,U,f,b,N,y){g.R.call(this);this.callback=k;this.XG=p;this.NP=t;this.wS=J;this.FG=q;this.Qn=F;this.Rv=d;this.slot=S;this.layout=U;this.OX=f;this.Wj=b;this.J5=N;this.uh=y;this.rj=!0;this.rD=!1;this.BN=[];this.Nw=-1;this.LN=!1;this.mD=new Feq}; $TL=function(k){var p;return(p=k.layout.N8)!=null?p:pk(k.layout.clientMetadata,"metadata_type_sub_layouts")}; G1=function(k){return{Ex:k.XG.get(),sH:!1,Y0:k.jy()}}; dTq=function(k,p,t){if(k.fI()===k.BN.length-1){var J,q;d3("Unexpected skip requested during the last sublayout",(J=k.H3())==null?void 0:J.h5(),(q=k.H3())==null?void 0:q.e6(),{requestingSlot:p,requestingLayout:t})}}; Eyh=function(k,p,t){return t.layoutId!==IW(k,p,t)?(d3("onSkipRequested for a PlayerBytes layout that is not currently active",k.h5(),k.e6()),!1):!0}; S_9=function(k){k.fI()===k.BN.length-1&&d3("Unexpected skip with target requested during the last sublayout")}; UT0=function(k,p,t){return t.renderingContent===void 0&&t.layoutId!==IW(k,p,t)?(d3("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",k.h5(),k.e6(),{requestingSlot:p,requestingLayout:t}),!1):!0}; fP6=function(k,p,t,J){var q=pk(p.e6().clientMetadata,"metadata_type_ad_pod_skip_target");if(q&&q>0&&q<k.BN.length){a:{for(var F=q;F<k.BN.length;){if(q===pk(k.BN[F].e6().clientMetadata,"metadata_type_ad_pod_skip_index")){k=F;break a}F++}k=void 0}if(k===void 0)d3("Skip-to-index was requested but target index was not found",p.h5(),p.e6(),{requestingSlot:t,requestingLayout:J});else return k}else d3("Invalid ad pod skip target index",p.h5(),p.e6(),{requestingSlot:t,requestingLayout:J})}; IW=function(k,p,t){var J=pk(k.e6().clientMetadata,"metadata_type_linked_in_player_layout_id");return J?J:(d3("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",k.h5(),k.e6(),{requestingSlot:p,requestingLayout:t}),null)}; Nkj=function(k,p,t,J){b4S(k,p,t,"skipped",function(){X1(k,J)})}; b4S=function(k,p,t,J,q){if(!k.LN){var F=k.H3();if(F){F.e6().layoutId!==t.layoutId&&d3("SubLayout mismatch in exitSubLayout",p,t,{exitingSubLayout:t.layoutId,activeSubLayout:F.e6().layoutId});k.LN=!0;F.au(F.e6(),J);F=Object.assign({},G1(k),{layoutId:t.layoutId,layoutExitReason:J});var d=F.layoutId,S=F.layoutExitReason;if(F.Y0){var U={};Yg(F.Ex,"wrsx",(U.xc=d,U.ler=S,U.ctp=ys(d),U))}k.Hz(p,t,J);k.LN=!1;k.IK?(k.IK(),k.jy()||RW(k.Qn.get())):q()}else d3("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", p,t)}}; X1=function(k,p){if(k.fI()===k.BN.length-1)k.Nw++,B6(k.Wj,k.layout,"normal"),k.jy()||RW(k.Qn.get());else a:{if(k.fI()===-1&&(k.callback.Hp(k.slot,k.layout),p>0)){d3("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",k.slot,k.layout,{indexToPlay:p,layoutId:k.layout.layoutId});break a}k.Nw=p;p=k.H3();if(k.fI()>0&&!k.jy()){var t=k.Qn.get();t.Y=!1;var J={};t.T&&t.videoId&&(J.cttAuthInfo={token:t.T,videoId:t.videoId});Xu("ad_to_ad",J)}k.wL(p)}}; z1=function(k){P6.call(this,k.pM,k.XG,k.NP,k.wS,k.FG,k.Qn,k.Rv,k.slot,k.layout,k.OX,k.Wj,k.J5,k.uh)}; y7w=function(k){(k=k.H3())&&k.Sc()}; e_=function(k){P6.call(this,k.pM,k.XG,k.NP,k.wS,k.FG,k.Qn,k.Rv,k.slot,k.layout,k.OX,k.Wj,k.J5,k.uh);this.Fn=void 0}; Y_T=function(k,p){k.wi()&&!bG(k.mD.Y)||k.callback.PH(k.slot,k.layout,p)}; hZ=function(k){return ac(k.uh.get(),"html5_ssap_pass_transition_reason")}; Tk0=function(k,p,t){p.HS().currentState<2&&(t=Zj(t,k.uh),p.au(p.e6(),t));t=p.HS().T;k.Hz(k.slot,p.e6(),t)}; r7e=function(k,p){if(k.mD.Y.currentState<2){var t=Zj(p,k.uh);t==="error"?k.callback.Tt(k.slot,k.layout,new x0("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:p},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):B6(k.Wj,k.layout,t)}}; aW=function(k,p,t){p.HS().currentState>=2||(p.au(p.e6(),t),bG(p.HS())&&(W1(k.Rv,k.slot,p.e6(),t),k.Fn=void 0))}; Z4q=function(k,p){k.mD.T===2&&p!==k.DC()&&d3("onClipEntered: unknown cpn",k.slot,k.layout,{cpn:p})}; CF9=function(k,p){var t=k.H3();if(t){var J=t.e6().layoutId,q=k.fI()+1;k.wi()?aW(k,t,p):t.au(t.e6(),p);q>=0&&q<k.BN.length?(t=k.BN[q].e6().layoutId,hZ(k)&&(["normal","skipped"].includes(p)||d3("exitActiveLayoutAndPlayNext: unexpected exit reason",k.slot,k.layout,{exitReason:p})),k.NP.get().finishSegmentByCpn(J,t,rm(p,k.uh))):q===k.BN.length?B6(k.Wj,k.layout,"normal"):d3("unexpected index",k.slot,k.layout,{index:q})}else d3("exitActiveLayoutAndPlayNext: no active adapter",k.slot,k.layout)}; A7q=function(k,p){d3(p+": undefined adapter",k.slot,k.layout)}; mTi=function(k){return T1(k.slot,k.uh.get())?new e_(k):new z1(k)}; Mw=function(k,p,t,J,q,F,d){g.R.call(this);this.callback=k;this.wS=p;this.FG=t;this.Qn=J;this.vH=q;this.J5=F;this.uh=d;this.rj=!0;this.rD=!1}; VRi=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B){function O(){var kh=i2(Object.assign({},$h,{callback:{Hp:k.Hp.bind(k),PH:k.PH.bind(k),Tr:function(){}, Tt:k.Tt.bind(k)},slot:t,mG:J,lB:function(){B6(d,J,"normal")}, PS:0,eM:1,Ab:!0}));return kh?new Mw(k,b,y,T,kh,q,v):kh} function l(){var kh=Object.assign({},$h,{callback:{Hp:function(){}, PH:function(){}, Tr:function(){return void B6(d,J,"normal")}, Tt:function(){}}, slot:t,mG:J,lB:function(){}, PS:0,eM:1,Ab:!0});return q_h({pM:k,slot:t,layout:J,OX:F,o8:d,XG:N,NP:w,wS:b,J5:q,FG:y,QsS:kh,context:X})} function oi(){var kh,h=(kh=J.N8)!=null?kh:pk(J.clientMetadata,"metadata_type_sub_layouts");kh=mTi({pM:k,XG:N,NP:w,wS:b,FG:y,Qn:T,Rv:p,slot:t,layout:J,OX:F,Wj:d,J5:q,uh:v});for(var x=[],C={J7:0};C.J7<h.length;C={J7:C.J7},C.J7++){var a=i2(Object.assign({},$h,{callback:{Hp:kh.Vq.bind(kh),PH:kh.v6.bind(kh),Tr:kh.Tr.bind(kh),Tt:kh.c6.bind(kh)},slot:t,mG:h[C.J7],lB:function(zL){return function(AC){AC.au(h[zL.J7],"normal")}}(C), PS:C.J7,eM:h.length,Ab:!1}));if(!a)return;x.push(a)}kh.BN=x;return kh} var $h={mS:S,uG:U,tB:f,wS:b,XG:N,FG:y,b3:Y,Qn:T,tj:A,MW:V,n$:D,uh:v,context:X,HN:B};S=g$(J,{Yf:["metadata_type_sub_layouts"],aG:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||J.N8!==void 0&&J.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";U=T1(t,v.get())&&g$(J,{Yf:[],aG:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});f=g$(J,{Yf:[],aG:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(S)return oi();if(U)return l();if(f)return O()}; gm=function(k,p,t,J,q,F,d,S,U,f){this.callback=k;this.slot=p;this.layout=t;this.XG=J;this.NP=q;this.H1=F;this.FG=d;this.wy=S;this.mS=U;this.X=f;this.driftRecoveryMs=pk(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.C=pk(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; DTh=function(k){var p=pk(k.layout.clientMetadata,"metadata_type_layout_enter_ms"),t=pk(k.layout.clientMetadata,"metadata_type_layout_exit_ms");k=k.H1.get();p=Weu(k.N,p,t);return Math.min(t,p!==null?p:Infinity)}; l2=function(k,p){var t;u2(k.mS.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(t=k.XG.get().Mb)==null?void 0:t.clientPlaybackNonce,adClientData:k.layout.lG.adClientDataEntry},p)})}; j_=function(k,p,t,J,q,F,d,S,U,f,b){gm.call(this,k,p,t,J,q,F,d,S,U,f);this.N=b;this.Y=this.T=null;k=g.Z(this.N);for(p=k.next();!p.done;p=k.next())p=p.value,Oa(p.e6().clientMetadata,"metadata_type_survey_overlay")&&(this.Y=p.e6().layoutId)}; LeM=function(k,p){var t=sF6(k,p);t||d3("Expected subLRA found by layout ID",k.slot,k.layout,{layoutId:p});k.T={Fu:t};t?t.startRendering(t.e6()):p===k.Y&&d3("Failed to find rendering adapter for survey media layout",k.slot,k.layout,{surveyMediaLayoutId:p})}; sF6=function(k,p){return p==null?null:k.N.find(function(t){return t.e6().layoutId===p})||null}; vy6=function(k,p,t,J,q,F,d,S,U,f){var b=q-J,N=Oa(p.clientMetadata,"metadata_type_survey_overlay"),y,Y=((y=k.fulfilledLayout||pk(k.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:pk(y.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!b)return d.pu(t,Y,2,F,J,q,k.slotId),OE(f,"ads_iraot","sid."+k.slotId+";enterMs."+J+";exitMs."+q+";hso."+N+";vid."+t.video_id),null;b=d.Kh(t,Y,2,F,J,q,k.slotId);OE(f,"ads_atct","sid."+k.slotId+";enterMs."+J+";exitMs."+q+";hso."+N+";vid."+t.video_id); if(!b)return d3("Unexpected failure to add to playback timeline",k,p,U()),null;k=k.slotId;p=p.layoutId;b?(S.T.has(b)&&d3("Unexpected remap of timeline playback"),S.T.set(b,{slotId:k,layoutId:p})):d3("Invalid timeline playback ID");J+F>q&&d.wm(b,q-J);return b}; c7T=function(k,p,t){var J=pk(p.clientMetadata,"metadata_type_sodar_extension_data");if(J)try{xZi(t,J)}catch(q){d3("Unexpected error when loading Sodar",k,p,{error:q})}}; ny0=function(k,p,t,J,q,F,d){KW(k,p,new g.Ey(t,new g.Kr),J,q,d,!1,F)}; KW=function(k,p,t,J,q,F,d,S){d=d===void 0?!0:d;$g(t)&&d2(q,0,null)&&(!vh(k,"impression")&&S&&S(),k.VF("impression"));vh(k,"impression")&&(g.Uy(t,4)&&!g.Uy(t,2)&&k.U7("pause"),SV(t,4)<0&&!(SV(t,2)<0)&&k.U7("resume"),g.Uy(t,16)&&q>=.5&&k.U7("seek"),d&&g.Uy(t,2)&&H6(k,t.state,p,J,q,F))}; H6=function(k,p,t,J,q,F,d,S){vh(k,"impression")&&(F?(F=q-J,F=F>=-1&&F<=2):F=Math.abs(J-q)<=1,xr(k,p,F?J:q,t,J,d,S&&F),F&&k.VF("complete"))}; xr=function(k,p,t,J,q,F,d){LT(k,t*1E3,d);q<=0||t<=0||(p==null?0:g.u(p,16))||(p==null?0:g.u(p,32))||(d2(t,q*.25,J)&&(F&&!vh(k,"first_quartile")&&F("first"),k.VF("first_quartile")),d2(t,q*.5,J)&&(F&&!vh(k,"midpoint")&&F("second"),k.VF("midpoint")),d2(t,q*.75,J)&&(F&&!vh(k,"third_quartile")&&F("third"),k.VF("third_quartile")))}; wF9=function(k,p){vh(k,"impression")&&k.U7(p?"fullscreen":"end_fullscreen")}; i4M=function(k){vh(k,"impression")&&k.U7("clickthrough")}; QF0=function(k){k.U7("active_view_measurable")}; PFe=function(k){vh(k,"impression")&&!vh(k,"seek")&&k.U7("active_view_fully_viewable_audible_half_duration")}; Gg6=function(k){vh(k,"impression")&&!vh(k,"seek")&&k.U7("active_view_viewable")}; IPh=function(k){vh(k,"impression")&&!vh(k,"seek")&&k.U7("audio_audible")}; XFS=function(k){vh(k,"impression")&&!vh(k,"seek")&&k.U7("audio_measurable")}; RgM=function(k,p,t,J,q,F,d,S,U,f,b,N){this.callback=k;this.slot=p;this.layout=t;this.NP=J;this.wy=q;this.FG=F;this.JY=d;this.uG=S;this.tB=U;this.uh=f;this.mS=b;this.XG=N;this.v$=!0;this.GI=this.Bp=null;this.adCpn=void 0;this.T=!1}; Bk0=function(k,p,t){var J;OE(k.mS.get(),"ads_qua","cpn."+pk(k.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((J=UE(k.XG.get(),2))==null?void 0:J.clientPlaybackNonce)+";qt."+p+";clr."+t)}; zgh=function(k,p){var t,J;OE(k.mS.get(),"ads_imp","cpn."+pk(k.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((t=UE(k.XG.get(),2))==null?void 0:t.clientPlaybackNonce)+";clr."+p+";skp."+!!g.e((J=pk(k.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:J.skipOrPreviewRenderer,ka))}; pH=function(k){return{enterMs:pk(k.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:pk(k.clientMetadata,"metadata_type_layout_exit_ms")}}; td=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y){gm.call(this,k,p,t,J,q,d,S,U,f,N);this.JY=F;this.tB=b;this.uG=y;this.uh=Y;this.GI=this.Bp=null}; egu=function(k,p){var t;OE(k.mS.get(),"ads_imp","acpn."+((t=UE(k.XG.get(),2))==null?void 0:t.clientPlaybackNonce)+";clr."+p)}; hgj=function(k,p,t){var J;OE(k.mS.get(),"ads_qua","cpn."+pk(k.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((J=UE(k.XG.get(),2))==null?void 0:J.clientPlaybackNonce)+";qt."+p+";clr."+t)}; Jd=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X){this.J5=k;this.OX=p;this.Wj=t;this.XG=J;this.NP=q;this.FG=F;this.mS=d;this.JY=S;this.H1=U;this.uG=f;this.tB=b;this.wS=N;this.b3=y;this.Qn=Y;this.tj=T;this.MW=A;this.n$=V;this.uh=D;this.T=v;this.context=w;this.HN=X}; o2=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D){this.J5=k;this.OX=p;this.Wj=t;this.mS=J;this.uG=q;this.tB=F;this.wS=d;this.XG=S;this.FG=U;this.b3=f;this.Qn=b;this.tj=N;this.MW=y;this.n$=Y;this.uh=T;this.NP=A;this.context=V;this.HN=D}; aPw=function(k,p,t,J){Jt.call(this,"survey-interstitial",k,p,t,J)}; qk=function(k,p,t,J,q){N7.call(this,t,k,p,J);this.mS=q;k=pk(p.clientMetadata,"metadata_type_ad_placement_config");this.wy=new mC(p.YI,q,k,p.layoutId)}; FV=function(k){return Math.round(k.width)+"x"+Math.round(k.height)}; dp=function(k,p,t){t=t===void 0?$a:t;t.width<$a.width&&(t=$a);if(k.width<t.width||k.height<t.height)return{il:3,Bo:501,errorMessage:"ad("+FV(t)+") larger than container("+FV(k)+")."};if(t.width*t.height>k.width*k.height*.2)return{il:3,Bo:501,errorMessage:"ad("+FV(t)+") to container("+FV(k)+") ratio exceeds limit."};if(t.height>k.height/3-p)return{il:3,Bo:501,errorMessage:"ad("+FV(t)+") covers container("+FV(k)+") center."}}; MRS=function(k,p){var t=pk(k.clientMetadata,"metadata_type_ad_placement_config");return new mC(k.YI,p,t,k.layoutId)}; El=function(k){return pk(k.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; SH=function(k,p,t,J){Jt.call(this,"invideo-overlay",k,p,t,J);this.interactionLoggingClientData=J}; Ul=function(k,p,t,J,q,F,d,S,U,f,b,N){N7.call(this,F,k,p,q);this.mS=t;this.C=d;this.FG=S;this.MW=U;this.uh=f;this.S=b;this.X=N;this.wy=MRS(p,t)}; gyu=function(){var k=["metadata_type_invideo_overlay_ad_renderer"];VC().forEach(function(p){k.push(p)}); return{Yf:k,aG:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; fH=function(k,p,t,J,q,F,d,S,U,f,b,N,y){N7.call(this,F,k,p,q);this.mS=t;this.C=d;this.B=S;this.FG=U;this.MW=f;this.uh=b;this.S=N;this.X=y;this.wy=MRS(p,t)}; uuL=function(){for(var k=["metadata_type_invideo_overlay_ad_renderer"],p=g.Z(VC()),t=p.next();!t.done;t=p.next())k.push(t.value);return{Yf:k,aG:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; bT=function(k){this.FG=k;this.T=!1}; lPi=function(k,p,t){Jt.call(this,"survey",k,{},p,t)}; Nk=function(k,p,t,J,q,F,d){N7.call(this,t,k,p,J);this.C=q;this.FG=F;this.uh=d}; jF6=function(k,p,t,J,q,F,d,S,U,f){this.EF=k;this.FG=p;this.mS=t;this.C=J;this.uG=q;this.Y=F;this.N=d;this.MW=S;this.uh=U;this.T=f}; O4i=function(k,p,t,J,q,F,d,S,U,f){this.EF=k;this.FG=p;this.mS=t;this.C=J;this.uG=q;this.Y=F;this.N=d;this.MW=S;this.uh=U;this.T=f}; yH=function(k,p,t,J,q,F,d,S,U,f){Hh.call(this,k,p,t,J,q,F,d,U);this.Rh=S;this.XG=f}; Kei=function(){var k=tV6();k.Yf.push("metadata_type_ad_info_ad_metadata");return k}; H4S=function(k,p,t,J,q,F,d){this.EF=k;this.FG=p;this.mS=t;this.Y=J;this.Rh=q;this.T=F;this.XG=d}; xTT=function(k,p,t,J,q,F,d,S){this.EF=k;this.FG=p;this.mS=t;this.Y=J;this.Rh=q;this.T=F;this.uh=d;this.XG=S}; Ya=function(k,p){this.slotId=p;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=k(this.triggerType)}; Tz=function(k,p){this.adPodIndex=k;this.T=p.length;this.adBreakLengthSeconds=p.reduce(function(J,q){return J+q},0); var t=0;for(k+=1;k<p.length;k++)t+=p[k];this.adBreakRemainingLengthSeconds=t}; rp=function(k,p,t){this.EA=p;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=t||k(this.triggerType)}; ZX=function(k,p,t){this.T=p;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=t||k(this.triggerType)}; CH=function(k,p,t,J){this.EA=p;this.visible=t;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=J||k(this.triggerType)}; kM6=function(k){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=k(this.triggerType)}; pd0=function(k){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=k(this.triggerType)}; Ad=function(k,p,t){this.triggeringLayoutId=p;this.slotId=t;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=k(this.triggerType)}; mZ=function(k,p,t){this.triggeringLayoutId=p;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=t||k(this.triggerType)}; VH=function(k,p,t,J){this.triggeringLayoutId=p;this.T=t;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=J||k(this.triggerType)}; txi=function(k){switch(k){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new K("Invalid layout exit reason: "+ k)}}; Wv=function(k,p,t){this.triggeringLayoutId=p;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=t||k(this.triggerType)}; DX=function(k,p){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=p||k(this.triggerType)}; sl=function(k,p){this.breakDurationMs=k;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=p||""}; LH=function(k,p){this.breakDurationMs=k;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=p||""}; vv=function(k,p){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=p||k(this.triggerType)}; JcL=function(k){this.triggerId=k;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; oUi=function(k,p,t,J,q){this.EA=p;this.T=t;this.visible=J;this.layoutId=q;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=k(this.triggerType)}; cv=function(k,p,t,J,q){this.EA=p;this.T=t;this.visible=J;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=q||k(this.triggerType)}; nH=function(k,p){this.breakDurationMs=k;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=p||""}; qhj=function(k,p,t){this.EA=p;this.T=t;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=k(this.triggerType)}; wp=function(k,p,t,J,q){this.T=p;this.slotType=t;this.layoutType=J;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=q||k(this.triggerType)}; iT=function(k,p){this.T=p;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=k(this.triggerType)}; QH=function(k,p,t){this.layoutId=p;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=t||k(this.triggerType)}; Pv=function(k,p,t){this.T=p;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=t||k(this.triggerType)}; pRS=function(k,p){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=p;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=k(this.triggerType)}; F_M=function(k,p){this.T=k;this.index=p}; $PT=function(k){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=k(this.triggerType)}; Gz=function(k,p){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=p||k(this.triggerType)}; dPq=function(k,p,t){this.layoutId=p;this.offsetMs=t;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=k(this.triggerType)}; EUj=function(k,p){this.layoutId=p;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=k(this.triggerType)}; ShM=function(k,p,t){this.layoutId=p;this.offsetMs=t;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=k(this.triggerType)}; I2=function(k,p,t){this.triggeringLayoutId=p;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=t||k(this.triggerType)}; XV=function(k,p,t){this.triggeringSlotId=p;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=t||k(this.triggerType)}; R2=function(k,p,t){this.triggeringSlotId=p;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=t||k(this.triggerType)}; Bv=function(k,p){this.triggeringSlotId=p;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=k(this.triggerType)}; zz=function(k,p){this.triggeringSlotId=p;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=k(this.triggerType)}; eH=function(k,p,t){this.triggeringSlotId=p;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=t||k(this.triggerType)}; hd=function(k,p){this.triggeringSlotId=p;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=k(this.triggerType)}; a2=function(k,p,t){this.triggeringLayoutId=p;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=t||k(this.triggerType)}; Mk=function(k,p,t,J){this.durationMs=p;this.triggeringLayoutId=t;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=J||k(this.triggerType)}; gp=function(k,p,t,J){this.category=k;this.trigger=p;this.slot=t;this.layout=J}; uT=function(k){return(k==null?void 0:k.layoutId)!=null&&(k==null?void 0:k.layoutType)!=null}; UP9=function(k){if(!uT(k.adLayoutMetadata))return!1;k=k.renderingContent;return g.e(k,lT)||g.e(k,jH)||g.e(k,Ol)||g.e(k,KH)||g.e(k,Hv)||g.e(k,xa)?!0:!1}; fdL=function(k){return(k==null?void 0:k.durationMs)!=null&&(k==null?void 0:k.durationMs)>0}; kP=function(k){return!!(k.V6y&&k.slot&&k.layout)}; pJ=function(k){var p,t=(p=k.config)==null?void 0:p.adPlacementConfig;k=k.renderer;return!(!t||t.kind==null||!k)}; bQ_=function(k){if(!uT(k.adLayoutMetadata))return!1;k=k.renderingContent;return g.e(k,oe)||g.e(k,qz)||g.e(k,tD)||g.e(k,JD)?!0:!1}; tb=function(k){return k.playerVars!==void 0&&k.pings!==void 0&&k.externalVideoId!==void 0}; YP=function(k){if(!uT(k.adLayoutMetadata))return!1;k=k.renderingContent;var p=g.e(k,Jb);return p?oh(p):(p=g.e(k,qg))?tb(p):(p=g.e(k,FF))?p.playerVars!==void 0:(p=g.e(k,oe))?p.durationMilliseconds!==void 0:g.e(k,$P)||g.e(k,dR)?!0:!1}; oh=function(k){k=(k.sequentialLayouts||[]).map(function(p){return g.e(p,TP)}); return k.length>0&&k.every(YP)}; rR=function(k){return uT(k.adLayoutMetadata)?(k=g.e(k.renderingContent,NKq))&&k.pings?!0:!1:!1}; Cow=function(k){if(!uT(k.adLayoutMetadata))return!1;if(g.e(k.renderingContent,ych)||g.e(k.renderingContent,Yh_))return!0;var p=g.e(k.renderingContent,ZK);return g.e(k.renderingContent,CJ)||g.e(p==null?void 0:p.sidePanel,TK0)||g.e(p==null?void 0:p.sidePanel,rch)||g.e(p==null?void 0:p.sidePanel,ZQS)?!0:!1}; DPu=function(k){var p;(p=!k)||(p=k.adSlotMetadata,p=!((p==null?void 0:p.slotId)!==void 0&&(p==null?void 0:p.slotType)!==void 0));if(p||!(Ac9(k)||k.slotEntryTrigger&&k.slotFulfillmentTriggers&&k.slotExpirationTriggers))return!1;var t;k=(t=k.fulfillmentContent)==null?void 0:t.fulfilledLayout;return(t=g.e(k,TP))?YP(t):(t=g.e(k,Ab))?Cow(t):(t=g.e(k,mPh))?bQ_(t):(t=g.e(k,VxL))?UP9(t):(t=g.e(k,W_i))?uT(t.adLayoutMetadata)?g.e(t.renderingContent,lT)?!0:!1:!1:(k=g.e(k,mz))?rR(k):!1}; Ac9=function(k){var p;k=g.e((p=k.fulfillmentContent)==null?void 0:p.fulfilledLayout,Ab);var t;return k&&((t=k.adLayoutMetadata)==null?void 0:t.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&k.layoutExitNormalTriggers===void 0}; sI6=function(k){var p;return(k==null?void 0:(p=k.adSlotMetadata)==null?void 0:p.slotType)==="SLOT_TYPE_IN_PLAYER"}; vUu=function(k,p){var t;if((t=k.questions)==null||!t.length||!k.playbackCommands||(p===void 0||!p)&&k.questions.length!==1)return!1;k=g.Z(k.questions);for(p=k.next();!p.done;p=k.next()){p=p.value;var J=t=void 0,q=((t=g.e(p,Vk))==null?void 0:t.surveyAdQuestionCommon)||((J=g.e(p,WT))==null?void 0:J.surveyAdQuestionCommon);if(!L__(q))return!1}return!0}; cc9=function(k){k=((k==null?void 0:k.playerOverlay)||{}).instreamSurveyAdRenderer;var p;if(k)if(k.playbackCommands&&k.questions&&k.questions.length===1){var t,J=((p=g.e(k.questions[0],Vk))==null?void 0:p.surveyAdQuestionCommon)||((t=g.e(k.questions[0],WT))==null?void 0:t.surveyAdQuestionCommon);p=L__(J)}else p=!1;else p=!1;return p}; L__=function(k){if(!k)return!1;k=g.e(k.instreamAdPlayerOverlay,DK);var p=g.e(k==null?void 0:k.skipOrPreviewRenderer,ka),t=g.e(k==null?void 0:k.adInfoRenderer,sx);return(g.e(k==null?void 0:k.skipOrPreviewRenderer,LJ)||p)&&t?!0:!1}; nU0=function(k){return k.linearAds!=null&&uT(k.adLayoutMetadata)}; wdu=function(k){return k.linearAd!=null&&k.adVideoStart!=null}; iQh=function(k){if(isNaN(Number(k.timeoutSeconds))||!k.text||!k.ctaButton||!g.e(k.ctaButton,g.vT)||!k.brandImage)return!1;var p;return k.backgroundImage&&g.e(k.backgroundImage,cT)&&((p=g.e(k.backgroundImage,cT))==null?0:p.landscape)?!0:!1}; nJ=function(k,p,t,J,q,F,d){g.R.call(this);this.uh=k;this.T=p;this.N=J;this.XG=q;this.C=F;this.Y=d}; GMS=function(k,p,t){var J,q=((J=t.adSlots)!=null?J:[]).map(function(S){return g.e(S,wR)}); if(t.Zj)if(pk(p.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))S0(k.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},p.slotId); else{if(k.uh.get().j.G().D("h5_check_forecasting_renderer_for_throttled_midroll")){var F=t.iE.filter(function(S){var U;return((U=S.renderer)==null?void 0:U.clientForecastingAdRenderer)!=null}); F.length!==0?QIj(k.Y,F,q,p.slotId,t.ssdaiAdsConfig):S0(k.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},p.slotId)}else S0(k.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},p.slotId); Poe(k.C,p)}else{var d;J={nM:Math.round(((F=pk(p.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:F.nM)||0),Zt:(d=pk(p.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:d.Zt};QIj(k.Y,t.iE,q,p.slotId,t.ssdaiAdsConfig,J)}}; Xdh=function(k,p,t,J,q,F,d){var S=UE(k.XG.get(),1);S0(k.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Idh(k.N.get(),t,J,q,S.clientPlaybackNonce,S.Rq,S.daiEnabled,S,F,d)},p)}; BKi=function(k,p,t,J,q,F,d){p=R7M(p,F,Number(J.prefetchMilliseconds)||0,d);k=p instanceof K?p:i9(k,J,q,p,t);return k instanceof K?k:[k]}; z7M=function(k,p,t,J,q){var F=Un(k.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST");J=[new id({getAdBreakUrl:J.getAdBreakUrl,nM:0,Zt:0}),new ud(!0)];k=p.pauseDurationMs?p.lactThresholdMs?{slotId:F,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new eH(k.T,F),slotFulfillmentTriggers:[new pd0(k.T)],slotExpirationTriggers:[new Pv(k.T,q),new R2(k.T,F)],hp:"core",clientMetadata:new kf(J),adSlotLoggingData:t}:new K("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new K("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return k instanceof K?k:[k]}; e7L=function(k){var p,t;return((p=k.renderer)==null?void 0:(t=p.adBreakServiceRenderer)==null?void 0:t.getAdBreakUrl)!==void 0}; Qk=function(k,p,t){if(k.beforeContentVideoIdStartedTrigger)k=k.beforeContentVideoIdStartedTrigger?new rp(HX,p,k.id):new K("Not able to create BeforeContentVideoIdStartedTrigger");else{if(k.layoutIdExitedTrigger){var J;p=(J=k.layoutIdExitedTrigger)!=null&&J.triggeringLayoutId?new Wv(HX,k.layoutIdExitedTrigger.triggeringLayoutId,k.id):new K("Not able to create LayoutIdExitedTrigger")}else{if(k.layoutExitedForReasonTrigger){var q,F;((q=k.layoutExitedForReasonTrigger)==null?0:q.triggeringLayoutId)&&((F= k.layoutExitedForReasonTrigger)==null?0:F.layoutExitReason)?(p=txi(k.layoutExitedForReasonTrigger.layoutExitReason),k=p instanceof K?p:new VH(HX,k.layoutExitedForReasonTrigger.triggeringLayoutId,[p],k.id)):k=new K("Not able to create LayoutIdExitedForReasonTrigger")}else{if(k.onLayoutSelfExitRequestedTrigger){var d;p=(d=k.onLayoutSelfExitRequestedTrigger)!=null&&d.triggeringLayoutId?new QH(HX,k.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,k.id):new K("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(k.onNewPlaybackAfterContentVideoIdTrigger)k= k.onNewPlaybackAfterContentVideoIdTrigger?new Pv(HX,p,k.id):new K("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(k.skipRequestedTrigger){var S;p=(S=k.skipRequestedTrigger)!=null&&S.triggeringLayoutId?new I2(HX,k.skipRequestedTrigger.triggeringLayoutId,k.id):new K("Not able to create SkipRequestedTrigger")}else if(k.slotIdEnteredTrigger){var U;p=(U=k.slotIdEnteredTrigger)!=null&&U.triggeringSlotId?new XV(HX,k.slotIdEnteredTrigger.triggeringSlotId,k.id):new K("Not able to create SlotIdEnteredTrigger")}else if(k.slotIdExitedTrigger){var f; p=(f=k.slotIdExitedTrigger)!=null&&f.triggeringSlotId?new R2(HX,k.slotIdExitedTrigger.triggeringSlotId,k.id):new K("Not able to create SkipRequestedTrigger")}else if(k.surveySubmittedTrigger){var b;p=(b=k.surveySubmittedTrigger)!=null&&b.triggeringLayoutId?new a2(HX,k.surveySubmittedTrigger.triggeringLayoutId,k.id):new K("Not able to create SurveySubmittedTrigger")}else{if(k.mediaResumedTrigger)k=k.mediaResumedTrigger&&k.id?new JcL(k.id):new K("Not able to create MediaResumedTrigger");else{if(k.closeRequestedTrigger){var N; p=(N=k.closeRequestedTrigger)!=null&&N.triggeringLayoutId?new ZX(HX,k.closeRequestedTrigger.triggeringLayoutId,k.id):new K("Not able to create CloseRequestedTrigger")}else if(k.slotIdScheduledTrigger){var y;p=(y=k.slotIdScheduledTrigger)!=null&&y.triggeringSlotId?new eH(HX,k.slotIdScheduledTrigger.triggeringSlotId,k.id):new K("Not able to create SlotIdScheduledTrigger")}else{if(k.mediaTimeRangeTrigger){var Y;J=Number((Y=k.mediaTimeRangeTrigger)==null?void 0:Y.offsetStartMilliseconds);var T;d=Number((T= k.mediaTimeRangeTrigger)==null?void 0:T.offsetEndMilliseconds);isFinite(J)&&isFinite(d)?(T=d,T===-1&&(T=t),t=J>T?new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:J,offsetEndMs:T},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",T===t&&J-500<=T):new Cv(J,T),k=t instanceof K?t:new cv(HX,p,t,!1,k.id)):k=new K("Not able to create MediaTimeRangeTrigger")}else if(k.contentVideoIdEndedTrigger)k=k.contentVideoIdEndedTrigger?new CH(HX,p,!1,k.id):new K("Not able to create ContentVideoIdEndedTrigger"); else{if(k.layoutIdEnteredTrigger){var A;p=(A=k.layoutIdEnteredTrigger)!=null&&A.triggeringLayoutId?new mZ(HX,k.layoutIdEnteredTrigger.triggeringLayoutId,k.id):new K("Not able to create LayoutIdEnteredTrigger")}else if(k.timeRelativeToLayoutEnterTrigger){var V;p=(V=k.timeRelativeToLayoutEnterTrigger)!=null&&V.triggeringLayoutId?new Mk(HX,Number(k.timeRelativeToLayoutEnterTrigger.durationMs),k.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,k.id):new K("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(k.onDifferentLayoutIdEnteredTrigger){var D; p=(D=k.onDifferentLayoutIdEnteredTrigger)!=null&&D.triggeringLayoutId&&k.onDifferentLayoutIdEnteredTrigger.slotType&&k.onDifferentLayoutIdEnteredTrigger.layoutType?new wp(HX,k.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,k.onDifferentLayoutIdEnteredTrigger.slotType,k.onDifferentLayoutIdEnteredTrigger.layoutType,k.id):new K("Not able to create CloseRequestedTrigger")}else{if(k.liveStreamBreakStartedTrigger)k=k.liveStreamBreakStartedTrigger&&k.id?new vv(HX,k.id):new K("Not able to create LiveStreamBreakStartedTrigger"); else if(k.liveStreamBreakEndedTrigger)k=k.liveStreamBreakEndedTrigger&&k.id?new DX(HX,k.id):new K("Not able to create LiveStreamBreakEndedTrigger");else{if(k.liveStreamBreakScheduledDurationMatchedTrigger){var v;p=(v=k.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&v.breakDurationMs?new sl(Number(k.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,k.id):new K("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(k.liveStreamBreakScheduledDurationNotMatchedTrigger){var w; p=(w=k.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&w.breakDurationMs?new LH(Number(k.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,k.id):new K("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(k.newSlotScheduledWithBreakDurationTrigger){var X;p=(X=k.newSlotScheduledWithBreakDurationTrigger)!=null&&X.breakDurationMs?new nH(Number(k.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,k.id):new K("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else p= k.prefetchCacheExpiredTrigger?new Gz(HX,k.id):new K("Not able to convert an AdsControlflowTrigger.");k=p}p=k}k=p}p=k}k=p}p=k}k=p}p=k}k=p}p=k}k=p}return k}; PT=function(k,p){p.T>=2&&(k.slot_pos=p.adPodIndex);k.autoplay="1"}; adu=function(k,p,t,J,q,F,d,S){return p===null?new K("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:p,ActionCompanionAdRenderer:J}):[h7h(k,p,d,F,function(U){var f=U.slotId;U=S(U);var b=J.adLayoutLoggingData,N=new kf([new PV(J),new uN(q)]);f=MU(t.Y.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f);var y={layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hp:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",YI:new Map, layoutExitNormalTriggers:[new Pv(t.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:N,lG:U(y),adLayoutLoggingData:b}})]}; Mxj=function(k,p,t,J,q,F,d,S){return p===null?new K("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:p,TopBannerImageTextIconButtonedLayoutViewModel:J}):[h7h(k,p,d,F,function(U){var f=U.slotId;U=S(U);var b=J.adLayoutLoggingData,N=new kf([new GX(J),new uN(q)]);f=MU(t.Y.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f);var y={layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hp:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", YI:new Map,layoutExitNormalTriggers:[new Pv(t.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:N,lG:U(y),adLayoutLoggingData:b}})]}; jIi=function(k,p,t,J,q,F){if(!F)for(p=g.Z(p),F=p.next();!F.done;F=p.next())F=F.value,GP(k,F.renderer,F.config.adPlacementConfig.kind);k=Array.from(k.values()).filter(function(b){return gUT(b)}); p=[];F=g.Z(k);for(var d=F.next(),S={};!d.done;S={oU:void 0},d=F.next()){S.oU=d.value;d=g.Z(S.oU.r$);for(var U=d.next(),f={};!U.done;f={bL:void 0},U=d.next())f.bL=U.value,U=function(b,N){return function(y){return b.bL.Ls(y,N.oU.instreamVideoAdRenderer.elementId,b.bL.Ll)}}(f,S),f.bL.isContentVideoCompanion?p.push(uy_(t,J,q,S.oU.instreamVideoAdRenderer.elementId,f.bL.associatedCompositePlayerBytesLayoutId,f.bL.adSlotLoggingData,U)):k.length>1?p.push(ldL(t,J,q,S.oU.instreamVideoAdRenderer.elementId,f.bL.adSlotLoggingData, function(b,N){return function(y){return b.bL.Ls(y,N.oU.instreamVideoAdRenderer.elementId,b.bL.Ll,b.bL.associatedCompositePlayerBytesLayoutId)}}(f,S))):p.push(ldL(t,J,q,S.oU.instreamVideoAdRenderer.elementId,f.bL.adSlotLoggingData,U))}return p}; GP=function(k,p,t){if(p=OQi(p)){p=g.Z(p);for(var J=p.next();!J.done;J=p.next())if((J=J.value)&&J.externalVideoId){var q=Ih(k,J.externalVideoId);q.instreamVideoAdRenderer||(q.instreamVideoAdRenderer=J,q.iq=t)}else d3("InstreamVideoAdRenderer without externalVideoId")}}; OQi=function(k){var p=[],t=k.sandwichedLinearAdRenderer&&k.sandwichedLinearAdRenderer.linearAd&&g.e(k.sandwichedLinearAdRenderer.linearAd,qg);if(t)return p.push(t),p;if(k.instreamVideoAdRenderer)return p.push(k.instreamVideoAdRenderer),p;if(k.linearAdSequenceRenderer&&k.linearAdSequenceRenderer.linearAds){k=g.Z(k.linearAdSequenceRenderer.linearAds);for(t=k.next();!t.done;t=k.next())t=t.value,g.e(t,qg)&&p.push(g.e(t,qg));return p}return null}; gUT=function(k){if(k.instreamVideoAdRenderer===void 0)return d3("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var p=g.Z(k.r$),t=p.next();!t.done;t=p.next()){t=t.value;if(t.Ls===void 0)return!1;if(t.Ll===void 0)return d3("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(k.iq===void 0||t.kO===void 0||k.iq!==t.kO&&t.kO!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(k.instreamVideoAdRenderer.elementId===void 0)return d3("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:k.iq,"matching APSR kind":t.kO}),!1}return!0}; Ih=function(k,p){k.has(p)||k.set(p,{instreamVideoAdRenderer:void 0,iq:void 0,adVideoId:p,r$:[]});return k.get(p)}; XF=function(k,p,t,J,q,F,d,S,U){q?Ih(k,q).r$.push({KL0:p,kO:t,isContentVideoCompanion:J,Ll:d,associatedCompositePlayerBytesLayoutId:F,adSlotLoggingData:S,Ls:U}):d3("Companion AdPlacementSupportedRenderer without adVideoId")}; Rh=function(k){var p=0;k=g.Z(k.questions);for(var t=k.next();!t.done;t=k.next())if(t=t.value,t=g.e(t,Vk)||g.e(t,WT)){var J=void 0;p+=((J=t.surveyAdQuestionCommon)==null?void 0:J.durationMilliseconds)||0}return p}; BT=function(k){var p,t,J,q,F=((t=g.e((p=k.questions)==null?void 0:p[0],Vk))==null?void 0:t.surveyAdQuestionCommon)||((q=g.e((J=k.questions)==null?void 0:J[0],WT))==null?void 0:q.surveyAdQuestionCommon),d;p=[].concat(g.m(((d=k.playbackCommands)==null?void 0:d.instreamAdCompleteCommands)||[]),g.m((F==null?void 0:F.timeoutCommands)||[]));var S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B,O,l,oi,$h,kh;return{impressionCommands:(S=k.playbackCommands)==null?void 0:S.impressionCommands,errorCommands:(U=k.playbackCommands)== null?void 0:U.errorCommands,muteCommands:(f=k.playbackCommands)==null?void 0:f.muteCommands,unmuteCommands:(b=k.playbackCommands)==null?void 0:b.unmuteCommands,pauseCommands:(N=k.playbackCommands)==null?void 0:N.pauseCommands,rewindCommands:(y=k.playbackCommands)==null?void 0:y.rewindCommands,resumeCommands:(Y=k.playbackCommands)==null?void 0:Y.resumeCommands,skipCommands:(T=k.playbackCommands)==null?void 0:T.skipCommands,progressCommands:(A=k.playbackCommands)==null?void 0:A.progressCommands,bAY:(V= k.playbackCommands)==null?void 0:V.clickthroughCommands,fullscreenCommands:(D=k.playbackCommands)==null?void 0:D.fullscreenCommands,activeViewViewableCommands:(v=k.playbackCommands)==null?void 0:v.activeViewViewableCommands,activeViewMeasurableCommands:(w=k.playbackCommands)==null?void 0:w.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(X=k.playbackCommands)==null?void 0:X.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(B=k.playbackCommands)== null?void 0:(O=B.activeViewTracking)==null?void 0:O.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(l=k.playbackCommands)==null?void 0:(oi=l.activeViewTracking)==null?void 0:oi.activeViewAudioMeasurableCommands,endFullscreenCommands:($h=k.playbackCommands)==null?void 0:$h.endFullscreenCommands,abandonCommands:(kh=k.playbackCommands)==null?void 0:kh.abandonCommands,completeCommands:p}}; HQ0=function(k,p,t,J,q,F,d){return function(S,U){return K_h(k,U.slotId,S,F,function(f,b){var N=U.layoutId;f=d(f);return zP(p,N,b,q,f,"LAYOUT_TYPE_SURVEY",[new Ea(t),J],t.adLayoutLoggingData)})}}; pV6=function(k,p,t,J,q,F,d){if(!xPh(k))return new K("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:k});var S=k.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[kX9(F,p,t,J,function(U){var f=U.slotId;U=d(U);f=MU(q.Y.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",f);var b={layoutId:f,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hp:"core"},N=new Wv(q.T,J);return{layoutId:f,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",YI:new Map,layoutExitNormalTriggers:[N], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new S$(S)]),lG:U(b)}})]}; xPh=function(k){k=g.e(k==null?void 0:k.additionalPlayerOverlay,tK6);if(!k)return!1;var p=k.slidingMessages;return k.title&&p&&p.length!==0?!0:!1}; oiq=function(k,p,t,J,q){var F;if((F=k.playerOverlay)==null||!F.instreamSurveyAdRenderer)return function(){return[]}; if(!cc9(k))return function(){return new K("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:k})}; var d=k.playerOverlay.instreamSurveyAdRenderer,S=Rh(d);return S<=0?function(){return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:d})}:function(U,f){var b=J$M(U,t,J,function(N){var y=N.slotId; N=f(N);var Y=BT(d);y=MU(q.Y.get(),"LAYOUT_TYPE_SURVEY",y);var T={layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",hp:"core"},A=new Wv(q.T,J),V=new I2(q.T,y),D=new a2(q.T,y),v=new $PT(q.T);return{layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",YI:new Map,layoutExitNormalTriggers:[A,v],layoutExitSkipTriggers:[V],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[D],l3:[],hp:"core",clientMetadata:new kf([new dA(d),new uN(p),new Gn(S/1E3),new BX(Y)]),lG:N(T),adLayoutLoggingData:d.adLayoutLoggingData}}); U=pV6(k,t,b.slotId,J,q,U,f);return U instanceof K?U:[b].concat(g.m(U))}}; U09=function(k,p,t,J,q,F,d){d=d===void 0?!1:d;var S=[];try{var U=[];if(t.renderer.linearAdSequenceRenderer)var f=function(A){A=qr0(A.slotId,t,p,q(A),J,F,d);U=A.MEy;return A.CJ}; else if(t.renderer.instreamVideoAdRenderer)f=function(A){var V=A.slotId;A=q(A);var D=d,v=t.config.adPlacementConfig,w=FXh(v),X=w.TP,B=w.uN;w=t.renderer.instreamVideoAdRenderer;var O;if(w==null?0:(O=w.playerOverlay)==null?0:O.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var l=ep(w,D);O=Math.min(X+l.videoLengthSeconds*1E3,B);D=new Tz(0,[l.videoLengthSeconds]);B=l.videoLengthSeconds;var oi=l.playerVars,$h=l.instreamAdPlayerOverlayRenderer,kh=l.playerOverlayLayoutRenderer, h=l.adVideoId,x=$0L(t),C=l.YI;l=l.o$;var a=w==null?void 0:w.adLayoutLoggingData;w=w==null?void 0:w.sodarExtensionData;V=MU(p.Y.get(),"LAYOUT_TYPE_MEDIA",V);var zL={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",hp:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",YI:C,layoutExitNormalTriggers:[new DX(p.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new xi(J),new Co(B),new Ao(oi),new WX(X),new D$(O),$h&&new k0($h), kh&&new po(kh),new uN(v),new HV(h),new lN(D),new no(x),w&&new V7(w),new Y0({current:null}),new Lo({}),new ho(l)].filter(d0L)),lG:A(zL),adLayoutLoggingData:a}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var b=Ei9(k,J,t.adSlotLoggingData,f);S.push(b);for(var N=g.Z(U),y=N.next();!y.done;y=N.next()){var Y=y.value,T=Y(k,q);if(T instanceof K)return T;S.push.apply(S,g.m(T))}}catch(A){return new K(A,{errorMessage:A.message,AdPlacementRenderer:t,numberOfSurveyRenderers:Srj(t)})}return S}; Srj=function(k){k=(k.renderer.linearAdSequenceRenderer||{}).linearAds;return k!=null&&k.length?k.filter(function(p){var t,J;return((t=g.e(p,qg))==null?void 0:(J=t.playerOverlay)==null?void 0:J.instreamSurveyAdRenderer)!=null}).length:0}; qr0=function(k,p,t,J,q,F,d){var S=p.config.adPlacementConfig,U=FXh(S),f=U.TP,b=U.uN;U=(p.renderer.linearAdSequenceRenderer||{}).linearAds;if(U==null||!U.length)throw new TypeError("Expected linear ads");var N=[],y={SM:f,PS:0,Fcb:N};U=U.map(function(T){return f6e(k,T,y,t,J,S,q,b,d)}).map(function(T,A){A=new Tz(A,N); return T(A)}); var Y=U.map(function(T){return T.KJ}); return{CJ:bfq(t,k,f,Y,S,$0L(p),J,b,F),MEy:U.map(function(T){return T.S7T})}}; f6e=function(k,p,t,J,q,F,d,S,U){var f=ep(g.e(p,qg),U),b=t.SM,N=t.PS,y=Math.min(b+f.videoLengthSeconds*1E3,S);t.SM=y;t.PS++;t.Fcb.push(f.videoLengthSeconds);var Y,T,A=(Y=g.e(p,qg))==null?void 0:(T=Y.playerOverlay)==null?void 0:T.instreamSurveyAdRenderer;if(f.adVideoId==="nPpU29QrbiU"&&A==null)throw new TypeError("Survey slate media has no survey overlay");return function(V){PT(f.playerVars,V);var D,v,w=f.videoLengthSeconds,X=f.playerVars,B=f.YI,O=f.o$,l=f.instreamAdPlayerOverlayRenderer,oi=f.playerOverlayLayoutRenderer, $h=f.adVideoId,kh=(D=g.e(p,qg))==null?void 0:D.adLayoutLoggingData;D=(v=g.e(p,qg))==null?void 0:v.sodarExtensionData;v=MU(J.Y.get(),"LAYOUT_TYPE_MEDIA",k);var h={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",hp:"adapter"};V={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",YI:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"adapter",clientMetadata:new kf([new xi(d),new Co(w),new Ao(X),new WX(b),new D$(y),new sa(N),new Y0({current:null}), l&&new k0(l),oi&&new po(oi),new uN(F),new HV($h),new lN(V),D&&new V7(D),A&&new e$(A),new Lo({}),new ho(O)].filter(d0L)),lG:q(h),adLayoutLoggingData:kh};w=oiq(g.e(p,qg),F,d,V.layoutId,J);return{KJ:V,S7T:w}}}; ep=function(k,p){if(!k)throw new TypeError("Expected instream video ad renderer");if(!k.playerVars)throw new TypeError("Expected player vars in url encoded string");var t=xl(k.playerVars),J=Number(t.length_seconds);if(isNaN(J))throw new TypeError("Expected valid length seconds in player vars");var q=Number(k.trimmedMaxNonSkippableAdDurationMs);J=isNaN(q)?J:Math.min(J,q/1E3);q=k.playerOverlay||{};q=q.instreamAdPlayerOverlayRenderer===void 0?null:q.instreamAdPlayerOverlayRenderer;var F=k.playerOverlay|| {};F=F.playerOverlayLayoutRenderer===void 0?null:F.playerOverlayLayoutRenderer;var d=t.video_id;d||(d=(d=k.externalVideoId)?d:void 0);if(!d)throw new TypeError("Expected valid video id in IVAR");if(p&&J===0){var S;p=(S=NLS[d])!=null?S:J}else p=J;return{playerVars:t,videoLengthSeconds:p,instreamAdPlayerOverlayRenderer:q,playerOverlayLayoutRenderer:F,adVideoId:d,YI:k.pings?AA(k.pings):new Map,o$:CT(k.pings)}}; $0L=function(k){k=Number(k.driftRecoveryMs);return isNaN(k)||k<=0?null:k}; FXh=function(k){var p=k.adTimeOffset||{};k=p.offsetEndMilliseconds;p=Number(p.offsetStartMilliseconds);if(isNaN(p))throw new TypeError("Expected valid start offset");k=Number(k);if(isNaN(k))throw new TypeError("Expected valid end offset");return{TP:p,uN:k}}; y$i=function(k){var p,t=(p=pk(k.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:p.current;if(!t)return null;p=pk(k.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var J=k.layoutId,q=pk(k.clientMetadata,"metadata_type_content_cpn"),F=pk(k.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=pk(k.clientMetadata,"metadata_type_player_underlay_renderer"),S=pk(k.clientMetadata,"metadata_type_ad_placement_config"),U=pk(k.clientMetadata,"metadata_type_video_length_seconds"); var f=Oa(k.clientMetadata,"metadata_type_layout_enter_ms")&&Oa(k.clientMetadata,"metadata_type_layout_exit_ms")?(pk(k.clientMetadata,"metadata_type_layout_exit_ms")-pk(k.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Pb:J,contentCpn:q,S7:t,TV:p,instreamAdPlayerOverlayRenderer:F,instreamAdPlayerUnderlayRenderer:d,adPlacementConfig:S,videoLengthSeconds:U,PP:f,inPlayerLayoutId:pk(k.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:pk(k.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; r$q=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T){J=Un(J,"SLOT_TYPE_PLAYER_BYTES");k=YrT(q,k,d,t,J,U,f);if(k instanceof K)return k;var A;f=(A=pk(k.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!f)return new K("Invalid adNotify layout");p=TL0(f,q,F,t,S,p,U,b,N,y,Y,T,d);return p instanceof K?p:[k].concat(g.m(p))}; TL0=function(k,p,t,J,q,F,d,S,U,f,b,N,y){t=Zf0(p,t,J,F,d,S,U,f,b,N,y);if(t instanceof K)return t;k=CNq(p,k,d,q,t);return k instanceof K?k:[].concat(g.m(k.Or),[k.ge])}; m06=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y){p=Zf0(k,p,t,q,F,S,U,f,b,N,y,Y);if(p instanceof K)return p;k=A$_(k,t,F,d,J,S.m2,p);return k instanceof K?k:k.Or.concat(k.ge)}; Zf0=function(k,p,t,J,q,F,d,S,U,f,b,N){var y=ah(J,t,f);return y instanceof x0?new K(y):f.j.G().experiments.Gb("html5_refactor_in_player_slot_generation")?function(Y){var T=new Tz(0,[y.Un]);Y=VKT(p,y.layoutId,y.Iv,t,Mg(y.playerVars,y.r0,F,U,T),y.Un,q,T,d(Y),S.get(y.Iv.externalVideoId),N);T=[];if(y.Iv.playerOverlay.instreamAdPlayerOverlayRenderer){var A=y$i(Y);if(!A)return d3("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,Y),{layout:Y,Or:[]}; T=[WXe(k,A.contentCpn,A.Pb,function(D){return gR(p,D.slotId,"core",A,$f(b,D))},A.inPlayerSlotId)].concat(g.m(T)); if(A.instreamAdPlayerUnderlayRenderer&&u9(f)){var V=A.instreamAdPlayerUnderlayRenderer;T=[D0T(k,A.contentCpn,A.Pb,function(D){return s0T(p,D.slotId,V,A.adPlacementConfig,A.Pb,$f(b,D))})].concat(g.m(T))}}return{layout:Y, Or:T}}:function(Y){var T=new Tz(0,[y.Un]); return{layout:VKT(p,y.layoutId,y.Iv,t,Mg(y.playerVars,y.r0,F,U,T),y.Un,q,T,d(Y),S.get(y.Iv.externalVideoId),N),Or:[]}}}; ah=function(k,p,t){if(!k.playerVars)return new x0("No playerVars available in InstreamVideoAdRenderer.");var J,q;if(k.elementId==null||k.playerVars==null||k.playerOverlay==null||((J=k.playerOverlay)==null?void 0:J.instreamAdPlayerOverlayRenderer)==null&&((q=k.playerOverlay)==null?void 0:q.playerOverlayLayoutRenderer)==null||k.pings==null||k.externalVideoId==null)return new x0("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:k});J=xl(k.playerVars);q=Number(J.length_seconds); isNaN(q)&&(q=0,d3("Expected valid length seconds in player vars but got NaN"));if(t.jy(p.kind==="AD_PLACEMENT_KIND_START")){if(k.layoutId===void 0)return new x0("Expected server generated layout ID in instreamVideoAdRenderer");p=k.layoutId}else p=k.elementId;return{layoutId:p,Iv:k,playerVars:J,r0:k.playerVars,Un:q}}; Mg=function(k,p,t,J,q){k.iv_load_policy=J;p=xl(p);if(p.cta_conversion_urls)try{k.cta_conversion_urls=JSON.parse(p.cta_conversion_urls)}catch(F){d3(F)}t.C7&&(k.ctrl=t.C7);t.HR&&(k.ytr=t.HR);t.Fb&&(k.ytrcc=t.Fb);t.isMdxPlayback&&(k.mdx="1");k.vvt&&(k.vss_credentials_token=k.vvt,t.Q$&&(k.vss_credentials_token_type=t.Q$),t.mdxEnvironment&&(k.mdx_environment=t.mdxEnvironment));PT(k,q);return k}; LXT=function(k){var p=new Map;k=g.Z(k);for(var t=k.next();!t.done;t=k.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);return p}; l9=function(k){return k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; viT=function(k){return k!=null}; GXM=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y){for(var T=[],A=g.Z(k),V=A.next();!V.done;V=A.next())if(V=V.value,!Ac9(V)&&!sI6(V)){var D=l9(V)&&!!V.slotEntryTrigger.beforeContentVideoIdStartedTrigger,v=U.jy(D),w=c$S(V,f,J,t.Rq,v);if(w instanceof K)return w;var X=void 0,B={slotId:V.adSlotMetadata.slotId,slotType:V.adSlotMetadata.slotType,slotPhysicalPosition:(X=V.adSlotMetadata.slotPhysicalPosition)!=null?X:1,hp:"core",slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers, slotExpirationTriggers:w.slotExpirationTriggers},O=g.e(V.fulfillmentContent.fulfilledLayout,TP);if(O){if(!YP(O))return new K("Invalid PlayerBytesAdLayoutRenderer");X=N&&!(l9(V)&&V.slotEntryTrigger.beforeContentVideoIdStartedTrigger);w=w.slotFulfillmentTriggers.some(function(l){return l instanceof sl}); v=X?niS(B,V.adSlotMetadata.triggerEvent,O,t,J,F,f,k,v,y,w,Y):wV9(B,V.adSlotMetadata.triggerEvent,O,p,t,J,q,F,d,S,U,f,k,b,v,V.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof K)return v;w=[];l9(V)&&w.push(new ld({gi:l9(V)&&!!V.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));X&&w.push(new Lo({}));t.m2&&w.push(new zn({}));w.push(new gA(D));V=Object.assign({},B,{clientMetadata:new kf(w),fulfilledLayout:v.layout,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});T.push.apply(T,g.m(v.Or)); T.push(V)}else if(D=g.e(V.fulfillmentContent.fulfilledLayout,Ab)){if(!Cow(D))return new K("Invalid PlayerUnderlayAdLayoutRenderer");D=ifi(D,J,t.Rq,F,B,V.adSlotMetadata.triggerEvent,V.adSlotMetadata.triggeringSourceLayoutId);if(D instanceof K)return D;V=Object.assign({},B,{clientMetadata:new kf([]),fulfilledLayout:D,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});T.push(V)}else if(D=g.e(V.fulfillmentContent.fulfilledLayout,VxL)){if(!UP9(D))return new K("Invalid AboveFeedAdLayoutRenderer");D= Q0j(D,J,t.Rq,F,B,V.adSlotMetadata.triggerEvent,V.adSlotMetadata.triggeringSourceLayoutId);if(D instanceof K)return D;V=Object.assign({},B,{clientMetadata:new kf([]),fulfilledLayout:D,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});T.push(V)}else if(D=g.e(V.fulfillmentContent.fulfilledLayout,W_i)){if(!uT(D.adLayoutMetadata)||!g.e(D.renderingContent,lT))return new K("Invalid BelowPlayerAdLayoutRenderer");D=Q0j(D,J,t.Rq,F,B,V.adSlotMetadata.triggerEvent,V.adSlotMetadata.triggeringSourceLayoutId); if(D instanceof K)return D;V=Object.assign({},B,{clientMetadata:new kf([]),fulfilledLayout:D,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});T.push(V)}else if(D=g.e(V.fulfillmentContent.fulfilledLayout,mz)){if(!rR(D))return new K("Invalid PlayerBytesSequenceItemAdLayoutRenderer");D=PNM(D,J,t.Rq,F,B,V.adSlotMetadata.triggerEvent);if(D instanceof K)return D;V=Object.assign({},B,{clientMetadata:new kf([]),fulfilledLayout:D,adSlotLoggingData:V.adSlotMetadata.adSlotLoggingData});T.push(V)}else return new K("Unable to retrieve a client slot ["+ B.slotType+"] from a given AdSlotRenderer")}return T}; PNM=function(k,p,t,J,q,F){var d={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,hp:"core"};p=jp(k,p,t);return p instanceof K?p:Object.assign({},d,{renderingContent:k.renderingContent,YI:AA(k.renderingContent.pings)},p,{lG:$f(J,q)(d),clientMetadata:new kf([new uN(Ox(F))]),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData})}; Q0j=function(k,p,t,J,q,F,d){var S={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,hp:"core"};p=jp(k,p,t);if(p instanceof K)return p;t=[];t.push(new uN(Ox(F)));F==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&d!==void 0&&t.push(new Ua(d));return Object.assign({},S,{renderingContent:k.renderingContent,YI:new Map([["impression",I69(k)]])},p,{lG:$f(J,q)(S),clientMetadata:new kf(t),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData})}; ifi=function(k,p,t,J,q,F,d){if(k.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(d=g.e(k.renderingContent,ZK))if(d=g.e(d.sidePanel,rch)){var S={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,hp:"core"};p=jp(k,p,t);k=p instanceof K?p:Object.assign({},S,{renderingContent:k.renderingContent,YI:new Map([["impression",d.impressionPings||[]],["resume",d.resumePings||[]]])},p,{lG:$f(J,q)(S),clientMetadata:new kf([new uN(Ox(F))]),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData})}else k= new K("DismissablePanelTextPortraitImageRenderer is missing");else k=new K("SqueezebackPlayerSidePanelRenderer is missing");else k.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.e(k.renderingContent,ych)?(d={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,hp:"core"},p=jp(k,p,t),k=p instanceof K?p:Object.assign({},d,{renderingContent:k.renderingContent,YI:new Map},p,{lG:$f(J,q)(d),clientMetadata:new kf([new uN(Ox(F))]),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData})): k=new K("CounterfactualRenderer is missing"):k.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?k=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):k.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?k=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):k.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.e(k.renderingContent,CJ)?(F={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType, hp:"core"},p=jp(k,p,t),k=p instanceof K?p:d?Object.assign({},F,{renderingContent:k.renderingContent,YI:new Map},p,{lG:$f(J,q)(F),clientMetadata:new kf([new Ua(d)]),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData}):new K("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):k=new K("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):k.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.e(k.renderingContent,Yh_)? (F={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,hp:"core"},p=jp(k,p,t),k=p instanceof K?p:Object.assign({},F,{renderingContent:k.renderingContent,YI:new Map([])},p,{lG:$f(J,q)(F),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new kf([])})):k=new K("AdsEngagementPanelSectionListViewModel is missing"):k=new K("LayoutType ["+k.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return k}; niS=function(k,p,t,J,q,F,d,S,U,f,b,N){if((N==null?void 0:N.nM)===void 0||(N==null?void 0:N.Zt)===void 0)return new K("Cached ad break range from cue point is missing");var y=jp(t,q,J.Rq);if(y instanceof K)return y;y={layoutExitMuteTriggers:[],layoutExitNormalTriggers:y.layoutExitNormalTriggers,layoutExitSkipTriggers:[],l3:[],layoutExitUserInputSubmittedTriggers:[]};if(g.e(t.renderingContent,qg))return k=XVu(k,p,t,y,q,F,S,U,J.Rq,d,N.nM,N.Zt),k instanceof K?k:k.eV===void 0?new K("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:k.layout,Or:[k.eV]};var Y=g.e(t.renderingContent,Jb);if(Y){if(!uT(t.adLayoutMetadata))return new K("Invalid ad layout metadata");if(!oh(Y))return new K("Invalid sequential layout");Y=Y.sequentialLayouts.map(function(T){return T.playerBytesAdLayoutRenderer}); k=Rqh(k,p,t,y,Y,q,J,F,d,U,S,f,N.nM,N.Zt,b);return k instanceof K?k:{layout:k.w$,Or:k.Or}}return new K("Not able to convert a sequential layout")}; Rqh=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T){var A=BL9(q,y,Y);if(A instanceof K)return A;var V=[],D=[];A=g.Z(A);for(var v=A.next();!v.done;v=A.next()){var w=v.value;v=k;var X=q[w.PS],B=w,O=p;w=F;var l=d,oi=S,$h=U,kh=f,h=b,x=KJ(X);if(x instanceof K)v=x;else{var C={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,hp:"adapter"};B=zq0(O,X,B,w);B instanceof K?v=B:(v=Object.assign({},C,HT,{YI:x,renderingContent:X.renderingContent,clientMetadata:new kf(B),lG:$f(oi,v)(C),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData}), v=(X=xP(h,v,w,l.Rq,oi,$h,kh,void 0,!0))?X instanceof K?X:{layout:v,eV:X}:new K("Expecting associatedInPlayerSlot"))}if(v instanceof K)return v;V.push(v.layout);D.push(v.eV)}q={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,hp:"core"};p=[new no(Number(t.driftRecoveryMs)),new WX(y),new D$(Y),new uN(Ox(p)),new MG(N),new Lo({})];T&&p.push(new j$({}));return{w$:Object.assign({},q,J,{N8:V,YI:new Map,clientMetadata:new kf(p),lG:$f(S,k)(q)}),Or:D}}; XVu=function(k,p,t,J,q,F,d,S,U,f,b,N){if(!YP(t))return new K("Invalid PlayerBytesAdLayoutRenderer");var y=KJ(t);if(y instanceof K)return y;var Y={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,hp:"core"},T=g.e(t.renderingContent,qg);if(!T)return new K("Invalid rendering content for DAI media layout");T=ep(T,!1);b={xa:T,PS:0,SM:b,fG:Math.min(b+T.videoLengthSeconds*1E3,N),BJ:new Tz(0,[T.videoLengthSeconds])};var A;N=(A=Number(t.driftRecoveryMs))!=null?A:void 0;p=zq0(p, t,b,q,N);if(p instanceof K)return p;k=Object.assign({},Y,J,{YI:y,renderingContent:t.renderingContent,clientMetadata:new kf(p),lG:$f(F,k)(Y),adLayoutLoggingData:t.adLayoutMetadata.adLayoutLoggingData});return(q=xP(d,k,q,U,F,f,S,void 0,!0))?q instanceof K?q:{layout:k,eV:q}:new K("Expecting associatedInPlayerSlot")}; wV9=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A){var V=jp(t,F,q.Rq);if(V instanceof K)return V;if(g.e(t.renderingContent,qg)){U=equ([t],q,U);if(U instanceof K)return U;if(U.length!==1)return new K("Only expected one media layout.");k=hqe(k,p,t,V,U[0],void 0,"core",J,F,d,S,f,y,Y,T,q.Rq,N,void 0,A);return k instanceof K?k:{layout:k.layout,Or:k.eV?[k.eV]:[]}}var D=g.e(t.renderingContent,Jb);if(D){if(!uT(t.adLayoutMetadata))return new K("Invalid ad layout metadata");if(!oh(D))return new K("Invalid sequential layout"); D=D.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer}); k=a60(k,p,t.adLayoutMetadata,V,D,J,F,q,U,d,S,f,b,N,T,y,Y,A);return k instanceof K?k:{layout:k.w$,Or:k.Or}}return new K("Not able to convert a sequential layout")}; a60=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D){var v=new Kf({current:null}),w=equ(q,S,U);if(w instanceof K)return w;U=[];for(var X=[],B=void 0,O=0;O<q.length;O++){var l=q[O];if(g.e(l.renderingContent,qg)){B=LW(y)&&v6(y)?w[O+1]:void 0;B=hqe(k,p,l,HT,w[O],B,"adapter",F,d,f,b,N,A,V,T,S.Rq,Y,v,D);if(B instanceof K)return B;U.push(B.layout);B.eV&&X.push(B.eV);B=w[O]}else if(g.e(l.renderingContent,FF)){var oi=k,$h=b;if(YP(l)){var kh=g.e(l.renderingContent,FF);if(kh&&kh.playerVars!==void 0){var h={layoutId:l.adLayoutMetadata.layoutId, layoutType:l.adLayoutMetadata.layoutType,hp:"adapter"};kh=xl(kh.playerVars);kh.autoplay="1";l=Object.assign({},h,HT,{renderingContent:l.renderingContent,clientMetadata:new kf([new vX({}),new uN({kind:"AD_PLACEMENT_KIND_START"}),new Y0({current:null}),new Ao(kh)]),YI:new Map,lG:$f($h,oi)(h),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData})}else l=new K("Invalid ad intro renderer")}else l=new K("Invalid PlayerBytesAdLayoutRenderer");if(l instanceof K)return l;U.push(l)}else if(g.e(l.renderingContent, oe))if(V){l=MKi(k,l,b,Ox(p),B);if(l instanceof K)return l;U.push(l);l=xP(A,l,d,S.Rq,b,Y,T,v,!1);if(l instanceof K)return l;if(l)X.push(l);else return new K("Not able to retrieve InPlayer slot for endcap")}else{a:{oi=l.adLayoutMetadata.layoutId;$h=g.Z(F);for(h=$h.next();!h.done;h=$h.next()){h=h.value;var x=kh=void 0,C=((kh=h.renderer)==null?void 0:(x=kh.linearAdSequenceRenderer)==null?void 0:x.linearAds)||[];kh=g.Z(C);for(x=kh.next();!x.done;x=kh.next())if((x=g.e(x.value,oe))&&x.inPlayerSlotId!==void 0&& x.inPlayerLayoutId!==void 0&&x.associatedPlayerBytesLayoutId!==void 0&&x.associatedPlayerBytesLayoutId===oi){oi={Io:x,adPlacementConfig:h.config.adPlacementConfig};break a}}oi=new K("Not able to find associated InPlayer slot for endcap")}if(oi instanceof K)return oi;l=MKi(k,l,b,oi.adPlacementConfig,B);if(l instanceof K)return l;U.push(l);l=giS(l.layoutId,Y,d,oi,v,b);if(l instanceof K)return l;X.push(l)}}p={layoutId:t.layoutId,layoutType:t.layoutType,hp:"core"};return{w$:Object.assign({},p,J,{N8:U, YI:new Map,clientMetadata:new kf([v]),lG:$f(b,k)(p)}),Or:X}}; hqe=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v){if(!YP(t))return new K("Invalid PlayerBytesAdLayoutRenderer");var w=KJ(t);if(w instanceof K)return w;d={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,hp:d};a:{var X=t.adLayoutMetadata.layoutId,B=g.e(t.renderingContent,qg);if(B&&tb(B)){var O=[];if(Y)O.push(new uN(Ox(p)));else{b:{S=g.Z(S);for(p=S.next();!p.done;p=S.next()){p=p.value;var l=OQi(p.renderer)||[],oi=g.Z(l);for(l=oi.next();!l.done;l=oi.next())if(l=l.value, l.associatedPlayerBytesLayoutId===X){l.associatedPlayerBytesLayoutId?(S=l.playerOverlay,oi=S!==void 0&&S.playerOverlayLayoutRenderer!==void 0&&S.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&S.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,S=S!==void 0&&S.instreamAdPlayerOverlayRenderer!==void 0&&S.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&S.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||oi):S=!1;p=S?{instreamVideoAdRenderer:l,adPlacementConfig:p.config.adPlacementConfig}: new K("Invalid InPlayer shim");break b}}p=new K("Not able to find associated InPlayer slot")}if(p instanceof K){F=p;break a}S=p.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;l=p.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var $h;oi=($h=S==null?void 0:S.inPlayerSlotId)!=null?$h:l==null?void 0:l.inPlayerSlotId;var kh;$h=(kh=S==null?void 0:S.inPlayerLayoutId)!=null?kh:l==null?void 0:l.inPlayerLayoutId;if(oi===void 0){F=new K("InPlayer shim slot id is undefined"); break a}if($h===void 0){F=new K("InPlayer shim layout id is undefined");break a}O.push(new fo($h),new NG(oi),new sa(q.BJ.adPodIndex),new uN(p.adPlacementConfig));S&&O.push(new k0(S));l&&O.push(new po(l))}O.push(new lN(q.BJ),new HV(B.externalVideoId),new xi(U),new BX({impressionCommands:B.impressionCommands,abandonCommands:B.onAbandonCommands,completeCommands:B.completeCommands,progressCommands:B.adVideoProgressCommands}),new Ao(q.Qc),new Y0({current:null}),new Co(q.ewp.Un),new ho(CT(B.pings)),new jK(q.BJ.adPodIndex)); v&&O.push(new Ua(v));(q=uGL(X,y))&&O.push(new Jo(q));F&&O.push(new m3(F.Qc));B.adNextParams&&O.push(new R0(B.adNextParams));B.clickthroughEndpoint&&O.push(new BV(B.clickthroughEndpoint));B.legacyInfoCardVastExtension&&O.push(new XU(B.legacyInfoCardVastExtension));B.sodarExtensionData&&O.push(new V7(B.sodarExtensionData));D&&B.adPodSkipTarget&&B.adPodSkipTarget>0&&(O.push(D),O.push(new Or(B.adPodSkipTarget)));(F=f.get(B.externalVideoId))&&O.push(new PX(F));F=O}else F=new K("Invalid vod media renderer")}if(F instanceof K)return F;k=Object.assign({},d,J,{YI:w,renderingContent:t.renderingContent,clientMetadata:new kf(F),lG:$f(b,k)(d),adLayoutLoggingData:t.adLayoutMetadata.adLayoutLoggingData});t=g.e(t.renderingContent,qg);if(!t||!tb(t))return new K("Invalid meida renderer");N=Ih(N,t.externalVideoId);N.instreamVideoAdRenderer=t;N.iq="AD_PLACEMENT_KIND_START";return Y?(U=xP(y,k,U,A,b,V,T,D,!1),U instanceof K?U:uGL(k.layoutId,y)&&U?{layout:Object.assign({},k,{clientMetadata:new kf(F.concat(new oA(U)))})}:{layout:k,eV:U}): {layout:k}}; MKi=function(k,p,t,J,q){if(!YP(p))return new K("Invalid PlayerBytesAdLayoutRenderer");var F=g.e(p.renderingContent,oe);if(!F||F.durationMilliseconds===void 0)return new K("Invalid endcap renderer");var d={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,hp:"adapter"};J=[new IA(F.durationMilliseconds),new BX({impressionCommands:void 0,abandonCommands:F.abandonCommands?[{commandExecutorCommand:F.abandonCommands}]:void 0,completeCommands:F.completionCommands}),new uN(J), new bd("LAYOUT_TYPE_ENDCAP")];if(q){J.push(new jK(q.BJ.adPodIndex-1));J.push(new sa(q.BJ.adPodIndex));var S;J.push(new Or((S=q.adPodSkipTarget)!=null?S:-1))}return Object.assign({},d,HT,{renderingContent:p.renderingContent,clientMetadata:new kf(J),YI:F.skipPings?new Map([["skip",F.skipPings]]):new Map,lG:$f(t,k)(d),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}; xP=function(k,p,t,J,q,F,d,S,U){k=k.filter(function(b){return b.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&b.adSlotMetadata.triggeringSourceLayoutId===p.layoutId}); if(k.length!==0){if(k.length!==1)return new K("Invalid InPlayer slot association for the given PlayerBytes layout");k=k[0];d=c$S(k,F,t,J,d);if(d instanceof K)return d;var f;F={slotId:k.adSlotMetadata.slotId,slotType:k.adSlotMetadata.slotType,slotPhysicalPosition:(f=k.adSlotMetadata.slotPhysicalPosition)!=null?f:1,hp:"core",slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:d.slotExpirationTriggers};f=g.e(k.fulfillmentContent.fulfilledLayout, mPh);if(!f||!bQ_(f))return new K("Invalid InPlayerAdLayoutRenderer");d={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,hp:"core"};t=jp(f,t,J);if(t instanceof K)return t;J=[];U&&J.push(new Lo({}));if(f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")J.push.apply(J,g.m(l6i(k.adSlotMetadata.triggerEvent,p)));else if(f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")J.push(new uN(Ox(k.adSlotMetadata.triggerEvent))),S&&J.push(S);else return new K("Not able to parse an SDF InPlayer layout"); q=Object.assign({},d,t,{renderingContent:f.renderingContent,YI:new Map,lG:$f(q,F)(d),clientMetadata:new kf(J),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},F,{fulfilledLayout:q,clientMetadata:new kf([])})}}; l6i=function(k,p){var t=[];t.push(new uN(Ox(k)));t.push(new Ua(p.layoutId));(k=pk(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&t.push(new Y0(k));(k=pk(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&t.push(new Kf(k));(k=pk(p.clientMetadata,"metadata_type_remote_slots_data"))&&t.push(new PX(k));(k=pk(p.clientMetadata,"metadata_type_ad_next_params"))&&t.push(new R0(k));(k=pk(p.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&t.push(new BV(k));(k= pk(p.clientMetadata,"metadata_type_ad_pod_info"))&&t.push(new lN(k));(p=pk(p.clientMetadata,"metadata_type_ad_video_id"))&&t.push(new HV(p));return t}; giS=function(k,p,t,J,q,F){function d(f){return ke(p,f)} var S=J.Io.inPlayerSlotId,U={layoutId:J.Io.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",hp:"core"};t={slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:new mZ(d,k),slotFulfillmentTriggers:[new XV(d,S)],slotExpirationTriggers:[new R2(d,S),new Pv(d,t)]};k=Object.assign({},U,{layoutExitNormalTriggers:[new Wv(d,k)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],YI:new Map,clientMetadata:new kf([new FU(J.Io), new uN(J.adPlacementConfig),q]),lG:$f(F,t)(U),adLayoutLoggingData:J.Io.adLayoutLoggingData});return Object.assign({},t,{clientMetadata:new kf([new wA(k)])})}; uGL=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next())if(t=t.value,t.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var J=g.e(t.fulfillmentContent.fulfilledLayout,Ab);if(J&&(J=g.e(J.renderingContent,ZK))&&J.associatedPlayerBytesLayoutId===k)return t}}; c$S=function(k,p,t,J,q){var F=j0q(Qk(k.slotEntryTrigger,t,J),q,k,p);if(F instanceof K)return F;for(var d=[],S=g.Z(k.slotFulfillmentTriggers),U=S.next();!U.done;U=S.next()){U=Qk(U.value,t,J);if(U instanceof K)return U;d.push(U)}d=OfS(d,q,k,p);p=[];k=g.Z(k.slotExpirationTriggers);for(q=k.next();!q.done;q=k.next()){q=Qk(q.value,t,J);if(q instanceof K)return q;p.push(q)}return{slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:p}}; j0q=function(k,p,t,J){return p&&t.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k instanceof rp?new Ya(function(q){return ke(J,q)},t.adSlotMetadata.slotId):k}; OfS=function(k,p,t,J){return p&&t.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?k.map(function(q){return q instanceof XV?new eH(function(F){return ke(J,F)},t.adSlotMetadata.slotId):q}):k}; jp=function(k,p,t){for(var J=[],q=g.Z(k.layoutExitNormalTriggers||[]),F=q.next();!F.done;F=q.next()){F=Qk(F.value,p,t);if(F instanceof K)return F;J.push(F)}q=[];F=g.Z(k.layoutExitSkipTriggers||[]);for(var d=F.next();!d.done;d=F.next()){d=Qk(d.value,p,t);if(d instanceof K)return d;q.push(d)}F=[];d=g.Z(k.layoutExitMuteTriggers||[]);for(var S=d.next();!S.done;S=d.next()){S=Qk(S.value,p,t);if(S instanceof K)return S;F.push(S)}d=[];k=g.Z(k.layoutExitUserInputSubmittedTriggers||[]);for(S=k.next();!S.done;S= k.next()){S=Qk(S.value,p,t);if(S instanceof K)return S;d.push(S)}return{layoutExitNormalTriggers:J,layoutExitSkipTriggers:q,layoutExitMuteTriggers:F,layoutExitUserInputSubmittedTriggers:d,l3:[]}}; KJ=function(k){var p=g.e(k.renderingContent,qg);if(p==null?0:p.pings)return AA(p.pings);k=g.e(k.renderingContent,oe);return(k==null?0:k.skipPings)?new Map([["skip",k.skipPings]]):new Map}; zq0=function(k,p,t,J,q){p=g.e(p.renderingContent,qg);if(!p)return new K("Invalid rendering content for DAI media layout");k=[new xi(J),new Co(t.xa.videoLengthSeconds),new Ao(t.xa.playerVars),new WX(t.SM),new D$(t.fG),new sa(t.PS),new uN(Ox(k)),new HV(t.xa.adVideoId),new lN(t.BJ),p.sodarExtensionData&&new V7(p.sodarExtensionData),new Y0({current:null}),new Lo({}),new ho(CT(p.pings))].filter(viT);q!==void 0&&k.push(new no(q));return k}; BL9=function(k,p,t){k=k.map(function(U){return ep(g.e(U.renderingContent,qg),!1)}); var J=k.map(function(U){return U.videoLengthSeconds}),q=J.map(function(U,f){return new Tz(f,J)}),F=p,d=t,S=[]; k.forEach(function(U,f){d=Math.min(F+U.videoLengthSeconds*1E3,t);PT(U.playerVars,q[f]);S.push({xa:U,SM:F,fG:d,PS:f,BJ:q[f]});F=d}); return S}; equ=function(k,p,t){for(var J=[],q=g.Z(k),F=q.next();!F.done;F=q.next())if(F=g.e(F.value.renderingContent,qg)){if(!tb(F))return new K("Invalid vod media renderer");J.push(KX9(F))}q=J.map(function(N){return N.Un}); F=[];for(var d=0,S=0;S<k.length;S++){var U=g.e(k[S].renderingContent,qg);if(U){var f=new Tz(d,q),b=Mg(J[d].playerVars,J[d].r0,p,t,f);F[S]={BJ:f,adPodSkipTarget:U.adPodSkipTarget,ewp:J[d],Qc:b};d++}}return F}; KX9=function(k){var p=xl(k.playerVars),t=Number(p.length_seconds);isNaN(t)&&(t=0,d3("Expected valid length seconds in player vars but got NaN"));return{playerVars:p,r0:k.playerVars,Un:t}}; Ox=function(k){switch(k){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; I69=function(k){if(g.e(k.renderingContent,Ol)){var p;return((p=g.e(k.renderingContent,Ol))==null?void 0:p.impressionPings)||[]}if(g.e(k.renderingContent,lT)){var t;return((t=g.e(k.renderingContent,lT))==null?void 0:t.impressionPings)||[]}if(g.e(k.renderingContent,jH)){var J;return((J=g.e(k.renderingContent,jH))==null?void 0:J.impressionPings)||[]}return[]}; x0i=function(k,p,t,J,q,F,d,S,U){var f=t.pings;return f?[Hfq(k,F,S,q,function(b){var N=b.slotId;b=U(b);var y=t.adLayoutLoggingData,Y=t.progressCommands;N=MU(p.Y.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",N);var T={layoutId:N,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",hp:"core"},A=AA(f),V=[new Pv(p.T,F)],D;var v=f==null?void 0:(D=f.activeViewTracking)==null?void 0:D.identifier;return{layoutId:N,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",YI:A,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new uN(J),new ho(CT(f)),new aA(v),new Co(d/1E3),new BX({progressCommands:Y}),new Gn(d/1E3)]),lG:b(T),adLayoutLoggingData:y}})]:new K("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:t})}; pXT=function(k,p,t,J,q,F,d,S){k=knT(k,t,F,d,J,function(U){var f=U.slotId;U=S(U);f=MU(p.Y.get(),"LAYOUT_TYPE_FORECASTING",f);var b={layoutId:f,layoutType:"LAYOUT_TYPE_FORECASTING",hp:"core"},N=new Map,y=q.impressionUrls;y&&N.set("impression",y);return{layoutId:f,layoutType:"LAYOUT_TYPE_FORECASTING",YI:N,layoutExitNormalTriggers:[new QH(p.T,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new cX(q),new uN(t)]),lG:U(b)}}); return k instanceof K?k:[k]}; Jou=function(k,p,t,J,q,F,d){return[t$L(k,F,J,function(S){var U=S.slotId;S=d(S);U=MU(p.Y.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",U);var f={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hp:"core"};return{layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",YI:new Map,layoutExitNormalTriggers:[new Pv(p.T,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new k0(q),new uN(t)]),lG:S(f), adLayoutLoggingData:q.adLayoutLoggingData}})]}; qaM=function(k,p,t,J,q,F,d,S){k=o0w(k,t,F,d,J,function(U,f){var b=U.slotId;U=S(U);var N=q.contentSupportedRenderer;N?N.textOverlayAdContentRenderer?(N=MU(p.Y.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",b),f=px(p,N,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",q,t,U,ti(p,f,b))):N.enhancedTextOverlayAdContentRenderer?(N=MU(p.Y.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",b),f=px(p,N,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",q,t,U,ti(p,f,b))):N.imageOverlayAdContentRenderer?(N=MU(p.Y.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", b),f=ti(p,f,b),f.push(new Mk(p.T,45E3,N)),f=px(p,N,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",q,t,U,f)):f=new x0("InvideoOverlayAdRenderer without appropriate sub renderer"):f=new x0("InvideoOverlayAdRenderer without contentSupportedRenderer");return f}); return k instanceof K?k:[k]}; dGS=function(k,p,t,J,q,F,d,S,U){var f=Number(J.durationMilliseconds);return isNaN(f)?new K("Expected valid duration for AdActionInterstitialRenderer."):function(b){return F3L(p,b.slotId,t,J,f,{impressionCommands:void 0,abandonCommands:J.abandonCommands?[{commandExecutorCommand:J.abandonCommands}]:void 0,completeCommands:J.completionCommands},J.skipPings?new Map([["skip",J.skipPings]]):new Map,d(b),function(N){return $Gu(k,N,q,function(y,Y){var T=y.slotId;y=d(y);T=MU(p.Y.get(),"LAYOUT_TYPE_ENDCAP", T);return zP(p,T,Y,t,y,"LAYOUT_TYPE_ENDCAP",[new FU(J),S],J.adLayoutLoggingData)})},U,F-1,J.adLayoutLoggingData,F)}}; E0e=function(k,p,t,J){if(!t.playerVars)return new K("No playerVars available in AdIntroRenderer.");var q=xl(t.playerVars);q.autoplay="1";return function(F){var d=F.slotId;F=J(F);d=MU(k.Y.get(),"LAYOUT_TYPE_MEDIA",d);var S={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",hp:"adapter"};return{mG:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",YI:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"adapter",clientMetadata:new kf([new vX({}), new uN(p),new Y0({current:null}),new Ao(q)]),lG:F(S)},R9:[new VH(k.T,d,["error"])],Pl:[],k_:[],Vm:[]}}}; UGi=function(k,p,t,J,q,F,d,S,U,f){f=f===void 0?!1:f;var b=Rh(q);if(!vUu(q,f))return new K("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:q});if(b<=0)return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:q});var N=HQ0(k,p,q,F,t,J,d);return N instanceof K?N:function(y){return Sa6(p,y.slotId,t,b,q,BT(q),d(y),N,S,U)}}; f$T=function(k,p,t,J,q,F,d,S){function U(N){return $Gu(k,N,J,f)} function f(N,y){var Y=N.slotId;N=d(N);Y=MU(p.Y.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",Y);return zP(p,Y,y,t,N,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new $0(q),F],q.adLayoutLoggingData)} if(!iQh(q))return new K("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:q});var b=q.timeoutSeconds*1E3;return function(N){var y=N.slotId,Y={impressionCommands:q.impressionCommands,completeCommands:q.timeoutCommands,skipCommands:q.dismissCommands};N=d(N);y=Ji(p,y,t,b,Y,new Map,N,U,void 0,oH(p,t,q.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));Y=new fo(y.ue);N=new jK(S);return{mG:{layoutId:y.layoutId,layoutType:y.layoutType,YI:y.YI,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:y.hp,clientMetadata:new kf([].concat(g.m(y.eU),[Y,N])),lG:y.lG,adLayoutLoggingData:y.adLayoutLoggingData},R9:[],Pl:y.layoutExitMuteTriggers,k_:y.layoutExitUserInputSubmittedTriggers,Vm:y.l3,eV:y.eV}}}; NAh=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A){k=Un(k,"SLOT_TYPE_PLAYER_BYTES");J=YrT(p,d,J,q,k,f,b);if(J instanceof K)return J;var V;d=(V=pk(J.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:V.layoutId;if(!d)return new K("Invalid adNotify layout");p=boe(d,p,t,q,F,U,S,f,N,y,Y,T,A);return p instanceof K?p:[J].concat(g.m(p))}; boe=function(k,p,t,J,q,F,d,S,U,f,b,N,y){t=yoS(p,t,J,F,d,S,U,f,b,N,y);YaM(F)?(J=TAu(p,k),k=Un(p.Y.get(),"SLOT_TYPE_IN_PLAYER"),F=MU(p.Y.get(),"LAYOUT_TYPE_SURVEY",k),S=qo(p,J,S),p=[].concat(g.m(S.slotExpirationTriggers),[new ZX(p.T,F)]),k=t({slotId:S.slotId,slotType:S.slotType,slotPhysicalPosition:S.slotPhysicalPosition,slotEntryTrigger:S.slotEntryTrigger,slotFulfillmentTriggers:S.slotFulfillmentTriggers,slotExpirationTriggers:p,hp:S.hp},{slotId:k,layoutId:F}),q=k instanceof K?k:{ge:Object.assign({}, S,{slotExpirationTriggers:p,clientMetadata:new kf([new wA(k.layout)]),adSlotLoggingData:q}),Or:k.Or}):q=CNq(p,k,S,q,t);return q instanceof K?q:[].concat(g.m(q.Or),[q.ge])}; Zoe=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y){p=yoS(k,p,t,q,F,d,U,f,b,N,y,Y);YaM(q)?(q=roT(k,t,d,S),q instanceof K?k=q:(S=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER"),U=MU(k.Y.get(),"LAYOUT_TYPE_SURVEY",S),d=[].concat(g.m(q.slotExpirationTriggers),[new ZX(k.T,U)]),S=p({slotId:q.slotId,slotType:q.slotType,slotPhysicalPosition:q.slotPhysicalPosition,hp:q.hp,slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:d},{slotId:S,layoutId:U}),k=S instanceof K?S:{ge:{slotId:q.slotId, slotType:q.slotType,slotPhysicalPosition:q.slotPhysicalPosition,slotEntryTrigger:FA(k,t,q.slotId,q.slotEntryTrigger),slotFulfillmentTriggers:$e(k,t,q.slotId,q.slotFulfillmentTriggers),slotExpirationTriggers:d,hp:q.hp,clientMetadata:new kf([new gA(EX(t)),new wA(S.layout),new ld({gi:k.gi(t)})]),adSlotLoggingData:J},Or:S.Or})):k=A$_(k,t,d,S,J,U.m2,p);return k instanceof K?k:k.Or.concat(k.ge)}; YaM=function(k){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())if(g.e(p.value,$P))return!0;return!1}; yoS=function(k,p,t,J,q,F,d,S,U,f,b,N){return function(y,Y){if(LW(b)&&v6(b))a:{var T=Cdi(J,t,b);if(T instanceof K)Y=T;else{for(var A=0,V=[],D=[],v=[],w=[],X=[],B=[],O=new Tn({current:null}),l=new Kf({current:null}),oi=!1,$h=[],kh=0,h=[],x=0;x<J.length;x++){var C=J[x],a=g.e(C,qg);if(a){a=ah(a,t,b);if(a instanceof x0){Y=new K(a);break a}var zL=new Tz(kh,T),AC=Mg(a.playerVars,a.r0,d,f,zL);kh++;h[x]={renderer:C,data:a,BJ:zL,Qc:AC}}}kh=-1;for(T=0;T<J.length;T++)if(x=J[T],C=g.e(x,FF)){x=E0e(p,t,C,S);if(x instanceof K){Y=x;break a}x=x(y);V.push(x.mG);D=[].concat(g.m(x.R9),g.m(D));v=[].concat(g.m(x.Pl),g.m(v));x.eV&&($h=[x.eV].concat(g.m($h)))}else if(g.e(x,qg))C=h[T],kh=C.data,x=C.BJ,C=C.Qc,a=h[T+1],zL=void 0,a&&(zL=a.Qc),x=AoS(p,kh.layoutId,kh.Iv,t,C,kh.Un,F,x,S(y),l,U.get(kh.Iv.externalVideoId),zL,N),A++,V.push(x.mG),D=[].concat(g.m(x.R9),g.m(D)),v=[].concat(g.m(x.Pl),g.m(v)),oi||(B.push(l),oi=!0),kh=(kh=kh.Iv.adPodSkipTarget)&&kh>0?kh:-1;else if(C=g.e(x,oe)){x=dGS(k,p,t,C,F,A,S,l,kh);if(x instanceof K){Y= x;break a}x=x(y);V.push(x.mG);D=[].concat(g.m(x.R9),g.m(D));v=[].concat(g.m(x.Pl),g.m(v));x.eV&&($h=[x.eV].concat(g.m($h)))}else if(C=g.e(x,$P)){if(Y===void 0){Y=new K("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:C});break a}x=UGi(k,p,t,F,C,O,S,Y,A,ac(b,"supports_multi_step_on_desktop"));if(x instanceof K){Y=x;break a}x=x(y);V.push(x.mG);x.eV&&$h.push(x.eV);D=[].concat(g.m(x.R9),g.m(D));v=[].concat(g.m(x.Pl),g.m(v));w=[].concat(g.m(x.k_),g.m(w)); X=[].concat(g.m(x.Vm),g.m(X));B=[O].concat(g.m(B))}else if(x=g.e(x,dR)){x=f$T(k,p,t,F,x,O,S,A);if(x instanceof K){Y=x;break a}x=x(y);V.push(x.mG);x.eV&&$h.push(x.eV);v=[].concat(g.m(x.Pl),g.m(v))}else{Y=new K("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}Y={N8:V,layoutExitSkipTriggers:D,layoutExitUserInputSubmittedTriggers:w,l3:X,layoutExitMuteTriggers:v,eU:B,Or:$h}}}else a:if(A=Cdi(J,t,b),A instanceof K)Y=A;else{V=0;D=[];v=[];w=[];X=[];B=[];O=[];l=new Tn({current:null});oi=new Kf({current:null}); $h=!1;h=[];kh=-1;T=g.Z(J);for(x=T.next();!x.done;x=T.next())if(x=x.value,g.e(x,FF)){x=E0e(p,t,g.e(x,FF),S);if(x instanceof K){Y=x;break a}x=x(y);D.push(x.mG);v=[].concat(g.m(x.R9),g.m(v));w=[].concat(g.m(x.Pl),g.m(w));x.eV&&(h=[x.eV].concat(g.m(h)))}else if(g.e(x,qg)){kh=ah(g.e(x,qg),t,b);if(kh instanceof x0){Y=new K(kh);break a}x=new Tz(V,A);x=AoS(p,kh.layoutId,kh.Iv,t,Mg(kh.playerVars,kh.r0,d,f,x),kh.Un,F,x,S(y),oi,U.get(kh.Iv.externalVideoId),void 0,N);V++;D.push(x.mG);v=[].concat(g.m(x.R9),g.m(v)); w=[].concat(g.m(x.Pl),g.m(w));$h||(O.push(oi),$h=!0);kh=(kh=kh.Iv.adPodSkipTarget)&&kh>0?kh:-1}else if(g.e(x,oe)){x=dGS(k,p,t,g.e(x,oe),F,V,S,oi,kh);if(x instanceof K){Y=x;break a}x=x(y);D.push(x.mG);v=[].concat(g.m(x.R9),g.m(v));w=[].concat(g.m(x.Pl),g.m(w));x.eV&&(h=[x.eV].concat(g.m(h)))}else if(g.e(x,$P)){if(Y===void 0){Y=new K("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.e(x,$P)});break a}x=UGi(k,p,t,F,g.e(x,$P),l,S,Y,V,ac(b,"supports_multi_step_on_desktop")); if(x instanceof K){Y=x;break a}x=x(y);D.push(x.mG);x.eV&&h.push(x.eV);v=[].concat(g.m(x.R9),g.m(v));w=[].concat(g.m(x.Pl),g.m(w));X=[].concat(g.m(x.k_),g.m(X));B=[].concat(g.m(x.Vm),g.m(B));O=[l].concat(g.m(O))}else if(g.e(x,dR)){x=f$T(k,p,t,F,g.e(x,dR),l,S,V);if(x instanceof K){Y=x;break a}x=x(y);D.push(x.mG);x.eV&&h.push(x.eV);w=[].concat(g.m(x.Pl),g.m(w))}else{Y=new K("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}Y={N8:D,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:X, l3:B,layoutExitMuteTriggers:w,eU:O,Or:h}}Y instanceof K?y=Y:(B=y.slotId,A=Y.N8,V=Y.layoutExitSkipTriggers,D=Y.layoutExitMuteTriggers,v=Y.layoutExitUserInputSubmittedTriggers,w=Y.eU,y=S(y),X=q?q.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B=q?q.layoutId:MU(p.Y.get(),X,B),O={layoutId:B,layoutType:X,hp:"core"},y={layout:{layoutId:B,layoutType:X,YI:new Map,layoutExitNormalTriggers:[new QH(p.T,B)],layoutExitSkipTriggers:V,layoutExitMuteTriggers:D,layoutExitUserInputSubmittedTriggers:v,l3:[],hp:"core", clientMetadata:new kf([new rA(A)].concat(g.m(w))),lG:y(O)},Or:Y.Or});return y}}; Cdi=function(k,p,t){var J=[];k=g.Z(k);for(var q=k.next();!q.done;q=k.next())if(q=q.value,g.e(q,qg)){q=ah(g.e(q,qg),p,t);if(q instanceof x0)return new K(q);J.push(q.Un)}return J}; V$i=function(k,p,t,J,q,F,d,S){if(!vUu(t,S===void 0?!1:S))return new K("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:t});var U=Rh(t);if(U<=0)return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:t});var f=new Tn({current:null}),b=HQ0(k,p,t,f,J,F,d);return mG9(k,J,F,U,q,function(N,y){var Y=N.slotId,T=BT(t);N=d(N);var A,V=(A=oH(p,J,t.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?A: MU(p.Y.get(),"LAYOUT_TYPE_MEDIA_BREAK",Y);Y={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hp:"core"};A=b(V,y);var D=pk(A.clientMetadata,"metadata_type_fulfilled_layout");D||d3("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");T=[new uN(J),new IA(U),new BX(T),f];D&&T.push(new bd(D.layoutType));return{OEy:{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",YI:new Map,layoutExitNormalTriggers:[new QH(p.T,V)],layoutExitSkipTriggers:[new I2(p.T, y.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new a2(p.T,y.layoutId)],l3:[],hp:"core",clientMetadata:new kf(T),lG:N(Y)},n88:A}})}; W39=function(k){if(!wdu(k))return!1;var p=g.e(k.adVideoStart,Sg);return p?g.e(k.linearAd,qg)&&kP(p)?!0:(d3("Invalid Sandwich with notify"),!1):!1}; DGj=function(k){if(k.linearAds==null)return!1;k=g.e(k.adStart,Sg);return k?kP(k)?!0:(d3("Invalid LASR with notify"),!1):!1}; sAu=function(k){if(!nU0(k))return!1;k=g.e(k.adStart,Sg);return k?kP(k)?!0:(d3("Invalid LASR with notify"),!1):!1}; UX=function(k,p,t,J,q,F,d,S,U,f){this.C=k;this.Y=p;this.T=t;this.uh=J;this.y4=q;this.N=F;this.FG=d;this.FU=S;this.I8=U;this.loadPolicy=f===void 0?1:f}; Idh=function(k,p,t,J,q,F,d,S,U,f){var b=[];if(p.length===0&&J.length===0&&t.length===0)return b;p=p.filter(pJ);var N=t.filter(DPu),y=J.filter(pJ),Y=new Map,T=LXT(p),A=t.some(function(a){var zL;return(a==null?void 0:(zL=a.adSlotMetadata)==null?void 0:zL.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),V=t.some(function(a){var zL; return(a==null?void 0:(zL=a.adSlotMetadata)==null?void 0:zL.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),D=t.some(function(a){var zL; return(a==null?void 0:(zL=a.adSlotMetadata)==null?void 0:zL.slotType)==="SLOT_TYPE_IN_PLAYER"}),v=t.some(function(a){var zL,AC; return(a==null?void 0:(zL=a.adSlotMetadata)==null?void 0:zL.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(a==null?void 0:(AC=a.adSlotMetadata)==null?void 0:AC.slotType)==="SLOT_TYPE_ABOVE_FEED"}); t=t.some(function(a){var zL;return(a==null?void 0:(zL=a.adSlotMetadata)==null?void 0:zL.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(A||V||D||v||t)f=GXM(N,p,S,q,T,k.y4.get(),k.loadPolicy,Y,k.uh.get(),k.C.get(),D,d,U,f),f instanceof K?d3(f,void 0,void 0,{contentCpn:q}):b.push.apply(b,g.m(f));f=g.Z(p);for(t=f.next();!t.done;t=f.next())t=t.value,V=L3q(k,Y,t,q,F,d,A,S,T,U,N),V instanceof K?d3(V,void 0,void 0,{renderer:t.renderer,config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:q,daiEnabled:d}):b.push.apply(b,g.m(V));v0u(k.uh.get())||(F=co9(k,y,q,S,T,Y),b.push.apply(b,g.m(F)));if(k.N===null||d&&!S.vB){var w, X,B;k=S.m2&&p.length===1&&((w=p[0].config)==null?void 0:(X=w.adPlacementConfig)==null?void 0:X.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((B=p[0].renderer)==null?void 0:B.adBreakServiceRenderer);if(!b.length&&!k){var O,l,oi,$h;d3("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":p.length,contentCpn:q,"first APR kind":(O=p[0])==null?void 0:(l=O.config)==null?void 0:(oi=l.adPlacementConfig)==null?void 0:oi.kind,renderer:($h=p[0])==null?void 0: $h.renderer})}return b}w=J.filter(pJ);b.push.apply(b,g.m(jIi(Y,w,k.Y.get(),k.N,q,A)));if(!b.length){var kh,h,x,C;d3("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":p.length,contentCpn:q,daiEnabled:d.toString(),"first APR kind":(kh=p[0])==null?void 0:(h=kh.config)==null?void 0:(x=h.adPlacementConfig)==null?void 0:x.kind,renderer:(C=p[0])==null?void 0:C.renderer})}return b}; co9=function(k,p,t,J,q,F){function d(y){return $f(k.y4.get(),y)} var S=[];p=g.Z(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;var f=U.renderer,b=f.sandwichedLinearAdRenderer,N=f.linearAdSequenceRenderer;b&&W39(b)?(d3("Found AdNotify with SandwichedLinearAdRenderer"),N=g.e(b.adVideoStart,Sg),b=g.e(b.linearAd,qg),GP(F,f,U.config.adPlacementConfig.kind),f=void 0,N=TL0((f=N)==null?void 0:f.layout.layoutId,k.Y.get(),k.T.get(),U.config.adPlacementConfig,U.adSlotLoggingData,b,t,J,d,q,k.loadPolicy,k.uh.get(),k.y4.get()),N instanceof K?d3(N):S.push.apply(S,g.m(N))): N&&(!N.adLayoutMetadata&&DGj(N)||N.adLayoutMetadata&&sAu(N))&&(d3("Found AdNotify with LinearAdSequenceRenderer"),GP(F,f,U.config.adPlacementConfig.kind),f=void 0,b=boe((f=g.e(N.adStart,Sg))==null?void 0:f.layout.layoutId,k.Y.get(),k.T.get(),U.config.adPlacementConfig,U.adSlotLoggingData,N.linearAds,uT(N.adLayoutMetadata)?N.adLayoutMetadata:void 0,t,J,d,q,k.loadPolicy,k.uh.get()),b instanceof K?d3(b):S.push.apply(S,g.m(b)))}return S}; L3q=function(k,p,t,J,q,F,d,S,U,f,b){function N(D){return $f(k.y4.get(),D)} var y=t.renderer,Y=t.config.adPlacementConfig,T=Y.kind,A=t.adSlotLoggingData,V=S.vB&&T==="AD_PLACEMENT_KIND_START";V=F&&!V;if(y.adsEngagementPanelRenderer!=null)return XF(p,t.elementId,T,y.adsEngagementPanelRenderer.isContentVideoEngagementPanel,y.adsEngagementPanelRenderer.adVideoId,y.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,Y,A,function(D,v,w,X){var B=k.T.get(),O=D.slotId,l=y.adsEngagementPanelRenderer;D=$f(k.y4.get(),D);return fx(B,O,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new I0(l),v,w,l.impressionPings,D,y.adsEngagementPanelRenderer.adLayoutLoggingData,X)}),[]; if(y.adsEngagementPanelLayoutViewModel)return XF(p,t.elementId,T,y.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,y.adsEngagementPanelLayoutViewModel.adVideoId,y.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,Y,A,function(D,v,w,X){var B=k.T.get(),O=D.slotId,l=y.adsEngagementPanelLayoutViewModel;D=$f(k.y4.get(),D);return bA(B,O,"LAYOUT_TYPE_PANEL",new XG(l),v,w,D,y.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,X)}),[]; if(y.actionCompanionAdRenderer!=null){if(y.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return adu(k.Y.get(),k.N,k.T.get(),y.actionCompanionAdRenderer,Y,A,J,N);XF(p,t.elementId,T,y.actionCompanionAdRenderer.isContentVideoCompanion,y.actionCompanionAdRenderer.adVideoId,y.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,Y,A,function(D,v,w,X){var B=k.T.get(),O=D.slotId,l=y.actionCompanionAdRenderer;D=$f(k.y4.get(),D);return fx(B,O,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new PV(l),v,w,l.impressionPings,D,y.actionCompanionAdRenderer.adLayoutLoggingData,X)})}else if(y.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(y.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Mxj(k.Y.get(),k.N,k.T.get(),y.topBannerImageTextIconButtonedLayoutViewModel,Y,A,J,N); XF(p,t.elementId,T,y.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,y.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,y.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,Y,A,function(D,v,w,X){var B=k.T.get(),O=D.slotId,l=y.topBannerImageTextIconButtonedLayoutViewModel;D=$f(k.y4.get(),D);return bA(B,O,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new GX(l),v,w,D,y.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,X)})}else if(y.imageCompanionAdRenderer)XF(p, t.elementId,T,y.imageCompanionAdRenderer.isContentVideoCompanion,y.imageCompanionAdRenderer.adVideoId,y.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,Y,A,function(D,v,w,X){var B=k.T.get(),O=D.slotId,l=y.imageCompanionAdRenderer; D=$f(k.y4.get(),D);return fx(B,O,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new eK(l),v,w,l.impressionPings,D,y.imageCompanionAdRenderer.adLayoutLoggingData,X)}); else if(y.bannerImageLayoutViewModel)XF(p,t.elementId,T,y.bannerImageLayoutViewModel.isContentVideoCompanion,y.bannerImageLayoutViewModel.adVideoId,y.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,Y,A,function(D,v,w,X){var B=k.T.get(),O=D.slotId,l=y.bannerImageLayoutViewModel;D=$f(k.y4.get(),D);return bA(B,O,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new h$(l),v,w,D,y.bannerImageLayoutViewModel.adLayoutLoggingData,X)}); else if(y.shoppingCompanionCarouselRenderer)XF(p,t.elementId,T,y.shoppingCompanionCarouselRenderer.isContentVideoCompanion,y.shoppingCompanionCarouselRenderer.adVideoId,y.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,Y,A,function(D,v,w,X){var B=k.T.get(),O=D.slotId,l=y.shoppingCompanionCarouselRenderer;D=$f(k.y4.get(),D);return fx(B,O,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new a0(l),v,w,l.impressionPings,D,y.shoppingCompanionCarouselRenderer.adLayoutLoggingData,X)}); else if(y.adBreakServiceRenderer){if(!e7L(t))return[];if(T==="AD_PLACEMENT_KIND_PAUSE")return z7M(k.Y.get(),Y,A,t.renderer.adBreakServiceRenderer,J);if(T!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&T!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return BKi(k.Y.get(),Y,A,t.renderer.adBreakServiceRenderer,J,q,F);S.m2||d3("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:T,adPlacementConfig:Y,daiEnabledForContentVideo:String(F),isServedFromLiveInfra:String(S.m2),clientPlaybackNonce:S.clientPlaybackNonce}); if(T==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!k.FG)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!k.I8)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");k.I8.Ov({adPlacementRenderer:t,contentCpn:J,Rq:q});q=k.FG.get().getCurrentTimeSec(1,!1);return n0q(k.Y.get(),t.renderer.adBreakServiceRenderer,Y,q,J,A,F)}if(!k.FU)return new K("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); k.FU.Ov({adPlacementRenderer:t,contentCpn:J,Rq:q})}else{if(y.clientForecastingAdRenderer)return pXT(k.Y.get(),k.T.get(),Y,A,y.clientForecastingAdRenderer,J,q,N);if(y.invideoOverlayAdRenderer)return qaM(k.Y.get(),k.T.get(),Y,A,y.invideoOverlayAdRenderer,J,q,N);if(y.instreamAdPlayerOverlayRenderer)return Jou(k.Y.get(),k.T.get(),Y,A,y.instreamAdPlayerOverlayRenderer,J,N);if((y.linearAdSequenceRenderer||y.instreamVideoAdRenderer)&&V)return U09(k.Y.get(),k.T.get(),t,J,N,f,!k.uh.get().j.G().D("html5_override_ad_video_length_killswitch")); if(y.linearAdSequenceRenderer&&!V){if(d)return[];GP(p,y,T);if(y.linearAdSequenceRenderer.adLayoutMetadata){if(!nU0(y.linearAdSequenceRenderer))return new K("Received invalid LinearAdSequenceRenderer.")}else if(y.linearAdSequenceRenderer.linearAds==null)return new K("Received invalid LinearAdSequenceRenderer.");if(g.e(y.linearAdSequenceRenderer.adStart,Sg)){d3("Found AdNotify in LinearAdSequenceRenderer");t=g.e(y.linearAdSequenceRenderer.adStart,Sg);if(!fdL(t))return new K("Invalid AdMessageRenderer."); F=y.linearAdSequenceRenderer.linearAds;return NAh(k.C.get(),k.Y.get(),k.T.get(),k.y4.get(),Y,A,t,uT(y.linearAdSequenceRenderer.adLayoutMetadata)?y.linearAdSequenceRenderer.adLayoutMetadata:void 0,F,J,q,S,N,U,k.loadPolicy,k.uh.get())}return Zoe(k.Y.get(),k.T.get(),Y,A,y.linearAdSequenceRenderer.linearAds,uT(y.linearAdSequenceRenderer.adLayoutMetadata)?y.linearAdSequenceRenderer.adLayoutMetadata:void 0,J,q,S,N,U,k.loadPolicy,k.uh.get(),b)}if(!y.remoteSlotsRenderer||F){if(y.instreamVideoAdRenderer&& !V){if(d)return[];GP(p,y,T);return m06(k.Y.get(),k.T.get(),Y,A,y.instreamVideoAdRenderer,J,q,S,N,U,k.loadPolicy,k.uh.get(),k.y4.get(),b)}if(y.instreamSurveyAdRenderer)return V$i(k.Y.get(),k.T.get(),y.instreamSurveyAdRenderer,Y,A,J,N,ac(k.uh.get(),"supports_multi_step_on_desktop"));if(y.sandwichedLinearAdRenderer!=null)return wdu(y.sandwichedLinearAdRenderer)?g.e(y.sandwichedLinearAdRenderer.adVideoStart,Sg)?(d3("Found AdNotify in SandwichedLinearAdRenderer"),t=g.e(y.sandwichedLinearAdRenderer.adVideoStart, Sg),fdL(t)?(F=g.e(y.sandwichedLinearAdRenderer.linearAd,qg))?r$q(t,F,Y,k.C.get(),k.Y.get(),k.T.get(),k.y4.get(),A,J,q,S,N,U,k.loadPolicy,k.uh.get()):new K("Missing IVAR from Sandwich"):new K("Invalid AdMessageRenderer.")):Zoe(k.Y.get(),k.T.get(),Y,A,[y.sandwichedLinearAdRenderer.adVideoStart,y.sandwichedLinearAdRenderer.linearAd],void 0,J,q,S,N,U,k.loadPolicy,k.uh.get()):new K("Received invalid SandwichedLinearAdRenderer.");if(y.videoAdTrackingRenderer!=null)return S=ac(k.uh.get(),"enable_h5_shorts_ad_terminal_events")&& S.n7,x0i(k.Y.get(),k.T.get(),y.videoAdTrackingRenderer,Y,A,J,q,S,N)}}return[]}; No=function(k,p,t,J,q,F,d,S){g.R.call(this);var U=this;this.Y=k;this.N=p;this.H1=J;this.FG=q;this.uh=F;this.mS=d;this.NP=S;this.T=null;t.get().addListener(this);this.addOnDisposeCallback(function(){t.MO()||t.get().removeListener(U)}); J.get().addListener(this);this.addOnDisposeCallback(function(){J.MO()||J.get().removeListener(U)})}; io6=function(k,p,t){var J=k.FG.get().getCurrentTimeSec(1,!1);k.uh.get().j.G().DB()&&OE(k.mS.get(),"sdai","onopp.1;evt."+t.event+";start."+t.startSecs.toFixed(3)+";d."+t.NR.toFixed(3));S0(k.Y.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var q=k.N.get(),F=p.adPlacementRenderer.renderer.adBreakServiceRenderer,d=p.contentCpn,S=p.adPlacementRenderer.adSlotLoggingData,U=yf(k.uh.get()),f=k.mS;if(q.uh.get().j.G().experiments.Gb("enable_smearing_expansion_dai")){var b=g.dU(q.uh.get().j.G().experiments, "max_prefetch_window_sec_for_livestream_optimization");var N=g.dU(q.uh.get().j.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");U={An:wX6(t),i7:!1,cueProcessedMs:J*1E3};var y=t.startSecs+t.NR;if(J===0)U.uB=new Cv(0,y*1E3);else{N=t.startSecs-N;var Y=N-J;U.uB=Y<=0?new Cv(N*1E3,y*1E3):new Cv(Math.floor(J+Math.random()*Math.min(Y,b))*1E3,y*1E3)}b=U}else b={An:wX6(t),i7:!1},y=t.startSecs+t.NR,t.startSecs<=J?U=new Cv((t.startSecs-4)*1E3,y*1E3):(N=Math.max(0,t.startSecs-J-10),U=new Cv(Math.floor(J+ Math.random()*(U?J===0?0:Math.min(N,5):N))*1E3,y*1E3)),b.uB=U;q=i9(q,F,d,b,S,[new Z$(t)]);f.get().j.PF(b.uB.start/1E3-J,t.startSecs-J);return[q]})}; Ye=function(k){var p,t=(p=pk(k.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:p.current;if(!t)return null;p=pk(k.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var J=k.layoutId,q=pk(k.clientMetadata,"metadata_type_content_cpn"),F=pk(k.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=pk(k.clientMetadata,"metadata_type_player_overlay_layout_renderer"),S=pk(k.clientMetadata,"metadata_type_player_underlay_renderer"),U=pk(k.clientMetadata, "metadata_type_ad_placement_config"),f=pk(k.clientMetadata,"metadata_type_video_length_seconds");var b=Oa(k.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?pk(k.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Oa(k.clientMetadata,"metadata_type_layout_enter_ms")&&Oa(k.clientMetadata,"metadata_type_layout_exit_ms")?(pk(k.clientMetadata,"metadata_type_layout_exit_ms")-pk(k.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Pb:J,contentCpn:q,S7:t,TV:p,instreamAdPlayerOverlayRenderer:F, playerOverlayLayoutRenderer:d,instreamAdPlayerUnderlayRenderer:S,adPlacementConfig:U,videoLengthSeconds:f,PP:b,inPlayerLayoutId:pk(k.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:pk(k.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Pd9=function(k,p){return QAM(k,p)}; Gn0=function(k,p){p=QAM(k,p);if(!p)return null;var t;p.PP=(t=pk(k.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:t.adBreakRemainingLengthSeconds;return p}; QAM=function(k,p){var t,J=(t=pk(k.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:t.current;if(!J)return null;t=xqw(k,p);return{oS:H1i(k,p),adPlacementConfig:pk(k.clientMetadata,"metadata_type_ad_placement_config"),QE:t,contentCpn:pk(k.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:pk(k.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:pk(k.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:pk(k.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,PP:void 0,S7:J,Pb:k.layoutId,videoLengthSeconds:pk(k.clientMetadata,"metadata_type_video_length_seconds")}}; TO=function(k,p,t,J,q,F,d,S,U){g.R.call(this);this.C=k;this.S=p;this.X=t;this.N=J;this.T=q;this.Y=F;this.y4=d;this.uh=S;this.XG=U;this.rj=!0}; I$0=function(k,p,t){return D0T(k.T.get(),p.contentCpn,p.Pb,function(J){return s0T(k.Y.get(),J.slotId,t,p.adPlacementConfig,p.Pb,$f(k.y4.get(),J))})}; ro=function(k,p,t,J,q,F,d,S){g.R.call(this);this.Y=k;this.T=p;this.N=t;this.uh=J;this.C=q;this.XG=F;this.FG=d;this.Qn=S}; Zt=function(k){g.R.call(this);this.T=k}; S0=function(k,p,t,J){k.T().Ix(p,J);t=t();k=k.T();k.Xd.ZN("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",p,J,t);p=g.Z(t);for(t=p.next();!t.done;t=p.next())a:{J=k;t=t.value;J.Xd.Ay("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",t);J.Xd.Ay("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",t);try{var q=J.T;if(g.WW(t.slotId))throw new K("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Yf(q,t))throw new K("Duplicate registration for slot.",{slotId:t.slotId,slotEntryTriggerType:t.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!q.XI.hV.has(t.slotType))throw new K("No fulfillment adapter factory registered for slot of type: "+t.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!q.XI.HO.has(t.slotType))throw new K("No SlotAdapterFactory registered for slot of type: "+t.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");QE(q,"TRIGGER_CATEGORY_SLOT_ENTRY",t.slotEntryTrigger?[t.slotEntryTrigger]:[]);QE(q,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", t.slotFulfillmentTriggers);QE(q,"TRIGGER_CATEGORY_SLOT_EXPIRATION",t.slotExpirationTriggers);var F=J.T,d=t.slotType+"_"+t.slotPhysicalPosition,S=v1(F,d);if(Yf(F,t))throw new K("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");S.set(t.slotId,new u_S(t));F.T.set(d,S)}catch(oi){oi instanceof K&&oi.RD?(J.Xd.o9("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",oi.RD,t),d3(oi,t,void 0,void 0,oi.yl)):(J.Xd.o9("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", t),d3(oi,t));break a}Yf(J.T,t).S=!0;try{var U=J.T,f=Yf(U,t),b=t.slotEntryTrigger,N=U.XI.jB.get(b.triggerType);N&&(N.z6("TRIGGER_CATEGORY_SLOT_ENTRY",b,t,null),f.NO.set(b.triggerId,N));for(var y=g.Z(t.slotFulfillmentTriggers),Y=y.next();!Y.done;Y=y.next()){var T=Y.value,A=U.XI.jB.get(T.triggerType);A&&(A.z6("TRIGGER_CATEGORY_SLOT_FULFILLMENT",T,t,null),f.gy.set(T.triggerId,A))}for(var V=g.Z(t.slotExpirationTriggers),D=V.next();!D.done;D=V.next()){var v=D.value,w=U.XI.jB.get(v.triggerType);w&&(w.z6("TRIGGER_CATEGORY_SLOT_EXPIRATION", v,t,null),f.L.set(v.triggerId,w))}var X=U.XI.hV.get(t.slotType).get().build(U.N,t);f.Z=X;var B=U.XI.HO.get(t.slotType).get().build(U.X,t);B.init();f.Y=B}catch(oi){oi instanceof K&&oi.RD?(J.Xd.o9("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",oi.RD,t),d3(oi,t,void 0,void 0,oi.yl)):(J.Xd.o9("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t),d3(oi,t));bY(J,t,!0);break a}J.Xd.Ay("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",t);J.T.tD(t);for(var O=g.Z(J.Y),l=O.next();!l.done;l= O.next())l.value.tD(t);ZJ(J,t)}}; Cx=function(k,p,t,J,q){g.R.call(this);var F=this;this.Y=k;this.N=p;this.b3=t;this.context=q;this.T=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.MO()||J.get().removeListener(F)})}; Poe=function(k,p){var t=0x8000000000000;var J=0;for(var q=g.Z(p.slotFulfillmentTriggers),F=q.next();!F.done;F=q.next())F=F.value,F instanceof cv?(t=Math.min(t,F.T.start),J=Math.max(J,F.T.end)):d3("Found unexpected fulfillment trigger for throttled slot.",p,null,{fulfillmentTrigger:F});J=new Cv(t,J);t="throttledadcuerange:"+p.slotId;k.T.set(t,p);k.b3.get().addCueRange(t,J.start,J.end,!1,k);r2(k.context.uh.get())&&(p=J.start,J=J.end,q={},k.context.LH.TA("tcrr",(q.cid=t,q.sm=p,q.em=J,q)))}; Ai=function(){g.R.apply(this,arguments);this.rj=!0;this.K7=new Map;this.T=new Map}; mH=function(k,p){k=g.Z(k.K7.values());for(var t=k.next();!t.done;t=k.next())if(t.value.layoutId===p)return!0;return!1}; Vf=function(k,p){k=g.Z(k.T.values());for(var t=k.next();!t.done;t=k.next()){t=g.Z(t.value);for(var J=t.next();!J.done;J=t.next())if(J=J.value,J.layoutId===p)return J}d3("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.WW(p)),layoutId:p})}; XXe=function(){this.T=new Map}; Ryw=function(k,p){this.callback=k;this.slot=p}; Wl=function(){}; BAM=function(k,p,t){this.callback=k;this.slot=p;this.FG=t}; zyu=function(k,p,t){this.callback=k;this.slot=p;this.FG=t;this.Y=!1;this.T=0}; eyi=function(k,p,t){this.callback=k;this.slot=p;this.FG=t}; Dt=function(k){this.FG=k}; sX=function(k){g.R.call(this);this.ll=k;this.OQ=new Map}; Lx=function(k,p){for(var t=[],J=g.Z(k.OQ.values()),q=J.next();!q.done;q=J.next()){q=q.value;var F=q.trigger;F instanceof a2&&F.triggeringLayoutId===p&&t.push(q)}t.length?DJ(k.ll(),t):d3("Survey is submitted but no registered triggers can be activated.")}; vl=function(k,p,t){sX.call(this,k);var J=this;this.uh=t;p.get().addListener(this);this.addOnDisposeCallback(function(){p.MO()||p.get().removeListener(J)})}; cl=function(k){g.R.call(this);this.T=k;this.rj=!0;this.OQ=new Map;this.X=new Set;this.N=new Set;this.C=new Set;this.S=new Set;this.Y=new Set}; nx=function(k){g.R.call(this);this.T=k;this.OQ=new Map}; wo=function(k,p){for(var t=[],J=g.Z(k.OQ.values()),q=J.next();!q.done;q=J.next())q=q.value,q.trigger.T===p.layoutId&&t.push(q);t.length&&DJ(k.T(),t)}; iA=function(k,p,t){g.R.call(this);var J=this;this.T=k;this.context=t;this.OQ=new Map;p.get().addListener(this);this.addOnDisposeCallback(function(){p.MO()||p.get().removeListener(J)})}; Qf=function(k,p,t,J,q){g.R.call(this);var F=this;this.Y=k;this.b3=p;this.FG=t;this.XG=J;this.context=q;this.rj=!0;this.OQ=new Map;this.T=new Set;t.get().addListener(this);this.addOnDisposeCallback(function(){t.MO()||t.get().removeListener(F)})}; hyw=function(k,p,t,J,q,F,d,S,U,f){if(UE(k.XG.get(),1).clientPlaybackNonce!==U)throw new K("Cannot register CueRange-based trigger for different content CPN",{trigger:t});k.OQ.set(t.triggerId,{Mw:new gp(p,t,J,q),cueRangeId:F});k.b3.get().addCueRange(F,d,S,f,k);r2(k.context.uh.get())&&(U={},k.context.LH.TA("crr",(U.ca=p,U.tt=t.triggerType,U.st=J.slotType,U.lt=q==null?void 0:q.layoutType,U.cid=F,U.sm=d,U.em=S,U)))}; a$_=function(k,p){k=g.Z(k.OQ.entries());for(var t=k.next();!t.done;t=k.next()){var J=g.Z(t.value);t=J.next().value;J=J.next().value;if(p===J.cueRangeId)return t}return""}; Pl=function(k,p){g.R.call(this);var t=this;this.C=k;this.Y=new Map;this.N=new Map;this.T=null;p.get().addListener(this);this.addOnDisposeCallback(function(){p.MO()||p.get().removeListener(t)}); var J;this.T=((J=p.get().Mb)==null?void 0:J.slotId)||null}; M$9=function(k,p){var t=[];k=g.Z(k.values());for(var J=k.next();!J.done;J=k.next())J=J.value,J.slot.slotId===p&&t.push(J);return t}; GO=function(k){g.R.call(this);this.T=k;this.rj=!0;this.OQ=new Map}; B6=function(k,p,t){p=p.layoutId;for(var J=[],q=g.Z(k.OQ.values()),F=q.next();!F.done;F=q.next())if(F=F.value,F.trigger instanceof QH){var d;if(d=F.trigger.layoutId===p){d=t;var S=Bt_.get(F.category);d=S?S===d:!1}d&&J.push(F)}J.length&&DJ(k.T(),J)}; IH=function(k){g.R.call(this);this.T=k;this.rj=!0;this.OQ=new Map}; XA=function(k,p,t,J,q){g.R.call(this);var F=this;this.X=k;this.H1=p;this.FG=t;this.mS=J;this.T=null;this.rj=!0;this.OQ=new Map;this.N=new Map;p.get().addListener(this);this.addOnDisposeCallback(function(){p.MO()||p.get().removeListener(F)}); q.get().addListener(this);this.addOnDisposeCallback(function(){q.MO()||q.get().removeListener(F)})}; uU_=function(k){k.T&&(k.Y&&(k.Y.stop(),k.Y.start()),g0e(k,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; g0e=function(k,p){for(var t=[],J=g.Z(k.OQ.values()),q=J.next();!q.done;q=J.next())q=q.value,q.trigger.triggerType===p&&t.push(q);t.length>0&&DJ(k.X(),t)}; RH=function(k,p,t,J,q){q=q===void 0?!0:q;for(var F=[],d=g.Z(k.OQ.values()),S=d.next();!S.done;S=d.next()){S=S.value;var U=S.trigger;if(U.triggerType===p){if(U instanceof sl||U instanceof LH||U instanceof nH){if(q&&U.breakDurationMs!==t)continue;if(!q&&U.breakDurationMs===t)continue;if(J.has(U.triggerId))continue}F.push(S)}}F.length>0&&DJ(k.X(),F)}; l$M=function(k){k=k.adPlacementRenderer.config.adPlacementConfig;if(!k.prefetchModeConfig||!k.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;k=Number(k.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(k)||k<=0?0:Math.floor(Math.random()*k)}; jAj=function(k){k=k.adPlacementRenderer.config.adPlacementConfig;if(k.prefetchModeConfig&&k.prefetchModeConfig.cacheFetchRefreshDurationMs&&(k=Number(k.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(k)||k<=0)))return k}; Bl=function(k){k.T=null;k.OQ.clear();k.N.clear();k.Y&&k.Y.stop();k.C&&k.C.stop()}; zO=function(k){g.R.call(this);this.N=k;this.rj=!0;this.OQ=new Map;this.T=new Map;this.Y=new Map}; Ooi=function(k,p){var t=[];if(p=k.T.get(p.layoutId)){p=g.Z(p);for(var J=p.next();!J.done;J=p.next())(J=k.Y.get(J.value.triggerId))&&t.push(J)}return t}; eg=function(k){g.R.call(this);this.T=k;this.OQ=new Map}; K3M=function(k,p){for(var t=[],J=g.Z(k.OQ.values()),q=J.next();!q.done;q=J.next())q=q.value,q.trigger instanceof Ya&&q.trigger.slotId===p&&t.push(q);t.length>=1&&DJ(k.T(),t)}; Hoj=function(k,p){var t={slotId:Un(p,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],hp:"surface",clientMetadata:new kf([])},J=Object,q=J.assign;p=MU(p,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",t.slotId);p={layoutId:p,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",YI:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"surface", clientMetadata:new kf([]),lG:Ql0(!1,t.slotId,t.slotType,t.slotPhysicalPosition,t.hp,t.slotEntryTrigger,t.slotFulfillmentTriggers,t.slotExpirationTriggers,p,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return q.call(J,{},k,{V6y:!0,slot:t,layout:p})}; R7M=function(k,p,t,J){var q=k.kind;J=J?!1:!k.hideCueRangeMarker;switch(q){case "AD_PLACEMENT_KIND_START":return J={An:new Cv(-0x8000000000000,-0x8000000000000),i7:J},t!=null&&(J.uB=new Cv(-0x8000000000000,-0x8000000000000)),J;case "AD_PLACEMENT_KIND_END":return J={An:new Cv(0x7ffffffffffff,0x8000000000000),i7:J},t!=null&&(J.uB=new Cv(Math.max(0,p-t),0x8000000000000)),J;case "AD_PLACEMENT_KIND_MILLISECONDS":q=k.adTimeOffset;q.offsetStartMilliseconds||d3("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); q.offsetEndMilliseconds||d3("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");k=Number(q.offsetStartMilliseconds);q=Number(q.offsetEndMilliseconds);q===-1&&(q=p);if(Number.isNaN(k)||Number.isNaN(q)||k>q)return new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:k,offsetEndMs:q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",q===p&&k-500<=q);J={An:new Cv(k,q),i7:J};if(t!=null){k=Math.max(0,k-t);if(k===q)return J;J.uB=new Cv(k,q)}return J; default:return new K("AdPlacementKind not supported in convertToRange.",{kind:q,adPlacementConfig:k})}}; wX6=function(k){var p=k.startSecs*1E3;return new Cv(p,p+k.NR*1E3)}; xGi=function(k){if(!k||!k.adPlacements&&!k.adSlots)return!1;for(var p=g.Z(k.adPlacements||[]),t=p.next();!t.done;t=p.next())if(t=t.value)if(t=t.adPlacementRenderer,t!=null&&(t.config&&t.config.adPlacementConfig&&t.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;k=g.Z(k.adSlots||[]);for(p=k.next();!p.done;p=k.next()){var J=t=void 0;if(((t=g.e(p.value,wR))==null?void 0:(J=t.adSlotMetadata)==null?void 0:J.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; hi=function(k){this.uh=k;this.Y=new Map;this.T=new Map;this.N=new Map}; Un=function(k,p){if(aH(k.uh.get())){var t=k.Y.get(p)||0;t++;k.Y.set(p,t);return p+"_"+t}return g.Zi(16)}; MU=function(k,p,t){if(aH(k.uh.get())){var J=k.T.get(p)||0;J++;k.T.set(p,J);return t+"_"+p+"_"+J}return g.Zi(16)}; ke=function(k,p){if(aH(k.uh.get())){var t=k.N.get(p)||0;t++;k.N.set(p,t);return p+"_"+t}return g.Zi(16)}; kk0=function(k){var p=[new Ua(k.Pb),new y7(k.S7),new uN(k.adPlacementConfig),new Co(k.videoLengthSeconds),new Gn(k.PP)];k.instreamAdPlayerOverlayRenderer&&p.push(new k0(k.instreamAdPlayerOverlayRenderer));k.playerOverlayLayoutRenderer&&p.push(new po(k.playerOverlayLayoutRenderer));k.TV&&p.push(new Kf(k.TV));return p}; p1_=function(k,p,t,J,q,F){k=t.inPlayerLayoutId?t.inPlayerLayoutId:MU(F,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",k);var d,S,U=t.instreamAdPlayerOverlayRenderer?(d=t.instreamAdPlayerOverlayRenderer)==null?void 0:d.adLayoutLoggingData:(S=t.playerOverlayLayoutRenderer)==null?void 0:S.adLayoutLoggingData;d={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hp:p};return{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",YI:new Map,layoutExitNormalTriggers:[new Wv(function(f){return ke(F, f)},t.Pb)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:p,clientMetadata:J,lG:q(d),adLayoutLoggingData:U}}; Mo=function(k,p){var t=this;this.Y=k;this.uh=p;this.T=function(J){return ke(t.Y.get(),J)}}; s0T=function(k,p,t,J,q,F){t=new kf([new to(t),new uN(J)]);p=MU(k.Y.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",p);J={layoutId:p,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hp:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",YI:new Map,layoutExitNormalTriggers:[new Wv(function(d){return ke(k.Y.get(),d)},q)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:t,lG:F(J),adLayoutLoggingData:void 0}}; gR=function(k,p,t,J,q){var F=kk0(J);return p1_(p,t,J,new kf(F),q,k.Y.get())}; tCe=function(k,p,t,J,q){var F=kk0(J);F.push(new M0(J.oS));F.push(new gL(J.QE));return p1_(p,t,J,new kf(F),q,k.Y.get())}; fx=function(k,p,t,J,q,F,d,S,U,f){p=MU(k.Y.get(),t,p);var b={layoutId:p,layoutType:t,hp:"core"},N=new Map;d&&N.set("impression",d);d=[new wp(k.T,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];f&&d.push(new VH(k.T,f,["normal"]));return{layoutId:p,layoutType:t,YI:N,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([J,new uN(F),new Ua(q)]),lG:S(b),adLayoutLoggingData:U}}; bA=function(k,p,t,J,q,F,d,S,U){p=MU(k.Y.get(),t,p);var f={layoutId:p,layoutType:t,hp:"core"},b=[new wp(k.T,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];U&&b.push(new VH(k.T,U,["normal"]));return{layoutId:p,layoutType:t,YI:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([J,new uN(F),new Ua(q)]),lG:d(f),adLayoutLoggingData:S}}; ti=function(k,p,t){var J=[];J.push(new iT(k.T,t));p&&J.push(p);return J}; px=function(k,p,t,J,q,F,d){var S={layoutId:p,layoutType:t,hp:"core"};return{layoutId:p,layoutType:t,YI:new Map,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[new ZX(k.T,p)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new zX(J),new uN(q)]),lG:F(S),adLayoutLoggingData:J.adLayoutLoggingData}}; zP=function(k,p,t,J,q,F,d,S){var U={layoutId:p,layoutType:F,hp:"core"};return{layoutId:p,layoutType:F,YI:new Map,layoutExitNormalTriggers:[new Wv(k.T,t)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new uN(J)].concat(g.m(d))),lG:q(U),adLayoutLoggingData:S}}; oH=function(k,p,t,J){if(k.uh.get().jy(p.kind==="AD_PLACEMENT_KIND_START"))if(t===void 0)d3("Expected SSAP layout ID in renderer",void 0,void 0,{caller:J});else return t}; F3L=function(k,p,t,J,q,F,d,S,U,f,b,N,y){k=Ji(k,p,t,q,F,d,S,U,N,oH(k,t,J.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),y);p=k.eU;t=new fo(k.ue);J=k.layoutExitSkipTriggers;f>0&&(p.push(t),p.push(new Or(f)),J=[]);p.push(new jK(b));return{mG:{layoutId:k.layoutId,layoutType:k.layoutType,YI:k.YI,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:k.hp,clientMetadata:new kf(p),lG:k.lG,adLayoutLoggingData:k.adLayoutLoggingData}, R9:J,Pl:k.layoutExitMuteTriggers,k_:k.layoutExitUserInputSubmittedTriggers,Vm:k.l3,eV:k.eV}}; Sa6=function(k,p,t,J,q,F,d,S,U,f){p=Ji(k,p,t,J,F,new Map,d,function(b){return S(b,U)},void 0,oH(k,t,q.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); k=new a2(k.T,p.ue);t=new fo(p.ue);f=new jK(f);return{mG:{layoutId:p.layoutId,layoutType:p.layoutType,YI:p.YI,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:p.hp,clientMetadata:new kf([].concat(g.m(p.eU),[t,f])),lG:p.lG,adLayoutLoggingData:p.adLayoutLoggingData},R9:p.layoutExitSkipTriggers,Pl:p.layoutExitMuteTriggers,k_:[].concat(g.m(p.layoutExitUserInputSubmittedTriggers),[k]),Vm:p.l3,eV:p.eV}}; Ji=function(k,p,t,J,q,F,d,S,U,f,b){p=f!=null?f:MU(k.Y.get(),"LAYOUT_TYPE_MEDIA_BREAK",p);f={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hp:"adapter"};S=S(p);var N=pk(S.clientMetadata,"metadata_type_fulfilled_layout");N||d3("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var y=N?N.layoutId:"";t=[new uN(t),new IA(J),new BX(q)];N&&t.push(new bd(N.layoutType));b&&t.push(new sa(b));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", YI:F,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new I2(k.T,y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"adapter",eU:t,lG:d(f),adLayoutLoggingData:U,eV:S,ue:y}}; VKT=function(k,p,t,J,q,F,d,S,U,f,b){k=J9L(k,p,"core",t,J,q,F,d,S,U,f,void 0,b);return{layoutId:k.layoutId,layoutType:k.layoutType,YI:k.YI,layoutExitNormalTriggers:k.layoutExitNormalTriggers,layoutExitSkipTriggers:k.layoutExitSkipTriggers,layoutExitMuteTriggers:k.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:k.layoutExitUserInputSubmittedTriggers,l3:k.l3,hp:k.hp,clientMetadata:new kf(k.mO),lG:k.lG,adLayoutLoggingData:k.adLayoutLoggingData}}; AoS=function(k,p,t,J,q,F,d,S,U,f,b,N,y){p=J9L(k,p,"adapter",t,J,q,F,d,S,U,b,N,y);J=p.layoutExitSkipTriggers;q=p.mO;t.adPodSkipTarget&&t.adPodSkipTarget>0&&(q.push(f),q.push(new Or(t.adPodSkipTarget)),J=[]);q.push(new jK(S.adPodIndex));t.isCritical&&(J=[new VH(k.T,p.layoutId,["error"])].concat(g.m(J)));return{mG:{layoutId:p.layoutId,layoutType:p.layoutType,YI:p.YI,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:p.hp,clientMetadata:new kf(q), lG:p.lG,adLayoutLoggingData:p.adLayoutLoggingData},R9:J,Pl:p.layoutExitMuteTriggers,k_:p.layoutExitUserInputSubmittedTriggers,Vm:p.l3}}; J9L=function(k,p,t,J,q,F,d,S,U,f,b,N,y){var Y={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",hp:t};q=[new uN(q),new lN(U),new HV(J.externalVideoId),new xi(S),new BX({impressionCommands:J.impressionCommands,abandonCommands:J.onAbandonCommands,completeCommands:J.completeCommands,progressCommands:J.adVideoProgressCommands}),new Ao(F),new Y0({current:null}),new Co(d)];(F=J.playerOverlay.instreamAdPlayerOverlayRenderer)&&q.push(new k0(F));(d=J.playerOverlay.playerOverlayLayoutRenderer)&&q.push(new po(d)); N&&q.push(new m3(N));(N=J.playerUnderlay)&&q.push(new to(N));S=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER");N=(N=F?F.elementId:d==null?void 0:d.layoutId)?N:MU(k.Y.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",S);q.push(new fo(N));q.push(new NG(S));q.push(new sa(U.adPodIndex));J.adNextParams&&q.push(new R0(J.adNextParams));J.shrunkenPlayerBytesConfig&&q.push(new qG(J.shrunkenPlayerBytesConfig));J.clickthroughEndpoint&&q.push(new BV(J.clickthroughEndpoint));J.legacyInfoCardVastExtension&&q.push(new XU(J.legacyInfoCardVastExtension)); J.sodarExtensionData&&q.push(new V7(J.sodarExtensionData));b&&q.push(new PX(b));q.push(new ho(CT(J.pings)));U=AA(J.pings);if(y){a:{y=g.Z(y);for(b=y.next();!b.done;b=y.next())if(b=b.value,b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(F=g.e(b.fulfillmentContent.fulfilledLayout,Ab))&&(F=g.e(F.renderingContent,ZK))&&F.associatedPlayerBytesLayoutId===p){y=b;break a}y=void 0}y&&q.push(new Jo(y))}return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",YI:U,layoutExitNormalTriggers:[new QH(k.T,p)],layoutExitSkipTriggers:J.skipOffsetMilliseconds? [new I2(k.T,N)]:[],layoutExitMuteTriggers:[new I2(k.T,N)],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:t,mO:q,lG:f(Y),adLayoutLoggingData:J.adLayoutLoggingData}}; bfq=function(k,p,t,J,q,F,d,S,U){J.every(function(b){return Ko(b,[],["LAYOUT_TYPE_MEDIA"])})||d3("Unexpect subLayout type for DAI composite layout"); p=MU(k.Y.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",p);var f={layoutId:p,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hp:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",YI:new Map,layoutExitNormalTriggers:[new DX(k.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l3:[],hp:"core",clientMetadata:new kf([new WX(t),new D$(S),new rA(J),new uN(q),new no(F),new Lo({}),new MG(U)]),lG:d(f)}}; d0L=function(k){return k!=null}; go=function(k,p,t){var J=this;this.Y=k;this.N=p;this.uh=t;this.T=function(q){return ke(J.Y.get(),q)}}; n0q=function(k,p,t,J,q,F,d){if(!t.prefetchModeConfig)return new K("AdPlacementConfig for Live Prefetch is missing prefetch_config");t=t.prefetchModeConfig;J*=1E3;var S=[];if(!t.breakLengthMs)return new K("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var U=g.Z(t.breakLengthMs),f=U.next();!f.done;f=U.next())if(f=f.value,Number(f)>0){var b=J+Number(t.startTimeOffsetMs),N=b+Number(t.cacheFetchSmearingDurationMs);f={An:new Cv(N,N+Number(f)),i7:!1,uB:new Cv(Math.floor(b+Math.random()* Number(t.cacheFetchSmearingDurationMs)),N),cueProcessedMs:J?J:b};b=[];b.push(new j$({}));N=[];N.push(new Gz(k.T));N.push(new kM6(k.T));d&&b.push(new Lo({}));S.push(i9(k,p,q,f,F,b,N))}return S}; i9=function(k,p,t,J,q,F,d){F=F===void 0?[]:F;d=d===void 0?[]:d;var S=Un(k.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),U=[];d=g.Z(d);for(var f=d.next();!f.done;f=d.next())U.push(f.value);J.uB&&J.uB.start!==J.An.start&&U.push(new cv(k.T,t,new Cv(J.uB.start,J.An.start),!1));U.push(new cv(k.T,t,new Cv(J.An.start,J.An.end),J.i7));J={getAdBreakUrl:p.getAdBreakUrl,nM:J.An.start,Zt:J.An.end,cueProcessedMs:J.cueProcessedMs};p=new zz(k.T,S);F=[new id(J)].concat(g.m(F));return{slotId:S,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:U,slotExpirationTriggers:[new Pv(k.T,t),new R2(k.T,S),new Bv(k.T,S)],hp:"core",clientMetadata:new kf(F),adSlotLoggingData:q}}; qq9=function(k,p,t){var J=[];t=g.Z(t);for(var q=t.next();!q.done;q=t.next())J.push(ofj(k,p,q.value));return J}; ofj=function(k,p,t){return t.triggeringSlotId!=null&&t.triggeringSlotId===k?t.clone(p):t}; K_h=function(k,p,t,J,q){return Fq6(k,p,t,J,q)}; $Gu=function(k,p,t,J){var q=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER");return Fq6(k,q,p,t,J)}; Fq6=function(k,p,t,J,q){var F=new mZ(k.T,t),d=[new XV(k.T,p)];k=[new R2(k.T,p),new Pv(k.T,J)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(q({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:k},t))]),adSlotLoggingData:void 0}}; mG9=function(k,p,t,J,q,F){var d=Un(k.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),S=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER"),U=MU(k.Y.get(),"LAYOUT_TYPE_SURVEY",S);J=uA(k,p,t,J);var f=[new XV(k.T,d)];t=[new R2(k.T,d),new Pv(k.T,t),new ZX(k.T,U)];if(J instanceof K)return J;S=F({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:J,slotFulfillmentTriggers:f,slotExpirationTriggers:t},{slotId:S,layoutId:U});F=S.OEy;S=S.n88;return[{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:FA(k,p,d,J),slotFulfillmentTriggers:$e(k,p,d,f),slotExpirationTriggers:t,hp:"core",clientMetadata:new kf([new wA(F),new gA(EX(p)),new ld({gi:k.gi(p)})]),adSlotLoggingData:q},S]}; EX=function(k){return k.kind==="AD_PLACEMENT_KIND_START"}; WXe=function(k,p,t,J,q){q=q?q:Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER");t=new mZ(k.T,t);var F=[new XV(k.T,q)];k=[new Pv(k.T,p),new R2(k.T,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:F,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(J({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:t,slotFulfillmentTriggers:F,slotExpirationTriggers:k}))])}}; D0T=function(k,p,t,J){var q=Un(k.Y.get(),"SLOT_TYPE_PLAYER_UNDERLAY");t=new mZ(k.T,t);var F=[new XV(k.T,q)];k=[new Pv(k.T,p),new R2(k.T,q)];return{slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:F,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(J({slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:t,slotFulfillmentTriggers:F,slotExpirationTriggers:k}))])}}; YrT=function(k,p,t,J,q,F,d){var S=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER"),U=MU(k.Y.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",S);J=$U6(k,J,F,d,U);if(J instanceof K)return J;d=[new XV(k.T,S)];q=[new Pv(k.T,F),new XV(k.T,q),new hd(k.T,q)];t=$f(t,{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:J,slotFulfillmentTriggers:d,slotExpirationTriggers:q});k=k.N.get();F={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hp:"core"};p={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", YI:new Map,layoutExitNormalTriggers:[new dPq(k.T,U,p.durationMs)],layoutExitSkipTriggers:[new ShM(k.T,U,p.durationMs)],l3:[new EUj(k.T,U)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hp:"core",clientMetadata:new kf([new RA(p)]),lG:t(F)};return{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:J,slotFulfillmentTriggers:d,slotExpirationTriggers:q,clientMetadata:new kf([new wA(p)])}}; o0w=function(k,p,t,J,q,F){p=uA(k,p,t,J);if(p instanceof K)return p;var d=p instanceof cv?new qhj(k.T,t,p.T):null;J=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER");var S=[new XV(k.T,J)];k=[new Pv(k.T,t),new R2(k.T,J)];F=F({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:p,slotFulfillmentTriggers:S,slotExpirationTriggers:k},d);return F instanceof x0?new K(F):{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:S,slotExpirationTriggers:k, hp:"core",clientMetadata:new kf([new wA(F)]),adSlotLoggingData:q}}; t$L=function(k,p,t,J){var q=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER"),F=new rp(k.T,p),d=[new eH(k.T,q)];k=[new Pv(k.T,p),new R2(k.T,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(J({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:k}))]),adSlotLoggingData:t}}; J$M=function(k,p,t,J){var q=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER");t=new mZ(k.T,t);var F=[new XV(k.T,q)],d=[new R2(k.T,q),new Pv(k.T,p)];F={slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:t,slotFulfillmentTriggers:F,slotExpirationTriggers:d};return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:[new XV(k.T,q)],slotExpirationTriggers:[new Pv(k.T,p),new R2(k.T,q)],hp:"core",clientMetadata:new kf([new wA(J(F))])}}; kX9=function(k,p,t,J,q){var F=Un(k.Y.get(),"SLOT_TYPE_IN_PLAYER");t=new Ad(k.T,J,t);J=[new XV(k.T,F)];k=[new Pv(k.T,p)];return{slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:J,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(q({slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:t,slotFulfillmentTriggers:J,slotExpirationTriggers:k}))])}}; ldL=function(k,p,t,J,q,F){var d=Un(k.Y.get(),p);return lA(k,d,p,new mZ(k.T,J),[new Pv(k.T,t),new R2(k.T,d),new VH(k.T,J,["error"])],q,F)}; uy_=function(k,p,t,J,q,F,d){var S=Un(k.Y.get(),p);return lA(k,S,p,new VH(k.T,q,["normal"]),[new Pv(k.T,t),new R2(k.T,S),new VH(k.T,J,["error"])],F,d)}; h7h=function(k,p,t,J,q){var F=Un(k.Y.get(),p);return lA(k,F,p,new rp(k.T,t),[new Pv(k.T,t),new R2(k.T,F)],J,q)}; Hfq=function(k,p,t,J,q){t=t?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var F=Un(k.Y.get(),t);p=new rp(k.T,p);var d=[new XV(k.T,F)];k=[new R2(k.T,F)];return{slotId:F,slotType:t,slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:d,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(q({slotId:F,slotType:t,slotPhysicalPosition:1,hp:"core",slotEntryTrigger:p,slotFulfillmentTriggers:d,slotExpirationTriggers:k}))]),adSlotLoggingData:J}}; Ei9=function(k,p,t,J){var q=Un(k.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),F=new vv(k.T),d=[new eH(k.T,q)];k=[new Pv(k.T,p)];return{slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(J({slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:F,slotFulfillmentTriggers:d,slotExpirationTriggers:k})),new Lo({})]),adSlotLoggingData:t}}; TAu=function(k,p){return v0u(k.uh.get())?new VH(k.T,p,["normal","error","skipped"]):new VH(k.T,p,["normal"])}; CNq=function(k,p,t,J,q){p=TAu(k,p);k=qo(k,p,t);q=q({slotId:k.slotId,slotType:k.slotType,slotPhysicalPosition:k.slotPhysicalPosition,slotEntryTrigger:k.slotEntryTrigger,slotFulfillmentTriggers:k.slotFulfillmentTriggers,slotExpirationTriggers:k.slotExpirationTriggers,hp:k.hp});return q instanceof K?q:{ge:Object.assign({},k,{clientMetadata:new kf([new wA(q.layout)]),adSlotLoggingData:J}),Or:q.Or}}; A$_=function(k,p,t,J,q,F,d){t=roT(k,p,t,J);if(t instanceof K)return t;d=d({slotId:t.slotId,slotType:t.slotType,slotPhysicalPosition:t.slotPhysicalPosition,slotEntryTrigger:t.slotEntryTrigger,slotFulfillmentTriggers:t.slotFulfillmentTriggers,slotExpirationTriggers:t.slotExpirationTriggers,hp:t.hp});if(d instanceof K)return d;J=[new gA(EX(p)),new wA(d.layout),new ld({gi:k.gi(p)})];F&&J.push(new zn({}));return{ge:{slotId:t.slotId,slotType:t.slotType,slotPhysicalPosition:t.slotPhysicalPosition,slotEntryTrigger:FA(k, p,t.slotId,t.slotEntryTrigger),slotFulfillmentTriggers:$e(k,p,t.slotId,t.slotFulfillmentTriggers),slotExpirationTriggers:t.slotExpirationTriggers,hp:t.hp,clientMetadata:new kf(J),adSlotLoggingData:q},Or:d.Or}}; FA=function(k,p,t,J){return k.uh.get().jy(EX(p))?new Ya(k.T,t):J}; $e=function(k,p,t,J){return k.uh.get().jy(EX(p))?[new eH(k.T,t)]:J}; qo=function(k,p,t){var J=Un(k.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),q=[new XV(k.T,J)];k=[new R2(k.T,J),new Pv(k.T,t)];return{slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:q,slotExpirationTriggers:k,hp:"core"}}; roT=function(k,p,t,J){p=uA(k,p,t,J);return p instanceof K?p:qo(k,p,t)}; knT=function(k,p,t,J,q,F){var d=Un(k.Y.get(),"SLOT_TYPE_FORECASTING");p=uA(k,p,t,J);if(p instanceof K)return p;J=[new XV(k.T,d)];k=[new R2(k.T,d),new Pv(k.T,t)];return{slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:J,slotExpirationTriggers:k,hp:"core",clientMetadata:new kf([new wA(F({slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,hp:"core",slotEntryTrigger:p,slotFulfillmentTriggers:J,slotExpirationTriggers:k}))]),adSlotLoggingData:q}}; dUT=function(k,p,t,J,q){var F=!p.hideCueRangeMarker;switch(p.kind){case "AD_PLACEMENT_KIND_START":return new rp(k.T,t);case "AD_PLACEMENT_KIND_MILLISECONDS":return k=R7M(p,J),k instanceof K?k:q(k.An,F);case "AD_PLACEMENT_KIND_END":return new CH(k.T,t,F);default:return new K("Cannot construct entry trigger",{kind:p.kind})}}; $U6=function(k,p,t,J,q){return dUT(k,p,t,J,function(F,d){return new oUi(k.T,t,F,d,q)})}; uA=function(k,p,t,J){return dUT(k,p,t,J,function(q,F){return new cv(k.T,t,q,F)})}; lA=function(k,p,t,J,q,F,d){k=[new eH(k.T,p)];return{slotId:p,slotType:t,slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:k,slotExpirationTriggers:q,hp:"core",clientMetadata:new kf([new wA(d({slotId:p,slotType:t,slotPhysicalPosition:1,hp:"core",slotEntryTrigger:J,slotFulfillmentTriggers:k,slotExpirationTriggers:q}))]),adSlotLoggingData:F}}; jg=function(k,p){g.R.call(this);this.uh=k;this.T=p;this.eventCount=0}; OX=function(k,p,t,J){jg.call(this,k,p);this.uh=k;this.XG=t;this.context=J}; Kx=function(){this.T=new Map}; kI=function(k,p){var t=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=k;this.result=p.result;this.error=p.error;p.promise&&p.promise.then(function(J){Hl(t,J)},function(J){xe(t,J)})}; Ju=function(k){if(pj(k)){if(k instanceof kI)return k;if(tu(k))return new kI("wait",{promise:k})}return new kI("done",{result:k})}; o5=function(){return new kI("wait",{})}; qm=function(k){return new kI("fail",{error:k})}; Ff=function(k){try{return Ju(k())}catch(p){return qm(p)}}; dY=function(k,p){var t=o5();k.onSuccess.push(function(J){try{var q=p(J);Hl(t,q)}catch(F){xe(t,F)}}); k.onFailure.push(function(J){xe(t,J)}); $I(k);return t}; EJ=function(k,p){var t=o5();k.onSuccess.push(function(J){Hl(t,J)}); k.onFailure.push(function(J){try{var q=p(J);Hl(t,q)}catch(F){xe(t,F)}}); $I(k);return t}; Ef0=function(k,p){var t=o5();k.onSuccess.push(function(J){try{p(),Hl(t,J)}catch(q){xe(t,q)}}); k.onFailure.push(function(J){try{p(),xe(t,J)}catch(q){xe(t,q)}}); $I(k)}; Hl=function(k,p){if(pj(p)){if(tu(p)){p.then(function(t){Hl(k,t)},function(t){xe(k,t)}); return}if(p instanceof kI){dY(p,function(t){Hl(k,t)}); EJ(p,function(t){xe(k,t)}); return}}k.currentState="done";k.result=p;$I(k)}; xe=function(k,p){k.currentState="fail";k.error=p;$I(k)}; $I=function(k){if(k.currentState==="done"){var p=k.onSuccess;k.onSuccess=[];k.onFailure=[];p=g.Z(p);for(var t=p.next();!t.done;t=p.next())t=t.value,t(k.result)}else if(k.currentState==="fail")for(p=k.onFailure,k.onSuccess=[],k.onFailure=[],p=g.Z(p),t=p.next();!t.done;t=p.next())t=t.value,t(k.error)}; UUL=function(k){return function(){return Sq6(k.apply(this,g.nS.apply(0,arguments)))}}; Sq6=function(k){return Ff(function(){return SE(k,k.next())})}; SE=function(k,p){return p.done?Ju(p.value):EJ(dY(p.value.C_,function(t){return SE(k,k.next(t))}),function(t){return SE(k,k.throw(t))})}; fJM=function(k,p){if(k.length===0)return Ju(NaN);var t=o5(),J=k.length;k.forEach(function(q,F){Ef0(Ju(q),function(){t.currentState==="wait"&&(p!==void 0&&p(F)&&t.currentState==="wait"?t.resolve(F):(--J,J===0&&t.resolve(NaN)))})}); return t}; bkw=function(k){return k.map(function(p){return Ju(p)})}; fj=function(k){var p=k.hours||0;var t=k.minutes||0,J=k.seconds||0;p=J+t*60+p*3600+(k.days||0)*86400+(k.weeks||0)*604800+(k.months||0)*2629800+(k.years||0)*31557600;p<=0?p={hours:0,minutes:0,seconds:0}:(k=p,p=Math.floor(k/3600),k%=3600,t=Math.floor(k/60),J=Math.floor(k%60),p={hours:p,minutes:t,seconds:J});var q=p.hours===void 0?0:p.hours;t=p.minutes===void 0?0:p.minutes;k=p.seconds===void 0?0:p.seconds;J=q>0;p=[];if(J){q=(new Intl.NumberFormat("en-u-nu-latn")).format(q);var F=["fr"],d="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); q="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(UJ)?q.replace(",","\u00a0"):F.includes(UJ)?q.replace(",","\u202f"):d.includes(UJ)?q.replace(",","."):q;p.push(q)}J=J===void 0?!1:J;t=(["af","be","lt"].includes(UJ)||J)&&t<10?NUM().format(t):(new Intl.NumberFormat("en-u-nu-latn")).format(t);p.push(t);t=NUM().format(k);p.push(t);t=":";"da fi id si sr sr-Latn".split(" ").includes(UJ)&&(t=".");return p.join(t)}; NUM=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; y9S=function(k,p){var t,J;k=((t=k.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(J=t.videoAuthorizationToken)==null?void 0:J.credentialTransferTokens)||[];for(t=0;t<k.length;++t)if(k[t].scope===p)return k[t].token||void 0}; by=function(k){if(k&&k.simpleText)return k.simpleText;var p="";if(k&&k.runs)for(var t=0;t<k.runs.length;t++)k.runs[t].text&&(p+=k.runs[t].text);return p}; Nm=function(k){return k?function(){try{return k.apply(this,arguments)}catch(p){g.nV(p)}}:k}; yp=function(){this.N=new Set;this.Y=new Set;this.C=new Map;this.client=void 0;this.csn=null}; YI=function(){yp.instance||(yp.instance=new yp);return yp.instance}; To=function(){}; rY=function(){this.Z=[];this.B=[];this.T=[];this.Y8=[];this.X=[];this.L=[];this.N=new Map;this.S=new Map;this.Y=new Set;this.NO=new Map}; Zs=function(){rY.instance||(rY.instance=new rY);return rY.instance}; Cj=function(k,p,t,J){J=J===void 0?{}:J;g.j5(function(){Yqi.includes(p)||(g.wt(new g.hm("createClientScreen() called with a non-page VE",p)),p=83769);J.isHistoryNavigation||(k.Y8=[],k.T.push({rootVe:p,key:J.key||""}));k.Z=[];k.B=[];J.kD?TUM(k,p,t,J):r9j(k,p,t,J)})()}; ZkL=function(k,p,t){t=t===void 0?0:t;g.j5(function(){p.then(function(J){k.Y.has(t)&&k.C&&k.C();var q=g.mP(t),F=g.Az(t);if(q&&F){var d;(J==null?0:(d=J.response)==null?0:d.trackingParams)&&g.al(k.client,q,F,g.Ze(J.response.trackingParams));var S;(J==null?0:(S=J.playerResponse)==null?0:S.trackingParams)&&g.al(k.client,q,F,g.Ze(J.playerResponse.trackingParams))}})})()}; mT=function(k){var p=Zs();g.j5(function(){var t=g.Ze(k);Au(p,t);return t})()}; Au=function(k,p,t,J){J=J===void 0?0:J;g.j5(function(){if(k.Y.has(J))return k.Z.push([p,t]),!0;var q=g.mP(J),F=t||g.Az(J);if(q&&F){if(g.TQ("combine_ve_grafts")){var d=k.N.get(F.toString());d?d.push(p):(k.S.set(F.toString(),F),k.N.set(F.toString(),[p]));k.gy||(k.gy=g.lk(0,function(){Vp(k,q)},1200))}else g.al(k.client,q,F,p); return!0}return!1})()}; CYw=function(k,p,t,J){J=J===void 0?0:J;var q=g.mP(J);p=p||g.Az(J);q&&p&&(k=k.client,J=Rl({cttAuthInfo:Vt(q)||void 0},q),t={csn:q,ve:p.getAsJson(),clientData:t},q==="UNDEFINED_CSN"?uR("visualElementStateChanged",J,t):k?TD("visualElementStateChanged",t,k,J):g.qv("visualElementStateChanged",t,J))}; TUM=function(k,p,t,J){J=J===void 0?{}:J;k.Y.add(J.layer||0);k.C=function(){r9j(k,p,t,J);var d=g.Az(J.layer);if(d){for(var S=g.Z(k.Z),U=S.next();!U.done;U=S.next())U=U.value,Au(k,U[0],U[1]||d,J.layer);d=g.Z(k.B);for(S=d.next();!S.done;S=d.next())S=S.value,CYw(k,S[0],S[1])}}; t||g.mP(J.layer)||k.C();if(J.kD)for(var q=g.Z(J.kD),F=q.next();!F.done;F=q.next())ZkL(k,F.value,J.layer);else g.nV(Error("Delayed screen needs a data promise."))}; r9j=function(k,p,t,J){J=J===void 0?{}:J;var q=void 0;J.layer||(J.layer=0);q=J.parentLayer!==void 0?J.parentLayer:J.layer;var F=g.mP(q);q=g.Az(q);var d=t||q,S;d&&(J.parentCsn!==void 0?S={clientScreenNonce:J.parentCsn,visualElement:d}:F&&F!=="UNDEFINED_CSN"&&(S={clientScreenNonce:F,visualElement:d}));var U,f=g.M9("EVENT_ID");F==="UNDEFINED_CSN"&&f&&(U={servletData:{serializedServletEventId:f}});g.TQ("combine_ve_grafts")&&F&&Vp(k,F);g.TQ("no_client_ve_attach_unless_shown")&&d&&F&>(d,F);try{var b=yO9(k.client, p,S,J.VS,J.cttAuthInfo,U,J.implicitGestureType,J.loggingExpectations)}catch(Y){dv_(Y,{cM:p,rootVe:q,UxT:t,ZAG:F,atp:S,VS:J.VS});g.nV(Y);return}hL9(b,p,J.layer,J.cttAuthInfo);F&&F!=="UNDEFINED_CSN"&&q&&!Bui(F)&&T6u(k.client,F,q,!0);k.T[k.T.length-1]&&!k.T[k.T.length-1].csn&&(k.T[k.T.length-1].csn=b||"");g.IF({clientScreenNonce:b});To.instance||(To.instance=new To);g.j5(YI().T).bind(YI())();var N=g.Az(J.layer);F&&F!=="UNDEFINED_CSN"&&N&&(g.TQ("web_mark_root_visible")||g.TQ("music_web_mark_root_visible"))&& g.HB(b,N);k.Y.delete(J.layer||0);k.C=void 0;var y;(y=k.NO.get(J.layer))==null||y.forEach(function(Y,T){Y?Au(k,T,Y,J.layer):N&&Au(k,T,N,J.layer)}); A9j(k)}; A9j=function(k){for(var p=0;p<k.X.length;p++){var t=k.X[p];try{t()}catch(J){g.nV(J)}}for(p=k.X.length=0;p<k.L.length;p++){t=k.L[p];try{t()}catch(J){g.nV(J)}}}; Vp=function(k,p){if(p===void 0)for(var t=Xze(),J=0;J<t.length;J++)t[J]!==void 0&&Vp(k,t[J]);else k.N.forEach(function(q,F){(F=k.S.get(F))&&g.hz(k.client,p,F,q)}),k.N.clear(),k.S.clear(),k.gy=void 0}; WP=function(){}; mU0=function(){WP.instance||(WP.instance=new WP);return WP.instance}; VCh=function(k,p,t){var J=new XMLHttpRequest;if(t==null?0:t.ZY)J.onreadystatechange=function(F){t.ZY(J,F)}; var q;J.open((q=p.method)!=null?q:"GET",k,!0);J.responseType="text";J.withCredentials=!0;if(p.headers)for(k=g.Z(Object.entries(p.headers)),p=k.next();!p.done;p=k.next())q=g.Z(p.value),p=q.next().value,q=q.next().value,J.setRequestHeader(p,q);return J}; Ds=function(){}; Wqq=function(){var k=navigator;return new Promise(function(p,t){var J;(J=k.webkitTemporaryStorage)!=null&&J.queryUsageAndQuota?k.webkitTemporaryStorage.queryUsageAndQuota(function(q,F){p({usage:q,quota:F})},function(q){t(q)}):t(Error("webkitTemporaryStorage is not supported."))})}; JO=function(k,p){var t=this;this.handleError=k;this.T=p;this.Y=!1;self.document===void 0||self.addEventListener("beforeunload",function(){t.Y=!0}); this.N=Math.random()<=.2}; sci=function(k,p){Ds.getInstance().estimate().then(function(t){t=Object.assign({},p,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:DUw(t==null?void 0:t.usage),deviceStorageQuotaMbytes:DUw(t==null?void 0:t.quota)});k.T("idbQuotaExceeded",t)})}; DUw=function(k){return typeof k==="undefined"?"-1":String(Math.ceil(k/1048576))}; vfS=function(){g.Iu();return g.Xa(0,192)?g.Xa(0,190):!(g.TQ("web_watch_cinematics_disabled_by_default")||g.TQ("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Lqi())}; nfq=function(k,p){c96(k.program,p.yDp)&&(zg("bg_i",void 0,"player_att"),g.sJ.initialize(k,function(){zg("bg_l",void 0,"player_att");Lj=(0,g.V9)()},p.cspNonce,p.NA))}; w1j=function(k){k=k===void 0?{}:k;return g.sJ.invoke(k)}; c96=function(k,p){if(k){var t;g.sJ.isLoading()?t=!1:t=!Lj||(0,g.V9)()-Lj>p;k=t}else k=!1;return k}; ik9=function(k){k=k.split("");vP.K5(k,2);vP.h2(k,53);vP.K5(k,3);vP.Tu(k,80);vP.K5(k,2);vP.h2(k,21);return k.join("")}; g.cP=function(k,p){return k.NA+"timedtext_video?ref=player&v="+p.videoId}; g.QcL=function(k){var p=this;this.videoData=k;k={};this.T=(k.c1a=function(){var t=[];if(g.sJ.isInitialized()){var J="";p.videoData&&p.videoData.nF&&(J=p.videoData.nF+("&r1b="+p.videoData.clientPlaybackNonce));var q={};J=(q.atr_challenge=J,q);zg("bg_v",void 0,"player_att");(J=w1j(J))?(zg("bg_s",void 0,"player_att"),t.push("r1a="+J)):(zg("bg_e",void 0,"player_att"),t.push("r1c=2"))}else zg("bg_e",void 0,"player_att"),window.trayride||window.botguard?t.push("r1c=1"):t.push("r1c=4");t.push("r1d="+g.sJ.getState()); return t.join("&")},k.c6a=function(t){return"r6a="+(Number(t.c)^Fy())},k.c6b=function(t){return"r6b="+(Number(t.c)^Number(g.M9("CATSTAT",0)))},k); this.videoData&&this.videoData.nF?this.OU=xl(this.videoData.nF):this.OU={}}; g.PYM=function(k){if(k.videoData&&k.videoData.nF){for(var p=[k.videoData.nF],t=g.Z(Object.keys(k.T)),J=t.next();!J.done;J=t.next())J=J.value,k.OU[J]&&k.T[J]&&(J=k.T[J](k.OU))&&p.push(J);return p.join("&")}return null}; g.nj=function(k,p){nfq(k,{yDp:g.dU(p.experiments,"bg_vm_reinit_threshold"),cspNonce:p.cspNonce,NA:p.NA||""})}; Gk_=function(){var k=XMLHttpRequest.prototype.fetch;return!!k&&k.length===3}; wY=function(k){k=k===void 0?2592E3:k;if(k>0&&!(F6e()>(0,g.V9)()-k*1E3))return 0;k=g.nG("yt-player-quality");if(typeof k==="string"){if(k=g.Qs[k],k>0)return k}else if(k instanceof Object)return k.quality;return 0}; iy=function(){var k=g.nG("yt-player-proxima-pref");return k==null?null:k}; IJM=function(){var k=g.nG("yt-player-quality");if(k instanceof Object&&k.quality&&k.previousQuality){if(k.quality>k.previousQuality)return 1;if(k.quality<k.previousQuality)return-1}return 0}; X1_=function(){var k={values:{},LF:{}};try{var p=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);k.values=p.values;k.halfLives=p.halfLives}catch(t){}return k}; Qp=function(){return g.nG("yt-player-performance-cap")||{}}; PP=function(){var k;return(k=g.nG("yt-player-performance-cap-active-set"))!=null?k:[]}; Rbq=function(k){(k===void 0?0:k)?(k=PP().filter(function(p){return p.startsWith("1")}),g.cz("yt-player-performance-cap-active-set",k,2592E3)):g.cz("yt-player-performance-cap-active-set",[],2592E3)}; BUT=function(k){g.cz("yt-player-watch-later-pending",k)}; zbT=function(){return!!g.nG("yt-player-headers-readable")}; ebT=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(k){return 0}}; g.Go=function(){var k=g.nG("yt-player-caption-language-preferences");return k?k:[]}; I5=function(){var k=g.nG("yt-player-user-settings"),p=new Map;if(k){k=g.Z(Object.entries(k));for(var t=k.next();!t.done;t=k.next()){var J=g.Z(t.value);t=J.next().value;J=J.next().value;p.set(t,J)}}return p}; R5=function(){try{var k=window.navigator;if(k.getAutoplayPolicy&&typeof k.getAutoplayPolicy==="function"){var p=document.getElementsByClassName(g.Xf.ioh);var t=p.length>0&&p[0]?k.getAutoplayPolicy(p[0]):k.getAutoplayPolicy("mediaelement");if(hbi[t])return hbi[t]}}catch(J){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; BP=function(k){return k.lm||k.VA||k.mutedAutoplay}; aJ0=function(k,p){return BP(k)?p!==1&&p!==2&&p!==0?"AUTOPLAY_STATUS_UNAVAILABLE":k.QH?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; MCL=function(k,p,t){var J=p.G();k.thirdParty||(k.thirdParty={});J.ancestorOrigins&&(k.thirdParty.embeddedPlayerContext=Object.assign({},k.thirdParty.embeddedPlayerContext,{ancestorOrigins:J.ancestorOrigins}));J.D("embeds_enable_autoplay_and_visibility_signals")&&(J.Eo!=null&&(k.thirdParty.embeddedPlayerContext=Object.assign({},k.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(J.Eo)})),J.AP&&(k.thirdParty.embeddedPlayerContext=Object.assign({},k.thirdParty.embeddedPlayerContext,{visibilityFractionSource:J.AP})), k.thirdParty.embeddedPlayerContext=Object.assign({},k.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:R5(),autoplayIntended:BP(p),autoplayStatus:aJ0(p,t)}))}; lJh=function(k,p){MP(k,2,p.eY,zo,3);MP(k,3,p.Uw,gf9,3);hc(k,4,p.onesieUstreamerConfig);hc(k,9,p.eF);MP(k,10,p.XJ,eE,3);MP(k,15,p.reloadPlaybackParams,uTw,3)}; OkM=function(k,p){MP(k,1,p.formatId,hu,3);zM(k,2,p.startTimeMs);zM(k,3,p.durationMs);zM(k,4,p.Jy);zM(k,5,p.Ux);MP(k,9,p.j7T,jcw,3);MP(k,11,p.JYb,a5,1);MP(k,12,p.Kn,a5,1)}; KqT=function(k,p){aI(k,1,p.videoId);zM(k,2,p.lmt)}; jcw=function(k,p){if(p.vZ)for(var t=0;t<p.vZ.length;t++)MP(k,1,p.vZ[t],KqT,3)}; hu=function(k,p){zM(k,1,p.itag);zM(k,2,p.lmt);aI(k,3,p.xtags)}; Mm=function(k){return{itag:nQ(k,1),lmt:nQ(k,2),xtags:QV(k,3)}}; a5=function(k,p){zM(k,1,p.startTicks);zM(k,2,p.dW);zM(k,3,p.timescale)}; Hki=function(k){return{startTicks:nQ(k,1),dW:nQ(k,2),timescale:nQ(k,3)}}; xUi=function(k,p){zM(k,1,p.defaultPolicy);zM(k,2,p.smooth);zM(k,3,p.visibility);zM(k,4,p.Wv);zM(k,5,p.performance);zM(k,6,p.speed)}; zo=function(k,p){zM(k,13,p.timeSinceLastManualFormatSelectionMs);var t=p.lastManualDirection;t!==void 0&&(Bd(k,112),Bd(k,t<<1^t>>31));zM(k,16,p.Jp6);zM(k,17,p.detailedNetworkType);zM(k,18,p.kt);zM(k,19,p.vX);zM(k,21,p.b$);zM(k,23,p.lF);zM(k,28,p.OI);zM(k,29,p.fO8);zM(k,34,p.visibility);t=p.playbackRate;if(t!==void 0){var J=new ArrayBuffer(4);(new Float32Array(J))[0]=t;t=(new Uint32Array(J))[0];if(t!==void 0)for(Bd(k,285),RI(k,4),J=0;J<4;)k.view.setUint8(k.pos,t&255),t>>=8,k.pos+=1,J+=1}zM(k,36,p.R1); MP(k,38,p.mediaCapabilities,kWu,3);zM(k,39,p.XNp);zM(k,40,p.U6);zM(k,44,p.playerState);ex(k,46,p.O$);zM(k,48,p.lf);zM(k,50,p.Cr);zM(k,51,p.vF);zM(k,54,p.rP);ex(k,56,p.XpG);zM(k,57,p.zy);ex(k,58,p.qQ);zM(k,59,p.Ok);zM(k,60,p.Vx);ex(k,61,p.isPrefetch);zM(k,62,p.RQ);hc(k,63,p.sabrLicenseConstraint);zM(k,64,p.LSr);zM(k,66,p.p0b);zM(k,67,p.e6O);zM(k,68,p.oIh);aI(k,69,p.audioTrackId);ex(k,71,p.PL);MP(k,72,p.L_O,xUi,1);zM(k,74,p.DQ);zM(k,75,p.ZQ)}; kWu=function(k,p){if(p.videoFormatCapabilities)for(var t=0;t<p.videoFormatCapabilities.length;t++)MP(k,1,p.videoFormatCapabilities[t],phS,1);if(p.audioFormatCapabilities)for(t=0;t<p.audioFormatCapabilities.length;t++)MP(k,2,p.audioFormatCapabilities[t],t0j,1);MP(k,4,p.perPlaybackAttributes,JA0,3);zM(k,5,p.hdrModeBitmask)}; phS=function(k,p){zM(k,1,p.videoCodec);zM(k,3,p.maxHeight);zM(k,4,p.maxWidth);zM(k,11,p.maxFramerate);zM(k,12,p.maxBitrateBps);ex(k,15,p.is10BitSupported)}; t0j=function(k,p){zM(k,1,p.audioCodec);zM(k,2,p.numChannels);zM(k,3,p.maxBitrateBps);zM(k,6,p.spatialCapabilityBitmask)}; JA0=function(k,p){if(p.itagDenylist)for(var t=0;t<p.itagDenylist.length;t++)zM(k,1,p.itagDenylist[t])}; eE=function(k,p){MP(k,1,p.clientInfo,otS,3);hc(k,2,p.SN);hc(k,3,p.playbackCookie);hc(k,4,p.eF);if(p.bf)for(var t=0;t<p.bf.length;t++)MP(k,5,p.bf[t],qnw,3);if(p.tU)for(t=0;t<p.tU.length;t++)zM(k,6,p.tU[t]);aI(k,7,p.iLh);MP(k,8,p.G0,FC_,3)}; $7_=function(k,p){zM(k,1,p.Xkb);zM(k,2,p.tny)}; d7q=function(k,p){var t=p.code;t!==void 0&&(Bd(k,8),Bd(k,t<<1^t>>31));aI(k,2,p.message)}; Eti=function(k,p){zM(k,1,p.clientState);MP(k,2,p.h6h,$7_,1)}; FC_=function(k,p){hc(k,1,p.ZZy);MP(k,2,p.Dhh,d7q,3);MP(k,3,p.coldStartInfo,Eti,3)}; qnw=function(k,p){zM(k,1,p.type);hc(k,2,p.value)}; otS=function(k,p){aI(k,1,p.hl);aI(k,12,p.deviceMake);aI(k,13,p.deviceModel);zM(k,16,p.clientName);aI(k,17,p.clientVersion);aI(k,18,p.osName);aI(k,19,p.osVersion)}; Sni=function(k,p){aI(k,1,p.name);aI(k,2,p.value)}; U7j=function(k,p){aI(k,1,p.url);if(p.w6)for(var t=0;t<p.w6.length;t++)MP(k,2,p.w6[t],Sni,3);hc(k,3,p.postBody);ex(k,4,p.JBp);ex(k,6,p.xu)}; gf9=function(k,p){hc(k,2,p.iN);hc(k,5,p.encryptedClientKey);hc(k,6,p.iv);hc(k,7,p.f6);ex(k,10,p.J9);ex(k,13,p.JF);ex(k,14,p.Qz);hc(k,16,p.wN8);ex(k,17,p.Su)}; fMu=function(k){return{zw:nQ(k,1),Z3:nQ(k,2),body:io(k,4)}}; uTw=function(k,p){aI(k,1,p.token)}; bT0=function(k){return{token:QV(k,1)}}; N$0=function(k){return{uX:nQ(k,1),gCp:nQ(k,2)}}; rAL=function(k,p){MP(k,1,p.eY,zo,3);if(p.TO)for(var t=0;t<p.TO.length;t++)MP(k,2,p.TO[t],hu,3);if(p.kI)for(t=0;t<p.kI.length;t++)MP(k,3,p.kI[t],OkM,3);hc(k,5,p.videoPlaybackUstreamerConfig);if(p.Uo)for(t=0;t<p.Uo.length;t++)MP(k,6,p.Uo[t],yAu,3);if(p.HM)for(t=0;t<p.HM.length;t++)MP(k,16,p.HM[t],hu,3);if(p.zi)for(t=0;t<p.zi.length;t++)MP(k,17,p.zi[t],hu,3);if(p.d2)for(t=0;t<p.d2.length;t++)MP(k,18,p.d2[t],hu,3);MP(k,19,p.XJ,eE,3);MP(k,21,p.sS,Yn6,3);zM(k,22,p.LD);zM(k,23,p.U2);if(p.oZ)for(t=0;t<p.oZ.length;t++)MP(k, 1E3,p.oZ[t],T$L,3)}; yAu=function(k,p){MP(k,1,p.formatId,hu,3);zM(k,2,p.aq);zM(k,3,p.sequenceNumber);MP(k,4,p.G9,a5,1);zM(k,5,p.o4);zM(k,6,p.A3)}; Yn6=function(k,p){if(p.SU)for(var t=0;t<p.SU.length;t++)aI(k,1,p.SU[t]);hc(k,2,p.zo);aI(k,3,p.Ol);zM(k,4,p.e9);zM(k,5,p.mm);aI(k,6,p.RL)}; T$L=function(k,p){if(p.TO)for(var t=0;t<p.TO.length;t++)MP(k,1,p.TO[t],hu,3);if(p.kI)for(t=0;t<p.kI.length;t++)MP(k,2,p.kI[t],OkM,3);aI(k,3,p.clipId)}; g.gY=function(k,p){MP(k,1,p.eY,zo,3);hc(k,3,p.videoPlaybackUstreamerConfig);MP(k,5,p.XJ,eE,3);MP(k,6,p.sS,Yn6,3)}; AAj=function(k,p){aI(k,1,p.cpn);zM(k,2,p.sequenceNumber);aI(k,3,p.serializedWatchEndpointLoggingContext);if(p.decoderInfo)for(var t=0;t<p.decoderInfo.length;t++)MP(k,6,p.decoderInfo[t],ZTM,3);aI(k,9,p.playerResponseCpn);zM(k,10,p.transitionStitchType);zM(k,12,p.timestampOffsetMsecs);zM(k,15,p.remoteControlMode);if(p.remoteConnectedDevices)for(t=0;t<p.remoteConnectedDevices.length;t++)MP(k,16,p.remoteConnectedDevices[t],CL_,3);hc(k,17,p.serializedHouseBrandPlayerServiceLoggingContext)}; ZTM=function(k,p){zM(k,1,p.elapsedTimeMs);aI(k,3,p.videoDecoderName)}; CL_=function(k,p){zM(k,1,p.deviceInterface);aI(k,2,p.deviceVersion);ex(k,3,p.isSleeping)}; m7i=function(k){return{first:nQ(k,1),gB:nQ(k,2)}}; V0M=function(k){return{bitrate:nQ(k,6),width:nQ(k,7),height:nQ(k,8),fps:nQ(k,25),averageBitrate:nQ(k,31),audioSampleRate:nQ(k,45),audioChannels:nQ(k,46)}}; uy=function(k){return{itagDenylist:GM(k,1)}}; sfh=function(k){return{bZy:nQ(k,1),itag:QV(k,3),A9:Pd(k,4,WCu),lmt:nQ(k,5),BJp:nQ(k,7),xtags:QV(k,15),xWO:Pd(k,23,D7_),gX:Pd(k,34,uy)}}; WCu=function(k){return{iv:io(k,5),kbp:wK(k,7)}}; LC0=function(k){return{bF:GM(k,2),videoId:QV(k,3),Mn:nQ(k,4)}}; D7_=function(k){return{videoId:QV(k,2)}}; vti=function(k){return{Bg:nQ(k,3),bZ:nQ(k,4),m1:nQ(k,5),cBO:wK(k,8),Kpp:nQ(k,10),dB:nQ(k,12),zj:nQ(k,13),fv:nQ(k,14),DE:nQ(k,15),rM:nQ(k,16)}}; cAM=function(k){return{targetAudioReadaheadMs:nQ(k,1),targetVideoReadaheadMs:nQ(k,2),backoffTimeMs:nQ(k,4),playbackCookie:io(k,7),videoId:QV(k,8)}}; nth=function(k){return{minBandwidthBytesPerSec:nQ(k,1),minReadaheadMs:nQ(k,2)}}; whM=function(k){return{startMinReadaheadPolicy:II(k,1,nth),resumeMinReadaheadPolicy:II(k,2,nth)}}; iTq=function(k){return{label:QV(k,1),text:QV(k,2)}}; Qfu=function(k){return{videoId:QV(k,1),formatId:Pd(k,2,Mm),debugInfo:II(k,3,iTq)}}; PLT=function(k){return{SA:II(k,1,Qfu)}}; GWL=function(k){return{cC:nQ(k,1),S3:nQ(k,2),minReadaheadMs:nQ(k,3)}}; IMh=function(k){return{Cc:nQ(k,1),items:II(k,2,GWL),vV:nQ(k,3)}}; Xhj=function(k){return{token:QV(k,1),videoId:QV(k,2)}}; RuS=function(k){return{Zg:nQ(k,1)}}; B$q=function(k){return{p3h:QV(k,1),action:nQ(k,2),wv:Pd(k,3,RuS)}}; ly=function(k){return{iH:nQ(k,1),rL:nQ(k,2),seekSource:nQ(k,3)}}; euh=function(k){return{vx:II(k,1,zuq),roy:QV(k,2)}}; hu0=function(k){return{Vd:QV(k,1),s_:nQ(k,2),A5h:nQ(k,3),O4:nQ(k,4),xg:nQ(k,5),uI:nQ(k,6)}}; aMM=function(k){return{sL:nQ(k,1)}}; zuq=function(k){return{clipId:QV(k,1),yZ:Pd(k,2,hu0),JL:Pd(k,3,aMM)}}; M0u=function(k){return{type:nQ(k,1),scope:nQ(k,2),value:io(k,3),sendByDefault:wK(k,4),writePolicy:nQ(k,5)}}; gti=function(k){var p=[];k=g.Z(k.split(","));for(var t=k.next();!t.done;t=k.next()){var J=t.value;J&&((t=J.startsWith("!"))&&(J=J.substring(1)),J=J.split("-"),J.length<3||p.push({qT:J[0],platform:J[1],deviceVersion:J[2],W8:t}))}return p}; jf0=function(k){return gti(k).map(function(p){return{deviceInterface:uCj[lMM[p.qT]]||0,deviceVersion:p.deviceVersion||"",isSleeping:p.W8}})}; g.jE=function(k,p){this.id=k;this.ws=p;this.captionTracks=[];this.N=this.C=null;this.xtags="";this.X=!1;this.T=null;this.Y="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";k=this.ws.id.split(".");k.length>1&&(this.X=k[1]==="2")}; OJ=function(k,p,t,J,q){this.Y=k;this.T=p;this.N=t;this.reason=J;this.Lp=q===void 0?0:q}; g.Kj=function(k,p,t,J){return new OJ(g.Qs[k]||0,g.Qs[p]||0,t,J)}; xI=function(k){if(HP&&k.Lp)return!1;var p=g.Qs.auto;return k.Y===p&&k.T===p}; pD=function(k){return kw[k.T||k.Y]||"auto"}; OTL=function(k,p){p=g.Qs[p];return k.Y<=p&&(!k.T||k.T>=p)}; t6=function(k){return"["+k.Y+"-"+k.T+", override: "+(k.N+", reason: "+k.reason+"]")}; J6=function(k,p,t){this.videoInfos=k;this.T=p;this.audioTracks=[];if(this.T){k=new Set;t==null||t({ainfolen:this.T.length});p=g.Z(this.T);for(var J=p.next();!J.done;J=p.next())if(J=J.value,!J.ws||k.has(J.ws.id)){var q=void 0,F=void 0,d=void 0;(d=t)==null||d({atkerr:!!J.ws,itag:J.itag,xtag:J.T,lang:((q=J.ws)==null?void 0:q.name)||"",langid:((F=J.ws)==null?void 0:F.id)||""})}else q=new g.jE(J.id,J.ws),k.add(J.ws.id),this.audioTracks.push(q);t==null||t({atklen:this.audioTracks.length})}}; ov=function(){g.R.apply(this,arguments);this.T=null}; kw0=function(k,p,t,J,q,F,d){if(k.T)return k.T;var S={},U=new Set,f={};if(qB(J)){for(var b in J.T)J.T.hasOwnProperty(b)&&(k=J.T[b],f[k.info.H0]=[k.info]);return f}b=KCu(p,J,S);F&&q({aftsrt:Fk(b)});for(var N={},y=g.Z(Object.keys(b)),Y=y.next();!Y.done;Y=y.next()){Y=Y.value;for(var T=g.Z(b[Y]),A=T.next();!A.done;A=T.next()){A=A.value;var V=A.itag,D=void 0,v=Y+"_"+(((D=A.video)==null?void 0:D.fps)||0);N.hasOwnProperty(v)?N[v]===!0?f[Y].push(A):S[V]=N[v]:(D=$w(p,A,t,J.isLive,U),D!==!0?(d.add(Y),S[V]=D, D==="disablevp9hfr"&&(N[v]="disablevp9hfr")):(f[Y]=f[Y]||[],f[Y].push(A),N[v]=!0))}}F&&q({bfflt:Fk(f)});for(var w in f)f.hasOwnProperty(w)&&(J=w,f[J]&&f[J][0].pZ()&&(f[J]=f[J],f[J]=HT9(p,f[J],S),f[J]=x7S(f[J],S)));F&&Object.keys(S).length>0&&q({rjr:CC(S)});p=g.Z(U.values());for(J=p.next();!J.done;J=p.next())(J=t.Y.get(J.value))&&--J.VO;F&&q({aftflt:Fk(f)});k.T=g.CE(f,function(X){return!!X.length}); return k.T}; tm6=function(k,p,t,J,q,F,d,S){S=S===void 0?!1:S;if(p.nT&&d&&d.length>1&&!(p.Ok>0||p.B)){for(var U=p.Y||!!q,f=U&&p.nE?F:void 0,b=KCu(p,J),N=[],y=[],Y={},T=0;T<d.length;T++){var A=d[T],V=J.N.get(A);if(V&&V.info){var D=V.info;V=D.H0;if($w(p,D,t,J.isLive)){A=D.pZ()?N:y;D=g.Z(b[V]);for(var v=D.next();!v.done;v=D.next()){v=v.value;var w=void 0,X=V+"_"+(((w=v.video)==null?void 0:w.fps)||0);Y.hasOwnProperty(X)?Y[X]===!0&&A.push(v):$w(p,v,t,J.isLive)&&(A.push(v),Y[X]=!0)}}else U&&F({opfu:A})}}if(N.length&& y.length)return U&&F({opfm:N[0].itag+","+y[0].itag}),cw(new J6(N,y,f))}return p$M(k,p,t,J,q,F,S)}; p$M=function(k,p,t,J,q,F,d){function S(D){return!!N[D]} var U=p.Y||!!q,f=U&&p.nE?F:void 0,b=new Set,N=kw0(k,p,t,J,F,U,b);dC(J)&&(N=JDM(t,N,q,U,F,p),U&&F({enflt:Fk(N)}));p.Jp=ogh(N,p);if(qB(J))return F=g.j9(Object.values(N),function(D){return!!D.length&&!!D[0].audio}),k=g.j9(Object.values(N),function(D){return!!D.length&&!!D[0].video}),F&&k||vw(),cw(new J6(k,F,f)); q=qDj(p);U&&F({audioPrefOrder:q.join("_")});k=[];if(p.UQ){q=g.dZ(q,S);for(var y=new Set,Y=g.Z(q),T=Y.next();!T.done;T=Y.next()){T=g.Z(N[T.value]);for(var A=T.next();!A.done;A=T.next())A=A.value,A.ws&&!y.has(A.ws.id)&&(y.add(A.ws.id),k.push(A))}if(k.length===0){if(q.length===0)return U&&F({noaudio:1}),vw();k=N[q[0]]}}else{k=g.j9(q,S);if(!k)return U&&F({noaudio:1}),vw();k=N[k]}N["9"]&&N.h&&J.m2&&!p.IY&&(U&&F({dltvp9:1}),delete N["9"]);if(d){U&&F({bfsflt:Fk(N),bfsflta:E1(t)});FOS(t,b);U&&F({bfsfltb:E1(t)}); for(var V in N)if(N.hasOwnProperty(V)&&(d=V,!(d==="f"||p.Oy===0&&$zh.has(d))))for(b=g.Z(N[d]),q=b.next();!q.done;q=b.next())q=q.value,p.Kb?dzw(t,d,q):EgL(t,d,q);U&&F({aftsflt:E1(t)})}d=N["1h"]?"1h":"1";t=N["9h"]?"9h":"9";q=N[d];y=N[t];q&&q.length&&(p.T.highestAv1Resolution=q[q.length-1].video.T);y&&y.length&&(p.T.highestVp9Resolution=y[y.length-1].video.T);V=[];b=[];if(p.Ji&&q)V=q,b=[d],F({forceAv1:d});else if(p.B&&!p.qQ)for(b=SDj(J)?N["1h"]||N["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],U&&F({newhybpref:b.join(".")}), q=g.Z(b),y=q.next();!y.done;y=q.next())V=V.concat(N[y.value]).filter(function(D){return D}); else p.Ok>0&&y&&q&&(b=[d,t],V=q.concat(y).filter(function(D){return D})); if(V.length&&!p.qQ){S8(V,b);if(U){U=[];p=g.Z(V);for(J=p.next();!J.done;J=p.next())U.push(J.value.itag);F({hbdfmt:U.join(".")})}return cw(new J6(V,k,f))}V=Uzq(p);V=g.j9(V,S);if(!V){if(N[d])return F=N[d],S8(F),cw(new J6(F,k,f));U&&F({novideo:1});return vw()}p.jW&&(V==="1"||V==="1h")&&N[t]&&(d=U1(N[V]),b=U1(N[t]),b>d?V=t:b===d&&fli(N[t])&&(V=t));V==="9"&&N.h&&U1(N.h)>U1(N["9"])&&(V="h");p.qW&&J.isLive&&V==="("&&N.H&&U1(N["("])<1440&&(V="H");U&&F({vfmly:fD(V)});p=N[V];if(!p.length)return U&&F({novfmly:fD(V)}), vw();S8(p);return cw(new J6(p,k,f))}; ogh=function(k,p){var t=!(!k.m&&!k.M),J=!(!k.mac3&&!k.MAC3),q=!(!k.meac3&&!k.MEAC3);k=!(!k.i&&!k.I);p.UF=k;return t||J||q||k}; fli=function(k){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())if(p=p.value,p.itag&&bC_.has(p.itag))return!0;return!1}; fD=function(k){switch(k){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return k}}; Fk=function(k){var p=[],t;for(t in k)if(k.hasOwnProperty(t)){var J=t;p.push(fD(J));J=g.Z(k[J]);for(var q=J.next();!q.done;q=J.next())p.push(q.value.itag)}return p.join(".")}; JDM=function(k,p,t,J,q,F){var d={},S={};g.ZV(p,function(U,f){U=U.filter(function(b){var N=b.itag;if(!b.xf)return S[N]="noenc",!1;if(F.Fd&&b.H0==="(h"&&F.gs)return S[N]="lichdr",!1;if(!k.N&&b.H0==="1e")return S[N]="noav1enc",!1;if(b.H0==="("||b.H0==="(h"){if(k.X&&t&&t.flavor==="widevine"){var y=b.mimeType+"; experimental=allowed";(y=!!b.xf[t.flavor]&&!!t.T[y])||(S[N]=b.xf[t.flavor]?"unspt":"noflv");return y}if(!bf(k,NB.CRYPTOBLOCKFORMAT)&&!k.qO||k.P0)return S[N]=k.P0?"disvp":"vpsub",!1}return t&&b.xf[t.flavor]&& t.T[b.mimeType]?!0:(S[N]=t?b.xf[t.flavor]?"unspt":"noflv":"nosys",!1)}); U.length&&(d[f]=U)}); J&&Object.entries(S).length&&q({rjr:CC(S)});return d}; x7S=function(k,p){var t=LO(k,function(J,q){return q.video.fps>32?Math.min(J,q.video.width):J},Infinity); t<Infinity&&(k=k.filter(function(J){if(J.video.fps>32||J.video.width<t)return!0;p[J.itag]="hfrfirst";return!1})); he()&&(k=k.filter(function(J){if(J.itag!=="299")return!0;p[J.itag]="ps3hfr1080";return!1})); return k}; HT9=function(k,p,t){return p=p.filter(function(J){if(J.video.T<=k.aO)return!0;t[J.itag]="maxquality";return!1})}; KCu=function(k,p,t){var J={},q;for(q in p.T)if(p.T.hasOwnProperty(q)){var F=p.T[q].info;if(k.Z&&F.video&&F.video.T<k.Z)t&&(t[F.itag]="min"+k.Z);else{var d=F.H0;J[d]=J[d]||[];J[d].push(F)}}k=g.Z(Object.keys(J));for(p=k.next();!p.done;p=k.next())S8(J[p.value]);return J}; U1=function(k){return LO(k,function(p,t){return Math.max(p,t.video.T)},0)}; $w=function(k,p,t,J,q){q=q===void 0?new Set:q;if(p.H0==="")return"unkn";if((p.itag==="304"||p.itag==="266")&&k.NO)return"blk2khfr";if(k.S&&p.video&&p.video.T>k.S)return"max"+k.S;if(k.B0&&p.H0==="h"&&p.video&&p.video.T>1080)return"blkhigh264";if(p.H0==="(h"&&!t.Z)return"enchdr";if((J===void 0?0:J)&&Mz(p)&&!k.RY)return"blk51live";if((p.H0==="MAC3"||p.H0==="mac3")&&!k.C)return"blkac3";if((p.H0==="MEAC3"||p.H0==="meac3")&&!k.X)return"blkeac3";if(p.H0==="M"||p.H0==="m")return"blkaac51";if((p.H0==="so"|| p.H0==="sa")&&!k.Y8)return"blkamb";if(!k.Fd&&mOS(p)&&(!t.N||p.H0!=="1e"))return"cbc";if(!t.N&&mOS(p)&&p.H0==="1e")return"cbcav1";if((p.H0==="i"||p.H0==="I")&&!k.ez)return"blkiamf";if(p.itag==="774"&&!k.P0)return"blkouh";var F,d;if(k.k8&&(p.H0==="1"||p.H0==="1h"||t.N&&p.H0==="1e")&&((F=p.video)==null?0:F.T)&&((d=p.video)==null?void 0:d.T)>k.k8)return"av1cap";if((J=t.Y.get(p.H0))&&J.VO>0)return q.add(p.H0),"byerr";var S;if((S=p.video)==null?0:S.fps>32){if(!t.Oy&&!bf(t,NB.FRAMERATE))return"capHfr";if(k.v0&& p.video.T>=4320)return"blk8khfr";if(B$(p)&&k.hB&&p.xf&&p.video.T>=1440)return"disablevp9hfr"}if(k.Lp&&p.Lp>k.Lp)return"ratecap";k=N2j(t,p);return k!==!0?k:!0}; S8=function(k,p){p=p===void 0?[]:p;g.SD(k,function(t,J){var q=J.Lp-t.Lp;if(!t.pZ()||!J.pZ())return q;var F=J.video.height*J.video.width-t.video.height*t.video.width;!F&&p&&p.length>0&&(t=p.indexOf(t.H0)+1,J=p.indexOf(J.H0)+1,F=t===0||J===0?J||-1:t-J);F||(F=q);return F})}; g.yb=function(k,p){this.Y=k;this.C=p===void 0?!1:p;this.N=this.path=this.scheme="";this.T={};this.url=""}; TY=function(k){Yw(k);return k.N}; rC=function(k){return k.Y?k.Y.startsWith("local"):k.scheme==="local"}; yDS=function(k){Yw(k);return g.mc(k.T,function(p){return p!==null})}; ZN=function(k){Yw(k);var p=decodeURIComponent(k.get("mn")||"").split(",");return k.path==="/videoplayback"&&p.length>1&&!!p[1]}; CD=function(k,p){p=p===void 0?!1:p;Yw(k);if(k.path!=="/videoplayback"){var t=k.clone();t.set("playerfallback","1");return t}var J=k.b1();t=new g.Sv(J);var q=k.get("fvip"),F=decodeURIComponent(k.get("mn")||"").split(",");if(q&&F&&F.length>1&&F[1])return J=t.T,k=J.replace(/^[^.]*/,""),g.fI(t,(J.indexOf("rr")===0?"rr":"r")+q+"---"+F[1]+k),t=new g.yb(t.toString()),t.set("fallback_count","1"),t;if(p)return t=k.clone(),t.set("fallback_count","1"),t;q=t.T.match("\\.a1\\.googlevideo\\.com$");t.T.match("\\.googlevideo\\.com$")? (g.fI(t,"redirector.googlevideo.com"),J=t.toString()):t.T.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.fI(t,"www.youtube.com"),J=t.toString()):(t=b1L(J),jC(t)&&(J=t));t=new g.yb(J);t.set("cmo=pf","1");q&&t.set("cmo=td","a1.googlevideo.com");return t}; Yw=function(k){if(k.Y){if(!jC(k.Y)&&!k.Y.startsWith("local"))throw new g.hm("Untrusted URL",k.Y);var p=g.ZW(k.Y);k.scheme=p.X;k.N=p.T+(p.N!=null?":"+p.N:"");var t=p.Y;if(t.startsWith("/videoplayback"))k.path="/videoplayback",t=t.slice(14);else if(t.startsWith("/initplayback"))k.path="/initplayback",t=t.slice(13);else if(t.startsWith("/api/manifest")){var J=t.indexOf("/",12),q=t.indexOf("/",J+1);J>0&&q>0?(k.path=t.slice(0,q),t=t.slice(q+1)):(k.path=t,t="")}else k.path=t,t="";J=k.T;k.T=YD9(t);Object.assign(k.T, T2T(p.C.toString()));Object.assign(k.T,J);k.T.file==="index.m3u8"&&(delete k.T.file,k.path+="/file/index.m3u8");k.Y="";k.url="";k.C&&(p=lHe(),Yw(k),t=k.T[p]||null)&&(t=rD9[0](t),k.set(p,t),k.C||lHe(""))}}; ZC0=function(k){Yw(k);var p=k.scheme+(k.scheme?"://":"//")+k.N+k.path;if(yDS(k)){var t=[];g.ZV(k.T,function(J,q){J!==null&&t.push(q+"="+J)}); p+="?"+t.join("&")}return p}; YD9=function(k){k=k.split("/");var p=0;k[0]||p++;for(var t={};p<k.length;p+=2)k[p]&&CGL(t,k[p],k[p+1]);return t}; T2T=function(k){k=k.split("&");for(var p={},t=0;t<k.length;t++){var J=k[t],q=J.indexOf("=");q>0?CGL(p,J.slice(0,q),J.slice(q+1)):J&&(p[J]="")}return p}; CGL=function(k,p,t){if(p==="cmo"){var J;(J=t.indexOf("="))>=0?(p="cmo="+t.slice(0,J),t=t.slice(J+1)):(J=t.indexOf("%3D"))>=0&&(p="cmo="+t.slice(0,J),t=t.slice(J+3))}k[p]=t}; A6=function(k){var p=g.e(k,ADi)||k.signatureCipher;k={jO:!1,bC:"",Po:"",s:""};if(!p)return k;p=xl(p);k.jO=!0;k.bC=p.url;k.Po=p.sp;k.s=p.s;return k}; mN=function(k,p,t,J,q,F,d,S,U){this.x8=k;this.startTime=p;this.duration=t;this.ingestionTime=J;this.sourceURL=q;this.ut=U;this.endTime=p+t;this.T=d||0;this.range=F||null;this.pending=S||!1;this.ut=U||null}; g.Vb=function(){this.segments=[];this.T=null;this.Y=!0;this.N=""}; mzL=function(k,p){if(p>k.WH())k.segments=[];else{var t=lJ(k.segments,function(J){return J.x8>=p},k); t>0&&k.segments.splice(0,t)}}; WE=function(k,p,t,J,q){q=q===void 0?!1:q;this.data=k;this.offset=p;this.size=t;this.type=J;this.T=(this.Y=q)?0:8;this.dataOffset=this.offset+this.T}; DN=function(k){var p=k.data.getUint8(k.offset+k.T);k.T+=1;return p}; s1=function(k){var p=k.data.getUint16(k.offset+k.T);k.T+=2;return p}; LD=function(k){var p=k.data.getInt32(k.offset+k.T);k.T+=4;return p}; vE=function(k){var p=k.data.getUint32(k.offset+k.T);k.T+=4;return p}; cE=function(k){var p=k.data;var t=k.offset+k.T;p=p.getUint32(t)*4294967296+p.getUint32(t+4);k.T+=8;return p}; nD=function(k,p){p=p===void 0?NaN:p;if(isNaN(p))var t=k.size;else for(t=k.T;t<k.size&&k.data.getUint8(k.offset+t)!==p;)++t;p=new Uint8Array(k.data.buffer,k.offset+k.T+k.data.byteOffset,t-k.T);k.T=Math.min(t+1,k.size);return Ac(p)}; VmS=function(k){return new Uint8Array(k.data.buffer,k.offset+k.data.byteOffset,k.size)}; WO6=function(k){this.offset=0;this.data=new DataView(new ArrayBuffer(k))}; wC=function(k,p,t,J){(new Uint8Array(k.data.buffer,k.offset,J)).set(new Uint8Array(p.buffer,t+p.byteOffset,J));k.offset+=J}; Qb=function(k,p,t,J,q,F){this.startSecs=k;this.NR=p;this.context=t;this.identifier=J;this.event=q;this.T=F}; GY=function(k,p){this.data=k;this.uri=p||"http://youtube.com/streaming/metadata/segment/102015";this.FS=PE(this,"Sequence-Number");this.C=PE(this,"Segment-Count");this.X=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=PE(this,"Ingestion-Walltime-Us")/1E6;this.T=(PE(this,"First-Frame-Time-Us")+PE(this,"First-Frame-Uncertainty-Us"))/1E6;this.JM=PE(this,"Target-Duration-Us")/1E6;this.ZM=this.data["Stream-Finished"]==="T";this.N=this.data.Streamable==="T";this.cryptoPeriodIndex=PE(this,"Crypto-Period-Index"); this.Y=PE(this,"Crypto-Period-Seconds")}; seu=function(k){return k.data["Cuepoint-Type"]?new Qb(-(Number(k.data["Cuepoint-Playhead-Time-Sec"])||0),Number(k.data["Cuepoint-Total-Duration-Sec"])||0,k.data["Cuepoint-Context"],k.data["Cuepoint-Identifier"]||"",Dzu[k.data["Cuepoint-Event"]||""]||"unknown",(Number(k.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; LOM=function(k){return Number(k.data["Start-Media-Time-Us"])/1E6||0}; PE=function(k,p){return Number(k.data[p])||0}; Iv=function(k){return k.data["Stitched-Video-Cpn"]?k.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; g.vg0=function(k){return k.data["Serialized-State"]?k.data["Serialized-State"]:""}; g.cD0=function(k){switch(k.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; nge=function(k,p){this.T=k;this.duration=p}; w$L=function(k,p,t,J,q){this.Y=q;this.T=k||0;this.pitch=p||0;this.yaw=t||0;this.roll=J||0;this.crc=q.getUint32(4)}; Xk=function(k){var p={};k=k.split("\r\n");for(var t=0;t<k.length;t++){if(k[t].length===0)return p;var J=k[t].match(/([^:]+):\s+([\S\s]+)/);J!=null&&(p[J[1]]=J[2])}return null}; iCT=function(k,p){var t=g.Rv(k,0,1952868452);k=g.Rv(k,0,1953658222);if(t&&k){t.skip(1);var J=DN(t)<<16|s1(t);t.skip(4);J&1&&t.skip(8);J&2&&t.skip(4);if(J&8){J=t.T;var q=vE(t);t.data.setUint32(t.offset+J,p>1?Math.ceil(q*p):Math.floor(q*p))}k.skip(1);t=DN(k)<<16|s1(k);if(t&256){J=t&1;q=t&4;var F=t&512,d=t&1024,S=t&2048;t=vE(k);J&&k.skip(4);q&&k.skip(4);J=(F?4:0)+(d?4:0)+(S?4:0);for(q=0;q<t;q++)F=k.T,d=vE(k),k.data.setUint32(k.offset+F,p>1?Math.ceil(d*p):Math.floor(d*p)),k.skip(J)}}}; zY=function(k){k=new DataView(k.buffer,k.byteOffset,k.byteLength);return(k=g.Rv(k,0,1836476516))?g.BE(k):NaN}; Qe_=function(k){var p=g.Rv(k,0,1937011556);if(!p)return null;p=e8(k,p.dataOffset+8,1635148593)||e8(k,p.dataOffset+8,1635135537);if(!p)return null;var t=e8(k,p.dataOffset+78,1936995172),J=e8(k,p.dataOffset+78,1937126244);if(!J)return null;p=null;if(t)switch(t.skip(4),DN(t)){default:p=0;break;case 1:p=2;break;case 2:p=1;break;case 3:p=255}var q=t=null,F=null;if(J=e8(k,J.dataOffset,1886547818)){var d=e8(k,J.dataOffset,1886546020),S=e8(k,J.dataOffset,2037673328);if(!S&&(S=e8(k,J.dataOffset,1836279920), !S))return null;d&&(d.skip(4),t=LD(d)/65536,F=LD(d)/65536,q=LD(d)/65536);k=VmS(S);k=new DataView(k.buffer,k.byteOffset+8,k.byteLength-8);return new w$L(p,t,F,q,k)}return null}; e8=function(k,p,t){for(;h6(k,p);){var J=av(k,p);if(J.type===t)return J;p+=J.size}return null}; g.Rv=function(k,p,t){for(;h6(k,p);){var J=av(k,p);if(J.type===t)return J;p=MB(J.type)?p+8:p+J.size}return null}; g.gC=function(k){if(k.data.getUint8(k.dataOffset)){var p=k.data;k=k.dataOffset+4;p=p.getUint32(k)*4294967296+p.getUint32(k+4)}else p=k.data.getUint32(k.dataOffset+4);return p}; av=function(k,p){var t=k.getUint32(p),J=k.getUint32(p+4);return new WE(k,p,t,J)}; g.BE=function(k){var p=k.data.getUint8(k.dataOffset)?20:12;return k.data.getUint32(k.dataOffset+p)}; PGq=function(k){k=new WE(k.data,k.offset,k.size,k.type,k.Y);var p=DN(k);k.skip(7);var t=vE(k);if(p===0){p=vE(k);var J=vE(k)}else p=cE(k),J=cE(k);k.skip(2);for(var q=s1(k),F=[],d=[],S=0;S<q;S++){var U=vE(k);F.push(U);d.push(vE(k));k.skip(4)}return{timescale:t,mC:p,YA:J,i$S:F,zG:d}}; h6=function(k,p){if(k.byteLength-p<8)return!1;var t=k.getUint32(p);if(t<8||k.byteLength-p<t)return!1;for(t=4;t<8;t++){var J=k.getInt8(p+t);if(J<48||J>122)return!1}return!0}; MB=function(k){return k===1701082227||k===1836019558||k===1836019574||k===1835297121||k===1835626086||k===1937007212||k===1953653094||k===1953653099||k===1836475768}; GwM=function(k){k.skip(4);return{XQh:nD(k,0),value:nD(k,0),timescale:vE(k),rVy:vE(k),voT:vE(k),id:vE(k),vE:nD(k),offset:k.offset}}; g.Ili=function(k){var p=e8(k,0,1701671783);if(!p)return null;var t=GwM(p),J=t.XQh;t=Xk(t.vE);if(k=e8(k,p.offset+p.size,1701671783))if(k=GwM(k),k=Xk(k.vE),t&&k){p=g.Z(Object.keys(k));for(var q=p.next();!q.done;q=p.next())q=q.value,t[q]=k[q]}return t?new GY(t,J):null}; uf=function(k,p){for(var t=e8(k,0,p);t;){var J=t;J.type=1936419184;J.data.setUint32(J.offset+4,1936419184);t=e8(k,t.offset+t.size,p)}}; g.lf=function(k,p){for(var t=0,J=[];h6(k,t);){var q=av(k,t);q.type===p&&J.push(q);t=MB(q.type)?t+8:t+q.size}return J}; X$h=function(k,p){var t=g.Rv(k,0,1937011556),J=g.Rv(k,0,1953654136);if(!t||!J||k.getUint32(t.offset+12)>=2)return null;var q=new DataView(p.buffer,p.byteOffset,p.length),F=g.Rv(q,0,1937011556);if(!F)return null;p=q.getUint32(F.dataOffset+8);J=q.getUint32(F.dataOffset+12);if(J!==1701733217&&J!==1701733238)return null;J=new WO6(k.byteLength+p);wC(J,k,0,t.offset+12);J.data.setInt32(J.offset,2);J.offset+=4;wC(J,k,t.offset+16,t.size-16);wC(J,q,q.byteOffset+F.dataOffset+8,p);wC(J,k,t.offset+t.size,k.byteLength- (t.offset+t.size));t=g.Z([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(q=t.next();!q.done;q=t.next())q=g.Rv(k,0,q.value),J.data.setUint32(q.offset,q.size+p);k=g.Rv(J.data,0,1953654136);J.data.setUint32(k.offset+16,2);return J.data}; RiM=function(k){var p=g.Rv(k,0,1937011556);if(!p)return null;var t=k.getUint32(p.dataOffset+12);if(t!==1701733217&&t!==1701733238)return null;p=e8(k,p.offset+24+(t===1701733217?28:78),1936289382);if(!p)return null;t=e8(k,p.offset+8,1935894637);if(!t||k.getUint32(t.offset+12)!==1667392371)return null;p=e8(k,p.offset+8,1935894633);if(!p)return null;p=e8(k,p.offset+8,1952804451);if(!p)return null;t=new Uint8Array(16);for(var J=0;J<16;J++)t[J]=k.getInt8(p.offset+16+J);return t}; j8=function(k,p){this.T=k;this.pos=0;this.start=p||0}; O1=function(k){return k.pos>=k.T.byteLength}; p5=function(k,p,t){var J=new j8(t);if(!KD(J,k))return!1;J=HE(J);if(!xw(J,p))return!1;for(k=0;p;)p>>>=8,k++;p=J.start+J.pos;var q=k6(J,!0);J=k+(J.start+J.pos-p)+q;J=J>9?B2i(J-9,8):B2i(J-2,1);k=p-k;t.setUint8(k++,236);for(p=0;p<J.length;p++)t.setUint8(k++,J[p]);return!0}; zii=function(k){var p=new j8(k);p.Tv();if(KD(p,[408125543,374648427,174,224]))p=HE(p);else return null;for(var t=k=null;!O1(p);){var J=k6(p,!1);if(J===21432)switch(t_(p)){default:k=0;break;case 1:k=1;break;case 3:k=2;break;case 15:k=255}else J===30320?t=HE(p):J_(p)}if(!t)return null;for(var q,F=J=p=null;!O1(t);)switch(k6(t,!1)){case 30321:if(t_(t)!==3)return null;break;case 30324:p=o4(t);break;case 30323:F=o4(t);break;case 30325:J=o4(t);break;case 30322:q=k6(t,!0);q=qr(t,q);q=new DataView(q.buffer, q.byteOffset,q.byteLength);break;default:J_(t)}return q?new w$L(k,p,F,J,q):null}; HE=function(k){var p=k6(k,!0),t=k.T.byteOffset+k.pos;t=new DataView(k.T.buffer,t,Math.min(p,k.T.buffer.byteLength-t));t=new j8(t,k.start+k.pos);k.pos+=p;return t}; t_=function(k){for(var p=k6(k,!0),t=FH(k),J=1;J<p;J++)t=t*256+FH(k);return t}; o4=function(k){var p=k6(k,!0),t=0;p===4?t=k.T.getFloat32(k.pos):p===8&&(t=k.T.getFloat64(k.pos));k.pos+=p;return t}; eiS=function(k){var p=k6(k,!0);return Ac(qr(k,p))}; FH=function(k){return k.T.getUint8(k.pos++)}; k6=function(k,p){var t=FH(k);if(t===1){for(p=t=0;p<7;p++)t=t*256+FH(k);return t}for(var J=128,q=0;q<6&&J>t;q++)t=t*256+FH(k),J*=128;return p?t-J:t}; J_=function(k){var p=k6(k,!0);k.pos+=p}; hiT=function(k){if(!xw(k,440786851,!0))return null;var p=k.pos;k6(k,!1);var t=k6(k,!0)+k.pos-p;k.pos=p+t;if(!xw(k,408125543,!1))return null;k6(k,!0);if(!xw(k,357149030,!0))return null;var J=k.pos;k6(k,!1);var q=k6(k,!0)+k.pos-J;k.pos=J+q;if(!xw(k,374648427,!0))return null;var F=k.pos;k6(k,!1);var d=k6(k,!0)+k.pos-F,S=new Uint8Array(t+12+q+d),U=new DataView(S.buffer);S.set(new Uint8Array(k.T.buffer,k.T.byteOffset+p,t));U.setUint32(t,408125543);U.setUint32(t+4,33554431);U.setUint32(t+8,4294967295); S.set(new Uint8Array(k.T.buffer,k.T.byteOffset+J,q),t+12);S.set(new Uint8Array(k.T.buffer,k.T.byteOffset+F,d),t+12+q);return S}; $6=function(k){var p=k.pos;k.pos=0;var t=1E6;KD(k,[408125543,357149030,2807729])&&(t=t_(k));k.pos=p;return t}; alq=function(k,p){var t=k.pos;k.pos=0;if(k.T.getUint8(k.pos)!==160&&!dj(k)||!xw(k,160))return k.pos=t,NaN;k6(k,!0);var J=k.pos;if(!xw(k,161))return k.pos=t,NaN;k6(k,!0);FH(k);var q=FH(k)<<8|FH(k);k.pos=J;if(!xw(k,155))return k.pos=t,NaN;J=t_(k);k.pos=t;return(q+J)*p/1E9}; dj=function(k){if(!Mmi(k)||!xw(k,524531317))return!1;k6(k,!0);return!0}; Mmi=function(k){if(k.Tv()){if(!xw(k,408125543))return!1;k6(k,!0)}return!0}; KD=function(k,p){for(var t=0;t<p.length;t++){if(!xw(k,p[t]))return!1;t!==p.length-1&&k6(k,!0)}return!0}; xw=function(k,p,t){t=t===void 0?!1:t;if(O1(k))return!1;for(var J=k.pos;k6(k,!1)!==p;)if(J_(k),J=k.pos,O1(k))return!1;t&&(k.pos=J);return!0}; B2i=function(k,p){p||(p=Math.ceil(Math.log(k+2)/Math.log(2)/7));for(var t=1<<8-p,J=[];J.length<p-1;)J.unshift(k%256),k=Math.floor(k/256);J.unshift(k|t);return J}; qr=function(k,p){var t=new Uint8Array(k.T.buffer,k.T.byteOffset+k.pos,p);k.pos+=p;return t}; Et=function(k){this.Bj=k;this.T={};this.url=""}; ggu=function(k,p){var t=p.indexOf("?");if(t>0){var J=T2T(p.substring(t+1));g.ZV(J,function(q,F){this.set(F,q)},k); p=p.substring(0,t)}p=YD9(p);g.ZV(p,function(q,F){this.set(F,q)},k)}; u5S=function(k){var p=k.Bj.b1(),t=[];g.ZV(k.T,function(q,F){t.push(F+"="+q)}); if(!t.length)return p;var J=t.join("&");k=yDS(k.Bj)?"&":"?";return p+k+J}; Sd=function(k,p){var t=new g.yb(p);(p=t.get("req_id"))&&k.set("req_id",p);g.ZV(k.T,function(J,q){t.set(q,null)}); return t}; llT=function(){this.C=this.Y=this.T=this.timedOut=this.started=this.X=this.N=0}; Ut=function(k){k.X=(0,g.V9)();k.started=0;k.timedOut=0;k.T=0}; f5=function(k,p){var t=k.started+k.T*4;p&&(t+=k.Y);t=Math.max(0,t-3);return Math.pow(1.6,t)}; bi=function(k,p){k[p]||(k[p]=new llT);return k[p]}; Nr=function(k){this.L=this.Z=this.X=this.Y=0;this.B=this.S=!1;this.T=k;this.N=k.clone()}; jeq=function(k,p,t){if(rC(k.T))return!1;var J=bi(t,TY(k.T));if(J.timedOut<1&&J.T<1)return!1;J=J.timedOut+J.T;k=yd(k,p);t=bi(t,TY(k));return t.timedOut+t.T+0<J}; Y6=function(k,p,t){k=p?yd(k,t):k.T;return new Et(k)}; yd=function(k,p){p=p?p.zv:!1;k.C||(k.C=CD(k.N,p));return k.C}; Tb=function(k,p,t){return TY(p?yd(k,t):k.T)}; rj=function(k,p,t,J){p.q_&&(J===void 0?0:J)>1?p=p.q_:(t=bi(t,Tb(k,k.rA(p,t),p)),p=Math.max(k.X,t.timedOut)+p.X$*(k.Y-k.X)+.25*k.Z,p=p>3?1E3*Math.pow(1.6,p-3):0);return p===0?!0:k.L+p<(0,g.V9)()}; OC6=function(k,p,t){k.T.set(p,t);k.N.set(p,t);k.C&&k.C.set(p,t)}; KO9=function(k,p,t,J,q){++k.Y;p&&++k.X;TY(t.Bj).startsWith("redirector.")&&(k.T=k.N.clone(),delete k.C,J.QH&&delete q[TY(k.T)])}; ZC=function(k){return k?(k.itag||"")+";"+(k.lmt||0)+";"+(k.xtags||""):""}; C5=function(k,p,t,J){this.initRange=t;this.indexRange=J;this.T=null;this.N=!1;this.S=0;this.C=this.X8=this.Y=null;this.info=p;this.oO=new Nr(k)}; A_=function(k,p){this.start=k;this.end=p;this.length=p-k+1}; mU=function(k){k=k.split("-");var p=Number(k[0]),t=Number(k[1]);if(!isNaN(p)&&!isNaN(t)&&k.length===2&&(k=new A_(p,t),!isNaN(k.start)&&!isNaN(k.end)&&!isNaN(k.length)&&k.length>0))return k}; Vd=function(k,p){return new A_(k,k+p-1)}; HCh=function(k){return k.end==null?{start:String(k.start)}:{start:String(k.start),end:String(k.end)}}; Wk=function(k){if(!k)return new A_(0,0);var p=Number(k.start);k=Number(k.end);if(!isNaN(p)&&!isNaN(k)&&(p=new A_(p,k),p.length>0))return p}; DC=function(k,p,t,J,q,F,d,S,U,f,b,N){J=J===void 0?"":J;this.type=k;this.T=p;this.range=t;this.source=J;this.aq=b;this.clipId=N===void 0?"":N;this.Z=[];this.X="";this.x8=-1;this.B=this.L=0;this.X=J;this.x8=q>=0?q:-1;this.startTime=F||0;this.duration=d||0;this.Y=S||0;this.N=U>=0?U:this.range?this.range.length:NaN;this.C=this.range?this.Y+this.N===this.range.length:f===void 0?!!this.N:f;this.range?(this.M2=this.startTime+this.duration*this.Y/this.range.length,this.S=this.duration*this.N/this.range.length, this.m_=this.M2+this.S):xzT(this)}; xzT=function(k){k.M2=k.startTime;k.S=k.duration;k.m_=k.M2+k.S}; k0i=function(k,p,t){var J=!(!p||p.T!==k.T||p.type!==k.type||p.x8!==k.x8);return t?J&&!!p&&(k.range&&p.range?p.range.end===k.range.end:p.range===k.range)&&p.Y+p.N===k.Y+k.N:J}; L5=function(k){return k.type===1||k.type===2}; vk=function(k){return k.type===3||k.type===6}; ck=function(k,p){return k.T===p.T?k.range&&p.range?k.range.start+k.Y+k.N===p.range.start+p.Y:k.x8===p.x8?k.Y+k.N===p.Y:k.x8+1===p.x8&&p.Y===0&&k.C:!1}; t6i=function(k,p){return k.x8!==p.x8&&p.x8!==k.x8+1||k.type!==p.type?!1:ck(k,p)?!0:Math.abs(k.M2-p.M2)<=1E-6&&k.x8===p.x8?!1:po_(k,p)}; po_=function(k,p){return ck(k,p)||Math.abs(k.m_-p.M2)<=1E-6||k.x8+1===p.x8&&p.Y===0&&k.C?!0:!1}; n5=function(k){return k.x8+(k.C?1:0)}; JNq=function(k){k.length===1||g.sQ(k,function(t){return!!t.range}); for(var p=1;p<k.length;p++);p=k[k.length-1];return new A_(k[0].range.start+k[0].Y,p.range.start+p.Y+p.N-1)}; oSe=function(k){for(var p=1;p<k.length;p++)if(!ck(k[p-1],k[p]))return!1;return!0}; qI0=function(k){var p=0;k=g.Z(k);for(var t=k.next();!t.done;t=k.next())p+=t.value.range.length;return p}; wj=function(k){var p={};p.itag=k.T.info.itag;p.type=""+k.type;p.src=""+k.source;p.segsrc=k.X;p.seg=String(k.x8);k.range&&(p.range=k.range.start+k.Y+"-"+(k.range.start+k.Y+k.N-1));p.time=k.M2.toFixed(1)+"-"+(k.M2+k.S).toFixed(1);p.off=String(k.Y);p.len=String(k.N);k.C&&(p.end="1");k.ZM()&&(p.eos="1");k.clipId&&(p.cid=k.clipId);return p}; Fr6=function(k){return new DC(k.type,k.T,k.range,"getEmptyStubBefore"+k.X,k.x8,k.startTime,0,k.Y,0)}; $iq=function(k){return new DC(k.type,k.T,k.range,"getEmptyStubAfter"+k.X,k.x8,k.startTime+k.duration,0,k.Y+k.N,0)}; diM=function(k,p,t,J){return new DC(k.type,k.T,k.range,"reslice"+k.X,k.x8,k.startTime,k.duration,p,t,J,k.aq,k.clipId)}; ESi=function(k,p){return k.T!==p.T?!1:k.range&&p.range?k.range.start+k.Y>=p.range.start+p.Y&&k.range.start+k.Y+k.N<=p.range.start+p.Y+p.N:k.x8===p.x8&&k.Y>=p.Y&&(k.Y+k.N<=p.Y+p.N||p.C)}; SI9=function(k,p){return k.T!==p.T?!1:k.type===4&&p.type===3&&k.T.Ox()?(k=k.T.y6(k),cC(k,function(t){return SI9(t,p)})):k.x8===p.x8&&!!p.N&&p.Y+p.N>k.Y&&p.Y+p.N<=k.Y+k.N}; ii=function(k,p){var t=p.x8;k.X="updateWithSegmentInfo";k.x8=t;if(k.startTime!==p.startTime||k.duration!==p.duration)k.startTime=p.startTime+k.L,k.duration=p.duration,xzT(k)}; Qd=function(k,p){var t=this;this.aY=k;this.C=this.T=null;this.X=this.PN=NaN;this.rA=this.requestId=null;this.u3={aXY:function(){return t.range}}; this.oO=k[0].T.oO;this.Y=p||"";this.aY[0].range&&this.aY[0].N>0&&(oSe(k)?(this.range=JNq(k),this.N=this.range.length):(this.range=this.aY[this.aY.length-1].range,this.N=qI0(k)))}; Pk=function(k){return!L5(k.aY[k.aY.length-1])}; Gb=function(k){return k.aY[k.aY.length-1].type===4}; g.I4=function(k,p,t){t=k.rA===null?k.oO.rA(p,t,k.aY[0].type):k.rA;if(k.T){p=t?CD(k.T,p.zv):k.T;var J=new Et(p);J.get("alr")||J.set("alr","yes");k.Y&&ggu(J,k.Y)}else/http[s]?:\/\//.test(k.Y)?J=new Et(new g.yb(k.Y)):(J=Y6(k.oO,t,p),k.Y&&ggu(J,k.Y));(p=k.range)?J.set("range",p.toString()):k.aY[0].T.sC()&&k.aY.length===1&&k.aY[0].Y&&J.set("range",k.aY[0].Y+"-");k.requestId&&J.set("req_id",k.requestId);isNaN(k.PN)||J.set("headm",k.PN.toString());isNaN(k.X)||J.set("mffa",k.X+"ms");k.urlParams&&g.ZV(k.urlParams, function(q,F){J.set(F,q)}); return J}; Ui0=function(k){if(k.range)return k.N;k=k.aY[0];return Math.round(k.S*k.T.info.Lp)}; fEj=function(k,p){return Math.max(0,k.aY[0].M2-p)}; XH=function(k,p,t,J,q,F){F=F===void 0?0:F;C5.call(this,k,p,J,void 0);this.X=t;this.JM=F;this.index=q||new g.Vb}; br6=function(k,p,t,J,q){this.x8=k;this.startSecs=p;this.NR=t;this.T=J||NaN;this.Y=q||NaN}; R4=function(k,p,t){for(;k;k=k.parentNode)if(k.attributes&&(!t||k.nodeName===t)){var J=k.getAttribute(p);if(J)return J}return""}; Bk=function(k,p){for(;k;k=k.parentNode){var t=k.getElementsByTagName(p);if(t.length>0)return t[0]}return null}; N0j=function(k){if(!k)return 0;var p=k.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return p?(Number(p[2])|0)*3600+(Number(p[4])|0)*60+(Number(p[6])|0):Number(k)|0}; yNM=function(k){return k.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?k+"Z":k}; zb=function(){this.T=[];this.Y=null;this.S=0;this.N=[];this.X=!1;this.Z="";this.C=-1}; YIu=function(k){var p=k.N;k.N=[];return p}; T0M=function(){this.C=[];this.T=null;this.Y={};this.N={}}; ANi=function(k,p){var t=[];p=Array.from(p.getElementsByTagName("SegmentTimeline"));p=g.Z(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;var q=J.parentNode.parentNode,F=null;q.nodeName==="Period"?F=rNq(k):q.nodeName==="AdaptationSet"?(q=q.getAttribute("id")||q.getAttribute("mimetype")||"",F=Zrj(k,q)):q.nodeName==="Representation"&&(q=q.getAttribute("id")||"",F=CV9(k,q));if(F==null)return;F.update(J);g.oT(t,YIu(F))}g.oT(k.C,t);pW6(k.C,function(d){return d.startSecs*1E3+d.T})}; miu=function(k){k.T&&(k.T.T=[]);g.ZV(k.Y,function(p){p.T=[]}); g.ZV(k.N,function(p){p.T=[]})}; rNq=function(k){k.T||(k.T=new zb);return k.T}; Zrj=function(k,p){k.Y[p]||(k.Y[p]=new zb);return k.Y[p]}; CV9=function(k,p){k.N[p]||(k.N[p]=new zb);return k.N[p]}; h_=function(k){var p=k===void 0?{}:k;k=p.JM===void 0?0:p.JM;var t=p.D0===void 0?!1:p.D0;var J=p.VK===void 0?0:p.VK;var q=p.P3===void 0?0:p.P3;var F=p.Pj===void 0?Infinity:p.Pj;var d=p.P4===void 0?0:p.P4;var S=p.FA===void 0?!1:p.FA;p=p.Ho===void 0?!1:p.Ho;g.Vb.call(this);this.zd=this.R7=-1;this.Rx=k;this.VK=J;this.D0=t;this.P3=q;this.Pj=F;this.P4=d;((this.FA=S)||isFinite(F)&&this.Pj>0)&&t&&ed&&(this.Y=!1,this.N="postLive");this.Ho=p}; a4=function(k,p){return E$(k.segments,function(t){return p-t.x8})}; Mr=function(k,p,t){t=t===void 0?{}:t;XH.call(this,k,p,"",void 0,void 0,t.JM||0);this.index=new h_(t)}; gj=function(k,p,t){C5.call(this,k,p);this.X=t;k=this.index=new g.Vb;k.Y=!1;k.N="d"}; V6T=function(k,p,t){var J=k.index.Np(p),q=k.index.getStartTime(p),F=k.index.getDuration(p);t?F=t=0:t=k.info.Lp*F;return new Qd([new DC(3,k,void 0,"otfCreateRequestInfoForSegment",p,q,F,0,t)],J)}; Wre=function(k,p){if(!k.index.isLoaded()){var t=[],J=p.C;p=p.X.split(",").filter(function(b){return b.length>0}); for(var q=0,F=0,d=0,S=/^(\d+)/,U=/r=(\d+)/,f=0;f<J;f++){if(d<=0)if(d=p.shift(),F=(F=S.exec(d))?+F[1]/1E3:0)d=(d=U.exec(d))?+d[1]:0,d+=1;else return;t.push(new mN(f,q,F,NaN,"sq/"+(f+1)));q+=F;d--}k.index.append(t)}}; ui=function(k,p){this.info=k;this.T=p;this.Y=null;this.C=this.N=-1;this.timestampOffset=0;this.isLocked=this.S=!1;this.X=this.info.T.Jw()&&!this.info.Y}; Diq=function(k,p){k.T.getLength();p=Math.min(p,k.info.N);var t=k.T.split(p),J=t.EU;t=new ui(new DC(k.info.type,k.info.T,k.info.range,k.info.X,k.info.x8,k.info.startTime,k.info.duration,k.info.Y,p,!1,k.info.aq,k.info.clipId),t.lZ);t.C=k.C;t.N=k.N;p=new ui(new DC(k.info.type,k.info.T,k.info.range,k.info.X,k.info.x8,k.info.startTime,k.info.duration,k.info.Y+p,k.info.N-p,k.info.C,k.info.aq,k.info.clipId),J);p.C=k.C;p.N=k.N;return[t,p]}; g.li=function(k,p,t){var J;if(!(J=k.isLocked||p.isLocked||!ck(k.info,p.info)||k.info.C)){if(t=t===void 0?!1:t)t=k.T,J=p.T,t=!(J.sx.length?R20(t,J.sx[0]):1);J=t}if(J)return null;t=new DC(k.info.type,k.info.T,k.info.range,k.info.X,k.info.x8,k.info.startTime,k.info.duration,k.info.Y,k.info.N,k.info.C,k.info.aq,k.info.clipId);J=p.info;t.N+=J.N;t.range&&(t.S+=J.S);t.m_=J.m_;t.C=J.C;J=new NP;yV(J,k.T);yV(J,p.T);t=new ui(t,J);t.Y=p.Y||k.Y;t.N=k.N!==-1?k.N:p.N;t.C=k.C!==-1?k.C:p.C;return t}; g.jd=function(k){g.g2(k.info.T.info)||k.info.T.info.rI();if(k.N!==-1)return k.N;if(k.Y&&LOM(k.Y))return k.N=LOM(k.Y),k.N;if(g.g2(k.info.T.info)){var p=k.EX();for(var t=k.info.T.T,J=NaN,q=NaN,F=0;h6(p,F);){var d=av(p,F);d.type===1936286840?q=d.data.getUint32(d.dataOffset+8):d.type===1836476516?q=g.BE(d):d.type===1952867444&&isNaN(J)&&(J=g.gC(d));F=MB(d.type)?F+8:F+d.size}!q&&t&&(q=zY(t));p=J/q}else p=new j8(k.EX()),t=k.X?p:new j8(new DataView(k.info.T.T.buffer)),J=$6(t),t=p.pos,p.pos=0,dj(p)?xw(p, 231)?(J=t_(p)*J/1E9,p.pos=t,p=J):(p.pos=t,p=NaN):(p.pos=t,p=NaN);k.N=p||k.info.M2;return k.N}; Lru=function(k,p){k.timestampOffset>0&&(p-=k.timestampOffset);var t=g.jd(k)+p;sUj(k,t);k.timestampOffset=p}; sUj=function(k,p){g.g2(k.info.T.info)||k.info.T.info.rI();k.N=p;if(g.g2(k.info.T.info)){var t=k.EX();k=k.info.T.T;for(var J=NaN,q=NaN,F=0;h6(t,F);){var d=av(t,F);isNaN(J)&&(d.type===1936286840?J=d.data.getUint32(d.dataOffset+8):d.type===1836476516&&(J=g.BE(d)));if(d.type===1952867444){!J&&k&&(J=zY(k));var S=g.gC(d);isNaN(q)&&(q=Math.round(p*J)-S);var U=d;S+=q;if(U.data.getUint8(U.dataOffset)){var f=U.data;U=U.dataOffset+4;f.setUint32(U,Math.floor(S/4294967296));f.setUint32(U+4,S&4294967295)}else U.data.setUint32(U.dataOffset+ 4,S)}F=MB(d.type)?F+8:F+d.size}return!0}t=new j8(k.EX());k=k.X?t:new j8(new DataView(k.info.T.T.buffer));J=$6(k);k=t.pos;t.pos=0;if(dj(t)&&xw(t,231))if(q=k6(t,!0),p=Math.floor(p*1E9/J),Math.ceil(Math.log(p)/Math.log(2)/8)>q)p=!1;else{for(J=q-1;J>=0;J--)t.T.setUint8(t.pos+J,p&255),p>>>=8;t.pos=k;p=!0}else p=!1;return p}; K5=function(k,p){p=p===void 0?!1:p;var t=Ot(k);k=p?0:k.info.S;return t||k}; Ot=function(k){g.g2(k.info.T.info)||k.info.T.info.rI();if(k.Y&&k.info.type===6)return k.Y.JM;if(g.g2(k.info.T.info)){var p=k.EX();var t=0;p=g.lf(p,1936286840);p=g.Z(p);for(var J=p.next();!J.done;J=p.next())J=PGq(J.value),t+=J.zG[0]/J.timescale;t=t||NaN;if(!(t>=0))a:{t=k.EX();p=k.info.T.T;for(var q=J=0,F=0;h6(t,J);){var d=av(t,J);if(d.type===1836476516)q=g.BE(d);else if(d.type===1836019558){!q&&p&&(q=zY(p));if(!q){t=NaN;break a}var S=e8(d.data,d.dataOffset,1953653094),U=S;S=q;var f=e8(U.data,U.dataOffset, 1952868452);U=e8(U.data,U.dataOffset,1953658222);var b=LD(f);LD(f);b&2&&LD(f);f=b&8?LD(f):0;var N=LD(U),y=N&1;b=N&4;var Y=N&256,T=N&512,A=N&1024;N&=2048;var V=vE(U);y&&LD(U);b&&LD(U);for(var D=y=0;D<V;D++){var v=Y?LD(U):f;T&&LD(U);b&&D===0||!A||LD(U);N&&LD(U);y+=v}F+=y/S}J=MB(d.type)?J+8:J+d.size}t=F||NaN}t||g.wt(new g.hm("Missing duration while parsing bmff",k.info.Aj()))}else t=new j8(k.EX()),k=k.X?t:new j8(new DataView(k.info.T.T.buffer)),t=alq(t,$6(k));return t}; g.vSS=function(k){if(k.info.T.a9())return k.info.duration;k.C===-1&&(k.C=Ot(k));return k.C||k.info.duration}; cNL=function(k){var p=k.EX();var t=(t=g.Rv(p,0,1936286840))?t.data.getUint32(t.dataOffset+8):NaN;isNaN(t)&&(k=k.info.T.T,t=(p=g.Rv(p,0,1836476516))?g.BE(p):k?zY(k):NaN);return t}; nST=function(k){return k.info.T.info.rI()&&k.T.getUint8(0)===160}; woT=function(k){if(!k.Y){g.g2(k.info.T.info)||k.info.T.info.rI();if(g.g2(k.info.T.info))var p=g.Ili(k.EX());else{p=new j8(k.EX());var t=p.pos;p.pos=0;var J=null,q=null;if(KD(p,[408125543,307544935]))for(var F=p.pos+k6(p,!0);p.pos<F;)if(k6(p,!1)!==29555)J_(p);else for(var d=p.pos+k6(p,!0);p.pos<d;)if(k6(p,!1)!==26568)J_(p);else for(var S=p.pos+k6(p,!0);p.pos<S;){var U=k6(p,!1);if(U===17543){if(U=eiS(p),U=Xk(U))if(q)for(var f=g.Z(Object.keys(U)),b=f.next();!b.done;b=f.next())b=b.value,q[b]=U[b];else q= U}else U===17827?(U=eiS(p),J||(J=U)):J_(p)}p.pos=t;p=q?new GY(q,J):null}k.Y=p}}; irM=function(k){if(g.g2(k.info.T.info))uf(k.EX(),1836019574),uf(k.EX(),1718909296);else{var p=new j8(k.EX());Mmi(p);xw(p,524531317,!0);k.T=k.T.split(p.start+p.pos).EU}k.X=!1}; Hk=function(k){if(!k.S){if(g.g2(k.info.T.info)){var p=k.EX();var t=e8(p,0,1836019574);if(t){t=t.offset+t.size;var J=new Uint8Array(t);J.set(new Uint8Array(p.buffer,p.byteOffset,t));p=J}else p=null}else p=hiT(new j8(k.EX()));p&&(k.info.T.T=p,k.S=!0)}}; g.x6=function(){this.count=0;this.T=1;this.Y=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}; QU9=function(k,p){return p+1<k.count||k.Y?k.offsets[p+1]-k.offsets[p]:-1}; km=function(k){k.offsets.length<k.count+1&&k.resize(k.offsets.length*2)}; pR=function(k,p,t,J){C5.call(this,k,p,t,J);var q=this;this.X=null;this.u3={nu:function(F,d,S,U){return q.nu(F,d,S,U)}}; this.index=new g.x6}; PV0=function(k,p,t,J,q,F){this.displayName=k;this.vssId=p;this.languageCode=t;this.kind=J===void 0?"":J;this.xtags=q===void 0?"":q;this.id=F===void 0?"":F}; IE6=function(k){if(k=k.colorInfo)if(k=k.transferCharacteristics)return G0i[k];return null}; g.th=function(k,p,t){this.name=k;this.id=p;this.isDefault=t}; XoL=function(k){return Jh(function(p,t){return g.sG(p,t,4,1E3)},k,{format:"RAW", method:"GET",withCredentials:!0})}; g.R4_=function(k){var p;k.responseType&&k.responseType!=="text"?k.responseType==="arraybuffer"&&(p=Ac(new Uint8Array(k.response))):p=k.responseText;return!p||p.length>2048?"":p.indexOf("https://")===0?p:""}; Jh=function(k,p,t){p.match(B0i);return k(p,t).then(function(J){var q=g.R4_(J.xhr);return q?Jh(k,q,t):J.xhr})}; $m=function(k,p,t){k=k===void 0?"":k;p=p===void 0?null:p;t=t===void 0?!1:t;g.o$.call(this);var J=this;this.sourceUrl=k;this.isLivePlayback=t;this.k8=this.duration=0;this.isPremiere=this.FA=this.C=this.isLiveHeadPlayable=this.isLive=this.Y=!1;this.Pj=this.P3=0;this.isOtf=this.m2=!1;this.IY=(0,g.V9)();this.gy=Infinity;this.T={};this.N=new Map;this.state=this.Zb=0;this.timeline=null;this.isManifestless=!1;this.NO=[];this.S=null;this.P0=0;this.X="";this.j6=NaN;this.qO=this.aO=this.timestampOffset=this.Z= 0;this.N_=this.LA=NaN;this.jW=0;this.W0=this.L=!1;this.Oy=[];this.RY={};this.Y8=NaN;this.u3={PBS:function(S){os(J,S)}}; var q;this.v0=(q=p)==null?void 0:q.Gb("html5_use_network_error_code_enums");z40=!!p&&p.Gb("html5_modern_vp9_mime_type");var F;qY=!((F=p)==null||!F.Gb("html5_enable_flush_during_seek"))&&g.zQ();var d;FR=!((d=p)==null||!d.Gb("html5_enable_reset_audio_decoder"))&&g.zQ()}; e40=function(k){return g.mc(k.T,function(p){return!!p.info.video&&p.info.video.T>=2160})}; SDj=function(k){return g.mc(k.T,function(p){return!!p.info.video&&p.info.video.isHdr()})}; dC=function(k){return g.mc(k.T,function(p){return!!p.info.xf})}; g.h4i=function(k){return g.mc(k.T,function(p){return KC(p.info.mimeType)})}; aE0=function(k){return g.mc(k.T,function(p){return p.info.video?p.info.video.projectionType==="EQUIRECTANGULAR":!1})}; M6M=function(k){return g.mc(k.T,function(p){return p.info.video?p.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; gS0=function(k){return g.mc(k.T,function(p){return p.info.video?p.info.video.projectionType==="MESH":!1})}; uNL=function(k){return g.mc(k.T,function(p){return p.info.video?p.info.video.stereoLayout===1:!1})}; lEL=function(k){return Mtu(k.T,function(p){return p.info.video?p.Q0():!0})}; qB=function(k){return g.mc(k.T,function(p){return rC(p.oO.T)})}; os=function(k,p){k.T[p.info.id]=p;k.N.set(ZC(g.lG(p.info,k.m2)),p)}; jUM=function(k,p){return ZC({itag:p.itag,lmt:k.m2?0:p.lmt||0,xtags:p.xtags})}; S1=function(k,p,t){t=t===void 0?0:t;var J=k.mimeType||"",q=k.itag;var F=k.xtags;q=q?q.toString():"";F&&(q+=";"+F);F=q;if(OD(J)){var d=k.width||640;q=k.height||360;var S=k.fps,U=k.qualityLabel,f=k.colorInfo,b=k.projectionType,N;k.stereoLayout&&(N=Orq[k.stereoLayout]);var y=IE6(k)||void 0;if(f==null?0:f.primaries)var Y=KrL[f.primaries]||void 0;d=new P$(d,q,S,b,N,void 0,U,y,Y);J=di(J,d,X5[k.itag||""]);qY&&(J+="; enableflushduringseek=true");FR&&(J+="; enableresetaudiodecoder=true")}var T;if(jm(J)){var A= k.audioSampleRate;N=k.audioTrack;A=new w2(A?+A:void 0,k.audioChannels,k.spatialAudioType,k.isDrc,k.loudnessDb,k.trackAbsoluteLoudnessLkfs,k.audioQuality||"AUDIO_QUALITY_UNKNOWN");N&&(Y=N.displayName,q=N.id,N=N.audioIsDefault,Y&&(T=new g.th(Y,q||"",!!N)))}var V;k.captionTrack&&(U=k.captionTrack,N=U.displayName,Y=U.vssId,q=U.languageCode,S=U.kind,U=U.id,N&&Y&&q&&(V=new PV0(N,Y,q,S,k.xtags,U)));N=Number(k.bitrate)/8;Y=Number(k.contentLength);q=Number(k.lastModified);U=k.drmFamilies;S=k.type;t=t&&Y?Y/ t:0;k=Number(k.approxDurationMs);if(p&&U){var D={};U=g.Z(U);for(f=U.next();!f.done;f=U.next())(f=Em[f.value])&&(D[f]=p[f])}return new Re(F,J,{audio:A,video:d,ws:T,xf:D,Lp:N,El:t,contentLength:Y,lastModified:q,captionTrack:V,streamType:S,approxDurationMs:k})}; Um=function(k,p,t){t=t===void 0?0:t;var J=k.type;var q=k.itag;var F=k.xtags;F&&(q=k.itag+";"+F);if(OD(J)){var d=(k.size||"640x360").split("x");d=new P$(+d[0],+d[1],+k.fps,k.projection_type,+k.stereo_layout,void 0,k.quality_label,k.eotf,k.primaries);J=di(J,d,X5[k.itag]);qY&&(J+="; enableflushduringseek=true");FR&&(J+="; enableresetaudiodecoder=true")}var S;if(jm(J)){var U=new w2(+k.audio_sample_rate||void 0,+k.audio_channels||0,k.spatial_audio_type,!!k.drc);k.name&&(S=new g.th(k.name,k.audio_track_id, k.isDefault==="1"))}var f;k.caption_display_name&&k.caption_vss_id&&k.caption_language_code&&(f=new PV0(k.caption_display_name,k.caption_vss_id,k.caption_language_code,k.caption_kind,k.xtags,k.caption_id));F=Number(k.bitrate)/8;var b=Number(k.clen),N=Number(k.lmt);t=t&&b?b/t:0;if(p&&k.drm_families){var y={};for(var Y=g.Z(k.drm_families.split(",")),T=Y.next();!T.done;T=Y.next())T=T.value,y[T]=p[T]}return new Re(q,J,{audio:U,video:d,ws:S,xf:y,Lp:F,El:t,contentLength:b,lastModified:N,captionTrack:f, streamType:k.stream_type,approxDurationMs:Number(k.approx_duration_ms)})}; Hri=function(k){return cC(k,function(p){return"FORMAT_STREAM_TYPE_OTF"===p.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; xi6=function(k){return cC(k,function(p){return"FORMAT_STREAM_TYPE_OTF"===p.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; k1w=function(k,p){return k.timeline?qW(k.timeline.C,p):k.NO.length?qW(k.NO,p):[]}; fR=function(k,p,t){p=p===void 0?"":p;t=t===void 0?"":t;k=new g.yb(k,!0);k.set("alr","yes");t&&(t=ik9(decodeURIComponent(t)),k.set(p,encodeURIComponent(t)));return k}; orT=function(k,p){var t=R4(p,"id");t=t.replace(":",";");var J=R4(p,"mimeType"),q=R4(p,"codecs");J=q?J+'; codecs="'+q+'"':J;q=Number(R4(p,"bandwidth"))/8;var F=Number(Bk(p,"BaseURL").getAttribute(k.X+":contentLength")),d=k.duration&&F?F/k.duration:0;if(OD(J)){var S=Number(R4(p,"width"));var U=Number(R4(p,"height")),f=Number(R4(p,"frameRate")),b=p66(R4(p,k.X+":projectionType"));a:switch(R4(p,k.X+":stereoLayout")){case "layout_left_right":var N=1;break a;case "layout_top_bottom":N=2;break a;default:N= 0}S=new P$(S,U,f,b,N)}if(jm(J)){var y=Number(R4(p,"audioSamplingRate"));var Y=Number(R4(p.getElementsByTagName("AudioChannelConfiguration")[0],"value"));U=t_e(R4(p,k.X+":spatialAudioType"));y=new w2(y,Y,U);a:{Y=R4(p,"lang")||"und";if(U=Bk(p,"Role"))if(b=R4(U,"value")||"",g.sk(JZT,b)){U=Y+"."+JZT[b];f=b==="main";k=R4(p,k.X+":langName")||Y+" - "+b;Y=new g.th(k,U,f);break a}Y=void 0}}if(p=Bk(p,"ContentProtection"))if(p.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var T={};for(p= p.firstChild;p!=null;p=p.nextSibling)p instanceof Element&&/SystemURL/.test(p.nodeName)&&(k=p.getAttribute("type"),U=p.textContent,k&&U&&(T[k]=U.trim()))}else T=void 0;return new Re(t,J,{audio:y,video:S,ws:Y,xf:T,Lp:q,El:d,contentLength:F})}; p66=function(k){switch(k){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"}}; t_e=function(k){switch(k){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"}}; FR_=function(k,p){p=p===void 0?"":p;k.state=1;k.IY=(0,g.V9)();return XoL(p||k.sourceUrl).then(function(t){if(!k.MO()){k.Zb=t.status;t=t.responseText;var J=new DOMParser;t=jc(J,MLL(t),"text/xml").getElementsByTagName("MPD")[0];k.gy=N0j(R4(t,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(t.attributes){J=g.Z(t.attributes);for(var q=J.next();!q.done;q=J.next())if(q=q.value,q.value==="http://youtube.com/yt/2012/10/10"){J=q.name.split(":")[1];break b}}J=""}k.X=J;k.isLive=k.gy<Infinity&&k.isLivePlayback;k.k8= Number(R4(t,k.X+":earliestMediaSequence"))||0;if(J=Date.parse(yNM(R4(t,k.X+":mpdResponseTime"))))k.P0=((0,g.V9)()-J)/1E3;k.isLive&&t.getElementsByTagName("SegmentTimeline").length<=0||g.sQ(t.getElementsByTagName("Period"),k.xhb,k);k.state=2;k.publish("loaded");qEq(k)}return k}).pU(function(t){if(t instanceof Ww){var J=t.xhr; k.Zb=J.status}k.state=3;k.publish("loaderror");return rv(J)})}; $wi=function(k,p,t){return FR_(new $m(k,p,t),k)}; b_=function(k){return k.isLive&&(0,g.V9)()-k.IY>=k.gy}; dwS=function(k){k.S&&k.S.stop()}; qEq=function(k){var p=k.gy;isFinite(p)&&(b_(k)?k.refresh():(p=Math.max(0,k.IY+p-(0,g.V9)()),k.S||(k.S=new g.jF(k.refresh,p,k),g.z(k,k.S)),k.S.start(p)))}; Erw=function(k){k=k.T;for(var p in k){var t=k[p].index;if(t.isLoaded())return t.WH()+1}return 0}; NY=function(k){return k.aO?k.aO-(k.Z||k.timestampOffset):0}; yq=function(k){return k.qO?k.qO-(k.Z||k.timestampOffset):0}; Ym=function(k){if(!isNaN(k.j6))return k.j6;var p=k.T,t;for(t in p){var J=p[t].index;if(J.isLoaded()&&!KC(p[t].info.mimeType)){p=0;for(t=J.dO();t<=J.WH();t++)p+=J.getDuration(t);p/=J.jc();p=Math.round(p/.5)*.5;J.jc()>10&&(k.j6=p);return p}if(k.isLive&&(J=p[t],J.JM))return J.JM}return NaN}; SE0=function(k,p){k=uth(k.T,function(J){return J.index.isLoaded()}); if(!k)return NaN;k=k.index;var t=k.cN(p);return k.getStartTime(t)===p?p:t<k.WH()?k.getStartTime(t+1):NaN}; UwL=function(k,p){if(!k.T["0"]){var t=new Re("0","fakesb",{video:new P$(0,0,0,void 0,void 0,"auto")});k.T["0"]=p?new XH(new g.yb("http://www.youtube.com/videoplayback"),t,"fake"):new pR(new g.yb("http://www.youtube.com/videoplayback"),t,new A_(0,0),new A_(0,0))}}; Tj=function(k){if(k.isManifestless)for(var p in k.T)k.T[p].index.segments=[]}; ri=function(k,p,t){for(var J in k.T){var q=KC(k.T[J].info.mimeType)||k.T[J].info.pZ();if(t===q&&(q=k.T[J].index)!=null){var F=a4(q,p);F>=0&&q.segments.splice(F,1)}}}; fje=function(k){for(var p in k.T)KC(k.T[p].info.mimeType)||mzL(k.T[p].index,Infinity)}; Z9=function(k,p,t){for(var J in k.T){var q=k.T[J].index,F=p,d=t;q.D0&&(F&&(q.R7=Math.max(q.R7,F)),d&&(q.zd=Math.max(q.zd||0,d)))}t&&(k.Y8=t/1E3)}; bW9=function(k){k.qO=0;k.aO=0;k.jW=0}; CR=function(k){return k.W0&&k.isManifestless?k.isLiveHeadPlayable:k.isLive}; di=function(k,p,t){Ah===null&&(Ah=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(z40&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Ah||t!=="9"&&t!=="("?Ah||t!=="9h"&&t!=="(h"||(k='video/webm; codecs="vp9.2"'):k='video/webm; codecs="vp9"',k;if(!Ah&&!m2||k!=='video/webm; codecs="vp9"'&&k!=='video/webm; codecs="vp9.2"')return k; t="00";var J="08",q="01",F="01",d="01";k==='video/webm; codecs="vp9.2"'&&(t="02",J="10",p.primaries==="bt2020"&&(d=q="09"),p.Y==="smpte2084"&&(F="16"),p.Y==="arib-std-b67"&&(F="18"));return'video/webm; codecs="'+["vp09",t,"51",J,"01",q,F,d,"00"].join(".")+'"'}; WL=function(k,p,t){k=""+k+(p>49?"p60":p>32?"p48":"");p=Qp()[k];if(p!=null&&p>0)return p;p=Vq.get(k);if(p!=null&&p>0)return p;t=t==null?void 0:t.get(k);return t!=null&&t>0?t:8192}; NmS=function(k){this.Cp=k;this.yn=this.qQ=this.qO=this.X=this.C=this.pp=this.W0=this.Y8=!1;this.Z=this.S=0;this.B0=!1;this.NO=!0;this.v0=!1;this.Ok=0;this.Hu=this.j6=!1;this.jW=!0;this.IY=this.RY=!1;this.T={};this.UQ=this.disableAv1=this.gs=this.UF=this.Jp=this.qW=this.Y=this.B=!1;this.l1=this.Cp.D("html5_disable_aac_preference");this.aO=Infinity;this.Oy=0;this.nE=this.Cp.DB();this.Fd=this.Cp.experiments.Gb("html5_enable_vp9_fairplay");this.Ji=this.Cp.D("html5_force_av1_for_testing");this.k8=g.dU(this.Cp.experiments, "html5_av1_ordinal_cap");this.hB=this.Cp.D("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.nT=this.Cp.D("html5_account_onesie_format_selection_during_format_filter");this.Lp=g.dU(this.Cp.experiments,"html5_max_byterate");this.L=this.Cp.D("html5_sunset_aac_high_codec_family");this.P0=this.Cp.D("html5_sunset_aac_high_codec_family");this.ez=this.Cp.D("html5_enable_iamf_audio");this.Kb=this.Cp.experiments.Gb("html5_allow_capability_merge");this.kx=this.Cp.D("html5_prefer_h264_encrypted_appletv"); this.mW=this.Cp.D("html5_enable_encrypted_av1")}; Uzq=function(k){if(k.W0)return["f"];if(k.kx&&g.RY("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var p=["9h","9","h","8"];k.mW&&p.push("1e");p=p.concat(["(h","(","H","*"]);k.j6&&(p.unshift("1"),p.unshift("1h"));k.qQ&&p.unshift("h");k.gy&&(p=(yZe[k.gy]||[k.gy]).concat(p));return p}; qDj=function(k){var p=["o","a","A"];k.Oy===1&&(k.C&&(p=["mac3","MAC3"].concat(p)),k.X&&(p=["meac3","MEAC3"].concat(p)),k.ez&&(p=["i","I"].concat(p)));k.Y8&&(p=["so","sa"].concat(p));!k.yn||k.qO||k.N||k.l1||p.unshift("a");k.pp&&!k.L&&p.unshift("ah");k.N&&(p=(yZe[k.N]||[k.N]).concat(p));return p}; D9=function(k,p,t,J){p=p===void 0?{}:p;if(J===void 0?0:J)return p.disabled=1,0;if(bf(k.X,NB.AV1_CODECS)&&bf(k.X,NB.HEIGHT)&&bf(k.X,NB.BITRATE))return p.isCapabilityUsable=1,8192;try{var q=ebT();if(q)return p.localPref=q}catch(S){}J=1080;q=navigator.hardwareConcurrency;q<=2&&(J=480);p.coreCount=q;if(q=g.dU(k.experiments,"html5_default_av1_threshold"))J=p["default"]=q;!k.D("html5_disable_av1_arm_check")&&c0L()&&(p.isArm=1,J=240);if(k=k.X.NO)p.mcap=k,J=Math.max(J,k);if(t){var F,d;if(k=(F=t.videoInfos.find(function(S){return hD(S)}))== null?void 0:(d=F.Y)==null?void 0:d.powerEfficient)J=8192,p.isEfficient=1; t=t.videoInfos[0].video;F=Math.min(WL("1",t.fps),WL("1",30));p.perfCap=F;J=Math.min(J,F);t.isHdr()&&!k&&(p.hdr=1,J*=.75)}else t=WL("1",30),p.perfCap30=t,J=Math.min(J,t),t=WL("1",60),p.perfCap60=t,J=Math.min(J,t);return p.av1Threshold=J}; sm=function(k,p,t,J){this.flavor=k;this.keySystem=p;this.Y=t;this.experiments=J;this.T={};this.v0=this.keySystemAccess=null;this.uE=this.RU=-1;this.Oo=null;this.N=!!J&&J.Gb("edge_nonprefixed_eme");J&&J.Gb("html5_enable_vp9_fairplay")}; vL=function(k){return k.N?!1:!k.keySystemAccess&&!!LR()&&k.keySystem==="com.microsoft.playready"}; cL=function(k){return k.keySystem==="com.microsoft.playready"}; nR=function(k){return!k.keySystemAccess&&!!LR()&&k.keySystem==="com.apple.fps.1_0"}; wi=function(k){return k.keySystem==="com.youtube.fairplay"}; i_=function(k){return k.keySystem==="com.youtube.fairplay.sbdl"}; g.Qq=function(k){return k.flavor==="fairplay"}; LR=function(){var k=window,p=k.MSMediaKeys;aY()&&!p&&(p=k.WebKitMediaKeys);return p&&p.isTypeSupported?p:null}; Gj=function(k){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.sD&&!g.zQ())return m6("45");if(g.ag||g.Ui)return k.Gb("edge_nonprefixed_eme");if(g.PL)return m6("47");if(g.y9){if(k.Gb("html5_enable_safari_fairplay"))return!1;if(k=g.dU(k,"html5_safari_desktop_eme_min_version"))return m6(k)}return!0}; YEi=function(k,p,t,J){var q=eN(),F=(t=q||t&&aY())?["com.youtube.fairplay"]:["com.widevine.alpha"];p&&F.unshift("com.youtube.widevine.l3");q&&J&&F.unshift("com.youtube.fairplay.sbdl");return t?F:k?[].concat(g.m(F),g.m(Is.playready)):[].concat(g.m(Is.playready),g.m(F))}; BL=function(){this.Y=this.n5=0;this.T=Array.from({length:Rs.length}).fill(0)}; TmT=function(){}; rZe=function(){this.startTimeMs=(0,g.V9)();this.T=!1}; ZWj=function(){this.T=new TmT}; C2u=function(k,p,t,J){J=J===void 0?1:J;t>=0&&(p in k.T||(k.T[p]=new BL),k.T[p].LI(t,J))}; AZ9=function(k,p,t,J,q){var F=(0,g.V9)(),d=q?q(p):void 0,S;q=(S=d==null?void 0:d.n5)!=null?S:1;if(q!==0){var U;S=(U=d==null?void 0:d.profile)!=null?U:t;C2u(k,S,F-J,q)}return p}; zj=function(k,p,t,J,q){if(p&&typeof p==="object"){var F=function(d){return AZ9(k,d,t,J,q)}; if(tu(p))return p.then(F);if(mwT(p))return dY(p,F)}return AZ9(k,p,t,J,q)}; V_h=function(){}; e1=function(k,p,t,J,q){J=J===void 0?!1:J;g.R.call(this);this.Cp=p;this.useCobaltWidevine=J;this.yT=q;this.Y=[];this.N={};this.T={};this.callback=null;this.X=!1;this.C=[];this.initialize(k,!t)}; DwM=function(k,p){k.callback=p;k.C=[];Gj(k.Cp.experiments)?hh(k):WRq(k)}; hh=function(k){if(!k.MO())if(k.Y.length===0)k.callback(k.C);else{var p=k.Y[0],t=k.N[p],J=sWL(k,t);if(as&&as.keySystem===p&&as.Qxh===JSON.stringify(J))k.yT("remksa",{re:!0}),LRh(k,t,as.keySystemAccess);else{var q,F;k.yT("remksa",{re:!1,ok:(F=(q=as)==null?void 0:q.keySystem)!=null?F:""});as=void 0;(MY.isActive()?MY.iX("emereq",function(){return navigator.requestMediaKeySystemAccess(p,J)}):navigator.requestMediaKeySystemAccess(p,J)).then(Nm(function(d){LRh(k,t,d,J)}),Nm(function(){k.X=!k.X&&k.N[k.Y[0]].flavor=== "widevine"; k.X||k.Y.shift();hh(k)}))}}}; LRh=function(k,p,t,J){if(!k.MO()){J&&(as={keySystem:p.keySystem,keySystemAccess:t,Qxh:JSON.stringify(J)});p.keySystemAccess=t;if(cL(p)){t=W$();J=g.Z(Object.keys(k.T[p.flavor]));for(var q=J.next();!q.done;q=J.next())q=q.value,p.T[q]=!!t.canPlayType(q)}else{t=p.keySystemAccess.getConfiguration();if(t.audioCapabilities)for(J=g.Z(t.audioCapabilities),q=J.next();!q.done;q=J.next())vrj(k,p,q.value);if(t.videoCapabilities)for(t=g.Z(t.videoCapabilities),J=t.next();!J.done;J=t.next())vrj(k,p,J.value)}k.C.push(p); k.useCobaltWidevine||k.D("html5_enable_vp9_fairplay")&&i_(p)?(k.Y.shift(),hh(k)):k.callback(k.C)}}; vrj=function(k,p,t){k.D("log_robustness_for_drm")?p.T[t.contentType]=t.robustness||!0:p.T[t.contentType]=!0}; sWL=function(k,p){var t={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(k.D("html5_enable_vp9_fairplay")&&wi(p))return t.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),t.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[t];cL(p)&&(t.initDataTypes=["keyids","cenc"]);for(var J=g.Z(Object.keys(k.T[p.flavor])),q=J.next();!q.done;q=J.next()){q=q.value;var F=q.indexOf("audio/")===0,d=F?t.audioCapabilities:t.videoCapabilities;p.flavor!== "widevine"||k.X?d.push({contentType:q}):F?d.push({contentType:q,robustness:"SW_SECURE_CRYPTO"}):(g.sD&&g.RY("windows nt")&&!k.D("html5_drm_enable_moho")||d.push({contentType:q,robustness:"HW_SECURE_ALL"}),F=q,k.D("html5_enable_cobalt_experimental_vp9_decoder")&&q.includes("vp09")&&(F=q+"; experimental=allowed"),d.push({contentType:F,robustness:"SW_SECURE_DECODE"}),gi(k.Cp)==="MWEB"&&(OG()||Bw())&&(k.yT("swcrypto",{}),d.push({contentType:q,robustness:"SW_SECURE_CRYPTO"})))}return[t]}; WRq=function(k){if(LR()&&(g.y9||gh&&k.D("html5_drm_support_ios_mweb")))k.C.push(new sm("fairplay","com.apple.fps.1_0","",k.Cp.experiments));else{var p=cZj(),t=g.j9(k.Y,function(J){var q=k.N[J],F=!1,d=!1,S;for(S in k.T[q.flavor])p(S,J)&&(q.T[S]=!0,F=F||S.indexOf("audio/")===0,d=d||S.indexOf("video/")===0);return F&&d}); t&&k.C.push(k.N[t]);k.Y=[]}k.callback(k.C)}; cZj=function(){var k=LR();if(k){var p=k.isTypeSupported;return function(J,q){return p(q,J)}}var t=W$(); return t&&(t.addKey||t.webkitAddKey)?function(J,q){return!!t.canPlayType(J,q)}:function(){return!1}}; nri=function(k){this.experiments=k;this.T=2048;this.C=0;this.Y8=(this.L=this.D("html5_streaming_resilience"))?.5:.25;var p=p===void 0?0:p;this.N=g.dU(this.experiments,"html5_media_time_weight_prop")||p;this.X=this.D("html5_app_limited_aware_bwe");this.P0=g.dU(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.NO=(this.S=this.experiments.Gb("html5_consider_end_stall"))&&u_;this.Y=this.experiments.Gb("html5_measure_max_progress_handling");this.gy=this.D("html5_treat_requests_pre_elbow_as_metadata"); this.Z=this.D("html5_media_time_weight")||!!this.N;this.B=g.dU(this.experiments,"html5_streaming_fallback_byterate");this.D("html5_sabr_live_audio_early_return_fix")&&u_&&(this.T=65536)}; w6S=function(k,p){this.T=void 0;this.experimentIds=k?k.split(","):[];this.flags=KF(p||"","&");k={};p=g.Z(this.experimentIds);for(var t=p.next();!t.done;t=p.next())k[t.value]=!0;this.experiments=k}; g.dU=function(k,p){k=k.flags[p];JSON.stringify(k);return Number(k)||0}; l_=function(k,p){return(k=k.flags[p])?k.toString():""}; iWj=function(k){if(k=k.flags.html5_web_po_experiment_ids)if(k=k.replace(/\[ *(.*?) *\]/,"$1"))return k.split(",").map(Number);return[]}; QW6=function(k){if(k.T)return k.T;if(k.experimentIds.length<=1)return k.T=k.experimentIds,k.T;var p=[].concat(g.m(k.experimentIds)).map(function(J){return Number(J)}); p.sort();for(var t=p.length-1;t>0;--t)p[t]-=p[t-1];k.T=p.map(function(J){return J.toString()}); k.T.unshift("v1");return k.T}; G1j=function(k){return P2S.then(k)}; j1=function(k,p,t){this.experiments=k;this.Oy=p;this.qO=t===void 0?!1:t;this.Y8=!!g.hw("cast.receiver.platform.canDisplayType");this.L={};this.B=!1;this.Y=new Map;this.Z=!0;this.C=this.X=!1;this.T=new Map;this.NO=0;this.P0=this.experiments.Gb("html5_disable_vp9_encrypted");this.N=this.experiments.Gb("html5_enable_encrypted_av1");k=g.hw("cast.receiver.platform.getValue");this.j6=g.dU(this.experiments,"html5_kaios_max_resolution");this.S=!this.Y8&&k&&k("max-video-resolution-vpx")||null;Ijw(this)}; N2j=function(k,p,t){t=t===void 0?1:t;var J=p.itag;if(J==="0")return!0;var q=p.mimeType;if(p.rI()&&eN()&&k.experiments.Gb("html5_appletv_disable_vp9"))return"dwebm";if(p.H0==="1e"&&!k.N)return"dav1enc";if(hD(p)&&k.B)return"dav1";if(p.video&&(p.video.isHdr()||p.video.primaries==="bt2020")&&!(bf(k,NB.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(J=== "338"&&!(g.sD?m6(53):g.PL&&m6(64)))return"dopus";var F;if(k.j6&&Om&&((F=p.video)==null?void 0:F.T)>k.j6)return"kaios";F=t;F=F===void 0?1:F;t={};p.video&&(p.video.width&&(t[NB.WIDTH.name]=p.video.width),p.video.height&&(t[NB.HEIGHT.name]=p.video.height),p.video.fps&&(t[NB.FRAMERATE.name]=p.video.fps*F),p.video.Y&&(t[NB.EOTF.name]=p.video.Y),p.Lp&&(t[NB.BITRATE.name]=p.Lp*8*F),p.H0==="("&&(t[NB.CRYPTOBLOCKFORMAT.name]="subsample"),p.video.projectionType==="EQUIRECTANGULAR"||p.video.projectionType=== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||p.video.projectionType==="MESH")&&(t[NB.DECODETOTEXTURE.name]="true");p.audio&&p.audio.numChannels&&(t[NB.CHANNELS.name]=p.audio.numChannels);k.X&&B$(p)&&(t[NB.EXPERIMENTAL.name]="allowed");F=g.Z(Object.keys(NB));for(var d=F.next();!d.done;d=F.next()){d=NB[d.value];var S;if(S=t[d.name])if(S=!(d===NB.EOTF&&p.mimeType.indexOf("vp09.02")>0)){S=d;var U=p;S=!(k.experiments.Gb("html5_ignore_h264_framerate_cap")&&S===NB.FRAMERATE&&A5q(U))}if(S)if(bf(k,d))if(k.S){if(k.S[d.name]< t[d.name])return d.name}else q=q+"; "+d.name+"="+t[d.name];else if(zw(p)&&d===NB.EOTF)return"dvp92"}k.Y8&&p.video&&p.video.T>1080&&p.xf&&(q+="; hdcp=2.2");return J==="227"?"hqcenc":J!=="585"&&J!=="588"&&J!=="583"&&J!=="586"&&J!=="584"&&J!=="587"&&J!=="591"&&J!=="592"||k.experiments.Gb("html5_enable_new_hvc_enc")?k.isTypeSupported(q)?!0:"tpus":"newhvc"}; KR=function(){var k=Bw()&&!m6(29),p=g.RY("google tv")&&g.RY("chrome")&&!m6(30);return k||p?!1:LM0()}; X66=function(k,p,t){var J=480;p=g.Z(p);for(var q=p.next();!q.done;q=p.next()){q=q.value;var F=q.video.T;F<=1080&&F>J&&N2j(k,q,t)===!0&&(J=F)}return J}; g.HL=function(k,p){p=p===void 0?!1:p;return KR()&&k.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!p&&k.canPlayType(W$(),"application/x-mpegURL")?!0:!1}; Bmi=function(k){RQM(function(){for(var p=g.Z(Object.keys(NB)),t=p.next();!t.done;t=p.next())bf(k,NB[t.value])})}; bf=function(k,p){p.name in k.L||(k.L[p.name]=zQj(k,p));return k.L[p.name]}; zQj=function(k,p){if(k.S)return!!k.S[p.name];if(p===NB.BITRATE&&k.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!k.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(p===NB.AV1_CODECS)return k.isTypeSupported("video/mp4; codecs="+p.valid)&&!k.isTypeSupported("video/mp4; codecs="+p.p5);if(p.video){var t='video/webm; codecs="vp9"';k.isTypeSupported(t)||(t='video/mp4; codecs="avc1.4d401e"')}else t='audio/webm; codecs="opus"', k.isTypeSupported(t)||(t='audio/mp4; codecs="mp4a.40.2"');return k.isTypeSupported(t+"; "+p.name+"="+p.valid)&&!k.isTypeSupported(t+"; "+p.name+"="+p.p5)}; eQi=function(k){k.X||(k.X=!0,xm(k))}; xm=function(k){k.C=!0;k.experiments.Gb("html5_ssap_update_capabilities_on_change")&&hQq(k)}; aj6=function(k,p){var t=0;k.Y.has(p)&&(t=k.Y.get(p).rT);k.Y.set(p,{rT:t+1,VO:Math.pow(2,t+1)});xm(k)}; E1=function(k){for(var p=[],t=g.Z(k.T.keys()),J=t.next();!J.done;J=t.next()){J=J.value;var q=k.T.get(J);p.push(J+"_"+q.maxWidth+"_"+q.maxHeight)}return p.join(".")}; hQq=function(k){k.gy=[];for(var p=g.Z(k.T.values()),t=p.next();!t.done;t=p.next()){t=t.value;var J=t.H0;k.experiments.Gb("html5_ssap_force_mp4_aac")&&J!=="a"&&J!=="h"||k.Y.has(J)||k.B&&(J==="1"||J==="1h"||k.N&&J==="1e")||k.gy.push(t)}}; FOS=function(k,p){for(var t=new Map,J=g.Z(k.T.keys()),q=J.next();!q.done;q=J.next()){q=q.value;var F=q.split("_")[0];p.has(F)||t.set(q,k.T.get(q))}k.T=t}; dzw=function(k,p,t){var J,q=((J=t.video)==null?void 0:J.fps)||0;J=p+"_"+q;var F=!!t.audio,d={itag:t.itag,H0:p,B3:F};if(F)d.numChannels=t.audio.numChannels;else{var S=t.video;d.maxWidth=S==null?void 0:S.width;d.maxHeight=S==null?void 0:S.height;d.maxFramerate=q;bf(k,NB.BITRATE)&&(d.maxBitrateBps=t.Lp*8);d.yu=S==null?void 0:S.isHdr()}S=k.T.get(J);S?F||(t=Math.max(S.maxWidth||0,S.maxHeight||0)>Math.max(d.maxWidth||0,d.maxHeight||0)?S:d,p={itag:t.itag,H0:p,B3:F,maxWidth:Math.max(S.maxWidth||0,d.maxWidth|| 0),maxHeight:Math.max(S.maxHeight||0,d.maxHeight||0),maxFramerate:q,yu:t.yu},bf(k,NB.BITRATE)&&(p.maxBitrateBps=t.maxBitrateBps),k.T.set(J,p)):k.T.set(J,d)}; EgL=function(k,p,t){var J,q=((J=t.video)==null?void 0:J.fps)||0;J=p+"_"+q;var F=!!t.audio,d=k.T.get(J);a:{var S=k.T.get(J),U=!!t.audio;if(S){if(U){var f=!1;break a}var b;if(!U&&((f=t.video)==null?0:f.height)&&S.maxHeight&&S.maxHeight>=((b=t.video)==null?void 0:b.height)){f=!1;break a}}f=!0}f&&(f=t.itag,p=d?d:{itag:f,H0:p,B3:F},F?p.numChannels=t.audio.numChannels:(F=t.video,p.maxWidth=F==null?void 0:F.width,p.maxHeight=F==null?void 0:F.height,p.maxFramerate=q,bf(k,NB.BITRATE)&&(p.maxBitrateBps=t.Lp* 8),p.yu=F==null?void 0:F.isHdr()),k.T.set(J,p))}; Ijw=function(k){var p;(p=navigator.mediaCapabilities)!=null&&p.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(t){t.smooth&&t.powerEfficient&&(k.NO=2160)})}; kH=function(){g.o$.call(this);this.items={}}; pl=function(){g.rL.apply(this,arguments)}; ts=function(){g.Z6.apply(this,arguments)}; M_0=function(k,p,t){this.encryptedClientKey=p;this.X=t;this.T=new Uint8Array(k.buffer,0,16);this.N=new Uint8Array(k.buffer,16)}; gri=function(k){k.Y||(k.Y=new pl(k.T));return k.Y}; Js=function(k){try{return Aj(k)}catch(p){return null}}; u1T=function(k,p){if(!p&&k)try{p=JSON.parse(k)}catch(q){}if(p){k=p.clientKey?Js(p.clientKey):null;var t=p.encryptedClientKey?Js(p.encryptedClientKey):null,J=p.keyExpiresInSeconds?Number(p.keyExpiresInSeconds)*1E3+(0,g.V9)():null;k&&t&&J&&(this.T=new M_0(k,t,J));p.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Js(p.onesieUstreamerConfig)||void 0);this.baseUrl=p.baseUrl}}; qu=function(){this.data=new Uint8Array(2048);this.pos=0;or||(or=sh("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Fo=function(k,p){k.add(p==null||isNaN(p)?0:p+1)}; $H=function(k){this.T=this.Y=0;this.alpha=Math.exp(Math.log(.5)/k)}; d7=function(k){this.Y=k===void 0?15:k;this.values=new Float64Array(176);this.T=new Float64Array(11);this.N=new Float64Array(16)}; Ep=function(k,p,t,J){t=t===void 0?.5:t;J=J===void 0?0:J;this.resolution=p;this.Y=0;this.N=!1;this.hN=!0;this.T=Math.round(k*this.resolution);this.values=Array(this.T);for(k=0;k<this.T;k++)this.values[k]=Infinity;this.X=lje(this);this.C=t;this.S=J}; lje=function(k){for(var p=Array(k.T),t=0;t<k.T;t++)p[t]=t;return p}; Si=function(k,p,t){g.R.call(this);this.policy=k;this.Y=p;this.fT=t;this.NO=this.IY=0;this.Y8=-1;this.P0=this.X=0;this.gy=!1;this.interruptions=[];this.C=[{stamp:0,net:0,max:0}];this.qO=this.S=(0,g.V9)();this.B=new Ep(4,1,.6,.4);this.j6=new Ep(4,1,.6,.4);this.Z=new Ep(20,1,.5,.4);k.Y8?this.N=new d7(k.T):k.Y?this.N=new $H(k.T):this.N=new Ep(k.T,20,.5,.4);this.Oy=new Ep(5,1,.25);this.L=new Ep(30,1,.5);k=g.nG("yt-player-bandwidth")||{};p=this.policy.N;if(k.byterate>0)p=k.byterate,this.gy=!0;else{var J; t=(((J=navigator.connection)==null?void 0:J.downlink)||0)*64*1024;t>0&&(p=t,this.gy=!0)}this.N.zk(this.policy.S,p);k.delay>0&&this.B.zk(1,Math.min(k.delay,2));k.stall>0&&this.Z.zk(1,k.stall);k.init>0&&(this.qO=Math.min(k.init,this.qO));k.interruptions&&(this.C=this.C.concat(k.interruptions),this.C.length>16&&this.C.pop());this.Y8=(0,g.V9)();this.policy.Z>0&&(this.RY=new g.jF(this.W0,this.policy.Z,this),g.z(this,this.RY),this.RY.start())}; Up=function(k,p,t,J){k.N.zk(J===void 0?p:J,t/p);k.S=(0,g.V9)()}; jWj=function(k){k.X||(k.X=(0,g.V9)());k.policy.L&&(k.S=(0,g.V9)())}; OWS=function(k,p){if(k.X){var t=p-k.X;if(t<6E4){if(t>1E3){var J=k.interruptions;J.push(Math.ceil(t));J.sort(function(q,F){return F-q}); J.length>16&&J.pop()}k.P0+=t}}k.X=p}; fl=function(k,p,t,J,q,F){F=F===void 0?!1:F;k.Oy.zk(p,t/p);k.S=(0,g.V9)();q||k.L.zk(1,p-J);F||(k.X=0);k.Y8>-1&&(0,g.V9)()-k.Y8>3E4&&KRi(k)}; b$=function(k,p,t){p=Math.max(p,k.Y.T);k.Z.zk(1,t/p)}; Nu=function(k){k=k.B.L$()+k.j6.L$()||0;k=isNaN(k)?.5:k;return k=Math.min(k,5)}; y0=function(k,p,t){isNaN(t)||(k.NO+=t);isNaN(p)||(k.IY+=p)}; YH=function(k){k=k.N.L$();return k>0?k:1}; TG=function(k,p,t){p=p===void 0?!1:p;t=t===void 0?1048576:t;var J=YH(k);J=1/((k.Z.L$()||0)*k.policy.gy+1/J);var q=k.Oy.L$();q=q>0?q:1;var F=Math.max(J,q);k.policy.X>0&&q<J&&(F=Math.min(k.policy.X,1),F=(1-F)*J+F*q);if(!p)return F;p=1E-9+Nu(k);t=F*Math.min(1,t/(F*p));k.policy.C||(k=((k.L.percentile(.98)||0)-1)/2,k=Math.max(0,Math.min(1,k)),t*=1-.5*k);return t}; HWS=function(k){var p={delay:Nu(k),stall:k.Z.L$()||0,byterate:YH(k),init:k.qO},t=k.C[0];t.stamp=Math.round(k.S/36E5)*36E5;t.net=Math.ceil(k.P0);t.max=k.interruptions[0]||0;p.interruptions=k.C;return p}; KRi=function(k){g.cz("yt-player-bandwidth",HWS(k),2592E3);k.Y8=(0,g.V9)();k.gy=!0}; r7=function(k){return(0,g.V9)()-k.S>=4E3}; xwh=function(k){this.experiments=k;this.T=17;this.N=13E4;this.S=.5;this.Y=!1;this.Y8=this.D("html5_use_histogram_for_bandwidth");this.C=!1;this.X=g.dU(this.experiments,"html5_auxiliary_estimate_weight");this.gy=g.dU(this.experiments,"html5_stall_factor")||1;this.Z=g.dU(this.experiments,"html5_check_for_idle_network_interval_ms");this.B=this.experiments.Gb("html5_trigger_loader_when_idle_network");this.L=this.experiments.Gb("html5_sabr_fetch_on_idle_network_preloaded_players")}; pv_=function(k,p){k=k===void 0?{}:k;p=p===void 0?{}:p;g.R.call(this);var t=this;this.values=k;this.LF=p;this.Y={};this.N=this.T=0;this.C=new g.jF(function(){kzw(t)},1E4); g.z(this,this.C)}; ZZ=function(k,p){tHe(k,p);return k.values[p]&&k.LF[p]?k.values[p]/Math.pow(2,k.T/k.LF[p]):0}; tHe=function(k,p){k.values[p]||(p=X1_(),k.values=p.values||{},k.LF=p.halfLives||{},k.Y=p.values?Object.assign({},p.values):{})}; kzw=function(k){var p=X1_();if(p.values){p=p.values;for(var t={},J=g.Z(Object.keys(k.values)),q=J.next();!q.done;q=J.next())q=q.value,p[q]&&k.Y[q]&&(k.values[q]+=p[q]-k.Y[q]),t[q]=ZZ(k,q);k.Y=t}p=k.LF;t={};t.values=k.Y;t.halfLives=p;g.cz("yt-player-memory",t,2592E3)}; Xo=function(k,p,t,J,q){g.R.call(this);this.webPlayerContextConfig=p;this.CI=J;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Iq=this.ez=this.k8=this.gp=this.userDisplayName=this.userDisplayImage=this.Gt="";this.T={};this.aO={};this.controlsType="0";this.Kb=NaN;this.Jp=!1;this.fZ=(0,g.V9)();this.nE=0;this.Qr=this.Gv=!1;this.MG=!0;this.preferGapless=this.u2=this.Xn=this.N=this.N_=this.lm=!1;this.SF=[];this.Dw=!1;k=k?g.ih(k):{};p&&p.csiPageType&&(this.csiPageType=p.csiPageType);p&&p.csiServiceName&& (this.csiServiceName=p.csiServiceName);p&&p.preferGapless&&(this.preferGapless=p.preferGapless);this.experiments=new w6S(p?p.serializedExperimentIds:k.fexp,p?p.serializedExperimentFlags:k.fflags);this.forcedExperiments=p?p.serializedForcedExperimentIds:tm("",k.forced_experiments)||void 0;this.cspNonce=(p==null?0:p.cspNonce)?p.cspNonce:tm("",k.csp_nonce);this.D("web_player_deprecated_uvr_killswitch");try{var F=document.location.toString()}catch(l){F=""}this.Ji=F;this.ancestorOrigins=(J=window.location.ancestorOrigins)? Array.from(J):[];this.C=xX(!1,p?p.isEmbed:k.is_embed);if(p&&p.device){if(J=p.device,J.androidOsExperience&&(this.T.caoe=""+J.androidOsExperience),J.androidPlayServicesVersion&&(this.T.capsv=""+J.androidPlayServicesVersion),J.brand&&(this.T.cbrand=J.brand),J.browser&&(this.T.cbr=J.browser),J.browserVersion&&(this.T.cbrver=J.browserVersion),J.cobaltReleaseVehicle&&(this.T.ccrv=""+J.cobaltReleaseVehicle),this.T.c=J.interfaceName||"WEB",this.T.cver=J.interfaceVersion||"html5",J.interfaceTheme&&(this.T.ctheme= J.interfaceTheme),this.T.cplayer=J.interfacePlayerType||"UNIPLAYER",J.model&&(this.T.cmodel=J.model),J.network&&(this.T.cnetwork=J.network),J.os&&(this.T.cos=J.os),J.osVersion&&(this.T.cosver=J.osVersion),J.platform&&(this.T.cplatform=J.platform),F=l_(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),F==="all"||F==="once")J.chipset&&(this.aO.cchip=J.chipset),J.cobaltAppVersion&&(this.aO.ccappver=J.cobaltAppVersion),J.firmwareVersion&&(this.aO.cfrmver=J.firmwareVersion),J.deviceYear&&(this.aO.crqyear= J.deviceYear)}else this.T.c=k.c||"web",this.T.cver=k.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=p?this.C||JdL(this)&&p.loaderUrl?p.loaderUrl||"":this.Ji:this.C||JdL(this)&&k.loaderUrl?tm("",k.loaderUrl):this.Ji;this.C&&g.eM("yt.embedded_player.embed_url",this.loaderUrl);this.Z=uY(this.loaderUrl,oaS);J=this.loaderUrl;var d=d===void 0?!1:d;this.LA=gU(uY(J,qle),J,d,"Trusted Ad Domain URL");this.jW=xX(!1,k.privembed);this.protocol=this.Ji.indexOf("http:")===0?"http":"https";this.NA=lY((p? p.customBaseYoutubeUrl:k.BASE_YT_URL)||"")||lY(this.Ji)||this.protocol+"://www.youtube.com/";d=p?p.eventLabel:k.el;J="detailpage";d==="adunit"?J=this.C?"embedded":"detailpage":d==="embedded"||this.Z?J=k9(J,d,FZu):d&&(J="embedded");this.j6=J;zaw();d=null;J=p?p.playerStyle:k.ps;F=g.Kc($kL,J);!J||F&&!this.Z||(d=J);this.playerStyle=d;this.S=g.Kc($kL,this.playerStyle);this.houseBrandUserStatus=p==null?void 0:p.houseBrandUserStatus;this.Y8=this.S&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.BV=!this.Y8;this.qO=xX(!1,k.disableplaybackui);this.disablePaidContentOverlay=xX(!1,p==null?void 0:p.disablePaidContentOverlay);this.disableSeek=xX(!1,p==null?void 0:p.disableSeek);this.enableSpeedOptions=(p==null?void 0:p.enableSpeedOptions)||(W$().defaultPlaybackRate?Cl||g.jN||Om?g.PL&&m6("20")||g.sD&&m6("4")||g.As&&m6("11")||M8():!(g.As&&!g.RY("chrome")||Cl||g.RY("android")||g.RY("silk")):!1);this.du=xX(!1,k.enable_faster_speeds);var S;this.supportsVarispeedExtendedFeatures=(S=p==null?void 0: p.supportsVarispeedExtendedFeatures)!=null?S:!1;this.Y=xX(this.playerStyle==="blazer",k.is_html5_mobile_device||p&&p.isMobileDevice);this.IY=l6()||OG();this.hK=this.D("mweb_allow_background_playback")?!1:this.Y&&!this.S;this.RY=c$();this.Vo=g.mF;var U;this.FE=!!(p==null?0:(U=p.embedsHostFlags)==null?0:U.optOutApiDeprecation);var f;this.Yo=!!(p==null?0:(f=p.embedsHostFlags)==null?0:f.allowPfpImaIntegration);this.I7=this.D("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var b;p?p.hideInfo!== void 0&&(b=!p.hideInfo):b=k.showinfo;this.qG=g.V0(this)&&!this.FE||xX(!Ws(this)&&!DZ(this)&&!this.S,b);this.Oo=p?!!p.mobileIphoneSupportsInlinePlayback:xX(!1,k.playsinline);S=this.Y&&sp&&Ll!=null&&Ll>0&&Ll<=2.3;U=p?p.useNativeControls:k.use_native_controls;this.B=g.V0(this)&&this.Y;f=this.Y&&!this.B;U=g.vs(this)||!S&&xX(f,U)?"3":"1";this.disableOrganicUi=!(p==null||!p.disableOrganicUi);f=p?p.controlsType:k.controls;this.controlsType=this.disableOrganicUi?"0":f!=="0"&&f!==0?U:"0";this.EZ=this.Y;this.color= k9("red",p?p.progressBarColor:k.color,dkS);this.M8=this.controlsType==="3";this.yn=!this.C;this.SB=(U=!this.yn&&!DZ(this)&&!this.Y8&&!this.S&&!Ws(this))&&!this.M8&&this.controlsType==="1";this.kx=g.cs(this)&&U&&this.controlsType==="0"&&!this.SB&&!(p==null?0:p.embedsEnableEmc3ds);this.k0=this.Rc=S;this.mW=(this.controlsType==="3"||this.Y||xX(!1,k.use_media_volume))&&!this.B;this.OS=gh&&!g.rH(601)?!1:!0;this.WV=this.C||!1;this.v0=DZ(this)?"":(this.loaderUrl||k.post_message_origin||"").substring(0,128); this.widgetReferrer=tm("",p?p.widgetReferrer:k.widget_referrer);var N;p?p.disableCastApi&&(N=!1):N=k.enablecastapi;N=!this.Z||xX(!0,N);S=!0;p&&p.disableMdxCast&&(S=!1);this.wd=this.D("enable_cast_for_web_unplugged")&&g.nl(this)&&S||g.Qj(this)&&S||N&&S&&this.controlsType==="1"&&!this.Y&&(DZ(this)||g.cs(this)||g.w7(this));this.vJ=!!window.document.pictureInPictureEnabled||v$();N=p?!!p.supportsAutoplayOverride:xX(!1,k.autoplayoverride);this.vQ=!(this.Y&&!g.V0(this))&&!g.RY("nintendo wiiu")||N;this.kC= (p?!!p.enableMutedAutoplay:xX(!1,k.mutedautoplay))&&!1;N=(DZ(this)||Ws(this))&&this.playerStyle==="blazer";this.BR=p?!!p.disableFullscreen:!xX(!0,k.fs);S=g.Fa(g.i$(this))&&g.V0(this);this.Fd=!this.BR&&(N||g.bk())&&!S;this.mu=this.D("html5_picture_in_picture_logging_onresize");this.q_=this.D("html5_picture_in_picture_blocking_onresize");this.St=this.D("html5_picture_in_picture_blocking_ontimeupdate");this.xY=this.D("html5_picture_in_picture_blocking_document_fullscreen");this.M_=this.D("html5_picture_in_picture_blocking_standard_api"); N=Bw()&&m6(58)&&!OG();S=hO||typeof MediaSource==="undefined";this.Yd=this.D("uniplayer_block_pip")&&(N||S)||this.q_||this.St||this.M_;N=g.V0(this)&&!this.FE;var y;p?p.disableRelatedVideos!==void 0&&(y=!p.disableRelatedVideos):y=k.rel;this.nT=N||xX(!this.S,y);this.jd=xX(!1,p?p.enableContentOwnerRelatedVideos:k.co_rel);this.L=OG()&&Ll>0&&Ll<=4.4?"_top":"_blank";this.v3=g.w7(this);this.YN=xX(this.playerStyle==="blazer",p?p.enableCsiLogging:k.enablecsi);switch(this.playerStyle){case "blogger":y="bl"; break;case "gmail":y="gm";break;case "gac":y="ga";break;case "ads-preview":y="ap";break;case "books":y="gb";break;case "docs":case "flix":y="gd";break;case "duo":y="gu";break;case "google-live":y="gl";break;case "google-one":y="go";break;case "play":y="gp";break;case "chat":y="hc";break;case "hangouts-meet":y="hm";break;case "photos-edu":case "picasaweb":y="pw";break;default:y="yt"}this.gy=y;this.NO=tm("",p?p.authorizedUserIndex:k.authuser);this.UQ=g.V0(this)&&(this.jW||!LET()||this.IY);var Y;p?p.disableWatchLater!== void 0&&(Y=!p.disableWatchLater):Y=k.showwatchlater;this.hB=((y=!this.UQ)||!!this.NO&&y)&&xX(!this.Y8,this.Z?Y:void 0);this.l1=p?p.isMobileDevice||!!p.disableKeyboardControls:xX(!1,k.disablekb);this.loop=xX(!1,k.loop);this.pageId=tm("",p?p.initialDelegatedSessionId:k.pageid);this.cJ=xX(!0,k.canplaylive);this.B0=xX(!1,k.livemonitor);this.disableSharing=xX(this.S,p?p.disableSharing:k.ss);(Y=p&&this.D("fill_video_container_size_override_from_wpcc")?p.videoContainerOverride:k.video_container_override)? (y=Y.split("x"),y.length!==2?Y=null:(Y=Number(y[0]),y=Number(y[1]),Y=isNaN(Y)||isNaN(y)||Y*y<=0?null:new g.YY(Y,y))):Y=null;this.xb=Y;this.mute=p?!!p.startMuted:xX(!1,k.mute);this.storeUserVolume=!this.mute&&xX(this.controlsType!=="0",p?p.storeUserVolume:k.store_user_volume);Y=p?p.annotationsLoadPolicy:k.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:k9(void 0,Y,Q0);this.captionsLanguagePreference=p?p.captionsLanguagePreference||"":tm("",k.cc_lang_pref);Y=k9(2,p?p.captionsLanguageLoadPolicy: k.cc_load_policy,Q0);this.controlsType==="3"&&Y===2&&(Y=3);this.gs=Y;this.qW=p?p.hl||"en_US":tm("en_US",k.hl);this.region=p?p.contentRegion||"US":tm("US",k.cr);this.hostLanguage=p?p.hostLanguage||"en":tm("en",k.host_language);this.HJ=!this.jW&&Math.random()<g.dU(this.experiments,"web_player_api_logging_fraction");this.W0=!this.jW;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(p==null||!p.deviceIsAudioOnly);this.Kb=pG(this.Kb,k.ismb);this.BV?(Y=k.vss_host||"s.youtube.com",Y==="s.youtube.com"&& (Y=Ps(this.NA)||"www.youtube.com")):Y="video.google.com";this.mE=Y;GG(this,k,!0);this.Oy=new kH;g.z(this,this.Oy);y=p?p.innertubeApiKey:tm("",k.innertube_api_key);N=p?p.innertubeApiVersion:tm("",k.innertube_api_version);Y=p?p.innertubeContextClientVersion:tm("",k.innertube_context_client_version);y=g.M9("INNERTUBE_API_KEY")||y;N=g.M9("INNERTUBE_API_VERSION")||N;S=g.M9("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");U=gi(this);f=typeof this.T.c==="number"?Number(this.T.c):Object.keys(EaS).indexOf(this.T.c); this.rK={innertubeApiKey:y,innertubeApiVersion:N,eR:S,zE:U,Gx:f,innertubeContextClientVersion:g.M9("INNERTUBE_CONTEXT_CLIENT_VERSION")||Y,aN:this.hostLanguage,By:this.region,H8:g.M9("INNERTUBE_HOST_OVERRIDE")||"",d8:!!g.M9("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),WSY:!!g.M9("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.xd=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.X=new j1(this.experiments,this.D("html5_force_hfr_support")?!0:A9(this)||he()||n_i()||Sl6(this),g.sD&&g.rH(56)|| g.PL&&g.rH(54)||this.D("html5_force_vp9_subsample_encryption_support")||Sl6(this));Y=g.mq(this);y=this.Kb;N=this.experiments;S=new xwh(N);Y&&(S.Y=!0,S.S=.1);N.Gb("html5_media_time_weight")&&(S.Y=!1);y&&(S.N=y/8);S.C=wY()>=480;this.schedule=new Si(S,new nri(this.experiments),q);g.z(this,this.schedule);var T;this.enableSafetyMode=(T=p==null?void 0:p.initialEnableSafetyMode)!=null?T:xX(!1,k.enable_safety_mode);q=this.qO?!1:DZ(this)&&this.playerStyle!=="blazer";var A;p?p.disableAutonav!=null&&(A=!p.disableAutonav): A=k.allow_autonav;this.UF=xX(q,!this.Y8&&A);this.sendVisitorIdHeader=p?!!p.sendVisitorIdHeader:xX(!1,k.send_visitor_id_header);var V;this.playerStyle==="docs"&&(p?V=p.disableNativeContextMenu:V=k.disable_native_context_menu);this.disableNativeContextMenu=xX(!1,V);this.mL=A9(this)&&this.D("enable_skip_intro_button");this.embedConfig=tm("",p?p.serializedEmbedConfig:k.embed_config);this.P0=qI(k,g.V0(this));this.N=this.P0==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(p==null||!p.embedsErrorLinks); this.p7=xX(!1,k.full_window);var D;this.pp=!((D=this.webPlayerContextConfig)==null?0:D.chromeless);var v;this.livingRoomAppMode=k9("LIVING_ROOM_APP_MODE_UNSPECIFIED",k.living_room_app_mode||(p==null?void 0:(v=p.device)==null?void 0:v.livingRoomAppMode),UkT);var w;A=pG(NaN,p==null?void 0:(w=p.device)==null?void 0:w.deviceYear);isNaN(A)||(this.deviceYear=A);this.transparentBackground=p?!!p.transparentBackground:xX(!1,k.transparent_background);this.showMiniplayerButton=p?!!p.showMiniplayerButton:xX(!1, k.show_miniplayer_button);var X;g.V0(this)&&!(p==null?0:(X=p.embedsHostFlags)==null?0:X.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=p?!!p.externalFullscreen:xX(!1,k.external_fullscreen);this.showMiniplayerUiWhenMinimized=p?!!p.showMiniplayerUiWhenMinimized:xX(!1,k.use_miniplayer_ui);var B;this.MG=(B=k.show_loop_video_toggle)!=null?B:!0;this.QK=Math.random()<1E-4;this.yr=k.onesie_hot_config||(p==null?0:p.onesieHotConfig)?new u1T(k.onesie_hot_config,p==null?void 0:p.onesieHotConfig): void 0;this.isTectonic=p?!!p.isTectonic:!!k.isTectonic;this.playerCanaryState=t;this.playerCanaryStage=p==null?void 0:p.canaryStage;this.Q4=new pv_;g.z(this,this.Q4);this.N_=xX(!1,k.force_gvi);this.datasyncId=(p==null?void 0:p.datasyncId)||g.M9("DATASYNC_ID");this.Ta=g.M9("LOGGED_IN",!1);this.Xo=(p==null?void 0:p.allowWoffleManagement)||!1;this.gK=Infinity;this.gA=NaN;this.livingRoomPoTokenId=p==null?void 0:p.livingRoomPoTokenId;this.D("html5_high_res_logging_always")?this.Xn=!0:this.Xn=Math.random()* 100<g.dU(this.experiments,"html5_high_res_logging_percent");var O;this.u2=!!(p==null?0:(O=p.embedsHostFlags)==null?0:O.allowRcat);this.zv=!g.nl(this)&&!Ir(this)}; g.i$=function(k){var p,t;if(!((p=k.webPlayerContextConfig)==null?0:(t=p.embedsHostFlags)==null?0:t.enableLiteUx)||k.jW||k.S||k.N||k.P0==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";k=g.dU(k.experiments,"embeds_web_lite_mode");return k===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":k>=0&&k<fXh.length?fXh[k]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; GG=function(k,p,t){t=t===void 0?!1:t;k.ez=tm(k.ez,p.video_id);k.k8=tm(k.k8,p.eventid);k.k8&&(Tv=k.k8);for(var J=[],q=g.Z(Object.keys(bHw)),F=q.next();!F.done;F=q.next()){F=bHw[F.value];var d=p[F];d!=null&&(d!==k.T[F]&&J.push(F),k.T[F]=d)}!t&&J.length>0&&k.QK&&(J.sort(),g.wt(new g.hm("Player client parameters changed after startup",J)));k.userAge=pG(k.userAge,p.user_age);k.Gt=tm(k.Gt,p.user_display_email);k.userDisplayImage=tm(k.userDisplayImage,p.user_display_image);g.Oq(k.userDisplayImage)||(k.userDisplayImage= "");k.userDisplayName=tm(k.userDisplayName,p.user_display_name);k.gp=tm(k.gp,p.user_gender);k.csiPageType=tm(k.csiPageType,p.csi_page_type);k.csiServiceName=tm(k.csiServiceName,p.csi_service_name);k.YN=xX(k.YN,p.enablecsi);k.pageId=tm(k.pageId,p.pageid);if(t=p.enabled_engage_types)k.enabledEngageTypes=new Set(t.split(","));p.living_room_session_po_token&&(k.V4=p.living_room_session_po_token.toString())}; Rr=function(k,p){return!k.S&&Bw()&&m6(55)&&k.controlsType==="3"&&!p}; g.Bs=function(k){k=Ps(k.NA);return k==="www.youtube-nocookie.com"?"www.youtube.com":k}; zG=function(k,p,t){return k.protocol+"://i1.ytimg.com/vi/"+p+"/"+(t||"hqdefault.jpg")}; ei=function(k){return DZ(k)&&!g.nl(k)}; g.vs=function(k){return k.D("html5_local_playsinline")?gh&&!g.rH(602)&&!("playsInline"in W$()):gh&&!k.Oo||g.RY("nintendo wiiu")?!0:!1}; gi=function(k){return k.T.c}; g.mq=function(k){return/^TVHTML5/.test(gi(k))}; g.hs=function(k){return gi(k)==="TVHTML5"}; JdL=function(k){return gi(k)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Sl6=function(k){return k.T.cmodel==="CHROMECAST ULTRA/STEAK"||k.T.cmodel==="CHROMECAST/STEAK"}; g.ar=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; A9=function(k){return/web/i.test(gi(k))}; g.Mu=function(k){return gi(k).toUpperCase()==="WEB"}; Ir=function(k){return gi(k)==="WEB_KIDS"}; g.nl=function(k){return gi(k)==="WEB_UNPLUGGED"}; g7=function(k){return gi(k)==="TVHTML5_UNPLUGGED"}; g.Ck=function(k){return g.nl(k)||gi(k)==="TV_UNPLUGGED_CAST"||g7(k)}; g.Qj=function(k){return gi(k)==="WEB_REMIX"}; g.u$=function(k){return gi(k)==="WEB_EMBEDDED_PLAYER"}; g.ji=function(k){return(k.deviceIsAudioOnly||!g.sD||hO||k.controlsType==="3"?!1:g.jN?k.C&&g.rH(51):!0)||(k.deviceIsAudioOnly||!g.PL||hO||k.controlsType==="3"?!1:g.jN?k.C&&g.rH(48):g.rH(38))||(k.deviceIsAudioOnly||!g.As||hO||k.controlsType==="3"?!1:g.jN?k.C&&g.rH(37):g.rH(27))||!k.deviceIsAudioOnly&&g.l$&&!i2e()&&g.rH(11)||!k.deviceIsAudioOnly&&g.y9&&g.rH("604.4")}; Npi=function(k){if(g.cs(k)&&sp)return!1;if(g.PL){if(!g.rH(47)||!g.rH(52)&&g.rH(51))return!1}else if(g.y9)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Yl0=function(k,p){return k.enabledEngageTypes.has(p.toString())||ydL.includes(p)}; DZ=function(k){return k.j6==="detailpage"}; g.cs=function(k){return k.j6==="embedded"}; Op=function(k){return k.j6==="leanback"}; Ws=function(k){return k.j6==="adunit"||k.playerStyle==="gvn"}; g.w7=function(k){return k.j6==="profilepage"}; g.V0=function(k){return k.C&&g.cs(k)&&!Ws(k)&&!k.S}; Kl=function(k){if(!k.userDisplayImage)return"";var p=k.userDisplayImage.split("/");if(p.length===5)return k=p[p.length-1].split("="),k[1]="s20-c",p[p.length-1]=k.join("="),p.join("/");if(p.length===8)return p.splice(7,0,"s20-c"),p.join("/");if(p.length===9)return p[7]+="-s20-c",p.join("/");g.wt(new g.hm("Profile image not a FIFE URL.",k.userDisplayImage));return k.userDisplayImage}; g.Hs=function(k){var p=g.Bs(k);TpL.includes(p)&&(p="www.youtube.com");return k.protocol+"://"+p}; g.xH=function(k,p){p=p===void 0?"":p;if(k.CI){var t=new Mi,J,q=k.CI();q.signedOut?J="":q.token?J=q.token:q.pendingResult.then(function(F){q.signedOut?t.resolve(""):t.resolve(F.token)},function(F){g.wt(new g.hm("b189348328_oauth_callback_failed",{error:F})); t.resolve(p)}); return J!==void 0?cw(J):new LY(t)}return cw(p)}; kL=function(k,p){p=p===void 0?"":p;return k.Ta?Ju(!0):EJ(dY(Ju(g.xH(k,p)),function(t){return Ju(!!t)}),function(){return Ju(!1)})}; Ps=function(k){var p=g.Iq(k);return(k=Number(g.Gq(4,k))||null)?p+":"+k:p}; pq=function(k,p){p=p===void 0?!1:p;var t=X5[k],J=rdT[t],q=ZHL[k];if(!q||!J)return null;p=new P$(p?q.height:q.width,p?q.width:q.height,q.fps);J=di(J,p,t);return new Re(k,J,{video:p,Lp:q.bitrate/8})}; AdM=function(k){var p=rdT[X5[k]],t=CT0[k];return t&&p?new Re(k,p,{audio:new w2(t.audioSampleRate,t.numChannels)}):null}; tF=function(k){this.T=k}; JF=function(k,p,t,J){if(t)return vw();t={};var q=W$();p=g.Z(p);for(var F=p.next();!F.done;F=p.next())if(F=F.value,k.canPlayType(q,F.getInfo().mimeType)||J){var d=F.T.video.quality;if(!t[d]||t[d].getInfo().rI())t[d]=F}k=[];t.auto&&k.push(t.auto);J=g.Z(Gw);for(q=J.next();!q.done;q=J.next())(q=t[q.value])&&k.push(q);return k.length?cw(k):vw()}; mke=function(k){this.itag=k.itag;this.url=k.url;this.codecs=k.codecs;this.width=k.width;this.height=k.height;this.fps=k.fps;this.bitrate=k.bitrate;var p;this.Y=((p=k.audioItag)==null?void 0:p.split(","))||[];this.Gr=k.Gr;this.xf=k.xf||"";this.ws=k.ws;this.audioChannels=k.audioChannels;this.T=""}; VHq=function(k,p,t,J){p=p===void 0?!1:p;t=t===void 0?!0:t;J=J===void 0?{}:J;var q={};k=g.Z(k);for(var F=k.next();!F.done;F=k.next()){F=F.value;if(p&&MediaSource&&MediaSource.isTypeSupported){var d=F.type;F.audio_channels&&(d=d+"; channels="+F.audio_channels);if(!MediaSource.isTypeSupported(d)){J[F.itag]="tpus";continue}}if(t||!F.drm_families||F.eotf!=="smpte2084"&&F.eotf!=="arib-std-b67"){d=void 0;var S={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},U=F.type.match(/codecs="([^"]*)"/); U=U?U[1]:"";F.audio_track_id&&(d=new g.th(F.name,F.audio_track_id,!!F.is_default));var f=F.eotf;F=new mke({itag:F.itag,url:F.url,codecs:U,width:Number(F.width),height:Number(F.height),fps:Number(F.fps),bitrate:Number(F.bitrate),audioItag:F.audio_itag,Gr:f?S[f]:void 0,xf:F.drm_families,ws:d,audioChannels:Number(F.audio_channels)});q[F.itag]=q[F.itag]||[];q[F.itag].push(F)}else J[F.itag]="enchdr"}return q}; WZ6=function(k,p,t,J,q){this.N=k;this.Y=p;this.X=t;this.cpn=J;this.S=q;this.C=0;this.T=""}; Dk9=function(k,p){k.N.some(function(t){var J;return((J=t.ws)==null?void 0:J.getId())===p}); k.T=p}; oj=function(k,p,t){k.cpn&&(p=g.hM(p,{cpn:k.cpn}));t&&(p=g.hM(p,{paired:t}));return p}; s20=function(k,p){k=k.itag.toString();p!==null&&(k+=p.itag.toString());return k}; LZL=function(k){for(var p=[],t=[],J=g.Z(k.Y),q=J.next();!q.done;q=J.next())q=q.value,q.bitrate<=k.C?p.push(q):t.push(q);p.sort(function(F,d){return d.bitrate-F.bitrate}); t.sort(function(F,d){return F.bitrate-d.bitrate}); k.Y=p.concat(t)}; q2=function(k,p,t){this.T=k;this.Y=p;this.expiration=t;this.oO=null}; vah=function(k,p){if(!(hO||aY()||eN()))return null;k=VHq(p,k.D("html5_filter_fmp4_in_hls"));if(!k)return null;p=[];for(var t={},J=g.Z(Object.keys(k)),q=J.next();!q.done;q=J.next()){q=g.Z(k[q.value]);for(var F=q.next();!F.done;F=q.next()){var d=F.value;d.ws&&(F=d.ws.getId(),t[F]||(d=new g.jE(F,d.ws),t[F]=d,p.push(d)))}}return p.length>0?p:null}; Q2w=function(k,p,t,J,q,F,d){if(!(hO||aY()||eN()))return vw();var S={},U=cdq(t),f=VHq(t,k.D("html5_filter_fmp4_in_hls"),k.X.Z,S);if(!f)return d({noplst:1}),vw();nai(f);t={};var b=(t.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",t),N;t=[];var y=[],Y=[],T=null,A="";J=J&&J.match(/hls_timedtext_playlist/)?new mke({itag:"0",url:J,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,ws:new g.th("English","en",!1)}):null;for(var V=g.Z(Object.keys(f)),D=V.next();!D.done;D=V.next())if(D=D.value,!k.D("html5_disable_drm_hfr_1080")|| D!=="383"&&D!=="373"){D=g.Z(f[D]);for(var v=D.next();!v.done;v=D.next())if(v=v.value,v.width){for(var w=g.Z(v.Y),X=w.next();!X.done;X=w.next())if(X=X.value,f[X]){v.T=X;break}v.T||(v.T=wve(f,v));if(w=f[v.T])if(t.push(v),v.xf==="fairplay"&&(N=b),X="",v.Gr==="PQ"?X="smpte2084":v.Gr==="HLG"&&(X="arib-std-b67"),X&&(A=X),Y.push(iHw(w,[v],J,F,v.itag,v.width,v.height,v.fps,U,void 0,void 0,N,X)),!T||v.width*v.height*v.fps>T.width*T.height*T.fps)T=v}else y.push(v)}else S[D]="disdrmhfr";Y.reduce(function(B, O){return O.getInfo().isEncrypted()&&B},!0)&&(N=b); q=Math.max(q,0);b=T||{};f=b.fps===void 0?0:b.fps;T=b.width===void 0?0:b.width;b=b.height===void 0?0:b.height;V=k.D("html5_native_audio_track_switching");Y.push(iHw(y,t,J,F,"93",T,b,f,U,"auto",q,N,A,V));Object.entries(S).length&&d(S);return JF(k.X,Y,Rr(k,p),!1)}; iHw=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y){for(var T=0,A="",V=g.Z(k),D=V.next();!D.done;D=V.next())D=D.value,A||(A=D.itag),D.audioChannels&&D.audioChannels>T&&(T=D.audioChannels,A=D.itag);q=new Re(q,"application/x-mpegURL",{audio:new w2(0,T),video:new P$(F,d,S,null,void 0,f,void 0,y),xf:N,bQ:A});k=new WZ6(k,p,t?[t]:[],J,!!Y);k.C=b?b:1369843;return new q2(q,k,U)}; cdq=function(k){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())if(p=p.value,p.url&&(p=p.url.split("expire/"),!(p.length<=1)))return+p[1].split("/")[0];return NaN}; wve=function(k,p){for(var t=g.Z(Object.keys(k)),J=t.next();!J.done;J=t.next()){J=J.value;var q=k[J][0];if(!q.width&&q.xf===p.xf&&!q.audioChannels)return J}return""}; nai=function(k){for(var p=new Set,t=g.Z(Object.values(k)),J=t.next();!J.done;J=t.next())J=J.value,J.length&&(J=J[0],J.height&&J.codecs.startsWith("vp09")&&p.add(J.height));t=[];if(p.size){J=g.Z(Object.keys(k));for(var q=J.next();!q.done;q=J.next())if(q=q.value,k[q].length){var F=k[q][0];F.height&&p.has(F.height)&&!F.codecs.startsWith("vp09")&&t.push(q)}}p=g.Z(t);for(t=p.next();!t.done;t=p.next())delete k[t.value]}; Fp=function(k,p){this.T=k;this.Y=p}; PTq=function(k,p,t,J){var q=[];t=g.Z(t);for(var F=t.next();!F.done;F=t.next()){var d=F.value;if(d.url){F=new g.yb(d.url,!0);if(d.s){var S=F,U=d.sp,f=ik9(decodeURIComponent(d.s));S.set(U,encodeURIComponent(f))}S=g.Z(Object.keys(J));for(U=S.next();!U.done;U=S.next())U=U.value,F.set(U,J[U]);d=H$(d.type,d.quality,d.itag,d.width,d.height);q.push(new Fp(d,F))}}return JF(k.X,q,Rr(k,p),!1)}; $L=function(k,p){this.T=k;this.Y=p}; Gze=function(k,p,t){var J=[];t=g.Z(t);for(var q=t.next();!q.done;q=t.next())if((q=q.value)&&q.url){var F=H$(q.type,"medium","0");J.push(new $L(F,q.url))}return JF(k.X,J,Rr(k,p),!1)}; IXu=function(k,p){var t=[],J=H$(p.type,"auto",p.itag);t.push(new $L(J,p.url));return JF(k.X,t,!1,!0)}; Rmi=function(k){return k&&Xv6[k]?Xv6[k]:null}; BpS=function(k){if(k=k.commonConfig)this.url=k.url,this.urlQueryOverride=k.urlQueryOverride,k.ustreamerConfig&&(this.eF=Js(k.ustreamerConfig)||void 0)}; zmT=function(k,p){var t;if(p=p==null?void 0:(t=p.watchEndpointSupportedOnesieConfig)==null?void 0:t.html5PlaybackOnesieConfig)k.y0=new BpS(p)}; g.dn=function(k){k=k===void 0?{}:k;this.languageCode=k.languageCode||"";this.languageName=k.languageName||null;this.kind=k.kind||"";this.name=k.name===void 0?null:k.name;this.displayName=k.displayName||null;this.id=k.id||null;this.T=k.is_servable||!1;this.isTranslateable=k.is_translateable||!1;this.url=k.url||null;this.vssId=k.vss_id||"";this.isDefault=k.is_default||!1;this.translationLanguage=k.translationLanguage||null;this.xtags=k.xtags||"";this.captionId=k.captionId||""}; g.Sa=function(k){var p={languageCode:k.languageCode,languageName:k.languageName,displayName:g.EK(k),kind:k.kind,name:k.name,id:k.id,is_servable:k.T,is_default:k.isDefault,is_translateable:k.isTranslateable,vss_id:k.vssId};k.xtags&&(p.xtags=k.xtags);k.captionId&&(p.captionId=k.captionId);k.translationLanguage&&(p.translationLanguage=k.translationLanguage);return p}; g.UK=function(k){return k.translationLanguage?k.translationLanguage.languageCode:k.languageCode}; g.emj=function(k){var p=k.vssId;k.translationLanguage&&p&&(p="t"+p+"."+g.UK(k));return p}; g.EK=function(k){var p=[];if(k.displayName)p.push(k.displayName);else{var t=k.languageName||"";p.push(t);k.kind==="asr"&&t.indexOf("(")===-1&&p.push(" (Automatic Captions)");k.name&&p.push(" - "+k.name)}k.translationLanguage&&p.push(" >> "+k.translationLanguage.languageName);return p.join("")}; gah=function(k,p,t,J){k||(k=p&&hmj.hasOwnProperty(p)&&aXi.hasOwnProperty(p)?aXi[p]+"_"+hmj[p]:void 0);p=k;if(!p)return null;k=p.match(MH9);if(!k||k.length!==5)return null;if(k=p.match(MH9)){var q=Number(k[3]),F=[7,8,10,5,6];k=!(Number(k[1])===1&&q===8)&&F.indexOf(q)>=0}else k=!1;return t||J||k?p:null}; fq=function(k,p){for(var t={},J=g.Z(Object.keys(uVT)),q=J.next();!q.done;q=J.next()){q=q.value;var F=p?p+q:q;F=k[F+"_webp"]||k[F];g.Oq(F)&&(t[uVT[q]]=F)}return t}; bb=function(k){var p={};if(!k||!k.thumbnails)return p;k=k.thumbnails.filter(function(S){return!!S.url}); k.sort(function(S,U){return S.width-U.width||S.height-U.height}); for(var t=g.Z(Object.keys(lXT)),J=t.next();!J.done;J=t.next()){var q=Number(J.value);J=lXT[q];for(var F=g.Z(k),d=F.next();!d.done;d=F.next())if(d=d.value,d.width>=q){q=j29(d.url);g.Oq(q)&&(p[J]=q);break}}(k=k.pop())&&k.width>=1280&&(k=j29(k.url),g.Oq(k)&&(p["maxresdefault.jpg"]=k));return p}; j29=function(k){return k.startsWith("//")?"https:"+k:k}; N2=function(k){return k&&k.baseUrl||""}; yX=function(k){k=g.pY(k);for(var p=g.Z(Object.keys(k)),t=p.next();!t.done;t=p.next()){t=t.value;var J=k[t];k[t]=Array.isArray(J)?J[0]:J}return k}; OH0=function(k,p){k.botguardData=p.playerAttestationRenderer.botguardData;p=p.playerAttestationRenderer.challenge;p!=null&&(k.nF=p)}; xkS=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;var J=t.interstitials.map(function(d){var S=g.e(d,KZ0);if(S)return{is_yto_interstitial:!0,raw_player_response:S};if(d=g.e(d,HHL))return Object.assign({is_yto_interstitial:!0},xl(d))}); J=g.Z(J);for(var q=J.next();!q.done;q=J.next())switch(q=q.value,t.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":k.interstitials=k.interstitials.concat({time:0,playerVars:q,WJ:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":k.interstitials=k.interstitials.concat({time:0x7ffffffffffff,playerVars:q,WJ:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var F=Number(t.podConfig.timeToInsertAtMillis);k.interstitials=k.interstitials.concat({time:F,playerVars:q, WJ:F===0?5:7})}}}; kPT=function(k,p){if(p=p.find(function(t){return!(!t||!t.tooltipRenderer)}))k.tooltipRenderer=p.tooltipRenderer}; pTe=function(k,p){p.subscribeCommand&&(k.subscribeCommand=p.subscribeCommand);p.unsubscribeCommand&&(k.unsubscribeCommand=p.unsubscribeCommand);p.addToWatchLaterCommand&&(k.addToWatchLaterCommand=p.addToWatchLaterCommand);p.removeFromWatchLaterCommand&&(k.removeFromWatchLaterCommand=p.removeFromWatchLaterCommand);p.getSharePanelCommand&&(k.getSharePanelCommand=p.getSharePanelCommand)}; tpL=function(k,p){p!=null?(k.AK=p,k.JB=!0):(k.AK="",k.JB=!1)}; YL=function(k,p){this.type=k||"";this.id=p||""}; g.TI=function(k){return new YL(k.substring(0,2),k.substring(2))}; g.rn=function(k,p){this.Cp=k;this.author="";this.ph=null;this.playlistLength=0;this.T=this.sessionData=null;this.L={};this.title="";if(p){this.author=p.author||p.playlist_author||"";this.title=p.playlist_title||"";if(k=p.session_data)this.sessionData=KF(k,"&");var t;this.T=((t=p.thumbnail_ids)==null?void 0:t.split(",")[0])||null;this.L=fq(p,"playlist_");this.videoId=p.video_id||void 0;if(t=p.list)switch(p.listType){case "user_uploads":this.playlistId=(new YL("UU","PLAYER_"+t)).toString();break;default:if(k= p.playlist_length)this.playlistLength=Number(k)||0;this.playlistId=g.TI(t).toString();if(p=p.video)this.videoId=(p[0]||null).video_id||void 0}else p.playlist&&(this.playlistLength=p.playlist.toString().split(",").length)}}; g.Z_=function(k,p){this.Cp=k;this.qV=this.author="";this.ph=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Sl=this.lengthText="";this.sessionData=null;this.L={};this.title="";if(p){this.ariaLabel=p.aria_label||void 0;this.author=p.author||"";this.qV=p.qV||"";if(k=p.endscreen_autoplay_session_data)this.ph=KF(k,"&");this.Lh=p.Lh;this.isLivePlayback=p.live_playback==="1";this.isUpcoming=!!p.isUpcoming;if(k=p.length_seconds)this.lengthSeconds=typeof k==="string"?Number(k):k;this.lengthText= p.lengthText||"";this.Sl=p.Sl||"";this.publishedTimeText=p.publishedTimeText||void 0;if(k=p.session_data)this.sessionData=KF(k,"&");this.shortViewCount=p.short_view_count_text||void 0;this.L=fq(p);this.title=p.title||"";this.videoId=p.docid||p.video_id||p.videoId||p.id||void 0;this.watchUrl=p.watchUrl||void 0}}; Jbq=function(k){var p,t,J=(p=k.getWatchNextResponse())==null?void 0:(t=p.contents)==null?void 0:t.twoColumnWatchNextResults,q,F,d,S,U;k=(q=k.getWatchNextResponse())==null?void 0:(F=q.playerOverlays)==null?void 0:(d=F.playerOverlayRenderer)==null?void 0:(S=d.endScreen)==null?void 0:(U=S.watchNextEndScreenRenderer)==null?void 0:U.results;if(!k){var f,b;k=J==null?void 0:(f=J.endScreen)==null?void 0:(b=f.endScreen)==null?void 0:b.results}return k}; g.AF=function(k){var p,t,J;k=g.e((p=k.getWatchNextResponse())==null?void 0:(t=p.playerOverlays)==null?void 0:(J=t.playerOverlayRenderer)==null?void 0:J.decoratedPlayerBarRenderer,Cq);return g.e(k==null?void 0:k.playerBar,oPi)}; qxe=function(k){this.T=k.playback_progress_0s_url;this.N=k.playback_progress_2s_url;this.Y=k.playback_progress_10s_url}; FzT=function(){if(mo===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(p){}a:{try{var k=!!self.localStorage}catch(p){k=!1}if(k&&(k=g.Qv(g.au()+"::yt-player"))){mo=new IZ(k);break a}mo=void 0}}return mo}; g.VX=function(){var k=FzT();if(!k)return{};try{var p=k.get("yt-player-lv");return JSON.parse(p||"{}")}catch(t){return{}}}; g.$gi=function(k){var p=FzT();p&&(k=JSON.stringify(k),p.set("yt-player-lv",k))}; g.Wx=function(k){return g.VX()[k]||0}; g.D_=function(k,p){var t=g.VX();p!==t[k]&&(p!==0?t[k]=p:delete t[k],g.$gi(t))}; g.sK=function(k){return g.Q(function(p){return p.return(g.B7(dg0(),k))})}; vx=function(k,p,t,J,q,F,d,S){var U,f,b,N,y,Y;return g.Q(function(T){switch(T.T){case 1:return U=g.Wx(k),U===4?T.return(4):g.n(T,g.lr(),2);case 2:f=T.Y;if(!f)throw g.TE("wiac");if(!S||d===void 0){T.oY(3);break}return g.n(T,EPi(S,d),4);case 4:d=T.Y;case 3:return b=t.lastModified||"0",g.n(T,g.sK(f),5);case 5:return N=T.Y,g.Aw(T,6),Lq++,g.n(T,g.Lz(N,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",RO:!0},function(A){if(F!==void 0&&d!==void 0){var V=""+k+"|"+p.id+"|"+b+"|"+String(F).padStart(10, "0");V=g.v7(A.objectStore("media"),d,V)}else V=g.Z4.resolve(void 0);var D=Sx_(k,p.pZ()),v=Sx_(k,!p.pZ()),w={fmts:Ugh(J),format:t||{}};D=g.v7(A.objectStore("index"),w,D);var X=J.downloadedEndTime===-1;w=X?A.objectStore("index").get(v):g.Z4.resolve(void 0);var B={fmts:"music",format:{}};A=X&&q&&!p.pZ()?g.v7(A.objectStore("index"),B,v):g.Z4.resolve(void 0);return g.Z4.all([A,w,V,D]).then(function(O){O=g.Z(O);O.next();O=O.next().value;Lq--;var l=g.Wx(k);if(l!==4&&X&&q||O!==void 0&&g.fK_(O.fmts))l=1,g.D_(k, l);return l})}),8); case 8:return T.return(T.Y);case 6:y=g.W9(T);Lq--;Y=g.Wx(k);if(Y===4)return T.return(Y);g.D_(k,4);throw y;}})}; g.bJi=function(k){var p,t;return g.Q(function(J){if(J.T==1)return g.n(J,g.lr(),2);if(J.T!=3){p=J.Y;if(!p)throw g.TE("ri");return g.n(J,g.sK(p),3)}t=J.Y;return J.return(g.Lz(t,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(q){var F=IDBKeyRange.bound(k+"|",k+"~");return q.objectStore("index").getAll(F).then(function(d){return d.map(function(S){return S?S.format:{}})})}))})}; yb0=function(k,p,t,J,q){var F,d,S;return g.Q(function(U){if(U.T==1)return g.n(U,g.lr(),2);if(U.T!=3){F=U.Y;if(!F)throw g.TE("rc");return g.n(U,g.sK(F),3)}d=U.Y;S=g.Lz(d,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(f){var b=""+k+"|"+p+"|"+t+"|"+String(J).padStart(10,"0");return f.objectStore("media").get(b)}); return q?U.return(S.then(function(f){if(f===void 0)throw Error("No data from indexDb");return NRu(q,f)}).catch(function(f){throw new g.hm("Error while reading chunk: "+f.name+", "+f.message); })):U.return(S)})}; g.fK_=function(k){return k?k==="music"?!0:k.includes("dlt=-1")||!k.includes("dlt="):!1}; Sx_=function(k,p){return""+k+"|"+(p?"v":"a")}; Ugh=function(k){var p={};return Hi((p.dlt=k.downloadedEndTime.toString(),p.mket=k.maxKnownEndTime.toString(),p.avbr=k.averageByteRate.toString(),p))}; TRS=function(k){var p={},t={};k=g.Z(k);for(var J=k.next();!J.done;J=k.next()){var q=J.value,F=q.split("|");q.match(g.YxT)?(J=Number(F.pop()),isNaN(J)?t[q]="?":(F=F.join("|"),(q=p[F])?(F=q[q.length-1],J===F.end+1?F.end=J:q.push({start:J,end:J})):p[F]=[{start:J,end:J}])):t[q]="?"}k=g.Z(Object.keys(p));for(J=k.next();!J.done;J=k.next())J=J.value,t[J]=p[J].map(function(d){return d.start+"-"+d.end}).join(","); return t}; cx=function(k){g.o$.call(this);this.T=null;this.N=new Ib;this.T=null;this.S=new Set;this.crossOrigin=k||""}; rb_=function(k,p,t){for(t=nq(k,t);t>=0;){var J=k.levels[t];if(J.isLoaded(wn(J,p))&&(J=g.ib(J,p)))return J;t--}return g.ib(k.levels[0],p)}; C9q=function(k,p,t){t=nq(k,t);for(var J,q;t>=0;t--)if(J=k.levels[t],q=wn(J,p),!J.isLoaded(q)){J=k;var F=t,d=F+"-"+q;J.S.has(d)||(J.S.add(d),J.N.enqueue(F,{jf:F,BE:q}))}ZJ_(k)}; ZJ_=function(k){if(!k.T&&!k.N.isEmpty()){var p=k.N.remove();k.T=Abj(k,p)}}; Abj=function(k,p){var t=document.createElement("img");k.crossOrigin&&(t.crossOrigin=k.crossOrigin);t.src=k.levels[p.jf].b1(p.BE);t.onload=function(){var J=p.jf,q=p.BE;k.T!==null&&(k.T.onload=null,k.T=null);J=k.levels[J];J.loaded.add(q);ZJ_(k);var F=J.columns*J.rows;q*=F;J=Math.min(q+F-1,J.pg()-1);q=[q,J];k.publish("l",q[0],q[1])}; return t}; g.QX=function(k,p,t,J){this.level=k;this.C=p;this.loaded=new Set;this.level=k;this.C=p;k=t.split("#");this.width=Math.floor(Number(k[0]));this.height=Math.floor(Number(k[1]));this.frameCount=Math.floor(Number(k[2]));this.columns=Math.floor(Number(k[3]));this.rows=Math.floor(Number(k[4]));this.T=Math.floor(Number(k[5]));this.N=k[6];this.signature=k[7];this.videoLength=J}; wn=function(k,p){return Math.floor(p/(k.columns*k.rows))}; g.ib=function(k,p){p>=k.fl()&&k.oz();var t=wn(k,p),J=k.columns*k.rows,q=p%J;p=q%k.columns;q=Math.floor(q/k.columns);var F=k.oz()+1-J*t;if(F<k.columns){var d=F;J=1}else d=k.columns,J=F<J?Math.ceil(F/k.columns):k.rows;return{url:k.b1(t),column:p,columns:d,row:q,rows:J,Wm:k.width*d,WI:k.height*J}}; Px=function(k,p,t,J,q){J=J===void 0?!1:J;q=q===void 0?!1:q;cx.call(this,t);this.isLive=J;this.Z=!!q;this.levels=this.Y(k,p);this.C=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; mge=function(k,p,t){return(k=k.levels[p])?k.IR(t):-1}; nq=function(k,p){var t=k.C.get(p);if(t)return t;t=k.levels.length;for(var J=0;J<t;J++)if(k.levels[J].width>=p)return k.C.set(p,J),J;k.C.set(p,t-1);return t-1}; GI=function(k,p,t,J){t=t.split("#");t=[t[1],t[2],0,t[3],t[4],-1,t[0],""].join("#");g.QX.call(this,k,p,t,0);this.Y=null;this.X=J?2:0}; Ij=function(k,p,t,J){Px.call(this,k,0,void 0,p,!(J===void 0||!J));for(k=0;k<this.levels.length;k++)this.levels[k].v2(t)}; Vpi=function(k,p,t){p={cpn:p};k.indexOf("/ibw/")===-1&&(p.ibw=t?String(t):"1369843");return{url:g.hM(k,p),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; g.Rj=function(k,p){g.o$.call(this);var t=this;this.Cp=k;this.adaptiveFormats="";this.XF=this.hR=this.adQueryId=this.tR=null;this.nk={start:NaN,end:NaN};this.cueRanges=this.xf=null;this.tE=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.M5=void 0;this.gA=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.k8="";this.VQ=!1;this.o6=null;this.Gt=this.p7=this.vJ=!1;this.C=null;this.iQ=this.yr=!1;this.wd= NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.rk=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Yo=0;this.u2=!1;this.dh=this.cycToken=null;this.author="";this.QH=!1;this.W0=0;this.MG=!1;this.m8=null;this.TB=[];this.iB=this.rW=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Fd=this.Xn="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds= this.endSeconds=this.ez=0;this.Oo=this.v0=this.Y=null;this.KC="";this.loading=!1;this.Kb=this.qG=0;this.H$=this.pipable=this.x0=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.VA=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.B0=this.isPrivate=this.isListed=this.hc=this.Q4=!1;this.JU="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.g1=this.Oy=this.FA=!1;this.latencyClass="UNKNOWN";this.Eq= this.Nm=this.mj=this.dR=this.Yk=this.enablePreroll=this.I2=this.enableServerStitchedDai=this.Ur=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.yn=0;this.reloadReason="";this.a5=this.PZ=this.lm=!1;this.keywords={};this.qW="";this.zv=0;this.rE=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Eo=null;this.md=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.Az=this.paygated=!1;this.po= [];this.SB=!1;this.P0=[];this.Oe=null;this.S1=this.racyCheckOk=!1;this.Xj={};this.isProximaLatencyEligible=!1;this.cM=0;this.N=null;this.autonavState=1;this.TW=null;this.shortDescription="";this.NO=this.xM=!1;this.Ji=this.nE=this.startSeconds=0;this.Pt=this.B9=this.jG=Xp;this.vt=this.suggestions=null;this.In=this.Wt=void 0;this.isExternallyHostedPodcast=!1;this.q_=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.z5=void 0;this.gs=[];this.rK=[];this.hlsFormats=this.vQ= "";this.jl=this.LP=this.Ta=this.UF=this.Jp=this.QK=this.EZ=null;this.Q$="vvt";this.nL=!1;this.gW=null;this.IL="";this.Yq=NaN;this.Em=this.OA=this.cJ=this.SG=this.q5=this.xd=this.Vo=this.gE=this.k0=this.ym="";this.jd=null;this.y3=!1;this.Z={};this.clipStart=0;this.clipEnd=Infinity;this.NJ=!1;this.heartbeatToken="";this.Kx=this.Cx=NaN;this.kx=this.du=this.gp=this.Z_=this.Pu=!1;this.CI=!0;this.L={};this.captionTracks=[];this.wh=[];this.N6=0;this.Ha=[];this.G5=[];this.wc=!1;this.z8={};this.gK=new g.jE("und", new g.th("Default","und",!0));this.UO=0;this.X=null;this.WV=[];this.NZ=!1;this.QQ=this.UQ="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.RY=this.rh=this.So=this.playerResponse=this.ag=this.s0=this.xb=this.b6=this.Ku=this.Wa=this.D4=null;this.UA=!1;this.gy=null;this.isInlinePlaybackNoAd=this.YN=this.yc=this.useCobaltWidevine=this.kR=this.z1=!1;this.JX=!0;this.V4=this.Xo=NaN;this.defraggedFromSubfragments=this.zf=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN; this.sabrContextUpdates=new Map;this.pP="";this.Le=!1;this.gatewayExperimentGroup="";this.bA=this.pp=this.kC=!1;this.interstitials=[];this.JB=this.yJ=!1;this.AK="";this.allowImaMonetization=!1;this.Se="";this.kE=!1;this.SF="";this.hK=[];this.T8=[];this.GI="";this.iC=this.B=this.oR=!1;this.Rc="";this.I7=this.ys=this.HJ=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.xY=!1;this.FE=this.hB=!0;this.errorDetail=this.userGenderAge=""; this.Ba=this.JE=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.cS=this.errorReason=this.errorCode=null;this.dc=this.Ht="";this.OS=!1;this.xS=[];this.jW=this.qO=this.aO=this.Pj=this.P3=0;this.fetchType=null;this.fz=!0;this.transitionEndpointAtEndOfStream=void 0;this.va=this.X$=-1;this.Qr=this.v3=!1;this.fZ=null;this.IY="";this.mE=!1;this.watchUrl=null;this.Qx=[];this.visibleOnLoadKeys=[];this.qp= [];this.inlineMetricEnabled=this.AP=!1;this.embedsRctn=this.embedsRct="";this.kc=NaN;this.mP=(0,g.V9)();this.Fx=this.mu=0;this.eF=null;this.l1=0;this.St=this.YO=!1;this.mW=this.Cp.experiments.Gb("html5_use_triple_equals");this.Ro=!1;this.Te=g.dU(this.Cp.experiments,"html5_gapless_loop_seek_offset_in_milli");this.Vs=0;this.mL={};this.u3={setData:function(J){t.setData(J)}, DY:function(){t.DY()}, y_:function(J){t.y_(J)}}; this.v3=this.D("web_new_autonav_countdown");this.Qr=this.D("web_new_big_thumbnail_endscreen");this.setData(p);this.Bt=new ov;g.z(this,this.Bt)}; g.ea=function(k,p,t){p&&p.cpn&&g.wt(new g.hm("CPN provided in VideoData update",{vT0:p.cpn,ax:k.clientPlaybackNonce,N4G:t}));t?(ou(p),k.setData(p),Bx(k)&&k.DY()):(p=p||{},WzL(k,p),zI(k,p),Dgi(k,p),k.publish("dataupdated"))}; Dgi=function(k,p){k.fflags=tm(k.fflags,p.fflags);var t=p.iv_invideo_url;t&&(k.k8=Kk(t));k.VQ=xX(k.VQ,p.iv_ads_only);if(t=p.cta_conversion_urls)k.LO=t;k.isPharma=xX(k.isPharma,p.is_pharma);k.author=tm(k.author,p.author);k.Xn=sh9(p.ttsurl)||k.Xn;k.MG=xX(k.MG,p.cc_asr);k.Fd=tm(k.Fd,p.channel_path);if(t=p.profile_picture)k.profilePicture=tm(k.profilePicture,t);k.videoCountText=tm(k.videoCountText,p.video_count_text);k.autonavState=k9(k.autonavState,p.autonav_state,Lz_);if(k.D("html5_enable_ssap_entity_id")){var J; t=!!p.cotn||!((J=k.playerResponse)==null||!J.cotn);J=g.dU(k.Cp.experiments,"html5_entity_id_simplified_preferred_record_size");k.playerResponse&&!t&&(k.clientPlaybackNonce=vPi(k,k.playerResponse,J)||k.clientPlaybackNonce);k.clientPlaybackNonce||(p.cpn&&k.KP("ssei","uhdc"),k.clientPlaybackNonce=tm(k.clientPlaybackNonce,p.cpn))}else k.clientPlaybackNonce=tm(k.clientPlaybackNonce,p.cpn);k.subscribed=xX(k.subscribed,p.subscribed);k.rawViewCount=pG(k.rawViewCount,p.view_count);k.shortViewCount=tm(k.shortViewCount, p.short_view_count_text);k.publishedTimeText=tm(k.publishedTimeText||"",p.publishedTimeText);k.lengthText=tm(k.lengthText||"",p.lengthText);k.Sl=tm(k.Sl||"",p.Sl);k.qV=tm(k.qV||"",p.qV);k.title=tm(k.title,p.title);k.subtitle=tm(k.subtitle,p.subtitle);k.expandedTitle=tm(k.expandedTitle,p.expanded_title);k.expandedSubtitle=tm(k.expandedSubtitle,p.expanded_subtitle);k.ypcPreview=tm(k.ypcPreview,p.ypc_preview);k.E6=tm(k.E6,p.ypc_origin);k.nL=xX(k.nL,p.ypc_is_premiere_trailer);k.Rc=tm(k.Rc,p.ypc_clickwrap_message); k.paygated=xX(k.paygated,p.paygated);k.y3=xX(k.y3,p.requires_purchase);k.showShareButton=!xX(!k.showShareButton,p.ss);k.hB=xX(k.hB,p.showwatchlater);k.FE=xX(k.FE,p.shownotifybutton);k.xY=xX(k.xY,p.copy_share);if(J=p.el)k.eventLabel=J;if(J=p.keywords)k.keywords=cb9(J.split(","));if(J=p.rvs)k.suggestions=kX(J).map(function(q){return q.playlist||q.list||q.api?new g.rn(k.Cp,q):new g.Z_(k.Cp,q)}); k.contentCheckOk=xX(k.contentCheckOk,p.cco);k.racyCheckOk=xX(k.racyCheckOk,p.rco);k.isLivingRoomDeeplink=xX(k.isLivingRoomDeeplink,p.is_living_room_deeplink);k.oauthToken=tm(k.oauthToken,p.oauth_token);k.qW=tm(k.qW,p.kpt);k.visitorData=tm(k.visitorData,p.visitor_data);if(J=p.session_data)k.sessionData=KF(J,"&");k.L2=tm(k.L2,p.endscreen_ad_tracking_data);k.nO=xX(k.nO,p.wait_for_vast_info_cards_xml);k.G8=xX(k.G8,p.suppress_creator_endscreen);k.Kz=xX(k.Kz,p.is_trueview_action);k.fO=tm(k.fO,p.tracking_list); k.Ht=tm(k.Ht,p.clip);k.dc=tm(k.dc,p.clipt);nPM(k,p)}; vPi=function(k,p,t){var J,q=(J=p.cpnInfo)==null?void 0:J.cpn;k.playerResponseCpn=q!=null?q:"";g.hF(k)&&!q&&k.KP("ssei","eim_"+k.clientPlaybackNonce);var F;return((F=p.cacheMetadata)==null?0:F.isCacheHit)||k.iB||!q?"":(aj.has(q)?t="":(p=wTq.push(q),aj.add(q),p>(t!=null?t:50)&&(t=wTq.shift())&&aj.delete(t),t=q),q!==t&&k.KP("ssei","dcpn_"+q+"_"+t+"_"+k.clientPlaybackNonce),t)}; zI=function(k,p){var t=p.raw_watch_next_response;if(!t){var J=p.watch_next_response;J&&(t=JSON.parse(J))}if(t){k.RY=t;var q=k.RY.playerCueRangeSet;q&&g.M2(k,q);var F=k.RY.playerOverlays;if(F){var d=F.playerOverlayRenderer;if(d){var S=d.autonavToggle;S&&(k.autoplaySwitchButtonRenderer=g.e(S,iJi),k.D("web_player_autonav_use_server_provided_state")&&gn(k)&&(k.autonavState=k.autoplaySwitchButtonRenderer.enabled?2:1));var U=d.videoDetails;if(U){var f=U.embeddedPlayerOverlayVideoDetailsRenderer;var b=U.playerOverlayVideoDetailsRenderer; b&&(b.title&&(p.title=g.f1(b.title)),b.subtitle&&(p.subtitle=g.f1(b.subtitle)))}g.cs(k.Cp)&&(k.hB=!!d.addToMenu);Qh0(k,d.shareButton);d.startPosition&&d.endPosition&&(k.progressBarStartPosition=d.startPosition,k.progressBarEndPosition=d.endPosition);var N=d.gatedActionsOverlayRenderer;N&&(k.aL=g.e(N,P9M));var y,Y,T,A=g.e((y=k.getWatchNextResponse())==null?void 0:(Y=y.playerOverlays)==null?void 0:(T=Y.playerOverlayRenderer)==null?void 0:T.infoPanel,GP6);if(A){k.kc=Number(A==null?void 0:A.durationMs)|| NaN;if(A==null?0:A.infoPanelOverviewViewModel)k.Dw=A==null?void 0:A.infoPanelOverviewViewModel;if(A==null?0:A.infoPanelDetailsViewModel)k.Yd=A==null?void 0:A.infoPanelDetailsViewModel}k.showSeekingControls=!!d.showSeekingControls}}var V,D,v=(V=k.getWatchNextResponse())==null?void 0:(D=V.contents)==null?void 0:D.twoColumnWatchNextResults;if(v){var w=v.desktopOverlay&&g.e(v.desktopOverlay,IKh);w&&(w.suppressShareButton&&(k.showShareButton=!1),w.suppressWatchLaterButton&&(k.hB=!1))}f&&XTh(k,p,f);var X= pG(0,p.autoplay_count),B=k.getWatchNextResponse(),O,l=(O=B.contents)==null?void 0:O.twoColumnWatchNextResults,oi,$h,kh,h=(oi=B.playerOverlays)==null?void 0:($h=oi.playerOverlayRenderer)==null?void 0:(kh=$h.autoplay)==null?void 0:kh.playerOverlayAutoplayRenderer,x=Jbq(k),C,a=(C=B.contents)==null?void 0:C.singleColumnWatchNextResults;if(a){var zL;if(((zL=a.autoplay)==null?0:zL.autoplay)&&!a.playlist){var AC=a.autoplay.autoplay.sets,bJ={},LS=new g.Z_(k.G()),KS=null,JC;if(AC){for(var Yn=g.Z(AC),W=Yn.next();!W.done;W= Yn.next()){var L=W.value.autoplayVideoRenderer;if(L&&L.compactVideoRenderer){KS=L.compactVideoRenderer;break}}if(JC=AC[0].autoplayVideo){var c=JC.clickTrackingParams;c&&(bJ.itct=c);bJ.autonav="1";bJ.playnext=String(X)}}else bJ.feature="related-auto";var P=g.e(JC,g.ub);if(KS){LS.videoId=KS.videoId;var I=KS.shortBylineText;I&&(LS.author=g.f1(I));var pS=KS.title;pS&&(LS.title=g.f1(pS))}else P!=null&&P.videoId&&(LS.videoId=P.videoId);LS.ph=bJ;k.suggestions=[];k.vt=LS}}if(x){for(var q_=[],Fe=g.Z(x),G= Fe.next();!G.done;G=Fe.next()){var U0=G.value,Yh=void 0,E0=null;if(U0.endScreenVideoRenderer){var wT=U0.endScreenVideoRenderer,NQ=wT.title;E0=new g.Z_(k.G());E0.videoId=wT.videoId;E0.lengthSeconds=wT.lengthInSeconds||0;var RL=wT.publishedTimeText;RL&&(E0.publishedTimeText=g.f1(RL));var bP=wT.shortBylineText;bP&&(E0.author=g.f1(bP));var M_=wT.shortViewCountText;M_&&(E0.shortViewCount=g.f1(M_));if(NQ){E0.title=g.f1(NQ);var B4=NQ.accessibility;if(B4){var Eb=B4.accessibilityData;Eb&&Eb.label&&(E0.ariaLabel= Eb.label)}}var wx=wT.navigationEndpoint;if(wx){Yh=wx.clickTrackingParams;var ML=g.e(wx,g.ub),Uk=g.e(wx,g.i3);ML?E0.Lh=ML:Uk!=null&&(E0.watchUrl=Uk.url)}var h1=wT.thumbnailOverlays;if(h1)for(var ze=g.Z(h1),an=ze.next();!an.done;an=ze.next()){var Ce=an.value.thumbnailOverlayTimeStatusRenderer;if(Ce)if(Ce.style==="LIVE"){E0.isLivePlayback=!0;break}else if(Ce.style==="UPCOMING"){E0.isUpcoming=!0;break}}E0.L=bb(wT.thumbnail)}else if(U0.endScreenPlaylistRenderer){var fE=U0.endScreenPlaylistRenderer,wv= fE.navigationEndpoint;if(!wv)continue;var b5=g.e(wv,g.ub);if(!b5)continue;var ig=b5.videoId;E0=new g.rn(k.G());E0.playlistId=fE.playlistId;E0.playlistLength=Number(fE.videoCount)||0;E0.T=ig||null;E0.videoId=ig;var ip=fE.title;ip&&(E0.title=g.f1(ip));var QQ=fE.shortBylineText;QQ&&(E0.author=g.f1(QQ));Yh=wv.clickTrackingParams;E0.L=bb(fE.thumbnail)}E0&&(Yh&&(E0.sessionData={itct:Yh}),q_.push(E0))}k.suggestions=q_}if(h){k.fz=!!h.preferImmediateRedirect;k.v3=k.v3||!!h.webShowNewAutonavCountdown;k.Qr= k.Qr||!!h.webShowBigThumbnailEndscreen;if(k.v3||k.Qr){var sL=l||null,H4=new g.Z_(k.G());H4.videoId=h.videoId;var Ma=h.videoTitle;if(Ma){H4.title=g.f1(Ma);var Jj=Ma.accessibility;if(Jj){var mE=Jj.accessibilityData;mE&&mE.label&&(H4.ariaLabel=mE.label)}}var I3=h.byline;I3&&(H4.author=g.f1(I3));var NW=h.publishedTimeText;NW&&(H4.publishedTimeText=g.f1(NW));var Ni=h.shortViewCountText;Ni&&(H4.shortViewCount=g.f1(Ni));var yG=h.thumbnailOverlays;if(yG)for(var YS=g.Z(yG),t7=YS.next();!t7.done;t7=YS.next()){var Fj= t7.value.thumbnailOverlayTimeStatusRenderer;if(Fj)if(Fj.style==="LIVE"){H4.isLivePlayback=!0;break}else if(Fj.style==="UPCOMING"){H4.isUpcoming=!0;break}else if(Fj.style==="DEFAULT"&&Fj.text){H4.lengthText=g.f1(Fj.text);var J7=Fj.text.accessibility;if(J7){var oF=J7.accessibilityData;oF&&oF.label&&(H4.Sl=oF.label||"")}break}}H4.L=bb(h.background);var T0=h.nextButton;if(T0){var r0=T0.buttonRenderer;if(r0){var ZE=r0.navigationEndpoint;if(ZE){var Cr=g.e(ZE,g.ub);Cr&&(H4.Lh=Cr)}}}if(h.topBadges){var AN= h.topBadges[0];if(AN){var mr=g.e(AN,Rrw);mr&&mr.style==="BADGE_STYLE_TYPE_PREMIUM"&&(H4.pQT=!0)}}var QR=h.alternativeTitle;QR&&(H4.qV=g.f1(QR));var VD={autonav:"1",playnext:String(X)};H4.playlistId&&(VD.autoplay="1");if(sL){var Pe,g8,qT,VG,Fu=(Pe=sL.autoplay)==null?void 0:(g8=Pe.autoplay)==null?void 0:(qT=g8.sets)==null?void 0:(VG=qT[0])==null?void 0:VG.autoplayVideo;if(Fu){var Wo=Fu.clickTrackingParams;Wo&&(VD.itct=Wo);var $y=g.e(Fu,g.ub);$y&&(H4.TW=$y)}}else if(h){var DE,sI,Lr,vo=(DE=h.nextButton)== null?void 0:(sI=DE.buttonRenderer)==null?void 0:(Lr=sI.navigationEndpoint)==null?void 0:Lr.clickTrackingParams;vo&&(VD.itct=vo)}VD.itct||(VD.feature="related-auto");H4.ph=VD;k.suggestions||(k.suggestions=[]);k.vt=H4}h.countDownSecs!=null&&(k.X$=h.countDownSecs*1E3);h.countDownSecsForFullscreen!=null&&(k.va=h.countDownSecsForFullscreen>=0?h.countDownSecsForFullscreen*1E3:-1);k.D("web_autonav_color_transition")&&h.watchToWatchTransitionRenderer&&(k.watchToWatchTransitionRenderer=g.e(h.watchToWatchTransitionRenderer, BR_))}var dk=Jbq(k);if(dk){var yr,co,E_,SR=dk==null?void 0:(yr=dk[0])==null?void 0:(co=yr.endScreenVideoRenderer)==null?void 0:(E_=co.navigationEndpoint)==null?void 0:E_.clickTrackingParams,nr=g.lb(k);SR&&nr&&(nr.sessionData={itct:SR})}k.RY.currentVideoThumbnail&&(k.L=bb(k.RY.currentVideoThumbnail));var Gl,w0,iV,I7,QG,YZ=(Gl=k.RY)==null?void 0:(w0=Gl.contents)==null?void 0:(iV=w0.twoColumnWatchNextResults)==null?void 0:(I7=iV.results)==null?void 0:(QG=I7.results)==null?void 0:QG.contents;if(YZ&&YZ[1]){var Po, G0,DU,AH,PZ=(Po=YZ[1].videoSecondaryInfoRenderer)==null?void 0:(G0=Po.owner)==null?void 0:(DU=G0.videoOwnerRenderer)==null?void 0:(AH=DU.thumbnail)==null?void 0:AH.thumbnails;PZ&&PZ.length&&(k.profilePicture=PZ[PZ.length-1].url)}var IU=ou(p),U_,Tp=(U_=k.getWatchNextResponse())==null?void 0:U_.onResponseReceivedEndpoints;if(Tp)for(var rX=g.Z(Tp),f4=rX.next();!f4.done;f4=rX.next()){var Gc=f4.value;g.e(Gc,OK)&&(k.qm=g.e(Gc,OK));var Z1=g.e(Gc,zre),XN=void 0;if((XN=Z1)==null?0:XN.entityKeys)k.Qx=Z1.entityKeys|| [],Z1.visibleOnLoadKeys&&(k.visibleOnLoadKeys=Z1.visibleOnLoadKeys)}if(k.D("web_key_moments_markers")){var R7=g.Kq.getState().entities,d5=g.o0("visibility_override","markersVisibilityOverrideEntity");var X3=FG(R7,"markersVisibilityOverrideEntity",d5);k.gs=(X3==null?void 0:X3.videoId)===(k.videoId||IU)&&(X3==null?0:X3.visibilityOverrideMarkersKey)?X3.visibilityOverrideMarkersKey:k.visibleOnLoadKeys;k.visibleOnLoadKeys=[].concat(g.m(k.gs))}}}; gn=function(k){var p;return((p=k.autoplaySwitchButtonRenderer)==null?void 0:p.enabled)!==void 0}; Hx=function(k){return!!(k.N&&k.N.videoInfos&&k.N.videoInfos.length)}; g.Jx=function(k){var p=k.B;k.D("html5_gapless_unlimit_format_selection")&&xL(k)&&(p=!1);var t=!!k.T&&k.T.m2,J=k.Cp,q=k.yU(),F=ku(k),d=k.pp,S=p,U=k.isOtf();p=k.Hu();var f=k.B0,b=k.getUserAudio51Preference(),N=py(k),y=new NmS(J);if(J.DB()||J.D("html5_logging_format_selection"))y.Y=!0;y.W0=F;y.pp=d&&J.Z;y.Oy=b;g.RY("windows nt 5.1")&&!g.PL&&(y.qQ=!0);if(F=q)F=g.ji(J)?Npi(J):!1;F&&(y.Y8=!0);S&&(y.qQ=!0,y.yn=!0);U&&!J.D("html5_otf_prefer_vp9")&&(y.qQ=!0);J.playerStyle==="picasaweb"&&(U&&(y.qQ=!1),y.NO= !1);f&&(y.qQ=!0);bf(J.X,NB.CHANNELS)&&(J.D("html5_enable_ac3")&&(y.C=!0),J.D("html5_enable_eac3")&&(y.X=!0),J.D("html5_enable_ac3_gapless")&&(y.qO=!0));J.D("html5_block_8k_hfr")&&(y.v0=!0);y.S=g.dU(J.experiments,"html5_max_selectable_quality_ordinal");y.Z=g.dU(J.experiments,"html5_min_selectable_quality_ordinal");Om&&(y.aO=480);if(t||q)y.NO=!1;y.B0=!1;y.disableAv1=N;t=D9(J,y.T,void 0,y.disableAv1);t>0&&t<2160&&(UI()||J.D("html5_format_hybridization"))&&(y.T.supportsChangeType=+UI(),y.Ok=t);t>=2160&& (y.j6=!0);ebT()&&(y.T.serveVp9OverAv1IfHigherRes=0,y.jW=!1);y.Hu=p;y.IY=g.ag||KY()&&!p?!1:!0;y.B=J.D("html5_format_hybridization");y.qW=J.D("html5_disable_encrypted_vp9_live_non_2k_4k");tx(k)&&(y.UQ=k.D("html5_prefer_language_over_codec"));eN()&&k.playerResponse&&k.playerResponse.playerConfig&&k.playerResponse.playerConfig.webPlayerConfig&&k.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(y.C=!0,y.X=!0);k.B&&k.isAd()&&(k.Wt&&(y.gy=k.Wt),k.In&&(y.N=k.In));y.RY=k.isLivePlayback&& k.CH()&&k.Cp.D("html5_drm_live_audio_51");y.gs=k.yc;return k.fZ=y}; py=function(k){return k.Cp.D("html5_disable_av1")||k.D("html5_gapless_shorts_disable_av1")&&xL(k)?!0:!1}; eru=function(k){Gg("drm_pb_s",void 0,k.IY);k.v0||k.T&&dC(k.T);var p={};k.T&&(p=kw0(k.Bt,g.Jx(k),k.Cp.X,k.T,function(t){return k.publish("ctmp","fmtflt",t)},!0,new Set)); p=new e1(p,k.Cp,k.kR,k.useCobaltWidevine?eN()?o7(k):!1:!1,function(t,J){k.yT(t,J)}); g.z(k,p);k.du=!1;k.loading=!0;DwM(p,function(t){Gg("drm_pb_f",void 0,k.IY);for(var J=g.Z(t),q=J.next();!q.done;q=J.next())switch(q=q.value,q.flavor){case "fairplay":q.v0=k.v0;q.RU=k.RU;q.uE=k.uE;break;case "widevine":q.Oo=k.Oo}k.WV=t;if(k.WV.length>0&&(k.X=k.WV[0],k.Cp.DB())){t={};J=g.Z(Object.entries(k.X.T));for(q=J.next();!q.done;q=J.next()){var F=g.Z(q.value);q=F.next().value;F=F.next().value;var d="unk";(q=q.match(/(.*)codecs="(.*)"/))&&(d=q[2]);t[d]=F}k.yT("drmProbe",t)}k.DY()})}; hrh=function(k,p){if(p.length===0||qC(k))return null;FO(k,"html5_enable_cobalt_experimental_vp9_decoder")&&(m2=!0);var t=k.xf;var J=k.lengthSeconds,q=k.isLivePlayback,F=k.FA,d=k.Cp,S=xi6(p);if(q||F){d=d.experiments;J=new $m("",d,!0);J.Y=!F;J.m2=!0;J.isManifestless=!0;J.isLive=!F;J.FA=F;p=g.Z(p);for(q=p.next();!q.done;q=p.next()){var U=q.value;q=S1(U,t);S=A6(U);S=fR(S.bC||U.url||"",S.Po,S.s);var f=S.get("id");f&&f.includes("%7E")&&(J.L=!0);var b=void 0;f=(b=d)==null?void 0:b.Gb("html5_max_known_end_time_rebase"); b=Number(U.targetDurationSec||5);U=Number(U.maxDvrDurationSec||14400);var N=Number(S.get("mindsq")||S.get("min_sq")||"0"),y=Number(S.get("maxdsq")||S.get("max_sq")||"0")||Infinity;J.P3=J.P3||N;J.Pj=J.Pj||y;var Y=!KC(q.mimeType);S&&os(J,new Mr(S,q,{JM:b,D0:Y,VK:U,P3:N,Pj:y,P4:300,FA:F,Ho:f}))}t=J}else if(S==="FORMAT_STREAM_TYPE_OTF"){J=J===void 0?0:J;F=new $m("",d.experiments,!1);F.duration=J||0;d=g.Z(p);for(J=d.next();!J.done;J=d.next())J=J.value,p=S1(J,t,F.duration),q=A6(J),(q=fR(q.bC||J.url||"", q.Po,q.s))&&(p.streamType==="FORMAT_STREAM_TYPE_OTF"?os(F,new gj(q,p,"sq/0")):os(F,new pR(q,p,Wk(J.initRange),Wk(J.indexRange))));F.isOtf=!0;t=F}else{J=J===void 0?0:J;F=new $m("",d.experiments,!1);F.duration=J||0;d=g.Z(p);for(J=d.next();!J.done;J=d.next())S=J.value,J=S1(S,t,F.duration),p=Wk(S.initRange),q=Wk(S.indexRange),f=A6(S),(S=fR(f.bC||S.url||"",f.Po,f.s))&&os(F,new pR(S,J,p,q));t=F}F=k.isLivePlayback&&!k.FA&&!k.Oy&&!k.isPremiere;k.D("html5_live_head_playable")&&(!$u(k)&&F&&k.yT("missingLiveHeadPlayable", {}),k.Cp.gy==="yt"&&(t.W0=!0));return t}; qC=function(k){return eN()?!o7(k):aY()?!(!k.v0||!k.D("html5_enable_safari_fairplay")&&KR()):!1}; o7=function(k){return k.D("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.M2=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next())if(t=t.value,t.cueRangeSetIdentifier){var J=void 0;k.tE.set(t.cueRangeSetIdentifier,(J=t.playerCueRanges)!=null?J:[])}}; dS=function(k){return!(!k.T||!k.T.isManifestless)}; E5=function(k){return k.mW?k.isLowLatencyLiveStream&&k.T!=null&&Ym(k.T)>=5:k.isLowLatencyLiveStream&&k.T!=void 0&&Ym(k.T)>=5}; aKM=function(k){return eN()&&o7(k)?!1:qC(k)&&(g.Ck(k.Cp)?!k.isLivePlayback:k.hlsvp)||!KR()||k.rW?!0:!1}; uFh=function(k){k.loading=!0;k.gp=!1;if(Mpi(k))g.bJi(k.videoId).then(function(J){gPq(k,J)}).then(function(){k.DY()}); else{jC(k.nT)||g.wt(new g.hm("DASH MPD Origin invalid: ",k.nT));var p=k.nT,t=g.dU(k.Cp.experiments,"dash_manifest_version")||4;p=g.hM(p,{mpd_version:t});k.isLowLatencyLiveStream&&k.latencyClass!=="NORMAL"||(p=g.hM(p,{pacing:0}));$wi(p,k.Cp.experiments,k.isLivePlayback).then(function(J){k.MO()||(SJ(k,J,!0),Gg("mrc",void 0,k.IY),k.DY())},function(J){k.MO()||(k.loading=!1,k.publish("dataloaderror",new AD("manifest.net.retryexhausted",{backend:"manifest", rc:J.status},1)))}); Gg("mrs",void 0,k.IY)}}; gPq=function(k,p){var t=p.map(function(U){return U.itag}),J; if((J=k.playerResponse)!=null&&J.streamingData){J=[];if(k.D("html5_offline_always_use_local_formats")){t=0;for(var q=g.Z(p),F=q.next();!F.done;F=q.next()){F=F.value;var d=Object.assign({},F);d.signatureCipher="";J.push(d);d=g.Z(k.playerResponse.streamingData.adaptiveFormats);for(var S=d.next();!S.done;S=d.next())if(S=S.value,F.itag===S.itag&&F.xtags===S.xtags){t+=1;break}}t<p.length&&k.yT("offnpf",{prlen:t,lflen:p.length})}else for(q=g.Z(k.playerResponse.streamingData.adaptiveFormats),d=q.next(), F={};!d.done;F={rd:void 0},d=q.next())if(F.rd=d.value,k.D("html5_fix_multi_audio_offline_playback"))for(d=g.Z(p),S=d.next();!S.done;S=d.next())S=S.value,S.itag===F.rd.itag&&S.xtags===F.rd.xtags&&(F.rd=Object.assign({},F.rd),F.rd.url=p.find(function(U){return function(f){return f.itag===U.rd.itag}}(F)).url,F.rd.signatureCipher="",J.push(F.rd)); else t.includes(F.rd.itag)&&(F.rd=Object.assign({},F.rd),F.rd.url=p.find(function(U){return function(f){return f.itag===U.rd.itag}}(F)).url,F.rd.signatureCipher="",J.push(F.rd)); J.length<2&&k.yT("offmlf",{len:J.length});p=hrh(k,J);ku(k)&&UwL(p,!1);SJ(k,p);k.yT("dlr",{})}else k.yT("offsdm",{cotn:k.rh?k.rh.cotn:"0",cpn:k.clientPlaybackNonce})}; lKT=function(k){var p;return!((p=k.Cp.getWebPlayerContextConfig())==null||!p.enableProximaLowLatency)}; U5=function(k){if(!k.isProximaLatencyEligible)return 0;var p=iy();return lKT(k)?2:p===1?1:k.D("html5_enable_proxima")?2:0}; SJ=function(k,p,t){t=t===void 0?!1:t;k.kS=void 0;k.T=p;g.z(k,p);p.P3=k.P3;p.Pj=k.Pj;p.qO=k.qO;p.aO=k.aO;p.jW=k.jW;k.BR&&(p.B=new Nr(k.BR));(k.yU()||g.fy(k))&&k.P0.push("webgl");k.T.isLive||(k.isLivePlayback=!1);var J=p.sourceUrl.split("/");if(k.mW?J.indexOf("manifest_duration")!==-1:J.indexOf("manifest_duration")!=-1)k.Eo=Number(J[J.indexOf("manifest_duration")+1]);if(p.Y||p.isManifestless)p.subscribe("clienttemp",k.yT,k),t?p.subscribe("refresh",k.P6,k):p.subscribe("cuepointsadded",k.Mi,k);dC(p)? k.du=!0:as=void 0;k.Oy&&(p.C=k.Oy,p.isLive=!0,k.isLivePlayback=!0);p.isPremiere=k.isPremiere;p.isLiveHeadPlayable=k.isLiveHeadPlayable}; jh6=function(k,p){var t=p||aKM(k)||k.isExternallyHostedPodcast;if(!k.T||t)return k.yT("skipDash",{dm:!!k.T,air:p,dd:k.rW,mss:KR(),"3pp":k.isExternallyHostedPodcast}),vw();ku(k)&&UwL(k.T,k.isLivePlayback);FO(k,"html5_enable_cobalt_experimental_vp9_decoder")&&eQi(k.Cp.X);return cw().then(function(){return tm6(k.Bt,g.Jx(k),k.Cp.X,k.T,k.X,function(J){return k.publish("ctmp","fmtflt",J)},k.T8,tx(k)&&k.D("html5_enable_server_format_filter")).then(function(J){k.y_(J); k.Bt.T=null;/^av/.test(k.clientPlaybackNonce)&&k.fZ&&k.yT("av1",k.fZ.T)})})}; Kzi=function(k,p){if(p&&k.hlsvp)return vw();if(k.hlsFormats){p=bE(k.hlsFormats);var t;if(((t=k.fZ)==null?0:t.Y)&&p){t=[];for(var J=g.Z(p),q=J.next();!q.done;q=J.next())t.push(q.value.itag);k.yT("hlsfmt",{itags:t.join(".")})}k.EZ=vah(k.Cp,p);k.EZ&&OJh(k,k.EZ);t=k.clientPlaybackNonce;var F,d,S,U;return Q2w(k.Cp,k.isAd(),p,(U=(F=k.playerResponse)==null?void 0:(d=F.captions)==null?void 0:(S=d.playerCaptionsRenderer)==null?void 0:S.baseUrl)!=null?U:null,k.Kb,t,function(f){return k.publish("ctmp","hlsflt", f)}).then(function(f){for(var b=0,N=[],y=g.Z(f),Y=y.next();!Y.done;Y=y.next()){Y=Y.value; var T=void 0;N.push((T=Y.getInfo())==null?void 0:T.itag);var A=T=void 0;((T=Y.getInfo())==null?void 0:(A=T.audio)==null?void 0:A.numChannels)>b&&(b=Y.getInfo().audio.numChannels)}b>2&&k.yT("hlschl",{mn:b});var V;((V=k.fZ)==null?0:V.Y)&&k.yT("hlsfmtaf",{itags:N.join(".")});var D;if(k.D("html5_enable_vp9_fairplay")&&((D=k.X)==null?0:i_(D)))for(k.yT("drm",{sbdlfbk:1}),b=g.Z(k.WV),N=b.next();!N.done;N=b.next())if(N=N.value,wi(N)){k.X=N;break}NC(k,f)})}return vw()}; HJ9=function(k){if(k.isExternallyHostedPodcast&&k.vQ){var p=bE(k.vQ);if(!p[0])return vw();k.MH=p[0];return IXu(k.Cp,p[0]).then(function(t){NC(k,t)})}return k.q_&&k.PZ?Gze(k.Cp,k.isAd(),k.q_).then(function(t){NC(k,t)}):vw()}; kO_=function(k){if(k.isExternallyHostedPodcast)return vw();var p=bE(k.vQ,k.KC);if(k.hlsvp){var t=Vpi(k.hlsvp,k.clientPlaybackNonce,k.Kb);p.push(t)}return PTq(k.Cp,k.isAd(),p,xg9(k)).then(function(J){NC(k,J)})}; NC=function(k,p){k.UF=p;k.y_(new J6(g.DR(k.UF,function(t){return t.getInfo()})))}; xg9=function(k){var p={cpn:k.clientPlaybackNonce,c:k.Cp.T.c,cver:k.Cp.T.cver};k.nX&&(p.ptk=k.nX,p.oid=k.Os,p.ptchn=k.Mm,p.pltype=k.x7,k.JR&&(p.m=k.JR));return p}; g.yR=function(k){return qC(k)&&k.v0?(k={},k.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",k):k.Y&&k.Y.xf||null}; pl_=function(k){var p=Yu(k);return p&&p.text?g.f1(p.text):k.paidContentOverlayText}; tge=function(k){var p=Yu(k);return p&&p.durationMs?pE(p.durationMs):k.paidContentOverlayDurationMs}; Yu=function(k){var p,t,J;return k.playerResponse&&k.playerResponse.paidContentOverlay&&k.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.e((p=k.RY)==null?void 0:(t=p.playerOverlays)==null?void 0:(J=t.playerOverlayRenderer)==null?void 0:J.playerDisclosure,Ji9)||null}; Tl=function(k){var p="";if(k.JU)return k.JU;k.isLivePlayback&&(p=k.allowLiveDvr?"dvr":k.isPremiere?"lp":k.Oy?"window":"live");k.FA&&(p="post");return p}; g.rS=function(k,p){return typeof k.keywords[p]!=="string"?null:k.keywords[p]}; oeS=function(k){return!!k.Iq||!!k.YE||!!k.uf||!!k.cF||k.Az||k.Z.focEnabled||k.Z.rmktEnabled}; g.Za=function(k){return!!(k.nT||k.vQ||k.q_||k.hlsvp||k.HL())}; Bx=function(k){if(k.D("html5_onesie")&&k.errorCode)return!1;var p=g.Kc(k.P0,"ypc");k.ypcPreview&&(p=!1);return k.IG()&&!k.loading&&(g.Za(k)||g.Kc(k.P0,"heartbeat")||p)}; bE=function(k,p){k=kX(k);var t={};if(p){p=g.Z(p.split(","));for(var J=p.next();!J.done;J=p.next())(J=J.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(t[J[1]]={width:J[2],height:J[3]})}p=g.Z(k);for(J=p.next();!J.done;J=p.next()){J=J.value;var q=t[J.itag];q&&(J.width=q.width,J.height=q.height)}return k}; Cy=function(k){var p=k.getAvailableAudioTracks();p=p.concat(k.gK);for(var t=0;t<k.wh.length;t++)for(var J=k.wh[t],q=0;q<p.length;q++){var F=p[q],d=F.ws.id===J.audioTrackId;if(F.ws.isDefault&&t===k.N6||d){if(J.captionTrackIndices)for(d=0;d<J.captionTrackIndices.length;d++)F.captionTracks[d]=k.captionTracks[J.captionTrackIndices[d]];J.defaultCaptionTrackIndex!==void 0&&(F.N=k.captionTracks[J.defaultCaptionTrackIndex]);J.forcedCaptionTrackIndex!==void 0&&(F.T=k.captionTracks[J.forcedCaptionTrackIndex]); F.Y=J.visibility||"UNKNOWN";F.captionsInitialState=J.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}; Qh0=function(k,p){k.showShareButton=!!p;var t,J,q=((t=g.e(p,g.vT))==null?void 0:t.navigationEndpoint)||((J=g.e(p,g.vT))==null?void 0:J.command);q&&(k.xY=!!g.e(q,qXj))}; WzL=function(k,p){var t=p.raw_embedded_player_response;if(!t){var J=p.embedded_player_response;J&&(t=JSON.parse(J))}t&&(k.b6=t);if(k.b6){k.embeddedPlayerConfig=k.b6.embeddedPlayerConfig||null;if(t=k.b6.videoFlags)t.playableInEmbed&&(k.allowEmbed=!0),t.isPrivate&&(k.isPrivate=!0),t.userDisplayName&&(p.user_display_name=t.userDisplayName),t.userDisplayImage&&(p.user_display_image=t.userDisplayImage);if(t=k.b6.embedPreview){t=t.thumbnailPreviewRenderer;tpL(k,t.controlBgHtml);if(J=t.defaultThumbnail)k.L= bb(J);k.D("embeds_web_enable_search_button")&&t.searchButton&&(J=g.e(t.searchButton,g.vT))&&(k.Fh=g.e(J.navigationEndpoint,g.Ax));(J=g.e(t==null?void 0:t.videoDetails,FH0))&&XTh(k,p,J);J=g.e(t==null?void 0:t.videoDetails,$oS);k.hB=!!t.addToWatchLaterButton;Qh0(k,t.shareButton);if(J==null?0:J.musicVideoType)k.musicVideoType=J.musicVideoType;var q,F,d,S,U;if(J=g.e((q=k.getEmbeddedPlayerResponse())==null?void 0:(F=q.embedPreview)==null?void 0:(d=F.thumbnailPreviewRenderer)==null?void 0:(S=d.playButton)== null?void 0:(U=S.buttonRenderer)==null?void 0:U.navigationEndpoint,g.ub))zmT(k,J),k.videoId=J.videoId||k.videoId;t.videoDurationSeconds&&(k.lengthSeconds=pE(t.videoDurationSeconds));t.webPlayerActionsPorting&&pTe(k,t.webPlayerActionsPorting);if(q=g.e(t==null?void 0:t.playlist,doL)){k.SB=!0;F=[];d=Number(q.currentIndex);if(q.contents)for(S=0,U=q.contents.length;S<U;S++)if(t=q.contents[S].playlistPanelVideoRenderer){J=t.shortBylineText?g.f1(t.shortBylineText):"";var f=t.title?g.f1(t.title):"";F.push({author:J, encrypted_id:t.videoId,title:f,channel_path:S===d?p.channel_path:"",profile_picture:S===d?p.profile_picture:"",is_private:S===d?k.isPrivate:!0,is_dni:S===d?k.JB:!1,dni_color:S===d?k.AK:""})}p={index:q.currentIndex,list:q.playlistId,playlist_length:q.totalVideos,video:F};q.titleText&&(p.title=g.f1(q.titleText));q.shortBylineText&&(p.author=g.f1(q.shortBylineText));k.ag=p}var b,N,y;if(p=g.e((b=k.getEmbeddedPlayerResponse())==null?void 0:(N=b.embedPreview)==null?void 0:(y=N.thumbnailPreviewRenderer)== null?void 0:y.infoPanel,GP6)){k.kc=Number(p==null?void 0:p.durationMs)||NaN;if(p==null?0:p.infoPanelOverviewViewModel)k.Dw=p==null?void 0:p.infoPanelOverviewViewModel;if(p==null?0:p.infoPanelDetailsViewModel)k.Yd=p==null?void 0:p.infoPanelDetailsViewModel}}if(k.b6.previewPlayabilityStatus){if(k.s0=k.b6.previewPlayabilityStatus,b=k.s0,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){k.errorCode=Rmi(b.errorCode);N=b.errorScreen;if(y=N==null?void 0:N.playerErrorMessageRenderer){k.AG=y;if(p=y.reason)k.errorReason= g.f1(p);if(y=y.subreason)k.cS=g.f1(y)}else k.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":k.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":k.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var Y;(N==null?0:(Y=N.playerKavRenderer)==null?0:Y.kavUrl)?k.errorDetail="4":k.errorDetail="3";break;default:k.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else k.b6.playabilityStatus&&(k.xb=k.b6.playabilityStatus,Eew(k)&&(k.errorDetail="0",k.xb&&((Y=k.xb.embeddedPlayerErrorMessageRenderer)? k.AG=g.e(Y,SX0):k.errorReason=k.xb.reason||null)));(Y=k.b6.attestation)&&OH0(k,Y);(Y=k.b6.permissions)&&Y.allowImaMonetization&&(k.allowImaMonetization=!0)}}; XTh=function(k,p,t){var J=t.channelThumbnail;J&&(J=J.thumbnails)&&(J=J[0])&&(p.profile_picture=J.url);var q;if(J=g.e((q=g.e(t==null?void 0:t.channelThumbnailEndpoint,Uo_))==null?void 0:q.urlEndpoint,g.i3))p.channel_path=J.url;if(q=t.collapsedRenderer)if(q=g.e(q,ft9)){if(J=q.title)p.title=g.f1(J);if(q=q.subtitle)p.subtitle=g.f1(q)}if(t=t.expandedRenderer)if(t=g.e(t,bxj)){if(q=t.title)p.expanded_title=g.f1(q);if(q=t.subtitle)p.expanded_subtitle=g.f1(q);if(t=t.subscribeButton)k.subscribeButtonRenderer= g.e(t,g.mm),k.subscribeButtonRenderer&&(p.ucid=k.subscribeButtonRenderer.channelId,p.subscribed=k.subscribeButtonRenderer.subscribed,k.FE=!!k.subscribeButtonRenderer.notificationPreferenceToggleButton,k.subscribeButtonRenderer.notificationPreferenceToggleButton&&k.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(p=k.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,p.isToggled?(k.JE=p.toggledServiceEndpoint||null,k.Ba=p.defaultServiceEndpoint|| null):(k.JE=p.defaultServiceEndpoint||null,k.Ba=p.toggledServiceEndpoint||null)))}}; g.VR=function(k){return $u(k)&&!k.allowLiveDvr}; We=function(k){return $u(k)&&k.allowLiveDvr}; $u=function(k){return k.D("html5_live_head_playable")&&dS(k)&&k.Cp.gy==="yt"?k.isLiveHeadPlayable:k.isLivePlayback}; OJh=function(k,p){k.D("html5_audio_tracks_sort_by_name")&&p.sort(function(t,J){return t.toString().localeCompare(J.toString(),k.Cp.hostLanguage)})}; g.Da=function(k){return!!k.T&&aE0(k.T)}; g.s5=function(k){return!!k.T&&M6M(k.T)}; g.Ly=function(k){return!!k.T&&gS0(k.T)}; g.fy=function(k){return!!k.T&&uNL(k.T)}; g.Noi=function(k){if(k.G8)return null;var p=k.o6;p||(p=k.playerResponse&&k.playerResponse.endscreen&&k.playerResponse.endscreen.endscreenUrlRenderer&&k.playerResponse.endscreen.endscreenUrlRenderer.url);return p||null}; g.yiS=function(k){return k.G8?null:k.playerResponse&&k.playerResponse.endscreen&&k.playerResponse.endscreen.endscreenRenderer||null}; g.ve=function(k){return k.D("enable_wn_infocards")}; g.ce=function(k){var p,t,J,q;return(g.ve(k)?(p=k.RY)==null?void 0:(t=p.cards)==null?void 0:t.cardCollectionRenderer:(J=k.playerResponse)==null?void 0:(q=J.cards)==null?void 0:q.cardCollectionRenderer)||null}; g.ny=function(k){if(!k.playerResponse||!k.playerResponse.annotations)return null;k=g.Z(k.playerResponse.annotations);for(var p=k.next();!p.done;p=k.next())if(p=p.value,p.playerAnnotationsExpandedRenderer&&p.playerAnnotationsExpandedRenderer.featuredChannel)return p.playerAnnotationsExpandedRenderer;return null}; wS=function(k){return k.adFormat&&(k.mW?k.adFormat!=="1_5":k.adFormat!="1_5")?"adunit":k.eventLabel||k.Cp.j6}; g.iE=function(k){return wS(k)==="shortspage"}; xL=function(k){return k.n7()&&k.G().supportsGaplessShorts()}; XO=function(k){if(k.isAd()&&(k.mW?k.videoId!==k.Cp.ez:k.videoId!=k.Cp.ez))return k.Cp.ez}; Be=function(k){return k.VA||wS(k)==="detailpage"||wS(k)==="shortspage"||k.mutedAutoplay}; zl=function(k){var p=(p=k.D("enable_cleanup_masthead_autoplay_hack_fix"))&&wS(k)==="adunit"?k.x0:Be(k)?wS(k)==="detailpage"||wS(k)==="shortspage"?k.isAutonav||k.yn>0:p||k.adFormat!=="17_8"||k.isAutonav||g.u$(k.Cp)||k.x0?k.Q4?!1:k.Cp.vQ||k.Cp.kC||!g.V0(k.Cp)?!p&&wS(k)==="adunit"&&k.Iq?!1:!0:!1:!1:(k.Q4?0:k.lm)&&g.V0(k.Cp)?!0:!1;k.D("html5_log_detailpage_autoplay")&&wS(k)==="detailpage"&&k.yT("autoplay_info",{autoplay:k.VA,autonav:k.isAutonav,wasDompaused:k.Q4,result:p});return p}; g.eJ=function(k){return k.oauthToken||k.Cp.Iq}; Tow=function(k){if(k.D("html5_stateful_audio_normalization")){var p=1,t=g.dU(k.Cp.experiments,"html5_default_ad_gain");t&&k.isAd()&&(p=t);var J;if(t=((J=k.C)==null?void 0:J.audio.Y)||k.rk){J=(0,g.V9)();k.Yo=2;var q=J-k.Cp.gA<=k.maxStatefulTimeThresholdSec*1E3;k.applyStatefulNormalization&&q?k.Yo=4:q||(k.Cp.gK=Infinity,k.Cp.gA=NaN);q=(k.Yo===4?g.Ek(k.Cp.gK,k.minimumLoudnessTargetLkfs,k.loudnessTargetLkfs):k.loudnessTargetLkfs)-t;if(k.Yo!==4){var F,d,S,U,f=((F=k.playerResponse)==null?void 0:(d=F.playerConfig)== null?void 0:(S=d.audioConfig)==null?void 0:(U=S.loudnessNormalizationConfig)==null?void 0:U.statelessLoudnessAdjustmentGain)||0;q+=f}q=Math.min(q,0);k.preserveStatefulLoudnessTarget&&(k.Cp.gK=t+q,k.Cp.gA=J);k=Math.min(1,Math.pow(10,q/20))||p}else k=YX6(k)}else k=YX6(k);return k}; YX6=function(k){var p=1,t=g.dU(k.Cp.experiments,"html5_default_ad_gain");t&&k.isAd()&&(p=t);var J;if(t=((J=k.C)==null?void 0:J.audio.N)||k.wd)k.Yo=1;return Math.min(1,Math.pow(10,-t/20))||p}; ku=function(k){var p=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],t=gi(k.Cp)==="TVHTML5_SIMPLY"&&k.Cp.T.ctheme==="MUSIC";k.kC||!g.Qj(k.Cp)&&!t||!p.includes(k.musicVideoType)&&!k.isExternallyHostedPodcast||(k.kC=!0);if(p=g.zQ())p=/Starboard\/([0-9]+)/.exec(g.nc()),p=(p?parseInt(p[1],10):NaN)<10;t=k.Cp;t=(gi(t)==="TVHTML5_CAST"||gi(t)==="TVHTML5"&&(t.T.cver.startsWith("6.20130725")||t.T.cver.startsWith("6.20130726")))&&k.Cp.T.ctheme==="MUSIC";var J;if(J=!k.kC)t||(t=k.Cp,t=gi(t)=== "TVHTML5"&&t.T.cver.startsWith("7")),J=t;J&&!p&&(p=k.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",t=(k.D("cast_prefer_audio_only_for_atv_and_uploads")||k.D("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&k.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",p||t||k.isExternallyHostedPodcast)&&(k.kC=!0);return k.Cp.deviceIsAudioOnly||k.kC&&k.Cp.Z}; g.riL=function(k){var p;if(!(p=k.D("html5_enable_sabr_live_captions")&&k.m2()&&tx(k))){var t,J,q;p=((t=k.playerResponse)==null?void 0:(J=t.playerConfig)==null?void 0:(q=J.compositeVideoConfig)==null?void 0:q.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return p}; hx=function(k){var p,t,J;return!!((p=k.playerResponse)==null?0:(t=p.playerConfig)==null?0:(J=t.mediaCommonConfig)==null?0:J.splitScreenEligible)}; a7=function(k){var p;return!((p=k.playerResponse)==null||!p.compositePlayabilityStatus)}; Zxi=function(k){return isNaN(k)?0:Math.max((Date.now()-k)/1E3-30,0)}; MC=function(k){return!(!k.OS||!k.Cp.Z)&&k.HL()}; gS=function(k){return k.enablePreroll&&k.enableServerStitchedDai}; CAL=function(k){return k.St&&!k.BR}; tx=function(k){var p=k.D("html5_enable_sabr_on_drive")&&k.Cp.gy==="gd";if(k.Eq)return k.St&&k.yT("fds",{fds:!0},!0),!1;if(k.Cp.gy!=="yt"&&!p)return k.St&&k.yT("dsvn",{ns:k.Cp.gy},!0),!1;if(k.cotn||!k.T||k.T.isOtf||k.I2&&!k.D("html5_enable_sabr_csdai"))return!1;if(k.D("html5_use_sabr_requests_for_debugging"))return!0;if(k.St&&k.BR)return k.yT("esfw",{usbc:k.St,hsu:!!k.BR},!0),!0;if(k.D("html5_remove_client_sabr_determination"))return!1;var t=!k.T.m2&&!k.CH();p=t&&u_&&k.D("html5_enable_sabr_vod_streaming_xhr"); t=t&&!u_&&k.D("html5_enable_sabr_vod_non_streaming_xhr");var J=uE(k),q=k.D("html5_enable_sabr_drm_vod_streaming_xhr")&&u_&&k.CH()&&!k.T.m2&&(k.gA==="1"?!1:!0);(p=p||t||J||q)&&!k.BR&&k.yT("sabr",{loc:"m"},!0);return p&&!!k.BR}; uE=function(k){var p;if(!(p=u_&&k.m2()&&k.CH()&&(k.gA==="1"?!1:!0)&&k.D("html5_sabr_live_drm_streaming_xhr"))){p=k.m2()&&!k.CH()&&u_;var t=k.m2()&&k.latencyClass!=="ULTRALOW"&&!k.isLowLatencyLiveStream&&k.D("html5_sabr_live_normal_latency_streaming_xhr"),J=k.isLowLatencyLiveStream&&k.D("html5_sabr_live_low_latency_streaming_xhr"),q=k.latencyClass==="ULTRALOW"&&k.D("html5_sabr_live_ultra_low_latency_streaming_xhr");p=p&&(t||J||q)}t=p;p=k.enableServerStitchedDai&&t&&k.D("html5_enable_sabr_ssdai_streaming_xhr"); t=!k.enableServerStitchedDai&&t;J=k.m2()&&!u_&&k.D("html5_enable_sabr_live_non_streaming_xhr");k=u_&&(k.u1()||hx(k)&&k.D("html5_enable_sabr_for_lifa_eligible_streams"));return p||t||J||k}; g.hF=function(k){return k.Le&&tx(k)}; Mpi=function(k){var p;if(p=!!k.cotn)p=k.videoId,p=!!p&&g.Wx(p)===1;return p&&!k.OS}; g.lE=function(k){if(!k.T||!k.Y||!k.C)return!1;var p=k.T.T,t=!!p[k.Y.id]&&rC(p[k.Y.id].oO.T);p=!!p[k.C.id]&&rC(p[k.C.id].oO.T);return(k.Y.itag==="0"||t)&&p}; jJ=function(k){return k.s0?["OK","LIVE_STREAM_OFFLINE"].includes(k.s0.status):!0}; Eew=function(k){return(k=k.xb)&&k.showError?k.showError:!1}; FO=function(k,p){return k.D(p)?!0:(k.fflags||"").includes(p+"=true")}; AiT=function(k){return k.D("html5_heartbeat_iff_heartbeat_params_filled")}; nPM=function(k,p){p.inlineMetricEnabled&&(k.inlineMetricEnabled=!0);p.playback_progress_0s_url&&(k.cF=new qxe(p));if(p=p.video_masthead_ad_quartile_urls)k.YE=p.quartile_0_url,k.Zu=p.quartile_25_url,k.nz=p.quartile_50_url,k.I6=p.quartile_75_url,k.Du=p.quartile_100_url,k.uf=p.quartile_0_urls,k.lA=p.quartile_25_urls,k.fk=p.quartile_50_urls,k.Z4=p.quartile_75_urls,k.Rb=p.quartile_100_urls}; cb9=function(k){var p={};k=g.Z(k);for(var t=k.next();!t.done;t=k.next()){t=t.value;var J=t.split("=");J.length===2?p[J[0]]=J[1]:p[t]=!0}return p}; sh9=function(k){if(k){if(fvw(k))return k;k=b1L(k);if(fvw(k,!0))return k}return""}; g.moi=function(k){return k.captionsLanguagePreference||k.Cp.captionsLanguagePreference||g.rS(k,"yt:cc_default_lang")||k.Cp.qW}; O5=function(k){return!(!k.isLivePlayback||!k.hasProgressBarBoundaries())}; g.lb=function(k){var p;return k.vt||((p=k.suggestions)==null?void 0:p[0])||null}; g.Ky=function(k){return k.JB&&(k.D("embeds_enable_pfp_always_unbranded")||k.Cp.Yo)}; He=function(k,p){k.D("html5_log_autoplay_src")&&xL(k)&&k.yT("apsrc",{src:p})}; g.xu=function(k){var p,t;return!!((p=k.embeddedPlayerConfig)==null?0:(t=p.embeddedPlayerFlags)==null?0:t.enableMusicUx)}; g.pK=function(k){var p=k.G(),t=g.kR(p),J=p.v0;(p.D("embeds_web_enable_iframe_api_send_full_embed_url")||p.D("embeds_web_enable_rcat_validation_in_havs")||p.D("embeds_enable_autoplay_and_visibility_signals"))&&g.cs(p)&&(J&&(t.thirdParty=Object.assign({},t.thirdParty,{embedUrl:J})),MCL(t,k));if(J=k.j6)t.clickTracking={clickTrackingParams:J};J=t.client||{};var q="EMBED",F=wS(k);F==="leanback"?q="WATCH":p.D("gvi_channel_client_screen")&&F==="profilepage"?q="CHANNEL":k.B0?q="LIVE_MONITOR":F==="detailpage"? q="WATCH_FULL_SCREEN":F==="adunit"?q="ADUNIT":F==="sponsorshipsoffer"&&(q="UNKNOWN");J.clientScreen=q;if(p=k.kidsAppInfo)J.kidsAppInfo=JSON.parse(p);(q=k.zv)&&!p&&(J.kidsAppInfo={contentSettings:{ageUpMode:Vg_[q]}});if(p=k.rE)J.unpluggedAppInfo={enableFilterMode:!0};(q=k.unpluggedFilterModeType)&&!p&&(J.unpluggedAppInfo={filterModeType:WHj[q]});if(p=k.gy)J.unpluggedLocationInfo=p;t.client=J;J=t.request||{};k.kx&&(J.isPrefetch=!0);if(p=k.mdxEnvironment)J.mdxEnvironment=p;if(p=k.mdxControlMode)J.mdxControlMode= Doh[p];t.request=J;J=t.user||{};if(p=k.Y8)J.credentialTransferTokens=[{token:p,scope:"VIDEO"}];if(p=k.qW)J.delegatePurchases={oauthToken:p},J.kidsParent={oauthToken:p};t.user=J;if(J=k.contextParams)t.activePlayers=[{playerContextParams:J}];if(k=k.clientScreenNonce)t.clientScreenNonce=k;return t}; g.kR=function(k){var p=g.uS(),t=p.client||{};if(k.forcedExperiments){var J=k.forcedExperiments.split(","),q=[];J=g.Z(J);for(var F=J.next();!F.done;F=J.next())q.push(Number(F.value));t.experimentIds=q}if(q=k.homeGroupInfo)t.homeGroupInfo=JSON.parse(q);if(q=k.getPlayerType())t.playerType=q;if(q=k.T.ctheme)t.theme=q;if(q=k.livingRoomAppMode)t.tvAppInfo=Object.assign({},t.tvAppInfo,{livingRoomAppMode:q});q=k.deviceYear;k.D("html5_propagate_device_year")&&q&&(t.tvAppInfo=Object.assign({},t.tvAppInfo,{deviceYear:q})); if(q=k.livingRoomPoTokenId)t.tvAppInfo=Object.assign({},t.tvAppInfo,{livingRoomPoTokenId:q});p.client=t;t=p.user||{};k.enableSafetyMode&&(t=Object.assign({},t,{enableSafetyMode:!0}));k.pageId&&(t=Object.assign({},t,{onBehalfOfUser:k.pageId}));p.user=t;t=k.v0;k.D("embeds_web_enable_iframe_api_send_full_embed_url")||k.D("embeds_web_enable_rcat_validation_in_havs")||k.D("embeds_enable_autoplay_and_visibility_signals")||!t||(p.thirdParty={embedUrl:t});return p}; wl6=function(k,p,t){var J=k.videoId,q=g.pK(k),F=k.G(),d={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(VP()),referer:document.location.toString(),signatureTimestamp:20145};g.Iu();k.isAutonav&&(d.autonav=!0);g.Xa(0,141)&&(d.autonavState=g.Xa(0,140)?"STATE_OFF":"STATE_ON");d.autoCaptionsDefaultOn=g.Xa(0,66);zl(k)&&(d.autoplay=!0);F.Z&&k.cycToken&&(d.cycToken=k.cycToken);F.enablePrivacyFilter&&(d.enablePrivacyFilter=!0);k.isFling&&(d.fling=!0);var S=k.forceAdsUrl;if(S){var U={},f=[];S=S.split(","); S=g.Z(S);for(var b=S.next();!b.done;b=S.next()){b=b.value;var N=b.split("|");N.length!==3||b.includes("=")||(N[0]="breaktype="+N[0],N[1]="offset="+N[1],N[2]="url="+N[2]);b={adtype:"video_ad"};N=g.Z(N);for(var y=N.next();!y.done;y=N.next()){var Y=g.Z(y.value.split("="));y=Y.next().value;Y=q0L(Y);b[y]=Y.join("=")}N=b.url;y=b.presetad;Y=b.viralresponseurl;var T=Number(b.campaignid);if(b.adtype==="in_display_ad")N&&(U.url=N),y&&(U.presetAd=y),Y&&(U.viralAdResponseUrl=Y),T&&(U.viralCampaignId=String(T)); else if(b.adtype==="video_ad"){var A={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(b.offset)||0)}};if(b=sHe[b.breaktype])A.breakType=b;N&&(A.url=N);y&&(A.presetAd=y);Y&&(A.viralAdResponseUrl=Y);T&&(A.viralCampaignId=String(T));f.push(A)}}d.forceAdParameters={videoAds:f,inDisplayAd:U}}k.isInlinePlaybackNoAd&&(d.isInlinePlaybackNoAd=!0);k.isLivingRoomDeeplink&&(d.isLivingRoomDeeplink=!0);U=k.La;if(U!=null){U={startWalltime:String(U)};if(f=k.Eo)U.manifestDuration=String(f||14400);d.liveContext= U}if(k.mutedAutoplay){d.mutedAutoplay=!0;U=F.getWebPlayerContextConfig();var V,D;(U==null?0:(V=U.embedsHostFlags)==null?0:V.allowMutedAutoplayDurationMode)&&(U==null?0:(D=U.embedsHostFlags)==null?0:D.allowMutedAutoplayDurationMode.includes(LHT[k.mutedAutoplayDurationMode]))&&(d.mutedAutoplayDurationMode=LHT[k.mutedAutoplayDurationMode])}if(k.Q4?0:k.lm)d.splay=!0;V=k.vnd;V===5&&(d.vnd=V);V={};if(D=k.isMdxPlayback)V.triggeredByMdx=D;if(D=k.Fb)V.skippableAdsSupported=D.split(",").includes("ska");if(f= k.HR){D=k.Ib;U=[];f=g.Z(gti(f));for(S=f.next();!S.done;S=f.next()){S=S.value;b=S.platform;S={applicationState:S.W8?"INACTIVE":"ACTIVE",clientFormFactor:ve_[b]||"UNKNOWN_FORM_FACTOR",clientName:lMM[S.qT]||"UNKNOWN_INTERFACE",clientVersion:S.deviceVersion||"",platform:ciM[b]||"UNKNOWN_PLATFORM"};b={};if(D){N=void 0;try{N=JSON.parse(D)}catch(v){g.wt(v)}N&&(b={params:[{key:"ms",value:N.ms}]},N.advertising_id&&(b.advertisingId=N.advertising_id),N.limit_ad_tracking!==void 0&&N.limit_ad_tracking!==null&& (b.limitAdTracking=N.limit_ad_tracking),S.osName=N.os_name,S.userAgent=N.user_agent,S.windowHeightPoints=N.window_height_points,S.windowWidthPoints=N.window_width_points)}U.push({adSignalsInfo:b,remoteClient:S})}V.remoteContexts=U}D=k.sourceContainerPlaylistId;U=k.serializedMdxMetadata;if(D||U)f={},D&&(f.mdxPlaybackContainerInfo={sourceContainerPlaylistId:D}),U&&(f.serializedMdxMetadata=U),V.mdxPlaybackSourceContext=f;d.mdxContext=V;V=p.width;V>0&&(d.playerWidthPixels=Math.round(V));if(p=p.height)d.playerHeightPixels= Math.round(p);t!==0&&(d.vis=t);if(t=F.widgetReferrer)d.widgetReferrer=t.substring(0,128);g.V0(F)&&d&&(d.ancestorOrigins=F.ancestorOrigins);k.defaultActiveSourceVideoId&&(d.compositeVideoContext={defaultActiveSourceVideoId:k.defaultActiveSourceVideoId});if(F=F.getWebPlayerContextConfig())d.encryptedHostFlags=F.encryptedHostFlags;J={videoId:J,context:q,playbackContext:{contentPlaybackContext:d}};k.reloadPlaybackParams&&(J.playbackContext.reloadPlaybackContext={reloadPlaybackParams:k.reloadPlaybackParams}); k.contentCheckOk&&(J.contentCheckOk=!0);if(q=k.clientPlaybackNonce)J.cpn=q;if(q=k.playerParams)J.params=q;if(q=k.playlistId)J.playlistId=q;k.racyCheckOk&&(J.racyCheckOk=!0);q=k.G();if(d=q.embedConfig)J.serializedThirdPartyEmbedConfig=d;J.captionParams={};d=g.Xa(g.Iu(),65);k.deviceCaptionsOn!=null?J.captionParams.deviceCaptionsOn=k.deviceCaptionsOn:g.Mu(q)&&(J.captionParams.deviceCaptionsOn=d!=null?!d:!1);k.tX&&(J.captionParams.deviceCaptionsLangPref=k.tX);k.TB.length?J.captionParams.viewerSelectedCaptionLangs= k.TB:g.Mu(q)&&(d=g.Go(),d==null?0:d.length)&&(J.captionParams.viewerSelectedCaptionLangs=d);d=k.fetchType==="onesie"&&k.D("html5_onesie_attach_po_token");F=k.fetchType!=="onesie"&&k.D("html5_non_onesie_attach_po_token");if(d||F)d=k.G(),d.V4&&(J.serviceIntegrityDimensions={},J.serviceIntegrityDimensions.poToken=d.V4);q.D("fetch_att_independently")&&(J.attestationRequest={omitBotguardData:!0});J.playbackContext||(J.playbackContext={});J.playbackContext.devicePlaybackCapabilities=nej(k);J.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&k.yT("noVp9",{});return J}; nej=function(k){var p=!(k==null?0:k.Hu())&&(k==null?void 0:k.m2())&&KY(),t;if(t=k==null?0:k.D("html5_report_supports_vp9_encoding")){if(k==null)t=0;else{t=g.Jx(k);k=k.G().X;var J=pq("243");t=J?$w(t,J,k,!0)===!0:!1}t=t&&!p}return{supportsVp9Encoding:!!t,supportXhr:u_}}; QHe=function(k,p){var t,J,q;return g.Q(function(F){if(F.T==1)return t={context:g.kR(k.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:k.videoId,cpn:k.clientPlaybackNonce}}]},J=g.Oy(ixT),g.n(F,g.MT(p,t,J),2);q=F.Y;return F.return(q)})}; PA6=function(k,p,t){var J=g.dU(p.experiments,"bg_vm_reinit_threshold");(!Lj||(0,g.V9)()-Lj>J)&&QHe(k,t).then(function(q){q&&(q=q.botguardData)&&g.nj(q,p)},function(q){k.MO()||(q=Vs(q),k.yT("attf",q.details))})}; tG=function(k,p){g.R.call(this);this.app=k;this.state=p}; oB=function(k,p,t){k.state.T.hasOwnProperty(p)||JG(k,p,t);k.state.Z[p]=function(){return t.apply(k,g.nS.apply(0,arguments))}; k.state.S.add(p)}; qE=function(k,p,t){k.state.T.hasOwnProperty(p)||JG(k,p,t);k.app.G().Z&&(k.state.B[p]=function(){return t.apply(k,g.nS.apply(0,arguments))},k.state.S.add(p))}; JG=function(k,p,t){k.state.T[p]=function(){return t.apply(k,g.nS.apply(0,arguments))}}; g.F4=function(k,p,t){return k.state.T[p].apply(k.state.T,g.m(t))}; $R=function(){g.Vv.call(this);this.X=new Map}; d4=function(){g.R.apply(this,arguments);this.element=null;this.S=new Set;this.Z={};this.B={};this.T={};this.L=new Set;this.N=new $R;this.Y=new $R;this.C=new $R;this.X=new $R}; GOL=function(k,p,t){typeof k==="string"&&(k={mediaContentUrl:k,startSeconds:p,suggestedQuality:t});a:{if((p=k.mediaContentUrl)&&(p=/\/([ve]|embed)\/([^#?]+)/.exec(p))&&p[2]){p=p[2];break a}p=null}k.videoId=p;return ES(k)}; ES=function(k,p,t){if(typeof k==="string")return{videoId:k,startSeconds:p,suggestedQuality:t};p={};t=g.Z(It_);for(var J=t.next();!J.done;J=t.next())J=J.value,k[J]&&(p[J]=k[J]);return p}; Xl0=function(k,p,t,J){if(g.lq(k)&&!Array.isArray(k)){p="playlist list listType index startSeconds suggestedQuality".split(" ");t={};for(J=0;J<p.length;J++){var q=p[J];k[q]&&(t[q]=k[q])}return t}p={index:p,startSeconds:t,suggestedQuality:J};typeof k==="string"&&k.length===16?p.list="PL"+k:p.playlist=k;return p}; SP=function(){tG.apply(this,arguments)}; BoS=function(k){oB(k,"cueVideoById",k.E$);oB(k,"loadVideoById",k.y5p);oB(k,"cueVideoByUrl",k.uo);oB(k,"loadVideoByUrl",k.EIy);oB(k,"playVideo",k.Iwh);oB(k,"pauseVideo",k.pauseVideo);oB(k,"stopVideo",k.oih);oB(k,"clearVideo",k.clearVideo);oB(k,"getVideoBytesLoaded",k.kA);oB(k,"getVideoBytesTotal",k.wT);oB(k,"getVideoLoadedFraction",k.LB);oB(k,"getVideoStartBytes",k.dT);oB(k,"cuePlaylist",k.cuePlaylist);oB(k,"loadPlaylist",k.r5h);oB(k,"nextVideo",k.IBO);oB(k,"previousVideo",k.dh0);oB(k,"playVideoAt", k.nW8);oB(k,"setShuffle",k.setShuffle);oB(k,"setLoop",k.setLoop);oB(k,"getPlaylist",k.Vh);oB(k,"getPlaylistIndex",k.getPlaylistIndex);oB(k,"getPlaylistId",k.getPlaylistId);oB(k,"loadModule",k.Fe);oB(k,"unloadModule",k.sV);oB(k,"setOption",k.P_);oB(k,"getOption",k.Do);oB(k,"getOptions",k.Ew);oB(k,"mute",k.nI6);oB(k,"unMute",k.co0);oB(k,"isMuted",k.isMuted);oB(k,"setVolume",k.UR0);oB(k,"getVolume",k.getVolume);oB(k,"seekTo",k.nCy);oB(k,"getPlayerMode",k.getPlayerMode);oB(k,"getPlayerState",k.W5);oB(k, "getAvailablePlaybackRates",k.getAvailablePlaybackRates);oB(k,"getPlaybackQuality",function(){return k.getPlaybackQuality(1)}); oB(k,"setPlaybackQuality",k.GtO);oB(k,"getAvailableQualityLevels",k.Qh);oB(k,"getCurrentTime",k.M0);oB(k,"getDuration",k.Ri);oB(k,"addEventListener",k.MK);oB(k,"removeEventListener",k.sxy);oB(k,"getDebugText",k.xA);oB(k,"getVideoData",function(){return RDi(k)}); oB(k,"addCueRange",k.qK);oB(k,"removeCueRange",k.removeCueRange);oB(k,"setSize",k.setSize);oB(k,"getApiInterface",k.getApiInterface);oB(k,"destroy",k.destroy);oB(k,"mutedAutoplay",k.mutedAutoplay);var p=k.app.G();p.S||(oB(k,"getVideoEmbedCode",k.getVideoEmbedCode),oB(k,"getVideoUrl",k.B5));oB(k,"getMediaReferenceTime",k.f_);oB(k,"getSize",k.getSize);oB(k,"setFauxFullscreen",k.cDy);p.D("embeds_enable_move_set_center_crop_to_public")&&oB(k,"setCenterCrop",k.setCenterCrop);p.S||oB(k,"logImaAdEvent", k.logImaAdEvent);oB(k,"preloadVideoById",k.kCh);oB(k,"wakeUpControls",k.wakeUpControls)}; g.US=function(k){return(k=zD9(k.app.EQ()))?k.l6():null}; ba=function(k){var p=g.i$(k.app.G()),t,J=(t=k.app.getVideoData())==null?void 0:t.SB;k=fK(k.app);return g.Fa(p)&&!J||k?!1:!0}; RDi=function(k,p){var t={};if(p=k.app.t5(p===void 0?1:p)){p=p.getVideoData();if(p.isPrivate)return{};t.video_id=p.videoId;t.author=p.author;t.title=p.title;t.isPlayable=jJ(p);t.errorCode=p.errorCode;if(p.Y&&p.Y.video){t.video_quality=p.Y.video.quality;p=p.Y.video;var J=[];p.fps>32&&J.push("hfr");p.isHdr()&&J.push("hdr");p.primaries==="bt2020"&&J.push("wcg");t.video_quality_features=J}}if(k=k.getPlaylistId())t.list=k;return t}; NE=function(){SP.apply(this,arguments)}; yl=function(k,p){var t={};if(k.app.G().Y8){k=g.Z(eDL);for(var J=k.next();!J.done;J=k.next())J=J.value,p.hasOwnProperty(J)&&(t[J]=p[J]);if(p=t.qoe_cat)k="",typeof p==="string"&&p.length>0&&(k=p.split(",").filter(function(q){return hDu.includes(q)}).join(",")),t.qoe_cat=k; atS(t)}else for(k=g.Z(Mg6),J=k.next();!J.done;J=k.next())J=J.value,p.hasOwnProperty(J)&&(t[J]=p[J]);return t}; atS=function(k){var p=k.raw_player_response;if(!p){var t=k.player_response;t&&(p=JSON.parse(t))}delete k.player_response;delete k.raw_player_response;if(p){k.raw_player_response={streamingData:p.streamingData};var J;if((J=p.playbackTracking)==null?0:J.qoeUrl)k.raw_player_response=Object.assign({},k.raw_player_response,{playbackTracking:{qoeUrl:p.playbackTracking.qoeUrl}});var q;if((q=p.videoDetails)==null?0:q.videoId)k.raw_player_response=Object.assign({},k.raw_player_response,{videoDetails:{videoId:p.videoDetails.videoId}})}}; YR=function(k,p,t){var J=k.app.Zl(t);if(!J)return 0;k=J-k.app.getCurrentTime(t);return p-k}; uAS=function(k){var p=p===void 0?5:p;return k?gee[k]||p:p}; g.TB=function(){NE.apply(this,arguments)}; ltL=function(k){JG(k,"getInternalApiInterface",k.getInternalApiInterface);JG(k,"addEventListener",k.S2);JG(k,"removeEventListener",k.ADY);JG(k,"cueVideoByPlayerVars",k.As);JG(k,"loadVideoByPlayerVars",k.gI8);JG(k,"preloadVideoByPlayerVars",k.w3O);JG(k,"getAdState",k.getAdState);JG(k,"sendAbandonmentPing",k.sendAbandonmentPing);JG(k,"setLoopRange",k.setLoopRange);JG(k,"getLoopRange",k.getLoopRange);JG(k,"setAutonavState",k.setAutonavState);JG(k,"seekTo",k.Z$p);JG(k,"seekBy",k.fby);JG(k,"seekToLiveHead", k.seekToLiveHead);JG(k,"requestSeekToWallTimeSeconds",k.requestSeekToWallTimeSeconds);JG(k,"seekToStreamTime",k.seekToStreamTime);JG(k,"startSeekCsiAction",k.startSeekCsiAction);JG(k,"getStreamTimeOffset",k.getStreamTimeOffset);JG(k,"getVideoData",k.GF);JG(k,"setInlinePreview",k.setInlinePreview);JG(k,"getAppState",k.getAppState);JG(k,"updateLastActiveTime",k.updateLastActiveTime);JG(k,"setBlackout",k.setBlackout);JG(k,"setUserEngagement",k.setUserEngagement);JG(k,"updateSubtitlesUserSettings",k.updateSubtitlesUserSettings); JG(k,"getPresentingPlayerType",k.s2);JG(k,"canPlayType",k.canPlayType);JG(k,"updatePlaylist",k.updatePlaylist);JG(k,"updateVideoData",k.updateVideoData);JG(k,"updateEnvironmentData",k.updateEnvironmentData);JG(k,"sendVideoStatsEngageEvent",k.thh);JG(k,"productsInVideoVisibilityUpdated",k.productsInVideoVisibilityUpdated);JG(k,"setSafetyMode",k.setSafetyMode);JG(k,"isAtLiveHead",function(p){return k.isAtLiveHead(void 0,p)}); JG(k,"getVideoAspectRatio",k.getVideoAspectRatio);JG(k,"getPreferredQuality",k.getPreferredQuality);JG(k,"getPlaybackQualityLabel",k.getPlaybackQualityLabel);JG(k,"setPlaybackQualityRange",k.H$G);JG(k,"onAdUxClicked",k.onAdUxClicked);JG(k,"getFeedbackProductData",k.getFeedbackProductData);JG(k,"getStoryboardFrame",k.getStoryboardFrame);JG(k,"getStoryboardFrameIndex",k.getStoryboardFrameIndex);JG(k,"getStoryboardLevel",k.getStoryboardLevel);JG(k,"getNumberOfStoryboardLevels",k.getNumberOfStoryboardLevels); JG(k,"getCaptionWindowContainerId",k.getCaptionWindowContainerId);JG(k,"getAvailableQualityLabels",k.getAvailableQualityLabels);JG(k,"addCueRange",k.addCueRange);JG(k,"addUtcCueRange",k.addUtcCueRange);JG(k,"showAirplayPicker",k.showAirplayPicker);JG(k,"dispatchReduxAction",k.dispatchReduxAction);JG(k,"getPlayerResponse",k.n_);JG(k,"getWatchNextResponse",k.ai);JG(k,"getHeartbeatResponse",k.lw);JG(k,"getCurrentTime",k.SH);JG(k,"getDuration",k.lN);JG(k,"getPlayerState",k.getPlayerState);JG(k,"getPlayerStateObject", k.Ii);JG(k,"getVideoLoadedFraction",k.getVideoLoadedFraction);JG(k,"getProgressState",k.getProgressState);JG(k,"getVolume",k.getVolume);JG(k,"setVolume",k.sP);JG(k,"isMuted",k.isMuted);JG(k,"mute",k.RC);JG(k,"unMute",k.V_);JG(k,"loadModule",k.loadModule);JG(k,"unloadModule",k.unloadModule);JG(k,"getOption",k.cq);JG(k,"getOptions",k.getOptions);JG(k,"setOption",k.setOption);JG(k,"loadVideoById",k.Sf);JG(k,"loadVideoByUrl",k.Md);JG(k,"playVideo",k.F9);JG(k,"loadPlaylist",k.loadPlaylist);JG(k,"nextVideo", k.nextVideo);JG(k,"previousVideo",k.previousVideo);JG(k,"playVideoAt",k.playVideoAt);JG(k,"getDebugText",k.getDebugText);JG(k,"getWebPlayerContextConfig",k.getWebPlayerContextConfig);JG(k,"notifyShortsAdSwipeEvent",k.notifyShortsAdSwipeEvent);JG(k,"getVideoContentRect",k.getVideoContentRect);JG(k,"setSqueezeback",k.setSqueezeback);JG(k,"toggleSubtitlesOn",k.toggleSubtitlesOn);JG(k,"isSubtitlesOn",k.isSubtitlesOn);JG(k,"reportPlaybackIssue",k.reportPlaybackIssue);JG(k,"setAutonav",k.setAutonav);JG(k, "isNotServable",k.isNotServable);JG(k,"channelSubscribed",k.channelSubscribed);JG(k,"channelUnsubscribed",k.channelUnsubscribed);JG(k,"togglePictureInPicture",k.togglePictureInPicture);JG(k,"supportsGaplessAudio",k.supportsGaplessAudio);JG(k,"supportsGaplessShorts",k.supportsGaplessShorts);JG(k,"enqueueVideoByPlayerVars",function(p){return void k.enqueueVideoByPlayerVars(p)}); JG(k,"clearQueue",k.clearQueue);JG(k,"getAudioTrack",k.K_);JG(k,"setAudioTrack",k.hk8);JG(k,"getAvailableAudioTracks",k.jH);JG(k,"getMaxPlaybackQuality",k.getMaxPlaybackQuality);JG(k,"getUserPlaybackQualityPreference",k.getUserPlaybackQualityPreference);JG(k,"getSubtitlesUserSettings",k.getSubtitlesUserSettings);JG(k,"resetSubtitlesUserSettings",k.resetSubtitlesUserSettings);JG(k,"setMinimized",k.setMinimized);JG(k,"setOverlayVisibility",k.setOverlayVisibility);JG(k,"confirmYpcRental",k.confirmYpcRental); JG(k,"queueNextVideo",k.queueNextVideo);JG(k,"handleExternalCall",k.handleExternalCall);JG(k,"logApiCall",k.logApiCall);JG(k,"isExternalMethodAvailable",k.isExternalMethodAvailable);JG(k,"setScreenLayer",k.setScreenLayer);JG(k,"getCurrentPlaylistSequence",k.getCurrentPlaylistSequence);JG(k,"getPlaylistSequenceForTime",k.getPlaylistSequenceForTime);JG(k,"shouldSendVisibilityState",k.shouldSendVisibilityState);JG(k,"syncVolume",k.syncVolume);JG(k,"highlightSettingsMenuItem",k.highlightSettingsMenuItem); JG(k,"openSettingsMenuItem",k.openSettingsMenuItem);JG(k,"getEmbeddedPlayerResponse",k.getEmbeddedPlayerResponse);JG(k,"getVisibilityState",k.getVisibilityState);JG(k,"isMutedByMutedAutoplay",k.isMutedByMutedAutoplay);k.D("embeds_enable_emc3ds_muted_autoplay")&&JG(k,"isMutedByEmbedsMutedAutoplay",k.isMutedByEmbedsMutedAutoplay);JG(k,"setGlobalCrop",k.setGlobalCrop);JG(k,"setInternalSize",k.setInternalSize);JG(k,"setFauxFullscreen",k.setFauxFullscreen);JG(k,"setAppFullscreen",k.setAppFullscreen)}; ZB=function(k,p,t){k=g.r4(k.AB(),p);return t?(t.addOnDisposeCallback(k),null):k}; g.CK=function(k,p,t){return k.app.G().l1?p:g.fT("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:p,SHORTCUT:t})}; jHw=function(k){k.AB().element.setAttribute("aria-live","polite")}; g.AG=function(k,p){g.TB.call(this,k,p);ltL(this);qE(this,"addEventListener",this.Od);qE(this,"removeEventListener",this.uwh);qE(this,"cueVideoByPlayerVars",this.s$);qE(this,"loadVideoByPlayerVars",this.YQT);qE(this,"preloadVideoByPlayerVars",this.GC8);qE(this,"loadVideoById",this.Sf);qE(this,"loadVideoByUrl",this.Md);qE(this,"playVideo",this.F9);qE(this,"loadPlaylist",this.loadPlaylist);qE(this,"nextVideo",this.nextVideo);qE(this,"previousVideo",this.previousVideo);qE(this,"playVideoAt",this.playVideoAt); qE(this,"getVideoData",this.pB);qE(this,"seekBy",this.DR0);qE(this,"seekTo",this.Ibp);qE(this,"showControls",this.showControls);qE(this,"hideControls",this.hideControls);qE(this,"cancelPlayback",this.cancelPlayback);qE(this,"getProgressState",this.getProgressState);qE(this,"isInline",this.isInline);qE(this,"setInline",this.setInline);qE(this,"setLoopVideo",this.setLoopVideo);qE(this,"getLoopVideo",this.getLoopVideo);qE(this,"getVideoContentRect",this.getVideoContentRect);qE(this,"getVideoStats",this.zF); qE(this,"getCurrentTime",this.Oh);qE(this,"getDuration",this.lN);qE(this,"getPlayerState",this.eH);qE(this,"getVideoLoadedFraction",this.H5);qE(this,"mute",this.RC);qE(this,"unMute",this.V_);qE(this,"setVolume",this.sP);qE(this,"loadModule",this.loadModule);qE(this,"unloadModule",this.unloadModule);qE(this,"getOption",this.cq);qE(this,"getOptions",this.getOptions);qE(this,"setOption",this.setOption);qE(this,"addCueRange",this.addCueRange);qE(this,"getDebugText",this.getDebugText);qE(this,"getStoryboardFormat", this.getStoryboardFormat);qE(this,"toggleFullscreen",this.toggleFullscreen);qE(this,"isFullscreen",this.isFullscreen);qE(this,"getPlayerSize",this.getPlayerSize);qE(this,"toggleSubtitles",this.toggleSubtitles);this.app.G().D("embeds_enable_move_set_center_crop_to_public")||qE(this,"setCenterCrop",this.setCenterCrop);qE(this,"setFauxFullscreen",this.setFauxFullscreen);qE(this,"setSizeStyle",this.setSizeStyle);qE(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);qE(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); BoS(this)}; g.mK=function(k){k=k.EQ();var p=k.TC.get("endscreen");return p&&p.GZ()?!0:k.EK()}; g.Vl=function(k,p){k.getPresentingPlayerType()===3?k.publish("mdxautoplaycancel"):k.zb("onAutonavCancelled",p)}; g.DB=function(k){var p=WO(k.EQ());return k.app.ly&&!k.isFullscreen()||k.getPresentingPlayerType()===3&&p&&p.Vr()&&p.xo()||!!k.getPlaylist()}; g.sS=function(k,p){g.F4(k,"addEmbedsConversionTrackingParams",[p])}; g.vO=function(k){return(k=g.LK(k.EQ()))?k.CD():{}}; g.OxL=function(k){k=(k=k.getVideoData())&&k.Y;return!!k&&!(!k.audio||!k.video)&&k.mimeType!=="application/x-mpegURL"}; g.cO=function(k,p,t){k=k.Uy().element;var J=E$(k.children,function(q){q=Number(q.getAttribute("data-layer"));return t-q||1}); J<0&&(J=-(J+1));on(k,p,J);p.setAttribute("data-layer",String(t))}; g.nK=function(k){var p=k.G();if(!p.UF)return!1;var t=k.getVideoData();if(!t||k.getPresentingPlayerType()===3)return!1;var J=(!t.isLiveDefaultBroadcast||p.D("allow_poltergust_autoplay"))&&!O5(t);J=t.isLivePlayback&&(!p.D("allow_live_autoplay")||!J);var q=t.isLivePlayback&&p.D("allow_live_autoplay_on_mweb");k=k.getPlaylist();k=!!k&&k.Vr();var F=t.RY&&t.RY.playerOverlays||null;F=!!(F&&F.playerOverlayRenderer&&F.playerOverlayRenderer.autoplay);F=t.JB&&F;return!t.ypcPreview&&(!J||q)&&!g.Kc(t.P0,"ypc")&& !k&&(!g.V0(p)||F)}; KHj=function(k){k=k.app.tp();if(!k)return!1;var p=k.getVideoData();if(!p.Y||!p.Y.video||p.Y.video.T<1080||p.oR)return!1;var t=/^qsa/.test(p.clientPlaybackNonce),J="r";p.Y.id.indexOf(";")>=0&&(t=/^[a-p]/.test(p.clientPlaybackNonce),J="x");return t?(k.yT("iqss",{trigger:J},!0),!0):!1}; w4=function(){Pz.apply(this,arguments);this.requestHeaders={}}; Ql=function(){ia||(ia=new w4);return ia}; PO=function(k,p){p?k.requestHeaders.Authorization="Bearer "+p:delete k.requestHeaders.Authorization}; g.GB=function(k,p,t,J){J=J===void 0?!1:J;g.EY.call(this,p);var q=this;this.j=k;this.P0=J;this.B=new g.nC(this);this.gy=new g.K1(this,t,!0,void 0,void 0,function(){q.FT()}); g.z(this,this.B);g.z(this,this.gy)}; IB=function(k){var p=k.j.getRootNode();return k.j.D("web_watch_pip")||k.j.D("web_shorts_pip")?BQ(p):document}; HxT=function(k){k.Y&&(document.activeElement&&g.FI(k.element,document.activeElement)&&k.Y.focus(),k.Y.setAttribute("aria-expanded","false"),k.Y=void 0);g.Df(k.B);k.L=void 0}; X4=function(k,p,t){k.l0()?k.xI():k.Iu(p,t)}; RB=function(k,p,t,J){J=new g.M({K:"div",S6:["ytp-linked-account-popup-button"],sy:J,J:{role:"button",tabindex:"0"}});p=new g.M({K:"div",W:"ytp-linked-account-popup",J:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{K:"div",W:"ytp-linked-account-popup-title",sy:p},{K:"div",W:"ytp-linked-account-popup-description",sy:t},{K:"div",W:"ytp-linked-account-popup-buttons",U:[J]}]});g.GB.call(this,k,{K:"div",W:"ytp-linked-account-popup-container",U:[p]},100);var q=this;this.dialog=p;g.z(this,this.dialog); J.listen("click",function(){q.xI()}); g.z(this,J);g.cO(this.j,this.element,4);this.hide()}; g.zB=function(k,p,t,J){g.EY.call(this,k);this.priority=p;t&&g.BO(this,t);J&&this.HH(J)}; g.eP=function(k,p,t,J){k=k===void 0?{}:k;p=p===void 0?[]:p;t=t===void 0?!1:t;J=J===void 0?!1:J;p.push("ytp-menuitem");var q=k;"role"in q||(q.role="menuitem");t||(q=k,"tabindex"in q||(q.tabindex="0"));k={K:t?"a":"div",S6:p,J:k,U:[{K:"div",W:"ytp-menuitem-icon",sy:"{{icon}}"},{K:"div",W:"ytp-menuitem-label",sy:"{{label}}"},{K:"div",W:"ytp-menuitem-content",sy:"{{content}}"}]};J&&k.U.push({K:"div",W:"ytp-menuitem-secondary-icon",sy:"{{secondaryIcon}}"});return k}; g.BO=function(k,p){k.updateValue("label",p)}; hG=function(k){g.zB.call(this,g.eP({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var p=this;this.j=k;this.Y=this.T=!1;this.Pp=k.t_();k.createServerVe(this.element,this,!0);this.V(this.j,"settingsMenuVisibilityChanged",function(t){p.Wp(t)}); this.V(this.j,"videodatachange",this.C);this.listen("click",this.onClick);this.C()}; aB=function(k){return k?g.f1(k):""}; ME=function(k){g.R.call(this);this.api=k}; g4=function(k){ME.call(this,k);var p=this;JG(k,"setAccountLinkState",function(t){p.setAccountLinkState(t)}); JG(k,"updateAccountLinkingConfig",function(t){p.updateAccountLinkingConfig(t)}); k.addEventListener("videodatachange",function(t,J){p.onVideoDataChange(J)}); k.addEventListener("settingsMenuInitialized",function(){p.menuItem=new hG(p.api);g.z(p,p.menuItem)})}; xoj=function(k){this.api=k;this.T={}}; ua=function(k,p,t,J){p in k.T||(t=new g.xf(t,J,{id:p,priority:2,namespace:"appad"}),k.api.Lb([t],1),k.T[p]=t)}; la=function(k){ME.call(this,k);var p=this;this.events=new g.nC(this);g.z(this,this.events);this.T=new xoj(this.api);this.events.V(this.api,"legacyadtrackingpingreset",function(){p.T.T={}}); this.events.V(this.api,"legacyadtrackingpingchange",function(t){var J=p.T;ua(J,"part2viewed",1,0x8000000000000);ua(J,"engagedview",Math.max(1,t.ez*1E3),0x8000000000000);if(!t.isLivePlayback){var q=t.lengthSeconds*1E3;xL(t)&&J.api.D("html5_shorts_gapless_ads_duration_fix")&&(q=J.api.getProgressState().seekableEnd*1E3-t.Te);ua(J,"videoplaytime25",q*.25,q);ua(J,"videoplaytime50",q*.5,q);ua(J,"videoplaytime75",q*.75,q);ua(J,"videoplaytime100",q,0x8000000000000);ua(J,"conversionview",q,0x8000000000000); ua(J,"videoplaybackstart",1,q);ua(J,"videoplayback2s",2E3,q);ua(J,"videoplayback10s",1E4,q)}}); this.events.V(this.api,g.pT("appad"),this.Y);this.events.V(this.api,g.tA("appad"),this.Y)}; Juq=function(k,p,t){if(!(t in p))return!1;p=p[t];Array.isArray(p)||(p=[p]);p=g.Z(p);for(t=p.next();!t.done;t=p.next()){t=t.value;var J={CPN:k.api.getVideoData().clientPlaybackNonce};t=g.c8(t,J);J=void 0;J=J===void 0?!1:J;(J=gU(uY(t,koT),t,J,"Active View 3rd Party Integration URL"))||(J=void 0,J=J===void 0?!1:J,J=gU(uY(t,pPi),t,J,"Google/YouTube Brand Lift URL"));J||(J=void 0,J=J===void 0?!1:J,J=gU(uY(t,tEq),t,J,"Nielsen OCR URL"));g.Xs(t,void 0,J)}return!0}; jP=function(k,p){oIq(k,p).then(function(t){g.Xs(p,void 0,void 0,t)})}; OS=function(k,p){p.forEach(function(t){jP(k,t)})}; oIq=function(k,p){return g.mq(k.api.G())&&Fd(p)&&q8(p)?g.xH(k.api.G(),g.eJ(k.api.getVideoData())).then(function(t){var J;t&&(J={Authorization:"Bearer "+t});return J},void 0):cw()}; qJh=function(k){ME.call(this,k);this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"videoready",function(p){if(k.getPresentingPlayerType()===1){var t,J,q={playerDebugData:{pmlSignal:!!((t=p.getPlayerResponse())==null?0:(J=t.adPlacements)==null?0:J.some(function(F){var d;return F==null?void 0:(d=F.adPlacementRenderer)==null?void 0:d.renderer})), contentCpn:p.clientPlaybackNonce}};g.qv("adsClientStateChange",q)}})}; KK=function(k){g.M.call(this,{K:"button",S6:["ytp-button"],J:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{K:"div",W:"ytp-autonav-toggle-button-container",U:[{K:"div",W:"ytp-autonav-toggle-button",J:{"aria-checked":"true"}}]}]});this.j=k;this.Y=[];this.T=!1;this.isChecked=!0;k.createClientVe(this.element,this,113681);this.V(k,"presentingplayerstatechange",this.Si);this.listen("click",this.onClick);this.j.G().D("web_player_autonav_toggle_always_listen")&& FTS(this);ZB(k,this.element,this);this.Si()}; FTS=function(k){k.Y.push(k.V(k.j,"videodatachange",k.Si));k.Y.push(k.V(k.j,"videoplayerreset",k.Si));k.Y.push(k.V(k.j,"onPlaylistUpdate",k.Si));k.Y.push(k.V(k.j,"autonavchange",k.wH))}; $mu=function(k){k.isChecked=k.isChecked;k.Kp("ytp-autonav-toggle-button").setAttribute("aria-checked",String(k.isChecked));var p=k.isChecked?"Autoplay is on":"Autoplay is off";k.updateValue("title",p);k.updateValue("label",p);k.j.Tk()}; dme=function(k){return k.j.G().D("web_player_autonav_use_server_provided_state")&&gn(k.hj())}; EI0=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"standardControlsInitialized",function(){var t=new KK(k);g.z(p,t);k.MY(t,"RIGHT_CONTROLS_LEFT")})}; HO=function(k,p){g.zB.call(this,g.eP({role:"menuitemcheckbox","aria-checked":"false"}),p,k,{K:"div",W:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; xR=function(k,p){k.checked=p;k.element.setAttribute("aria-checked",String(k.checked))}; SJ9=function(k){var p=!k.G().BR&&k.getPresentingPlayerType()!==3;return k.isFullscreen()||p}; g.kO=function(k,p,t,J){var q=k.currentTarget;if((t===void 0||!t)&&g.A5(k))return k.preventDefault(),!0;p.pauseVideo();k=q.getAttribute("href");g.RZ(k,J,!0);return!1}; g.pP=function(k,p,t){if(ei(p.G())&&p.getPresentingPlayerType()!==2){if(g.A5(t))return p.isFullscreen()&&!p.G().externalFullscreen&&p.toggleFullscreen(),t.preventDefault(),!0}else{var J=g.A5(t);J&&p.pauseVideo();g.RZ(k,void 0,!0);J&&(g.BA(k),t.preventDefault())}return!1}; fs0=function(){var k=Umq.includes("en")?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{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"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{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"}}]};k.W="ytp-subtitles-button-icon";return k}; tr=function(){return{K:"div",W:"ytp-spinner-container",U:[{K:"div",W:"ytp-spinner-rotator",U:[{K:"div",W:"ytp-spinner-left",U:[{K:"div",W:"ytp-spinner-circle"}]},{K:"div",W:"ytp-spinner-right",U:[{K:"div",W:"ytp-spinner-circle"}]}]}]}}; Jr=function(k){if(document.createRange){var p=document.createRange();p&&(p.selectNodeContents(k),k=window.getSelection())&&(k.removeAllRanges(),k.addRange(p))}}; FE=function(k){var p=k.D("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";HO.call(this,p,g.o6.rr);var t=this;this.j=k;this.T=!1;this.Y=new g.jF(function(){g.qN(t.element,"ytp-menuitem-highlighted")},0); this.Pp=k.t_();this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.N,this);this.listen(ql,this.C);g.z(this,this.Y)}; $O=function(k){ME.call(this,k);var p=this;this.T=!1;k.addEventListener("settingsMenuInitialized",function(){bjT(p)}); k.addEventListener("highlightSettingsMenu",function(t){bjT(p);var J=p.menuItem;t==="menu_item_cinematic_lighting"&&(g.JB(J.element,"ytp-menuitem-highlighted"),g.JB(J.element,"ytp-menuitem-highlight-transition-enabled"),J.Y.start())}); JG(k,"updateCinematicSettings",function(t){p.updateCinematicSettings(t)})}; bjT=function(k){k.menuItem||(k.menuItem=new FE(k.api),g.z(k,k.menuItem),k.menuItem.Zr(k.T))}; d9=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"applicationvideodatachange",function(t,J){p.Ev(t,J)})}; E6=function(k){ME.call(this,k);this.events=new g.nC(k);g.z(this,this.events);JG(k,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));JG(k,"setCreatorEndscreenHideButton",this.T.bind(this))}; Sl=function(k,p,t,J){HO.call(this,"Stable Volume",g.o6.iF);g.JB(this.element,"ytp-drc-menu-item");this.Pp=k.t_();this.C=p;this.T=t;this.hasDrcAudioTrack=J;k.addEventListener("videodatachange",this.Y.bind(this));k.D("mta_drc_mutual_exclusion_removal")&&this.V(k,"onPlaybackAudioChange",this.Y);k=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.N,this);xR(this,k);this.Pp.Ru(this)}; U6=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);k.D("html5_show_drc_toggle")&&k.addEventListener("settingsMenuInitialized",function(){p.menuItem||(p.menuItem=new Sl(p.api,p.setDrcUserPreference.bind(p),p.getDrcUserPreference.bind(p),p.Y.bind(p)),g.z(p,p.menuItem))}); JG(this.api,"setDrcUserPreference",function(J){p.setDrcUserPreference(J)}); JG(this.api,"getDrcUserPreference",function(){return p.getDrcUserPreference()}); JG(this.api,"hasDrcAudioTrack",function(){return p.Y()}); var t;this.T=(t=g.nG("yt-player-drc-pref"))!=null?t:1;this.updateEnvironmentData()}; fP=function(k){ME.call(this,k);var p=this;this.T={};this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"videodatachange",function(){p.onVideoDataChange()}); this.events.V(k,g.pT("embargo"),function(t){p.api.iO(!0);var J,q=(J=p.T[t.id])!=null?J:[];J=g.Z(q);for(q=J.next();!q.done;q=J.next()){var F=q.value;p.api.hideControls();p.api.W3("auth",2,"This video isn't available in your current playback area",CC({embargoed:1,id:t.id,idx:t.Y,start:t.start}));q=void 0;(F=(q=F.embargo)==null?void 0:q.onTrigger)&&p.api.zb("innertubeCommand",F)}})}; NYh=function(k,p){var t;return(t=p.onEnter)==null?void 0:t.some(k.Y)}; yuw=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;var J=void 0,q=Number((J=t.playbackPosition)==null?void 0:J.utcTimeMillis)/1E3,F=void 0;J=q+Number((F=t.duration)==null?void 0:F.seconds);F="embargo_"+q;k.api.addUtcCueRange(F,q,J,"embargo",!1);t.onEnter&&(k.T[F]=t.onEnter.filter(k.Y))}}; bK=function(k){ME.call(this,k);var p=this;this.T=[];this.events=new g.nC(k);g.z(this,this.events);JG(k,"addEmbedsConversionTrackingParams",function(t){p.api.G().I7&&p.addEmbedsConversionTrackingParams(t)}); this.events.V(k,"veClickLogged",function(t){p.api.hasVe(t)&&(t=dq(t.visualElement.getAsJspb(),2),p.T.push(t))})}; YJL=function(k){ME.call(this,k);JG(k,"isEmbedsShortsMode",function(){return k.isEmbedsShortsMode()})}; TYw=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"initialvideodatacreated",function(t){Cj(Zs(),16623);p.T=g.mP();var J=k.G().vQ&&!t.Q4;if(Be(t)&&J){Cj(Zs(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(t.getWatchNextResponse()){var q,F=(q=t.getWatchNextResponse())==null?void 0:q.trackingParams;F&&mT(F)}if(t.getPlayerResponse()){var d;(t=(d=t.getPlayerResponse())==null?void 0:d.trackingParams)&&mT(t)}}else Cj(Zs(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),t.getEmbeddedPlayerResponse()&&(d=(F=t.getEmbeddedPlayerResponse())==null?void 0:F.trackingParams)&&mT(d)}); this.events.V(k,"loadvideo",function(){Cj(Zs(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:p.T})}); this.events.V(k,"cuevideo",function(){Cj(Zs(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:p.T})}); this.events.V(k,"largeplaybuttonclicked",function(t){Cj(Zs(),27240,t.visualElement)}); this.events.V(k,"playlistnextbuttonclicked",function(t){Cj(Zs(),27240,t.visualElement)}); this.events.V(k,"playlistprevbuttonclicked",function(t){Cj(Zs(),27240,t.visualElement)}); this.events.V(k,"playlistautonextvideo",function(){Cj(Zs(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; Nl=function(k,p){g.R.call(this);var t=this;this.T=null;this.N=p;p=[];for(var J=0;J<=100;J++)p.push(J/100);p={threshold:p,trackVisibility:!0,delay:1E3};(this.Y=window.IntersectionObserver?new IntersectionObserver(function(q){q=q[q.length-1];typeof q.isVisible==="undefined"?document.visibilityState==="visible"&&q.isIntersecting&&q.intersectionRatio>0?t.T=q.intersectionRatio:document.visibilityState==="hidden"?t.T=0:t.T=null:t.T=q.isVisible?q.intersectionRatio:0;typeof t.N==="function"&&t.N(t.T)},p): null)&&this.Y.observe(k)}; Zje=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"applicationInitialized",function(){ru_(p)})}; ru_=function(k){var p=k.api.getRootNode(),t=p;if(!k.api.D("embeds_emc3ds_inview_ks")){var J;t=k.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((J=p.parentElement)==null?void 0:J.parentElement)||p:p}k.T=new Nl(t,function(q){q!=null&&(k.api.G().Eo=q,k.api.G().AP="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.z(k,k.T);k.events.V(k.api,"videoStatsPingCreated",function(q){var F=k.T;F=F.T==null?null:Math.round(F.T*100)/100;q.inview=F!=null?F:void 0;F=k.api.getPlayerSize();if(F.height>0&&F.width>0){F=[Math.round(F.width),Math.round(F.height)];var d=g.ar();d>1&&F.push(d);F=F.join(":")}else F=void 0;q.size=F})}; Cy9=function(k){var p;return((p=((k==null?void 0:k.messageRenderers)||[]).find(function(t){return!!t.timeCounterRenderer}))==null?void 0:p.timeCounterRenderer)||null}; ym=function(k){g.M.call(this,{K:"div",S6:["ytp-player-content","ytp-iv-player-content"],U:[{K:"div",W:"ytp-free-preview-countdown-timer",U:[{K:"span",sy:"{{label}}"},{K:"span",W:"ytp-free-preview-countdown-timer-separator",sy:"\u2022"},{K:"span",sy:"{{duration}}"}]}]});this.api=k;this.T=null;this.N=this.Y=0;this.V(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; mmM=function(k,p){k.T||(k.Y=p,k.N=(0,g.V9)(),k.T=new g.lv(function(){Auj(k)},null),Auj(k))}; Auj=function(k){var p=Math,t=p.round,J=Math.min((0,g.V9)()-k.N,k.Y);p=t.call(p,(k.Y-J)/1E3);k.updateValue("duration",fj({seconds:p}));p<=0&&k.T?YO(k):k.T&&k.T.start()}; YO=function(k){k.T&&(k.T.dispose(),k.T=null)}; VEh=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"basechromeinitialized",function(){p.T=new ym(k);g.z(p,p.T);g.cO(k,p.T.element,4);p.T.hide()})}; TA=function(k){g.M.call(this,{K:"button",S6:["ytp-fullerscreen-edu-button","ytp-button"],U:[{K:"div",S6:["ytp-fullerscreen-edu-text"],sy:"Scroll for details"},{K:"div",S6:["ytp-fullerscreen-edu-chevron"],U:[{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],J:{"data-priority":"1"}});this.fp=k;this.T=new g.K1(this,250,void 0,100);this.N=this.Y=!1;k.createClientVe(this.element,this,61214);g.z(this, this.T);this.V(k,"fullscreentoggled",this.Zr);this.V(k,"presentingplayerstatechange",this.Zr);this.listen("click",this.onClick);this.Zr()}; r9=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);JG(this.api,"updateFullerscreenEduButtonSubtleModeState",function(J){p.updateFullerscreenEduButtonSubtleModeState(J)}); JG(this.api,"updateFullerscreenEduButtonVisibility",function(J){p.updateFullerscreenEduButtonVisibility(J)}); var t=k.G();k.D("external_fullscreen_with_edu")&&t.externalFullscreen&&ei(t)&&t.controlsType==="1"&&this.events.V(k,"standardControlsInitialized",function(){p.T=new TA(k);g.z(p,p.T);k.MY(p.T)})}; WTe=function(k){g.M.call(this,{K:"div",W:"ytp-gated-actions-overlay",U:[{K:"div",W:"ytp-gated-actions-overlay-background",U:[{K:"div",W:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",S6:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],J:{"aria-label":"Close"},U:[g.Ts()]},{K:"div",W:"ytp-gated-actions-overlay-bar",U:[{K:"div",W:"ytp-gated-actions-overlay-text-container",U:[{K:"div",W:"ytp-gated-actions-overlay-title",sy:"{{title}}"},{K:"div",W:"ytp-gated-actions-overlay-subtitle", sy:"{{subtitle}}"}]},{K:"div",W:"ytp-gated-actions-overlay-button-container"}]}]});var p=this;this.api=k;this.background=this.Kp("ytp-gated-actions-overlay-background");this.Y=this.Kp("ytp-gated-actions-overlay-button-container");this.T=[];this.V(this.Kp("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){p.api.zb("onCloseMiniplayer")}); this.hide()}; s5M=function(k,p){var t=0;t=0;for(var J={};t<p.length;J={i9:void 0},t++){var q=k.T[t],F=void 0,d=(F=q)==null?void 0:F.element;d||(d=new g.M({K:"button",W:"ytp-gated-actions-overlay-button",J:{tabindex:"0"},U:[{K:"div",W:"ytp-gated-actions-overlay-button-title",sy:"{{buttonText}}"}]}),g.z(k,d),d.QT(k.Y),q={element:d});J.i9=g.e(p[t],Dmi);var S=F=void 0,U=void 0,f=((F=J.i9)==null?void 0:F.title)||((S=J.i9)==null?void 0:(U=S.titleFormatted)==null?void 0:U.content)||"";d.update({buttonText:f});q.listener&& d.qP(q.listener);q.listener=d.listen("click",function(b){return function(){var N,y=g.e((N=b.i9)==null?void 0:N.onTap,Qt);y&&k.api.zb("innertubeCommand",y)}}(J)); k.T[t]=q}for(;t<k.T.length;)k.T.pop().element.dispose()}; LTL=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.T=new WTe(this.api);g.z(this,this.T);this.events.V(k,"videodatachange",function(){var t,J=(t=p.api.getVideoData())==null?void 0:t.aL;t=p.T;if(J){var q,F,d=((q=J.title)==null?void 0:q.content)||"";q=((F=J.subtitle)==null?void 0:F.content)||"";t.update({title:d,subtitle:q});d=J.thumbnail;F="none";if(d==null?0:d.sources){q=0;d=g.Z(d.sources);for(var S=d.next();!S.done;S=d.next())S=S.value,S.width&&S.url&&S.width> q&&(q=S.width,F="url("+S.url+")")}t.background.style.backgroundImage=F;s5M(t,J.actionButtons||[]);t.show()}else t.hide()}); g.cO(this.api,this.T.element,4)}; Z2=function(k){ME.call(this,k);var p=this;qE(this.api,"getSphericalProperties",function(){return p.getSphericalProperties()}); qE(this.api,"setSphericalProperties",function(){p.setSphericalProperties.apply(p,g.m(g.nS.apply(0,arguments)))}); oB(this.api,"getSphericalProperties",function(){return p.api.getPresentingPlayerType()===2?{}:p.getSphericalProperties()}); oB(this.api,"setSphericalProperties",function(){var t=g.nS.apply(0,arguments);p.api.getPresentingPlayerType()!==2&&p.setSphericalProperties.apply(p,g.m(t))})}; CP=function(k){ME.call(this,k);JG(k,"createClientVe",this.createClientVe.bind(this));JG(k,"createServerVe",this.createServerVe.bind(this));JG(k,"destroyVe",this.destroyVe.bind(this));JG(k,"hasVe",this.hasVe.bind(this));JG(k,"logClick",this.logClick.bind(this));JG(k,"logVisibility",this.logVisibility.bind(this));JG(k,"setTrackingParams",this.setTrackingParams.bind(this))}; Ar=function(k,p,t,J){function q(d){var S=!(d.status!==204&&d.status!==200&&!d.response),U;d={succ:""+ +S,rc:d.status,lb:((U=d.response)==null?void 0:U.byteLength)||0,rt:((0,g.V9)()-F).toFixed(),shost:g.Iq(k),trigger:p};vIL(d,k);t&&t(d);J&&!S&&J(new AD("pathprobe.net",d))} var F=(0,g.V9)();g.mG(k,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:q,onTimeout:q})}; vIL=function(k,p){var t;((t=window.performance)==null?0:t.getEntriesByName)&&(p=performance.getEntriesByName(p))&&p.length&&(p=p[0],k.pedns=(p.domainLookupEnd-p.startTime).toFixed(),k.pecon=(p.connectEnd-p.domainLookupEnd).toFixed(),k.perqs=(p.requestStart-p.connectEnd).toFixed(),cuq&&(k.perqsa=p.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; mw=function(k,p){this.gS=k;this.policy=p;this.playbackRate=1}; nIM=function(k,p){var t=Math.min(2.5,Nu(k.gS));k=Vm(k);return p-t*k}; WI=function(k,p,t,J,q){q=q===void 0?!1:q;if(k.policy.Vo)return Math.ceil(k.policy.Vo*p);k.policy.MG&&(J=Math.abs(J));J/=k.playbackRate;var F=1/TG(k.gS);t=Math.max(.9*(J-3),Nu(k.gS)+k.gS.Y.T*F)/F*.8/(p+t);t=Math.min(t,J);k.policy.Ta>0&&q&&(t=Math.max(t,k.policy.Ta));return wPu(k,t,p)}; wPu=function(k,p,t){return Math.ceil(Math.max(Math.max(k.policy.AP,k.policy.Qx*t),Math.min(Math.min(k.policy.IY,31*t),Math.ceil(p*t))))||k.policy.AP}; iji=function(k,p,t){t=WI(k,p.T.info.Lp,t.T.info.Lp,0);var J=Nu(k.gS)+t/TG(k.gS);return Math.max(J,J+k.policy.G8-t/p.T.info.Lp)}; Vm=function(k){return TG(k.gS,!k.policy.yr,k.policy.jl)}; D2=function(k){return Vm(k)/k.playbackRate}; s6=function(k,p,t){var J=k.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],q=k.policy.playbackStartPolicy.startMinReadaheadPolicy||[];k=Infinity;p=g.Z(p&&J.length>0?J:q);for(J=p.next();!J.done;J=p.next())J=J.value,q=J.minReadaheadMs||0,t<(J.minBandwidthBytesPerSec||0)||k>q&&(k=q);return k<Infinity?k/1E3:k}; LP=function(k,p,t,J){var q=this;this.Z=k;this.lh=p;this.policy=t;this.logger=J;this.rO=[];this.kI=[];this.T=-1;this.bG=null;this.S=this.timestampOffset=0;this.Dx=null;this.Y=10;this.X=new Set;this.u3={lz:function(F){return q.lz(F)}}; this.C=p.m2?0:1;t.VQ>0&&(this.Y=t.VQ)}; IsT=function(k,p,t,J,q){if(!J.info.C){if(t.length===0)t.push(J);else{var F;(k=(F=t.pop())==null?void 0:g.li(F,J))?t.push(k):t.push(J)}return q}var d;(t=(d=t.pop())==null?void 0:g.li(d,J))||(t=J);if(k.policy.Kb&&t.info.Y)return k.logger&&k.logger({incompleteSegment:t.info.Aj()}),q;d=k.lz(t);J=d.formatId;q=d.x8;t=d.clipId;F=d.x6;d=d.startTimeMs;if(!k.policy.Xo&&k.policy.Y&&k.Dx){var S=vI(k.Dx,t);d+=S}J={clipId:t,formatId:J,startTimeMs:d,durationMs:F,Jy:q,Ux:q,v4:d,V8:F};q=Q5T(p,J.startTimeMs);(t=q>= 0?p[q]:null)&&Pyi(k,t,J)?J=t:(q+=1,p.splice(q,0,J));t=0;for(F=q+1;F<p.length;F++){d=k;S=p[F];var U=J,f=S.startTimeMs+S.durationMs,b=U.startTimeMs+U.durationMs;b>=f+d.Y?d=!0:b+d.Y<S.startTimeMs?d=!1:Go6(d,S.formatId,U.formatId)?(U.durationMs=f-U.startTimeMs,U.V8=U.durationMs,U.Ux=S.Ux,d=!0):(S.startTimeMs=b,S.v4=b,S.Jy=U.Ux+1,d=!1);if(!d)break;t++}t&&p.splice(q+1,t);return q}; RWT=function(k,p,t){k.policy.Kb&&t!=null&&t.Nx||(k.rO=[]);k.policy.Oo?(p=g.dH(k.kI,{startTimeMs:p*1E3},function(J,q){return J.startTimeMs-q.startTimeMs}),k.T!==p&&(k.T=-1,k.N=void 0)):(XPw(k,!0),k.T=Q5T(k.kI,p*1E3))}; Q5T=function(k,p){k=g.dH(k,{startTimeMs:p},function(t,J){return t.startTimeMs-J.startTimeMs}); return k>=0?k:-k-2}; XPw=function(k,p){if(k.bG){var t=k.bG.Dl();if(t.length!==0){if(k.N&&p){var J=k.N,q=J.info.M2;!JN(t,q)&&J.info.S>0&&(0,g.V9)()-k.S<5E3&&(k.logger&&k.logger({dend:J.info.Aj()}),t=DO_(t,q,q+.01))}k.policy.Oo&&k.logger&&k.logger({cbri:""+k.T});J=[];for(var F=q=0;q<t.length&&F<k.kI.length;){var d=t.start(q),S=t.end(q),U=k.kI[F].startTimeMs/1E3,f=(k.kI[F].startTimeMs+k.kI[F].durationMs)/1E3;if(U<=S&&f>=d){var b=0;if(k.Dx){var N=cI(k.Dx,U*1E3);N&&(b=N.aD/1E3)}N=Object.assign({},k.kI[F]);var y=k.lh.N.get(ZC(k.kI[F].formatId)), Y=Math.max(U,d);d=y.index.cN(Y+k.Y/1E3-b);U=y.index.getStartTime(d)+b;var T=d+ +(Math.abs(U-Y)>k.Y/1E3);Y=T+k.C;T=(y.index.getStartTime(T)+b)*1E3;F!==k.T||p?(N.Jy=Y,N.startTimeMs=T):(k.logger&&k.logger({pEvict:"1",og:N.startTimeMs,adj:U*1E3}),N.Jy=d+k.C,N.startTimeMs=U*1E3);N.v4=N.startTimeMs;d=void 0;U=((d=k.N)==null?void 0:d.info.duration)||11;F===k.T&&S<f&&f-S<=U*1.01&&(S=f);d=Math.min(f,S);U=y.index.cN(d-k.Y/1E3-b);Y=k.policy;(Y.Y||Y.Cp.D("html5_sabr_include_tail_media_chunk"))&&y.index.Hh(U+ 1)&&y.index.UB(U+1)+b<=d&&(U+=1);Y=y.index.UB(U)+b;U-=+(Math.abs(Y-d)>k.Y/1E3);d=U+k.C;b=(y.index.UB(U)+b)*1E3;N.Ux=d;N.durationMs=b-N.startTimeMs;N.V8=N.durationMs;N.Jy<=N.Ux&&J.push(N)}f<S?F+=1:q+=1}k.kI=J}}}; BY_=function(k){var p=[],t=[].concat(g.m(k.rO));k.kI.forEach(function(d){p.push(Object.assign({},d))}); for(var J=k.T,q=g.Z(k.Z.Hq()),F=q.next();!F.done;F=q.next())J=IsT(k,p,t,F.value,J);p.forEach(function(d){d.startTimeMs&&(d.startTimeMs+=k.timestampOffset*1E3,d.v4&&(d.v4+=k.timestampOffset*1E3))}); return{kI:p,rO:t}}; Pyi=function(k,p,t){var J=p.startTimeMs+p.durationMs,q=t.startTimeMs+t.durationMs;if(t.startTimeMs-J>k.Y)return!1;if(Go6(k,p.formatId,t.formatId))return p.durationMs=Math.max(J,q)-p.startTimeMs,p.V8=p.durationMs,p.Ux=Math.max(p.Ux,t.Ux),!0;if(Math.abs(p.startTimeMs-t.startTimeMs)<=k.Y){if(p.durationMs>t.durationMs+k.Y){k=p.formatId;var F=p.Jy,d=p.Ux;p.formatId=t.formatId;p.durationMs=t.durationMs;p.Jy=t.Jy;p.V8=t.durationMs;p.Ux=t.Ux;t.formatId=k;t.startTimeMs=q;t.v4=q;t.durationMs=J-q;t.V8=t.durationMs; t.Jy=F;t.Ux=d;return!1}p.formatId=t.formatId;return!0}J>t.startTimeMs&&(p.durationMs=t.startTimeMs-p.startTimeMs,p.V8=p.durationMs,p.clipId===t.clipId&&(p.Ux=t.Jy-1));return!1}; Go6=function(k,p,t){return p.itag!==t.itag||p.xtags!==t.xtags?!1:k.lh.m2||p.lmt===t.lmt}; zWu=function(k,p,t){if(k.logger){for(var J=[],q=0;q<p.length;q++){var F=p[q],d=void 0;if((d=F.Kn)==null?0:d.startTicks){var S=d=void 0,U=void 0;J.push("i."+((d=F.formatId)==null?void 0:d.itag)+"_st."+(F.startTimeMs+"_psst.")+(((S=F.Kn)==null?void 0:S.startTicks)+"_psd.")+((U=F.Kn)==null?void 0:U.dW))}d=void 0;J.push("i."+((d=F.formatId)==null?void 0:d.itag)+"_st."+(F.startTimeMs+"_e."+(F.startTimeMs+F.durationMs)+"_d."+F.durationMs)+("_sn."+F.Jy)+("_en."+F.Ux))}k.logger({p:""+t,br:J.join(";")})}}; eW0=function(k){k.kI=[];k.rO=[];k.X.clear();k.T=-1;k.N=void 0}; nP=function(k,p,t,J,q){this.Ey=k;this.lh=p;this.videoTrack=t;this.audioTrack=J;this.policy=q;this.seekCount=this.T=0;this.X=!1;this.C=null;this.N=0;this.Y=this.lh.isManifestless&&!this.lh.FA}; hWL=function(k,p,t){if(!k.policy.S){k=p.T.index;var J=p.Y.x8;k.Hh(J)||t&&t.x8===J?(p.X=!k.Hh(J),p.NO=!k.Hh(J)):(p.X=!0,p.NO=!0)}}; ME0=function(k){var p=Math.max(k.videoTrack.C.N||0,k.audioTrack.C.N||0);as9(k.videoTrack);as9(k.audioTrack);k.policy.S||fje(k.lh);k.lh.isManifestless&&!k.policy.S&&(k.Y=!0,k.N=0);var t=k.Ey;t.policy.j6||(t.currentTime=p);k.X=!0;k.C=new Mi;return k.C}; lsS=function(k,p,t,J,q){var F=k.policy.Kb?q:void 0;if(!p.T.Ox()){if(!(F=t===0||!!p.N.length&&p.N[0]instanceof w9))a:{if(p.N.length&&(F=p.N[0],F instanceof iK&&F.DO&&F.Oe)){F=!0;break a}F=!1}F||k.policy.T||Qm(p);return t}var d=PI(p,t);if(!isNaN(d))return d;if(k.Ey.AL(t*1E3))return t;q.Nx?k.policy.L2&&(k=GA(k.Ey,p),gIh(p.C,t+k,!0)):(p.Jt(),k.Ey.hY(!1,"sta_"+ +p.T.info.B3()));return J&&(k=oU(J.Dl(),t),!isNaN(k))?(I6(p,k+uf6,F),t):I6(p,t,F)}; Ojw=function(k,p,t,J){if(k.policy.S)!J||!k.Y&&k.policy.ez||g.Eo(function(){XE(k)}); else{if(k.isSeeking()&&k.T){var q=j5_(k,p,t);if(q!==-1){k.videoTrack.X=!1;k.audioTrack.X=!1;k.Y=!0;k.N=0;g.Eo(function(){k.Ey.yT("seekreason",{reason:"behindMinSq",tgt:q});R6(k,q)}); return}}t?k.videoTrack.NO=!1:k.audioTrack.NO=!1;var F=k.policy.XB||!k.Y;PI(k.videoTrack,k.T)>=0&&PI(k.audioTrack,k.T)>=0&&F?((k.videoTrack.X||k.audioTrack.X)&&k.Ey.yT("iterativeSeeking",{status:"done",count:k.seekCount}),k.videoTrack.X=!1,k.audioTrack.X=!1):J&&g.Eo(function(){if(k.Y||!k.policy.ez)XE(k);else{var d=p.startTime,S=p.duration;if(!k.policy.S){var U=t?k.videoTrack.X:k.audioTrack.X,f=k.videoTrack.S!==-1&&k.audioTrack.S!==-1,b=k.T>=d&&k.T<d+S+.1,N=!k.videoTrack.NO&&!k.audioTrack.NO,y=k.policy.D4&& PI(k.videoTrack,d)&&PI(k.audioTrack,d);U&&f&&N&&(b||y?((t?k.videoTrack:k.audioTrack).X=!1,k.videoTrack.X||k.audioTrack.X||(k.Ey.yT("iterativeSeeking",{status:"done",target:d,originalTime:d+k.Ey.Yx(),count:k.seekCount}),k.seekCount=0)):k.seekCount<8?(k.seekCount++,k.Ey.yT("iterativeSeeking",{status:"inprogress",count:k.seekCount,target:k.T,actual:d,duration:S,isVideo:t}),k.seek(k.T,{})):(k.Ey.yT("iterativeSeeking",{status:"incomplete",count:k.seekCount,target:k.T,actual:d}),k.seekCount=0,k.videoTrack.X= !1,k.audioTrack.X=!1,BI(k.Ey,d+.1,{ij:!0,XR:"chunkSelectorSynchronizeMedia",pK:!0})))}}})}}; j5_=function(k,p,t){if(!k.isSeeking())return-1;t=(t?k.videoTrack:k.audioTrack).T.index;var J=t.cN(k.T);return(t.Hh(k.lh.P3)||p.x8===k.lh.P3)&&J<k.lh.P3?k.lh.xx():-1}; R6=function(k,p,t){k.Y&&k.videoTrack.S!==-1&&k.audioTrack.S!==-1&&(k.Y=!1,k.T=p,BI(k.Ey,p+.1,{ij:!0,XR:"chunkSelectorSynchronize",pK:!0,seekSource:t}))}; XE=function(k){var p=k.videoTrack.S!==-1,t=k.audioTrack.S!==-1;if(!p||!t)if(p=!p&&zA(k.videoTrack),t=!t&&zA(k.audioTrack),p||t){t=p?k.videoTrack:k.audioTrack;p=p?k.audioTrack:k.videoTrack;t.S=zA(t).info.x8;if(k.policy.S){var J;p.S=((J=zA(p))==null?void 0:J.info.x8)||p.S}if(p.S!==-1){var q=Math.max(p.T.index.getStartTime(p.S),t.T.index.getStartTime(t.S));yq(k.lh)&&Math.abs(q-yq(k.lh))>432E3&&bW9(k.lh);k.N&&(q=k.N,k.N=0);g.Eo(function(){k.policy.S||R6(k,q,102)}); k.Ey.yT("initManifestlessSync",{st:q,ost:q+k.Ey.Yx(),a:k.audioTrack.S,v:k.videoTrack.S});k.C&&(k.C.resolve(q+.1),k.C=null);k.policy.S&&R6(k,q,102)}}}; el=function(k,p){var t=this;this.A5=k;this.requestNumber=++KT_;this.T=this.now();this.L=this.gy=NaN;this.Z=this.T;this.N=this.nE=this.X=0;this.S=this.T;this.RY=this.B=this.P0=this.yn=this.UQ=this.j6=this.Y=this.C=0;this.Y8=this.isActive=!1;this.Fd=this.pp=0;this.u3={mxT:function(){return t.Ih}}; this.gS=p.gS;this.snapshot=HWS(this.gS);this.policy=this.gS.Y;this.hn=!!p.hn;this.eS=p.eS;this.Bn=p.Bn||0;this.Rx=p.Rx||0;p.DZ&&(this.Oy=new qu);var J;this.Ih=(J=p.Ih)!=null?J:!1;this.hn||jWj(this.gS)}; Hjw=function(k){k.P0=Math.max(k.P0,k.X-k.UQ);k.B=Math.max(k.B,k.Z-k.yn);k.j6=0}; hr=function(k,p,t){OWS(k.gS,p);k.Oy&&(k.Oy.add(Math.ceil(p)-Math.ceil(k.Z)),k.Oy.add(Math.max(0,Math.ceil(t/1024)-Math.ceil(k.X/1024))));var J=p-k.Z,q=t-k.X;k.nE=q;k.RY=Math.max(k.RY,q/(J+.01)*1E3);k.Z=p;k.X=t;k.j6&&t>k.j6&&Hjw(k)}; a6=function(k,p){k.url=p;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Ml=function(k,p){el.call(this,k,p);this.gs=this.ez=!1;this.IY=this.NO=Infinity;this.W0=NaN;this.qW=!1;this.B0=NaN;this.aO=this.qO=this.k8=0;this.T1=p.T1||1;this.sI=p.sI||this.T1;this.dK=p.dK;this.x8=p.x8;this.PN=p.PN;xmh(this);this.hO(this.T);this.Jp=(this.B0-this.T)/1E3}; kYi=function(k){var p=k.qO||k.k8;return p?k.snapshot.delay+Math.min(k.Rx,(k.L-k.gy)/1E3)+p:k.Jp}; g9=function(k,p,t){if(!k.hn){p=Math.max(p,.01);var J=k.Bn?Math.max(p,t/k.Bn):p,q=k.gS.Y.N;q&&(J=p,k.Bn&&(J=Math.max(p,t/k.Bn*q)));Up(k.gS,p,t,J)}}; pEi=function(k){return(k.S-k.T)/1E3}; xmh=function(k){k.W0=k.T+k.snapshot.delay*1E3;k.qW=!1}; uK=function(k,p){if(k.dK&&k.x8!==void 0&&k.PN!==void 0){var t=Math,J=t.min,q=k.NO;var F=k.dK;var d=k.T;if(t8e(F,k.x8))F=p;else{var S=0;F.QN&&(S=.2);F=d+(F.Rx+S)*1E3}k.NO=J.call(t,q,F);t=Math;J=t.min;q=k.IY;F=k.dK;d=k.T;S=J6T(F,k.x8,k.PN);S!==2&&(p=S?p:d+F.Rx*1E3,F.QN&&(p+=F.Rx*1E3));k.IY=J.call(t,q,p);k.NO<=k.T?xmh(k):(k.W0=k.NO,k.qW=!0)}}; owi=function(k,p){if(k.BL(p,1)){var t=k.getUint8(p);t=t<128?1:t<192?2:t<224?3:t<240?4:5}else t=0;if(t<1||!k.BL(p,t))return[-1,p];if(t===1)k=k.getUint8(p++);else if(t===2)t=k.getUint8(p++),k=k.getUint8(p++),k=(t&63)+64*k;else if(t===3){t=k.getUint8(p++);var J=k.getUint8(p++);k=k.getUint8(p++);k=(t&31)+32*(J+256*k)}else if(t===4){t=k.getUint8(p++);J=k.getUint8(p++);var q=k.getUint8(p++);k=k.getUint8(p++);k=(t&15)+16*(J+256*(q+256*k))}else t=p+1,k.focus(t),rK(k,t,4)?k=BOT(k).getUint32(t-k.CU,!0):(J= k.getUint8(t+2)+256*k.getUint8(t+3),k=k.getUint8(t)+256*(k.getUint8(t+1)+256*J)),p+=5;return[k,p]}; lK=function(k){this.A5=k;this.T=new NP}; jl=function(k,p){this.info=k;this.callback=p;this.state=1;this.k5=this.tC=!1;this.jh=null}; q1M=function(k){return g.sQ(k.info.aY,function(p){return p.type===3})}; O6=function(k,p,t,J){var q=this;J=J===void 0?{}:J;this.policy=p;this.A5=t;this.status=0;this.T=new NP;this.Y=0;this.MO=this.C=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(J.method||"GET",k);if(J.headers)for(k=J.headers,p=g.Z(Object.keys(k)),t=p.next();!t.done;t=p.next())t=t.value,this.xhr.setRequestHeader(t,k[t]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return q.ZY()}; this.xhr.onload=function(){return q.onDone()}; this.xhr.onerror=function(){return q.onError()}; this.xhr.fetch(function(F){q.T.append(F);q.Y+=F.length;F=(0,g.V9)();q.A5.RW(F,q.Y)},function(){},J.body||null)}; FNq=function(k,p){this.Y=(new TextEncoder).encode(k);this.T=(new TextEncoder).encode(p)}; EPi=function(k,p){var t,J,q;return g.Q(function(F){if(F.T==1){if(!p)return F.return(p);t=KP.R5();J=new g.rL(k.Y);return g.n(F,J.encrypt(p,k.T),2)}q=F.Y;KP.g5("woe",t,Math.ceil(p.byteLength/16));return F.return(q)})}; NRu=function(k,p){var t,J,q;return g.Q(function(F){if(F.T==1){if(!p)return F.return(p);t=KP.R5();J=new g.rL(k.Y);return g.n(F,J.decrypt(p,k.T),2)}q=F.Y;KP.g5("wod",t,Math.ceil(p.byteLength/16));return F.return(q)})}; dBe=function(k,p){var t=this;this.T=k;this.A5=p;this.loaded=this.status=0;this.error="";k=mU(this.T.get("range")||"");if(!k)throw Error("bad range");this.range=k;this.Y=new NP;$Bw(this).then(function(){t.A5.jF()},function(J){t.error=""+J||"unknown_err"; t.A5.jF()})}; $Bw=function(k){var p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A;return g.Q(function(V){if(V.T==1){k.status=200;p=k.T.get("docid");t=Ku(k.T.get("fmtid")||"");J=k.T.get("lmt")||"0";q=+(k.T.get("csz")||0);if(!p||!t||!q)throw Error("Invalid local URL");k.T.get("ck")&&k.T.get("civ")&&(F=new FNq(k.T.get("ck"),k.T.get("civ")));d=k.range;S=Math.floor(d.start/q);U=Math.floor(d.end/q);f=S}if(V.T!=5)return f<=U?g.n(V,yb0(p,t,J,f,F),5):V.oY(0);b=V.Y;if(b===void 0)throw Error("invariant: data is undefined");N=f*q;y=(f+1)*q; Y=Math.max(0,d.start-N);T=Math.min(d.end+1,y)-(Y+N);A=new Uint8Array(b.buffer,Y,T);k.Y.append(A);k.loaded+=T;k.loaded<d.length&&k.A5.RW((0,g.V9)(),k.loaded);f++;return V.oY(2)})}; S16=function(k,p,t,J){var q=this;J=J===void 0?{}:J;this.policy=p;this.A5=t;this.Z=J;this.status=0;this.response=void 0;this.Y=0;this.X=this.S=!1;this.errorMessage="";this.L=function(F){if(F)if(q.status=F.status,F.ok&&F.body&&q.status!==204)q.status=q.status||242,q.N=F.body.getReader(),q.MO()?q.N.cancel().catch(function(){}):(q.responseHeaders=F.headers,q.A5.ZL(),EwL(q)); else q.onDone();else q.onError(Error("null_response"))}; this.B=function(F){var d=(0,g.V9)();q.MO()||(F.done?(q.N=void 0,q.onDone()):(F=F.value,q.Y+=F.length,q.T.append(F),EwL(q),q.A5.RW(d,q.Y)))}; this.onError=function(F){q.errorMessage=String(F);q.S=!0;q.onDone()}; this.T=new NP;this.C=window.AbortController?new AbortController:void 0;this.start(k)}; EwL=function(k){k.N.read().then(k.B,k.onError).then(void 0,og)}; UBL=function(k,p,t){var J=this;t=t===void 0?{}:t;this.A5=p;this.Y=this.status=0;this.MO=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(t.method||"GET",k);if(t.headers){k=t.headers;p=g.Z(Object.keys(k));for(var q=p.next();!q.done;q=p.next())q=q.value,this.xhr.setRequestHeader(q,k[q])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(F){J.ZY(F)}; k=Nm(function(F){J.onDone(F)}); this.xhr.addEventListener("load",k,!1);this.xhr.addEventListener("error",k,!1);t.body?this.xhr.send(t.body):this.xhr.send();this.xhr.addEventListener("progress",Nm(function(F){J.eh(F)}),!1)}; HI=function(k,p,t,J,q){if(rC(k.Bj))return new dBe(k,t);k=k.b1();return J?Gk_()?new O6(k,p,t,q):new S16(k,p,t,q):new UBL(k,t,q)}; g.xO=function(k){this.tag=k}; fNh=function(k,p){kF.apply(null,[6,k,p].concat(g.m(g.nS.apply(2,arguments))))}; bDi=function(k,p){kF.apply(null,[5,k,p].concat(g.m(g.nS.apply(2,arguments))))}; kF=function(k,p,t){var J=g.nS.apply(3,arguments),q=k===6?"ERROR":"WARNING",F="b"+t;g.nV(new (Function.prototype.bind.apply(g.hm,[null,F].concat(g.m(J)))),q);J.unshift(F);J=J.join(", ");q=NCS.get(p);if(!q){q="ytplog."+p;F=5;try{window.localStorage&&!isNaN(+window.localStorage[q])&&(F=+window.localStorage[q]),window.sessionStorage&&!isNaN(+window.sessionStorage[q])&&(F=+window.sessionStorage[q])}catch(U){}NCS.set(p,F);q=F}if(!(k<q)){q=y69;F=q.T.get(p);F||(F=new Y1M,q.T.set(p,F));q=F;F=Date.now();var d= Math.floor((F-q.Y)*.01);d>0&&(q.T=Math.min(q.T+d,10),q.Y=F);q.T>0?(q.T--,q=!0):q=!1;if(q)typeof J==="function"&&(J=J()),console.log("plyr."+p,J);else{var S;J=((S=TCT.get(p))!=null?S:0)+1;TCT.set(p,J);J%100===1&&console.warn("plyr","plyr."+p+" is chatty, dropping logs.")}}}; Y1M=function(){this.T=10;this.Y=Date.now()}; pN=function(k,p){g.R.call(this);var t=this;this.policy=k;this.aY=p;this.Y=0;this.T=null;this.ey=[];this.N=null;this.u3={Sw:function(){return t.aY}}; this.aY.length===1||g.sQ(this.aY,function(J){return!!J.range})}; tJ=function(k,p,t){k.T&&(yV(k.T,p),p=k.T,k.T=null);for(var J=0,q=0,F=g.Z(k.aY),d=F.next();!d.done;d=F.next())if(d=d.value,d.range&&J+d.N<=k.Y)J+=d.N;else{p.getLength();if(L5(d)&&!t&&k.Y+p.getLength()-q<J+d.N){k.T=p.split(q).EU;return}a:{var S=k;var U=d,f=k.Y-J,b=q,N=p,y=!!t,Y=N.getLength()-b;U.range&&(Y=Math.min(U.N-f,Y));U=diM(U,U.Y+f,Y,U.range?U.Y+f+Y===U.range.length:y);b=YU(N,b,Y);b=new ui(U,b);if(S.policy.useUmp&&S.ey.length&&(N=g.li(S.ey[S.ey.length-1],b))){S.ey[S.ey.length-1]=N;S=Y;break a}S.ey.push(b); S=Y}k.Y+=S;q+=S;J+=d.N;if(q===p.getLength())break}p.getLength()}; JJ=function(k,p,t,J,q,F,d,S,U){U=U===void 0?!1:U;g.R.call(this);this.A5=k;this.policy=p;this.Cb=t;this.oO=J;this.timing=q;this.logger=F;this.N=d;this.T7=S;this.X=U;this.lastError=null;this.T=0;this.C=!1;this.Y=new g.jF(this.PtS,this.policy.v3,this)}; r60=function(k){k.oO.L=(0,g.V9)();k=ox(k);k.N=(0,g.V9)();k.started+=1}; A6i=function(k,p,t,J){k.timing.Ld((0,g.V9)(),p,t);p=k.oO;p.Y=0;p.X=0;p.Z=0;Ut(ox(k));k.policy.QQ&&J&&(J=ox(k),J.Y+=1);if((J=k.T7)!=null&&(k=k.Cb.Bj,!((0,g.V9)()<J.S+3E5||rC(k))&&(p=TY(k))&&ZD6(p)&&J.Y===qe(p))){var q;ZN(k)&&(q=TY(CD(k)));g.cz("yt-player-bandaid-host",{primary:p,secondary:q},864E3);J.S=(0,g.V9)();Cfu(J,{primary:p,secondary:q})}}; FJ=function(k){if(k.lastError==="ump.spsrejectfailure")k.policy.q_||k.timing.Y8||KO9(k.oO,!1,k.Cb,k.policy,k.N);else{if(k.lastError==="net.timeout")k.timing.IC((0,g.V9)());else{var p=k.timing;hr(p,(0,g.V9)(),p.X)}if(k.lastError==="net.nocontent")++k.oO.Z;else{if((p=k.lastError==="net.timeout"||k.lastError==="net.connect"||k.lastError==="net.closed")&&!rC(k.Cb.Bj)){var t=ox(k);t.timedOut+=1}else t=ox(k),t.T+=1;k.timing.Y8||KO9(k.oO,p,k.Cb,k.policy,k.N)}}k.A5.cH(5)}; $F=function(k,p,t,J,q){return p>=400?(k.lastError="net.badstatus",!0):(q===void 0?0:q)?(k.lastError="ump.spsrejectfailure",!0):t||J!==void 0&&J?!1:(k.lastError=p===204?"net.nocontent":"net.connect",!0)}; dc=function(k,p){if(k.policy.wh)return!1;var t=p.getResponseHeader("content-type"),J=p.Qt();k=!J||J<=k.policy.In;return(!p.UR()||!t||t.indexOf("text/plain")!==-1)&&k}; V8j=function(k,p){var t="";p=p.QP();p.getLength()<=k.policy.In&&(t=mBL(k,p.xN()));return t}; mBL=function(k,p){var t=Ac(p);return jC(t)?(k.logger.debug(function(){return"Redirecting to "+t}),t):""}; ox=function(k){return bi(k.N,TY(k.Cb.Bj))}; WNM=function(k){var p=k.timing.ZX();p.shost=TY(k.Cb.Bj);return p}; DB_=function(k,p){return(k==null?void 0:k.maxWidth)>(p==null?void 0:p.maxWidth)||(k==null?void 0:k.maxHeight)>(p==null?void 0:p.maxHeight)}; svh=function(k,p){for(var t=g.Z(p.keys()),J=t.next();!J.done;J=t.next())if(J=p.get(J.value),J.length!==0){g.SD(J,function(S,U){return U.maxFramerate-S.maxFramerate}); for(var q=[J[0]],F=0,d=1;d<J.length;d++)DB_(J[d],q[F])&&(q.push(J[d]),F++);k=k.concat(q)}return k}; vw6=function(k,p){var t=[];p=g.Z(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;var q=LNi[J]||0;k.T&&q>k.T||t.push(J)}return t}; Ed=function(k,p,t){var J=c69[k]||[];t.D("html5_shorts_onesie_mismatched_fix")&&(J=nwT[k]||[]);p.push.apply(p,g.m(J));t.D("html5_early_media_for_drm")&&p.push.apply(p,g.m(wE6[k]||[]))}; XEL=function(k,p){var t=g.Jx(k),J=k.G(),q=J.X;J=J.D("html5_shorts_onesie_mismatched_fix");var F=k.n7();if(J){if(!q.C){if(F&&SQ)return SQ;if(Ud)return Ud}}else if(Ud&&!q.C)return Ud;var d=[],S=[],U={},f=fN.concat(iDj);J&&(f=fN.concat(Qvw));k.D("html5_early_media_for_drm")&&(f=f.concat(Pfh),k.D("allow_vp9_1080p_mq_enc")&&f.push(GYu));var b=[].concat(g.m(INj));if(t.L)for(var N=0;N<b.length;N++)b[N].length&&X5[b[N][0]]==="a"&&(b[N]=["141"]);if(t.P0)for(N=0;N<b.length;N++)b[N].length&&X5[b[N][0]]==="o"&& (b[N]=["774"]);k.D("html5_iamf_audio_onesie_fmt")&&b.push(["773"]);f=g.Z(f);for(var y=f.next();!y.done;y=f.next()){N=!1;y=g.Z(y.value);for(var Y=y.next();!Y.done;Y=y.next()){Y=Y.value;var T=pq(Y,F&&J);if(T&&T.video&&!(hD(T)&&!t.j6&&T.video.T>t.Ok)){var A=g.dU(k.G().experiments,"html5_drm_byterate_soft_cap");A>0&&VVe(T)&&T.Lp>A||(N?(d.push(Y),Ed(Y,d,k)):(T=$w(t,T,q),T===!0?(N=!0,d.push(Y),Ed(Y,d,k)):U[Y]=T))}}}b=g.Z(b);for(f=b.next();!f.done;f=b.next())for(f=g.Z(f.value),N=f.next();!N.done;N=f.next())if(N= N.value,(y=AdM(N))&&y.audio&&(k.D("html5_onesie_51_audio")||!ae(y)&&!Mz(y)))if(y=$w(t,y,q),y===!0){S.push(N);Ed(N,S,k);break}else U[N]=y;t.Y&&p("orfmts",U);if(J)return q.C&&(q.C=!1,SQ=Ud=void 0),F?SQ={video:d,audio:S}:Ud={video:d,audio:S};Ud={video:d,audio:S};q.C=!1;return Ud}; g.zBS=function(k,p,t){var J=t.X,q=[],F=[],d=t.D("html5_shorts_onesie_mismatched_fix");k=k.n7();var S=fN.concat(iDj);d&&(S=fN.concat(Qvw));t.D("html5_early_media_for_drm")&&(S=S.concat(Pfh),t.D("allow_vp9_1080p_mq_enc")&&S.push(GYu));var U=[].concat(g.m(INj));if(p.L)for(var f=0;f<U.length;f++)U[f].length&&X5[U[f][0]]==="a"&&(U[f]=["141"]);if(p.P0)for(f=0;f<U.length;f++)U[f].length&&X5[U[f][0]]==="o"&&(U[f]=["774"]);t.D("html5_iamf_audio_onesie_fmt")&&U.push(["773"]);S=g.Z(S);for(f=S.next();!f.done;f= S.next()){f=g.Z(f.value);for(var b=f.next();!b.done;b=f.next()){b=b.value;var N=pq(b,k&&d);if(N&&N.video){var y=g.dU(t.experiments,"html5_drm_byterate_soft_cap");if(!(y>0&&VVe(N)&&N.Lp>y)&&$w(p,N,J)===!0){q.push({videoCodec:RBL[X5[b]],maxWidth:N.video.width,maxHeight:N.video.height,maxFramerate:N.video.fps});break}}}}d=g.Z(U);for(k=d.next();!k.done;k=d.next())for(k=g.Z(k.value),U=k.next();!U.done;U=k.next())if(U=U.value,(S=AdM(U))&&S.audio&&(t.D("html5_onesie_51_audio")||!ae(S)&&!Mz(S))&&$w(p,S,J)=== !0){F.push({audioCodec:BCu[X5[U]],numChannels:S.audio.numChannels});break}return{videoFormatCapabilities:q,audioFormatCapabilities:F}}; b1=function(k){var p={},t=k.Tb,J=k.Cp,q=t.getVideoData(),F=wY(0),d=t.getPlayerSize(),S=t.getVisibilityState();F&&(p.Jp6=F,p.lastManualDirection=IJM(),F=F6e()||0,F>0&&(F=(J.D("html5_use_date_now_for_local_storage")?Date.now():(0,g.V9)())-F,J.D("html5_use_date_now_for_local_storage")?F>0&&(p.timeSinceLastManualFormatSelectionMs=F):p.timeSinceLastManualFormatSelectionMs=F));F=J.D("html5_use_streamer_bandwidth_for_low_latency_live")&&q.isLowLatencyLiveStream;if(J.schedule.gy&&!F){var U;F=J.D("html5_disable_bandwidth_cofactors_for_sabr_live")? !((U=k.pT)==null||!U.yr):!1;p.lF=TG(J.schedule,!F)}U=g.ar();var f=g.Qs.medium,b=Math.floor(f*16/9);F=q.n7()?f:b;f=q.n7()?b:f;p.kt=Math.max(d.width*U,F);p.vX=Math.max(d.height*U,f);p.visibility=S;p.XNp=VP();p.R1=t.Bb()*1E3;d=k.Tb.We(!0);var N,y,Y,T,A,V;p.L_O={defaultPolicy:(d==null?void 0:(N=d.o1)==null?void 0:N.T)||0,smooth:(d==null?void 0:(y=d.yop)==null?void 0:y.T)||0,visibility:(d==null?void 0:(Y=d.Ehh)==null?void 0:Y.T)||0,Wv:(d==null?void 0:(T=d.eL)==null?void 0:T.T)||0,performance:(d==null? void 0:(A=d.iI)==null?void 0:A.T)||0,speed:(d==null?void 0:(V=d.Aop)==null?void 0:V.T)||0};if(J.D("html5_sabr_report_sticky_constraints")){var D;p.b$=(d==null?void 0:(D=d.CDy)==null?void 0:D.T)||0}else p.b$=wY();J.D("html5_enable_sabr_drm_hd720p")&&k.sabrLicenseConstraint&&(p.sabrLicenseConstraint=k.sabrLicenseConstraint);if(J.D("html5_onesie_media_capabilities")||J.D("html5_enable_server_format_filter"))p.U6=3;J.D("html5_onesie_audio_only_playback")&&ku(q)&&(p.U6=1);var v;((v=k.pT)==null?0:v.qW)&& k.v80&&(p.U6=p.U6===void 0?7:p.U6|4);N=q.fZ?q.fZ:g.Jx(q);J.D("html5_onesie_media_capabilities")&&(p.mediaCapabilities=g.zBS(q,N,J));var w;if((w=k.pT)==null?0:w.T&&w.Q4){Y=J.X;w=[];y=[];T=new Map;J.D("html5_ssap_update_capabilities_on_change")?(Y.gy||hQq(Y),A=Y.gy||[]):A=Array.from(Y.T.values());A=g.Z(A);for(V=A.next();!V.done;V=A.next())D=V.value,D.B3?y.push({audioCodec:BCu[D.H0],numChannels:D.numChannels,spatialCapabilityBitmask:eBS[D.H0]}):(v=RBL[D.H0],V={videoCodec:v,maxWidth:D.maxWidth||0,maxHeight:D.maxHeight|| 0,maxFramerate:D.maxFramerate||0,is10BitSupported:D.yu||!1},D.maxBitrateBps&&(V.maxBitrateBps=D.maxBitrateBps,d=pq(D.itag),S=void 0,((S=d)==null?0:S.video)&&$w(N,d,Y)===!0&&(d=d.Lp*8,d>V.maxBitrateBps&&(V.maxBitrateBps=d))),D=v+"_"+D.yu,v=T.get(D)||[],v.push(V),T.set(D,v));w=svh(w,T);Y={};J.D("html5_ssff_denylist_opus_low")&&(Y={itagDenylist:[249,350]});p.mediaCapabilities={videoFormatCapabilities:w,audioFormatCapabilities:y,hdrModeBitmask:3,perPlaybackAttributes:Y}}var X;if((X=k.pT)==null?0:X.T){p.qQ= N.qQ;var B;p.Ok=(B=k.pT)==null?void 0:B.Ok}J.Dw&&(p.O$=J.Dw);p.OI=k.Vc;p.DQ=k.DQ;p.ZQ=k.ZQ;p.lf=k.lf;if(J.D("html5_fix_time_since_last_seek_reporting")?k.ew!==void 0:k.ew)p.fO8=(0,g.V9)()-k.ew;k.isPrefetch&&J.D("html5_report_prefetch_requests")&&(p.isPrefetch=!0);u_||(p.XpG=!0);X=Nu(J.schedule)*1E3;X>0&&(p.zy=X);var O;((O=k.pT)==null?0:O.aU)&&k.Vx&&k.Vx<Infinity&&(p.Vx=k.Vx);t=t.getPlaybackRate();t!==1&&(p.playbackRate=t);var l;((l=k.pT)==null?0:l.nT)&&k.rP&&(p.Cr=k.Cr,p.vF=k.vF,p.rP=k.rP);J.D("allow_proxima_live_latency")&& (iy()===1&&(p.LSr=1),J.D("html5_sabr_force_proxima")&&(p.p0b=1),l=g.dU(J.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),p.oIh=l>0?l:J.schedule.interruptions[0]||0);var oi;if((oi=k.pT)==null?0:oi.aO)p.PL=k.PL;var $h;(($h=k.pT)==null?0:$h.kc)&&q.M_&&(p.audioTrackId=q.M_);var kh;if((kh=k.pT)==null?0:kh.xZ)if(k=CSi())p.detailedNetworkType=hBj[k]||hBj.other;return p}; Ne=function(k,p,t,J,q,F,d){var S={};p&&(S.G0=p);if(!k)return S;S.playbackCookie=t==null?void 0:t.playbackCookie;q&&(S.SN=q);S.tU=[];S.bf=[];if(d==null?0:d.size)for(p=g.Z(d.values()),t=p.next();!t.done;t=p.next())S.bf.push(t.value);if(k.sabrContextUpdates.size>0)for(p=g.Z(k.sabrContextUpdates.values()),t=p.next();!t.done;t=p.next())aN9(S,t.value,J);tx(k)&&!g.hF(k)&&k.D("html5_enable_sabr_request_pipelining")&&F&&aN9(S,F,J);k.pP&&(S.iLh=k.pP);J=k.G().T;S.clientInfo={clientName:M80[J.c.toUpperCase()]|| 0};J.cbrand&&(S.clientInfo.deviceMake=J.cbrand);J.cmodel&&(S.clientInfo.deviceModel=J.cmodel);J.cver&&(S.clientInfo.clientVersion=J.cver);J.cos&&(S.clientInfo.osName=J.cos);J.cosver&&(S.clientInfo.osVersion=J.cosver);J=k.G();J.D("html5_sabr_enable_server_xtag_selection")&&J.qW&&(S.clientInfo.hl=J.qW);k.eF&&(S.eF=k.eF);return S}; aN9=function(k,p,t){var J=p.type||0;(t==null?0:t.has(J))?k.bf.push(p):k.tU.push(J)}; iK=function(k,p,t,J,q,F){var d=F===void 0?{}:F;var S=d.PM===void 0?[]:d.PM;var U=d.qt===void 0?!1:d.qt;var f=d.Nb===void 0?0:d.Nb;var b=d.poToken===void 0?"":d.poToken;var N=d.T7===void 0?void 0:d.T7;var y=d.RP===void 0?"":d.RP;var Y=d.DO===void 0?0:d.DO;var T=d.Oe===void 0?new Uint8Array(0):d.Oe;var A=d.Sx===void 0?!1:d.Sx;F=d.vV===void 0?0:d.vV;d=d.G0===void 0?void 0:d.G0;jl.call(this,p,q);var V=this;this.policy=k;this.logger=new g.xO("dash/request");this.hk=this.Zb=0;this.pc=!1;this.zd=this.R7= null;this.xX=!1;this.Oe=this.DO=null;this.hX=this.YM=!1;this.yg=null;this.vV=this.Zg=0;this.KX=!1;this.u3={cH:function(v){V.cH(v)}, pbh:function(){return V.jh}, MvS:function(v){V.jh=v}, Smh:function(v){V.Zb=v}, qmT:function(v){V.MP.lastError=v}, Mf:function(){return V.xhr}}; this.timing=new Ml(this,t);this.qt=U;this.DO=Y;this.Oe=T;this.Cb=g.I4(this.info,this.policy,J);this.Cb.set("rn",this.Wh().toString());this.Cb.set("rbuf",(f*1E3).toFixed().toString());this.qt&&this.Cb.set("smb","1");this.policy.xb&&b&&this.Cb.set("pot",b);y&&this.Cb.set("bbs",y);this.policy.useUmp&&!rC(this.Cb.Bj)&&(this.sU=new lK(this),this.Cb.set("ump","1"),this.Cb.set("srfvp","1"));if(k=this.policy.SY?this.policy.B9&&!isNaN(this.info.PN)&&this.info.PN>this.policy.fk?!1:!0:!1)p=null,this.policy.T8&& this.policy.qB?p=[1]:A&&(p=[]),p!=null&&(this.policy.dR&&p.push(2),this.Cb.set("defsel",p.join(",")));this.MP=new JJ(this,this.policy,this.Cb,this.info.oO,this.timing,this.logger,J,N);this.PM=S||null;this.k5=gwM(this);r60(this.MP);J=void 0;if(this.policy.Kx||this.sU||this.policy.Oy)J={method:"POST"},S=(0,g.ye)([120,0]),N={},this.policy.Ku&&d&&(d=Ne(void 0,d),N.XJ=d),this.policy.cF&&this.Oe&&(N.videoPlaybackUstreamerConfig=this.Oe),this.policy.Oy&&(d=this.info.C)&&Object.assign(N,d),Object.keys(N).length> 0?J.body=g.gK(N,g.gY):J.body=S;if(this.DO&&this.Oe){this.Cb.set("iwts","1");J={method:"POST"};d={lf:this.DO*1E3};var D;S=(D=this.info.C)==null?void 0:D.sS;D=g.gK({eY:d,sS:S||void 0,videoPlaybackUstreamerConfig:this.Oe},g.gY);J.body=D}try{this.xhr=HI(this.Cb,this.policy.B,this.timing,k,J),this.MP.Y.start(),F&&(this.qD=new g.jF(this.WE,F,this),this.qD.start(F+(this.timing.gS.B.L$()||0)*1E3)),this.policy.UA&&a6(this.timing,this.b1()),this.logger.debug(function(){return"Sent, itag="+V.Cb.get("itag")+ " seg="+V.info.aY[0].x8+" range="+V.Cb.get("range")+" time="+Math.round(V.info.aY[0].M2)+"-"+Math.round(g.uJ(V.info.aY).m_)+" rtp="+(V.timing.uZ()-Date.now()).toFixed(0)}),g.Eo(function(){})}catch(v){uke(this,v,!0)}}; gwM=function(k){if(!(Gb(k.info)&&k.info.Ih()&&k.policy.V4&&k.PM)||k.info.oO.Y>=2||wY()>0||!zbT())return!1;var p=k.Cb.get("aitags");if(!p)return!1;p=Ku(p).split(",");for(var t=[],J=g.Z(k.PM),q=J.next();!q.done;q=J.next())q=q.value,g.Kc(p,q)&&t.push(q);if(!t.length)return!1;k.Cb.set("altitags",g.OZ(t.join(",")));return!0}; uke=function(k,p,t){t=t===void 0?!1:t;g.nV(p);k.MP.lastError="player.exception";k.errorMessage=p.name+"_"+p.message;t?g.Eo(function(){FJ(k.MP)}):FJ(k.MP)}; lNq=function(k,p){k.timing.Y8=!0;k.xhr.UR()&&k.timing.WO();if(k.policy.UF){var t;(t=k.qD)==null||t.stop()}tJ(k.jh,p,!1)}; jv6=function(k,p){k.info=p;if(k.jh){var t=k.jh;p=p.aY;(p.length!==t.aY.length||p.length<t.ey.length)&&bDi("dash/request",260511119,""+p.length,""+t.aY.length,""+t.ey.length);t.aY=p;for(var J=p[0].range,q=new NP,F=0;F<t.ey.length;F++)yV(q,t.ey[F].T);for(F=0;F<t.ey.length;F++){t.ey[F].info=p[F];var d=p[F].range;t.ey[F].T=YU(q,d.start-J.start,d.length)}}k.k5=!1}; ODq=function(k){k.Zg&&(k.xhr.status=k.Zg,k.Zb=k.Zg)}; YF=function(k,p){el.call(this,k,p);this.qO=!0;this.NO=!1;this.W0=this.IY=0;this.k8=NaN}; KNS=function(k,p,t){var J=k.Bn?Math.max(p,t/k.Bn):p,q=k.gS.Y.N;q&&(J=p,k.Bn&&(J=Math.max(p,t/k.Bn*q)));Up(k.gS,p,t,J)}; T_=function(k){this.Y={};this.logger=new g.xO(k)}; rc=function(k){T_.call(this,"sabr");this.A5=k}; ZI=function(k){g.R.call(this);this.C=k;this.logger=new g.xO("onesie");this.Zx=new Map;this.Y=this.T=!1;this.pT=this.lh=null;this.N=!1}; HDe=function(k,p,t){k.Zx.get(p).eh=t}; mg=function(k,p){k.Zx.has(p)&&(CN?k.Zx.get(p).WR.clear():k.Zx.get(p).ey=new NP,AJ(k,p),k.Y=!0)}; xBe=function(k){for(var p=g.Z(k.Zx),t=p.next();!t.done;t=p.next()){var J=g.Z(t.value);t=J.next().value;J=J.next().value;J.uC||mg(k,t)}}; kbS=function(k,p){p=k.Zx.get(p);if(!p)return 0;k=0;if(p.aY.length>0){p=g.Z(p.aY);for(var t=p.next();!t.done;t=p.next()){var J=void 0;k+=((J=t.value.range)==null?void 0:J.length)||0}return k}if(p.nC.length>0)for(t=g.Z(p.nC),J=t.next();!J.done;J=t.next())k+=J.value.kT||0;return k+p.v8}; Ve=function(k,p){if(CN){var t=0;k=k.Zx.get(p);if(k==null||!k.WR)return 0;k=g.Z(k.WR.values());for(p=k.next();!p.done;p=k.next())t+=p.value.data.getLength();return t}return((t=k.Zx.get(p))==null?void 0:t.ey.getLength())||0}; WJ=function(k,p){k=k.Zx.get(p);if(CN){if(k==null||!k.uC)return!1;p=k.WR.size>0;return k.IV.length>0||p}return!(k==null||!k.uC)&&!(k==null||!k.ey.getLength())}; pke=function(k,p){var t=k.Zx.get(p),J=kbS(k,p),q=!J&&!!t.bytesReceived;if(CN){var F;if((F=k.lh)==null?0:F.m2){k=g.Z(t.WR.values());for(p=k.next();!p.done;p=k.next())if(!p.value.AS)return!1;return q}}else if(F=k.yx(p),q&&k.T&&F!==void 0)return F;return(q||t.bytesReceived===J)&&t.XQ+Ve(k,p)===t.bytesReceived}; tdi=function(k,p,t){k.Zx.set(p,{ey:new NP,XQ:0,bytesReceived:0,v8:0,bJ:!1,TH:!1,yx:!1,B3:t,yR:[],aY:[],nC:[],uC:!1,WR:new Map,Cy:new Map,IV:[]});k.logger.debug(function(){return"[initStream] formatId: "+p})}; J_h=function(k,p,t,J){t.aY.push.apply(t.aY,g.m(J));if(CN){t.Cy.has(p)||t.Cy.set(p,[]);var q;(q=t.Cy.get(p)).push.apply(q,g.m(J))}else if(t.jh)for(k=g.Z(J),p=k.next();!p.done;p=k.next())t.jh.aY.push(p.value);else{t.jh=new pN(k.pT,[].concat(g.m(t.aY)));var F;((F=k.pT)==null?0:F.N_)&&g.z(k,t.jh)}}; o60=function(k,p,t){var J,q=(J=k.lh)==null?void 0:J.N.get(p);if(!q)return[];if(t.Tv){var F;return((F=q.t7(0,t.clipId))==null?void 0:F.aY)||[]}if(q.a9()){var d=t.startMs,S=t.durationMs,U=1E3,f;if(((f=k.pT)==null?0:f.T)&&t.timeRange){var b;d=(b=t.timeRange.startTicks)!=null?b:-1;var N;S=(N=t.timeRange.dW)!=null?N:-1;var y;U=(y=t.timeRange.timescale)!=null?y:-1}if(t.sO<0||t.On<0||S<0||d<0||t.kT<0||U<0)return mg(k,p),[];k=Vd(t.sO,t.kT);p=t.WP||0;return[new DC(3,q,k,"makeSliceInfosMediaBytes",t.On-1,d/ U,S/U,p,k.length-p,void 0,t.aq,t.clipId)]}if(t.On<0)return mg(k,p),[];var Y;return((Y=k.lh)==null?0:Y.m2)?(p=q.JM,f=p*q.info.Lp,b=((d=k.pT)==null?0:d.Kb)?t.WP:void 0,((U=k.pT)==null?0:U.Fx)&&t.timeRange&&!b&&(S=t.timeRange.startTicks/t.timeRange.timescale),[new DC(3,q,void 0,"makeSliceInfosMediaBytes",t.On,S,p,b,f,!0,t.aq,t.clipId)]):[]}; qtL=function(k,p,t){k.lh=p;k.pT=t;p=g.Z(k.Zx);for(t=p.next();!t.done;t=p.next()){var J=g.Z(t.value);t=J.next().value;J=J.next().value;for(var q=g.Z(J.yR),F=q.next();!F.done;F=q.next()){F=F.value;var d=o60(k,t,F);J_h(k,F.bB,J,d)}}}; DI=function(k,p,t,J){k.logger.debug(function(){return"[addStreamData] formatId: "+t+",headerId: "+p+" bytes: "+J.getLength()}); (k=k.Zx.get(t))&&!k.TH&&(CN?(k.WR.has(p)||k.WR.set(p,{data:new NP,T9:0,AS:!1}),yV(k.WR.get(p).data,J)):yV(k.ey,J),k.bytesReceived+=J.getLength(),k.bJ=!0)}; AJ=function(k,p){k.logger.debug(function(){return"[closeStream] formatId: "+p}); var t=k.Zx.get(p);t&&!t.TH&&(t.TH=!0,t.eh&&t.eh(),FUi(k)&&k.C.yq())}; FUi=function(k){k=g.Z(k.Zx.values());for(var p=k.next();!p.done;p=k.next())if(!p.value.TH)return!1;return!0}; sd=function(k,p,t,J,q,F,d,S){g.R.call(this);this.policy=k;this.info=p;this.lh=t;this.A5=q;this.tZ=S;this.logger=new g.xO("sabr");this.sU=new lK(this);this.HK=new rc(this);this.ra=new ZI(this);this.state=1;this.Ge=!1;this.cw=0;this.clipId="";this.vO=this.FS=-1;this.ZK=0;this.YU=-1;this.KX=this.Us=!1;this.F5=0;this.Lf=!1;this.policy.KC?this.Tq=new YF(this,F):this.Tq=new Ml(this,F);this.Cb=this.policy.aO?p.JJ:$r6(p,this.policy,J);this.Cb.set("rn",""+this.Wh());this.Cb.set("alr","yes");qtL(this.ra,t, k);this.MP=new JJ(this,this.policy,this.Cb,p.oO,this.Tq,this.logger,J,d,this.policy.enableServerDrivenRequestCancellation);r60(this.MP);var U;if((U=this.policy)==null?0:U.N_)g.z(this,this.ra),g.z(this,this.MP);k=p.Y;p={method:"POST",body:k};k&&(this.ZK=k.length);try{this.xhr=HI(this.Cb,this.policy.B,this.Tq,u_,p),this.policy.UA&&a6(this.Tq,this.b1()),this.MP.Y.start()}catch(f){g.wt(f)}}; dr6=function(k){k.policy.uf&&k.aH&&!k.Lf?k.Lf=!0:k.Tq.WO()}; E6w=function(k,p){var t=-1,J=-1,q=-1,F;if((F=k.V0)==null?0:F.items)for(k=g.Z(k.V0.items),F=k.next();!F.done;F=k.next())F=F.value,p<F.cC||F.cC<t||(t=F.cC,J=F.S3,q=F.minReadaheadMs);return{UOp:t,S3:J,vC:q}}; St6=function(k){this.T=k;this.L=this.qO=this.Z=this.j6=this.C=this.X=this.S=this.P0=this.B=this.Oy=this.Y8=this.NO=this.gy=0;this.ticks={}}; LN=function(k){k.gy||(k.gy=(0,g.V9)(),CW("mb_s",k.gy,k.T))}; Ur0=function(k){k.NO||(k.NO=(0,g.V9)(),CW("ovfs_rp",k.NO,k.T))}; fC0=function(k){k.Y8||(k.Y8=(0,g.V9)(),CW("oafs_rp",k.Y8,k.T))}; b5S=function(k){k.X||(k.X=(0,g.V9)(),CW("vda",k.X,k.T),k.C&&Hz(g.OA(),4))}; NjS=function(k){k.C||(k.C=(0,g.V9)(),CW("ada",k.C,k.T),k.X&&Hz(g.OA(),4))}; y_T=function(k){k.j6||(k.j6=(0,g.V9)(),CW("vis_a",k.j6,k.T))}; YtT=function(k){k.Z||(k.Z=(0,g.V9)(),CW("ais_a",k.Z,k.T))}; Tji=function(k){k.qO||(k.qO=(0,g.V9)(),CW("vrb_f",k.qO,k.T))}; r_i=function(k){k.L||(k.L=(0,g.V9)(),CW("arb_f",k.L,k.T))}; Z5i=function(k,p,t){var J=p instanceof sd&&!k.N&&!k.Y,q=!k.N&&(t==null?void 0:t.info.video);t=!k.Y&&(t==null?void 0:t.info.audio);p.state===3?((q||J)&&k.tick("vrr"),(t||J)&&k.tick("arr")):p.state===4?q?(k.N=p.b1(),Hz(g.OA(),4)):t&&(k.Y=p.b1()):p instanceof iK&&p.uj()&&q&&Hz(g.OA(),4)}; CiL=function(k){return!!k.Y&&!!k.N}; vJ=function(k,p,t,J,q,F,d){g.o$.call(this);var S=this;this.Ey=k;this.lh=p;this.policy=t;this.videoTrack=J;this.audioTrack=q;this.u1=d;this.gy=this.T=null;this.X=this.Z=NaN;this.B=0;this.L=NaN;this.S=null;this.P0=this.NO=NaN;this.j6=new Map;this.Y8=this.N=this.C=NaN;this.u3={T48:function(){return S.Y}}; this.Y=F?1:0}; mri=function(k,p,t,J){J=J===void 0?!0:J;if(t&&!k.j6.has(p.x8)){for(var q=p.startTime,F=[],d=0;d<t.T.length;d++){var S=t.T[d],U=q;q=U+t.Y[d];F.push({startTime:U,endTime:q,adCpn:S})}k.j6.set(p.x8,F)}if(k.policy.Gt)if(q=k.gy&&p.x8===k.gy.x8+1,k.gy=p,F=k.T&&p.x8===k.T.x8+1,F=k.T&&q&&F&&k.T.ut.event!=="stop"&&k.T.ut.event!=="predictStart",d=p.ut||null,S=k.videoTrack.T.index.WH(),k.policy.Eo&&(S=Math.max(k.videoTrack.T.index.WH(),k.audioTrack.T.index.WH())),S=p.x8>=S,U=k.lh.isManifestless&&k.policy.Bt, d){var f;if(((f=k.T)==null?void 0:f.ut.event)==="predictStart"&&k.T.x8<p.x8&&d.event==="stop"){var b;k.Ey.handleError("ssdai.missingstartcueevent",{lastpredict:((b=k.T)==null?void 0:b.x8)||0,csq:p.x8},0)}k.T={ut:d,x8:p.x8,Hg:!!t,pZ:J};S?cJ(k,d,p.x8):U&&(q?F?cJ(k,d,p.x8):d.event==="continue"||d.event==="stop"?A_T(k,p):cJ(k,d,p.x8):cJ(k,d,p.x8))}else F&&A_T(k,p),k.Y===4&&nN(k,5,"qend")}; cJ=function(k,p,t){p.startSecs+=isNaN(k.B)?0:k.B;k=k.lh;k.NO.push(p);k.publish("cuepointsadded",t)}; VdS=function(k,p,t){if(k.Y!==0&&t&&p.aY[0].pZ()){var J=p.aY[0].x8,q=p.aY[0].M2;p=p.isDecorated();wc(k,J,q,p,t)}}; wc=function(k,p,t,J,q){var F;p!==((F=k.T)==null?void 0:F.x8)||k.Y===1||J||k.T.ut.event==="predictStart"||k.yT("sdai",{undecevt:1,sq:p,mt:t,evt:k.T.ut.event},!0);p>k.X&&(k.X=NaN,k.Z=NaN);if(k.T&&k.T.x8===p)if(J=k.T,q&&J){var d=J.ut;F=q.xe(d);d.event==="predictStart"&&(k.Y8=p);k.yT("sdai",{onqevt:d.event,sq:p,mt:t,gab:F,cst:d.startSecs,cueid:k.policy.hE&&(F||d.event==="start")?d.identifier:void 0},!0);if(F)if(d.event!=="predictStart")d.event==="start"&&k.Y8===p-1&&k.yT("sdai",{gabonstart:p}),J.Hg?nN(k, 4,"cue"):(k.X=p,k.Z=t,k.yT("sdai",{joinad:k.Y,sg:k.X,st:k.Z.toFixed(3)}),k.L=Date.now(),nN(k,2,"join"),q.SR(J.ut));else{var S=p+Math.max(Math.ceil(-d.T/5E3),1);F=Math.floor(t-d.T/1E3);k.policy.X?k.N=F:k.C=S;k.yT("sdai",{onpred:t,estsq:S,estmt:F.toFixed(3)});i1(k.Ey,F,F,S);k.L=Date.now();nN(k,3,"predict");q.SR(J.ut)}else k.Y===1?((S=k.S)==null?0:S.Pe(t))?(i1(k.Ey,t,t,p),nN(k,4,"sk2had")):nN(k,5,"nogab"):d.event==="predictStart"&&(k.policy.X&&k.N>0?(t=Math.floor(t-d.T/1E3),k.N!==t&&k.yT("sdai",{updateSt:t, old:k.N}),k.N=t):k.C>0&&(t=p+Math.max(Math.ceil(-d.T/5E3),1),k.C!==t&&(k.yT("sdai",{updateSt:t,old:k.C}),k.C=t)));var U,f;if(k.u1&&d.event==="start"&&((U=k.T)==null?void 0:U.ut.event)!=="predictStart"&&((f=k.T)==null?void 0:f.x8)===p-1){var b;k.yT("sdai",{ovlpst:(b=k.T)==null?void 0:b.ut.event,sq:p})}}else k.yT("sdai",{nulldec:1,sq:p,mt:t.toFixed(3),evt:(J==null?void 0:(d=J.ut)==null?void 0:d.event)||"none"});else k.Y===1&&nN(k,5,"noad")}; Dr9=function(k,p,t){if(k.Y===1||k.Y===2)return!1;if(k.Y!==0&&p===k.audioTrack){if(k.policy.X)return WU9(k.videoTrack,t)||WU9(k.videoTrack,t+1);k=Qe(k.videoTrack);if(t>(k?k.x8:-1))return!1}return!0}; PJ=function(k,p,t){return(t<0||t===k.X)&&!isNaN(k.Z)?k.Z:p}; A_T=function(k,p){if(k.T){var t=k.T.ut.NR-(p.startTime+k.B-k.T.ut.startSecs);t<=0||(t=new Qb(k.T.ut.startSecs-(isNaN(k.B)?0:k.B),t,k.T.ut.context,k.T.ut.identifier,"stop",k.T.ut.T+p.duration*1E3),k.yT("cuepointdiscontinuity",{segNum:p.x8}),cJ(k,t,p.x8))}}; nN=function(k,p,t){k.Y!==p&&(k.yT("sdai",{setsst:p,old:k.Y,r:t}),k.Y=p)}; G_=function(k,p,t,J){(J===void 0?0:J)?nN(k,1,"seek"):p>0&&Math.abs(p-t)>=5&&k.Y===4&&nN(k,5,"sk2t."+p.toFixed(2)+";ct."+t.toFixed(2))}; Ix=function(k,p,t){this.audio=k;this.video=p;this.reason=t}; XJ=function(k,p,t){this.T=k;this.reason=p;this.token=t;this.videoId=void 0}; Rx=function(k,p,t){g.R.call(this);this.policy=k;this.C=p;this.yT=t;this.N=new Map;this.X=0;this.S=!1;this.T="";this.Y=!1}; BJ=function(k,p,t){if(t===void 0?0:t)k.S=!0;++k.X;t=6E4*Math.pow(2,k.X);t=(0,g.V9)()+t;k.N.set(p.info.id,t)}; z_=function(k){for(var p=g.Z(k.N.entries()),t=p.next();!t.done;t=p.next()){var J=g.Z(t.value);t=J.next().value;J=J.next().value;J<(0,g.V9)()&&k.N.delete(t)}return k.N}; s4S=function(k){return k.S&&z_(k).size>0}; eQ=function(k,p){k.T!==p&&(k.T=p,k.Y=!0)}; LUT=function(k,p){var t;p&&(t=g.j9(k.C.T,function(q){return q.id===p})); if(!t&&(t=g.j9(k.C.T,function(q){var F;return!((F=q.ws)==null||!F.isDefault)}),p)){var J; k.yT("iaf",{id:p,sid:(J=t)==null?void 0:J.id})}return t}; ax=function(k,p,t,J,q,F){var d=this;F=F===void 0?[]:F;this.Ey=k;this.NO=p;this.policy=t;this.lh=J;this.S=q;this.B0=F;this.logger=new g.xO("dash/abr");this.T=Xp;this.N=this.Z=null;this.L=-1;this.qO=!1;this.nextVideo=this.Y=null;this.C=[];this.IY=new Set;this.Oy={};this.v0=new $H(1);this.B=0;this.W0=this.Y8=this.gy=!1;this.P0=0;this.k8=!1;this.j6=new Set;this.RY=!1;this.u3={BK:function(){hJ(d)}}; this.X=new Rx(this.policy,q,function(S,U){d.Ey.yT(S,U)})}; i5e=function(k,p,t){Me(k,p);p=LUT(k.X,t);t||p||(p=v6j(k));p=p||k.S.T[0];k.Y=k.lh.T[p.id];hJ(k);k.Z=k.Y;c_9(k);n6e(k);k.N=k.nextVideo;k.Z=k.Y;return wkS(k)}; Gbw=function(k,p){if(Q4T(k,p))return null;if(p.reason==="m"&&p.isLocked())return k.logger.debug(function(){return"User sets constraint to: "+t6(p)}),Me(k,p),k.B=k.C.length-1,hJ(k),gc(k),k.Y8=k.Y8||k.N!==k.nextVideo,k.N=k.nextVideo,new Ix(k.Y,k.N,p.reason); p.reason==="r"&&(k.L=-1);Me(k,p);gc(k);if(p.reason==="r"&&k.nextVideo===k.N)return new Ix(k.Y,k.nextVideo,p.reason);Piu(k);return null}; ICe=function(k,p,t){k.Y=k.lh.T[p];k.Z=k.Y;return new Ix(k.Z,k.N,t?"t":"m")}; XkL=function(k,p){if(p.info.video){if(k.N!==p)return k.N=p,wkS(k)}else k.W0=k.Z!==p,k.Z=p;return null}; R$i=function(k,p){if(p.T.info.video&&p.C){var t=(p.Y+p.N)/p.duration,J=p.T.info.Lp;t&&J&&(k.v0.zk(1,t/J),k.policy.N&&t/J>1.5&&k.Ey.yT("overshoot",{sq:p.x8,br:t,max:J}))}}; u1=function(k,p,t){BJ(k.X,p,t===void 0?!1:t);k.L=-1;Me(k,k.T)}; BjM=function(k,p){return new Ix(k.Z,k.N,p||k.T.reason)}; Piu=function(k){if(k.N&&k.nextVideo&&l1(k,k.N.info)<l1(k,k.nextVideo.info)){var p=k.T.reason;k.gy=k.gy||p==="r"||p==="u"||p==="v"}}; wkS=function(k){k.qO?k.qO=!1:k.L=(0,g.V9)();k.gy=!1;k.RY=!1;return new Ix(k.Z,k.N,k.T.reason)}; z$j=function(k,p){var t={};p=g.Z(p);for(var J=p.next();!J.done;J=p.next())if((J=J.value)&&J.video){var q=J.video.T,F=t[q],d=F&&hD(F)&&F.video.T>k.policy.Ok,S=q<=k.policy.Ok?hD(J):B$(J);if(!F||d||S)t[q]=J}return t}; Me=function(k,p){k.T=p;var t=k.S.videoInfos;if(!k.T.isLocked()){var J=(0,g.V9)();t=g.dZ(t,function(S){if(S.Lp>this.policy.Lp)return!1;var U=this.lh.T[S.id];return z_(this.X).get(S.id)>J?!1:U.oO.Y>4||U.S>4?(this.logger.debug(function(){return"Remove "+xg(S)+"; 4 load failures"}),!1):this.j6.has(+S.itag)?!1:!0},k); s4S(k.X)&&(t=g.dZ(t,function(S){return S.video.width<=854&&S.video.height<=480}))}t.length||(t=k.S.videoInfos); var q=t;k.policy.cJ&&(q=e$q(k,q,p));q=g.dZ(q,p.C,p);if(k.T.isLocked()&&k.X.T){var F=g.j9(t,function(S){return S.id===k.X.T}); F?q=[F]:eQ(k.X,"")}k.policy.cJ||(q=e$q(k,q,p));q.length||(q=[t[0]]);q.sort(function(S,U){return l1(k,S)-l1(k,U)}); p={};for(t=1;t<q.length;p={QB:void 0,dk:void 0},t++)p.dk=q[t-1],p.QB=q[t],p.dk.video.width>p.QB.video.width?(g.HW(q,t),t--):l1(k,p.dk)*k.policy.L>l1(k,p.QB)&&(g.HW(q,t-1),t--);var d=q[q.length-1];k.k8=!!k.N&&!!k.N.info&&k.N.info.H0!==d.H0;k.logger.debug(function(){return"Constraint: "+t6(k.T)+", "+q.length+" fmts selectable, max selectable fmt: "+xg(d)}); k.C=q;k.IY.clear();p=!1;for(t=0;t<q.length;t++)p?k.IY.add(q[t].itag):q[t].video.T>=1080&&(p=!0);h$j(k.policy,d,k.lh.m2)}; e$q=function(k,p,t){var J=t.reason==="m"||t.reason==="s";k.policy.g1&&jQ&&g.y9&&(!J||t.T<1080)&&(p=p.filter(function(f){return f.video&&(!f.Y||f.Y.powerEfficient)})); if(p.length>0)if(UI()){var q=z$j(k,p);p=p.filter(function(f){return!!f&&!!f.video&&f.H0===q[f.video.T].H0})}else{var F,d,S=(F=p[0])==null?void 0:(d=F.video)==null?void 0:d.T; if(S){t=p.filter(function(f){return!!f&&!!f.video&&f.video.T===S}); var U=z$j(k,t)[S].H0;p=p.filter(function(f){return!!f&&!!f.video&&f.H0===U})}}return p}; aCi=function(k,p){for(var t=0;t+1<k.C.length&&k.C[t].video.quality==="tiny";)t++;var J=D2(k.NO)/k.policy.L;return l1(k,p.info)+l1(k,k.C[t])>J}; hJ=function(k){if(!k.Y||!k.policy.C&&!k.Y.info.ws){var p=k.S.T;k.Y&&(p=p.filter(function(J){return J.audio.T===k.Y.info.audio.T}),p.length||(p=k.S.T)); k.Y=k.lh.T[p[0].id];if(p.length>1){if(k.policy.SB){if(k.policy.qG){var t=g.DR(p,function(J){return J.audio.audioQuality}); k.Ey.yT("aq",{hqa:k.policy.pp,qs:t.join("_")})}if(k.policy.pp)return;if(t=g.j9(p,function(J){return J.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))k.Y=k.lh.T[t.id]}t=!1; if(t=k.policy.l1?!0:k.T.isLocked()?k.T.T<240:aCi(k,k.Y))k.Y=k.lh.T[g.uJ(p).id]}}}; gc=function(k){if(!k.nextVideo||!k.policy.C)if(k.T.isLocked())k.nextVideo=k.T.T<=360?k.lh.T[k.C[0].id]:k.lh.T[g.uJ(k.C).id],k.logger.debug(function(){return"Select max fmt: "+xg(k.nextVideo.info)}); else{for(var p=Math.min(k.B,k.C.length-1),t=D2(k.NO),J=l1(k,k.Y.info),q=t/k.policy.gy-J;p>0&&!(l1(k,k.C[p])<=q);p--);for(var F=t/k.policy.L-J;p<k.C.length-1&&!(l1(k,k.C[p+1])>=F);p++);k.nextVideo=k.lh.T[k.C[p].id];k.B!==p&&k.logger.info(function(){return"Adapt to: "+xg(k.nextVideo.info)+", bandwidth: "+t.toFixed(0)+", bandwidth to downgrade: "+q.toFixed(0)+", bandwidth to upgrade: "+F.toFixed(0)+", constraint: "+t6(k.T)}); k.B=p}}; c_9=function(k){var p=k.policy.gy,t=D2(k.NO),J=t/p-l1(k,k.Y.info);p=g.OR(k.C,function(q){return l1(this,q)<J},k); p<0&&(p=0);k.B=p;k.nextVideo=k.lh.T[k.C[p].id];k.logger.info(function(){return"Initial selected fmt: "+xg(k.nextVideo.info)+", bandwidth: "+t.toFixed(0)+", max video byterate: "+J.toFixed(0)})}; n6e=function(k){if(k.B0.length){var p=k.B0,t=function(J,q){if(J.info.H0==="f"||p.includes(ZC(g.lG(J.info,k.lh.m2))))return J;for(var F={},d=0;d<q.length;F={ZW:void 0,Jl:void 0},d++){var S=k.lh.T[q[d].id];if(p.includes(ZC(g.lG(S.info,k.lh.m2)))){var U=J.info.H0,f=S.info.H0;if(U===f||UI()){if(J.info.T!==S.info.T)return k.Ey.yT("ombifa",{mismatch:"xtag",f:J.info.id,t:S.info.id}),J;F.ZW=J.info.itag;F.Jl=S.info.itag;k.Ey.yT("ombifa",{f:F.ZW,t:F.Jl});k.logger.info(function(b){return function(){return"Initial format selection changed from "+ b.ZW+" to "+b.Jl+" based on prefetched media."}}(F)); k.qO=!0;return S}k.Ey.yT("ombifa",{mismatch:"efficient",fc:U,tc:f})}}k.Ey.yT("ombifa",{mismatch:"unselectable",fmts:p.join(".")});return J}; k.nextVideo=t(k.nextVideo,k.S.videoInfos);k.Y=t(k.Y,k.S.T)}}; l1=function(k,p){if(!k.Oy[p.id]){var t=k.lh.T[p.id].index.Wq(k.P0,15);t=p.El&&k.N&&k.N.index.isLoaded()?t||p.El:t||p.Lp;k.Oy[p.id]=t}t=k.Oy[p.id];k.IY.has(p.itag)&&(t*=1.5);return t*=Math.max(1,k.v0.L$()||0)}; Mdi=function(k,p){k=uth(k.lh.T,function(t){return t.info.itag===p}); if(!k)throw Error("Itag "+p+" from server not known.");return k}; g6M=function(k){var p=[];if(k.T.reason==="m"||k.T.reason==="s")return p;if(lEL(k.lh)){for(var t=Math.max(0,k.B-2);t<k.B&&t<k.C.length;t++)p.push(k.C[t].itag);p.reverse()}return p}; Q4T=function(k,p){var t;return k.T.MR(p)&&(!k.X.T||!k.T.isLocked()||((t=k.nextVideo)==null?void 0:t.info.id)===k.X.T)}; v6j=function(k){var p=g.j9(k.S.T,function(J){return J.audio.T}),t=g.j9(k.S.T,function(J){return!J.audio.T}); return p?k.policy.Ro?p:t:null}; uH6=function(k){var p=k===void 0?{}:k;k=p.QN===void 0?!1:p.QN;var t=p.qB===void 0?!1:p.qB;p=p.SY===void 0?!1:p.SY;return k?p?3:2:t?-1:1}; Od=function(k){this.track=k;this.buffered=[];this.N=this.C=0;this.S={};this.X=0;this.T=new qu}; lCM=function(k,p,t){k.flush();k.Y=t;KN(k,3,p)}; KN=function(k,p,t){var J=[],q=k.track.bG;if(q){q=q.Dl();for(var F=0;F<q.length;F++)J.push(Math.round(q.start(F)*1E3)),J.push(Math.round(q.end(F)*1E3))}q=1;F=J.length;if(F===k.buffered.length){for(var d=0;d<=F&&J[d]===k.buffered[d];d++);d>F?q=0:J[d]>k.buffered[d]&&(d===F-1?q=2:d===F-2&&J[d+1]>k.buffered[d+1]&&(q=3))}k.T.add(p<<3|(t&&4)|q);p=Math.ceil(k.track.Bb()*1E3);k.T.add(p-k.X);k.X=p;if(q===1)for(k.T.add(F),d=p=0;d<F;d++)k.T.add(J[d]-p),p=J[d];q===3&&k.T.add(J[F-2]-k.buffered[F-2]);q>=2&&k.T.add(J[F- 1]-k.buffered[F-1]);t&&k.T.add(t);k.buffered=J}; HJ=function(k,p,t){var J=this;this.policy=k;this.T=p;this.P0=t;this.C=this.Y=0;this.LZ=null;this.gy=new Set;this.L=[];this.indexRange=this.initRange=null;this.B=new Mi;this.Y8=this.NO=!1;this.u3={d8p:function(){return J.N}, CXG:function(){return J.chunkSize}, yN6:function(){return J.Z}, TP6:function(){return J.S}}; (p=j49(this))?(this.chunkSize=p.csz,this.N=Math.floor(p.clen/p.csz),this.Z=p.ck,this.S=p.civ):(this.chunkSize=k.rW,this.N=0,this.Z=g.Zi(16),this.S=g.Zi(16));this.X=new Uint8Array(this.chunkSize);this.Z&&this.S&&(this.crypto=new FNq(this.Z,this.S))}; j49=function(k){if(k.policy.nL&&k.policy.Yk)for(var p=g.Z(k.policy.nL),t=p.next(),J={};!t.done;J={cz:void 0,T_:void 0},t=p.next())if(t=g.pY(t.value),J.cz=+t.clen,J.T_=+t.csz,J.cz>0&&J.T_>0&&k.policy.C===t.docid&&k.T.info.id===t.fmtid&&k.T.info.lastModified===+t.lmt)return k={},k.clen=J.cz,k.csz=J.T_,k.ck=t.ck,k.civ=t.civ,k}; xF=function(k){return!!k.LZ&&k.LZ.ZM()}; H5q=function(k,p){if(!xF(k)&&!k.MO()){if(!(k.NO||(k.NO=!0,k.N>0))){var t=kN(k);t=vx(k.policy.C,k.T.info,pb(k),t,k.policy.B0);tP(k,t)}if(p.info.type===1){if(k.LZ){JP(k,Error("Woffle: Expect INIT slices to always start us off"));return}k.initRange=Vd(0,p.T.getLength())}else if(p.info.type===2)k.LZ&&k.LZ.type===1||JP(k,Error("Woffle: Index before init")),k.indexRange=Vd(k.initRange.end+1,p.T.getLength());else if(p.info.type===3){if(!k.LZ){JP(k,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(k.LZ.type===3&&!ck(k.LZ,p.info)&&(k.L=[],p.info.x8!==n5(k.LZ)||p.info.Y!==0))return;if(p.info.C){t=g.Z(k.L);for(var J=t.next();!J.done;J=t.next())O5S(k,J.value);k.L=[]}else{k.L.push(p);k.LZ=p.info;return}}else{JP(k,Error("Woffle: Unexpected slice type"));return}k.LZ=p.info;O5S(k,p);KUi(k)}}; O5S=function(k,p){var t=0,J=p.T.xN();if(k.C<k.N){t=k.N*k.chunkSize;var q,F=(((q=p.info.range)==null?void 0:q.start)||0)+p.info.Y;t-=F;if(t>=J.length)return;if(t<0)throw Error("Missing data");k.C=k.N;k.Y=0}for(q={};t<J.length;q={UP:void 0})if(q.UP=Math.min(J.length-t,k.X.byteLength-k.Y),F=new Uint8Array(J.buffer,J.byteOffset+t,q.UP),k.X.set(F,k.Y),k.Y+=q.UP,t+=q.UP,k.Y===k.X.length){if(p.info===k.LZ&&xF(k)&&t===J.length)break;q=kN(k);q=vx(k.policy.C,k.T.info,pb(k),q,k.policy.B0,k.C,k.X,k.crypto);k.gy.add(q); tP(k,q);k.MO()||(q=kN(k),k.P0(pb(k),q!==void 0?(q.downloadedEndTime||0)*q.averageByteRate:q.maxKnownEndTime*q.averageByteRate,q.maxKnownEndTime*q.averageByteRate));k.X=new Uint8Array(k.chunkSize);k.Y=0;k.C+=1}}; KUi=function(k){if(xF(k))if(k.LZ&&k.indexRange)if(k.Y){var p=new Uint8Array(k.X.buffer,0,k.Y),t=xrS(k),J=k.policy.C;Promise.all(k.gy).then(function(){var q=vx(J,k.LZ.T.info,pb(k,!0),t,k.policy.B0,k.C,p,k.crypto);tP(k,q,!0)})}else JP(k,new ok("Woffle: Expect always re-mark currentChunkOffset at EOS")); else JP(k,new ok("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; kN=function(k){return{downloadedEndTime:Math.round(k.LZ?k.LZ.m_:0),maxKnownEndTime:Math.round(k.T.index.kq()),averageByteRate:Math.round(k.T.info.El)}}; xrS=function(k){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(k.T.index.kq()),averageByteRate:Math.round(k.T.info.El)}}; pb=function(k,p){p===void 0||!p||k.indexRange&&k.initRange&&k.LZ||JP(k,new ok("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));p={lmt:k.T.info.lastModified,docid:k.policy.C,fmtid:k.T.info.id,type:k.T.info.mimeType.split(";")[0],csz:k.chunkSize,clen:k.C*k.chunkSize+k.Y};k.crypto&&(p.ck=k.Z,p.civ=k.S);var t="local://localhost/videoplayback?"+Hi(p),J,q;p={itag:+k.T.info.itag,mimeType:k.T.info.mimeType,bitrate:k.T.info.Lp*8,lastModified:String(k.T.info.lastModified),initRange:(J= k.initRange)==null?void 0:HCh(J),indexRange:(q=k.indexRange)==null?void 0:HCh(q),url:t};if(J=k.T.info.T)p.xtags=J;if(J=k.T.info.video)if(p.quality=J.quality,p.qualityLabel=J.qualityLabel,p.width=J.width,p.height=J.height,J=J.fps)p.fps=J;if(k=k.T.info.audio){if(J=k.sampleRate)p.audioSampleRate=String(J);if(k=k.numChannels)p.audioChannels=k}return p}; tP=function(k,p,t){t=t===void 0?!1:t;p.then(function(J){k.gy.delete(p);(t||J===4)&&k.B.resolve(J)},function(J){k.B.reject(J)})}; JP=function(k,p){g.Wx(k.policy.C)!==4&&(g.D_(k.policy.C,4),g.wt(p),k.B.reject(new ok(p.message)))}; ok=function(k,p){k=Error.call(this,k);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.T=p===void 0?!1:p}; kj6=function(k){k=g.lf(k,1886614376);for(var p=g.Z(k),t=p.next();!t.done;t=p.next());return g.DR(k,function(J){return VmS(J)})}; pLi=function(k){var p=LO(k,function(q,F){return q+F.length},0); p=new Uint8Array(p);var t=0;k=g.Z(k);for(var J=k.next();!J.done;J=k.next())J=J.value,p.set(J,t),t+=J.length;return p}; t1M=function(k,p,t,J,q,F){this.ids=k;this.T=p;this.Y=t;this.N=J;this.C=q;this.Ch=F}; qX=function(k,p,t){this.initData=k;this.contentType=p;this.isPrefetch=t;this.T=this.cryptoPeriodIndex=NaN;this.N=[];this.rI=!1;this.Y=null;if((p==null?void 0:p.toLowerCase())==="webm"||k.length===16)this.rI=!0}; om6=function(k){a:{var p=k.initData;try{for(var t=0,J=new DataView(p.buffer);t<J.byteLength-8;){var q=J.getUint32(t);if(q<=1)break;if(J.getUint32(t+4)===1886614376){var F=32;if(J.getUint8(t+8)>0){var d=J.getUint32(t+28);F+=d*16+4}var S=J.getUint32(t+F-4);try{var U=JhT(p.subarray(t+F,t+F+S));if(U!==null){var f=U;break a}}catch(b){}}t+=q}f=null;break a}catch(b){f=null;break a}f=void 0}if(f!=null)for(p=NK(RK(f,7)),p==null||k.rI||(k.cryptoPeriodIndex=p),p=NK(RK(f,10)),p!=null&&p>0&&!k.rI&&(k.T=p),f=u5(f, 2,rji,void 0===Aj6?2:4),f=g.Z(f),p=f.next();!p.done;p=f.next())k.N.push(g.Zn(v4(p.value),4))}; qmi=function(k){return isNaN(k.cryptoPeriodIndex)?g.Zn(k.initData):""+k.cryptoPeriodIndex}; Fc=function(k,p,t){var J=t===void 0?{}:t;t=J.videoDuration===void 0?0:J.videoDuration;var q=J.FV===void 0?void 0:J.FV;J=J.DU===void 0?!1:J.DU;this.videoId=k;this.status=p;this.videoDuration=t;this.FV=q;this.DU=J}; F29=function(k,p,t,J,q){this.videoId=k;this.DW=p;this.Y=t;this.bytesDownloaded=J;this.T=q}; $N=function(k){this.T=k;this.offset=0}; dV=function(k){if(k.offset>=k.T.getLength())throw Error();return k.T.getUint8(k.offset++)}; $Yi=function(k,p){p=p===void 0?!1:p;var t=dV(k);if(t===1){p=-1;for(t=0;t<7;t++){var J=dV(k);p===-1&&J!==255&&(p=0);p>-1&&(p=p*256+J)}return p}J=128;for(var q=0;q<6&&J>t;q++)t=t*256+dV(k),J*=128;return p?t:t-J}; dY6=function(k){try{var p=$Yi(k,!0),t=$Yi(k,!1);return{id:p,size:t}}catch(J){return{id:-1,size:-1}}}; Emq=function(k){for(var p=new $N(k),t=-1,J=0,q=0;!J||!q;){var F=dY6(p),d=F.id;F=F.size;if(d<0)return;if(d===176){if(F!==2)return;J=p.I9()}else if(d===186){if(F!==2)return;q=p.I9()}d===374648427?t=p.I9()+F:d!==408125543&&d!==174&&d!==224&&p.skip(F)}p=Zd(k,0,t);t=new DataView(p.buffer);t.setUint16(J,3840);t.setUint16(q,2160);J=new NP([p]);yV(J,k);return J}; Sm6=function(k,p,t){var J=this;this.Ey=k;this.policy=p;this.S=t;this.logger=new g.xO("dash");this.Y=[];this.T=null;this.NO=-1;this.L=0;this.j6=NaN;this.gy=0;this.N=NaN;this.B=this.qO=0;this.k8=-1;this.Oy=this.X=this.C=this.P0=null;this.v0=this.W0=NaN;this.Z=this.Y8=this.IY=this.B0=null;this.pp=!1;this.RY=this.timestampOffset=0;this.u3={Hq:function(){return J.Y}}; if(this.policy.C){var q=this.S,F=this.policy.C;this.policy.B0&&k.yT("atv",{ap:this.policy.B0});this.Z=new HJ(this.policy,q,function(d,S,U){Eu(k,new Fc(J.policy.C,2,{FV:new F29(F,d,q.info,S,U)}))}); this.Z.B.promise.then(function(d){J.Z=null;d===1?Eu(k,new Fc(J.policy.C,d)):J.Ey.yT("offlineerr",{status:d.toString()})},function(d){var S=(d.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); d instanceof ok&&!d.T?(J.logger.info(function(){return"Assertion failed: "+S}),J.Ey.yT("offlinenwerr",{em:S}),Sn(J),Eu(k,new Fc(J.policy.C,4))):(J.logger.info(function(){return"Failed to write to disk: "+S}),J.Ey.yT("dldbwerr",{em:S}),Sn(J),Eu(k,new Fc(J.policy.C,4,{DU:!0})))})}}; UYe=function(k){return k.Y.length?k.Y[0]:null}; f9w=function(k,p){return k.Y.some(function(t){return t.info.x8===p})}; Tih=function(k,p,t,J){J=J===void 0?0:J;if(k.X){var q=k.X.Y+k.X.N;if(t.info.Y>0)if(t.info.x8===k.X.x8&&t.info.Y<q){if(t.info.Y+t.info.N<=q)return;t=Diq(t,q-t.info.Y)[1]}else if(t.info.x8>=0&&k.X.x8>=0&&!ck(k.X,t.info))throw new g.hm("improper_continuation",k.X.Aj(),t.info.Aj());t6i(k.X,t.info)||Uu(k,"d")}else if(t.info.Y>0)throw new g.hm("continuation_of_null",t.info.Aj());k.X=t.info;k.S=t.info.T;if(t.info.Y===0){if(k.T)if(!k.Ey.isOffline()||k.policy.EZ)k.Ey.yT("slice_not_fully_processed",{buffered:k.T.info.Aj(), push:t.info.Aj()});else throw new g.hm("slice_not_fully_processed",k.T.info.Aj(),t.info.Aj());fb(k);k.qO=J}else{if(k.qO&&J&&k.qO!==J)throw k=new g.hm("lmt_mismatch",t.info.x8,k.qO,J),k.level="WARNING",k;!t.info.T.a9()&&k.C&&(J=t.info,q=k.C.FS,J.X="updateWithEmsg",J.x8=q)}if(k.T){J=g.li(k.T,t);if(!J)throw new g.hm("failed_to_merge",k.T.info.Aj(),t.info.Aj());k.T=J}else k.T=t;a:{t=g.g2(k.T.info.T.info);if(k.T.info.type!==3){if(!k.T.info.C)break a;k.T.info.type===6?bR0(k,p,k.T):Nij(k,k.T);k.T=null}for(;k.T;){J= k.T.T.getLength();if(k.NO<=0&&k.L===0){var F=k.T.T,d=-1;q=-1;if(t){for(var S=0;S+8<F.getLength();){var U=z26(F,S),f=z26(F,S+4);S+=U||1;if(f===1836019558)d=S;else if(f===1835295092){q=S;break}}q<0&&(d=-1)}else{F=new $N(F);for(U=S=!1;;){f=F.I9();var b=dY6(F),N=b.id;b=b.size;if(!(N>0))break;if(N!==408125543)if(N===524531317)S=!0,b>=0&&(q=F.I9()+b,U=!0);else{if(S&&(N===160||N===163)&&(d<0&&(d=f),U))break;N===163&&(d=Math.max(0,d),q=F.I9()+b);if(N===160){d<0&&(q=d=F.I9()+b);break}F.skip(b)}}d<0&&(q=-1)}if(d< 0)break;k.NO=d;k.L=q-d}if(k.NO>J)break;k.NO?(J=yhw(k,k.NO),J.X&&Ymi(k,J),bR0(k,p,J),bm(k,J),k.NO=0):k.L&&(J=yhw(k,k.L<0?Infinity:k.L),k.L-=J.T.getLength(),bm(k,J))}}k.T&&k.T.info.C&&(bm(k,k.T),k.T=null)}; Nij=function(k,p){!p.info.T.a9()&&p.info.Y===0&&(g.g2(p.info.T.info)||p.info.T.info.rI())&&woT(p);if(p.info.type===1)try{Ymi(k,p),rh6(k,p)}catch(q){g.nV(q);var t=wj(p.info);t.hms="1";k.Ey.handleError("fmt.unparseable",t||{},1)}t=p.info.T;t.bu(p);k.Z&&H5q(k.Z,p);if(t.Ox()&&k.policy.T)a:{k=k.Ey.lh;p=p.info.clipId;t=g.lG(t.info,k.m2);if(p){var J=jUM(k,t);if(k.RY[J])break a;k.RY[J]=p}k.Oy.push(t)}}; gIh=function(k,p,t){if(k.Y.length!==0&&(t||k.Y.some(function(F){return F.info.M2<p}))){t=0; for(var J=g.Z(k.Y),q=J.next();!q.done;q=J.next()){q=q.value;if(q.info.M2<p)break;k.Ey.yT("cmat",{max:p,s:q.info.Aj()});t+=1}k.Y.splice(0,t)}}; Sn=function(k){var p;(p=k.Z)==null||p.dispose();k.Z=null}; ZRq=function(k){var p=k.Y.reduce(function(t,J){return t+J.T.getLength()},0); k.T&&(p+=k.T.T.getLength());return p}; C_u=function(k){if(k.Y8&&!k.policy.tR){var p=k.Ey;p.lh.isManifestless&&ri(p.lh,k.Y8.x8,!!k.S.info.video)}k.Y8=null;k.C=null;k.X=k.B0;k.N=k.X?k.N-k.gy:NaN;fb(k)}; yhw=function(k,p){var t=k.T;p=Math.min(p,t.T.getLength());if(p===t.T.getLength())return k.T=null,t;t=Diq(t,p);k.T=t[1];return t[0]}; Ymi=function(k,p){p.T.getLength();var t=p.EX();if(zw(p.info.T.info)&&p.info.T.info.video.primaries==="bt2020"){var J=new j8(t);KD(J,[408125543,374648427,174,224,21936,21937])&&(J=J.start+J.pos,t.getUint8(J)===129&&t.getUint8(J+1)===1&&t.setUint8(J+1,9))}J=p.info.T.info;B$(J)&&!zw(J)&&(J=p.EX(),(new j8(J)).Tv(),p5([408125543,374648427,174,224],21936,J));p.info.T.info.pZ()&&(J=p.info.T,J.info&&J.info.video&&J.info.video.projectionType==="MESH"&&!J.Y&&(g.g2(J.info)?J.Y=Qe_(t):J.info.rI()&&(J.Y=zii(t)))); p.info.T.info.rI()&&p.info.pZ()&&(t=p.EX(),(new j8(t)).Tv(),p5([408125543,374648427,174,224],30320,t)&&p5([408125543,374648427,174,224],21432,t));if(k.policy.N6&&p.info.T.info.rI()){t=p.EX();var q=new j8(t);if(KD(q,[408125543,374648427,174,29637])){J=k6(q,!0);q=q.start+q.pos;for(var F=0;F<J-1;F++)t.setUint8(q+F,0);t.setUint8(q+J-1,1)}}if(k.B3()&&g.g2(p.info.T.info)){J=p.EX();t=g.Rv(J,0,1701606260);F=g.Rv(J,0,1836476516);if(t&&F){t.skip(2);var d=s1(t),S=vE(t);J=[];q=[];var U=[],f=[];if(d)for(d=0;d< S;++d)J.push(cE(t)),q.push(cE(t)),U.push(s1(t)),f.push(s1(t));else for(d=0;d<S;++d)J.push(LD(t)),q.push(LD(t)),U.push(s1(t)),f.push(s1(t));t=g.BE(F);t=new nge(q[0]/t,J[0]/t)}else t=null;if(t){if(g.g2(p.info.T.info))for(J=p.EX(),q=g.Rv(J,0,1701082227);q;)F=q,F.type=1936419184,F.data.setUint32(F.offset+4,1936419184),q=g.Rv(J,q.offset+q.size,1701082227);k.pp=!0;p.info.T.C=t}}p.info.T.a9()||p.info.T.T||p.info.T.indexRange||Hk(p)}; bR0=function(k,p,t){if(t.info.T.a9()){if(k.pp&&Ahi(t)&&(p=t.EX(),p=g.Rv(p,0,1953658222))){p.skip(1);var J=DN(p)<<16|s1(p),q=J&1,F=J&4;if(J&256){var d=J&512,S=J&1024;J&=2048;var U=vE(p);U<2||(q&&p.skip(4),F&&p.skip(4),q=vE(p),p.skip((U-1)*(4+(d?4:0)+(S?4:0)+(J?4:0))-4),p.data.setUint32(p.offset+p.T,q))}}if(p=k.P0&&!!k.P0.S.C)if(p=t.info.pZ())p=cNL(t),d=k.P0,NX?(S=1/p,p=yg(k,p)>=yg(d)+S):p=k.getDuration()>=d.getDuration(),p=!p;p&&Ahi(t)&&(p=k.P0,NX?(S=cNL(t),d=1/S,S=yg(k,S),p=yg(p)+d-S):p=p.getDuration()- k.getDuration(),p=1+p/t.info.duration,iCT(t.EX(),p))}else{d=!1;k.C||(woT(t),t.Y&&(k.C=t.Y,d=!0,F=t.info,J=t.Y.FS,F.X="updateWithEmsg",F.x8=J,F=t.Y,F.ZM&&(J=k.S.index,J.Y=!F.ZM,J.N="emsg"),F=t.info.T.info,J=t.EX(),g.g2(F)?uf(J,1701671783):F.rI()&&p5([408125543],307544935,J)));a:if((F=K5(t,k.policy.yn))&&nST(t))S=mY0(k,t),k.B+=S,F-=S,k.gy+=F,k.N=k.policy.u2?k.N+F:NaN;else{if(k.policy.pP){if(J=U=k.Ey.pK(g.jd(t),1),k.N>=0&&t.info.type!==6){if(k.policy.u2&&isNaN(k.W0)){g.wt(new g.hm("Missing duration while processing previous chunk", t.info.Aj()));k.Ey.isOffline()&&!k.policy.EZ||V1M(k,t,J);Uu(k,"m");break a}var f=U-k.N,b=f-k.B,N=t.info.x8,y=k.Oy?k.Oy.x8:-1,Y=k.v0,T=k.W0,A=k.policy.xS&&f>k.policy.xS,V=Math.abs(b)>10,D=Math.abs(k.N-J)<1E-7;if(Math.abs(b)>1E-4){k.RY+=1;var v=(q=k.C)==null?void 0:Iv(q);q={audio:""+ +k.B3(),sq:N.toFixed(),sliceStart:U,lastSq:y.toFixed(),lastSliceStart:Y,lastSliceDuration:T,totalDrift:(f*1E3).toFixed(),segDrift:(b*1E3).toFixed(),skipRewrite:""+ +(A||V)};if(v==null?0:v.length)q.adCpn=v[0];k.Ey.handleError("qoe.avsync", q);k.k8=N}A||V||D||(J=k.N);q=mY0(k,t,U);F-=q;k.B=f+q;k.policy.N&&(b&&!D||q)&&(f=(S=k.C)==null?void 0:Iv(S),k.Ey.yT("discontinuityRewrite",{adCpn:(f==null?0:f.length)?f.join("."):"",itag:t.info.T.info.itag,sq:t.info.x8,originalStartTime:U,rewrittenStartTime:J,startTimeAdjustment:J-U,segDrift:(b*1E3).toFixed(),originalDuration:F+q,rewrittenDuration:F,durationAdjustment:q}))}}else J=isNaN(k.N)?t.info.startTime:k.N;V1M(k,t,J)&&(k.gy+=F,k.N=J+F,k.policy.M5&&k.RY>=k.policy.M5&&(k.RY=0,k.Ey.MQ({resetForRewrites:"count"})))}k.Oy= t.info;k.W0=Ot(t);t.N>=0&&(k.v0=t.N);if(d&&k.C){d=W20(k,!0);ii(t.info,d);k.T&&ii(k.T.info,d);p=g.Z(p);for(S=p.next();!S.done;S=p.next())S=S.value,q=void 0,k.policy.S&&S.x8!==((q=k.C)==null?void 0:q.FS)||ii(S,d);(t.info.C||k.T&&k.T.info.C)&&t.info.type!==6||(k.Y8=d,k.policy.v0?(p=DYT(k.C),k.Ey.aC(k.S,d,p)):(p=k.Ey,p.lh.isManifestless&&ssi(p,d,null,!!k.S.info.video)),k.policy.Gt||L26(k))}}rh6(k,t);k.timestampOffset&&Lru(t,k.timestampOffset)}; bm=function(k,p){if(p.info.C){k.B0=p.info;if(k.C){var t=k.C,J=W20(k,!1);t=DYT(t);k.Ey.aC(k.S,J,t);k.Y8||k.policy.Gt||L26(k);k.Y8=null}fb(k)}k.Z&&H5q(k.Z,p);if(J=k.Fq())if(J=g.li(J,p,k.policy.Gv)){k.Y.pop();k.Y.push(J);return}k.Y.push(p)}; DYT=function(k){if(k.Hg()){var p=k.data["Stitched-Video-Id"]?k.data["Stitched-Video-Id"].split(",").slice(0,-1):[],t=Iv(k),J=[];if(k.data["Stitched-Video-Duration-Us"])for(var q=g.Z(k.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),F=q.next();!F.done;F=q.next())J.push((Number(F.value)||0)/1E6);q=[];if(k.data["Stitched-Video-Start-Frame-Index"]){F=g.Z(k.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var d=F.next();!d.done;d=F.next())q.push(Number(d.value)||0)}q=[]; if(k.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(F=g.Z(k.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),d=F.next();!d.done;d=F.next())q.push((Number(d.value)||0)/1E6);k=new t1M(p,t,J,q,g.vg0(k),g.cD0(k))}else k=null;return k}; fb=function(k){k.T=null;k.NO=-1;k.L=0;k.C=null;k.j6=NaN;k.gy=0;k.Y8=null}; Uu=function(k,p){p={rst4disc:p,cd:k.B.toFixed(3),sq:k.Oy?k.Oy.x8:-1};k.N=NaN;k.B=0;k.k8=-1;k.Oy=null;k.v0=NaN;k.W0=NaN;k.IY=null;k.Ey.yT("mdstm",p)}; rh6=function(k,p){if(k.S.info.xf){if(p.info.T.info.rI()){var t=new j8(p.EX());if(KD(t,[408125543,374648427,174,28032,25152,20533,18402])){var J=k6(t,!0);t=J!==16?null:qr(t,J)}else t=null;J="webm"}else p.info.Z=kj6(p.EX()),t=pLi(p.info.Z),J="cenc";t&&t.length&&(t=new qX(t,J),k.policy.TB&&g.g2(p.info.T.info)&&(J=RiM(p.EX()))&&(t.Y=J),t.rI=p.info.T.info.rI(),p.Y&&p.Y.cryptoPeriodIndex&&(t.cryptoPeriodIndex=p.Y.cryptoPeriodIndex),p.Y&&p.Y.Y&&(t.T=p.Y.Y),k.Ey.RT(t))}}; L26=function(k){var p=k.C,t=seu(p);t&&(t.startSecs+=k.j6,k.Ey.Vw(k.S,t,p.FS,p.Hg()))}; W20=function(k,p){var t,J=k.C;if(t=seu(J))t.startSecs+=k.j6;return new mN(J.FS,k.j6,p?J.JM:k.gy,J.ingestionTime,"sq/"+J.FS,void 0,void 0,p,t)}; V1M=function(k,p,t){if(!sUj(p,t))return p=wj(p.info),p.smst="1",k.Ey.handleError("fmt.unparseable",p||{},1),!1;isNaN(k.j6)&&(k.j6=t);return!0}; mY0=function(k,p,t){var J=0;if(p.info.T.info.rI()&&!nST(p))return 0;if(k.P0&&!k.B3()){var q=0;t&&g.g2(p.info.T.info)?q=t-k.N:p.info.T.info.rI()&&(q=k.B);var F=p.info.x8;t=K5(p,k.policy.yn);var d=k.P0;var S=d.k8;d=d.B;var U=Math.abs(d-q)>.02;if((F===S||F>S&&F>k.k8)&&U){J=Math.max(.95,Math.min(1.05,(t-(d-q))/t));if(g.g2(p.info.T.info))iCT(p.EX(),J);else if(p.info.T.info.rI()&&(F=q-d,!g.g2(p.info.T.info)&&(p.info.T.info.rI(),J=new j8(p.EX()),S=p.X?J:new j8(new DataView(p.info.T.T.buffer)),K5(p,!0)))){var f= F*1E3,b=$6(S);S=J.pos;J.pos=0;if(J.T.getUint8(J.pos)===160||dj(J))if(xw(J,160))if(k6(J,!0),xw(J,155)){if(F=J.pos,U=k6(J,!0),J.pos=F,f=f*1E9/b,b=t_(J),f=b+Math.max(-b*.7,Math.min(b,f)),f=Math.sign(f)*Math.floor(Math.abs(f)),!(Math.ceil(Math.log(f)/Math.log(2)/8)>U)){J.pos=F+1;for(F=U-1;F>=0;F--)J.T.setUint8(J.pos+F,f&255),f>>>=8;J.pos=S}}else J.pos=S;else J.pos=S;else J.pos=S}J=K5(p,k.policy.yn);J=t-J}J&&p.info.T.info.rI()&&k.Ey.yT("webmDurationAdjustment",{durationAdjustment:J,videoDrift:q+J,audioDrift:d})}return J}; Ahi=function(k){return k.info.T.a9()&&k.info.x8===k.info.T.index.WH()}; yg=function(k,p){p=(p=p===void 0?0:p)?Math.round(k.timestampOffset*p)/p:k.timestampOffset;k.S.C&&p&&(p+=k.S.C.T);return p+k.getDuration()}; vmw=function(k,p){p<0||(k.Y.forEach(function(t){Lru(t,p)}),k.timestampOffset=p)}; w9=function(k,p,t,J,q){jl.call(this,t,q);var F=this;this.policy=k;this.formatId=p;this.ra=J;this.lastError=null;this.eh=function(){F.MO()||(F.ra.Zx.has(F.formatId)?(F.isComplete()||F.T.start(),WJ(F.ra,F.formatId)&&F.Rp(2),F.ra.TH(F.formatId)&&(pke(F.ra,F.formatId)?F.cH(4):(F.lastError="net.closed",F.cH(5)))):(F.lastError="player.exception",F.cH(5)))}; this.T=new g.jF(function(){F.isComplete()||(F.lastError="net.timeout",F.cH(5))},this.policy.JE); this.T.start();HDe(this.ra,this.formatId,this.eh);g.Eo(this.eh)}; YN=function(k,p,t,J){g.R.call(this);var q=this;this.Ey=k;this.policy=p;this.T=t;this.timing=J;this.logger=new g.xO("dash");this.N=[];this.P0=[];this.Y=this.bG=null;this.RY=!1;this.IY=this.W0=0;this.S=-1;this.NO=!1;this.Oy=-1;this.j6=this.qO=null;this.Y8=NaN;this.gy=[];this.u3={yD:function(){return q.C}, wbS:function(){return q.N}, scT:function(){return q.B}}; this.C=new Sm6(k,p,t);this.policy.T&&(this.B=new LP(this.C,this.Ey.getManifest(),this.policy,function(F){q.policy.Yq&&q.yT("buftl",F)})); this.policy.Jp&&(this.L=new Od(this));this.Lp=t.info.Lp;this.Z=this.policy.Y8?!1:t.HW();this.isManifestless=t.HW();this.X=this.Z;g.z(this,this.qO)}; TZ=function(k,p,t){t=t===void 0?!1:t;p&&NX&&vmw(k.C,p.qf());if(!t){var J;(J=k.B)==null||eW0(J)}k.bG=p;(p=k.B)!=null&&(p.bG=k.bG)}; rV=function(k){var p=k.bG&&k.bG.Re();if(k.policy.q5){if((k=k.B)==null)k=void 0;else{var t;k=(t=k.N)==null?void 0:t.info}return k||null}return p}; chw=function(k){for(var p={},t=0;t<k.P0.length;t++)p["r"+t]=k.P0[t];return p}; ZF=function(k,p){isNaN(k.Y8)||k.yT("aswr",{sq:p.info.aY[0].x8,id:p.info.aY[0].T.info.itag,xtag:p.info.aY[0].T.info.T,ep:Date.now()-k.Y8});k.N.push(p);k.Y=g.uJ(p.info.aY);k.P0.push(p.Aj());k.P0.length>4&&k.P0.shift()}; nme=function(k,p){if(p.gO()){var t=p.gx();t=g.Z(t);for(var J=t.next();!J.done;J=t.next())J=J.value,k.policy.N&&p instanceof w9&&k.yT("omblss",{s:J.info.Aj()}),Cb(k,p.info.aY,J,p.oN())}}; Cb=function(k,p,t,J){J=J===void 0?0:J;isNaN(k.Y8)||(k.yT("aswm",{sq:p[0].x8,id:p[0].T.info.itag,xtag:p[0].T.info.T,ep:Date.now()-k.Y8}),k.Y8=NaN);switch(t.info.type){case 1:case 2:wLM(k,t);break;case 4:var q=t.info.T,F=q.Va(t),d;((d=k.Y)==null?0:d.type===4)&&ESi(t.info,k.Y)&&(k.Y=q.y6(k.Y).pop());t=g.Z(F);for(q=t.next();!q.done;q=t.next())Cb(k,p,q.value,J);break;case 3:t.info.T.info.video?(q=k.timing,q.P0||(q.P0=(0,g.V9)(),CW("fvb_r",q.P0,q.T))):(q=k.timing,q.S||(q.S=(0,g.V9)(),CW("fab_r",q.S,q.T))); Tih(k.C,p,t,J);k.policy.T&&iR9(k);break;case 6:Tih(k.C,p,t,J),k.Y=t.info}}; wLM=function(k,p){if(p.info.type===1)if(p.info.T.info.video){var t=k.timing;t.Oy||(t.Oy=(0,g.V9)(),CW("vis_r",t.Oy,t.T))}else t=k.timing,t.B||(t.B=(0,g.V9)(),CW("ais_r",t.B,t.T));Nij(k.C,p);k=k.Ey;k.videoTrack.T.Ox()&&k.audioTrack.T.Ox()&&k.policy.T&&!k.lh.m2&&(p=k.audioTrack.getDuration(),t=k.videoTrack.getDuration(),Math.abs(p-t)>1&&k.yT("trBug",{af:""+g.lG(k.audioTrack.T.info,!1),vf:""+g.lG(k.videoTrack.T.info,!1),a:""+p,v:""+t}))}; zA=function(k){return UYe(k.C)}; iR9=function(k){k.N.length?k.Y=g.uJ(g.uJ(k.N).info.aY):k.C.Y.length?k.Y=k.C.Fq().info:k.Y=rV(k)}; AP=function(k,p){var t={kI:[],Uo:[]},J;if((k=k.B)==null)k=void 0;else{zWu(k,k.kI,"og");XPw(k,p);zWu(k,k.kI,"trim");var q=BY_(k);p=q.kI;q=q.rO;for(var F=[],d=0;d<q.length;d++){var S=q[d],U=k.policy.k8&&S.N!==-1?S.N:S.info.startTime,f={startTicks:(U+k.timestampOffset)*1E3,dW:(k.policy.k8&&S.C!==-1?S.C:S.info.duration)*1E3,timescale:1E3},b=void 0,N=(b=k.bG)==null?void 0:b.Dl();b=void 0;if(k.policy.RU&&N&&N.length>0){var y=tN(N,U);y>=0&&(b=(N.end(y)-U+.1)*1E3)}F.push({formatId:g.lG(S.info.T.info,k.lh.m2), aq:S.info.aq,sequenceNumber:S.info.x8+k.C,G9:f,o4:S.info.N,A3:b})}k={kI:p,Uo:F}}return(J=k)!=null?J:t}; PI=function(k,p,t){t=t===void 0?!1:t;if(k.bG){var J=k.bG.Dl(),q=oU(J,p),F=NaN,d=rV(k);d&&(F=oU(J,d.T.index.getStartTime(d.x8)));if(q===F&&k.Y&&k.Y.N&&Qsj(Vg(k),0))return p}k=P_w(k,p,t);return k>=0?k:NaN}; I6=function(k,p,t){k.T.Ox();var J=P_w(k,p);if(J>=0)return J;var q;(q=k.B)==null||RWT(q,p,t);t=Math;J=t.min;q=k.C;if(q.Z)if(q=q.Z,q.LZ&&q.LZ.type===3)q=q.LZ.startTime;else if(q.N>0){var F=q.T.index;F=g.dH(F.offsets.subarray(0,F.count),q.N*q.chunkSize);q=q.T.index.getStartTime(F>=0?F:Math.max(0,-F-2))}else q=0;else q=Infinity;p=J.call(t,p,q);if(k.policy.Y){var d,S;t=(d=k.Ey.dI())==null?void 0:(S=cI(d,p))==null?void 0:S.clipId;k.Y=k.T.U9(p,void 0,t).aY[0]}else k.Y=k.policy.Y8?null:k.T.U9(p).aY[0];Wb(k)&& (k.bG&&k.bG.abort(),k.policy.s0&&(d=k.B)!=null&&(d.N=void 0));k.IY=0;return k.Y?k.Y.startTime:p}; as9=function(k){k.Z=!0;k.X=!0;k.S=-1;I6(k,Infinity)}; DF=function(k){for(var p=0,t=g.Z(k.N),J=t.next();!J.done;J=t.next())p+=Ui0(J.value.info);return p+=ZRq(k.C)}; vb=function(k,p){p=p===void 0?!1:p;var t=k.Ey.getCurrentTime(),J=k.C.Fq(),q=(J==null?void 0:J.info.m_)||0;k.policy.gK&&(J==null?0:J.info.T.HW())&&!J.info.C&&(q=J.info.M2);if(k.policy.Y&&J&&J.info.clipId){var F,d=(((F=k.Ey.dI())==null?void 0:vI(F,J.info.clipId))||0)/1E3;q+=d}if(!k.bG)return k.policy.T&&p&&!isNaN(t)&&J?q-t:0;if((F=rV(k))&&Lb(k,F))return F.m_;d=k.bG.Dl(!0);if(p&&J)return F=0,k.policy.T&&(F=FN(d,q+.02)),F+q-t;q=FN(d,t);k.policy.Wa&&F&&(p=tN(d,t),d=tN(d,F.M2-.02),p===d&&(t=F.m_-t,k.policy.N&& t>q+.02&&k.yT("abh",{bh:q,bhtls:t}),q=Math.max(q,t)));return q}; Gju=function(k){var p=rV(k);return p?p.m_-k.Ey.getCurrentTime():0}; I9h=function(k,p){if(k.N.length){if(k.N[0].info.aY[0].startTime<=p)return;Qm(k)}for(var t=k.C,J=t.Y.length-1;J>=0;J--)t.Y[J].info.startTime>p&&t.Y.pop();iR9(k);k.Y&&p<k.Y.startTime&&(k.IY=0,k.T.Ox()?k.Y=k.T.U9(p,!0).aY[0]:k.Y=null)}; cb=function(k,p,t,J){if(!k.T.index.Hh(p,!0))return!1;try{Qm(k);for(var q=k.C,F=null,d=q.Y.length-1;d>=0;d--){var S=q.Y[d];S.info.x8>=p&&(q.Y.pop(),q.N-=K5(S,q.policy.yn),F=S.info)}F&&(q.X=q.Y.length>0?q.Y[q.Y.length-1].info:q.IY,q.Y.length!==0||q.X||Uu(q,"r"));q.Ey.yT("mdstm",{rollbk:1,itag:F?F.T.info.itag:"",popped:F?F.x8:-1,sq:p,lastslc:q.X?q.X.x8:-1,lastfraget:q.N.toFixed(3)});if(k.policy.T)return k.Y=null,!0;J>t?I6(k,J):k.Y=k.T.Kw(p-1,!1).aY[0]}catch(U){return p=Vs(U),p.details.reason="rollbkerr", k.Ey.handleError(p.errorCode,p.details,p.severity),!1}return!0}; wV=function(k,p){var t;for(t=0;t<k.N.length&&p!==k.N[t];t++);if(t===k.N.length)nb(k,p);else{for(;t<k.N.length;)nb(k,k.N.pop());var J=Qe(k);J&&J.T.sC()&&cC(p.info.aY,function(q){return SI9(q,J)})?(k.Y=J,k.policy.N&&k.yT("cer",{lsr:"lsp", lsp:J.Aj()})):(vk(p.info.aY[0])?(k.Y=p.jh&&p.jh.N?$iq(p.jh.N):Fr6(p.info.aY[0]),k.policy.N&&k.yT("cer",{lsr:k.Y.Aj(),lsp:J==null?void 0:J.Aj()})):(k.Y=null,k.policy.N&&k.yT("cer",{lsr:"null",lsp:J==null?void 0:J.Aj()})),k.Ey.isOffline()&&!k.policy.EZ||nb(k,p,!0))}}; Lb=function(k,p){if(!p)return!1;if(k.policy.Y){var t;if((k=(t=k.Ey.dI())==null?void 0:im(t))&&p.clipId!==k)return!1}return p.ZM()}; Wb=function(k){var p;!(p=k.T.info.H0==="f")&&(p=k.policy.C)&&(p=k.C,p=!!p.Z&&xF(p.Z));if(p)return!0;p=rV(k);if(!p)return!1;var t=Lb(k,p)&&p.C;return k.isManifestless&&k.Oy>0?t||p.x8>=k.Oy:t}; Qg=function(k){var p;return Wb(k)||Lb(k,(p=k.C.Fq())==null?void 0:p.info)}; Vg=function(k){var p=[],t=rV(k);t&&p.push(t);p=g.ph(p,k.C.Sw());t=g.Z(k.N);for(var J=t.next();!J.done;J=t.next()){J=J.value;for(var q=g.Z(J.info.aY),F=q.next(),d={};!F.done;d={eN:void 0},F=q.next())d.eN=F.value,J.tC&&(p=g.dZ(p,function(S){return function(U){return!ESi(U,S.eN)}}(d))),(vk(d.eN)||d.eN.type===4)&&p.push(d.eN)}k.Y&&!k0i(k.Y,g.uJ(p),k.Y.T.a9())&&p.push(k.Y); return p}; Qsj=function(k,p){if(!k.length)return!1;for(p+=1;p<k.length;p++)if(!po_(k[p-1],k[p]))return!1;return!0}; P_w=function(k,p,t){t=t===void 0?!1:t;if(!k.Y||!k.Y.N)return NaN;k=Vg(k);a:{p+=.02;var J=t;J=J===void 0?!1:J;for(var q=-1,F=0;F<k.length;++F){var d=k[F];if(d.M2<=p)if(J)q=F;else if(d.startTime+d.duration>=p){p=F;break a}}p=q}return p<0?NaN:Qsj(k,t?p:0)?k[p].startTime:NaN}; Pb=function(k){return!(!k.Y||k.Y.T===k.T)}; XLj=function(k){return Pb(k)&&k.T.Ox()&&k.Y.T.info.Lp<k.T.info.Lp}; RZe=function(k,p,t){if(k.policy.gK)return vb(k,!0)<t;var J=Qe(k);return J&&!Lb(k,J)?J.m_>p&&J.m_<p+t:!1}; Qe=function(k){var p=k.C.Fq();return p?p.info:rV(k)}; WU9=function(k,p){var t;return!((t=k.B)==null||!t.X.has(p))||f9w(k.C,p)}; Qm=function(k){for(var p=g.Z(k.N),t=p.next();!t.done;t=p.next())nb(k,t.value);k.N=[];k.Y=null}; GZ=function(k){var p;(p=k.B)==null||eW0(p);k.policy.UQ&&(k.gy=[])}; BiT=function(k,p,t){p.tC&&((t===void 0?0:t)||!p.info.aY[0].T.sC())&&(k.logger.debug(function(){return"Rolling back request with segNum "+p.info.aY[0].x8}),C_u(k.C))}; nb=function(k,p,t){BiT(k,p,t===void 0?!1:t);p.dispose()}; zZi=function(k){return!!k.Y&&k.Y.x8!==-1&&k.Y.x8<k.T.index.dO()}; eZS=function(k){var p=k.Y;p&&p.x8===-1&&(k=k.C.Fq())&&vk(k.info)&&(k=k.info.x8,p.X="updateLastSliceRequested",p.x8=k)}; hZT=function(k){return cC(k.N,function(p){return p.k5})}; a9T=function(k,p){k.Y&&(k.Y.T=p)}; Ik=function(k,p){return k.bG?JN(k.bG.Dl(),p):!0}; Xc=function(k){var p=zA(k);k=k.Ey.dI();return p&&k&&p.info.clipId&&!M1L(k,p.info.clipId)?!0:!1}; Rk=function(k){var p;return!((p=zA(k))==null||!p.isLocked)}; gmh=function(k,p){var t=zA(k);return t&&t.info.type!==6?!Dr9(p,k,t.info.x8):!1}; uRT=function(k){var p=rV(k),t,J=(t=k.bG)==null?void 0:t.Dl();t=NaN;p&&J&&Wb(k)&&(t=oU(J,(p.M2+p.m_)/2));return!isNaN(t)}; l9_=function(k){if((k=k.B)==null)k=void 0;else if(k.kI.length===0||k.policy.Oo&&k.T<0)k=null;else{var p=k.kI[k.T]?k.kI[k.T].formatId:null;k=p?(k=k.lh.N.get(ZC(p)))?k.info:null:null}return k||null}; js9=function(k,p){k=g.Z(k.gy);for(var t=k.next();!t.done;t=k.next())if(t=t.value,t.FS===p)return t.KcG?2:1;return 0}; ORM=function(){this.QN=!1}; K2M=function(k){var p=k===void 0?{}:k;k=p.hasSubfragmentedFmp4===void 0?!1:p.hasSubfragmentedFmp4;p=p.zf===void 0?!1:p.zf;var t=new ORM;t.QN=k||p;return t}; g.HRT=function(k){this.Cp=k;this.B=new ORM;this.G5=this.wc=!1;this.md=2;this.RY=20971520;this.gs=8388608;this.NO=120;this.Qx=this.mE=this.OA=2;this.Qr=this.Yo=!1;this.vJ=1E3;this.nE=15;this.wd=1;this.L=1.15;this.gy=1.05;this.HJ=1;this.yr=this.Ji=!1;this.gA=6;this.N=!1;this.jG=100;this.jY=10;this.dh=6;this.p7=!1;this.Em=1;this.qB=this.V4=!1;this.Yd=2;this.pP=this.Iq=!1;this.ez=!0;this.gp=this.Fd=this.SB=this.pp=this.l1=!1;this.M8=!0;this.nX=!1;this.C="";this.nL=[];this.du=this.Bt=this.Jp=!1;this.Ok= 0;this.lm="";this.mL=this.kS=this.rE=this.Yq=this.aU=this.Jn=this.S=this.WV=this.BR=this.xY=this.T=this.mu=this.B0=this.P0=this.s0=this.q5=this.qO=this.Y=this.Gt=!1;this.fZ=!0;this.dc=this.gK=this.hK=this.vt=this.X=this.k8=!1;this.W0=!0;this.Dw=this.uE=this.L2=this.Xn=this.mW=this.Fx=this.JR=this.RU=this.SG=this.qW=this.BF=this.Y8=this.Eo=this.v0=this.eb=this.j6=!1;this.QQ=this.Cp.D("html5_trigger_fallback_count_from_probe");this.eG=g.dU(this.Cp.experiments,"html5_min_readbehind_secs");this.Vs=g.dU(this.Cp.experiments, "html5_min_readbehind_cap_secs");this.EZ=this.Cp.D("html5_offline_reset_media_stream_on_unresumable_slices");this.Lp=NaN;this.AP=Bb(this,"html5_request_size_min_kb",64)*1024;this.IY=2097152;this.bA=Bb(this,"html5_bypass_contention_secs");this.jl=1048576;this.v3=Bb(this,"html5_repredict_interval_ms",1800);this.lA=Bb(this,"html5_head_miss_secs",5);this.G8=Bb(this,"html5_min_upgrade_health_secs",10);this.kE=Bb(this,"html5_min_seconds_between_format_selections",8);this.Rb=Bb(this,"html5_max_buffer_health_for_downgrade_secs", 15);this.SY=u_;this.YN=g.dU(this.Cp.experiments,"html5_min_startup_buffered_media_duration_secs");this.Ht=g.dU(this.Cp.experiments,"html5_post_interrupt_readahead");this.gE=this.Cp.D("html5_allow_onesie_for_ssap");this.wh=this.Cp.D("html5_disable_classic_alr");this.z5=g.dU(this.Cp.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.iM=Bb(this,"html5_ssdai_failure_retry_limit",3);this.zv=this.Cp.experiments.Gb("html5_clone_original_for_fallback_location");this.kx=g.dU(this.Cp.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.M_=g.dU(this.Cp.experiments,"html5_subsegment_readahead_timeout_secs");this.rk=g.dU(this.Cp.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.St=g.dU(this.Cp.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Eq=g.dU(this.Cp.experiments,"html5_subsegment_readahead_min_load_speed");this.Pt=g.dU(this.Cp.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.Az=g.dU(this.Cp.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.Ta=Bb(this,"html5_hopeless_secs",15);this.B9=this.Cp.D("html5_restrict_streaming_xhr_on_sqless_requests");this.fk=g.dU(this.Cp.experiments,"html5_max_headm_for_streaming_xhr");this.gW=this.Cp.D("html5_pipeline_manifestless_allow_nonstreaming");this.qp=this.Cp.D("html5_prefer_server_bwe3");this.rh=this.Cp.D("html5_last_slice_transition");this.JX=this.Cp.D("html5_store_xhr_headers_readable");this.xS=g.dU(this.Cp.experiments,"html5_max_drift_per_track_secs");this.tR=this.Cp.D("html5_no_placeholder_rollbacks"); this.Le=this.Cp.D("html5_subsegment_readahead_enable_mffa");this.hB=this.Cp.D("html5_allow_video_keyframe_without_audio");this.TB=this.Cp.D("html5_enable_vp9_fairplay");this.rW=1048576;this.Yk=this.Cp.D("html5_woffle_resume");this.MG=this.Cp.D("html5_abs_buffer_health");this.JU=this.Cp.D("html5_interruption_resets_seeked_time");this.Z4=g.dU(this.Cp.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.k0=this.Cp.D("html5_log_additional_source_buffer_updates");this.gh=this.Cp.D("html5_report_captions_ctmp_qoe"); this.Rc=this.Cp.D("html5_explicitly_dispose_xhr");this.Gv=!this.Cp.D("html5_encourage_array_coalescing");this.Dh=this.Cp.D("html5_restart_on_unexpected_detach");this.g1=this.Cp.D("html5_filter_non_efficient_formats_for_safari");this.Cp.D("html5_format_hybridization");this.ym=this.Cp.D("html5_abort_before_separate_init");this.N6=M8();this.tX=this.Cp.D("html5_serialize_server_stitched_ad_request");this.XB=this.Cp.D("html5_skip_buffer_check_seek_to_head");this.xb=this.Cp.D("html5_attach_po_token_to_bandaid"); this.In=g.dU(this.Cp.experiments,"html5_max_redirect_response_length")||8192;this.u2=this.Cp.D("html5_rewrite_timestamps_for_webm");this.yn=this.Cp.D("html5_only_media_duration_for_discontinuities");this.X$=g.dU(this.Cp.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Cp.D("html5_onesie_live");this.NJ=this.Cp.D("html5_onesie_premieres");this.yc=this.Cp.D("html5_drop_onesie_for_live_mode_mismatch");this.Ba=g.dU(this.Cp.experiments,"html5_onesie_live_ttl_secs")||8;this.hR=g.dU(this.Cp.experiments, "html5_attach_num_random_bytes_to_bandaid");this.JE=g.dU(this.Cp.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Cx=this.Cp.D("html5_update_container_type_on_codec_family_change")||this.Cp.D("html5_use_update_container_type_codec_family");this.Lk=this.Cp.D("html5_dont_call_change_type_on_updating");this.Xo=this.Cp.D("html5_apply_ssap_slice_info_adjustment");this.aO=this.Cp.D("html5_enable_sabr_host_fallback");this.QK=this.Cp.D("html5_ssap_enable_legacy_browser_logic");this.hc=this.Cp.D("html5_ssap_enable_delay_init"); this.YO=this.Cp.D("html5_gapless_fallback_on_append_error");this.ag=this.Cp.D("html5_shorts_stop_request_when_buffer_to_end");this.oR=this.Cp.D("html5_vod_stop_request_when_buffer_to_end");this.Oy=this.Cp.D("html5_ssdai_use_post_for_media")&&this.Cp.D("gab_return_sabr_ssdai_config");this.Kx=this.Cp.D("html5_use_post_for_media");this.UF=this.Cp.D("html5_use_live_ump_heartbeat");this.useUmp=this.Cp.D("html5_use_ump");this.Ro=this.Cp.Dw;this.QH=this.Cp.D("html5_reset_primary_stats_on_redirector_failure"); this.XF=this.Cp.D("html5_remap_to_original_host_when_redirected");this.NZ=this.Cp.D("html5_sabr_support_quality_constraints");this.H$=this.Cp.D("html5_sabr_remove_all_quality_constraints");this.D4=this.Cp.D("html5_iterative_seeking_buffered_time");this.jd=this.Cp.D("html5_use_network_error_code_enums");this.Ha=this.Cp.D("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.Cp.D("html5_enable_server_driven_request_cancellation");this.KC=this.Cp.D("html5_enable_sabr_request_timing"); this.Q4=this.Cp.D("html5_enable_server_format_filter");this.AG=this.Cp.D("html5_enable_lawnmower");this.SF=this.Cp.DB()?g.dU(this.Cp.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.La=g.dU(this.Cp.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.ys=this.Cp.D("html5_live_defrag_only_h264_playbacks");this.T8=this.Cp.D("html5_live_defrag_only_h264_formats");this.UA=this.Cp.D("html5_record_now");this.BV=g.dU(this.Cp.experiments,"html5_drm_byterate_soft_cap");this.LA=g.dU(this.Cp.experiments, "html5_drm_live_byterate_soft_cap");this.Z=this.Cp.D("html5_sabr_log_request_creation");this.xd=this.Cp.D("html5_use_buffer_timeline_for_sabr_request_creation");this.nT=this.Cp.D("html5_sabr_report_request_cancellation_info");this.LP=this.Cp.D("html5_spoof_4k");this.Wt=Bb(this,"html5_min_media_duration_for_cabr_slice");this.Ib=Bb(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.tE=this.Gv?0:Bb(this,"html5_min_media_duration_for_append_prop");this.dR=this.Cp.D("html5_remove_defrag_without_frame_level_streaming"); this.nk=this.Cp.D("html5_consume_all_buffered_bytes_one_poll");this.U8=this.Cp.D("html5_disable_urgent_adaptation");this.m8=this.Cp.D("html5_apply_constraints_in_client_for_sabr");this.cF=this.Cp.D("html5_send_video_playback_ustreamer_config");this.M5=Bb(this,"html5_max_discontinuity_rewrite_count");this.Vo=Bb(this,"html5_fixed_media_duration_for_request");this.OS=this.Cp.D("html5_apply_fix_for_missing_seg_info_without_logger");this.vQ=Bb(this,"html5_sabr_request_limit_per_period");this.Kb=this.Cp.D("html5_sabr_live_partial_segment"); this.N_=this.Cp.D("html5_sabr_dispose_media_objects");this.rK=this.Cp.D("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Ku=this.Cp.D("html5_enable_d6de4");this.Pu=this.Cp.D("html5_ssap_keep_only_ssap_eos_check");this.Cp.D("html5_high_res_seek_logging");this.I7=this.Cp.D("html5_disable_chunk_synchronization_sabr_seek");this.yJ=this.Cp.D("html5_enable_ssap_multi_audio_format_filtering");this.VQ=g.dU(this.Cp.experiments,"html5_override_micro_discontinuities_threshold_ms");this.va=this.Cp.D("defer_slice_processing_on_healthy_buffer_sabr"); this.cJ=this.Cp.D("html5_byterate_constraints");this.a5=this.Cp.D("html5_refactor_sabr_audio_format_selection_logging");this.So=this.Cp.D("enable_sabr_snackbar_message");this.Cp.D("html5_reinit_source_buffer_by_new_element");this.UO=this.Cp.D("html5_refactor_sabr_video_format_selection_logging");this.YE=this.Cp.D("html5_log_slice_info_in_sbu");this.jW=Bb(this,"html5_paced_poll_ms");this.iC=Bb(this,"html5_paced_poll_min_health_ms");this.z8=this.Cp.D("html5_disable_sabr_fallback");this.Oo=this.Cp.D("html5_track_current_buffered_range_at_sync"); this.q_=g.dU(this.Cp.experiments,"html5_enable_sps_retry_backoff_ms");this.CI=this.Cp.D("html5_sabr_live_timing");this.kc=this.Cp.D("html5_sabr_enable_server_xtag_selection");this.xZ=this.Cp.D("html5_send_detailed_network_type");this.FE=this.Cp.D("html5_sabr_skip_client_audio_init_selection");this.Wa=this.Cp.D("html5_count_updating_slice_for_buffer_health");this.iQ=this.Cp.D("html5_report_max_buffer_bytes_limit_to_sabr");this.uf=this.Cp.D("html5_sabr_live_audio_early_return_fix");this.E6=g.dU(this.Cp.experiments, "html5_platform_max_buffer_health_oversend_duration_secs");this.hE=this.Cp.D("html5_cuepoint_identifier_logging");this.kC=this.Cp.D("html5_trigger_loader_long_poll_on_sabr_backoff");this.qG=this.Cp.DB();this.UQ=this.Cp.D("html5_keep_ssdai_avsync_in_loader_track");this.mj=this.Cp.D("html5_enable_sps_retry_backoff_metadata_requests")}; h$j=function(k,p,t){t=t===void 0?!1:t;p.video.T>1080&&!k.wc&&(k.RY=36700160,k.gs=5242880,k.IY=Math.max(4194304,k.IY),k.wc=!0);p.video.T>2160&&!k.G5&&(k.RY=104857600,k.Lp=13107200,k.G5=!0);g.dU(k.Cp.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?p.isEncrypted()&&g.zQ()&&g.RY("samsung")&&(g.RY("kant")||g.RY("muse"))&&(k.Lp=g.dU(k.Cp.experiments,"html5_samsung_kant_limit_max_bitrate")):p.isEncrypted()&&g.zQ()&&g.RY("kant")&&(k.Lp=1310720);k.BV!==0&&p.isEncrypted()&&(k.Lp=k.BV);k.LA!==0&&p.isEncrypted()&& t&&(k.Lp=k.LA);p.Lp&&(k.jl=Math.max(k.AP,Math.min(k.IY,5*p.Lp)))}; zZ=function(k){return k.T&&k.BR&&k.playbackStartPolicy}; en=function(k){return k.Y||k.T&&k.Q4}; hP=function(k,p,t,J){k.BR&&(k.playbackStartPolicy=p,k.aR=t,k.Wu=J)}; Bb=function(k,p,t){t=t===void 0?0:t;return g.dU(k.Cp.experiments,p)||t}; xYL=function(k){var p=k===void 0?{}:k;k=p.qB;var t=p.QN;var J=p.Rx;var q=p.WH;p=p.IU;this.qB=k;this.QN=t;this.Rx=J;this.WH=q;this.IU=p}; t8e=function(k,p){if(p<0)return!0;var t=k.WH();return p<t||p===t&&!k.qB||p===t&&(k=k.IU())&&p===k.x8?!0:!1}; J6T=function(k,p,t){if(!t8e(k,p))return 0;if(!k.QN||!isNaN(t)&&t>0)return 2;if(p<0)return 1;t=k.WH();return p<t||p===t&&(k=k.IU())&&p===k.x8&&!k.pending?2:1}; ak=function(k,p,t){g.R.call(this);this.Ey=k;this.policy=p;this.gS=t;this.Y=0;this.T=!1;this.delay=new g.jF(this.N,this.policy.SF,this);g.z(this,this.delay)}; kGe=function(k,p){rC(p.T)||(k.oO=p,k.Y=0,g.Oc(k.delay))}; psT=function(k,p,t,J,q){var F=this;this.Ey=k;this.policy=p;this.gS=t;this.oO=J;this.rA=q;this.done=!1;this.onTimeout=function(){F.done||(F.done=!0,F.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*TG(this.gS)));this.timing=new Ml(this,{gS:this.gS,T1:this.size,hn:!0,eS:function(){}, DZ:this.policy.N});k=Y6(this.oO,this.rA,this.policy).Bj.clone();Yw(k);k.path!=="/videogoodput"&&(k.path="/videogoodput",k.url="");this.location=new Et(k);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=HI(this.location,this.policy.B,this.timing,this.policy.SY,{});setTimeout(this.onTimeout,1E4)}; tij=function(k,p,t){var J=k.ac();if(k.isComplete()||!J||k.info.oO.rA(p,t))return 0;var q=p.Yd;if(!q||J<q)return 0;k=bi(t,Tb(k.info.oO,!0,p));return k.T||k.timedOut||k.started?0:2}; Jsi=function(k,p,t){if(!(p.z5&&k.isComplete()&&k.canRetry()&&k.info.oO.rA(p,t))||k.info.oO.B)return 0;k=bi(t,Tb(k.info.oO,!1,p));return k.N+p.z5*f5(k,!0)>(0,g.V9)()?0:1}; MX=function(k,p,t,J,q,F,d,S,U,f,b,N,y,Y){Y=Y===void 0?null:Y;g.R.call(this);var T=this;this.Ey=k;this.policy=p;this.videoTrack=t;this.audioTrack=J;this.C=q;this.T=F;this.timing=d;this.X=S;this.schedule=U;this.lh=f;this.N=b;this.gy=N;this.Sx=y;this.Oe=Y;this.Y8=!1;this.RP="";this.dK=null;this.PN=NaN;this.NO=!1;this.Y=null;this.DO=this.L=NaN;this.vV=this.S=0;this.logger=new g.xO("dash");this.u3={Ny:function(A,V){return T.Ny(A,V)}}; this.policy.hR>0&&(this.RP=g.Zi(this.policy.hR));this.policy.SF&&(this.B=new ak(this.Ey,this.policy,this.schedule),g.z(this,this.B))}; oH9=function(k,p,t){var J=p.Y?p.Y.T.oO:p.T.oO;var q=k.C,F;(F=!k.policy.XF)||(F=TY(J.T)===TY(J.N));F?J=!1:(q=bi(q,TY(J.N)),F=6E4*Math.pow(q.C,1.6),(0,g.V9)()<q.N+F?J=!1:(q.N=(0,g.V9)(),q.C+=1,J.T=J.N.clone(),J=!0));J&&k.Ey.yT("hostch",{},!0);if(gV(k,p,t)){t=k.Z(p,t);if(k.Y){var d=t.aY[0].T.info.id;J=k.T;q=t.aY[0].x8;J=q<0&&!isNaN(J.X)?J.X:q;q=PJ(k.T,t.aY[0].M2,J);var S=p===k.audioTrack?1:2,U=t.aY[0].T.info.H0;F=d.split(";")[0];a:{var f=k.T;if(f.T){var b=f.T.ut.event;if(f.T.x8===J){f=b==="predictStart"? void 0:f.T.ut.event;break a}if(f.T.x8===J-1){f=b==="start"||b==="continue"?b:void 0;break a}}f=void 0}if(k.policy.Oy&&k.T.Y!==0){var N=k.Y.Qp(q,J,d,S,U,f);J<0&&S===2&&G_(k.T,0,0,!0);if(N){var y;d=((y=N.sS)==null?void 0:y.Ol)||"";var Y;y=((Y=N.sS)==null?void 0:Y.e9)||-1;k.Ey.yT("sdai",{ssdaiinfo:"1",ds:d,skipsq:y,itag:F,f:U,sg:J,st:q.toFixed(3)});t.C=N}}else if(Y=k.Y.E3(q,J,d,S,U,f),J<0&&S===2&&G_(k.T,0,0,!0),Y){y={dec_sq:J,itag:F,st:q.toFixed(3)};if(k.policy.tX&&p.isRequestPending(J-1)){k.Ey.yT("sdai", {wt_daistate_on_sg:J-1});return}k.Ey.yT("sdai",y);Y&&(t.T=new g.yb(Y));k.policy.N&&(Y=t.oO.E2("id")||"",y=((N=t.T)==null?void 0:N.get("id"))||"",Y!==y&&k.Ey.yT("stmidmismatch",{cid:Y,aid:y}))}else k.T.Y!==5&&k.Ey.yT("sdai",{nodec_sq:J,itag:F,st:q.toFixed(3)})}k.policy.du&&t.aY[0].x8!==-1&&t.aY[0].x8<k.lh.P3&&(t=p.T.Kw(k.lh.P3,!1));ZF(p,um(k,t));LN(k.timing);var T;(T=k.B)==null||kGe(T,t.oO)}}; gV=function(k,p,t){if(k.policy.Jn)return!1;var J;var q=k.T,F=((J=p.Y)==null?void 0:J.x8)||-1;q.Y===3&&F+1>=q.C?(q.yT("sdai",{haltrq:F+1,est:q.C}),J=!1):J=q.Y!==2;if(!J||!rj(p.Y?p.Y.T.oO:p.T.oO,k.policy,k.C,k.Ey.dZ())||k.Ey.isSuspended&&(!r7(k.schedule)||k.Ey.b9))return!1;if(k.policy.C&&Lq>=5)return g.Oc(k.Ey.NF),!1;if(k.lh.isManifestless){if(p.N.length>0&&p.Y&&p.Y.x8===-1||p.N.length>=k.policy.Em||!k.policy.gW&&p.N.length>0&&!k.policy.B.QN)return!1;if(p.Z)return!k.lh.isLive||!isNaN(k.PN)}if(hZT(p))return k.logger.debug("Pending request with server-selectable format found"), !1;if(!p.Y){if(!p.T.Ox())return!1;I6(p,k.Ey.getCurrentTime())}if(zA(p)&&(p.Fq()!==zA(p)||k.Ey.isSuspended))return!1;q=(J=k.policy.bA)&&!p.N.length&&vb(p,!0)<Math.min(J,vb(t));J=p.N.length+t.N.length;F=!k.policy.Ha&&((p.N.length?p.N[0].uj():!1)||(t.N.length?t.N[0].uj():!1)||k.lh.isLive);(q||F)&&--J;if(J+1>=k.policy.md)return!1;J=p.Y;if(!J)return!0;J.type===4&&J.T.Ox()&&(p.Y=g.uJ(J.T.y6(J)),J=p.Y);if(!J.ZM()&&!J.T.Cw(J))return!1;F=k.lh.FA||k.lh.C;if(k.lh.isManifestless&&F){F=p.T.index.WH();var d=t.T.index.WH(); F=Math.min(F,d);if(p.T.index.Lg()>0&&F>0&&J.x8>=F)return p.Oy=F,t.Oy=F,!1}if(J.T.info.audio&&J.type===4||J.ZM())return!1;F=!p.X&&!t.X;if(q=!q)q=J.m_,q=!!(t.Y&&!Lb(t,t.Y)&&t.Y.m_<q);d=p===k.videoTrack&&k.policy.P0;return q&&(!k.lh.isManifestless||t.Y&&t.Y.m_&&J.m_)&&F&&!d||k.policy.ez&&!p.X&&t.X?!1:vk(J)&&J.m_>qpi(k,p)?(qpi(k,p),!1):(k=p.bG)&&k.isLocked()?!1:!0}; qpi=function(k,p){var t=k.T;t=t.T?t.T.ut:null;if(k.policy.P0&&t)return t.startSecs+t.NR+15;p=GA(k.Ey,p);k.policy.nE>0&&(t=((0,g.V9)()-k.Ey.ew)/1E3,p=Math.min(p,k.policy.nE+k.policy.wd*t));t=k.Ey.getCurrentTime()+p;return k.policy.Ht&&(p=FF_(k.Ey)+k.policy.Ht,p<t)?(k.Ey.yT("mrl",{ori:t,mod:p},!0),k.policy.JU&&(k=k.Ey,t=(0,g.V9)(),k.ew=t),p):t}; $ue=function(k,p,t){if(t!==0){a:if(p=p.info,t=t===2,p.T)p=null;else{var J=p.aY[0];if(p.range)var q=Vd(p.range.start,Math.min(4096,p.N));else{if(p.Y&&p.Y.indexOf("/range/")>=0||p.oO.E2("defrag")==="1"||p.oO.E2("otf")==="1"){p=null;break a}q=Vd(0,4096)}q=new Qd([new DC(5,J.T,q,"createProbeRequestInfo"+J.X,J.x8)],p.Y);q.rA=t;q.T=p.T;p=q}p&&um(k,p)}}; um=function(k,p){k.Ey.g8(p);var t=Ui0(p),J=k.Ey.AI();t={gS:k.schedule,T1:t,sI:nIM(k.X,t),Ih:L5(p.aY[0]),hn:rC(p.oO.T),DZ:k.policy.N,eS:function(d,S){k.Ey.lW(d,S)}}; if(k.schedule.Y.Z){var q,F;t.Bn=(((q=k.videoTrack.T)==null?void 0:q.info.Lp)||0)+(((F=k.audioTrack.T)==null?void 0:F.info.Lp)||0)}k.dK&&(t.x8=p.aY[0].x8,t.PN=p.PN,t.dK=k.dK);J={Nb:fEj(p,k.Ey.getCurrentTime()),PM:k.policy.V4&&Gb(p)&&p.aY[0].T.info.video?g6M(k.N):void 0,qt:k.policy.P0,poToken:k.Ey.qa(),T7:k.Ey.Qy(),RP:k.RP,DO:isNaN(k.DO)?null:k.DO,Oe:k.Oe,Sx:k.Sx,vV:k.vV,G0:J};return new iK(k.policy,p,t,k.C,function(d,S){try{a:{var U=d.info.aY[0].T,f=U.info.video?k.videoTrack:k.audioTrack;if(!(d.state>= 2)||d.isComplete()||d.ac()||!(!k.Ey.Dr||k.Ey.isSuspended||vb(f)>3)){var b=tij(d,k.policy,k.C);b===1&&(k.NO=!0);$ue(k,d,b);if(d.isComplete()||d.MO()&&S<3){if(k.policy.N){var N=d.timing.ZX();N.rst=d.state;N.strm=d.xhr.UR();N.cncl=d.xhr&&d.MP.C?1:0;k.Ey.yT("rqs",N)}d.pc&&k.Ey.yT("sbwe3",{},!0)}if(!k.MO()&&d.state>=2){Z5i(k.timing,d,U);var y=k.Ey;k.DO&&d.yg&&y&&(k.DO=NaN,k.Ey.QR(d.yg),k.Ey.lC(),k.Ey.yT("cabrUtcSeek",{mediaTimeSeconds:d.yg}));d.AU&&k.DO&&d.AU&&!d.AU.action&&(k.Ey.oT(k.DO),k.DO=NaN,k.Ey.yT("cabrUtcSeekFallback", {targetUtcTimeSeconds:k.DO}));d.uX&&k.Ey.fR(d.uX);k.policy.UF&&(k.vV=d.vV);if(d.state===3){wV(f,d);Gb(d.info)&&lm(k,f,U,!0);if(k.Y){var Y=d.info.E3();Y&&k.Y.mx(d.info.aY[0].x8,U.info.id,Y)}k.Ey.SV()}else if(d.isComplete()&&d.info.aY[0].type===5){if(d.state!==4)d.kd()&&k.Ey.handleError(d.eE(),d.PV());else{var T=(d.info.aY[0].T.info.video?k.videoTrack:k.audioTrack).N[0]||null;T&&T instanceof iK&&T.ac()&&T.YS(!0)}d.dispose()}else{d.kd()||duq(k,d);var A;((A=d.gX)==null?0:A.itagDenylist)&&k.Ey.dM(d.gX.itagDenylist); if(d.state===4)jn(k,d),k.T&&VdS(k.T,d.info,k.Y);else if(k.policy.SY&&d.gO()&&!d.isComplete()&&!jn(k,d)&&!d.kd())break a;d.kd()&&(EHe(k,d),isNaN(k.DO)||(k.Ey.oT(k.DO),k.DO=NaN));k.policy.jW&&!d.isComplete()?Ou(k.Ey):k.Ey.SV();var V=Jsi(d,k.policy,k.C);$ue(k,d,V)}}}}}catch(D){S=k.Y8?1:0,k.Y8=!0,d=mO(S),S=Vs(D,S),k.Ey.handleError(S.errorCode,S.details,S.severity),d||k.Ey.Jt()}},J)}; duq=function(k,p){if(p.k5&&p.state>=2&&p.state!==3){var t=p.xhr.getResponseHeader("X-Response-Itag");if(t){k.logger.debug(function(){return"Applying streamer-selected format "+t}); var J=Mdi(k.N,t),q=p.info.N;q&&(q-=J.g6(),J.N=!0,p.info.aY[0].T.N=!1,jv6(p,J.t7(q)),Kb(k.Ey,k.videoTrack,J),a9T(k.videoTrack,J),k.Ey.Tm(J.info.video.quality),(q=p.oN())&&J.info.lastModified&&J.info.lastModified!==+q&&wV(k.videoTrack,p))}else p.k5=!1}}; EHe=function(k,p){var t=p.info.aY[0].T,J=p.eE();if(rC(t.oO.T)){var q=g.Ch(p.C$(),3);k.Ey.yT("dldbrerr",{em:q||"none"})}q=p.info.aY[0].x8;var F=PJ(k.T,p.info.aY[0].M2,q);J==="net.badstatus"&&(k.S+=1);if(p.canRetry()&&Hb(k.Ey)){if(!(p.info.oO.Y>=k.policy.iM&&k.Y&&p.info.isDecorated()&&J==="net.badstatus"&&k.Y.Lt(F,q))){q=(t.info.video&&t.oO.Y>1||p.Zb===410||p.Zb===500||p.Zb===503)&&!(z_(k.N.X).size>0)&&!rC(t.oO.T);F=p.PV();var d=t.info.video?k.videoTrack:k.audioTrack;q&&(F.stun="1");k.Ey.handleError(J, F);k.MO()||(q&&(k.logger.debug(function(){return"Stunning format "+t.info.id}),u1(k.N,t)),wV(d,p),k.Ey.SV())}}else d=1,k.Y&&p.info.isDecorated()&&J==="net.badstatus"&&k.Y.Lt(F,q)&&(d=0),k.lh.isLive&&p.eE()==="net.badstatus"&&k.S<=k.policy.jY*2?(fje(k.lh),k.lh.FA||k.lh.isPremiere?BI(k.Ey,0,{XR:"badStatusWorkaround"}):k.lh.C?BI(k.Ey,k.lh.qO,{XR:"badStatusWorkaround", pK:!0}):xN(k.Ey)):k.Ey.handleError(J,p.PV(),d)}; jn=function(k,p){if(k.policy.useUmp&&p.MO())return!1;try{var t=p.info.aY[0].T,J=t.info.video?k.videoTrack:k.audioTrack;if(k.lh.isManifestless&&J){k.S=0;J.Z&&(p.MO(),p.isComplete()||p.gO(),J.Z=!1);p.kU()&&k.Ey.XY.zk(1,p.kU());var q=p.Lg(),F=p.ZD();Z9(k.lh,q,F)}if(p.info.Ih()&&!Pk(p.info))for(var d=g.Z(p.gx()),S=d.next();!S.done;S=d.next())wLM(J,S.value);for(k.Ey.getCurrentTime();J.N.length&&J.N[0].state===4;){var U=J.N.shift();nme(J,U);J.W0=U.R_()}J.N.length&&nme(J,J.N[0]);var f=!!zA(J);f&&p instanceof w9&&(t.info.B3()?fC0(k.timing):Ur0(k.timing));return f}catch(b){p=p.PV();p.origin="hrhs";a:{k=k.Ey;t=b;if(t instanceof Error){p.msg||(p.msg=""+t.message);p.name||(p.name=""+t.name);if(t instanceof g.hm&&t.args)for(J=g.Z(Object.entries(t.args)),q=J.next();!q.done;q=J.next())F=g.Z(q.value),q=F.next().value,F=F.next().value,p["arg"+q]=""+F;g.wt(t);if(t.level==="WARNING"){k.Tb.MQ(p);break a}}k.handleError("fmt.unplayable",p,1)}return!1}}; Spi=function(k){var p=k.videoTrack.T.index;k.dK=new xYL({qB:k.policy.qB,QN:k.policy.B.QN,Rx:p.hx(),WH:function(){return p.WH()}, IU:function(){return p.IU()}})}; lm=function(k,p,t,J){var q=k.policy.mj?k.Ey.dZ():0;t.Ox()||t.Jw()||t.N||!rj(t.oO,k.policy,k.C,q)||t.info.H0==="f"||k.policy.T||(J?(J=k.X,q=t.info,J=wPu(J,q.video?J.policy.OA:J.policy.mE,q.Lp)):J=0,J=t.t7(J),k=um(k,J),Pk(J)&&ZF(p,k),t.N=!0)}; kq=function(k,p,t,J,q,F,d,S){g.R.call(this);var U=this;this.Ey=k;this.pT=p;this.videoTrack=t;this.audioTrack=J;this.lh=q;this.L=F;this.isAudioOnly=d;this.Z=S;this.Y=Xp;this.NO=!1;this.logger=new g.xO("sabr");this.B=this.Y8=this.gy=!1;this.videoInfos=this.X=this.L.videoInfos;this.N=this.P0=this.L.T;this.T=new Rx(p,F,function(f,b){U.Ey.yT(f,b)}); this.pT.FE||Uue(this);this.isAudioOnly&&fZL(this,this.lh.T["0"])}; bl9=function(k,p){var t=[];p=g.Z(p);for(var J=p.next();!J.done;J=p.next())t.push(g.lG(J.value,k.lh.m2));return t}; fZL=function(k,p,t){p!==k.C&&(k.C&&(k.NO=!0),k.C=p,k.HP(p,k.videoTrack,t))}; Yp0=function(k,p){k.logger.debug("setConstraint: "+t6(p));en(k.pT)&&(k.Y8=p.reason==="m"||p.reason==="l"?!0:!1);p.reason==="m"?p.isLocked()&&N7j(k,p.T):ysq(k,p)?p$(k,p.Y,p.T):k.videoInfos=k.X;k.Y=p}; ysq=function(k,p){return k.pT.NZ&&p.reason==="b"||k.pT.H$?!1:k.pT.m8?!0:p.reason==="l"||p.reason==="b"||p.reason==="o"}; T7L=function(k,p){return p.isLocked()&&k.T.Y||k.Y===void 0?!1:p.MR(k.Y)}; rs0=function(k,p){var t,J=(t=k.C)==null?void 0:t.info.video.T;return k.NO?!0:k.C?p!==J?!0:!k.T.Y||k.pT.rK&&k.T.T===k.C.info.itag?!1:!0:!1}; N7j=function(k,p){var t=k.T.T;if(t){k.videoInfos=k.X;var J=g.j9(k.videoInfos,function(q){return q.id===t}); J&&J.video.T===p?k.videoInfos=[J]:(J=k.videoInfos.map(function(q){return q.id}),k.Ey.yT("sabrpf",{pfid:""+t, vfids:""+J.join(".")}),p$(k,p,p),eQ(k.T,""))}else p$(k,p,p)}; p$=function(k,p,t){k.videoInfos=k.X;k.videoInfos=g.dZ(k.videoInfos,function(J){return J.video.T>=p&&J.video.T<=t})}; Uue=function(k){var p=LUT(k.T,k.Z);p&&(k.N=[p])}; Zlw=function(k,p,t){if(k.pT.FE){if(k.Z){var J=g.dZ(k.N,function(q){return q.id===k.Z}); return Zo(J,t).includes(p)}J=g.dZ(k.N,function(q){var F;return!((F=q.ws)==null||!F.isDefault)}); if(J.length>0)return Zo(J,t).includes(p)}return Zo(k.N,t).includes(p)}; Zo=function(k,p){return k.map(function(t){return ZC(g.lG(t,p))})}; C$0=function(k){var p;if((p=k.Y)==null?0:p.isLocked())return k.videoInfos;var t=z_(k.T);p=g.dZ(k.videoInfos,function(J){return J.Lp>k.pT.Lp?!1:!t.has(J.id)}); s4S(k.T)&&(p=g.dZ(p,function(J){return J.video.width<=854&&J.video.height<=480})); return p}; ViL=function(k,p,t,J){var q=k.lh,F=k.Tb.getVideoData(),d=g.hF(F),S=k.d2,U=b1({Cp:F.G(),Tb:k.Tb,Vc:k.Vc,pT:k.pT,ew:k.ew,Vx:k.Vx,Cr:k.Cr,vF:k.vF,rP:k.rP,isPrefetch:k.isPrefetch,RQ:k.RQ,sabrLicenseConstraint:F.sabrLicenseConstraint,lf:k.lf,PL:k.PL,DQ:k.DQ,ZQ:k.ZQ,v80:!!S}),f=Ne(F,k.G0,k.nextRequestPolicy,k.Rt,k.SN,k.oC8,k.L0);J&&t&&(J=f.bf?f.bf.map(function(A){return A.type}):[],t("sabr",{stmctxt:J.join("_"), unsntctxt:f.tU?f.tU.join("_"):""}));J=k.HM;var b=k.zi;if(b===void 0&&J===void 0){var N;b=AsM(q.m2,(N=k.f0)==null?void 0:N.video);var y;J=AsM(q.m2,(y=k.f0)==null?void 0:y.audio)}if(F.Oe)var Y=F.Oe;F={eY:U,Uo:k.Uo,HM:J,zi:b,d2:S,videoPlaybackUstreamerConfig:Y,XJ:f};k.sS&&(F.sS=k.sS);if(d&&p){d=new Map;var T=g.Z(q.Oy);for(S=T.next();!S.done;S=T.next())S=S.value,(U=q.RY[jUM(q,S)]||"")?(d.has(U)||d.set(U,[]),d.get(U).push(S)):t&&t("ssap",{nocid4fmt:(S.itag||"")+"_"+(S.lmt||0)+"_"+(S.xtags||"")});q=new Map; T=g.Z(k.kI);for(S=T.next();!S.done;S=T.next())S=S.value,U=S.startTimeMs||0,f=void 0,N=(f=p)==null?void 0:cI(f,U),f=N.clipId,N=N.aD,f?(q.has(f)||(y=d.get(f)||[],q.set(f,{clipId:f,kI:[],TO:y})),N!==0&&(S.startTimeMs=U-N),q.get(f).kI.push(S)):t&&(f=void 0,t("ssap",{nocid4range:"1",fmt:((f=S.formatId)==null?void 0:f.itag)||"",st:U.toFixed(3),d:(S.durationMs||0).toFixed(3),timeline:C$(p)}));F.oZ=[];q=g.Z(q.entries());for(d=q.next();!d.done;d=q.next())d=g.Z(d.value),d.next(),d=d.next().value,F.oZ.push(d); if(k.kI.length&&!F.oZ.length){t&&t("ssap",{nobfrange:"1",br:mui(k.kI),timeline:C$(p)});return}k.LD&&(F.LD=k.LD);k.U2&&(F.U2=k.U2)}else F.kI=k.kI,F.TO=q.Oy,d&&((T=k.kI)==null?void 0:T.length)>0&&!p&&t&&t("ssap",{bldmistlm:"1"});return F}; AsM=function(k,p){return p?[g.lG(p.info,k)]:[]}; mui=function(k){var p="";k=g.Z(k);for(var t=k.next();!t.done;t=k.next()){t=t.value;var J=void 0,q=void 0,F=void 0;p+="fmt."+(((J=t.formatId)==null?void 0:J.itag)||"")+"_"+(((q=t.formatId)==null?void 0:q.lmt)||0)+"_"+(((F=t.formatId)==null?void 0:F.xtags)||"")+";st."+(t.startTimeMs||0).toFixed(3)+";d."+(t.durationMs||0).toFixed(3)+";"}return p}; Av=function(k,p,t){var J=this;this.requestType=k;this.oO=p;this.A5=t;this.Y=null;this.u3={xxT:function(){var q;return(q=J.data)==null?void 0:q.isPrefetch}, SN:function(){var q;return(q=J.data)==null?void 0:q.SN}}}; $r6=function(k,p,t){p=Y6(k.oO,WFj(k,p,t),p);k.EH()&&p.set("probe","1");return p}; WFj=function(k,p,t){k.rA===void 0&&(k.rA=k.oO.rA(p,t));return k.rA}; Due=function(k){var p,t;return((p=k.T)==null?void 0:(t=p.eY)==null?void 0:t.OI)||0}; srh=function(k){var p,t;return!!((p=k.T)==null?0:(t=p.eY)==null?0:t.lf)}; LF_=function(k){var p={},t=[],J=[];if(!k.data)return p;for(var q=0;q<k.data.kI.length;q++){var F=k.data.kI[q],d=void 0;t.push("i."+((d=F.formatId)==null?void 0:d.itag)+"_st."+(F.startTimeMs+"_e."+(F.startTimeMs+F.durationMs)+"_d."+F.durationMs)+("_sn."+F.Jy)+("_en."+F.Ux))}for(q=0;q<k.data.Uo.length;q++){F=k.data.Uo[q];var S=d=void 0,U=void 0,f=void 0;J.push("i."+((d=F.formatId)==null?void 0:d.itag)+"_sn."+F.sequenceNumber+"_sl."+(F.aq||NaN)+"_lb."+F.o4+"_tr.s_"+((S=F.G9)==null?void 0:S.startTicks)+ "_d_"+((U=F.G9)==null?void 0:U.dW)+"_t_"+((f=F.G9)==null?void 0:f.timescale)+"_ed_"+F.A3)}p.ptime=Due(k);p.rtype=k.requestType;p.brl=t.join(";");p.ps=J.join(";");return p}; vHL=function(k){if(k.nL)return{CC:g.dU(k.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),T4:g.dU(k.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}}; ml=function(k,p){this.gf=k;this.cipher=this.gf.exports.AES128CTRCipher_create(p.byteOffset)}; VJ=function(k){return function(p){return{profile:k,n5:Math.ceil(p.byteLength/16)}}}; WD=function(k,p){this.key=k;this.subtleCrypto=p;this.T=!1}; csT=function(k){var p=globalThis.crypto.subtle;p=p===void 0?window.crypto.subtle:p;return dY(Ff(function(){return p.importKey("raw",k,"AES-CTR",!1,["encrypt"]).catch(function(t){return Promise.reject(t.name+": "+t.message)})}),function(t){return new WD(t,p)})}; Do=function(k){this.T=!1;this.Y=new bN(k)}; sF=function(k,p){this.gf=k;var t=k.nh(p);this.T=new ml(k,t!=null?t:p);t&&k.free(t.byteOffset)}; nHq=function(k){g.wt("wasm encryptor failed: "+k);throw k;}; L$=function(k,p,t){var J=this;this.key=k;this.C=this.X=!1;this.CC=32768;this.T4=131072;p==null||dY(p,function(q){J.T=new sF(q,J.key);J.C=q.DP}); if(t==null?0:t.T4)this.T4=t.T4;if(t==null?0:t.CC)this.CC=t.CC}; wsw=function(k,p,t){k.Y||(k.Y=new Do(k.key));return EJ(k.Y.encrypt(p,t),nHq)}; ilw=function(k,p,t){if(!k.N){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return qm("native encryptor unavailable");k.N=csT(k.key)}return EJ(dY(k.N,function(J){return J.encrypt(p,t)}),nHq)}; vD=function(k,p,t){this.T=k;this.gf=p;this.C=t;this.N=!1;this.iv=(0,g.ye)(rO(16))}; Qre=function(k){k.Y||(k.Y=new L$(k.T.T,k.gf,k.C));return k.Y}; P$i=function(k,p){var t;return g.Q(function(J){(0,g.V9)();t=gri(k.T);return J.return(t.encrypt(p,k.iv))})}; GGq=function(k,p){var t;return g.Q(function(J){(0,g.V9)();var q=k.T;q.C||(q.C=new oK_(q.N));t=q.C;return J.return($Z6(t,p,k.iv))})}; IZL=function(k,p,t){var J;return g.Q(function(q){(0,g.V9)();J=gri(k.T);return q.return(J.decrypt(p,t))})}; cD=function(k){g.R.call(this);var p=this;this.ih=k;this.T=new Map;this.C=[];this.Y=!this.ih.experiments.Gb("html5_disable_trusted_hosts")&&!TX();this.L=g.dU(this.ih.experiments,"html5_onesie_prewarm_interval_ms");this.B=new g.jF(this.Z,this.L,this);this.S=-1;this.u3={fX8:function(){return p.T}, ezy:function(){return p.X}, D88:function(){return Xs_}}; g.z(this,this.B);Cfu(this,g.nG("yt-player-bandaid-host"));this.X=this.load();this.L&&this.X.then(function(){p.Z()})}; Cfu=function(k,p){var t=p==null?void 0:p.primary;k.N(0,t);t=t?Ree(t):void 0;k.N(2,t);k.N(1,p==null?void 0:p.secondary)}; n$=function(k,p){return new g.yb("https://"+p+k.ih.yr.baseUrl)}; B7L=function(k,p){k="https://"+TY(p.location)+"/initplayback?c="+gi(k.ih)+"&owc=1";Ar(k,"pw",function(t){t.ht=p.T})}; wM=function(k,p,t,J){Ar("https://"+p+"/videoplayback?probe=1",t,function(q){!J.D("html5_onesie_host_racing")||J.videoData.isLivePlayback||J.D("html5_onesie_probe_ec_hosts")||J.c$||J.nN();k.C.push(q)},function(q){k.C.push(q.details)})}; Ree=function(k){return k.replace(/(\d+)---/g,function(p,t){p=Number(t);return(p===1?2:p-1)+"---"})}; il=function(k,p){var t,J,q,F,d,S,U,f;return g.Q(function(b){if(b.T==1){t=n$(k,"redirector.googlevideo.com");t.set("alr","yes");t.set("id",""+Math.round(Math.random()*1E5));if(p===1||p===2)t.set("cmo=sensitive_content","yes"),t.set("sc","yes");p===2&&t.set("cmo=td","c.youtube.com");J={format:"RAW",timeout:5E3};return g.n(b,DT(t.b1(),J),2)}q=b.Y;if(q.xhr.status!==200||!q.xhr.responseText)return b.return(Promise.reject(new g.hm("b204258371_no_host",t.b1(),q.xhr.status)));F=new g.yb(q.xhr.responseText); d=TY(F);S=F.get("ms");U=n$(k,d);f=F.get("mm");U.set("ms",S);U.set("mm",f);return d&&ZD6(d)?p!==2||qe(d)?b.return(U):b.return(Promise.reject(new g.hm("b204258371_untrusted",d,S))):b.return(Promise.reject(new g.hm("b204258371_invalid",d,S)))})}; zeq=function(k){var p=k.C;k.C=[];return p}; ZD6=function(k){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(k)}; qe=function(k){var p=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(k)&&!p.test(k)}; eei=function(k,p){this.location=k;this.T=p}; QJ=function(k){this.iL=k;this.Y=!1;this.T=[]}; G6=function(k){for(;k.T.length&&!k.T[0].isEncrypted;){var p=k.T.shift(),t=p.videoId,J=p.bB,q=p.formatId,F=p.buffer;p=p.N0;if(F)p=void 0,(p=PD(k.iL.KT,t))==null||DI(p,J,q,F);else if(p)k.iL.KT.HV(t,J,q);else if(J=k.iL,J.T[q].Qb=!0,t=PD(J.KT,t),t==null?0:t.Zx.has(q))t==null||AJ(t,q)}}; g.hv=function(k){this.data=k;this.T=0;this.C=!1;this.N=0;this.error=!1;this.register=this.Y=0;if(I1.length===0){I1.length=288;I1.fill(8);for(k=144;k<280;k++)I1[k]=k<=255?9:7;Xg.length=32;Xg.fill(5);R1.length=286;R1.fill(0);for(k=261;k<285;k++)R1[k]=Math.floor((k-261)/4);BD[257]=3;for(k=258;k<285;k++){var p=BD[k-1];p+=1<<R1[k-1];BD[k]=p}BD[285]=258;for(k=0;k<30;k++)z6[k]=k<=3?0:Math.floor((k-2)/2);for(k=eT[0]=1;k<30;k++)p=eT[k-1],p+=1<<z6[k-1],eT[k]=p}k=100+7*this.data.length;this.data[0]===31&&this.data[1]=== 139&&(k=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(k)}; g.lZw=function(k){for(;!k.C&&!k.error;){var p=k;p.C=!!a1(p,1);switch(a1(p,2)){case 2:var t=[],J=[];J.length=19;J.fill(0);var q=a1(p,5)+257;var F=a1(p,5)+1;for(var d=a1(p,4)+4,S=0;S<d;S++)J[hei[S]]=a1(p,3);J=aZq(J);for(d=q+F;t.length<d;){S=Mi_(p,J);switch(S){case 16:S=t[t.length-1];var U=a1(p,2)+3;break;case 17:S=0;U=a1(p,3)+3;break;case 18:S=0;U=a1(p,7)+11;break;default:U=1}for(;U>0;U--)t.push(S)}t.length!==d?p.error=!0:(F=t.slice(-F),t.length=q,gHS(p,t,F));break;case 1:gHS(p,I1,Xg);break;case 0:uo9(p, p.T&7);t=a1(p,16);q=a1(p,16);(t^q)!==65535&&(p.error=!0);p.output.set(p.data.subarray(p.Y,p.Y+t),p.N);p.Y+=t;p.N+=t;break;default:p.error=!0}k.N>k.output.length&&(k.output=new Uint8Array(k.N*2),k.N=0,k.Y=0,k.C=!1,k.T=0,k.register=0)}k.output.length!==k.N&&(k.output=k.output.subarray(0,k.N));return k.error?new Uint8Array(0):k.output}; gHS=function(k,p,t){p=aZq(p);t=aZq(t);for(var J=k.data,q=k.output,F=k.N,d=k.register,S=k.T,U=k.Y;;){if(S<15){if(U>J.length){k.error=!0;break}d|=(J[U+1]<<8)+J[U]<<S;U+=2;S+=16}var f=p[d&127];if(f<0)for(d>>=7;f<0;)f=p[(d&1)-f],d>>=1;else d>>=f&15;S-=f&15;f>>=4;if(f<256)q[F++]=f;else if(k.register=d,k.T=S,k.Y=U,f>256){d=BD[f];d+=a1(k,R1[f]);U=Mi_(k,t);S=eT[U];S+=a1(k,z6[U]);if(jrh&&d<S)S=F-S,q.copyWithin(F,S,S+d);else for(U=F+d,f=F;f<U;f+=4)q[f]=q[f-S],q[f+1]=q[f-S+1],q[f+2]=q[f-S+2],q[f+3]=q[f-S+3]; F+=d;d=k.register;S=k.T;U=k.Y}else break}k.N=F}; Mi_=function(k,p){if(k.T<7){var t=k.data,J=k.Y;J>t.length&&(k.error=!0);k.register|=(t[J+1]<<8)+t[J]<<k.T;k.Y+=2;k.T+=16}t=p[k.register&127];if(t>=0)return uo9(k,t&15),t>>4;for(uo9(k,7);t<0;)t=p[a1(k,1)-t];return t>>4}; a1=function(k,p){for(;k.T<p;){if(k.Y>=k.data.length)return k.error=!0,0;k.register|=k.data[k.Y++]<<k.T;k.T+=8}var t=k.register&(1<<p)-1;k.register>>=p;k.T-=p;return t}; uo9=function(k,p){k.T-=p;k.register>>=p}; aZq=function(k){for(var p=[],t=g.Z(k),J=t.next();!J.done;J=t.next())J=J.value,p[J]||(p[J]=0),p[J]++;var q=p[0]=0;t=[];var F=0;J=0;for(var d=1;d<p.length;d++)p[d]?J=d:p[d]=0,q=q+p[d-1]<<1,t[d]=q,d>7&&(F+=p[d]);for(q=1;q<F;)q<<=1;p=128;J=new Int16Array(128+(q+J)*2);for(F=0;F<k.length;F++)if(d=k[F]){for(var S=t[d]++,U=q=0;U<d;U++)q=q<<1|S>>U&1;S=F<<4|d;if(d<=7)for(U=1<<7-d;U--;)J[U<<d|q]=S;else{U=q&127;d-=7;for(q>>=7;d--;){J[U]||(J[U]=-p,p+=2);var f=q&1;q>>=1;U=f-J[U]}J[U]=S}}return J}; Ol6=function(k){var p,t,J,q,F,d,S;return g.Q(function(U){switch(U.T){case 1:if(!("DecompressionStream"in window))return U.return(g.lZw(new g.hv(k)));p=new DecompressionStream("gzip");t=p.writable.getWriter();t.write(k);t.close();J=p.readable.getReader();q=new NP([]);case 2:return g.n(U,J.read(),5);case 5:F=U.Y;d=F.value;if(S=F.done){U.oY(4);break}q.append(d);U.oY(2);break;case 4:return U.return(q.xN())}})}; Mj=function(k,p){this.T=k;this.gf=p}; KFT=function(k){return EJ(EJ(Ff(function(){return dY(k.gf,function(p){return k.c8(k.T,p)})}),function(){return k.Vb(k.T)}),function(){return k.hH(k.T)})}; Hli=function(k,p){return KFT(new Mj(k,p))}; px_=function(k){T_.call(this,"onesie");this.KT=k;this.T={};this.N=!0;this.C=null;this.queue=new QJ(this);this.X={};this.S=UUL(function(p,t){var J=this;return function F(){var d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B,O,l,oi,$h;return fuh(F,function(kh){switch(kh.T){case 1:g.mj(kh,2);J.KT.UL();d=function(h){return function(x){throw{name:h,message:x};}}; S=p.xN();g.Aw(kh,4,5);if(!t){kh.oY(7);break}return d_6(kh,EJ(xu_(J.KT,S,J.iv),d("DecryptError")).wait(),8);case 8:U=kh.Y;case 7:if(!J.KT.enableCompression){kh.oY(9);break}return d_6(kh,EJ(Hli((N=U)!=null?N:S,J.KT.G().nL),d("DecompressError")).wait(),10);case 10:f=kh.Y;case 9:b=Xy((Y=(y=f)!=null?y:U)!=null?Y:S,fMu);case 5:g.Du(kh,0,2);if(A=(T=J.KT.G())==null?void 0:T.gf)((V=U)==null?void 0:V.buffer)===A.exports.memory.buffer&&A.free(U.byteOffset),((D=f)==null?void 0:D.buffer)===A.exports.memory.buffer&& A.free(f.byteOffset);g.s0(kh,6);break;case 4:throw w=v=g.W9(kh),new AD("onesie.response.parse",{name:(l=w.name)!=null?l:"unknown",message:(oi=w.message)!=null?oi:"unknown",wasm:((X=J.KT.G())==null?0:X.gf)?((B=J.KT.G())==null?0:(O=B.gf)==null?0:O.DP)?"1js":"1":"0",enc:J.N,gz:J.KT.enableCompression,webcrypto:!!TX()});case 6:return kIS(b),$h=g.VV(b.body),kh.return($h);case 2:g.Du(kh),g.s0(kh,0)}})}()})}; tai=function(k){var p=k.queue;p.T.length&&p.T[0].isEncrypted&&!p.Y&&(p.T.length=0);p=g.Z(Object.keys(k.T));for(var t=p.next();!t.done;t=p.next()){t=t.value;var J=k.T[t];if(!J.Qb){var q=k.queue;q.T.push({videoId:J.videoId,formatId:t,isEncrypted:!1});q.Y||G6(q)}}}; oLi=function(k,p){var t=p.getLength(),J=!1;switch(k.C){case 0:k.KT.D("html5_future_onesie_ump_handler_on_player_response")?EJ(dY(k.S(p,k.N),function(q){JF9(k.KT,q)}),function(q){k.KT.iy(q)}):k.UL(p,k.N).then(function(q){JF9(k.KT,q)},function(q){k.KT.iy(q)}); break;case 2:k.yM("ormk");p=p.xN();k.queue.decrypt(p);break;default:J=!0}k.KT.Gd&&k.KT.yT("ombup","id.11;pt."+k.C+";len."+t+(J?";ignored.1":""));k.C=null}; kIS=function(k){if(k.zw!==1)throw new AD("onesie.response.badproxystatus",{st:k.zw,webcrypto:!!TX(),textencoder:!!g.B9.TextEncoder});if(k.Z3!==200)throw new AD("onesie.response.badstatus",{st:k.Z3});}; qK0=function(k){return new Promise(function(p){setTimeout(p,k)})}; Foq=function(k,p){var t=k.G();t=k.kx&&t.D("html5_onesie_preload_use_content_owner");var J=k.y0,q=l_(p.ih.experiments,"debug_bandaid_hostname");if(q)p=n$(p,q);else if((t===void 0?0:t)&&(J==null?0:J.url)&&!p.Y){var F=TY(new g.yb(J.url));p=n$(p,F)}else p=(F=p.T.get(0))==null?void 0:F.location.clone();if(p&&k.videoId){F=Js(k.videoId);k=[];if(F)for(F=g.Z(F),t=F.next();!t.done;t=F.next())k.push(t.value.toString(16).padStart(2,"0"));p.set("id",k.join(""));return p}}; $2w=function(k,p,t){t=t===void 0?0:t;var J,q;return g.Q(function(F){if(F.T==1)return J=[],J.push(p.load()),t>0&&J.push(qK0(t)),g.n(F,Promise.race(J),2);q=Foq(k,p);return F.return(q)})}; d2e=function(k,p,t,J){J=J===void 0?!1:J;k.set("cpn",p.clientPlaybackNonce);k.set("opr","1");var q=p.G();k.set("por","1");TX()||k.set("onem","1");p.startSeconds>0&&k.set("osts",""+p.startSeconds);J||(q.D("html5_onesie_disable_partial_segments")&&k.set("oses","1"),p=q.D("html5_gapless_onesie_no_media_bytes")&&xL(p)&&p.kx,t&&!p?(p=t.audio,k.set("pvi",t.video.join(",")),q.D("html5_onesie_disable_audio_bytes")||k.set("pai",p.join(",")),u_||k.set("osh","1")):(k.set("oad","0"),k.set("ovd","0"),k.set("oaad", "0"),k.set("oavd","0")))}; ELe=function(k,p,t,J,q){q=q===void 0?!1:q;var F="https://youtubei.googleapis.com/youtubei/"+p.rK.innertubeApiVersion+"/player",d=[{name:"Content-Type",value:"application/json"}];J&&d.push({name:"Authorization",value:"Bearer "+J});d.push({name:"User-Agent",value:g.nc()});g.M9("EOM_VISITOR_DATA")?d.push({name:"X-Goog-EOM-Visitor-Id",value:g.M9("EOM_VISITOR_DATA")}):(t=t.visitorData||g.M9("VISITOR_DATA"))&&d.push({name:"X-Goog-Visitor-Id",value:t});(t=g.M9("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&d.push({name:"X-YouTube-Lava-Device-Context", value:t});(p=l_(p.experiments,"debug_sherlog_username"))&&d.push({name:"X-Youtube-Sherlog-Username",value:p});k=sh(JSON.stringify(k));return{url:F,w6:d,postBody:k,JBp:q,xu:q}}; U2_=function(k,p,t,J,q,F){var d=g.gK(k,U7j,k.xu?void 0:t.gf),S={encryptedClientKey:p.T.encryptedClientKey,J9:!0,JF:!0,Qz:SKi(t,!!k.xu),Su:t.experiments.Gb("html5_use_jsonformatter_to_parse_player_response")};if(k.xu)S.wN8=d;else{k=p.encrypt(d);var U;if(((U=t.gf)==null?void 0:U.exports.memory.buffer)===d.buffer&&k.byteOffset!==d.byteOffset){var f;(f=t.gf)==null||f.free(d.byteOffset)}var b;k=((b=t.gf)==null?void 0:b.BC(k))||k;d=S.iN=k;(0,g.V9)();d=Jzi(new t3i(p.T.N),d,p.iv);S.f6=d;S.iv=p.iv}p=J.getVideoData(); t=b1({Cp:t,Tb:J,Vc:p.startSeconds*1E3});q={Uw:S,eY:t,onesieUstreamerConfig:q,eF:F,XJ:Ne(p)};p.reloadPlaybackParams&&(q.reloadPlaybackParams=p.reloadPlaybackParams);return q}; f_q=function(k,p,t){var J,q,F;return g.Q(function(d){if(d.T==1)return J=g.gK(p,U7j),g.n(d,P$i(t,J),2);if(d.T!=3)return q=d.Y,g.n(d,GGq(t,q),3);F=d.Y;return d.return({iN:q,encryptedClientKey:t.T.encryptedClientKey,iv:t.iv,f6:F,J9:!0,JF:!0,Qz:SKi(k,!!p.xu),Su:k.experiments.Gb("html5_use_jsonformatter_to_parse_player_response")})})}; bqM=function(k,p,t,J,q,F){var d,S,U,f;return g.Q(function(b){if(b.T==1)return g.n(b,f_q(t,k,p),2);d=b.Y;S=J.getVideoData();U=b1({Cp:t,Tb:J,Vc:S.startSeconds*1E3});f={Uw:d,eY:U,onesieUstreamerConfig:q,eF:F,XJ:Ne(S)};S.reloadPlaybackParams&&(f.reloadPlaybackParams=S.reloadPlaybackParams);return b.return(f)})}; SKi=function(k,p){k=TG(k.schedule,!0);p=p||!!TX()&&k>1572864;return"DecompressionStream"in window||!p}; ul=function(k,p){g.R.call(this);var t=this;this.Tb=k;this.playerRequest=p;this.logger=new g.xO("onesie");this.xhr=null;this.state=1;this.CF=new Mi;this.O5=!1;this.playerResponse="";this.sU=new lK(this);this.iL=new px_(this);this.nR="";this.c$=this.aK=!1;this.gg="";this.enableCompression=this.WC=this.w5=!1;this.Mt=[];this.vO=this.FS=-1;this.ih=this.Tb.G();this.videoData=this.Tb.getVideoData();this.Gd=this.ih.DB();this.yz=this.ih.yr;this.td=new vD(this.yz.T,this.ih.nL,vHL(this.ih));this.G2=this.ih.D("html5_onesie_check_timeout"); this.Zq=new g.jF(this.e2,500,this);this.A8=new g.jF(this.nN,1E4,this);this.Ej=new g.jF(function(){if(!t.isComplete()){var J=gM(t);t.iy(new AD("net.timeout",J))}},g.dU(this.ih.experiments,"html5_onesie_request_timeout_ms")); this.dw=new g.jF(this.SQh,2E3,this);this.bK=this.Tb.Qy();this.h8=this.D("html5_onesie_wait_for_media_availability");g.z(this.videoData,this);g.z(this,this.Zq);g.z(this,this.A8);g.z(this,this.dw);g.z(this,this.td);k=KR();u_&&k&&!this.ih.D("html5_disable_onesie_media_bytes")&&(this.PQ=new Map);this.Mu=new Map;this.U4=new Map;this.Iw=new Map;this.Xm=new Map}; PD=function(k,p){var t;return(t=k.PQ)==null?void 0:t.get(p)}; yF9=function(k,p,t){var J;return g.Q(function(q){if(q.T==1)return k.yM("oprd_s"),Nnw(k)?g.n(q,IZL(k.td,p,t),3):(J=k.td.decrypt(p,t),q.oY(2));q.T!=2&&(J=q.Y);k.yM("oprd_c");return q.return(J)})}; xu_=function(k,p,t){k.yM("oprd_s");p=Qre(k.td).encrypt(p,t);dY(p,function(){k.yM("oprd_c")}); return p}; YKi=function(k){return k.D("html5_onesie_host_probing")||k.Gd?u_:!1}; JF9=function(k,p){k.yM("oprr");k.playerResponse=p;k.WC||(k.h8=!1);ll(k)}; ll=function(k){if(!k.playerResponse)return!1;if(k.w5)return!0;var p=k.videoData.D("html5_onesie_audio_only_playback")&&ku(k.videoData);if(k.PQ&&k.h8){if(!k.PQ.has(k.nR))return!1;var t=k.PQ.get(k.nR),J;if(J=t){J=!1;for(var q=g.Z(t.Zx.keys()),F=q.next();!F.done;F=q.next())if(F=t.Zx.get(F.value))for(var d=g.Z(F.nC),S=d.next();!S.done;S=d.next())S.value.kT>0&&(F.B3?J=!0:p=!0);J=!(p&&J)}if(J)return!1}k.yM("ofr");k.CF.resolve(k.playerResponse);if(!k.G2){var U;(U=k.Ej)==null||U.start();k.A8.start()}return k.w5= !0}; rFS=function(k){if(k.PQ&&!k.D("html5_onesie_media_capabilities")){k.yM("ogsf_s");var p=XEL(k.Tb.getVideoData(),function(J,q){k.yT(J,q)}),t=Tn_(k.Tb); p.video=vw6(t,p.video);k.yM("ogsf_c");if(p.video.length)return p;k.yT("ombspf","l."+t.Y+";u."+t.T+";o."+t.N+";r."+t.reason)}}; Nnw=function(k,p){return k.D("html5_onesie_sync_request_encryption")||(p==null?0:p.xu)||g.u$(k.ih)&&k.D("html5_embed_onesie_use_sync_encryption")?!1:!!TX()}; gM=function(k){if(!k.Tq)return{};var p=k.Tq.ZX(),t;p.d=(t=k.Tq.Oy)==null?void 0:t.zH();p.shost=k.JJ;p.ty="o";return p}; Zqj=function(k,p){var t,J;(J=(k=(t=k.PQ)==null?void 0:t.get(p))==null)||(p=k.N?!1:k.N=!0,J=!p);return!J}; CbS=function(k,p,t,J,q,F,d,S,U,f,b){g.R.call(this);var N=this;this.Tb=k;this.Ey=p;this.policy=t;this.audioTrack=J;this.videoTrack=q;this.lh=F;this.gS=d;this.k8=S;this.N=U;this.timing=f;this.L=b;this.T=[];this.Z={};this.IY=this.W0=!1;this.Rt=new Set;this.X=this.RY=this.gy=this.rP=0;this.C=null;this.NO={kI:[],Uo:[]};this.P0={kI:[],Uo:[]};this.S=null;this.qO=[];this.u3={JNh:function(){return N.T}, Qcb:function(){return N.Z}, Rup:function(){N.T.length=0}, nYY:function(){return N.Rt}, XbG:function(){return N.gy}, Q$8:function(y){N.gy=y}, Owy:function(y){N.X=y}, sW:function(y){N.S=y}}; this.videoData=this.Tb.getVideoData();this.policy.SF&&(this.Oy=new ak(this.Ey,this.policy,this.gS),g.z(this,this.Oy))}; Vaq=function(k,p){p=p===void 0?!1:p;if(AF9(k,p)){k.policy.Z&&k.Ey.yT("sabrcrq",{create:1});var t=new Av(0,k.lh.B,k);k.policy.vQ>0&&k.X++;p=m2_(k,t,p);k.T.push(p);var J;(J=k.Oy)==null||kGe(J,k.lh.B)}}; Loj=function(k,p){var t=Woe(k);if(k.policy.xd){var J=k.NO;var q=k.P0}else J=jT(k,k.audioTrack),q=jT(k,k.videoTrack);var F=[].concat(g.m(J.kI),g.m(q.kI));k.policy.qW&&k.S&&F.push.apply(F,g.m(k.qO));var d=[].concat(g.m(J.Uo),g.m(q.Uo)),S=k.Ey.AI(),U,f,b=k.Tb,N=k.lh,y=k.Y,Y=k.Rt,T=k.policy,A=k.Ey.ew,V=FF_(k.Ey)*1E3,D=(U=k.j6)==null?void 0:U.Cr;U=(f=k.j6)==null?void 0:f.vF;var v;f=Number((v=k.N.C)==null?void 0:v.info.itag)||0;var w;v=Number((w=k.N.S)==null?void 0:w.info.itag)||0;p={Tb:b,lh:N,kI:F,Uo:d, Vc:t,nextRequestPolicy:y,Rt:Y,pT:T,ew:A,Vx:V,Cr:D,vF:U,rP:k.rP,isPrefetch:p||k.Ey.isSuspended,LD:f,U2:v,G0:S,L0:k.Tb.G_()};t=k.Ey.qa();F=Js(t);t&&(p.SN=F);if(t=k.Tb.h7())p.lf=t*1E3;var X;t=k.N;F=t.gy;if((t.pT.Y&&t.pT.yJ||((X=t.pT)==null?0:X.T&&X.Q4))&&!F)for(X=g.Z(t.N),d=X.next();!d.done;d=X.next())if(d.value.ws){F=!0;break}X=en(t.pT)&&!F?[]:bl9(t,t.N);p.HM=X;X=k.N;en(X.pT)&&!X.Y8?X=[]:(t=C$0(X),t.length===0&&(t=X.X),X=bl9(X,t));p.zi=X;p.d2=k.policy.qW&&k.S?[k.S]:void 0;k.policy.iQ&&(p.DQ=D29(k.Ey, k.audioTrack),p.ZQ=D29(k.Ey,k.videoTrack));if(k.policy.X){J=sjj(k,J.kI,q.kI);var B;if(q=(B=k.C)==null?void 0:B.jJ(J))p.sS=q}k.policy.qO&&k.T.length>0&&k.T[0].xK()&&(p.oC8=k.T[0].KN());return p}; Woe=function(k){var p,t=k.policy.S&&((p=k.Ey)==null?void 0:p.sT());p=k.Ey.getCurrentTime()||0;p=vLj(k,p);var J=k.Ey.Yx()||0;p+=J;J=We(k.videoData)||g.VR(k.videoData);var q=0;t?(J&&(q=Number.MAX_SAFE_INTEGER),k.videoData.Oy&&(q=Math.ceil(k.videoData.qO*1E3))):q=Math.ceil(p*1E3);return Math.min(Number.MAX_SAFE_INTEGER,q)}; vLj=function(k,p){if(k.Ey.isSeeking())return p;var t=k.Tb.QM();if(!t)return p;t=t.p$();if(t.length===0||JN(t,p))return p;if(!Ik(k.videoTrack,p)&&!Ik(k.audioTrack,p))return k.Ey.yT("sundrn",{b:0,lt:p}),p;for(var J=p,q=Infinity,F=0;F<t.length;F++)if(!(t.start(F)>p)){var d=p-t.end(F);d<q&&(q=d,J=t.end(F))}return J!==p&&(k.Ey.yT("sundrn",{bre:J,lt:p}),q>=20)?(k.Ey.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),p):J}; sjj=function(k,p,t){var J=k.Ey.getCurrentTime()||0;p=cF9(k,p,J);k=cF9(k,t,J);return Math.min(p,k)}; cF9=function(k,p,t){k=k.Ey.Yx()||0;p=g.Z(p);for(var J=p.next();!J.done;J=p.next()){var q=J.value;J=q.startTimeMs?q.startTimeMs/1E3-k:0;q=J+(q.durationMs?q.durationMs/1E3:0);if(J<=t&&t<=q)return q}return t}; AF9=function(k,p){if(k.policy.vQ>0){var t=Math.floor((0,g.V9)()/1E4);if(t===k.RY){if(k.X>=k.policy.vQ){if(k.X===k.policy.vQ){var J={reason:"toomanyrequests"};J.limit=k.X;k.Ey.handleError("player.exception",J);k.X+=1}return!1}}else k.RY=t,k.X=0}p=!p&&!r7(k.gS)&&!k.policy.kC;if(k.Ey.isSuspended&&(k.Ey.b9||p))return!1;if(k.Y8&&(0,g.V9)()<k.Y8)return k.policy.kC&&g.Oc(k.Ey.NF),!1;if(k.T.length>0&&(!k.policy.qO||k.T.length!==1||!k.T[0].xK()))return!1;var q;if((q=k.lh.B)==null||!rj(q,k.policy,k.Z,k.Ey.dZ()))return!1; q=k.policy.Pu&&k.policy.Y&&k.Ey.dI();if(Qg(k.audioTrack)&&Qg(k.videoTrack)&&!q)return!1;if(k.policy.Y&&k.B&&!k.Ey.dI())return k.TA("ssap",{pauseontlm:1}),!1;if(OF(k,k.audioTrack)&&OF(k,k.videoTrack))return k.policy.N&&k.Ey.yT("sabrHeap",{a:""+DF(k.audioTrack),v:""+DF(k.videoTrack)}),!1;if(q=k.policy.X)q=!1,k.L.Y===2?q=!0:k.L.Y===3&&(Woe(k),k.Ey.Yx(),p=sjj(k,AP(k.audioTrack,k.Ey.isSeeking()).kI,AP(k.videoTrack,k.Ey.isSeeking()).kI),t=k.L,p>=t.N?(t.yT("sdai",{haltrq:p,est:t.N}),p=!0):p=!1,p&&(q=!0)), q&&k.policy.Z&&k.Ey.yT("sabrcrq",{waitad:1});if(q)return!1;k.policy.xd&&(k.NO=jT(k,k.audioTrack),k.P0=jT(k,k.videoTrack));if(!k.Y)return k.policy.Z&&k.Ey.yT("sabrcrq",{nopolicy:1}),!0;if(k.Tb.h7())return k.policy.Z&&k.Ey.yT("sabrcrq",{utc:1}),!0;if(k.N.B)return k.policy.Z&&k.Ey.yT("sabrcrq",{audio:1}),!0;if(!k.Y.targetAudioReadaheadMs||!k.Y.targetVideoReadaheadMs)return k.policy.Z&&k.Ey.yT("sabrcrq",{noreadahead:1}),!0;if(k.policy.S&&k.Ey.sT())return k.policy.Z&&k.Ey.yT("sabrcrq",{seekToHead:1}), !0;q=Math.min(GA(k.Ey,k.audioTrack)*1E3,k.Y.targetAudioReadaheadMs);p=Math.min(GA(k.Ey,k.videoTrack)*1E3,k.Y.targetVideoReadaheadMs);var F=Math.min(q,p);t=vb(k.audioTrack,!0)*1E3;var d=vb(k.videoTrack,!0)*1E3;if(k.policy.xd){var S=k.Tb.getCurrentTime()*1E3;var U=nLw(k.NO.kI,S);S=nLw(k.P0.kI,S)}else U=t,S=d;var f=U<F&&!OF(k,k.audioTrack);F=S<F&&!OF(k,k.videoTrack);!(F=!f&&!F)&&(F=k.policy.Y)&&(F=k.Ey,!F.yF||CR(F.lh)?F=!1:(f=K$(F.yF),F=wx9(F,f)));if(F||k.policy.ag&&iqS(k.Ey)&&k.videoData.n7()||k.policy.oR&& iqS(k.Ey))return!1;k.policy.Z&&(F=k.Ey.pE(),F.car=U,F.vac=S,F.mar=q,F.mvr=p,F.tar=k.Y.targetAudioReadaheadMs,F.tvr=k.Y.targetVideoReadaheadMs,F.vbu=pr(((J=k.Tb.QM())==null?void 0:J.p$())||null),F.abh=t,F.vbh=d,k.Ey.yT("sabrcrq",F));return!0}; jT=function(k,p){Woe(k);k.Ey.Yx();return AP(p,k.Ey.isSeeking())}; nLw=function(k,p){var t=0,J=-1;k=g.Z(k);for(var q=k.next();!q.done;q=k.next())if(q=q.value,!(q.startTimeMs+q.durationMs<p)){if(J<0&&q.startTimeMs>p||J>=0&&q.Jy>J+1)break;t=Math.max(t,q.startTimeMs+q.durationMs);J=Math.max(J,q.Ux)}return Math.max(0,t-p)}; m2_=function(k,p,t){var J={gS:k.gS,eS:function(U,f){k.Tb.lW(U,f)}, Ih:k.policy.hK,DZ:k.policy.N};k.gS.Y.Z&&(J.Bn=(k.videoTrack.T.info.Lp||0)+(k.audioTrack.T.info.Lp||0));k.policy.CI&&(J.Rx=k.audioTrack.T.index.hx(),J.Ih=!1);var q=WFj(p,k.policy,k.Z)?2:1;q!==k.gy&&(k.gy=q,Qj9(k));t=Loj(k,t);if((k.policy.Y||k.policy.qO)&&k.policy.N&&t.Rt){for(var F=q="",d=g.Z(t.Rt),S=d.next();!S.done;S=d.next())S=S.value,k.videoData.sabrContextUpdates.has(S)?q+="_"+S:F+="_"+S;k.Ey.yT("sabrbldrqs",{ctxts:q,misctxts:F})}p.setData(t,k.Ey.dI(),k.policy,k.Z)||!k.policy.Y&&!k.policy.qO|| k.Ey.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);J=new sd(k.policy,p,k.lh,k.Z,k,J,k.Ey.Qy(),k.policy.Xo?k.Ey.dI():void 0);LN(k.timing);k.policy.Z&&k.Ey.yT("sabrcrq",{rn:J.Wh(),probe:p.EH()});return J}; xq=function(k,p){if(p.MO()||k.MO())k.policy.I7||(k.policy.S?HD(k.Ey):k.Ey.SV());else{if(k.policy.N&&p.isComplete()&&p instanceof sd){var t=k.Ey,J=t.yT,q,F,d=Object.assign(p.Tq.ZX(),{rst:p.state,strm:p.xhr.UR(),d:(q=p.Tq.Oy)==null?void 0:q.zH(),cncl:p.xhr&&p.MP.C?1:0,rqb:p.ZK,cwt:p.F5,swt:(F=p.aH)==null?void 0:F.m1});q=Object.assign(LF_(p.info),d);J.call(t,"rqs",q)}if(p.isComplete()&&p.EH()&&p instanceof sd)k.policy.mW?p.rB()?(p.dispose(),k.T.length===0?k.Ey.SV():(k=k.T[0],k instanceof sd&&k.ac()&& k.YS(!1))):p.kd()&&k.Ey.handleError(p.eE(),p.PV()):(p.dispose(),k.Ey.SV());else{if(p.iP())p instanceof sd&&Z5i(k.timing,p),Qj9(k),PbM(k);else if(p.kd())t=k.Tb.h7(),p instanceof sd&&srh(p.info)&&t&&k.Ey.oT(t),p instanceof ul?k.T.pop():(t=1,p.canRetry()&&Hb(k.Ey)&&(GIi(k,p),t=0),k.Ey.handleError(p.eE(),p.PV(),t));else{if(k.Ey.isSuspended&&!p.isComplete())return;PbM(k)}p.MO()||p instanceof ul||(p.isComplete()?t=Jsi(p,k.policy,k.Z):(t=tij(p,k.policy,k.Z),t===1&&(k.W0=!0)),t!==0&&(J=new Av(1,p.info.oO), J.rA=t===2,m2_(k,J)));k.policy.jW&&!p.isComplete()?Ou(k.Ey):k.Ey.SV()}}}; PbM=function(k){for(;k.T.length&&k.T[0].eJ(k.nZ());){var p=k.T.shift();I_0(k,p);if(k.policy.X){var t=k;if(!t.policy.v0&&p.eJ(t.nZ())){var J=p.Wh();if(t.v0!==J){var q=p.Ub();p=q.FS;var F=q.vO;q=q.isDecorated;!t.C||F<0||(t.v0=J,J=PJ(t.L,F/1E3,p),F=t.Ey.Yx()||0,wc(t.L,p,J-F,q,t.C))}}}}k.T.length&&I_0(k,k.T[0])}; I_0=function(k,p){var t=new Set(p.cY(k.nZ()));t=g.Z(t);for(var J=t.next();!J.done;J=t.next()){var q=J.value;if(!(J=!(p instanceof ul))){J=k.N;var F=J.lh.m2,d=Zo(J.videoInfos,F);J=Zlw(J,q,F)||d.includes(q)}if(J&&(J=p.Sw(q,k.nZ()),F=k.policy.qW&&KC(J[0].T.info.mimeType),(!(!F&&k.policy.va&&J.length>0&&(J[0].T.info.B3()?vb(k.audioTrack):vb(k.videoTrack))>3)||p.isComplete())&&p.gO(q,k.nZ()))){q=p.gx(q,k.nZ());if(k.policy.Y){d=J[0].T.info;var S=k.Ey.dI();if(S&&d){var U=p.Ob();S.api.D("html5_ssap_set_format_info_on_video_data")&& U===im(S)&&(d.B3()?S.playback.getVideoData().C=d:S.playback.getVideoData().Y=d);if(S=kA(S.timeline,U))if(S=S[0].getVideoData())d.B3()?S.C=d:S.Y=d}}q=g.Z(q);for(d=q.next();!d.done;d=q.next())if(d=d.value,k.policy.N&&p instanceof ul&&k.Ey.yT("omblss",{s:d.info.Aj()}),F)S=k,S.videoData.m2()&&S.S&&ZC(S.S)===ZC(g.lG(d.info.T.info,S.lh.m2))&&S.Tb.publish("sabrCaptionsDataLoaded",d,S.i$.bind(S));else{S=d.info.T.info.B3();var f=d.info.T;if(S){U=void 0;var b=k.N,N=(U=p.Nf(k.nZ()))==null?void 0:U.token;b.B= !1;f!==b.S&&(b.S=f,b.HP(f,b.audioTrack,N))}else U=void 0,fZL(k.N,f,(U=p.Nf(k.nZ()))==null?void 0:U.token);U=S?k.audioTrack:k.videoTrack;p instanceof ul&&(U.Z=!1,p instanceof ul&&(S?fC0(k.timing):Ur0(k.timing)));try{Cb(U,J,d)}catch(y){d=Vs(y),k.Ey.handleError(d.errorCode,d.details,d.severity),U.Jt(),k.hY(!1,"pushSlice"),HD(k.Ey)}}}}}; GIi=function(k,p){k.policy.qO?k.T.splice(k.T.indexOf(p)).forEach(function(t){t.dispose()}):(k.T.pop(),p==null||p.dispose())}; XxS=function(k,p,t){for(var J=[],q=0;q<k.T.length;q++)p&&k.T[q]instanceof ul?J.push(k.T[q]):(k.policy.Z&&k.Ey.yT("sabrcrq",{d:k.T[q].Wh(),src:t}),k.T[q].dispose());k.T=J}; Rcw=function(k,p){p&&p.type&&(k.videoData.sabrContextUpdates.set(p.type,p),p.sendByDefault&&k.Rt.add(p.type))}; Bnh=function(k,p,t){p.g$(t.Om,t.version)?k.videoData.pP=t.version||"":k.Ey.yT("ssap",{v:t.version,tlnu:1})}; Qj9=function(k){k.Rt.clear();if(k.videoData.sabrContextUpdates.size>0)for(var p=g.Z(k.videoData.sabrContextUpdates.keys()),t=p.next();!t.done;t=p.next()){t=t.value;var J=void 0;((J=k.videoData.sabrContextUpdates.get(t))==null?0:J.sendByDefault)&&k.Rt.add(t)}if(k.policy.qO&&k.T.length)for(p=g.Z(k.T),t=p.next();!t.done;t=p.next())(t=t.value.KN())&&t.type&&t.sendByDefault&&k.Rt.add(t.type)}; zc6=function(k){k.policy.nT&&(k.j6=void 0,k.rP=0)}; eci=function(k,p){if(p.kd()||p.MO()){var t=k.Ey,J=t.yT,q=p.state;k=k.nZ();var F,d;if((p=(F=p.PQ)==null?void 0:F.get(k))==null)p=void 0;else{F=0;k=p.cY();for(var S=0;S<k.length;S++){var U=void 0;F+=((U=p.Zx.get(k[S]))==null?void 0:U.bytesReceived)||0}p=F}p=(d=p)!=null?d:-1;J.call(t,"sabromb",{s:q,tbytes:p})}else k.T.push(p),p.Mt.push(k),LN(k.timing),k.policy.eb&&p.B6&&k.zL(p.B6)}; OF=function(k,p){return k.policy.kS?!k.Ey.Jf&&zA(p)&&(p.Fq()!==zA(p)||k.Ey.isSuspended):!1}; hcL=function(k){var p="";k=g.Z(k);for(var t=k.next();!t.done;t=k.next()){t=t.value;p+=".cid."+t.clipId;if(t.yZ){var J=t.yZ;p+=".vid."+J.Vd+(".pst."+J.s_)+(".ps."+J.uI)+(".lst."+J.A5h)+(".ld."+J.O4)+(".ls."+J.xg)}t.JL&&(p+=".nonv."+t.JL.sL)}return p}; a_i=function(k){this.C=k;this.T=0;this.Y=!1;this.N=new Map}; Ma0=function(k,p,t,J,q){this.Ey=k;this.policy=p;this.schedule=t;this.hk=J;this.L=q;this.gy=NaN;this.Y=this.Z=this.C=null;this.T=this.X=this.S=this.startTimeSecs=NaN;this.N=!1;this.B=NaN}; gL9=function(k,p,t,J,q,F){return p.p7&&p.hB&&t===3?new Ma0(k,p,J,q,F):null}; uph=function(k,p){if(k.policy.Le){var t=p.info.Lp,J=TG(k.schedule);p=p.index.hx();t=Math.max(1,J/t);k.B=Math.round(Math.max(((t-1)*p+k.policy.kx)/t,p-k.policy.M_)*1E3)}}; Oqq=function(k,p){var t=Date.now()/1E3,J=t-k.startTimeSecs,q=t-k.S,F=q>=k.policy.Pt,d=!1;if(F){var S=0;!isNaN(p)&&p>k.X&&(S=p-k.X,k.X=p);S/q<k.policy.Eq&&(d=!0);k.S=t}t=J>=k.policy.M_&&!k.N;if(!F&&!t&&l_9(k,p))return NaN;t&&(k.N=!0);a:{J=d;t=(0,g.V9)()/1E3-(k.hk.L$()||0)-k.Z.T-k.policy.kx;F=k.Y.startTime;t=F+t;if(J){if(isNaN(p)){pL(k,NaN,"n",p);F=NaN;break a}J=p-k.policy.St;J<t&&(t=J)}else k.N&&(J=t+k.policy.kx-k.gy+k.policy.Az,isNaN(p)||(J=Math.max(J,Math.min(t,p-k.policy.St))),t=J);F=t=Math.max(t, F)}k.T=F;if(isNaN(k.T))return k.clear(),NaN;if(!d&&l_9(k,p))return jjq(k,p),NaN;if(k.T<=k.Y.startTime)return pL(k,NaN,"y",p),k.clear(),NaN;if(!k.L(k.T,!1))return!jjq(k,p)&&d&&(pL(k,NaN,"t",p),k.clear()),NaN;d=k.T;pL(k,d,"s",p);k.clear();return d}; jjq=function(k,p){return k.L(k.T,!0)?!1:(pL(k,NaN,"ns",p),k.clear(),!0)}; l_9=function(k,p){return isNaN(p)?!0:isNaN(k.T)?!1:p<k.T+(k.N?k.policy.St:k.policy.rk)}; pL=function(k,p,t,J){var q=k.C.PV();q.ssr_sk=(p*1E3).toFixed(0);q.ssr_t=(k.T*1E3).toFixed(0);q.ssr_r=t;q.ssr_st=(k.startTimeSecs*1E3).toFixed(0);q.ssr_n=(0,g.V9)().toFixed(0);q.ssr_f=(k.Z.T*1E3).toFixed(0);q.ssr_fa=k.N?"1":"0";q.ssr_o=(k.hk.L$()*1E3||0).toFixed(0);q.ssr_v=(J*1E3).toFixed(0);p=k.Y.T.index;p.Hh(k.Y.x8,!0)&&(q.ssr_ist=(p.getStartTime(k.Y.x8)*1E3).toFixed(0),q.ssr_id=(p.getDuration(k.Y.x8)*1E3).toFixed(0));k.Ey.yT("ssr",q)}; KoM=function(){var k={};if(window.performance){var p=window.performance.memory;p&&(k.jsTotal=p.totalJSHeapSize,k.jsUsed=p.usedJSHeapSize,k.jsLimit=p.jsHeapSizeLimit,k.msTotal=p.totalMediaSourceSize,k.msLimit=p.mediaSourceSizeLimit,k.msUsed=p.usedMediaSourceMemorySize)}var t;if((t=window.h5vcc)==null?0:t.cVal)k.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),k.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),k.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return k}; g.JX=function(k,p,t,J,q,F,d,S,U,f){S=S===void 0?!1:S;g.R.call(this);var b=this;this.Tb=k;this.schedule=p;this.policy=t;this.lh=J;this.Y8=U;this.mW=f;this.Dr=null;this.Oy=this.qO=this.j6=this.Jf=0;this.AY=this.b9=this.isSuspended=!1;this.k8="";this.nT={};this.Fd=!1;this.pp=0;this.B=null;this.Jp=this.RY=!1;this.ew=0;this.v0=!1;this.P0=this.B0=0;this.ez=null;this.Bb=function(){return b.Tb.Bb()}; this.timing=new St6(this.mW);this.L=new mw(this.schedule,this.policy);this.qW=new g.jF(this.SV,0,this);this.gs=new g.jF(this.SV,this.policy.jW,this);this.NF=new g.jF(this.SV,1E3,this);this.jW=new g.jF(this.SV,void 0,this);this.W0=new g.jF(function(){b.policy.kC&&b.isSuspended||b.SV()},1E4,this); this.aO=new g.jF(this.Vy6,250,this);this.S=this.currentTime=NaN;this.XY=new $H(5);this.NO=this.timestampOffset=NaN;this.logger=new g.xO("dash");this.yn=Infinity;this.u3={getAudioTrack:function(){return b.audioTrack}, AYh:function(){return b.videoTrack}, getManifest:function(){return b.lh}, rYy:function(){return b.N}, SV:function(){b.SV()}, z0:function(){b.Jf=0;b.z0()}, iwS:function(N){return tX(b,b.videoTrack,b.Dr.Y,N)}}; k=U&&U.cY();U&&(qtL(U,this.lh,this.policy),this.NO=Date.now());this.T=new ax(this,this.L,t,this.lh,q,k);t=i5e(this.T,F,d&&d.id);this.audioTrack=new YN(this,this.policy,t.audio,this.timing);this.videoTrack=new YN(this,this.policy,t.video,this.timing);this.videoTrack.C.P0=this.audioTrack.yD();this.IY={updateend:this.B7,error:this.dWh};g.z(this,this.qW);g.z(this,this.gs);g.z(this,this.NF);g.z(this,this.jW);g.z(this,this.W0);t=this.policy.ys&&this.policy.qB?!A5q(this.videoTrack.T.info):!1;this.nE=uH6({QN:this.policy.B.QN|| t,qB:this.policy.qB&&!t,SY:this.policy.SY});this.Z=gL9(this,this.policy,this.nE,this.schedule,this.XY,function(N,y){return Hqe(b,N,y)}); this.C=new vJ(this,this.lh,this.policy,this.videoTrack,this.audioTrack,S,this.Tb.getVideoData().u1());this.BQ=new nP(this,this.lh,this.videoTrack,this.audioTrack,this.policy);S=this.policy.cF?this.Tb.getVideoData().Oe:null;this.X=new MX(this,this.policy,this.videoTrack,this.audioTrack,this.nT,this.C,this.timing,this.L,this.schedule,this.lh,this.T,this.Z,t,S);g.z(this,this.X);this.Y=new kq(this,this.policy,this.videoTrack,this.audioTrack,this.lh,q,ku(this.Tb.getVideoData()),d==null?void 0:d.id);g.z(this, this.Y);Yp0(this.Y,F);this.N=new CbS(this.Tb,this,this.policy,this.audioTrack,this.videoTrack,this.lh,this.schedule,this.T,this.Y,this.timing,this.C);g.z(this,this.N);this.gy=this.Tb.fT.Qk.Xu;this.policy.S||x20(this);this.policy.Dw&&(this.UQ=new a_i(this.videoTrack.T.index));this.logger.debug("Created")}; x20=function(k){var p,t;if((p=k.gy)==null?0:(t=p.gX)==null?0:t.itagDenylist){var J;k.dM((J=k.gy)==null?void 0:J.gX.itagDenylist)}var q;if((q=k.gy)==null?0:q.playbackStartPolicy){var F,d;hP(k.policy,(F=k.gy)==null?void 0:F.playbackStartPolicy,3,(d=k.gy)==null?void 0:d.Wh())}if(k.policy.mL){p=k.nZ();var S;(t=p?(S=k.gy)==null?void 0:S.U4.get(p):void 0)&&k.N.dJ(t)}if(!k.lh.L){var U;S=(U=k.gy)==null?void 0:U.Q3;(S==null?0:S.Bg)&&(S==null?0:S.bZ)&&k.lh.m2&&Z9(k.lh,S.Bg,S.bZ)}var f;((f=k.gy)==null?0:f.Xm)&& (U=k.gy.Xm.get(k.nZ()||""))&&k.lh&&U.formatId&&(k=k.lh.N.get(ZC(U.formatId)))&&(k.info.debugInfo=U.debugInfo)}; klL=function(k,p){if(k.policy.Y&&!k.policy.gE)return!1;var t=ZC(g.lG(p.T.info,k.lh.m2)),J,q=((J=k.Y8)==null?void 0:J.Sw(t))||[];if(q.length===0)return k.yT("ombmsi",{}),!1;q=new Qd(q);if(J=!k.policy.Y8||isFinite(k.getCurrentTime())||k.Tb.h7()){a:{J=k.getCurrentTime();q=g.Z(q.aY);for(var F=q.next();!F.done;F=q.next())if(F=F.value,F.type===3&&J>=F.M2&&J<=F.m_){J=!0;break a}J=!1}J=!J}if(J)return k.yT("ostmf",{ct:k.getCurrentTime(),a:p.T.info.B3()}),!1;(k=k.Y8)!=null&&(k.Zx.get(t).uC=!0);return!0}; peM=function(k){if(!k.lh.m2)return!0;var p=k.Tb.getVideoData();if(p.D("html5_skip_live_preroll_onesie")&&k.Tb.iY()||p.D("html5_skip_live_preroll_onesie_post_live")&&k.Tb.iY()&&(p.FA||p.isPremiere))return k.yT("ombpa",{}),!1;var t,J;if(k.policy.yc&&!!((t=k.gy)==null?0:(J=t.Q3)==null?0:J.cBO)!==k.lh.FA)return k.yT("ombplmm",{}),!1;t=p.nE||p.liveUtcStartSeconds||p.Ji;if(k.lh.FA&&t)return k.yT("ombplst",{}),!1;if(k.lh.L)return k.yT("ombab",{}),!1;t=Date.now();return CR(k.lh)&&!isNaN(k.NO)&&t-k.NO>k.policy.Ba* 1E3?(k.yT("ombttl",{}),!1):k.lh.P3&&k.lh.C||!k.policy.NJ&&k.lh.isPremiere||!(U5(p)===0||k.policy.T&&p.D("html5_enable_onesie_media_for_sabr_proxima_optin"))||p.D("html5_disable_onesie_media_for_mosaic")&&a7(p)||p.D("html5_disable_onesie_media_for_ssdai")&&p.isDaiEnabled()&&p.enableServerStitchedDai?!1:!0}; tJj=function(k,p){var t=p.T,J=k.lh.m2;if(peM(k))if(k.Y8&&k.Y8.Zx.has(ZC(g.lG(t.info,J)))){if(J=ZC(g.lG(t.info,J)),klL(k,p)){var q=new Qd(k.Y8.Sw(J)),F=function(d){try{if(d.kd())k.handleError(d.eE(),d.PV()),wV(p,d),Gb(d.info)&&lm(k.X,p,t,!0),k.SV();else if(jn(k.X,d)){var S;(S=k.C)==null||VdS(S,d.info,k.B);k.SV()}}catch(U){d=Vs(U),k.handleError(d.errorCode,d.details,d.severity),k.Jt()}}; t.N=!0;Pk(q)&&(ZF(p,new w9(k.policy,J,q,k.Y8,F)),LN(k.timing))}}else k.yT("ombfmt",{})}; oy=function(k,p){p=p||k.videoTrack&&k.videoTrack.Y&&k.videoTrack.Y.startTime||k.getCurrentTime();var t=Kb,J=k.videoTrack,q=k.T;p=q.nextVideo&&q.nextVideo.index.cN(p)||0;q.P0!==p&&(q.Oy={},q.P0=p,Me(q,q.T));p=!q.T.isLocked()&&q.L>-1&&(0,g.V9)()-q.L<q.policy.kE*1E3;var F=q.nextVideo&&l1(q,q.nextVideo.info)*3<D2(q.NO);if(!p||F)hJ(q),gc(q),q.Y8=q.Y8||q.nextVideo!==q.N;q.nextVideo&&!q.nextVideo.index.isLoaded()&&(q.P0=-1);t(k,J,q.nextVideo);Kb(k,k.audioTrack,k.T.Y)}; qb=function(k,p){k.b9=p;k.policy.P0||(k.logger.debug("Suspended."),k.isSuspended=!0,k.policy.rE&&(k.NF.stop(),k.gs.stop(),k.qW.stop()),k.policy.kC&&k.W0.stop())}; i1=function(k,p,t,J){k.policy.X&&k.hY(!1,"rollback");if(k.lh.isManifestless){var q=cb(k.audioTrack,J,t,p),F=cb(k.videoTrack,J,t,p);k.policy.Xn||(F&&ri(k.lh,J,!0),q&&ri(k.lh,J,!1));k.policy.UQ&&(F&&(k.videoTrack.gy=[]),q&&(k.audioTrack.gy=[]));k.yT("sdai",{rollbk2_seg:J,rbt:t.toFixed(3),lt:p.toFixed(3),a:q,v:F});(q||F)&&k.policy.X&&HD(k)}}; JxL=function(k){k.logger.debug("Rebuffering.");k.AY=!0;if(k.policy.Jp&&k.Dr){var p,t,J,q;k.yT("lr_rb",{c:k.getCurrentTime(),s:k.isSeeking(),ab:pr(k.Dr.T.Dl()),ala:(p=rV(k.audioTrack))==null?void 0:p.Aj(),alr:(t=k.audioTrack.Y)==null?void 0:t.Aj(),vb:pr(k.Dr.Y.Dl()),vla:(J=rV(k.videoTrack))==null?void 0:J.Aj(),vlr:(q=k.videoTrack.Y)==null?void 0:q.Aj()})}k.Tb.dZ()!==0&&k.yT("sps_rebuffer",{c:k.getCurrentTime()})}; ouh=function(k){k.policy.Fd=!1;try{k.z0()}catch(p){g.nV(p)}}; q5u=function(k){return k.policy.T&&k.policy.Y&&(!UI()&&k.policy.QK||k.policy.hc)}; dCi=function(k,p,t,J){t=t===void 0?!1:t;J=J===void 0?!1:J;k.policy.P0&&(k.logger.debug("disable updateMetadataWithoutMediaSource"),k.policy.Oy&&k.yT("loader",{setsmb:0}),k.Jt(),k.policy.P0=!1);k.logger.debug("attaching media source");Fmj(k,J);if(q5u(k))k.yT("ssap",{delaysb:1}),k.Dr=p;else{if(!e6(p)){var q=zA(k.videoTrack);q=q?q.info.T:k.videoTrack.T;var F=zA(k.audioTrack);F=F?F.info.T:k.audioTrack.T;k.policy.Y&&k.yT("ssap",{initsb:1,v:q.info.id,vf:q.info.H0,a:F.info.id,af:F.info.H0});nM0(p,q.info, F.info,k.policy.lm)}$Cw(k,p,t,J);try{k.SV()}catch(d){g.nV(d)}}}; $Cw=function(k,p,t,J){t=t===void 0?!1:t;J=J===void 0?!1:J;TZ(k.videoTrack,p.Y||null,J);TZ(k.audioTrack,p.T||null,J);k.Dr=p;k.Dr.C=!0;t||k.resume();p.T.bY(k.IY,k);p.Y.bY(k.IY,k)}; Fmj=function(k,p){p=p===void 0?!1:p;k.Dr&&k.Dr.T&&k.Dr.Y&&(k.Dr.T.aX(k.IY,k),k.Dr.Y.aX(k.IY,k));TZ(k.audioTrack,null,p);TZ(k.videoTrack,null,p);k.Dr&&(k.Dr.C=!1);k.Dr=null}; EuS=function(k){k.Dr&&k.Dr.TH()&&(k.Jk(),k.policy.Dh&&k.handleError("fmt.unplayable",{unexpected:1},1))}; UCS=function(k,p){if(!k.MO())if(k.policy.T){if(!T7L(k.Y,p)){var t=k.Y.Y;Yp0(k.Y,p);var J=!1;J=p.isLocked()&&p.reason==="m"&&rs0(k.Y,p.T);var q=k.policy.Iq&&p.reason==="l";t=t.T>p.T&&p.reason==="b";J||q||t?(k.Tb.MQ({reattachOnConstraint:J?"u":q?"drm":"perf",lo:p.Y,up:p.T}),k.policy.rK||(k.Y.T.Y=!1)):(k.policy.rK&&(k.Y.T.Y=!1),HD(k))}}else if(!Q4T(k.T,p)&&k.videoTrack){k.logger.debug(function(){return"Setting constraint: r="+p.reason+" u="+p.T}); t=k.T.T;S5h(k,Gbw(k.T,p));oy(k);J=p.isLocked()&&p.reason==="m"&&k.T.Y8;q=k.policy.Iq&&p.reason==="l"&&Pb(k.videoTrack);t=t.T>p.T&&p.reason==="b";var F=k.T.k8&&!UI();J||q||t||F?k.Tb.MQ({reattachOnConstraint:J?"u":q?"drm":F?"codec":"perf"}):HD(k)}}; faw=function(k,p,t){if((!k.Dr||RU(k.Dr)&&!k.policy.Yo)&&!k.BQ.isSeeking()&&(k.policy.T||Pb(p)&&p.T.Ox()&&k.T.gy)){var J=k.getCurrentTime()+iji(k.L,p,t);k.logger.debug(function(){return"Clearing back to "+J.toFixed(3)}); I9h(p,J)}}; S5h=function(k,p){p&&(k.logger.debug(function(){return"Logging new format: "+xg(p.video.info)}),by9(k.Tb,new XJ(p.video,p.reason))); if(k.T.W0){var t=BjM(k.T,"a");k.Tb.aV(new XJ(t.audio,t.reason))}}; HD=function(k){g.Oc(k.qW)}; Ou=function(k){k.policy.jW&&k.policy.SY&&Math.min(Gju(k.videoTrack),Gju(k.audioTrack))*1E3>k.policy.iC?g.Oc(k.gs):k.SV()}; NS6=function(k,p){var t=(0,g.V9)()-p,J=vb(k.audioTrack,!0)*1E3,q=vb(k.videoTrack,!0)*1E3;k.logger.debug(function(){return"Appends paused for "+t}); if(k.policy.N&&(k.yT("apdpe",{dur:t.toFixed(),abuf:J.toFixed(),vbuf:q.toFixed()}),zZ(k.policy))){var F=D2(k.L);k.yT("sdps",{ct:p,ah:J.toFixed(),vh:q.toFixed(),mr:s6(k.L,k.AY,F),bw:F.toFixed(),js:k.isSeeking(),re:+k.AY,ps:(k.policy.aR||"").toString(),rn:(k.policy.Wu||"").toString()})}}; yxe=function(k){if(k.policy.Y&&Xc(k.videoTrack)&&Xc(k.audioTrack))return"ssap";if(hZT(k.videoTrack))return k.logger.debug("Pausing appends for server-selectable format"),"ssf";if(k.policy.W0&&Rk(k.videoTrack)&&Rk(k.audioTrack))return"updateEnd";if(Qg(k.audioTrack)||Qg(k.videoTrack)&&k.videoTrack.T.info.H0!=="f")return"";if(k.BQ.isSeeking()){var p=k.L;var t=k.videoTrack;var J=k.audioTrack;if(p.policy.T){var q=p.policy.YN;zZ(p.policy)&&(q=s6(p,!1,D2(p)));p=q;t=vb(J,!0)>=p&&vb(t,!0)>=p}else t.N.length|| J.N.length?(q=t.T.info.Lp+J.T.info.Lp,q=10*(1-D2(p)/q),p=Math.max(q,p.policy.YN),t=vb(J,!0)>=p&&vb(t,!0)>=p):t=!0;if(!t)return"abr";t=k.videoTrack;if(t.N.length>0&&t.C.Y.length===1&&UYe(t.C).info.S<t.W0)return"seek"}if(k.policy.X&&gmh(k.videoTrack,k.C)&&gmh(k.audioTrack,k.C))return"ssdai";t=!k.policy.gA||k.getCurrentTime()<10;k.policy.T||(t=t||k.videoTrack.T.info.video.T>360);J=zZ(k.policy)&&k.policy.WV;if(!k.AY||!J&&t)return"";t=k.policy.gA;zZ(k.policy)&&(t=s6(k.L,k.AY,D2(k.L)));t=RZe(k.videoTrack, k.getCurrentTime(),t)||RZe(k.audioTrack,k.getCurrentTime(),t);return zZ(k.policy)?t?"mbnm":"":(k.videoTrack.N.length>0||k.audioTrack.N.length>0||gV(k.X,k.videoTrack,k.audioTrack)||gV(k.X,k.audioTrack,k.videoTrack))&&t?"nord":""}; Y59=function(k){if(k.Z){var p=k.Z.SV(k.audioTrack,qi(k.Dr.Y.Dl()));p&&k.Tb.seekTo(p,{ij:!0,XR:"pollSubsegmentReadahead",pK:!0})}}; VJ_=function(k,p,t){if(k.policy.W0&&Rk(p))return!1;if(t.ir())return!0;if(!t.sB())return!1;var J=zA(p);if(!J||J.info.type===6)return!1;var q=k.policy.tE;if(q&&!J.info.C){var F=J.info.M2-k.getCurrentTime();if(J.info.S<F*q)return!1}var d;if(k.policy.JR||((d=k.C)==null?0:Dr9(d,p,J.info.x8)))k.Oy=0;else return k.BQ.isSeeking()&&HD(k),k.Oy=k.Oy||(0,g.V9)(),!1;if(!tX(k,p,t,J.info))return!1;if(k.lh.Y&&J.info.Y===0){if(q=TS0(p,t,J))F=rV(p),k.yT("initchg",{it:J.info.T.info.id,sr:!!F&&F.T===J.info.T,ty:J.info.type, seg:J.info.x8});F=g.g2(J.info.T.info);k.policy.Ji&&F&&!q&&irM(J)}F=k.Z&&!!k.Z.C&&p.T.info.audio;q=k.lh.isManifestless||J.X;if(!(k.lh.Y&&J.info.Y!==0||q&&!F)&&rxh(k,p,t,J))return!0;if(F)return!1;F=GA(k,p);F=k.getCurrentTime()+F;if(J.info.M2>F)return k.policy.T&&Zyj(k,p),k.policy.uE&&gIh(p.C,F,!1),!1;CE6(k,p);var S;k.policy.fZ&&t===((S=k.Dr)==null?void 0:S.T)&&k.v0&&(t.FF()===0?(k.v0=!1,k.policy.fZ=!1):k.B0=t.FF());if(!AxM(k,t,J,p))return!1;k.policy.W0&&J.info.ZM()?(k.Tb.G().DB()&&k.yT("eosl",{ls:J.info.Aj()}), J.isLocked=!0):(p.aW(J),R$i(k.T,J.info),k.logger.debug(function(){return"Appended "+J.info.Aj()+", buffered: "+pr(t.Dl())})); q&&mC_(k,J.info.T.X8);return!0}; Zyj=function(k,p){p===k.videoTrack?k.qO=k.qO||(0,g.V9)():k.j6=k.j6||(0,g.V9)()}; CE6=function(k,p){p===k.videoTrack?k.qO=0:k.j6=0}; AxM=function(k,p,t,J){var q=k.policy.Jp?(0,g.V9)():0,F=t.X&&t.info.T.T||void 0,d=t.T;t.X&&(d=Wmj(k,t,d)||d);var S=d.xN();d=k.policy.Jp?(0,g.V9)():0;p=DCe(k,p,S,t.info,F);(J=J.L)!=null&&(F=t.info,q=d-q,d=(0,g.V9)()-d,!J.Y||t6i(J.Y,F)&&J.Y.x8===F.x8||J.flush(),J.C+=q,J.N+=d,q=1,!J.Y&&F.Y&&(q=2),KN(J,q,p),d=Math.ceil(F.Y/1024),q===2&&J.T.add(d),J.T.add(Math.ceil((F.Y+F.N)/1024)-d),J.Y=F);k.P0=0;if(p===0)return k.RY&&(k.logger.debug("Retry succeed, back to normal append logic."),k.RY=!1,k.Jp=!1),k.pp= 0,!0;if(p===2||p===5)return s7T(k,"checked",p,t.info),!1;if(p===1){if(!k.RY)return k.logger.debug("QuotaExceeded, retrying."),k.RY=!0,!1;if(!k.Jp)return k.Jp=!0,k.Tb.seekTo(k.getCurrentTime(),{XR:"quotaExceeded",pK:!0}),!1;t.info.pZ()?(q=k.policy,q.RY=Math.floor(q.RY*.8),q.NO=Math.floor(q.NO*.8)):(q=k.policy,q.gs=Math.floor(q.gs*.8),q.NO=Math.floor(q.NO*.8));k.policy.T?BJ(k.Y.T,t.info.T,!1):u1(k.T,t.info.T)}k.Tb.MQ({reattachOnAppend:p});return!1}; Wmj=function(k,p,t){var J;if(J=k.policy.LP&&k.Dr&&!k.Dr.B&&!k.Tb.ZZ())p=p.info.T.info,J=p.rI()&&B$(p)&&p.video&&p.video.width<3840&&p.video.width>p.video.height;if(J&&(k.Dr.B=!0,LC('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return t=Emq(t),k.policy.N&&k.yT("sp4k",{s:!!t}),t}; s7T=function(k,p,t,J){var q="fmt.unplayable",F=1;t===5||t===3?(q="fmt.unparseable",k.policy.T?!J.T.info.video||z_(k.Y.T).size>0||BJ(k.Y.T,J.T,!1):!J.T.info.video||z_(k.T.X).size>0||u1(k.T,J.T)):t===2&&(k.pp<15?(k.pp++,q="html5.invalidstate",F=0):q="fmt.unplayable");J=wj(J);var d;J.mrs=(d=k.Dr)==null?void 0:hN(d);J.origin=p;J.reason=t;k.handleError(q,J,F)}; ssi=function(k,p,t,J,q){var F=k.lh;var d=k.policy.T,S=!1,U=-1,f;for(f in F.T){var b=KC(F.T[f].info.mimeType)||F.T[f].info.pZ();if(J===b)if(b=F.T[f].index,b.Hh(p.x8)){S=b;var N=p,y=S.wO(N.x8);y&&y.startTime!==N.startTime?(S.segments=[],S.nx(N),S=!0):S=!1;S?U=p.x8:!p.pending&&d&&(N=b.getDuration(p.x8),N!==p.duration&&(F.publish("clienttemp","mfldurUpdate",{itag:F.T[f].info.itag,seg:p.x8,od:N,nd:p.duration},!1),b.nx(p),S=!0))}else b.nx(p),S=!0}U>=0&&(d={},F.publish("clienttemp","resetMflIndex",(d[J? "v":"a"]=U,d),!1));F=S;Ojw(k.BQ,p,J,F);k.C.aC(p,t,J,q);if(k.policy.Dw&&t){var Y;(Y=k.UQ)!=null&&Y.N.set(p.x8,t)}p.x8===k.lh.P3&&F&&yq(k.lh)&&p.startTime>yq(k.lh)&&(k.lh.qO=p.startTime+(isNaN(k.timestampOffset)?0:k.timestampOffset),k.BQ.isSeeking()&&k.BQ.T<k.lh.xx()&&k.BQ.seek(k.lh.xx(),{}))}; tX=function(k,p,t,J){var q=rV(p);!q||q.C||ck(q,J)||(t.abort(),(p=p.L)!=null&&(KN(p,4),p.flush()));if(!t.N3()||UI())try{if(k.policy.Cx){if(t.t8(J.T.info.containerType,J.T.info.H0)){if(k.policy.Lk&&t.fU())return!1;k.yT("ssap",{chgtp:J.T.info.containerType,cf:J.T.info.H0,oldtp:t.N3(),oldcf:t.wY()});t.Ci(J.T.info.containerType,J.T.info.H0,J.T.info.mimeType)}}else t.Nn(J.T.info.containerType,J.T.info.mimeType)}catch(F){return t=F,g.wt(t),k.yT("ctexp",{name:t.name,msg:t.message}),!1}else J.T.info.containerType!== t.N3()&&k.yT("ctu",{ct:UI(),prev_c:t.N3(),curr_c:J.T.info.containerType});p=J.T.C;k.policy.M8&&p&&(J=0+p.duration,p=-p.T,0===t.Pg()&&J===t.HU()||t.Al(0,J),p!==t.Yx()&&(t.NG(p),NX&&vmw(k.audioTrack.yD(),t.qf())));return!0}; rxh=function(k,p,t,J){J.info.T.Ox();var q=J.info.T.T;if(!q||!t.sB()||t.ZA()===q)return!1;var F=q,d=t.iZ();if(k.policy.nX&&d&&t.isView()&&g.g2(J.info.T.info)){var S=new DataView(q.buffer,q.byteOffset,q.byteLength);(d=X$h(S,d))?F=new Uint8Array(d.buffer,d.byteOffset,d.byteLength):k.yT("fenc",{})}k.policy.LP&&(d=Wmj(k,J,new NP([F])))&&(F=d.xN());var U;(d=J.info.T.t7(0,J.info.clipId))&&(U=d.aY[0]);if(J===k.ez){if(k.P0+=1,k.Tb.getVideoData().D("html5_shorts_gapless_restart_on_init_seg_retries")&&k.P0> 5)return k.P0=0,k.Tb.MQ({initSegStuck:1,as:J.info.Aj()}),!0}else k.P0=0,k.ez=J;k.policy.ym&&(t.abort(),(d=p.L)!=null&&(KN(d,4),d.flush()));q=DCe(k,t,F,U,q);var f;(f=p.L)==null||lCM(f,q,U);if(q!==0)return Lm6(k,q,J),!0;J.info.pZ()?y_T(k.timing):YtT(k.timing);k.logger.debug(function(){return"Appended init for "+J.info.T.info.id}); mC_(k,J.info.T.X8);return t.fU()}; TS0=function(k,p,t){if(p.ZA()==null){k=rV(k);if(!(p=!k||k.T!==t.info.T)){a:if(k=k.Z,t=t.info.Z,k.length!==t.length)t=!1;else{for(p=0;p<k.length;p++)if(!g.U$(k[p],t[p])){t=!1;break a}t=!0}p=!t}return p}k=p.ZA();t.info.T.Jw()&&Hk(t);t=t.info.T.T;return k!==t&&!g.U$(k,t)}; DCe=function(k,p,t,J,q){var F=0;if(k.policy.Y&&J&&J.clipId&&k.yF){var d;F=(((d=k.yF)==null?void 0:vI(d,J.clipId))||0)/1E3}try{k.policy.Y&&p.Yx()!==F&&p.NG(F);var S,U=p===((S=k.Dr)==null?void 0:S.T)?k.audioTrack:k.videoTrack;if(k.policy.W0&&(J==null?0:J.ZM())){if((J==null?void 0:J.B)>1)return 6;U.qO=new g.jF(function(){var b=zA(U);k.MO()||b==null||!b.isLocked?k.Tb.G().DB()&&k.yT("eosl",{delayA:b==null?void 0:b.info.Aj()}):vu6(U)?(k.Tb.G().DB()&&k.yT("eosl",{dunlock:b==null?void 0:b.info.Aj()}),cx6(k, U===k.audioTrack)):(k.yT("nue",{ls:b.info.Aj()}),b.info.B+=1,k.Dr&&k.z0())},1E4,k); k.Tb.G().DB()&&k.yT("eosl",{delayS:J.Aj()});U.qO.start()}if(k.policy.k0&&(J==null?0:J.ZM())){var f;if((f=U.j6)==null?0:f.isActive())g.K2(U.j6),k.yT("sbac",{as:J.Aj()});U.j6=new g.jF(function(){k.yT("sbum5s",{as:J.Aj()})},5E3,k); U.j6.start()}k.policy.SG&&(J==null?void 0:J.T)instanceof XH&&J.ZM()&&k.yT("poseos",{itag:J.T.info.itag,seg:J.x8,lseg:J.T.index.WH(),es:J.T.index.N});p.appendBuffer(t,J,q)}catch(b){if(b instanceof DOMException){if(b.code===11)return 2;if(b.code===12)return 5;if(b.code===22||b.message.indexOf("Not enough storage")===0)return p=Object.assign({name:"QuotaExceededError",buffered:pr(p.Dl()).replace(/,/g,"_"),vheap:DF(k.videoTrack),aheap:DF(k.audioTrack),message:g.Ch(b.message,3),track:k.Dr?p===k.Dr.Y?"v": "a":"u"},KoM()),k.handleError("player.exception",p),1;g.nV(b)}return 4}return k.Dr.TH()?3:0}; BI=function(k,p,t){k.Tb.seekTo(p,t)}; mC_=function(k,p){p&&k.Tb.RT(new qX(p.key,p.type))}; Eu=function(k,p){k.Tb.BP(p)}; GA=function(k,p){if(k.RY&&!k.AY)return 3;if(k.isSuspended)return 1;var t;if((t=k.Dr)==null?0:t.Dr&&t.Dr.streaming===!1)return 4;t=(p.T.info.audio?k.policy.gs:k.policy.RY)/(p.Lp*k.policy.HJ);if(k.policy.eG>0&&k.Dr&&RU(k.Dr)&&(p=p.T.info.video?k.Dr.Y:k.Dr.T)&&!p.fU()){p=p.Dl();var J=tN(p,k.getCurrentTime());J>=0&&(p=k.getCurrentTime()-p.start(J),t+=Math.max(0,Math.min(p-k.policy.eG,k.policy.Vs)))}k.policy.NO>0&&(t=Math.min(t,k.policy.NO));return t}; D29=function(k,p){return(GA(k,p)+k.policy.E6)*p.Lp}; weM=function(k){k.k8&&!k.isSuspended&&r7(k.schedule)&&(nuu(k,k.k8),k.k8="")}; nuu=function(k,p){Ar(p,"cms",function(t){k.policy.N&&k.yT("pathprobe",t)},function(t){k.Tb.handleError(t)})}; iy_=function(k,p){if(k.Dr&&k.Dr.C&&!k.Dr.TH()&&(p.Nb=vb(k.videoTrack),p.Y=vb(k.audioTrack),k.policy.N)){var t=DF(k.videoTrack),J=DF(k.audioTrack),q=pr(k.Dr.Y.Dl(),"_",5),F=pr(k.Dr.T.Dl(),"_",5);Object.assign(p.T,{lvq:t,laq:J,lvb:q,lab:F})}p.bandwidthEstimate=Vm(k.L);var d;(d=k.audioTrack.L)==null||d.flush();var S;(S=k.videoTrack.L)==null||S.flush();k.logger.debug(function(){return CC(p.T)})}; Q7h=function(k,p){k.B=p;k.C&&(k.C.S=p);k.B.Me(k.videoTrack.T.info.rI());k.X.Y=k.B;k.policy.X&&(k.N.C=k.B)}; PES=function(k,p){if(k.Dr&&k.Dr.Y){if(k.policy.a5){var t=l9_(k.audioTrack);if(t&&t.B3()){var J=k.Tb;J.oA&&(J.oA.T=t,J.ZB(J.oA.videoId).bv(J.oA))}}k.policy.UO&&(t=l9_(k.videoTrack))&&t.pZ()&&(J=k.Tb,J.aZ&&(J.aZ.T=t,J.ZB(J.aZ.videoId).e$(J.aZ)));p-=isNaN(k.timestampOffset)?0:k.timestampOffset;k.getCurrentTime()!==p&&k.resume();k.BQ.isSeeking()&&k.Dr&&!k.Dr.TH()&&(t=k.getCurrentTime()<=p&&p<k.getCurrentTime()+10,J=JN(k.Dr.Y.Dl(),k.getCurrentTime()+F9),t&&J&&(k.BQ.X=!1));k.BQ.isSeeking()||k.policy.j6|| (k.currentTime=p);if(k.policy.Dw&&(t=k.UQ)!=null){J=k.Tb.getCurrentTime();var q=k.yT.bind(k),F=t.C.cN(p),d=t.C.getStartTime(F);if(t.Y||F>=0&&F<Number.POSITIVE_INFINITY&&F!==t.T){t.Y=!1;var S=t.N.get(F);((S==null?void 0:S.N.length)||0)>1?S.Y[0]<p-d?q("ssevt",{ssvc:"start",cpn:S.T[1],vid:S.ids[1],ct:J.toFixed(3),mt:p.toFixed(3),cmt:(d+S.Y[0]).toFixed(3),seg:F,lastSeg:t.T}):t.Y=!0:(S==null?void 0:S.N.length)===1&&(S==null?void 0:S.N[0])===0&&q("ssevt",{ssvc:"start",cpn:S.T[0],vid:S.ids[0],ct:J.toFixed(3), mt:p.toFixed(3),cmt:d.toFixed(3),seg:F,lastSeg:t.T});F!==t.T&&(t.N.delete(t.T),t.T=F)}}g.Oc(k.NF)}}; GlS=function(k,p){var t=Vg(k.videoTrack).find(function(J){return J.startTime>=p&&Hqe(k,J.startTime,!1)}); return t&&t.startTime<p+t.duration*1.5?t.startTime+.1:0}; Hqe=function(k,p,t){if(!(k.videoTrack.T.Ox()&&k.audioTrack.T.Ox()&&k.Dr&&k.Dr.Y&&k.Dr.T))return!1;if(t&&k.lh.isManifestless&&(k.videoTrack.S===-1||k.audioTrack.S===-1))return!0;var J=PI(k.videoTrack,p,t);if(isNaN(J))return!1;k=PI(k.audioTrack,k.policy.hB?p:J,t);return isNaN(k)?!1:!0}; xN=function(k){k.Jt();k.BQ.isSeeking()&&k.logger.debug("seeking cancelled by seek-to-head");k.Z&&uph(k.Z,k.videoTrack.T);HD(k);return ME0(k.BQ)}; Kb=function(k,p,t,J){(J===void 0?0:J)&&!p.RY&&(UI()||(J=p.bG,q5u(k)||!J||J.oV(t.info)||(k.yT("ssap",{rstonsrvfmt:t.info.mimeType}),k.Tb.iD())),p.RY=!0);p.T!==t&&(k.logger.debug(function(){return"Setting target itag: "+t.info.id+" (was "+p.T.info.id+")"}),p.T=t)}; vu6=function(k){var p,t=(p=zA(k))==null?void 0:p.info;return!t||Ik(k,Math.min(t.M2+F9,t.m_))}; Iah=function(k,p){var t;if((t=zA(p))!=null&&t.isLocked&&vu6(p)){if(k.Tb.G().DB()){var J;k.yT("eosl",{munlock:(J=zA(p))==null?void 0:J.info.Aj()})}cx6(k,p===k.audioTrack)}}; cx6=function(k,p){if(k.policy.W0&&k.Dr){var t,J,q=p?(t=k.Dr)==null?void 0:t.T:(J=k.Dr)==null?void 0:J.Y;t=p?k.audioTrack:k.videoTrack;p=zA(t);if(p==null?0:p.isLocked){k.Tb.G().DB()&&k.yT("eosl",{unlock:p.info.Aj()});var F;(F=t.qO)==null||F.stop();p.isLocked=!1;t.aW(p);R$i(k.T,p.info);q=q==null?void 0:q.Re();(q==null?void 0:q.Aj())!==p.info.Aj()&&k.yT("oue",{bls:q==null?void 0:q.Aj(),tls:p.info.Aj()})}}}; Xei=function(k,p){k.timestampOffset!==p&&(k.timestampOffset=p,k.policy.Xn&&Tj(k.lh),k.logger.debug(function(){return"Timestamps will be made relative to "+k.timestampOffset}),k.C.B=k.timestampOffset,k.Tb.rg(k.timestampOffset),k.lh.isManifestless&&(k.lh.timestampOffset=k.timestampOffset),k.videoTrack.NG(k.timestampOffset),k.audioTrack.NG(k.timestampOffset))}; R_6=function(k){k.policy.UQ&&(k.audioTrack.gy=[],k.videoTrack.gy=[])}; FF_=function(k){var p=k.XS().filter(function(J){return J.namespace==="ad"}); p=g.Z(p);for(var t=p.next();!t.done;t=p.next())if(t=t.value,t.start/1E3>k.getCurrentTime())return t.start/1E3;return Infinity}; BSu=function(k){var p=rV(k.videoTrack),t=rV(k.audioTrack);return p&&!uRT(k.videoTrack)?p.startTime:t&&!uRT(k.audioTrack)?t.startTime:NaN}; iqS=function(k){if(k.Tb.getVideoData().isLivePlayback)return!1;var p=k.Tb.QM();if(!p)return!1;p=p.getDuration();return wx9(k,p)}; wx9=function(k,p){if(!k.Dr||!k.Dr.T||!k.Dr.Y)return!1;var t=k.getCurrentTime(),J=k.Dr.T.Dl();k=k.Dr.Y.Dl();J=J?oU(J,t):t;t=k?oU(k,t):t;t=Math.min(J,t);return isNaN(t)?!1:t>=p-.01}; Lm6=function(k,p,t){k.policy.YO&&xL(k.Tb.getVideoData())?(k.Tb.sf()||s7T(k,"sepInit",p,t.info),z_S(k.Tb,"sie")):s7T(k,"sepInit",p,t.info)}; Hb=function(k){return k.Tb.dZ()<k.yn}; g.$A=function(k){this.Dx=k}; g.dJ=function(k){var p=this;this.Tb=k;this.u3={ETT:function(){return p.Tb}}}; EO=function(k){k.Tb.dispose()}; S2=function(){g.o$.apply(this,arguments)}; UO=function(k,p,t,J){S2.call(this);var q=this;this.N=-1;this.T={};this.C=new g.jF(this.X,0,this);g.z(this,this.C);this.Y=new g.jF(function(){q.MO()||(q.C.start(Math.random()*t),q.Y.start(p))},k,this); g.z(this,this.Y);J.subscribe("fairplay_next_need_key_info",this.S,this)}; e_0=function(k){if(!(k.length<=28))for(var p=(0,g.ye)([60,0,75,0,73,0,68,0,62,0]),t=28;t<k.length;){a:if(k.length-t<p.length)var J=!1;else{for(J=0;J<p.length;++J)if(k[t+J]!==p[J]){J=!1;break a}J=!0}if(J){t+=p.length;if(k.length<=t+48)break;p=new Uint8Array(24);for(J=0;J<24;++J)p[J]=k[t+J*2];k=Ac(p);k=Aj(k);if(!k)break;t=k[0];k[0]=k[3];k[3]=t;t=k[1];k[1]=k[2];k[2]=t;t=k[4];k[4]=k[5];k[5]=t;t=k[6];k[6]=k[7];k[7]=t;return k}t++}}; fL=function(k,p,t){S2.call(this);var J=this;this.N=k;this.T=[];this.u3={S9b:function(){return J.T.length}}; this.C=t.Gb("html5_ignore_widevine_key_rotation_license_requests");this.Y=new g.jF(function(){J.publish("log_qoe",{wvagt:"timer",reqlen:J.T?J.T.length:-1});if(J.T){if(J.T.length>0){var q=J.T.shift();h_q(J,q.info)}J.T.length>0&&(q=J.T[0].time-(0,g.V9)(),J.Y.start(Math.max(0,q)))}},0); g.z(this,this.Y);p.subscribe("widevine_set_need_key_info",this.X,this)}; h_q=function(k,p){a:{var t=p.cryptoPeriodIndex;if(isNaN(t)&&k.N.size>0)t=!0;else{for(var J=g.Z(k.N.values()),q=J.next();!q.done;q=J.next())if(q.value.cryptoPeriodIndex===t){t=!0;break a}t=!1}}k.publish("log_qoe",{wvagt:"reqnews",canskip:t});t||k.publish("rotated_need_key_info_ready",p)}; aaq=function(){var k={};var p=k.url;var t=k.interval;k=k.retries;this.url=p;this.interval=t;this.retries=k}; MJ_=function(k,p){this.statusCode=k;this.message=p;this.Y=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; gui=function(k,p,t){t=t===void 0?"":t;g.R.call(this);this.message=k;this.requestNumber=p;this.wf=t;this.onError=this.onSuccess=null;this.T=new g.V3(5E3,2E4,.2)}; uOh=function(k,p,t){k.onSuccess=p;k.onError=t}; j7i=function(k,p,t,J){var q={timeout:3E4,onSuccess:function(F){if(!k.MO()){Gg("drm_net_r",void 0,k.wf);var d=F.status==="LICENSE_STATUS_OK"?0:9999,S=null;if(F.license)try{S=Aj(F.license)}catch(T){g.nV(T)}if(d!==0||S){S=new MJ_(d,S);d!==0&&F.reason&&(S.errorMessage=F.reason);if(F.authorizedFormats){d={};for(var U=[],f={},b=g.Z(F.authorizedFormats),N=b.next();!N.done;N=b.next())if(N=N.value,N.trackType&&N.keyId){var y=laj[N.trackType];if(y){y==="HD"&&F.isHd720&&(y="HD720");N.isHdr&&(y+="HDR");d[y]|| (U.push(y),d[y]=!0);var Y=null;try{Y=Aj(N.keyId)}catch(T){g.nV(T)}Y&&(f[g.Zn(Y,4)]=y)}}S.Y=U;S.T=f}F.nextFairplayKeyId&&(S.nextFairplayKeyId=F.nextFairplayKeyId);F.sabrLicenseConstraint&&(S.sabrLicenseConstraint=Aj(F.sabrLicenseConstraint));F=S}else F=null;if(F)k.onSuccess(F,k.requestNumber);else k.onError(k,"drm.net","t.p;p.i")}}, onError:function(F){if(!k.MO())if(F&&F.error)F=F.error,k.onError(k,"drm.net.badstatus","t.r;p.i;c."+F.code+";s."+F.status,F.code);else k.onError(k,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){k.onError(k,"drm.net","rt.req."+k.requestNumber)}}; J&&(q.Lz="Bearer "+J);g.Kw(t,"player/get_drm_license",p,q)}; Oy9=function(k,p,t,J){g.o$.call(this);this.videoData=k;this.ih=p;this.B=t;this.sessionId=J;this.X={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.gy=this.Y8=!1;this.N=null;this.NO=[];this.C=[];this.Z=!1;this.T={};this.status="";this.S=NaN;this.Y=k.X;this.cryptoPeriodIndex=t.cryptoPeriodIndex;k={};Object.assign(k,this.ih.T);k.cpn=this.videoData.clientPlaybackNonce;this.videoData.Y8&&(k.vvt=this.videoData.Y8,this.videoData.mdxEnvironment&&(k.mdx_environment=this.videoData.mdxEnvironment)); this.ih.NO&&(k.authuser=this.ih.NO);this.ih.pageId&&(k.pageid=this.ih.pageId);isNaN(this.cryptoPeriodIndex)||(k.cpi=this.cryptoPeriodIndex.toString());var q=(q=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.nc()))?q[1]:"";q==="ATV"&&(k.cdt=q);this.X=k;this.X.session_id=J;this.L=!0;this.Y.flavor==="widevine"&&(this.X.hdr="1");this.Y.flavor==="playready"&&(p=Number(l_(p.experiments,"playready_first_play_expiration")),!isNaN(p)&&p>=0&&(this.X.mfpe=""+p),this.L=!1);p="";g.Qq(this.Y)?i_(this.Y)?(J=t.Y)&&(p="https://www.youtube.com/api/drm/fps?ek="+ X9M(J)):(p=t.initData.subarray(4),p=new Uint16Array(p.buffer,p.byteOffset,p.byteLength/2),p=String.fromCharCode.apply(null,p).replace("skd://","https://")):p=this.Y.Y;this.baseUrl=p;this.fairplayKeyId=Mn(this.baseUrl,"ek")||"";if(p=Mn(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(p);this.NO=t.rI?[g.Zn(t.initData,4)]:t.N;bn(this,{sessioninit:t.cryptoPeriodIndex});this.status="in"}; kBe=function(k,p){bn(k,{createkeysession:1});k.status="gr";Gg("drm_gk_s",void 0,k.videoData.IY);k.url=Kmu(k);try{k.N=p.createSession(k.B,function(t){bn(k,{m:t})})}catch(t){p="t.g"; t instanceof DOMException&&(p+=";c."+t.code);k.publish("licenseerror","drm.unavailable",1,p,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}k.N&&(HyM(k.N,function(t,J){xCq(k,t,J)},function(t,J,q){if(!k.MO()){J=void 0; var F=1;g.Qq(k.Y)&&g.nl(k.ih)&&k.ih.D("html5_enable_safari_fairplay")&&q===1212433232&&(J="ERROR_HDCP",F=k.ih.D("html5_safari_fairplay_ignore_hdcp")?0:F);k.error("drm.keyerror",F,t,J)}},function(){k.MO()||(bn(k,{onkyadd:1}),k.gy||(k.publish("sessionready"),k.gy=!0))},function(t){k.GL(t)}),g.z(k,k.N))}; Kmu=function(k){var p=k.baseUrl;SY0(p)||k.error("drm.net",2,"t.x");if(!Mn(p,"fexp")){var t=["23898307","23914062","23916106","23883098"].filter(function(q){return k.ih.experiments.experiments[q]}); t.length>0&&(k.X.fexp=t.join())}t=g.Z(Object.keys(k.X));for(var J=t.next();!J.done;J=t.next())J=J.value,p=c2M(p,J,k.X[J]);return p}; xCq=function(k,p,t){if(!k.MO())if(p){bn(k,{onkmtyp:t});k.status="km";switch(t){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":pO_(k,p);return;default:k.publish("ctmp","message_type",{t:t,l:p.byteLength})}k.Y8||(Gg("drm_gk_f",void 0,k.videoData.IY),k.Y8=!0,k.publish("newsession",k));if(cL(k.Y)&&(p=tPM(p),!p))return;p=new gui(p,++k.requestNumber,k.videoData.IY);uOh(p,function(J){JGq(k,J)},function(J,q,F){if(!k.MO()){var d=0; J.T.Y>=3&&(d=1,q="drm.net.retryexhausted");bn(k,{onlcsrqerr:q,info:F});k.error(q,d,F);k.shouldRetry(mO(d),J)&&oRS(k,J)}}); g.z(k,p);qS0(k,p)}else k.error("drm.unavailable",1,"km.empty")}; pO_=function(k,p){bn(k,{sdpvrq:1});k.S=Date.now();if(k.Y.flavor!=="widevine")k.error("drm.provision",1,"e.flavor;f."+k.Y.flavor+";l."+p.byteLength);else{var t={cpn:k.videoData.clientPlaybackNonce};Object.assign(t,k.ih.T);t=g.hM("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",t);p={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, p)}),responseType:"arraybuffer"};g.sG(t,p,3,500).then(Nm(function(J){J=J.xhr;if(!k.MO()){J=new Uint8Array(J.response);var q=String.fromCharCode.apply(null,J);try{var F=JSON.parse(q)}catch(d){}F&&F.signedResponse?(k.publish("ctmp","drminfo",{provisioning:1}),F=(Date.now()-k.S)/1E3,k.S=NaN,k.publish("ctmp","provs",{et:F.toFixed(3)}),k.N&&k.N.update(J)):(F=F&&F.error&&F.error.message,J="e.parse",F&&(J+=";m."+F),k.error("drm.provision",1,J))}}),Nm(function(J){k.MO()||k.error("drm.provision",1,"e."+J.errorCode+ ";c."+(J.xhr&&J.xhr.status))}))}}; Nb=function(k){var p;if(p=k.L&&k.N!=null)k=k.N,p=!(!k.T||!k.T.keyStatuses);return p}; qS0=function(k,p){k.status="km";Gg("drm_net_s",void 0,k.videoData.IY);var t=new g.Ow(k.ih.rK),J={context:g.$Z(t.config_||g.Fs())};J.drmSystem=FKi[k.Y.flavor];J.videoId=k.videoData.videoId;J.cpn=k.videoData.clientPlaybackNonce;J.sessionId=k.sessionId;J.licenseRequest=g.Zn(p.message);J.drmParams=k.videoData.drmParams;isNaN(k.cryptoPeriodIndex)||(J.isKeyRotated=!0,J.cryptoPeriodIndex=k.cryptoPeriodIndex);var q,F,d=!!((q=k.videoData.Y)==null?0:(F=q.video)==null?0:F.isHdr());J.drmVideoFeature=d?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(J.context&&J.context.client){if(q=k.ih.T)J.context.client.deviceMake=q.cbrand,J.context.client.deviceModel=q.cmodel,J.context.client.browserName=q.cbr,J.context.client.browserVersion=q.cbrver,J.context.client.osName=q.cos,J.context.client.osVersion=q.cosver;J.context.user=J.context.user||{};J.context.request=J.context.request||{};k.videoData.Y8&&(J.context.user.credentialTransferTokens=[{token:k.videoData.Y8,scope:"VIDEO"}]);J.context.request.mdxEnvironment=k.videoData.mdxEnvironment|| J.context.request.mdxEnvironment;k.videoData.qW&&(J.context.user.kidsParent={oauthToken:k.videoData.qW});g.Qq(k.Y)&&(J.fairplayKeyId=g.Zn(R6q(k.fairplayKeyId)));g.xH(k.ih,g.eJ(k.videoData)).then(function(S){j7i(p,J,t,S);k.status="rs"})}else k.error("drm.net",2,"t.r;ic.0")}; JGq=function(k,p){if(!k.MO())if(bn(k,{onlcsrsp:1}),k.status="rr",p.statusCode!==0)k.error("drm.auth",1,"t.f;c."+p.statusCode,p.errorMessage||void 0);else{Gg("drm_kr_s",void 0,k.videoData.IY);if(p.heartbeatParams&&p.heartbeatParams.url&&k.videoData.D("outertube_streaming_data_always_use_staging_license_service")){var t=k.Y.Y.match(/(.*)youtube.com/g);t&&(p.heartbeatParams.url=t[0]+p.heartbeatParams.url)}p.heartbeatParams&&k.publish("newlicense",p.heartbeatParams);p.Y&&(k.C=p.Y,k.videoData.NZ||k.publish("newlicense", new aaq),k.videoData.NZ=!0,k.Z=cC(k.C,function(J){return J.includes("HDR")})); p.T&&(k.ih.D("html5_enable_vp9_fairplay")&&i_(k.Y)?(t=g.Zn(R6q(k.fairplayKeyId),4),k.T[t]={type:p.T[t],status:"unknown"}):k.T=A2(p.T,function(J){return{type:J,status:"unknown"}})); wi(k.Y)&&(p.message=e2q(g.Zn(p.message)));k.N&&(bn(k,{updtks:1}),k.status="ku",k.N.update(p.message).then(function(){Gg("drm_kr_f",void 0,k.videoData.IY);Nb(k)||(bn(k,{ksApiUnsup:1}),k.publish("keystatuseschange",k))},function(J){J="msuf.req."+k.requestNumber+";msg."+g.Ch(J.message,3); k.error("drm.keyerror",1,J)})); g.Qq(k.Y)&&k.publish("fairplay_next_need_key_info",k.baseUrl,p.nextFairplayKeyId);k.ih.D("html5_enable_vp9_fairplay")&&i_(k.Y)&&k.publish("qualitychange",$ES(k.C));p.sabrLicenseConstraint&&k.publish("sabrlicenseconstraint",p.sabrLicenseConstraint)}}; oRS=function(k,p){var t=p.T.getValue();t=new g.jF(function(){qS0(k,p)},t); g.z(k,t);t.start();g.Wg(p.T);bn(k,{rtyrq:1})}; dEh=function(k,p){for(var t=[],J=g.Z(Object.keys(k.T)),q=J.next();!q.done;q=J.next())q=q.value,t.push(q+"_"+k.T[q].type+"_"+k.T[q].status);return t.join(p)}; ERj=function(k){var p={};p[k.status]=Nb(k)?dEh(k,"."):k.C.join(".");return p}; SSe=function(k,p){switch(k){case "highres":case "hd2880":k="UHD2";break;case "hd2160":case "hd1440":k="UHD1";break;case "hd1080":case "hd720":k="HD";break;case "large":case "medium":case "small":case "light":case "tiny":k="SD";break;default:return""}p&&(k+="HDR");return k}; UE0=function(k,p){for(var t in k.T)if(k.T[t].status==="usable"&&k.T[t].type===p)return!0;return!1}; fBM=function(k,p){for(var t in k.T)if(k.T[t].type===p)return k.T[t].status}; bn=function(k,p){var t=t===void 0?!1:t;CC(p);(t||k.ih.DB())&&k.publish("ctmp","drmlog",p)}; rPe=function(k){var p=k[0];k[0]=k[3];k[3]=p;p=k[1];k[1]=k[2];k[2]=p;p=k[4];k[4]=k[5];k[5]=p;p=k[6];k[6]=k[7];k[7]=p}; $ES=function(k){return g.Kc(k,"UHD2")||g.Kc(k,"UHD2HDR")?"highres":g.Kc(k,"UHD1")||g.Kc(k,"UHD1HDR")?"hd2160":g.Kc(k,"HD")||g.Kc(k,"HDHDR")?"hd1080":g.Kc(k,"HD720")||g.Kc(k,"HD720HDR")?"hd720":"large"}; tPM=function(k){for(var p="",t=0;t<k.length;t+=2)p+=String.fromCharCode(k[t]);k=jc(new DOMParser,I_(p),"text/xml");return k?(k=k.querySelector("Challenge"))&&k.childNodes&&k.childNodes.length!==0?new Uint8Array((0,g.ye)(bcj(k.childNodes[0].nodeValue)).buffer):null:null}; yT=function(k,p,t,J,q,F){F=F===void 0?!1:F;g.R.call(this);this.element=k;this.B=p;this.initData=t;this.T=J;this.Y=q;this.L=F;this.sessionId="";this.Z=this.S=this.N=this.X=null;this.C=new g.nC(this);g.z(this,this.C);Zbe(this)}; Zbe=function(k){k.T?(k.C.V(k.T,"message",k.aJ),k.C.V(k.T,"keystatuseschange",k.GL),k.T.closed&&k.T.closed.then(Nm(function(){k.onClosed()}),null)):k.Y&&(Wz(k.C,k.Y,["mskeymessage", "webkitkeymessage"],k.X5),Wz(k.C,k.Y,["mskeyerror","webkitkeyerror"],k.lU),Wz(k.C,k.Y,["mskeyadded","webkitkeyadded"],k.bU))}; HyM=function(k,p,t,J,q){k.X=p;k.N=t;k.S=J;k.Z=q}; Cm_=function(k,p,t){g.nV(t);k.N&&(t instanceof DOMException&&(p+=";n."+t.name+";m."+t.message),k.N(p))}; YA=function(k,p,t,J){J=J===void 0?!1:J;g.R.call(this);this.element=k;this.T=p;this.yT=t;this.Z=J;this.S={};this.C=null;this.X=new g.nC(this);this.N=this.Y=null;g.z(this,this.X)}; mXL=function(k,p){p=APh(p,k.T.v0);p=k.N.createSession("video/mp4",p);return new yT(null,null,null,null,p,k.Z)}; Vn_=function(k,p){for(var t=new Uint8Array(270),J=0;J<135;J++)t[J*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(J);k=k.N.createSession("video/mp4",p,t);return new yT(null,null,null,null,k)}; Wb6=function(k,p){var t=k.S[p.sessionId];!t&&k.C&&(t=k.C,k.C=null,t.sessionId=p.sessionId,k.S[p.sessionId]=t);return t}; APh=function(k,p){var t=k.subarray(4);t=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);t=String.fromCharCode.apply(null,t).match(/ek=([0-9a-f]+)/)[1];for(var J="",q=0;q<t.length;q+=2)J+=String.fromCharCode(parseInt(t.substring(q,q+2),16));t=J;J=new ArrayBuffer(t.length*2);q=new Uint16Array(J);for(var F=0;F<t.length;F++)q[F]=t.charCodeAt(F);t=new Uint8Array(J);J=0;F=new ArrayBuffer(k.byteLength+4+t.byteLength+4+p.byteLength);q=new Uint8Array(F);F=new DataView(F);q.set(k);J+=k.byteLength;F.setUint32(J, t.length,!0);J+=4;q.set(t,J);J+=t.length;F.setUint32(J,p.byteLength,!0);q.set(p,J+4);return q}; TF=function(){this.keys=[];this.values=[]}; Lb0=function(k,p,t){g.o$.call(this);this.element=k;this.videoData=p;this.ih=t;this.N=[];this.qO=2;this.RY=this.j6=!1;this.heartbeatParams=null;this.P0=this.L=!1;this.X=null;this.Oy=!1;this.T=this.videoData.X;this.drmSessionId=this.videoData.drmSessionId||g.Bhe();this.Y=new Map;this.S=new TF;this.Z=new TF;this.Y8=new g.nC(this);this.NO=this.ih.D("html5_eme_ignore_teardown_errors");(k=this.element)&&(k.addKey||k.webkitAddKey)||LR()||Gj(t.experiments);this.ih.D("html5_enable_vp9_fairplay")&&i_(this.T)? t=DXh:(t=this.videoData.YN,t=this.T.flavor==="fairplay"||t?Xp:DXh);this.B=t;this.C=new YA(this.element,this.T,this.cP.bind(this),this.NO);g.z(this,this.C);vL(this.T)&&(this.gy=new YA(this.element,this.T,this.cP.bind(this),this.NO),g.z(this,this.gy));g.z(this,this.Y8);t=this.element;this.T.keySystemAccess?this.Y8.V(t,"encrypted",this.SFr):Wz(this.Y8,t,vL(this.T)?["msneedkey"]:["needkey","webkitneedkey"],this.dPh);sk0(this);a:switch(t=this.T,k=this.ih.experiments,p=this.Y,t.flavor){case "fairplay":if(p= /\sCobalt\/(\S+)\s/.exec(g.nc())){k=[];p=g.Z(p[1].split("."));for(var J=p.next();!J.done;J=p.next())J=parseInt(J.value,10),J>=0&&k.push(J);k=parseFloat(k.join("."))}else k=NaN;k>19.2999?(k=t.RU,t=t.uE,t>=k&&(t=k*.75),p=(k-t)*.5,t=new UO(p,k,k-p-t,this)):t=null;break a;case "widevine":t=new fL(p,this,k);break a;default:t=null}if(this.X=t)g.z(this,this.X),this.X.subscribe("rotated_need_key_info_ready",this.dC,this),this.X.subscribe("log_qoe",this.Sb,this);Gj(this.ih.experiments);this.Sb({cks:this.T.getInfo()})}; sk0=function(k){var p=k.C.Cs();p?p.then(Nm(function(){vNS(k)}),Nm(function(t){if(!k.MO()){g.nV(t); var J="t.a";t instanceof DOMException&&(J+=";n."+t.name+";m."+t.message);k.publish("licenseerror","drm.unavailable",1,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(k.Sb({mdkrdy:1}),k.L=!0); k.gy&&(p=k.gy.Cs())}; nNh=function(k,p,t){k.RY=!0;t=new qX(p,t);k.ih.D("html5_eme_loader_sync")&&(k.S.get(p)||k.S.set(p,t));cPL(k,t)}; cPL=function(k,p){if(!k.MO()){k.Sb({onInitData:1});if(k.ih.D("html5_eme_loader_sync")&&k.videoData.N&&k.videoData.N.T){var t=k.Z.get(p.initData);p=k.S.get(p.initData);if(!t||!p)return;p=t;t=p.initData;k.S.remove(t);k.Z.remove(t)}k.Sb({initd:p.initData.length,ct:p.contentType});if(k.T.flavor==="widevine")if(k.j6&&!k.videoData.isLivePlayback)rJ(k);else{if(!(k.ih.D("vp9_drm_live")&&k.videoData.isLivePlayback&&p.rI)){k.j6=!0;t=p.cryptoPeriodIndex;var J=p.T;om6(p);p.rI||(J&&p.T!==J?k.publish("ctmp","cpsmm", {emsg:J,pssh:p.T}):t&&p.cryptoPeriodIndex!==t&&k.publish("ctmp","cpimm",{emsg:t,pssh:p.cryptoPeriodIndex}));k.publish("widevine_set_need_key_info",p)}}else k.dC(p)}}; vNS=function(k){if(!k.MO())if(k.ih.D("html5_drm_set_server_cert")||i_(k.T)){var p=k.C.setServerCertificate();p?p.then(Nm(function(t){k.ih.DB()&&k.publish("ctmp","ssc",{success:t})}),Nm(function(t){k.publish("ctmp","ssce",{n:t.name, m:t.message})})).then(Nm(function(){wbj(k)})):wbj(k)}else wbj(k)}; wbj=function(k){k.MO()||(k.L=!0,k.Sb({onmdkrdy:1}),rJ(k))}; ibM=function(k){return k.T.flavor==="widevine"&&k.videoData.D("html5_drm_cpi_license_key")}; rJ=function(k){if((k.RY||k.ih.D("html5_widevine_use_fake_pssh"))&&k.L&&!k.P0){for(;k.N.length;){var p=k.N[0],t=ibM(k)?qmi(p):g.Zn(p.initData);if(i_(k.T)&&!p.Y)k.N.shift();else{if(k.Y.get(t))if(k.T.flavor!=="fairplay"||i_(k.T)){k.N.shift();continue}else k.Y.delete(t);om6(p);break}}k.N.length&&k.createSession(k.N[0])}}; QkL=function(k){var p;if(p=g.zQ()){var t;p=!((t=k.C.Y)==null||!t.getMetrics)}p&&(p=k.C.getMetrics())&&(p=g.VV(p),k.publish("ctmp","drm",{metrics:p}))}; PmM=function(){var k=lUT();return!(!k||k==="visible")}; IF0=function(k){var p=GZq();p&&document.addEventListener(p,k,!1)}; Xbe=function(k){var p=GZq();p&&document.removeEventListener(p,k,!1)}; GZq=function(){if(document.visibilityState)var k="visibilitychange";else{if(!document[Sq+"VisibilityState"])return"";k=Sq+"visibilitychange"}return k}; RPw=function(k){g.R.call(this);var p=this;this.Tb=k;this.qZ=0;this.S=this.Y=this.X=!1;this.C=0;this.Cp=this.Tb.G();this.videoData=this.Tb.getVideoData();this.N=g.dU(this.Cp.experiments,"html5_delayed_retry_count");this.T=new g.jF(function(){p.Tb.iD()},g.dU(this.Cp.experiments,"html5_delayed_retry_delay_ms")); g.z(this,this.T)}; aFL=function(k,p,t){var J=k.videoData.Y,q=k.videoData.C;xL(k.Tb.getVideoData())&&k.Cp.D("html5_gapless_fallback_on_qoe_restart")&&z_S(k.Tb,"pe");if((p==="progressive.net.retryexhausted"||p==="fmt.unplayable"||p==="fmt.decode")&&!k.Tb.wA.X&&J&&J.itag==="22")return k.Tb.wA.X=!0,k.Vn("qoe.restart",{reason:"fmt.unplayable.22"}),k.Tb.uc(),!0;var F=!1;if(k.videoData.isExternallyHostedPodcast){if(F=k.videoData.MH)t.mimeType=F.type,k.yT("3pp",{url:F.url});t.ns="3pp";k.Tb.W3(p,1,"VIDEO_UNAVAILABLE",CC((new AD(p, t,1)).details));return!0}var d=k.qZ+3E4<(0,g.V9)()||k.T.isActive();if(k.Cp.D("html5_empty_src")&&k.videoData.isAd()&&p==="fmt.unplayable"&&/Empty src/.test(""+t.msg))return t.origin="emptysrc",k.Vn("auth",t),!0;d||Z5(k.Tb.D5())||(t.nonfg="paused",d=!0,k.Tb.pauseVideo());(p==="fmt.decode"||p==="fmt.unplayable")&&(q==null?0:ae(q)||Mz(q))&&(aj6(k.Cp.X,q.H0),t.acfallexp=q.H0,F=d=!0);!d&&k.N>0&&(k.T.start(),d=!0,t.delayed="1",--k.N);q=k.Tb.Ey;!d&&((J==null?0:hD(J))||(J==null?0:B$(J)))&&(aj6(k.Cp.X,J.H0), F=d=!0,t.cfallexp=J.H0);if(k.Cp.D("html5_ssap_ignore_decode_error_for_next_video")&&g.hF(k.videoData)&&p==="fmt.unplayable"&&t.cid&&t.ccid&&Z5(k.Tb.D5())){if(t.cid!==t.ccid)return t.ignerr="1",k.Vn("ssap.transitionfailure",t),!0;k.Vn("ssap.transitionfailure",t);if(BVM(k.Tb,p))return!0}if(!d)return zPM(k,t);if(k.Cp.D("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.hF(k.videoData)&&p==="fmt.unplayable"&&t.cid&&t.ccid&&t.cid!==t.ccid&&Z5(k.Tb.D5())&&(k.Vn("ssap.transitionfailure",t),BVM(k.Tb, p)))return!0;d=!1;k.X?k.qZ=(0,g.V9)():d=k.X=!0;var S=k.videoData;if(S.Jp){S=S.Jp.XT();var U=Date.now()/1E3+1800;S=S<U}else S=!1;t.e=p;t.bkg=PmM();S&&(t.staleprog="1");k.Vn("qoe.restart",t);if(S&&eP_(k))return hPi(k),!0;if(!(!g.RY("philips")||p==="fmt.unplayable"&&q&&q.NO||k.Cp.T.cplatform==="GAME_CONSOLE"))try{window.close()}catch(f){}J&&hD(J)&&!k.Cp.D("html5_allow_av1_retry_in_session")?(F=k.Cp.X,F.B=!0,xm(F),F=!0):q?d||(p=(p=rV(q.videoTrack)||q.videoTrack.Y)?p.T:q.videoTrack.T,p.S+=1,q.policy.T? BJ(q.Y.T,p,!0):u1(q.T,p,!0)):k.videoData.Jp&&k.videoData.Jp.Y3();k.T.isActive()||k.Tb.iD(F);return!0}; zPM=function(k,p){if(k.videoData.NO)return!1;k.Cp.nE+=1;if(k.Cp.nE<=10)return!1;p.exiled=""+k.Cp.nE;k.Vn("qoe.start15s",p);k.Tb.publish("playbackstalledatstart");return!0}; eP_=function(k){return k.Y?!0:k.Cp.gy==="yt"?k.videoData.NO?k.videoData.yn<25:!k.videoData.yn:!1}; hPi=function(k){if(!k.Y){k.Y=!0;var p=k.Tb.getPlayerState();p=p.isPaused()||p.isSuspended();k.Tb.Td();p&&!MC(k.videoData)||k.Tb.publish("signatureexpired")}}; Mne=function(k,p){if((k=k.Tb.QM())&&(p.errorCode==="fmt.unplayable"||p.errorCode==="html5.invalidstate")){var t=k.eE();p.details.merr=t?t.toString():"0";p.details.mmsg=k.C$()}}; gNT=function(k){return k.errorCode==="net.badstatus"&&(k.severity===1||!!k.details.fmt_unav)}; uci=function(k,p){return k.Cp.D("html5_use_network_error_code_enums")&&p.details.rc===403||p.details.rc==="403"?(k=p.errorCode,k==="net.badstatus"||k==="manifest.net.retryexhausted"):!1}; jke=function(k,p){if(!uci(k,p)&&!k.Y)return!1;p.details.sts="20145";if(eP_(k))return mO(p.severity)&&(p=Object.assign({e:p.errorCode},p.details),p=new AD("qoe.restart",p)),k.Vn(p.errorCode,p.details),hPi(k),!0;(0,g.V9)()-k.Cp.fZ>6048E5&&lFi(k,"signature");return!1}; lFi=function(k,p){try{window.location.reload(),k.Vn("qoe.restart",{detail:"pr."+p})}catch(t){}}; Obu=function(k,p){p=p===void 0?"fmt.noneavailable":p;var t=k.Cp.X;t.Z=!1;xm(t);k.Vn("qoe.restart",{e:p,detail:"hdr"});k.Tb.iD(!0)}; Kb0=function(k,p,t,J,q,F){this.videoData=k;this.T=p;this.reason=t;this.Y=J;this.token=q;this.videoId=F}; Hbj=function(k,p,t){this.ih=k;this.OO=p;this.Tb=t;this.B=this.S=this.T=this.C=this.Z=this.Y=0;this.X=!1;this.L=g.dU(this.ih.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.N=new Map}; k60=function(k,p,t){!k.ih.D("html5_tv_ignore_capable_constraint")&&g.mq(k.ih)&&(t=t.compose(xXi(k,p)));return t}; pDi=function(k){if(k.Tb.D5().isInline())return Xp;var p;k.D("html5_exponential_memory_for_sticky")?p=ZZ(k.ih.Q4,"sticky-lifetime")<.5?"auto":kw[wY()]:p=kw[wY()];return g.Kj("auto",p,!1,"s")}; Jv9=function(k,p){var t,J=tT0(k,(t=p.T)==null?void 0:t.videoInfos);t=k.Tb.getPlaybackRate();return t>1&&J?(k=X66(k.ih.X,p.T.videoInfos,t),new OJ(0,k,!0,"o")):new OJ(0,0,!1,"o")}; tT0=function(k,p){return p&&g.mq(k.ih)?p.some(function(t){return t.video.fps>32}):!1}; oqu=function(k,p){var t=k.Tb.Jq();k.D("html5_use_video_quality_cap_for_ustreamer_constraint")&&t&&t.Mn>0&&xI(p.videoData.jG)&&(k=t.Mn,p.videoData.jG=new OJ(0,k,!1,"u"));return p.videoData.jG}; xXi=function(k,p){if(g.mq(k.ih)&&bf(k.ih.X,NB.HEIGHT))var t=p.T.videoInfos[0].video.T;else{var J=!!p.T.T;var q;g.vs(k.ih)&&(q=window.screen&&window.screen.width?new g.YY(window.screen.width,window.screen.height):null);q||(q=k.ih.xb?k.ih.xb.clone():k.OO.At());(gh||jQ||J)&&q.scale(g.ar());J=q;ku(p.videoData)||MC(p.videoData);p=p.T.videoInfos;if(p.length){q=g.dU(k.ih.experiments,"html5_override_oversend_fraction")||.85;var F=p[0].video;F.projectionType!=="MESH"&&F.projectionType!=="EQUIRECTANGULAR"&& F.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||sp||(q=.45);k=g.dU(k.ih.experiments,"html5_viewport_undersend_maximum");for(F=0;F<p.length;F++){t=p[F];var d=t.video;if(J===null||d.width*q<J.width&&d.height*q<J.height){k&&F&&d.width<J.width*k&&d.height<J.height*k&&(t=p[F-1]);break}}J=t.video;t=new OJ(0,t.itag==="93"?g.Qs[iG(J.width,J.height)]:J.T,!1,"r")}else t=Xp;t=t.T}t&&(t=Math.max(t,360));return new OJ(0,t,!1,"r")}; qF_=function(k,p){var t;a:if((t=p.T)&&t.videoInfos.length){for(var J=g.Z(t.videoInfos),q=J.next();!q.done;q=J.next()){q=q.value;var F=void 0;if((F=q.Y)==null?0:F.smooth){t=q.video.T;break a}}t=t.videoInfos[0].video.T}else t=0;c0L()&&!g.mq(k.ih)&&B$(p.T.videoInfos[0])&&(t=Math.min(t,g.Qs.large));J=g.dU(k.ih.experiments,"html5_chipset_soft_cap");J>0&&(t=Math.min(t,J));if(J=g.dU(k.ih.experiments,"html5_max_vertical_resolution")){k=4320;for(q=0;q<p.T.videoInfos.length;q++)F=p.T.videoInfos[q],F.video.height> J&&(k=Math.min(k,F.video.T));if(k<4320){for(q=J=0;q<p.T.videoInfos.length;q++)F=p.T.videoInfos[q].video.T,F<k&&(J=Math.max(J,F));J&&(t=Math.min(J,t))}}return new OJ(0,t,!1,"o")}; $j9=function(k,p){var t=4320;!k.ih.Y||g.cs(k.ih)||k.ih.D("hls_for_vod")||k.ih.D("mweb_remove_360p_cap")||(t=g.Qs.medium);var J=g.dU(k.ih.experiments,"html5_default_quality_cap");J&&p.T.T&&(k.ih.D("html5_always_apply_default_quality_cap")||!p.videoData.C7&&!p.videoData.xf)&&(t=Math.min(t,J));J=g.dU(k.ih.experiments,"html5_random_playback_cap");var q=/[a-h]$/;J&&q.test(p.videoData.clientPlaybackNonce)&&(t=Math.min(t,J));if(q=J=g.dU(k.ih.experiments,"html5_hfr_quality_cap"))a:{q=p.T;if(q.T){q=g.Z(q.videoInfos); for(var F=q.next();!F.done;F=q.next())if(F.value.video.fps>32){q=!0;break a}}q=!1}q&&(t=Math.min(t,J));(J=g.dU(k.ih.experiments,"html5_live_quality_cap"))&&p.videoData.isLivePlayback&&(t=Math.min(t,J));t=Flq(k,p,t);k=g.dU(k.ih.experiments,"html5_byterate_soft_cap");return new OJ(0,t===4320?0:t,!1,"d",k)}; djT=function(k){var p,t,J,q;return g.Q(function(F){switch(F.T){case 1:return k.T.T&&typeof((p=navigator.mediaCapabilities)==null?void 0:p.decodingInfo)==="function"?g.n(F,Promise.resolve(),2):F.return(Promise.resolve());case 2:t=g.Z(k.T.videoInfos),J=t.next();case 3:if(J.done){F.oY(0);break}q=J.value;return g.n(F,WM9(q),4);case 4:J=t.next(),F.oY(3)}})}; SFu=function(k,p){if(!p.videoData.Y||k.D("html5_disable_performance_downgrade"))return!1;Date.now()-k.Z>6E4&&(k.Y=0);k.Y++;k.Z=Date.now();if(k.Y!==4)return!1;Eqe(k,p.videoData.Y);return!0}; fow=function(k,p,t,J){if(!p||!t||!p.videoData.Y)return!1;var q=g.dU(k.ih.experiments,"html5_df_downgrade_thresh"),F=k.D("html5_log_media_perf_info");if(!((0,g.V9)()-k.C<5E3?0:F||q>0))return!1;var d=((0,g.V9)()-k.C)/1E3;k.C=(0,g.V9)();t=t.getVideoPlaybackQuality();if(!t)return!1;var S=t.droppedVideoFrames-k.S,U=t.totalVideoFrames-k.B;k.S=t.droppedVideoFrames;k.B=t.totalVideoFrames;var f=t.displayCompositedVideoFrames===0?0:t.displayCompositedVideoFrames||-1;F&&k.ih.DB()&&k.Tb.yT("ddf",{dr:t.droppedVideoFrames, de:t.totalVideoFrames,comp:f});if(J)return k.T=0,!1;if((U-S)/d>k.L||!q||g.mq(k.ih))return!1;k.T=(U>60?S/U:0)>q?k.T+1:0;if(k.T!==3)return!1;Eqe(k,p.videoData.Y);k.Tb.yT("dfd",Object.assign({dr:t.droppedVideoFrames,de:t.totalVideoFrames},Uj0()));return!0}; Eqe=function(k,p){var t=p.H0,J=p.video.fps,q=p.video.T-1,F=k.N;p=""+t+(J>49?"p60":J>32?"p48":"");t=WL(t,J,F);q>0&&(t=Math.min(t,q));if(!CL.has(p)&&PP().includes(p)){var d=t;t=Qp();+t[p]>0&&(d=Math.min(+t[p],d));t[p]!==d&&(t[p]=d,g.cz("yt-player-performance-cap",t,2592E3))}else if(CL.has(p)||F==null){a:{d=d===void 0?!0:d;J=PP().slice();if(d){if(J.includes(p))break a;J.push(p)}else{if(!J.includes(p))break a;J.splice(J.indexOf(p),1)}g.cz("yt-player-performance-cap-active-set",J,2592E3)}Vq.set(p,t)}else CL.add(p), F==null||F.set(p,t);k.Tb.Z1()}; AX=function(k,p){if(!p.T.T)return k.X?new OJ(0,360,!1,"b"):Xp;for(var t=!1,J=!1,q=g.Z(p.T.videoInfos),F=q.next();!F.done;F=q.next())hD(F.value)?t=!0:J=!0;t=t&&J;J=0;q=g.dU(k.ih.experiments,"html5_performance_cap_floor");q=k.ih.Y?240:q;p=g.Z(p.T.videoInfos);for(F=p.next();!F.done;F=p.next()){var d=F.value;if(!t||!hD(d))if(F=WL(d.H0,d.video.fps,k.N),d=d.video.T,Math.max(F,q)>=d){J=d;break}}return new OJ(0,J,!1,"b")}; b$i=function(k,p){var t=k.Tb.D5();return t.isInline()&&!p.iC?new OJ(0,480,!1,"v"):t.isBackground()&&VP()/1E3>60&&!g.mq(k.ih)?new OJ(0,360,!1,"v"):Xp}; NMM=function(k,p,t){if(k.ih.experiments.Gb("html5_disable_client_autonav_cap_for_onesie")&&p.fetchType==="onesie"||g.mq(k.ih)&&(wY(-1)>=1080||p.osid))return Xp;var J=g.dU(k.ih.experiments,"html5_autonav_quality_cap"),q=g.dU(k.ih.experiments,"html5_autonav_cap_idle_secs");return J&&p.isAutonav&&VP()/1E3>q?(t&&(J=Flq(k,t,J)),new OJ(0,J,!1,"e")):Xp}; Flq=function(k,p,t){if(k.D("html5_optimality_defaults_chooses_next_higher")&&t)for(k=p.T.videoInfos,p=1;p<k.length;p++)if(k[p].video.T<t)return k[p-1].video.T;return t}; yvj=function(k,p){k.D("html5_log_media_perf_info")&&(k.Tb.yT("perfdb",Uj0()),k.Tb.yT("sessionperfdb",Object.fromEntries(Vq.entries())),k.Tb.yT("playbackperfdb",Object.fromEntries(k.N.entries())),k.Tb.yT("hwc",{nch:navigator.hardwareConcurrency},!0),p&&k.Tb.yT("mcdb",{itags:p.T.videoInfos.filter(function(t){var J;return((J=t.Y)==null?void 0:J.smooth)===!1}).map(function(t){return t.itag}).join("-")}))}; Uj0=function(){return A2(Qp(),function(k){return""+k})}; mQ=function(k){g.R.call(this);var p=this;this.provider=k;this.T=-1;this.X=!1;this.Y=-1;this.playerState=new g.Kr;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.jF(this.send,6E4,this);this.N=!1;this.jsErrorCount=0;this.u3={f3:function(){p.f3()}}; this.f3=function(){p.jsErrorCount++}; g.z(this,this.delay);window.addEventListener("error",this.f3);window.addEventListener("unhandledrejection",this.f3)}; YFM=function(k){k.T>=0||(k.provider.Tb.getVisibilityState()===3?k.X=!0:(k.T=g.VT(k.provider),k.delay.start()))}; TMi=function(k){if(!(k.Y<0)){var p=g.VT(k.provider),t=p-k.C;k.C=p;k.playerState.state===8?k.playTimeSecs+=t:k.playerState.isBuffering()&&!g.u(k.playerState,16)&&(k.rebufferTimeSecs+=t)}}; rve=function(k){var p;switch((p=k.ih.playerCanaryStage)==null?void 0:p.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Z$w=function(k){return window.PressureObserver&&new window.PressureObserver(k)}; Clu=function(k){k=k===void 0?Z$w:k;g.R.call(this);var p=this;try{this.N=k(function(J){p.Y=J.at(-1)}); var t;this.C=(t=this.N)==null?void 0:t.observe("cpu",{sampleInterval:2E3}).catch(function(J){J instanceof DOMException&&(p.T=J)})}catch(J){J instanceof DOMException&&(this.T=J)}}; Avi=function(k){var p={},t=window.h5vcc;p.hwConcurrency=navigator.hardwareConcurrency;k.T&&(p.cpe=k.T.message);k.Y&&(p.cpt=k.Y.time,p.cps=k.Y.state);if(t==null?0:t.cVal)p.cb2s=t.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),p.cb5s=t.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),p.cb30s=t.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return p}; mjS=function(k){var p;g.Q(function(t){switch(t.T){case 1:return g.Aw(t,2),g.n(t,k.C,4);case 4:g.Vi(t,3);break;case 2:g.W9(t);case 3:(p=k.N)==null||p.disconnect(),g.CS(t)}})}; WlS=function(k,p){p?VTi.test(k):(k=g.pY(k),Object.keys(k).includes("cpn"))}; s1T=function(k,p,t,J,q,F,d){var S={format:"RAW"},U={};if(oY(k)&&q8()){if(d){var f;((f=Djh.uaChPolyfill)==null?void 0:f.state.type)!==2?d=null:(d=Djh.uaChPolyfill.state.data.values,d={"Synth-Sec-CH-UA-Arch":d.architecture,"Synth-Sec-CH-UA-Model":d.model,"Synth-Sec-CH-UA-Platform":d.platform,"Synth-Sec-CH-UA-Platform-Version":d.platformVersion,"Synth-Sec-CH-UA-Full-Version":d.uaFullVersion});U=Object.assign(U,d);S.withCredentials=!0}(d=g.M9("EOM_VISITOR_DATA"))?U["X-Goog-EOM-Visitor-Id"]=d:J?U["X-Goog-Visitor-Id"]= J:g.M9("VISITOR_DATA")&&(U["X-Goog-Visitor-Id"]=g.M9("VISITOR_DATA"));t&&(U["X-Goog-PageId"]=t);(J=p.NO)&&!g7(p)&&(U["X-Goog-AuthUser"]=J);q&&(U.Authorization="Bearer "+q);p.D("enable_datasync_id_header_in_web_vss_pings")&&p.Ta&&p.datasyncId&&(U["X-YouTube-DataSync-Id"]=p.datasyncId);d||U["X-Goog-Visitor-Id"]||q||t||J?S.withCredentials=!0:p.D("html5_send_cpn_with_options")&&VTi.test(k)&&(S.withCredentials=!0)}Object.keys(U).length>0&&(S.headers=U);F&&(S.onFinish=F);return Object.keys(S).length>1? S:null}; Llh=function(k,p,t,J,q,F,d,S){q8()&&t.token&&(k=te(k,{ctt:t.token,cttype:t.L9,mdx_environment:t.mdxEnvironment}));J.D("net_pings_low_priority")&&(p||(p={}),p.priority="low");F||S&&J.D("nwl_skip_retry")?(p==null?p={}:WlS(k,J.D("html5_assert_cpn_with_regex")),d?lc().sendAndWrite(k,p):lc().sendThenWrite(k,p,S)):p?(WlS(k,J.D("html5_assert_cpn_with_regex")),J.D("net_pings_use_fetch")?r0h(k,p):g.mG(k,p)):g.Xs(k,q)}; vqS=function(k){for(var p=[],t=0;t<k;t++){for(var J={},q=Math.floor(Math.random()*9*1E8)+1E8,F="",d=0;d<9;d++)F+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];J.videoDecoderName=F;J.elapsedTimeMs=q;p.push(J)}return p}; cve=function(k){return window.Profiler&&new window.Profiler(k)}; nq6=function(k){/[^a-zA-Z0-9;.!_-]/.test(k)&&(k=k.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return k}; Wm=function(k,p,t){t=t===void 0?cve:t;g.R.call(this);this.sampleInterval=k;this.maxBufferSize=p;this.X=t;this.encoder=new qu;this.T=[];this.N=0;wD_(this)}; wD_=function(k){var p=k.sampleInterval,t=k.maxBufferSize;if(p>0&&t>0&&!k.Y&&k.N<1E7)try{k.C=k.X({sampleInterval:p,maxBufferSize:t});var J;(J=k.C)==null||J.addEventListener("samplebufferfull",function(){return g.Q(function(q){if(q.T==1)return g.n(q,k.stop(),2);wD_(k);g.CS(q)})})}catch(q){k.Y=nq6(q.message)}}; D5=function(k,p){var t,J;return!!((t=window.h5vcc)==null?0:(J=t.settings)==null?0:J.set(k,p))}; Q10=function(){var k,p,t,J=(k=window.h5vcc)==null?void 0:(p=k.settings)==null?void 0:(t=p.getPersistentSettingAsString)==null?void 0:t.call(p,"cpu_usage_tracker_intervals");if(J!=null){var q;k=(q=JSON.parse(J))!=null?q:[];q=k.filter(function(f){return f.type==="total"}).map(function(f){return f.seconds}); p=g.Z(i$j);for(t=p.next();!t.done;t=p.next())t=t.value,q.indexOf(t)===-1&&k.push({type:"total",seconds:t});var F,d;(F=window.h5vcc)==null||(d=F.settings)==null||d.set("cpu_usage_tracker_intervals_enabled",1);var S,U;(S=window.h5vcc)==null||(U=S.settings)==null||U.set("cpu_usage_tracker_intervals",JSON.stringify(k))}}; PlL=function(){var k=window.H5vccPlatformService,p="";if(k&&k.has("dev.cobalt.coat.clientloginfo")&&(k=k.open("dev.cobalt.coat.clientloginfo",function(){}))){var t=k.send(new ArrayBuffer(0)); t&&(p=String.fromCharCode.apply(String,g.m(new Uint8Array(t))));k.close()}return p}; g.vm=function(k,p){g.R.call(this);var t=this;this.provider=k;this.logger=new g.xO("qoe");this.T={};this.sequenceNumber=1;this.S=NaN;this.B1="N";this.L=this.Jd=this.Ut=this.Fd=this.X=0;this.aO=this.qO=this.Z=this.IY="";this.yn=this.RY=NaN;this.UQ=0;this.mW=-1;this.jW=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Jp=this.isEmbargoed=this.j6=this.isOffline=this.isBuffering=!1;this.Kb=[];this.Y8=null;this.pp=this.N=this.B0=this.B=!1;this.Y=-1;this.k8=!1;this.nT=new g.jF(this.Chr,750,this);this.gy= this.adCpn=this.NO=this.contentCpn="";this.adFormat=void 0;this.l1=0;this.kx=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.UF=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.gs=!1;this.nE=NaN;this.Oy=0;this.qW=!1;this.P0=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.ez=!1;this.u3={e8:function(q){t.e8(q)}, Wu0:function(){return t.C}, DC:function(){return t.contentCpn}, oYh:function(){return t.NO}, reportStats:function(){t.reportStats()}, up8:function(){return t.T.cat}, E2:function(q){return t.T[q]}, uyO:function(){return t.P0}}; var J=g.dU(this.provider.ih.experiments,"html5_qoe_proto_mock_length");J&&!sO.length&&(sO=vqS(J));g.z(this,this.nT);try{navigator.getBattery().then(function(q){t.Y8=q})}catch(q){}g.LL(this,0,"vps",["N"]); k.ih.DB()&&(this.Oy=(0,g.V9)(),this.nE=g.b6(function(){var q=(0,g.V9)(),F=q-t.Oy;F>500&&t.yT("vmlock",{diff:F.toFixed()});t.Oy=q},250)); k.Tb.dI()&&p&&(this.P0=p-Math.round(g.VT(k)*1E3));this.provider.videoData.C7&&(this.remoteControlMode=G6h[this.provider.videoData.C7]||0);this.provider.videoData.HR&&(p=jf0(this.provider.videoData.HR),p==null?0:p.length)&&(this.remoteConnectedDevices=p);if(k.ih.DB()||k.D("html5_log_cpu_info"))this.v0=new Clu,g.z(this,this.v0);p=g.dU(k.ih.experiments,"html5_js_self_profiler_sample_interval_ms");k=g.dU(k.ih.experiments,"html5_js_self_profiler_max_samples");p>0&&k>0&&(this.W0=new Wm(p,k),g.z(this,this.W0))}; g.LL=function(k,p,t,J){var q=k.T[t];q||(q=[],k.T[t]=q);q.push(p.toFixed(3)+":"+J.join(":"))}; IoL=function(k,p){var t=k.adCpn||k.provider.videoData.clientPlaybackNonce,J=k.provider.getCurrentTime(t);g.LL(k,p,"cmt",[J.toFixed(3)]);J=k.provider.Zw(t);if(k.C&&J*1E3>k.C.Lv+100&&k.C){var q=k.C;t=q.isAd;J=J*1E3-q.Lv;k.jo=p*1E3-q.xRS-J-q.Yxy;q=(0,g.V9)()-J;p=k.jo;J=k.provider.videoData;var F=J.isAd();if(t||F){F=(t?"ad":"video")+"_to_"+(F?"ad":"video");var d={};J.S&&(d.cttAuthInfo={token:J.S,videoId:J.videoId});d.startTime=q-p;Xu(F,d);g.IF({targetVideoId:J.videoId,targetCpn:J.clientPlaybackNonce}, F);Gg("pbs",q,F)}else q=k.provider.Tb.WN(),q.S!==J.clientPlaybackNonce?(q.X=J.clientPlaybackNonce,q.Y=p):J.n7()||g.wt(new g.hm("CSI timing logged before gllat",{cpn:J.clientPlaybackNonce}));k.yT("gllat",{l:k.jo.toFixed(),prev_ad:+t});delete k.C}}; cm=function(k,p){p=p===void 0?NaN:p;p=p>=0?p:g.VT(k.provider);var t=k.provider.Tb.Wg(),J=t.i_-(k.RY||0);J>0&&g.LL(k,p,"bwm",[J,(t.T5-(k.yn||0)).toFixed(3)]);isNaN(k.RY)&&t.i_&&k.isOffline&&k.e8(!1);k.RY=t.i_;k.yn=t.T5;isNaN(t.bandwidthEstimate)||g.LL(k,p,"bwe",[t.bandwidthEstimate.toFixed(0)]);k.provider.ih.DB()&&Object.keys(t.T).length!==0&&k.yT("bwinfo",t.T);if(k.provider.ih.DB()||k.provider.ih.D("html5_log_meminfo"))J=KoM(),Object.values(J).some(function(F){return F!==void 0})&&k.yT("meminfo", J); if(k.provider.ih.DB()||k.provider.ih.D("html5_log_cpu_info")){var q;(J=(q=k.v0)==null?void 0:Avi(q))&&Object.values(J).some(function(F){return F!=null})&&k.yT("cpuinfo",J)}k.W0&&k.yT("jsprof",k.W0.flush()); k.Y8&&g.LL(k,p,"bat",[k.Y8.level,k.Y8.charging?"1":"0"]);q=k.provider.Tb.getVisibilityState();k.mW!==q&&(g.LL(k,p,"vis",[q]),k.mW=q);IoL(k,p);(q=XD_(k.provider))&&q!==k.UQ&&(g.LL(k,p,"conn",[q]),k.UQ=q);R0_(k,p,t)}; R0_=function(k,p,t){if(!isNaN(t.Nb)){var J=t.Nb;t.Y<J&&(J=t.Y);g.LL(k,p,"bh",[J.toFixed(3)])}}; BM9=function(k,p,t){g.xH(k.provider.ih,g.eJ(k.provider.videoData)).then(function(J){var q=!1;if(p.includes("&dt=")||p.includes("&cotn=")){if(k.provider.ih.D("kevlar_woffle")||k.provider.ih.D("qoe_nwl_downloads"))q=!0}else k.provider.ih.D("qoe_with_networkless")&&(q=!0);var F=k.provider.ih.D("qoe_send_and_write"),d=k.provider.ih;J=s1T(p,d,k.provider.ih.pageId,k.provider.ih.sendVisitorIdHeader?k.provider.videoData.visitorData:void 0,J);d.D("html5_simplify_pings")&&(J=J||{});J?(J.method="POST",J.postBody= t,Llh(p,J,{token:k.provider.videoData.S,L9:k.provider.videoData.Q$,mdxEnvironment:k.provider.videoData.mdxEnvironment},d,void 0,q,F&&k.j6)):q?(q=k.provider.ih.D("networkless_ajax"),d={method:"POST",postBody:t},F&&k.j6?lc().sendAndWrite(p,d):q?g.mG(p,{method:"POST",postBody:t}):lc().sendThenWrite(p,d)):(F=t,F=F===void 0?"":F,ZYi(p,F)||g.Xs(p,void 0,void 0,void 0,F))})}; z0_=function(k){for(var p=0,t=g.Z(Object.keys(k.T)),J=t.next();!J.done;J=t.next())J=J.value,p+=J.length+Number(LO(k.T[J],function(q,F){return q+F.length},0)); p>96E3&&(new g.jF(k.reportStats,0,k)).start()}; e0i=function(k){k.provider.videoData.kx&&nL(k,"prefetch");k.provider.videoData.yn&&k.yT("reload",{r:k.provider.videoData.reloadReason,ct:k.provider.videoData.yn});k.provider.videoData.B0&&nL(k,"monitor");k.provider.videoData.isLivePlayback&&nL(k,"live");u_&&nL(k,"streaming");k.provider.videoData.C7&&k.yT("ctrl",{mode:k.provider.videoData.C7},!0);if(k.provider.videoData.HR){var p=k.provider.videoData.HR.replace(/,/g,"_");k.yT("ytp",{type:p},!0)}k.provider.videoData.XC&&(p=k.provider.videoData.XC.replace(/,/g, "."),k.yT("ytrexp",{ids:p},!0));var t=k.provider.videoData;p=k.provider.ih.D("enable_white_noise")||k.provider.ih.D("enable_webgl_noop");t=g.fy(t)||g.Da(t)||g.s5(t)||g.Ly(t);(p||t)&&(p=(0,g.wJ)())&&(k.T.gpu=[p]);MC(k.provider.videoData)&&g.LL(k,g.VT(k.provider),"dt",["1"]);k.provider.ih.DB()&&(p=(0,g.V9)()-k.provider.ih.fZ,k.yT("playerage",{secs:Math.pow(1.6,Math.round(Math.log(p/1E3)/Math.log(1.6))).toFixed()}));k.N=!0;k.S=g.b6(function(){k.reportStats()},1E4)}; aoM=function(k,p,t){var J=g.VT(k.provider);h09(k,J,p,0,t);cm(k,J);z0_(k)}; h09=function(k,p,t,J,q){var F=k.provider.ih.T.cbrver;k.provider.ih.T.cbr==="Chrome"&&/^96[.]/.test(F)&&t==="net.badstatus"&&/rc\.500/.test(q)&&MTq(k,3);k.provider.ih.D("html5_use_ump")&&/b248180278/.test(q)&&MTq(k,4);F=k.provider.getCurrentTime(k.adCpn||k.provider.videoData.clientPlaybackNonce);J=J===1?"fatal":"";t=[t,J,F.toFixed(3)];J&&(q+=";a6s."+Fy());q&&t.push(gq9(q));g.LL(k,p,"error",t);k.N=!0}; ug6=function(k){k.Y>=0||(k.provider.ih.lm||k.provider.Tb.getVisibilityState()!==3?k.Y=g.VT(k.provider):k.k8=!0)}; loi=function(k,p,t,J){if(t!==k.B1){p<k.X||(k.B1==="PL"?k.playTimeSecs+=p-k.X:k.B1==="B"&&k.isBuffering&&(k.isBuffering=!1,k.rebufferTimeSecs+=p-k.Fd,!k.Jp&&k.rebufferTimeSecs>=10&&k.playTimeSecs<=180&&(k.T.qoealert=["1"],k.Jp=!0)),t!=="B"||k.B1!=="PL"&&k.B1!=="PB"||(k.isBuffering=!0),k.X=p);k.B1==="PL"&&(t==="B"||t==="S")||k.provider.ih.DB()?cm(k,p):(k.gs||t!=="PL"||(k.gs=!0,R0_(k,p,k.provider.Tb.Wg())),IoL(k,p));t==="PL"&&g.Oc(k.nT);var q=[t];t==="S"&&J&&q.push("ss."+J);g.LL(k,p,"vps",q);k.B1=t; k.Fd=p;k.X=p;k.N=!0}}; nL=function(k,p){var t=k.T.cat||[];t.push(p);k.T.cat=t}; QT=function(k,p,t,J,q,F){var d=g.VT(k.provider);t!==1&&t!==3&&t!==5||g.LL(k,d,"vps",[k.B1]);var S=k.T.xvt||[];S.push("t."+d.toFixed(3)+";m."+F.toFixed(3)+";g."+p+";tt."+t+";np.0;c."+J+";d."+q);k.T.xvt=S}; MTq=function(k,p){if(!k.pp){var t=k.T.fcnz;t||(t=[],k.T.fcnz=t);t.push(String(p));k.pp=!0}}; gq9=function(k){/[^a-zA-Z0-9;.!_-]/.test(k)&&(k=k.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return k}; j1w=function(k){this.provider=k;this.Z=!1;this.T=0;this.C=-1;this.tK=NaN;this.N=0;this.segments=[];this.S=this.X=0;this.previouslyEnded=!1;this.L=this.provider.Tb.getVolume();this.B=this.provider.Tb.isMuted()?1:0;this.Y=Pm(this.provider)}; GF=function(k){k.Y.startTime=k.N;k.Y.endTime=k.T;var p=!1;k.segments.length&&g.uJ(k.segments).isEmpty()?(k.segments[k.segments.length-1].previouslyEnded&&(k.Y.previouslyEnded=!0),k.segments[k.segments.length-1]=k.Y,p=!0):k.segments.length&&k.Y.isEmpty()||(k.segments.push(k.Y),p=!0);p?k.Y.endTime===0&&(k.previouslyEnded=!1):k.Y.previouslyEnded&&(k.previouslyEnded=!0);k.X+=k.T-k.N;k.Y=Pm(k.provider);k.Y.previouslyEnded=k.previouslyEnded;k.previouslyEnded=!1;k.N=k.T}; Klw=function(k){O$_(k);k.S=g.b6(function(){k.update()},100); k.tK=g.VT(k.provider);k.Y=Pm(k.provider)}; O$_=function(k){g.yI(k.S);k.S=NaN}; H$e=function(k,p,t){t-=k.tK;return p===k.T&&t>.5}; xji=function(k,p,t,J){this.ih=p;this.aO=t;this.segments=[];this.experimentIds=[];this.W0=this.Fd=this.isFinal=this.delayThresholdMet=this.gs=this.mW=this.autoplay=this.autonav=!1;this.UQ="yt";this.S=[];this.Z=this.L=null;this.sendVisitorIdHeader=this.k8=!1;this.B=this.pageId="";this.X=t==="watchtime";this.N=t==="playback";this.NO=t==="atr";this.lm=t==="engage";this.sendVisitorIdHeader=!1;this.uri=this.NO?"/api/stats/"+t:"//"+p.mE+"/api/stats/"+t;J&&(this.Fd=J.fs,J.rtn&&(this.Z=J.rtn),this.X?(this.playerState= J.state,J.rti>0&&(this.L=J.rti)):(this.Xn=J.mos,this.v3=J.volume,J.at&&(this.adType=J.at)),J.autonav&&(this.autonav=J.autonav),J.inview!=null&&(this.jW=J.inview),J.size&&(this.yn=J.size),J.playerwidth&&(this.playerWidth=J.playerwidth),J.playerheight&&(this.playerHeight=J.playerheight));this.UF=g.ih(p.T);this.B=l_(p.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.B==="all"||this.B==="once")this.qW=g.ih(p.aO);this.Q4=p.v0;this.experimentIds=QW6(p.experiments);this.IY=p.qW;this.UQ=p.gy;this.region= p.region;this.userAge=p.userAge;this.B0=p.gp;this.Kb=VP();this.sendVisitorIdHeader=p.sendVisitorIdHeader;this.P0=p.D("vss_pings_using_networkless")||p.D("kevlar_woffle");this.fZ=p.D("vss_final_ping_send_and_write");this.j6=p.D("vss_use_send_and_write");this.pageId=p.pageId;this.Dw=p.D("vss_playback_use_send_and_write");p.livingRoomAppMode&&(this.livingRoomAppMode=p.livingRoomAppMode);this.Ji=p.C&&p.D("embeds_append_synth_ch_headers");g.V0(p)&&(this.qO=p.P0);g.Fa(g.i$(p))&&this.S.push(1);this.accessToken= g.eJ(k);k.mL[this.aO]?this.C=k.mL[this.aO]:k.mL.playback&&(this.C=k.mL.playback);this.adFormat=k.adFormat;this.adQueryId=k.adQueryId;this.autoplay=zl(k);this.N&&(this.mW=(k.D("html5_enable_log_server_autoplay")||k.D("enable_cleanup_masthead_autoplay_hack_fix"))&&k.x0&&wS(k)==="adunit"?!0:!1);this.autonav=k.isAutonav||this.autonav;this.contentVideoId=XO(k);this.clientPlaybackNonce=k.clientPlaybackNonce;this.gs=k.JB;k.S&&(this.gy=k.S,this.Jp=k.Q$);k.mdxEnvironment&&(this.mdxEnvironment=k.mdxEnvironment); this.T=k.W0;this.ez=k.ez;k.Y&&(this.kx=k.Y.itag,k.C&&k.C.itag!==this.kx&&(this.pp=k.C.itag));k.T&&qB(k.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=wS(k);this.W0=k.Q4?!1:k.lm;this.l1=k.qG;if(p=Tl(k))this.V4=p;this.hB=k.md;this.partnerId=k.partnerId;this.eventId=k.eventId;this.playlistId=k.fO||k.playlistId;this.BF=k.BF;this.C7=k.C7;this.HR=k.HR;this.M8=k.M8;this.subscribed=k.subscribed;this.videoId=k.videoId;this.videoMetadata=k.videoMetadata;this.visitorData=k.visitorData;this.osid=k.osid; this.gh=k.gh;this.referrer=k.referrer;this.BV=k.r8||k.BV;this.v0=k.XB;this.iM=k.iM;this.userGenderAge=k.userGenderAge;this.eG=k.eG;this.embedsRct=k.embedsRct;this.embedsRctn=k.embedsRctn;g.V0(this.ih)&&k.mutedAutoplay&&(k.mutedAutoplayDurationMode===2&&k.limitedPlaybackDurationInSeconds===0&&k.endSeconds===0?this.S.push(7):this.S.push(2));k.isEmbedsShortsMode(new g.YY(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.S.push(3);g.xu(k)&&this.S.push(4);this.RY=k.aR;k.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=k.compositeLiveIngestionOffsetToken)}; kF0=function(k,p){var t=k.sendVisitorIdHeader?k.visitorData:void 0;return g.xH(k.ih,k.accessToken).then(function(J){return s1T(k.uri,k.ih,k.pageId,t,J,p,k.Ji)})}; JXj=function(k,p){return function(){k.ih.D("html5_simplify_pings")?(k.T=k.Oy,k.nT=p(),k.Kb=0,k.send()):kF0(k).then(function(t){var J=pme(k);J.cmt=J.len;J.lact="0";var q=p().toFixed(3);J.rt=Number(q).toString();J=g.hM(k.uri,J);k.ih.D("vss_through_gel_double")&&t2e(J);k.P0?(t==null&&(t={}),k.j6?lc().sendAndWrite(J,t):lc().sendThenWrite(J,t)):t?g.mG(J,t):g.Xs(J)})}}; pme=function(k){var p={ns:k.UQ,el:k.eventLabel,cpn:k.clientPlaybackNonce,ver:2,cmt:k.Y(k.T),fmt:k.kx,fs:k.Fd?"1":"0",rt:k.Y(k.nT),adformat:k.adFormat,content_v:k.contentVideoId,euri:k.Q4,lact:k.Kb,live:k.V4,cl:(731116954).toString(),mos:k.Xn,state:k.playerState,volume:k.v3};k.subscribed&&(p.subscribed="1");Object.assign(p,k.UF);k.B==="all"?Object.assign(p,k.qW):k.B==="once"&&k.N&&Object.assign(p,k.qW);k.autoplay&&(p.autoplay="1");k.mW&&(p.sautoplay="1");k.gs&&(p.dni="1");!k.X&&k.qO&&(p.epm=oAS[k.qO]); k.isFinal&&(p["final"]="1");k.W0&&(p.splay="1");k.ez&&(p.delay=k.ez);k.IY&&(p.hl=k.IY);k.region&&(p.cr=k.region);k.userGenderAge&&(p.uga=k.userGenderAge);k.userAge!==void 0&&k.B0&&(p.uga=k.B0+k.userAge);k.Oy!==void 0&&(p.len=k.Y(k.Oy));!k.X&&k.experimentIds.length>0&&(p.fexp=k.experimentIds.toString());k.Z!==null&&(p.rtn=k.Y(k.Z));k.BV&&(p.feature=k.BV);k.C7&&(p.ctrl=k.C7);k.HR&&(p.ytr=k.HR);k.pp&&(p.afmt=k.pp);k.offlineDownloadUserChoice&&(p.ODUC=k.offlineDownloadUserChoice);k.nE&&(p.lio=k.Y(k.nE)); k.X?(p.idpj=k.l1,p.ldpj=k.hB,k.delayThresholdMet&&(p.dtm="1"),k.L!=null&&(p.rti=k.Y(k.L)),k.eG&&(p.ald=k.eG),k.compositeLiveIngestionOffsetToken&&(p.clio=k.compositeLiveIngestionOffsetToken)):k.adType!==void 0&&(p.at=k.adType);k.yn&&(k.N||k.X)&&(p.size=k.yn);k.N&&k.S.length&&(p.pbstyle=k.S.join(","));k.jW!=null&&(k.N||k.X)&&(p.inview=k.Y(k.jW));k.X&&(p.volume=Iy(k,g.DR(k.segments,function(J){return J.volume})),p.st=Iy(k,g.DR(k.segments,function(J){return J.startTime})),p.et=Iy(k,g.DR(k.segments,function(J){return J.endTime})), cC(k.segments,function(J){return J.playbackRate!==1})&&(p.rate=Iy(k,g.DR(k.segments,function(J){return J.playbackRate}))),cC(k.segments,function(J){return J.T!=="-"})&&(p.als=g.DR(k.segments,function(J){return J.T}).join(",")),cC(k.segments,function(J){return J.previouslyEnded})&&(p.pe=g.DR(k.segments,function(J){return""+ +J.previouslyEnded}).join(","))); p.muted=Iy(k,g.DR(k.segments,function(J){return J.muted?1:0})); cC(k.segments,function(J){return J.visibilityState!==0})&&(p.vis=Iy(k,g.DR(k.segments,function(J){return J.visibilityState}))); cC(k.segments,function(J){return J.connectionType!==0})&&(p.conn=Iy(k,g.DR(k.segments,function(J){return J.connectionType}))); cC(k.segments,function(J){return J.Y!==0})&&(p.blo=Iy(k,g.DR(k.segments,function(J){return J.Y}))); cC(k.segments,function(J){return!!J.N})&&(p.blo=g.DR(k.segments,function(J){return J.N}).join(",")); cC(k.segments,function(J){return!!J.compositeLiveStatusToken})&&(p.cbs=g.DR(k.segments,function(J){return J.compositeLiveStatusToken}).join(",")); cC(k.segments,function(J){return J.C!=="-"})&&(p.cc=g.DR(k.segments,function(J){return J.C}).join(",")); cC(k.segments,function(J){return J.clipId!=="-"})&&(p.clipid=g.DR(k.segments,function(J){return J.clipId}).join(",")); if(cC(k.segments,function(J){return!!J.audioId})){var t="au"; k.N&&(t="au_d");p[t]=g.DR(k.segments,function(J){return J.audioId}).join(",")}q8()&&k.gy&&(p.ctt=k.gy,p.cttype=k.Jp,p.mdx_environment=k.mdxEnvironment); k.lm&&(p.etype=k.Y8!==void 0?k.Y8:0);k.v0&&(p.uoo=k.v0);k.livingRoomAppMode&&k.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(p.clram=qO_[k.livingRoomAppMode]||k.livingRoomAppMode);k.C?FQL(k,p):(p.docid=k.videoId,p.referrer=k.referrer,p.ei=k.eventId,p.of=k.gh,p.osid=k.osid,p.vm=k.videoMetadata,k.adQueryId&&(p.aqi=k.adQueryId),k.autonav&&(p.autonav="1"),k.playlistId&&(p.list=k.playlistId),k.M8&&(p.ssrt="1"),k.iM&&(p.upt=k.iM));k.N&&(k.embedsRct&&(p.rct=k.embedsRct),k.embedsRctn&&(p.rctn= k.embedsRctn),k.compositeLiveIngestionOffsetToken&&(p.clio=k.compositeLiveIngestionOffsetToken));k.RY&&(p.host_cpn=k.RY);return p}; FQL=function(k,p){if(p&&k.C){var t=new Set(["q","feature","mos"]),J=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),q=new Set(["aqi","autonav","list","ssrt","upt"]);k.C.ns==="3pp"&&(p.ns="3pp");for(var F=g.Z(Object.keys(k.C)),d=F.next();!d.done;d=F.next())d=d.value,J.has(d)||t.has(d)||q.has(d)&&!k.C[d]||(p[d]=k.C[d])}}; Iy=function(k,p){return g.DR(p,k.Y).join(",")}; t2e=function(k){k.indexOf("watchtime")!==-1&&g.qv("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:k}})}; $b9=function(k,p){k.attestationResponse&&kF0(k).then(function(t){t=t||{};t.method="POST";t.postParams={atr:k.attestationResponse};k.P0?k.j6?lc().sendAndWrite(p,t):lc().sendThenWrite(p,t):g.mG(p,t)})}; X9=function(k){g.R.call(this);this.provider=k;this.S="paused";this.X=NaN;this.Z=[10,10,10,40];this.L=this.B=0;this.Y8=this.P0=this.NO=this.gy=this.N=!1;this.Y=this.C=NaN;this.T=new j1w(k)}; Ubj=function(k){if(!k.N){k.provider.videoData.cM===16623&&g.wt(Error("Playback for EmbedPage"));var p=Ry(k,"playback");a:{if(k.provider.ih.D("web_player_use_server_vss_schedule")){var t,J=(t=k.provider.videoData.getPlayerResponse())==null?void 0:t.playbackTracking,q=J==null?void 0:J.videostatsScheduledFlushWalltimeSeconds;J=J==null?void 0:J.videostatsDefaultFlushIntervalSeconds;if(q&&q.length>0&&J){t=[];var F=k.provider.videoData.qG,d=k.provider.videoData.md,S=-F;q=g.Z(q);for(var U=q.next();!U.done;U= q.next())U=U.value,t.push(U-S),S=U;t.push(J+d-F);t.push(J);k.Z=t;break a}}k.Z=[10+k.provider.videoData.qG,10,10,40+k.provider.videoData.md-k.provider.videoData.qG,40]}Klw(k.T);p.Z=Bm(k);k.Y>0&&(p.T-=k.Y);p.send();k.provider.videoData.nX&&(p=k.provider.ih,J=k.provider.videoData,t={html5:"1",video_id:J.videoId,cpn:J.clientPlaybackNonce,ei:J.eventId,ptk:J.nX,oid:J.Os,ptchn:J.Mm,pltype:J.x7,content_v:XO(J)},J.JR&&Object.assign(t,{m:J.JR}),p=g.hM(p.NA+"ptracking",t),dbj(k,p));k.provider.videoData.ez|| (EAi(k),SOh(k),k.nK());k.N=!0;k=k.T;k.T=k.provider.Tb.Zw();k.tK=g.VT(k.provider);!(k.N===0&&k.T<5)&&k.T-k.N>2&&(k.N=k.T);k.Z=!0}}; Bm=function(k,p){p=p===void 0?NaN:p;var t=g.VT(k.provider);p=isNaN(p)?t:p;p=Math.ceil(p);var J=k.Z[k.B];k.B+1<k.Z.length&&k.B++;var q=p+J;k.X=g.fY(function(){if(!k.MO()){k.X=NaN;var F=f5q(k),d=bLj(k,F);d.L=q;var S=k.L>1E3;!(F.length>1)&&F[0].isEmpty()||S||(d.Z=Bm(k,q));d.send();k.L++}},(q-t)*1E3); return k.C=q}; zF=function(k){g.N8(k.X);k.X=NaN}; f5q=function(k){k.T.update();k=k.T;k.segments.length&&k.T===k.N||GF(k);var p=k.segments;k.segments=[];return p}; Ry=function(k,p){var t=NJw(k.provider);Object.assign(t,{state:k.S});p=new xji(k.provider.videoData,k.provider.ih,p,t);p.T=k.provider.Tb.Zw();t=k.provider.videoData.clientPlaybackNonce;p.T=k.provider.Tb.z9(t);k.provider.videoData.isLivePlayback||(p.Oy=k.provider.Tb.getDuration(t));k.provider.videoData.T&&(t=k.provider.videoData.T.Zl(p.T))&&(p.nE=t-p.T);p.nT=g.VT(k.provider);p.segments=[Pm(k.provider)];return p}; bLj=function(k,p){var t=Ry(k,"watchtime");yX6(k)&&(t.delayThresholdMet=!0,k.NO=!0);if(k.Y>0){for(var J=g.Z(p),q=J.next();!q.done;q=J.next())q=q.value,q.startTime-=k.Y,q.endTime-=k.Y;t.T-=k.Y}else t.T=k.T.TE();t.segments=p;return t}; e2=function(k,p){var t=YOq(k,!isNaN(k.C));p&&(k.C=NaN);return t}; YOq=function(k,p){var t=bLj(k,f5q(k));!isNaN(k.C)&&p&&(t.L=k.C);return t}; yX6=function(k){var p;if(p=k.provider.videoData.isLoaded()&&k.provider.videoData.ez&&k.N&&!k.NO)p=k.T,p=p.X+p.provider.Tb.Zw()-p.N>=k.provider.videoData.ez;return!!p}; EAi=function(k){k.provider.videoData.youtubeRemarketingUrl&&!k.P0&&(dbj(k,k.provider.videoData.youtubeRemarketingUrl),k.P0=!0)}; SOh=function(k){k.provider.videoData.googleRemarketingUrl&&!k.Y8&&(dbj(k,k.provider.videoData.googleRemarketingUrl),k.Y8=!0)}; TJL=function(k){if(!k.MO()&&k.N){k.S="paused";var p=e2(k);p.isFinal=!0;p.send();k.dispose()}}; rXi=function(k,p){if(!k.MO())if(g.u(p.state,2)||g.u(p.state,512)){if(k.S="paused",g.Uy(p,2)||g.Uy(p,512))g.Uy(p,2)&&(k.T.previouslyEnded=!0),k.N&&(zF(k),e2(k).send(),k.C=NaN)}else if(g.u(p.state,8)){k.S="playing";var t=k.N&&isNaN(k.X)?Bm(k):NaN;!isNaN(t)&&(SV(p,64)<0||SV(p,512)<0)&&(k=YOq(k,!1),k.Z=t,k.send())}else k.S="paused"}; ZLT=function(k,p,t){if(!k.gy){t||(t=Ry(k,"atr"));t.attestationResponse=p;try{t.send()}catch(J){if(J.message!=="Unknown Error")throw J;}k.gy=!0}}; dbj=function(k,p){var t=k.provider.ih;g.xH(k.provider.ih,g.eJ(k.provider.videoData)).then(function(J){var q=k.provider.ih.pageId,F=k.provider.ih.sendVisitorIdHeader?k.provider.videoData.visitorData:void 0,d=k.provider.ih.D("vss_pings_using_networkless")||k.provider.ih.D("kevlar_woffle"),S=k.provider.ih.D("allow_skip_networkless");J=s1T(p,t,q,F,J);Llh(p,J,{token:k.provider.videoData.S,L9:k.provider.videoData.Q$,mdxEnvironment:k.provider.videoData.mdxEnvironment},t,void 0,d&&!S,!1,!0)})}; Cn_=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.Y=0;this.compositeLiveStatusToken=this.N=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; hX=function(k,p,t){this.videoData=k;this.ih=p;this.Tb=t;this.T=void 0}; g.VT=function(k){return AXq(k)()}; AXq=function(k){if(!k.T){var p=g.xh(function(J){var q=(0,g.V9)();J&&q<=631152E6&&(k.Tb.yT("ytnerror",{issue:28799967,value:""+q}),q=(new Date).getTime()+2);return q},k.ih.D("html5_validate_yt_now")),t=p(); k.T=function(){return Math.round(p()-t)/1E3}; k.Tb.dF()}return k.T}; NJw=function(k){var p=k.Tb.JN()||{};p.fs=k.Tb.fA();p.volume=k.Tb.getVolume();p.muted=k.Tb.isMuted()?1:0;p.mos=p.muted;p.clipid=k.Tb.Y1();var t;p.playerheight=((t=k.Tb.getPlayerSize())==null?void 0:t.height)||0;var J;p.playerwidth=((J=k.Tb.getPlayerSize())==null?void 0:J.width)||0;k=k.videoData;t={};k.Y&&(t.fmt=k.Y.itag,k.C&&(k.mW?k.C.itag!==k.Y.itag:k.C.itag!=k.Y.itag)&&(t.afmt=k.C.itag));t.ei=k.eventId;t.list=k.playlistId;t.cpn=k.clientPlaybackNonce;k.videoId&&(t.v=k.videoId);k.yr&&(t.infringe=1); (k.Q4?0:k.lm)&&(t.splay=1);(J=Tl(k))&&(t.live=J);k.x0&&(t.sautoplay=1);k.VA&&(t.autoplay=1);k.BF&&(t.sdetail=k.BF);k.partnerId&&(t.partnerid=k.partnerId);k.osid&&(t.osid=k.osid);k.Lk&&(t.cc=g.emj(k.Lk));return Object.assign(p,t)}; XD_=function(k){var p=CSi();if(p)return mb6[p]||mb6.other;if(g.mq(k.ih)){k=navigator.userAgent;if(/[Ww]ireless[)]/.test(k))return 3;if(/[Ww]ired[)]/.test(k))return 30}return 0}; Pm=function(k){var p=new Cn_,t;p.C=((t=NJw(k).cc)==null?void 0:t.toString())||"-";p.playbackRate=k.Tb.getPlaybackRate();t=k.Tb.getVisibilityState();t!==0&&(p.visibilityState=t);k.ih.Jp&&(p.Y=1);p.N=k.videoData.M5;p.compositeLiveStatusToken=k.videoData.compositeLiveStatusToken;t=k.Tb.getAudioTrack();t.ws&&t.ws.id&&t.ws.id!=="und"&&(p.audioId=t.ws.id);p.connectionType=XD_(k);p.volume=k.Tb.getVolume();p.muted=k.Tb.isMuted();p.clipId=k.Tb.Y1()||"-";p.T=k.videoData.Wu||"-";return p}; g.ay=function(k,p){g.R.call(this);var t=this;this.provider=k;this.C=!1;this.N=new Map;this.B1=new g.Kr;this.u3={zzp:function(){return t.qoe}, sWb:function(){return t.T}, lXy:function(){return t.Y}}; this.provider.videoData.IG()&&!this.provider.videoData.q_&&(this.T=new X9(this.provider),this.T.Y=this.provider.videoData.l1/1E3,g.z(this,this.T),this.qoe=new g.vm(this.provider,p),g.z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.ax=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.ax,this.T));if(k.ih.playerCanaryState==="canary"||k.ih.playerCanaryState==="holdback")this.Y=new mQ(this.provider),g.z(this,this.Y)}; V2q=function(k){return!!k.T&&!!k.qoe}; Mb=function(k){k.Y&&YFM(k.Y);k.qoe&&ug6(k.qoe)}; WQu=function(k){if(k.qoe){k=k.qoe;for(var p=k.provider.videoData,t=k.provider.ih,J=g.Z(t.SF),q=J.next();!q.done;q=J.next())nL(k,q.value);if(k.provider.D("html5_enable_qoe_cat_list"))for(J=g.Z(p.hK),q=J.next();!q.done;q=J.next())nL(k,q.value);else p.SF&&nL(k,k.provider.videoData.SF);p.m2()&&(J=p.T,dS(p)&&nL(k,"manifestless"),J&&Ym(J)&&nL(k,"live-segment-"+Ym(J).toFixed(1)));tx(p)?nL(k,"sabr"):k.Q9(U5(p));if(hx(p)||p.u1())p.u1()&&nL(k,"ssa"),nL(k,"lifa");p.gatewayExperimentGroup&&(J=p.gatewayExperimentGroup, J==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?J="spkadtrt":J==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(J="spkadctrl"),nL(k,J));t.gy!=="yt"&&(k.T.len=[p.lengthSeconds.toFixed(2)]);p.cotn&&!MC(p)&&k.e8(!0);t.DB()&&(p=PlL())&&k.yT("cblt",{m:p});if(t.D("html5_log_screen_diagonal")){t=k.yT;var F;p=((F=window.H5vccScreen)==null?0:F.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;t.call(k,"cbltdiag",{v:p})}}}; Dbi=function(k){if(k.provider.Tb.dI()){if(k.C)return;k.C=!0}k.T&&Ubj(k.T);if(k.Y){k=k.Y;var p=g.VT(k.provider);k.T<0&&(k.T=p,k.delay.start());k.Y=p;k.C=p}}; syT=function(k,p){k.T&&(k=k.T,p===58?k.T.update():k.N&&(zF(k),e2(k).send(),k.C=NaN))}; LQh=function(k,p){if(g.Uy(p,1024)||g.Uy(p,512)||g.Uy(p,4)){if(k.Y){var t=k.Y;t.Y>=0||(t.T=-1,t.delay.stop())}k.qoe&&(t=k.qoe,t.B||(t.Y=-1))}if(k.provider.videoData.enableServerStitchedDai&&k.ax){var J;(J=k.N.get(k.ax))==null||rXi(J,p)}else k.T&&rXi(k.T,p);if(k.qoe){J=k.qoe;t=p.state;var q=g.VT(J.provider),F=J.getPlayerState(t);loi(J,q,F,t.seekSource||void 0);F=t.JD;g.u(t,128)&&F&&(F.Zh=F.Zh||"",h09(J,q,F.errorCode,F.rq,F.Zh));(g.u(t,2)||g.u(t,128))&&J.reportStats(q);t.isPlaying()&&!J.B&&(J.Y>=0&& (J.T.user_intent=[J.Y.toString()]),J.B=!0);z0_(J)}k.Y&&(J=k.Y,TMi(J),J.playerState=p.state,J.Y>=0&&g.Uy(p,16)&&J.seekCount++,p.state.isError()&&J.send());k.provider.Tb.dI()&&(k.B1=p.state)}; vAi=function(k){k.Y&&k.Y.send();if(k.qoe){var p=k.qoe;if(p.N){p.B1==="PL"&&(p.B1="N");var t=g.VT(p.provider);g.LL(p,t,"vps",[p.B1]);p.B||(p.Y>=0&&(p.T.user_intent=[p.Y.toString()]),p.B=!0);p.provider.ih.DB()&&p.yT("finalized",{});p.j6=!0;p.reportStats(t)}}if(k.provider.videoData.enableServerStitchedDai)for(p=g.Z(k.N.values()),t=p.next();!t.done;t=p.next())TJL(t.value);else k.T&&TJL(k.T);k.dispose()}; cXi=function(k,p){k.T&&ZLT(k.T,p)}; nAq=function(k){if(!k.T)return null;var p=Ry(k.T,"atr");return function(t){k.T&&ZLT(k.T,t,p)}}; wmT=function(k,p,t,J){t.adFormat=t.UQ;var q=p.Tb;p=new X9(new hX(t,p.ih,{getDuration:function(){return t.lengthSeconds}, getCurrentTime:function(){return q.getCurrentTime()}, Zw:function(){return q.Zw()}, z9:function(){return q.z9()}, dI:function(){return q.dI()}, Wg:function(){return q.Wg()}, getPlayerSize:function(){return q.getPlayerSize()}, getAudioTrack:function(){return t.getAudioTrack()}, getPlaybackRate:function(){return q.getPlaybackRate()}, vg:function(){return q.vg()}, getVisibilityState:function(){return q.getVisibilityState()}, WN:function(){return q.WN()}, JN:function(){return q.JN()}, getVolume:function(){return q.getVolume()}, isMuted:function(){return q.isMuted()}, fA:function(){return q.fA()}, Y1:function(){return q.Y1()}, getProximaLatencyPreference:function(){return q.getProximaLatencyPreference()}, dF:function(){q.dF()}, yT:function(F,d){q.yT(F,d)}, t4:function(){return q.t4()}})); p.Y=J;g.z(k,p);return p}; iLq=function(){this.Nb=0;this.N=this.T5=this.i_=this.Y=NaN;this.T={};this.bandwidthEstimate=NaN}; gJ=function(k,p,t){g.R.call(this);var J=this;this.ih=k;this.Tb=p;this.Y=t;this.T=new Map;this.ax="";this.u3={zS:function(){return Array.from(J.T.keys())}}}; QyM=function(k,p){k.T.has(p)&&(vAi(k.T.get(p)),k.T.delete(p))}; Pnu=function(){this.T=g.kt;this.array=[]}; I5h=function(k,p,t){var J=[];for(p=GFi(k,p);p<k.array.length;++p){var q=k.array[p];(q.end<=t||q.contains(t))&&J.push(q);if(q.start>t)break}return J}; XmS=function(k,p){var t=[];k=g.Z(k.array);for(var J=k.next();!J.done&&!(J=J.value,J.contains(p)&&t.push(J),J.start>p);J=k.next());return t}; Rsq=function(k){return k.array.slice(GFi(k,0x7ffffffffffff),k.array.length)}; GFi=function(k,p){k=E$(k.array,function(t){return p-t.start||1}); return k<0?-(k+1):k}; BJS=function(k,p){var t=NaN;k=g.Z(k.array);for(var J=k.next();!J.done;J=k.next())if(J=J.value,J.contains(p)&&(isNaN(t)||J.end<t)&&(t=J.end),J.start>p&&(isNaN(t)||J.start<t)){t=J.start;break}return t}; zsu=function(k,p){k.array=k.array.filter(function(t){return!p.has(t)})}; g.un=function(k,p,t,J,q){g.R.call(this);this.L=k;this.NO=p;this.S=t;this.gy=J;this.C=q;this.N=NaN;this.Z=this.B=this.started=!1;this.Y=[];this.Y8=new g.jF(this.sync,250,this);g.z(this,this.Y8);this.X=new g.jF(this.sync,0,this);g.z(this,this.X);this.T=new Pnu}; esi=function(k){k.started=!0;k.sync()}; hs0=function(k,p){k.started&&(k.sync(),g.u(p.oldState,16)&&(p=BJS(k.T,Math.max(k.N-2E3,0)),!isNaN(p)&&p<0x7ffffffffffff&&k.X.start()))}; a5T=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;var J=t[1];t[0]===1?k.gy(g.pT(J.namespace),J):k.gy(g.tA(J.namespace),J)}}; M2j=function(k){this.ih=k;this.N=this.Y=this.mediaTime=NaN;this.C=this.T=!1;this.X=.001;g.mq(k)&&(this.X=.01)}; ln=function(k,p){return p>k.mediaTime+k.X&&p<k.mediaTime+5}; zRh=function(k,p,t,J,q){if(J=J>1)k.C=!0;if((q===void 0?0:q)||isNaN(k.Y))k.Y=p;if(k.T)p!==k.mediaTime&&(k.T=!1);else if(p>0&&k.mediaTime===p){q=1500;if(k.ih.D("html5_buffer_underrun_transition_fix")){q=g.dU(k.ih.experiments,"html5_min_playback_advance_for_steady_state_secs");var F=g.dU(k.ih.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");q=q>0&&F>0&&Math.abs(p-k.Y)<q?F:1500}return t-k.N>(J||!k.C?q:400)}k.mediaTime=p;k.N=t;return!1}; gA_=function(k,p){this.videoData=k;this.T=p}; u9M=function(k,p,t){return p.Lx(t).then(function(){return cw(new gA_(p,p.N))},function(J){J instanceof Error&&g.wt(J); var q=Dl('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),F=LC('audio/mp4; codecs="mp4a.40.2"'),d=q||F,S=p.isLivePlayback&&!g.HL(k.X,!0);J="fmt.noneavailable";S?J="html5.unsupportedlive":d||(J="html5.missingapi");d=S||!d?2:1;q={buildRej:"1",a:p.HL(),d:!!p.nT,drm:p.CH(),f18:p.vQ.indexOf("itag=18")>=0,c18:q};p.T&&(p.CH()?(q.f142=!!p.T.T["142"],q.f149=!!p.T.T["149"],q.f279=!!p.T.T["279"]):(q.f133=!!p.T.T["133"],q.f140=!!p.T.T["140"],q.f242=!!p.T.T["242"]),q.cAAC=F,q.cAVC=LC('video/mp4; codecs="avc1.42001E"'), q.cVP9=LC('video/webm; codecs="vp9"'));p.X&&(q.drmsys=p.X.keySystem,F=0,p.X.T&&(F=Object.keys(p.X.T).length),q.drmst=F);return new AD(J,q,d)})}; j2=function(k){this.data=window.Float32Array?new Float32Array(k):Array(k);this.Y=this.T=k-1}; l5M=function(k){return k.data[k.T]||0}; jyL=function(k){this.X=k;this.N=this.Y=0;this.C=new j2(50)}; KL=function(k,p,t){g.o$.call(this);this.videoData=k;this.experiments=p;this.S=t;this.Y=[];this.C=0;this.N=!0;this.X=!1;this.Z=0;t=new OLS;k.latencyClass==="ULTRALOW"&&(t.C=!1);k.B0?t.Y=3:g.VR(k)&&(t.Y=2);k.latencyClass==="NORMAL"&&(t.S=!0);var J=g.dU(p,"html5_liveness_drift_proxima_override");if(U5(k)!==0&&J){t.T=J;var q;((q=k.T)==null?0:e40(q))&&t.T--}tx(k)&&p.Gb("html5_sabr_parse_live_metadata_playback_boundaries")&&(t.L=!0);if(g.RY("trident/")||g.RY("edge/"))q=g.dU(p,"html5_platform_minimum_readahead_seconds")|| 3,t.N=Math.max(t.N,q);g.dU(p,"html5_minimum_readahead_seconds")&&(t.N=g.dU(p,"html5_minimum_readahead_seconds"));g.dU(p,"html5_maximum_readahead_seconds")&&(t.B=g.dU(p,"html5_maximum_readahead_seconds"));p.Gb("html5_force_adaptive_readahead")&&(t.C=!0);if(q=g.dU(p,"html5_liveness_drift_chunk_override"))t.T=q;E5(k)&&(t.T=(t.T+1)/5,k.latencyClass==="LOW"&&(t.T*=2));if(k.latencyClass==="ULTRALOW"||k.latencyClass==="LOW")t.X=g.dU(p,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,t.Z=g.dU(p, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=t;this.B=this.policy.Y!==1;this.T=OO(this,KQh(this,isNaN(k.liveChunkReadahead)?3:k.liveChunkReadahead,k))}; HL0=function(k,p){if(p)return p=k.videoData,p=KQh(k,isNaN(p.liveChunkReadahead)?3:p.liveChunkReadahead,p),OO(k,p);if(k.Y.length){if(Math.min.apply(null,k.Y)>1)return OO(k,k.T-1);if(k.policy.C)return OO(k,k.T+1)}return k.T}; xbi=function(k,p){if(!k.Y.length)return!1;var t=k.T;k.T=HL0(k,p===void 0?!1:p);if(p=t!==k.T)k.Y=[],k.C=0;return p}; Hm=function(k,p){return p>=k.nI()-kr9(k)}; pui=function(k,p,t){p=Hm(k,p);t||p?p&&(k.N=!0):k.N=!1;k.B=k.policy.Y===2||k.policy.Y===3&&k.N}; te9=function(k,p){p=Hm(k,p);k.X!==p&&k.publish("livestatusshift",p);k.X=p}; kr9=function(k){var p=k.policy.T;k.X||(p=Math.max(p-1,0));return p*xA(k)}; KQh=function(k,p,t){t.B0&&p--;E5(t)&&(p=1);if(U5(t)!==0&&(k=g.dU(k.experiments,"html5_live_chunk_readahead_proxima_override"))){p=k;var J;((J=t.T)==null?0:e40(J))&&p++}return p}; xA=function(k){return k.videoData.T?Ym(k.videoData.T)||5:5}; OO=function(k,p){p=Math.max(Math.max(1,Math.ceil(k.policy.N/xA(k))),p);return Math.min(Math.min(8,Math.floor(k.policy.B/xA(k))),p)}; OLS=function(){this.N=0;this.B=Infinity;this.C=!0;this.T=2;this.Y=1;this.S=!1;this.Z=10;this.L=!1;this.X=1}; tl=function(k){g.R.call(this);this.Tb=k;this.T=0;this.Y=null;this.S=this.C=0;this.N={};this.ih=this.Tb.G();this.X=new g.jF(this.SV,1E3,this);this.pp=new kd({delayMs:g.dU(this.ih.experiments,"html5_seek_timeout_delay_ms")});this.j6=new kd({delayMs:g.dU(this.ih.experiments,"html5_long_rebuffer_threshold_ms")});this.Jp=pt(this,"html5_seek_set_cmt");this.IY=pt(this,"html5_seek_jiggle_cmt");this.k8=pt(this,"html5_seek_new_elem");this.nE=pt(this,"html5_unreported_seek_reseek");this.NO=pt(this,"html5_long_rebuffer_jiggle_cmt"); this.Oy=pt(this,"html5_long_rebuffer_ssap_clip_not_match");this.P0=new kd({delayMs:2E4});this.W0=pt(this,"html5_seek_new_elem_shorts");this.B0=pt(this,"html5_seek_new_media_source_shorts_reuse");this.v0=pt(this,"html5_seek_new_media_element_shorts_reuse");this.RY=pt(this,"html5_reseek_after_time_jump");this.B=pt(this,"html5_gapless_handoff_close_end_long_rebuffer");this.gy=pt(this,"html5_gapless_slow_seek");this.L=pt(this,"html5_gapless_slice_append_stuck");this.Y8=pt(this,"html5_gapless_slow_start"); this.Z=pt(this,"html5_ads_preroll_lock_timeout");this.ez=pt(this,"html5_ssap_ad_longrebuffer_new_element");this.gs=new kd({delayMs:g.dU(this.ih.experiments,"html5_skip_slow_ad_delay_ms")||5E3,dE:!this.ih.D("html5_report_slow_ads_as_error")});this.qW=new kd({delayMs:g.dU(this.ih.experiments,"html5_skip_slow_ad_delay_ms")||5E3,dE:!this.ih.D("html5_skip_slow_buffering_ad")});this.Fd=new kd({delayMs:g.dU(this.ih.experiments,"html5_slow_start_timeout_delay_ms")});this.qO=pt(this,"html5_slow_start_no_media_source"); g.z(this,this.X)}; pt=function(k,p){var t=g.dU(k.ih.experiments,p+"_delay_ms");k=k.ih.D(p+"_cfl");return new kd({delayMs:t,dE:k})}; Jli=function(k,p){k.T=p}; Jl=function(k,p,t,J,q,F,d,S){p.test(t)?(k.Vn(q,p,d),p.dE||F()):(p.kV&&p.Y&&!p.C?(t=(0,g.V9)(),J?p.T||(p.T=t):p.T=0,F=!J&&t-p.Y>p.kV,t=p.T&&t-p.T>p.e7||F?p.C=!0:!1):t=!1,t&&(S=Object.assign({},k.pE(p),S),S.wn=d,S.we=q,S.wsuc=J,k.Tb.yT("workaroundReport",S),J&&(p.reset(),k.N[q]=!1)))}; kd=function(k){var p=k===void 0?{}:k;k=p.delayMs===void 0?0:p.delayMs;var t=p.e7===void 0?1E3:p.e7;var J=p.kV===void 0?3E4:p.kV;p=p.dE===void 0?!1:p.dE;this.T=this.Y=this.N=this.startTimestamp=0;this.C=!1;this.X=Math.ceil(k/1E3);this.e7=t;this.kV=J;this.dE=p}; $Fh=function(k){g.R.call(this);var p=this;this.Tb=k;this.S=this.T=this.Ey=this.mediaElement=this.playbackData=null;this.C=0;this.X=this.gy=this.N=null;this.Y8=!1;this.gs=0;this.B=!1;this.timestampOffset=0;this.Z=!0;this.IY=0;this.k8=this.Fd=!1;this.L=0;this.B0=!1;this.NO=0;this.ih=this.Tb.G();this.videoData=this.Tb.getVideoData();this.policy=new od9;this.P0=new tl(this.Tb);this.pp=this.RY=this.qO=this.Y=NaN;this.Oy=new g.jF(function(){qg0(p,!1)},2E3); this.qW=new g.jF(function(){oz(p)}); this.W0=new g.jF(function(){p.Y8=!0;FW9(p,{})}); this.Jp=NaN;this.j6=new g.jF(function(){var t=p.ih.Q4;t.T+=1E4/36E5;t.T-t.N>1/6&&(kzw(t),t.N=t.T);p.j6.start()},1E4); g.z(this,this.P0);g.z(this,this.Oy);g.z(this,this.W0);g.z(this,this.qW);g.z(this,this.j6)}; Sgh=function(k,p){k.playbackData=p;k.videoData.isLivePlayback&&(k.S=new jyL(function(){a:{if(k.playbackData&&k.playbackData.T.T){if(dS(k.videoData)&&k.Ey){var t=k.Ey.XY.L$()||0;break a}if(k.videoData.T){t=k.videoData.T.P0;break a}}t=0}return t}),k.T=new KL(k.videoData,k.ih.experiments,function(){return k.jV(!0)})); qF(k.Tb)?(p=dFi(k),p.Gn?(k.D("html5_sabr_enable_utc_seek_requests")&&tx(k.videoData)&&k.tb(p.Gn,p.startSeconds),k.C=p.startSeconds):p.startSeconds>0&&k.seekTo(p.startSeconds,{XR:"seektimeline_startPlayback",seekSource:15}),k.Z=!1):Edw(k)||(k.C=k.C||(g.hF(k.videoData)?0:k.videoData.startSeconds)||0)}; fh9=function(k,p){(k.Ey=p)?UFe(k,!0):FM(k)}; btj=function(k,p){g.Oc(k.P0.X);k.D("html5_exponential_memory_for_sticky")&&(p.state.isPlaying()?g.Oc(k.j6):k.j6.stop());if(k.mediaElement)if(p.oldState.state===8&&oW(p.state)&&p.state.isBuffering()){p=k.mediaElement.getCurrentTime();var t=k.mediaElement.p$();var J=k.D("manifestless_post_live_ufph")||k.D("manifestless_post_live")?tN(t,Math.max(p-3.5,0)):tN(t,p-3.5);J>=0&&p>t.end(J)-1.1&&J+1<t.length&&t.start(J+1)-t.end(J)<11&&(J=t.start(J+1)+.2,Math.abs(k.Jp-J)<.2||(k.Tb.yT("seekover",{b:pr(t,"_"), cmt:p}),k.Jp=J,k.seekTo(J,{ij:!0,XR:"seektimeline_postLiveDisc"})))}else((t=p.state)==null?0:t.state===8)&&!k.k8&&(k.videoData.limitedPlaybackDurationInSeconds>0?($d(k.Tb,k.getCurrentTime()+k.videoData.limitedPlaybackDurationInSeconds),k.k8=!0):k.videoData.isLivePlayback&&k.videoData.endSeconds>0&&($d(k.Tb,k.getCurrentTime()+k.videoData.endSeconds),k.k8=!0))}; ylw=function(k,p){var t=k.getCurrentTime(),J=k.isAtLiveHead(t);if(k.S&&J){var q=k.S;if(q.T&&!(t>=q.Y&&t<q.N)){var F=q.T.cN(t);F!==-1&&(q.Y=q.T.getStartTime(F),q.N=q.Y+q.T.getDuration(F),F=(0,g.V9)()/1E3-q.T.Zl(F),F-=q.X(),q.C.add(F))}}k.T&&(J&&(q=k.T,F=NFM(k),q.C++,q.C<3||Date.now()-q.Z<3E3||(q.Z=Date.now(),q.Y.push(F),q.Y.length>50&&q.Y.shift())),q=k.T,pui(q,t,p===void 0?!0:p),te9(q,t),p&&qg0(k,!0));J!==k.Fd&&(p=k.getCurrentTime()-k.pp<=500,t=k.gs>=1E3,p||t||(p=k.Tb.ZB(),p.qoe&&(p=p.qoe,t=g.VT(p.provider), g.LL(p,t,"lh",[J?"1":"0"])),k.Fd=J,k.gs++,k.pp=k.getCurrentTime()))}; qg0=function(k,p){if(k.T){var t=k.T;var J=k.getCurrentTime();!Hm(t,J)&&t.nA()?(t.policy.S&&(t.policy.T=Math.max(t.policy.T+t.policy.X,t.policy.Z)),t=Infinity):t=J<t.videoData.xx()?Math.min(t.videoData.xx()+10,t.nI()):NaN;if(!isNaN(t)){if(k.Ey&&p&&(p=k.Oy.isActive(),J=k.T.nI(),(J=GlS(k.Ey,J-k.Yx()))&&!p)){k.Oy.start();k.Tb.yT("inBufferPtl",{cmt:k.getCurrentTime(),seekTo:J+k.Yx()});k.seekTo(J+k.Yx(),{XR:"seektimeline_inBufferSeek"});return}k.seekTo(t,{XR:"seektimeline_pegToLive"})}}}; UFe=function(k,p){if(k.T&&k.Ey){var t=!1;p?t=!0:k.videoData.isLowLatencyLiveStream||k.videoData.latencyClass==="LOW"||k.videoData.latencyClass==="ULTRALOW"?t=xbi(k.T):k.B0&&(k.B0=!1,t=xbi(k.T,!0));t&&(p=k.Tb.ZB(),t=k.T,t=xA(t)*t.T,p.qoe&&(p=p.qoe,g.LL(p,g.VT(p.provider),"lra",[t]),p.yT("live-readahead-seconds",{v:t})));p=k.Ey;t=k.T.T;k=k.T;k=(k.T-1+k.policy.T)*xA(k);var J=NaN,q=p.nE;q===2||q===-1?E5(p.Tb.getVideoData())&&(J=p.policy.La):--t;t=Math.max(t,0);q=p.X;q.PN=t;q.L=J;p.Z&&(p.Z.gy=k)}}; Ygi=function(k,p){k.C=p}; FW9=function(k,p){TFT(k,p).then(void 0,function(){FM(k)}); rlh(k).then(function(t){Zt9(k,t)},function(){FM(k)}); k.Tb.aM(p);k.ih.DB()&&(p=k.pE(),p["native"]=""+ +k.B,p.tgt=""+k.Y,p.otgt=""+(k.Y+k.timestampOffset),k.T&&k.D("html5_high_res_seek_logging")&&(p.tht=""+k.T.S(),p.ht=""+k.T.nI(),p.adft=""+kr9(k.T)),k.D("html5_sabr_parse_live_metadata_playback_boundaries")&&k.videoData.T&&tx(k.videoData)&&(p.minst=""+k.videoData.T.LA,p.cminst=""+(k.videoData.T.xx()+k.timestampOffset),p.maxst=""+k.videoData.T.N_,p.hts=""+k.videoData.T.Y8,p.cmaxst=""+(k.videoData.T.jV()+k.timestampOffset)),k.Tb.yT("startSeek",p))}; TFT=function(k,p){k.gy||(k.Ey?isFinite(k.Y)?k.gy=k.Ey.seek(k.Y-k.timestampOffset,p):($u(k.videoData),k.gy=xN(k.Ey),uE(k.videoData)||(k.Y=k.Ey.getCurrentTime()+k.timestampOffset)):k.gy=g.Tq(k.Y-k.timestampOffset));return k.gy}; rlh=function(k){var p=k.N;p||(k.N=new Mi,p=k.N,oz(k));return p}; dF=function(k,p,t){return isNaN(p)?NaN:g.Ek(p,k.xx(),k.jV(t))}; oz=function(k){if(k.N)if(k.videoData.isLivePlayback&&k.videoData.N&&!k.videoData.N.T&&k.mediaElement&&k.mediaElement.Pn()>0&&uV(k.mediaElement)>0&&(k.Y=dF(k,k.Y,!1)),!k.mediaElement||!CBj(k))k.qW.start(750);else if(!isNaN(k.Y)&&isFinite(k.Y)){var p=k.RY-(k.Y-k.timestampOffset);if(!(p===0||k.D("html5_enable_new_seek_timeline_logic")&&Math.abs(p)<.005))if(p=k.mediaElement.getCurrentTime()-k.Y,Math.abs(p)<=k.IY||k.D("html5_enable_new_seek_timeline_logic")&&Math.abs(p)<.005)k.N&&k.N.resolve(k.mediaElement.getCurrentTime()); else{if(k.videoData.Yk)k.videoData.Yk=!1;else if(!$u(k.videoData)&&k.Y>=k.jV()-.1){k.Y=k.jV();k.N.resolve(k.jV());k.Tb.XX();return}try{var t=k.Y-k.timestampOffset;k.mediaElement.seekTo(t);k.P0.T=t;k.RY=t;k.C=k.Y;k.D("html5_enable_new_seek_timeline_logic")&&(k.B=!1)}catch(J){}}}}; CBj=function(k){if(!k.mediaElement||k.mediaElement.Pn()===0||k.mediaElement.hasError())return!1;var p=k.mediaElement.getCurrentTime()>0;if(!(k.videoData.N&&k.videoData.N.T||k.videoData.isLivePlayback)&&k.videoData.CH())return p;if(k.Y>=0){var t=k.mediaElement.F1();if(t.length||!p)return JN(t,k.Y-k.timestampOffset)}return p}; Zt9=function(k,p){k.X&&(k.X.resolve(p),k.Tb.Br(),k.ih.DB()&&(p=k.pE(),p["native"]=""+ +k.B,p.otgt=""+(k.Y+k.timestampOffset),k.Tb.yT("seekEnd",p)));FM(k)}; FM=function(k){k.Y=NaN;k.RY=NaN;k.N=null;k.gy=null;k.X=null;k.Y8=!1;k.B=!1;k.IY=0;k.Oy.stop();k.W0.stop()}; Ve0=function(k,p,t){var J=k.mediaElement,q=p.type;switch(q){case "seeking":var F=J.getCurrentTime()+k.timestampOffset;if(!k.N||k.B&&F!==k.Y){var d=!!k.N;k.N=new Mi;k.D("html5_enable_new_seek_timeline_logic")&&k.N.then(function(U){Zt9(k,U)},function(){FM(k)}); if(k.videoData.isAd()){var S;EZi({adCpn:k.videoData.clientPlaybackNonce,contentCpn:(S=k.videoData.aR)!=null?S:""},p.T)}k.RY=F;Jli(k.P0,J.getCurrentTime());k.seekTo(F,{seekSource:104,XR:"seektimeline_mediaElementEvent"});t&&Al9(t,F*1E3,!!d);k.B=!0}break;case "seeked":k.N&&k.N.resolve(k.mediaElement.getCurrentTime());break;case "loadedmetadata":qF(k.Tb)||mFT(k);oz(k);break;case "progress":oz(k);break;case "pause":k.L=k.getCurrentTime()}k.L&&((q==="play"||q==="playing"||q==="timeupdate"||q==="progress")&& k.getCurrentTime()-k.L>10&&(k.D("html5_enable_new_media_element_puase_jump")?(k.Tb.Vn(new AD("qoe.restart",{reason:"pauseJump"})),k.Tb.iD()):k.seekTo(k.L,{XR:"pauseJump"})),q!=="pause"&&q!=="play"&&q!=="playing"&&q!=="progress"&&(k.L=0))}; WWT=function(k){return(We(k.videoData)||!!k.videoData.liveUtcStartSeconds)&&(!!k.videoData.liveUtcStartSeconds||Edw(k))&&!!k.videoData.T}; Edw=function(k){return!!k.videoData.startSeconds&&isFinite(k.videoData.startSeconds)&&k.videoData.startSeconds>1E9}; dFi=function(k){var p=0,t=NaN,J="";if(!k.Z)return{startSeconds:p,Gn:t,source:J};k.videoData.Oy?p=k.videoData.qO:$u(k.videoData)&&(p=Infinity);if(g.VR(k.videoData))return{startSeconds:p,Gn:t,source:J};k.videoData.startSeconds?(J="ss",p=k.videoData.startSeconds):k.videoData.Ji&&(J="stss",p=k.videoData.Ji);k.videoData.liveUtcStartSeconds&&(t=k.videoData.liveUtcStartSeconds);if(isFinite(p)&&(p>k.jV()||p<k.xx())){var q={};q.minSeekableTime=k.xx();q.maxSeekableTime=k.jV();q.cmt=k.getCurrentTime();q.ss= p;q.utc=t;q.src=J;k.Tb.yT("startSecondsOutOfBounds",q);k.videoData.m2()&&(p=dF(k,p,!1))}return{startSeconds:p,Gn:t,source:J}}; mFT=function(k){if(k.Z)if(g.VR(k.videoData))k.Z=!1;else{var p="ss",t=0,J;((J=k.videoData.T)==null?0:J.isManifestless)&&k.videoData.nE&&!Edw(k)&&(p="mss",t=k.videoData.nE);(k.videoData.Oy?k.D("html5_prioritize_windowed_st_start_seconds"):k.D("html5_prioritize_st_start_seconds"))&&!t&&k.videoData.Ji&&(p="stss",t=k.videoData.Ji);!t&&WWT(k)&&(t=k.videoData.liveUtcStartSeconds||k.videoData.nE,p="utc",t=k.jV()-k.Zl(k.jV())+t);t||k.D("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!k.videoData.m2()|| !k.videoData.Ji||(p="stss",t=k.videoData.Ji);J={};if(t){if(t>k.jV()||t<k.xx())J.minSeekableTime=k.xx(),J.maxSeekableTime=k.jV(),J.cmt=k.getCurrentTime(),J.it=k.Zl(k.getCurrentTime()),J.ss=t,J.utc=WWT(k)?k.videoData.liveUtcStartSeconds||k.videoData.nE:0,k.Tb.yT("startSecondsOutOfBounds",J),k.videoData.m2()&&(t=dF(k,t,!1));k.seekTo(t,{XR:"seektimeline_startSeconds"});J[p]=t;k.Tb.yT("startSeconds",J);k.Z=!1}else k.videoData.nE&&(J[p]=k.videoData.nE+k.Yx(),k.Tb.yT("startSeconds",J))}}; DFq=function(k,p){k.Tb.yT("sdai",{adj4t:p.toFixed(3)});k.qO=p;p+=1;k.Y=p;k.C=p;rlh(k).then(function(t){Zt9(k,t)},function(){FM(k)})}; NFM=function(k){return k.mediaElement?lV(k.mediaElement):0}; od9=function(){}; Eg=function(k){g.R.call(this);this.N=k;this.T=new Map;this.Y=new g.jF(this.sample,250,this);g.z(this,this.Y);this.start()}; Se=function(k,p){if((k=k.T.get(p))==null)k=void 0;else{k=k.buffer;for(p=[];k.Y!==k.T;)k.Y=(k.Y+1)%k.data.length,p.push(k.data[k.Y]);k=p}return k||[]}; Ug=function(k,p){var t;return((t=k.T.get(p))==null?void 0:l5M(t.buffer))||0}; szj=function(k){this.T=k;this.rX=NaN;this.buffer=new j2(100)}; ft=function(){this.finished=this.started=!1}; itq=function(k){function p(q){return t.N_&&(!J.OS||!J.Cp.Z)||t.gy!=="yt"&&(J.partnerId===38&&t.playerStyle==="books"||J.partnerId===30&&t.playerStyle==="docs"||J.partnerId===33&&t.playerStyle==="google-live")?LWh(k,J,q):vdL(k,J).then(function(){bB(k,J)},function(F){bB(k,J,!0); throw F;})} var t=k.G(),J=k.getVideoData();J.MO();J.loading=!0;return cli(k)?nd6(k,J).then(function(){bB(k,J)},function(q){q=Vs(q); if(mO(q.severity))return bB(k,J,!0),Promise.reject(q);q.errorCode==="onesie.response.badproxystatus"&&""+q.details.st==="3"&&(wuq=!0);k.handleError(q);return p("onesie")}):p("gvi")}; cli=function(k){var p=k.G();if(p.D("html5_disable_onesie_when_no_subtlecrypto")&&!TX()||p.D("html5_disable_onesie")||!p.D("html5_onesie")||!p.D("html5_onesie_inline")&&k.getVisibilityState()===5||p.gy!=="yt")return!1;var t=p.yr;if(!t||!t.T)return k.handleError(new AD("onesie.unavailable.hotconfig",{key:"0"})),!1;if(t.T.X<(0,g.V9)()&&(k.yT("okexp","1"),(t=k.Qy())&&p.D("html5_prefer_trusted_host_on_key_expiration"))){t.Y=!0;var J;(p=(J=t.T.get(0))==null?void 0:TY(J.location))&&!qe(p)&&t.T.delete(0)}if(wuq)return k.yT("ost3", "1"),!1;J={};return Object.keys(J).length>0?(J.onesie="0",k.handleError(new AD("html5.missingapi",J)),!1):!0}; Qzu=function(k){var p=Ql();PO(p,k);return g.tc(p,mU0())}; nd6=function(k,p){var t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B,O,l,oi,$h,kh,h;return g.Q(function(x){if(x.T==1)return p.fetchType="onesie",t=wl6(p,k.getPlayerSize(),k.getVisibilityState()),J=new ul(k,t),g.n(x,J.fetch(),2);q=x.Y;F={player_response:q};p.loading=!1;d=k.fT.Qk;if(J.PQ){S=g.Z(J.PQ.entries());for(U=S.next();!U.done;U=S.next())f=U.value,b=g.Z(f),N=b.next().value,y=b.next().value,Y=N,T=y,d.T.set(Y,T,180),Y===p.videoId&&(A=T.cY(),p.T8=A);d.Xu=J}V=g.Z(J.Mu.entries());for(D=V.next();!D.done;D= V.next())v=D.value,w=g.Z(v),X=w.next().value,B=w.next().value,O=X,l=B,d.Y.set(O,l,180);g.ea(p,F,!0);if(p.loading||Bx(p))return x.return(Promise.resolve());d.T.removeAll();d.Y.removeAll();p.T8=[];oi={};$h="onesie.response";kh=0;p.errorCode?($h="auth",oi.ec=p.errorCode,oi.ed=p.errorDetail,oi.es=p.cS||"",kh=2):(oi.successButUnplayable="1",oi.disposed=""+ +p.MO(),oi.afmts=""+ +/adaptiveFormats/.test(q),oi.cpn=p.clientPlaybackNonce);h=new AD($h,oi,kh);return x.return(Promise.reject(h))})}; vdL=function(k,p){var t,J,q,F,d,S,U,f,b,N,y;return g.Q(function(Y){switch(Y.T){case 1:t=p.isAd(),J=!t,q=t?1:3,F=0;case 2:if(!(F<q)){Y.oY(4);break}if(!(F>0)){Y.oY(5);break}return g.n(Y,Wt(5E3),6);case 6:d=new g.hm("Retrying OnePlatform request",{attempt:F}),g.wt(d);case 5:return g.Aw(Y,7),g.n(Y,PBj(k,p),9);case 9:return Y.return();case 7:S=g.W9(Y);U=Vs(S);f=U.errorCode;b=k.G();N=b.D("html5_use_network_error_code_enums")?401:"401";J&&f==="manifest.net.badstatus"&&U.details.rc===N&&(J=!1,F===q-1&&(q+= 1));if(F===q-1)return y=Gru(t,U.details),y.details.backend="op",y.details.originec=f,Y.return(Promise.reject(y));if(f==="auth"||f==="manifest.net.retryexhausted")return Y.return(Promise.reject(U));k.handleError(U);if(mO(U.severity)){Y.oY(4);break}case 3:F++;Y.oY(2);break;case 4:return Y.return(Promise.reject(Gru(t,{backend:"op"})))}})}; PBj=function(k,p){function t($h){$h.readyState===2&&k.yM("ps_c")} var J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B,O,l,oi;return g.Q(function($h){switch($h.T){case 1:p.fetchType="gp";J=k.G();q=g.xH(J,g.eJ(p));if(!q.T){F=q.getValue();$h.oY(2);break}return g.n($h,q.T,3);case 3:F=$h.Y;case 2:return d=F,S=Qzu(d),U=wl6(p,k.getPlayerSize(),k.getVisibilityState()),f=g.Oy(Ihj),b=g.eJ(p),N=(0,g.V9)(),y=!1,Y="empty",T=0,k.yM("psns"),A={ZY:t},g.n($h,g.MT(S,U,f,void 0,A),4);case 4:V=$h.Y;k.yM("psnr");if(p.MO())return $h.return();V?"error"in V&&V.error?(y=!0,Y="esf:"+V.error.message, T=V.error.code):V.errorMetadata&&(y=!0,Y="its",T=V.errorMetadata.status):y=!0;if(y)return D=0,v=((0,g.V9)()-N).toFixed(),w={},w=J.D("html5_use_network_error_code_enums")?{backend:"op",rc:T,rt:v,reason:Y,has_kpt:p.qW?"1":"0",has_mdx_env:p.mdxEnvironment?"1":"0",has_omit_key_flag:g.M9("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:J.pageId?"1":"0",has_token:b?"1":"0",has_vvt:p.Y8?"1":"0",is_mdx:p.isMdxPlayback?"1":"0",mdx_ctrl:p.C7||"",token_eq:b===g.eJ(p)?"1":"0"}:{backend:"op", rc:""+T,rt:v,reason:Y,has_kpt:p.qW?"1":"0",has_mdx_env:p.mdxEnvironment?"1":"0",has_omit_key_flag:g.M9("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:J.pageId?"1":"0",has_token:b?"1":"0",has_vvt:p.Y8?"1":"0",is_mdx:p.isMdxPlayback?"1":"0",mdx_ctrl:p.C7||"",token_eq:b===g.eJ(p)?"1":"0"},X="manifest.net.connect",T===429?(X="auth",D=2):T>200&&(X="manifest.net.badstatus",T===400&&(D=2)),$h.return(Promise.reject(new AD(X,w,D)));p.loading=!1;g.ea(p,{raw_player_response:V},!0); B=V;g.cs(p.G())&&B&&B.trackingParams&&mT(B.trackingParams);if(p.errorCode)return O={ec:p.errorCode,ed:p.errorDetail,es:p.cS||""},$h.return(Promise.reject(new AD("auth",O,2)));if(!p.loading&&!Bx(p))return l=p.isAd()?"auth":"manifest.net.retryexhausted",oi=p.isAd()?2:1,$h.return(Promise.reject(new AD(l,{successButUnplayable:"1",hasMedia:g.Za(p)?"1":"0"},oi)));g.CS($h)}})}; LWh=function(k,p,t){function J(T){T=Vs(T);if(mO(T.severity))return Promise.reject(T);k.handleError(T);return!1} function q(){return!0} var F,d,S,U,f,b,N,y,Y;return g.Q(function(T){switch(T.T){case 1:var A=k.G(),V=k.getPlayerSize(),D=k.getVisibilityState();k.isFullscreen();var v=window.location.search;if(p.partnerId===38&&A.playerStyle==="books")v=p.videoId.indexOf(":"),v=g.hM("//play.google.com/books/volumes/"+p.videoId.slice(0,v)+"/content/media",{aid:p.videoId.slice(v+1),sig:p.Am});else if(p.partnerId===30&&A.playerStyle==="docs")v=g.hM("https://docs.google.com/get_video_info",{docid:p.videoId,authuser:p.KFy,authkey:p.YG,eurl:A.v0}); else if(p.partnerId===33&&A.playerStyle==="google-live")v=g.hM("//google-liveplayer.appspot.com/get_video_info",{key:p.videoId});else{A.gy!=="yt"&&g.nV(Error("getVideoInfoUrl for invalid namespace: "+A.gy));var w={html5:"1",video_id:p.videoId,cpn:p.clientPlaybackNonce,eurl:A.v0,ps:A.playerStyle,el:wS(p),hl:A.qW,list:p.playlistId,agcid:p.XF,aqi:p.adQueryId,sts:20145,lact:VP()};Object.assign(w,A.T);A.forcedExperiments&&(w.forced_experiments=A.forcedExperiments);p.Y8?(w.vvt=p.Y8,p.mdxEnvironment&&(w.mdx_environment= p.mdxEnvironment)):g.eJ(p)&&(w.access_token=g.eJ(p));p.adFormat&&(w.adformat=p.adFormat);p.slotPosition>=0&&(w.slot_pos=p.slotPosition);p.breakType&&(w.break_type=p.breakType);p.D4!==null&&(w.ad_id=p.D4);p.Wa!==null&&(w.ad_sys=p.Wa);p.Ku!==null&&(w.encoded_ad_playback_context=p.Ku);A.captionsLanguagePreference&&(w.cc_lang_pref=A.captionsLanguagePreference);A.gs&&A.gs!==2&&(w.cc_load_policy=A.gs);var X=g.Xa(g.Iu(),65);g.Mu(A)&&X!=null&&!X&&(w.device_captions_on="1");A.mute&&(w.mute=A.mute);p.annotationsLoadPolicy&& A.annotationsLoadPolicy!==2&&(w.iv_load_policy=p.annotationsLoadPolicy);p.L2&&(w.endscreen_ad_tracking=p.L2);(X=A.Oy.get(p.videoId))&&X.Zc&&(w.ic_track=X.Zc);p.j6&&(w.itct=p.j6);zl(p)&&(w.autoplay="1");p.mutedAutoplay&&(w.mutedautoplay=p.mutedAutoplay);p.isAutonav&&(w.autonav="1");p.hc&&(w.noiba="1");p.isMdxPlayback&&(w.mdx="1",w.ytr=p.HR);p.mdxControlMode&&(w.mdx_control_mode=p.mdxControlMode);p.Fb&&(w.ytrcc=p.Fb);p.a5&&(w.utpsa="1");p.isFling&&(w.is_fling="1");p.isInlinePlaybackNoAd&&(w.mute="1"); p.vnd&&(w.vnd=p.vnd);p.forceAdsUrl&&(X=p.forceAdsUrl.split("|").length===3,w.force_ad_params=X?p.forceAdsUrl:"||"+p.forceAdsUrl);p.kx&&(w.preload=p.kx);V.width&&(w.width=V.width);V.height&&(w.height=V.height);(p.Q4?0:p.lm)&&(w.splay="1");p.ypcPreview&&(w.ypc_preview="1");XO(p)&&(w.content_v=XO(p));p.B0&&(w.livemonitor=1);A.NO&&(w.authuser=A.NO);A.pageId&&(w.pageid=A.pageId);A.k8&&(w.ei=A.k8);A.C&&(w.iframe="1");p.contentCheckOk&&(w.cco="1");p.racyCheckOk&&(w.rco="1");A.Z&&p.La&&(w.live_start_walltime= p.La);A.Z&&p.Eo&&(w.live_manifest_duration=p.Eo);A.Z&&p.playerParams&&(w.player_params=p.playerParams);A.Z&&p.cycToken&&(w.cyc=p.cycToken);A.Z&&p.dh&&(w.tkn=p.dh);D!==0&&(w.vis=D);A.enableSafetyMode&&(w.enable_safety_mode="1");p.qW&&(w.kpt=p.qW);p.zv&&(w.kids_age_up_mode=p.zv);p.kidsAppInfo&&(w.kids_app_info=p.kidsAppInfo);p.rE&&(w.upg_content_filter_mode="1");A.widgetReferrer&&(w.widget_referrer=A.widgetReferrer.substring(0,128));p.gy?(V=p.gy.latitudeE7!=null&&p.gy.longitudeE7!=null?p.gy.latitudeE7+ ","+p.gy.longitudeE7:",",V+=","+(p.gy.clientPermissionState||0)+","+(p.gy.locationRadiusMeters||"")+","+(p.gy.locationOverrideToken||"")):V=null;V&&(w.uloc=V);p.Gv&&(w.internalipoverride=p.Gv);A.embedConfig&&(w.embed_config=A.embedConfig);A.jd&&(w.co_rel="1");A.ancestorOrigins.length>0&&(w.ancestor_origins=Array.from(A.ancestorOrigins).join(","));A.homeGroupInfo!==void 0&&(w.home_group_info=A.homeGroupInfo);A.livingRoomAppMode!==void 0&&(w.living_room_app_mode=A.livingRoomAppMode);A.enablePrivacyFilter&& (w.enable_privacy_filter="1");p.isLivingRoomDeeplink&&(w.is_living_room_deeplink="1");p.Ht&&p.dc&&(w.clip=p.Ht,w.clipt=p.dc);p.UA&&(w.disable_watch_next="1");p.mE&&(w.forced_by_var="1");for(var B in w)!Xui.has(B)&&w[B]&&String(w[B]).length>512&&(g.wt(Error("GVI param too long: "+B)),w[B]="");B=A.NA;g.nl(A)&&(B=lY(B.replace(/\b(?:www|web)([.-])/,"tv$1"))||A.NA);A=g.hM(B+"get_video_info",w);v&&(A=y0e(A,v));v=A}F=v;S=(d=p.isAd())?1:3;U=0;case 2:if(!(U<S)){T.oY(4);break}f=F;if(!(U>0)){T.oY(5);break}return g.n(T, Wt(5E3),6);case 6:b={playerretry:U,playerretrysrc:t},d||(b.recover="embedded"),f=Je(F,b);case 5:return g.n(T,RHw(p,f).then(q,J),7);case 7:if(N=T.Y)return T.return();U++;T.oY(2);break;case 4:y=d?"auth":"manifest.net.retryexhausted";Y=d?2:1;if(!d&&Math.random()<1E-4)try{g.wt(new g.hm("b/152131571",btoa(F)))}catch(O){}return T.return(Promise.reject(new AD(y,{backend:"gvi"},Y)))}})}; RHw=function(k,p){function t(V){return J(V.xhr)} function J(V){if(!k.MO()){V=V?V.status:-1;var D=0,v=((0,g.V9)()-b).toFixed();v=q.D("html5_use_network_error_code_enums")?{backend:"gvi",rc:V,rt:v}:{backend:"gvi",rc:""+V,rt:v};var w="manifest.net.connect";V===429?(w="auth",D=2):V>200&&(w="manifest.net.badstatus",V===400&&(D=2));return Promise.reject(new AD(w,v,D))}} var q,F,d,S,U,f,b,N,y,Y,T,A;return g.Q(function(V){if(V.T==1){k.fetchType="gvi";q=k.G();var D={};k.Ib&&(D.ytrext=k.Ib);(S=g.cQ(D)?void 0:D)?(F={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:S},d=Je(p,{action_display_post:1})):(F={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},d=p);U={};q.sendVisitorIdHeader&&k.visitorData&&(U["X-Goog-Visitor-Id"]=k.visitorData);(f=l_(q.experiments,"debug_sherlog_username"))&&(U["X-Youtube-Sherlog-Username"]=f);Object.keys(U).length> 0&&(F.headers=U);b=(0,g.V9)();return g.n(V,Jh(DT,d,F).then(void 0,t),2)}N=V.Y;if(!N||!N.responseText)return V.return(J(N));k.loading=!1;y=xl(N.responseText);g.ea(k,y,!0);if(k.errorCode)return Y={ec:k.errorCode,ed:k.errorDetail,es:k.cS||""},V.return(Promise.reject(new AD("auth",Y,2)));if(!k.loading&&!Bx(k))return T=k.isAd()?"auth":"manifest.net.retryexhausted",A=k.isAd()?2:1,V.return(Promise.reject(new AD(T,{successButUnplayable:"1"},A)));g.CS(V)})}; Gru=function(k,p){return new AD(k?"auth":"manifest.net.retryexhausted",p,k?2:1)}; bB=function(k,p,t){t=t===void 0?!1:t;var J,q,F,d;g.Q(function(S){if(S.T==1){J=k.G();if(t&&(!g.u$(J)||wS(p)!=="embedded")||p.UA||wS(p)!=="adunit"&&(g.mq(J)||Ir(J)||g.Qj(J)||g.nl(J)||gi(J)==="WEB_CREATOR"))return S.return();q=g.xH(J,g.eJ(p));return q.T?g.n(S,q.T,3):(F=q.getValue(),S.oY(2))}S.T!=2&&(F=S.Y);d=F;return S.return(BFS(k,p,d))})}; BFS=function(k,p,t){var J,q,F,d,S;return g.Q(function(U){if(U.T==1){g.Aw(U,2);J=Qzu(t);var f=p.G();g.Iu();var b={context:g.pK(p),videoId:p.videoId,racyCheckOk:p.racyCheckOk,contentCheckOk:p.contentCheckOk,autonavState:"STATE_NONE"};wS(p)==="adunit"&&(b.isAdPlayback=!0);f.embedConfig&&(b.serializedThirdPartyEmbedConfig=f.embedConfig);f.jd&&(b.showContentOwnerOnly=!0);p.S1&&(b.showShortsOnly=!0);g.Xa(0,141)&&(b.autonavState=g.Xa(0,140)?"STATE_OFF":"STATE_ON");if(g.Mu(f)){var N=g.Xa(0,65);N=N!=null? !N:!1;var y=!!g.nG("yt-player-sticky-caption");b.captionsRequested=N&&y}var Y;if(f=(Y=f.getWebPlayerContextConfig())==null?void 0:Y.encryptedHostFlags)b.playbackContext={encryptedHostFlags:f};q=b;F=g.Oy(zHw);k.yM("wn_s");return g.n(U,g.MT(J,q,F),4)}if(U.T!=2)return d=U.Y,k.yM("wn_r"),!d||"error"in d&&d.error||(S=d,g.cs(p.G())&&S.trackingParams&&mT(S.trackingParams),g.ea(p,{raw_watch_next_response:d},!1)),g.Vi(U,0);g.W9(U);g.CS(U)})}; eHe=function(k){k.yM("vir");k.yM("ps_s");zg("vir",void 0,"video_to_ad");var p=itq(k);p.then(function(){k.yM("virc");zg("virc",void 0,"video_to_ad");k.yM("ps_r");zg("ps_r",void 0,"video_to_ad")},function(){k.yM("virc"); zg("virc",void 0,"video_to_ad")}); return p}; g.Yd=function(k,p,t,J,q,F,d,S,U,f){U=U===void 0?new g.Rj(k):U;f=f===void 0?!0:f;g.o$.call(this);var b=this;this.ih=k;this.playerType=p;this.Sz=t;this.OO=J;this.getVisibilityState=F;this.visibility=d;this.fT=S;this.videoData=U;this.Z2=f;this.logger=new g.xO("VideoPlayer");this.df=null;this.wX=new TF;this.kY=null;this.oK=!0;this.Dr=this.Ey=null;this.a7=[];this.Xy=new ft;this.YC=this.uW=null;this.fM=new ft;this.F0=null;this.m4=this.yk=!1;this.q$=NaN;this.YR=!1;this.playerState=new g.Kr;this.Oj=[];this.w0= new g.nC;this.l2=new RPw(this);this.mediaElement=null;this.RV=new g.jF(this.Ix8,15E3,this);this.TG=this.D9=!1;this.AQ=NaN;this.Bu=!1;this.Ks=0;this.Tc=!1;this.B$=NaN;this.H_=new Eg(new Map([["bufferhealth",function(){return NFM(b.SW)}], ["bandwidth",function(){return b.h4()}], ["networkactivity",function(){return b.ih.schedule.NO}], ["livelatency",function(){return b.isAtLiveHead()&&b.isPlaying()?hHj(b):NaN}], ["rawlivelatency",function(){return hHj(b)}]])); this.qZ=0;this.loop=!1;this.playbackRate=1;this.AZ=0;this.SW=new $Fh(this);this.yS=!1;this.M$=[];this.qy=this.E_=0;this.JO=this.Pf=!1;this.T5=this.i_=0;this.Mg=-1;this.JT="";this.UN=new g.jF(this.L_,0,this);this.mQ=!1;this.yF=this.Dx=null;this.tzp=[this.w0,this.UN,this.RV,this.H_];this.aZ=this.oA=null;this.y7=function(){var N=b.ZB();N.provider.ih.lm||N.provider.Tb.getVisibilityState()===3||(N.provider.ih.lm=!0);N.Bi();if(N.Y){var y=N.Y;y.X&&y.T<0&&y.provider.Tb.getVisibilityState()!==3&&YFM(y)}N.qoe&& (N=N.qoe,N.k8&&N.Y<0&&N.provider.ih.lm&&ug6(N),N.N&&cm(N));b.Ey&&NF(b);b.ih.hK&&!b.videoData.backgroundable&&b.mediaElement&&!b.QX()&&(b.isBackground()&&b.mediaElement.Xa()?(b.yT("bgmobile",{suspend:1}),b.Td(!0,!0)):b.isBackground()||yS(b)&&b.yT("bgmobile",{resume:1}))}; this.u3={GL:function(N){b.GL(N)}, j$h:function(N){b.df=N}, tYp:function(){return b.Ad}, PW:function(){return b.uv}, D6:function(){return b.Dr}, gY0:function(){return b.Pz}, Y9S:function(){return b.ol}, wkp:function(){}, G:function(){return b.ih}, QM:function(){return b.mediaElement}, GRY:function(N){b.g_(N)}, gTY:function(){return b.OO}}; this.logger.debug(function(){return"creating, type "+p}); this.Sp=new M2j(this.ih);this.wA=new Hbj(this.ih,this.OO,this);this.yA=new g.un(function(){return b.getCurrentTime()},function(){return b.getPlaybackRate()},function(){return b.getPlayerState()},function(N,y){N!==g.pT("endcr")||g.u(b.playerState,32)||b.XX(); q(N,y,b.playerType)},function(N,y){g.hF(b.videoData)&&b.yT(N,y)}); g.z(this,this.yA);g.z(this,this.SW);ahh(this,U);this.videoData.subscribe("dataupdated",this.oW8,this);this.videoData.subscribe("dataloaded",this.Il,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.yT,this);this.videoData.subscribe("ctmpstr",this.KP,this);this.F8();IF0(this.y7);this.visibility.subscribe("visibilitystatechange",this.y7);this.Pz=new g.jF(this.p4,g.dU(this.ih.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.ol= new g.jF(this.p4,g.dU(this.ih.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Ei=new g.dJ(this)}; ahh=function(k,p){if(k.playerType===2||k.ih.LA)p.PZ=!0;var t=gah(p.UQ,p.QQ,k.ih.C,k.ih.Z);t&&(p.adFormat=t);k.playerType===2&&(p.VA=!0);if(k.isFullscreen()||k.ih.C)t=g.nG("yt-player-autonavstate"),p.autonavState=t||(k.ih.C?2:k.videoData.autonavState);p.endSeconds&&p.endSeconds>p.startSeconds&&$d(k,p.endSeconds)}; MeM=function(k){vAi(k.Ad);g.ER(k.Ad);for(var p=k.uv,t=g.Z(p.T.values()),J=t.next();!J.done;J=t.next())vAi(J.value);p.T.clear();g.ER(k.uv)}; gdS=function(k){var p=k.videoData;eHe(k).then(void 0,function(t){k.videoData!==p||p.MO()||(t=Vs(t),t.errorCode==="auth"&&k.videoData.errorDetail?k.W3(t.errorCode,2,unescape(k.videoData.errorReason),CC(t.details),k.videoData.errorDetail,k.videoData.cS||void 0):k.handleError(t))})}; jz9=function(k){if(!g.u(k.playerState,128))if(k.videoData.isLoaded(),k.logger.debug("finished loading playback data"),k.a7=g.tj(k.videoData.P0),g.Za(k.videoData)){k.Sz.tick("bpd_s");Tr(k).then(function(){k.Sz.tick("bpd_c");if(!k.MO()){k.yk&&(k.CT(kr(kr(k.playerState,512),1)),yS(k));var J=k.videoData;J.endSeconds&&J.endSeconds>J.startSeconds&&$d(k,J.endSeconds);k.Xy.finished=!0;rF(k,"dataloaded");k.fM.ER()&&uM9(k);yvj(k.wA,k.YC)}}); k.D("html5_log_media_perf_info")&&k.yT("loudness",{v:k.videoData.wd.toFixed(3)},!0);var p,t=(p=k.mediaElement)==null?void 0:p.KE();if(t&&"disablePictureInPicture"in t&&k.ih.M_)try{t.disablePictureInPicture=k.ih.Yd&&!k.videoData.backgroundable}catch(J){g.wt(J)}lhT(k)}else rF(k,"dataloaded")}; Tr=function(k){Zh(k);k.YC=null;var p=u9M(k.ih,k.videoData,k.QX());k.uW=p;k.uW.then(function(t){Ot_(k,t)},function(t){k.MO()||(t=Vs(t),k.visibility.isBackground()?(Ct(k,"vp_none_avail"),k.uW=null,k.Xy.reset()):(k.Xy.finished=!0,k.W3(t.errorCode,t.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",CC(t.details))))}); return p}; Ot_=function(k,p){if(!k.MO()&&!p.videoData.MO()){k.logger.debug("finished building playback data");k.YC=p;Sgh(k.SW,k.YC);if(k.videoData.isLivePlayback){var t=KWM(k.fT.Qk,k.videoData.videoId)||k.Ey&&!isNaN(k.Ey.NO);t=k.D("html5_onesie_live")&&t;qF(k)||k.videoData.nE>0&&!dS(k.videoData)||t||k.seekTo(k.jV(),{XR:"videoplayer_playbackData",seekSource:18})}if(k.videoData.N.T){if(k.D("html5_sabr_report_missing_url_as_error")&&CAL(k.videoData)){k.handleError(new AD("fmt.missing",{missabrurl:"1"},2));return}k.Ey? g.wt(Error("Duplicated Loader")):(t=g.dU(k.ih.experiments,"html5_onesie_defer_content_loader_ms"))&&k.iY()&&KWM(k.fT.Qk,k.videoData.Cq)?g.fY(function(){k.MO()||k.Ey||HtM(k)},t):HtM(k)}else!k.videoData.N.T&&MC(k.videoData)&&k.BP(new Fc(k.videoData.videoId||"",4)); k.T3();djT(p).then(function(){var J={};k.Z1(J);k.ih.DB()&&k.D("html5_log_media_perf_info")&&k.yT("av1Info",J);NF(k)})}}; uM9=function(k){k.MO();k.logger.debug("try finish readying playback");if(k.fM.finished)k.logger.debug("already finished readying");else if(k.Xy.finished)if(g.u(k.playerState,128))k.logger.debug("cannot finish readying because of error");else if(k.a7.length)k.logger.debug(function(){return"cannot finish readying because of pending preroll: "+k.a7}); else if(k.yA.started||esi(k.yA),k.cn())k.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{k.Ey&&(k.m4=CiL(k.Ey.timing));k.fM.finished||(k.fM.finished=!0);var p=k.D("html5_onesie_live")&&k.Ey&&!isNaN(k.Ey.NO);!k.videoData.isLivePlayback||k.videoData.nE>0&&!dS(k.videoData)||p||qF(k)||(k.logger.debug("seek to head for live"),k.seekTo(Infinity,{XR:"videoplayer_readying",seekSource:18}),k.isBackground()&&(k.TG=!0));WQu(k.ZB());k.logger.debug("finished readying playback"); k.publish("playbackready",k);RF("pl_c",k.Sz.timerName)||(k.Sz.tick("pl_c"),zg("pl_c",void 0,"video_to_ad"));RF("pbr",k.Sz.timerName)||(k.Sz.tick("pbr"),zg("pbr",void 0,"video_to_ad"))}else k.logger.debug("playback data not loaded")}; $d=function(k,p){k.kY&&xFq(k);k.kY=new g.xf(p*1E3,0x7ffffffffffff);k.kY.namespace="endcr";k.addCueRange(k.kY)}; xFq=function(k){k.removeCueRange(k.kY);k.kY=null}; kHT=function(k,p,t,J,q){var F=k.ZB(q),d=g.hF(k.videoData)?F.getVideoData():k.videoData;d.Y=t;var S=g.Al(k);t=new Kb0(d,t,p,S?S.itag:"",J);k.ih.experiments.Gb("html5_refactor_sabr_video_format_selection_logging")?(t.videoId=q,k.aZ=t):F.e$(t);q=k.wA;q.Y=0;q.T=0;k.publish("internalvideoformatchange",d,p==="m")}; g.Al=function(k){var p=mW(k);return xI(p)||!k.YC?null:g.j9(k.YC.T.videoInfos,function(t){return p.C(t)})}; mW=function(k){if(k.YC){var p=k.wA;var t=k.YC;k=k.WL();var J=pDi(p);if(xI(J)){if(J=xXi(p,t).compose(qF_(p,t)).compose($j9(p,t)).compose(b$i(p,t.videoData)).compose(NMM(p,t.videoData,t)).compose(AX(p,t)).compose(Jv9(p,t)),xI(k)||p.D("html5_apply_pbr_cap_for_drm"))J=J.compose(oqu(p,t))}else p.D("html5_perf_cap_override_sticky")&&(J=J.compose(AX(p,t))),p.D("html5_ustreamer_cap_override_sticky")&&(J=J.compose(oqu(p,t)));J=J.compose(Jv9(p,t));p=t.videoData.Pt.compose(J).compose(t.videoData.B9).compose(k)}else p= Xp;return p}; Tn_=function(k){var p=k.wA;k=k.videoData;var t=b$i(p,k);p.D("html5_disable_client_autonav_cap_for_onesie")||t.compose(NMM(p,k));return t}; NF=function(k){if(k.videoData.N&&k.videoData.N.T){var p=mW(k);k.Ey&&UCS(k.Ey,p)}}; prM=function(k){var p;return!!(k.D("html5_native_audio_track_switching")&&g.y9&&((p=k.videoData.Y)==null?0:uG(p)))}; tf_=function(k){if(!prM(k))return!1;var p;k=(p=k.mediaElement)==null?void 0:p.audioTracks();return!!(k&&k.length>1)}; oQh=function(k){var p=JRu(k);if(p)return k.videoData.getAvailableAudioTracks().find(function(t){return t.ws.getName()===p})}; JRu=function(k){var p;if(k=(p=k.mediaElement)==null?void 0:p.audioTracks())for(p=0;p<k.length;++p){var t=k[p];if(t.enabled)return t.label}}; q2i=function(k){var p,t=k.videoData.getAvailableAudioTracks(),J=k.videoData.M_;J&&(p=t.find(function(F){return F.getLanguageInfo().id===J})); if(k.ih.experiments.Gb("enable_audio_description_setting")&&g.Xa(g.Iu(),198)){t=g.Z(t);for(var q=t.next();!q.done;q=t.next())if(q=q.value,q.X){p=q;break}}p||(k=k.getAudioTrack(),p=k.ws.isDefault?void 0:k);return p}; HtM=function(k){for(var p=k.videoData.T,t=g.Z(Object.entries({cpn:k.videoData.clientPlaybackNonce,c:k.ih.T.c,cver:k.ih.T.cver})),J=t.next();!J.done;J=t.next()){var q=g.Z(J.value);J=q.next().value;q=q.next().value;for(var F=g.Z(Object.values(p.T)),d=F.next();!d.done;d=F.next())OC6(d.value.oO,J,q);F=void 0;(F=p.B)==null||OC6(F,J,q)}t=k.ih;J=k.videoData;p=new g.HRT(t);q=K2M({hasSubfragmentedFmp4:J.hasSubfragmentedFmp4,zf:J.zf});p.B=q;p.NO=J.maxReadAheadMediaTimeMs/1E3||p.NO;q=t.schedule;q.N.L$()===q.policy.N? p.nE=10:p.nE=J.minReadAheadMediaTimeMs/1E3||p.nE;p.wd=J.readAheadGrowthRateMs/1E3||p.wd;p.Yo=!aU();g.mq(t)||!aU()?(q=t.experiments,p.RY=8388608,p.gs=524288,p.mE=5,p.IY=1048576,p.Qx=1.5,p.Lp=4587520,he()&&(p.Lp=786432),p.L*=1.1,p.gy*=1.1,p.Ji=!0,p.gp=q.Gb("persist_disable_player_preload_on_tv")||q.Gb("persist_disable_player_preload_on_tv_for_living_room")||!1):t.Y&&(p.L*=1.3,p.gy*=1.3);g.sD&&g.RY("crkey")&&(q=t.T.cmodel==="CHROMECAST/ANCHOVY",p.RY=20971520,p.gs=1572864,q&&(p.Lp=812500,p.v3=1E3,p.OA= 5,p.IY=2097152));g.PL&&(p.Ji=!0);t.supportsGaplessAudio()||(p.M8=!1);Om&&(p.l1=!0);p.V4=t.D("html5_peak_shave");J.fetchType==="onesie"&&t.D("html5_disable_peak_shave_for_onesie")&&(p.V4=!1);var S;q=(S=J.T)==null?void 0:dC(S);if(dS(J)){p.Gt=!0;p.CI||(p.yr=!0);p.yn=!0;p.u2=!0;p.pP=!0;if(J.latencyClass==="ULTRALOW"||J.latencyClass==="LOW"&&!t.D("html5_disable_low_pipeline"))p.Em=2,p.md=4;p.qB=J.defraggedFromSubfragments;if(J.Ur||t.D("html5_publish_all_cuepoints"))p.Bt=!0;g.VR(J)&&(p.ez=!1);p.du=g.Ck(t)}J.isAd()&& (p.gA=0,p.Ta=0);p.p7=t.D("html5_enable_subsegment_readahead_v3")||t.D("html5_ultra_low_latency_subsegment_readahead")&&J.latencyClass==="ULTRALOW";p.N=t.DB();KY()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(t.T.cmodel)&&!t.D("html5_disable_move_pssh_to_moov")&&q&&(p.Ji=!1);F=0;t.D("html5_live_use_alternate_bandwidth_window_sizes")&&(F=t.schedule.policy.T,J.isLivePlayback&&(F=g.dU(t.experiments,J.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":J.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window": "html5_live_normal_latency_bandwidth_window")||F));S=t.schedule;S.Y.C=dS(J)?.5:0;if(!S.policy.Y&&F&&(S=S.N,F=Math.round(F*S.resolution),F!==S.T)){d=Array(F);var U=Math.min(F,S.N?S.T:S.Y),f=S.Y-U;f<0&&(f+=S.T);for(var b=0;b<U;++b)d[b]=S.values[(f+b)%S.T];for(;b<F;++b)d[b]=Infinity;S.T=F;S.values=d;S.Y=U%F;S.N=U===F;S.hN=!0;S.X=lje(S)}J.isLivePlayback&&(p.YN=g.dU(t.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,p.W0=!1);J.CH()&&(p.W0=!1);E5(J)&&(p.p7=!0,J.latencyClass=== "LOW"?p.kx=g.dU(t.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):J.latencyClass==="ULTRALOW"&&(p.kx=g.dU(t.experiments,"html5_jumbo_ull_subsegment_readahead_target")),p.tR=!0);J.m2()&&(p.HJ=1.3);p.l1=p.l1||J.bA;p.pp=(p.pp||J.pp)&&t.Z;p.SB=t.D("html5_sunset_aac_high_codec_family");p.Y=g.hF(J);p.Fd=J.B||p.Y&&!t.D("html5_enable_ssap_seteos");t.DB()&&(p.Jp=!0);J.B&&!q&&(p.nX=!0);J.B&&J.isAd()&&(p.L*=1.6,p.gy*=1.6);MC(J)&&(p.C=J.videoId,p.MG=!0,p.jG=100,J.xS&&J.xS.length>0&&(p.nL=J.xS)); p.Iq=J.YN;p.Ok=D9(t,{},J.N||void 0,py(J));p.B0=ku(J)&&g.Qj(t);tx(J)&&(t.D("html5_sabr_allow_video_keyframe_without_audio")&&(p.hB=!0),t.D("html5_sabr_report_partial_segment_estimated_duration")&&(p.RU=!0),p.T=!0,p.mu=t.D("html5_sabr_enable_utc_seek_requests"),p.xY=t.D("html5_sabr_enable_live_clock_offset"),p.WV=t.D("html5_disable_client_resume_policy_for_sabr"),p.rE=t.D("html5_trigger_loader_when_idle_network"),p.vt=t.D("html5_sabr_parse_live_metadata_playback_boundaries"),p.kS=t.D("html5_enable_platform_backpressure_with_sabr"), p.mL=t.D("html5_consume_onesie_next_request_policy_for_sabr"),p.aU=t.D("html5_sabr_report_next_ad_break_time"),p.Yq=t.D("html5_log_high_res_buffer_timeline")&&t.DB(),p.uE=t.D("html5_remove_stuck_slices_beyond_max_buffer_limits"),p.q5=t.D("html5_gapless_sabr_btl_last_slice")&&xL(J),p.s0=t.D("html5_reset_last_appended_slice_on_seek")&&xL(J),dS(J)?(p.L2=!0,p.hK=t.D("html5_disable_variability_tracker_for_live"),p.k8=t.D("html5_sabr_use_accurate_slice_info_params"),t.D("html5_simplified_backup_timeout_sabr_live")&& (p.Qr=!0,p.v3=p.vJ)):p.mW=t.D("html5_probe_request_on_sabr_request_progress"),p.dc=t.D("html5_serve_start_seconds_seek_for_post_live_sabr"),p.Xn=t.D("html5_flush_index_on_updated_timestamp_offset"),p.qO=t.D("html5_enable_sabr_request_pipelining")&&!g.hF(J),p.gK=t.D("html5_ignore_partial_segment_from_live_readahead"),p.SG=t.D("html5_use_non_active_broadcast_for_post_live"),p.j6=t.D("html5_use_centralized_player_time"),p.eb=t.D("html5_consume_onesie_sabr_seek"),p.Y8=t.D("html5_enable_sabr_seek_loader_refactor"), p.Fx=t.D("html5_update_segment_start_time_from_media_header"),J.enableServerStitchedDai&&(p.X=!0,p.BF=t.D("html5_reset_server_stitch_state_for_non_sabr_seek"),p.JR=t.D("html5_remove_ssdai_append_pause"),p.v0=t.D("html5_consume_ssdai_info_with_streaming"),p.Eo=t.D("html5_process_all_cuepoints"),p.Dw=t.D("html5_ssdai_log_ssevt_in_loader")));p.S=p.T&&t.D("html5_sabr_live");p.qW=g.riL(J);bf(t.X,NB.BITRATE)&&(p.Lp=NaN);if(S=g.dU(t.experiments,"html5_request_size_max_kb"))p.IY=S*1024;t.X.X?p.lm="; "+NB.EXPERIMENTAL.name+ "=allowed":t.D("html5_enable_cobalt_tunnel_mode")&&(p.lm="; tunnelmode=true");S=J.serverPlaybackStartConfig;(S==null?0:S.enable)&&(S==null?0:S.playbackStartPolicy)&&(p.BR=!0,hP(p,S.playbackStartPolicy,2));S=q2i(k);k.wX.removeAll();a:{t=k.fT.Qk;if(J=k.videoData.videoId)if(q=t.T.get(J)){t.T.remove(J);t=q;break a}t=void 0}k.Ey=new g.JX(k,k.ih.schedule,p,k.videoData.T,k.videoData.N,mW(k),S,k.videoData.enableServerStitchedDai,t,k.videoData.IY);p=k.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&& k.videoData.isLivePlayback&&k.iY()?!0:k.yk&&g.mq(k.ih)&&k.videoData.isLivePlayback;k.Ey.initialize(k.getCurrentTime(),mW(k),p);k.videoData.probeUrl&&(k.Ey.k8=k.videoData.probeUrl);if(k.a7.length||k.yk)k.videoData.cotn||VS(k,!1);fh9(k.SW,k.Ey);k.Dx&&(Q7h(k.Ey,new g.$A(k.Dx)),k.yT("sdai",{sdl:1}));k.yF&&(k.Ey.nP(k.yF),k.SW.Z=!1);g.lE(k.videoData)&&(k=k.Ey,k.policy.jY=k.policy.dh)}; Zh=function(k){k.Ey&&(k.Ey.dispose(),k.Ey=null,fh9(k.SW,null));k.Uk()?Fh_(k):k.Wk()}; Fh_=function(k){if(k.Dr)if(k.logger.debug("release media source"),k.Jk(),k.Dr.X)try{k.ih.DB()&&k.yT("rms",{l:"vprms",sr:k.Uk(),rs:hN(k.Dr)});k.Dr.clear();var p;(p=k.mediaElement)!=null&&(p.Y=k.Dr);k.Dr=null}catch(t){p=new g.hm("Error while clearing Media Source in VideoPlayer: "+t.name+", "+t.message),p=Vs(p),k.handleError(p),k.Wk()}else k.Wk()}; $cq=function(k,p){p=p===void 0?!1:p;if(k.Dr)return k.Dr.N;k.logger.debug("update media source");a:{p=p===void 0?!1:p;try{g.zQ()&&k.videoData.yU()&&GUu(k.mediaElement);var t=k.mediaElement.D6(k.Hb(),k.dY())}catch(q){if(aFL(k.l2,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",q);k.W3("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}k.J8(t,!1,!1,p)}var J;return((J=k.D6())==null?void 0:J.N)||null}; dcS=function(k,p){p=p===void 0?!1:p;if(k.Ey){k.D("html5_keep_ssdai_avsync_in_loader_track")&&R_6(k.Ey);var t=k.getCurrentTime()-k.Yx();k.Ey.seek(t,{Nx:p}).pU(function(){})}else HtM(k)}; S2L=function(k,p,t,J){t=t===void 0?!1:t;J=J===void 0?!1:J;if(k.Dr&&(!p||k.Dr===p)){k.logger.debug("media source opened");var q=k.getDuration();!q&&dS(k.videoData)&&(q=25200);if(k.Dr.isView){var F=q;k.logger.debug(function(){return"Set media source duration to "+F+", video duration "+q}); F>k.Dr.getDuration()&&EQ6(k,F)}else EQ6(k,q);dCi(k.Ey,k.Dr,t,J);k.publish("mediasourceattached")}}; EQ6=function(k,p){if(k.Dr){k.Dr.gP(p);var t;(t=k.Ey)!=null&&t.policy.j6&&(t.S=p)}}; by9=function(k,p){kHT(k,p.reason,p.T.info,p.token,p.videoId)}; Ucw=function(k,p){k.ih.experiments.Gb("enable_adb_handling_in_sabr")&&(k.pauseVideo(!0),k.yw(),p&&k.W3("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; rF=function(k,p){k.publish("internalvideodatachange",p===void 0?"dataupdated":p,k,k.videoData)}; fD0=function(k){for(var p=g.Z("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),t=p.next();!t.done;t=p.next())k.w0.V(k.mediaElement,t.value,k.g_,k);k.ih.xd&&k.mediaElement.ZR()&&(k.w0.V(k.mediaElement,"webkitplaybacktargetavailabilitychanged",k.kAy,k),k.w0.V(k.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",k.wpr,k))}; N_e=function(k){g.yI(k.q$);bg_(k)||(k.q$=g.b6(function(){return bg_(k)},100))}; bg_=function(k){var p=k.mediaElement;p&&k.D9&&!k.videoData.NO&&!RF("vfp",k.Sz.timerName)&&p.Pn()>=2&&!p.isEnded()&&qi(p.p$())>0&&k.Sz.tick("vfp");return(p=k.mediaElement)&&!k.videoData.NO&&p.getDuration()>0&&(p.isPaused()&&p.Pn()>=2&&qi(p.p$())>0&&(RF("pbp",k.Sz.timerName)||k.Sz.tick("pbp"),!k.videoData.AP||k.YR||p.isSeeking()||(k.YR=!0,k.publish("onPlaybackPauseAtStart"))),p=p.getCurrentTime(),ln(k.Sp,p))?(k.nY(),!0):!1}; Y2j=function(k){k.ZB().eh();if($u(k.videoData)&&Date.now()>k.AZ+6283){if(!(!k.isAtLiveHead()||k.videoData.T&&b_(k.videoData.T))){var p=k.ZB();if(p.qoe){p=p.qoe;var t=p.provider.Tb.Wg(),J=g.VT(p.provider);R0_(p,J,t);t=t.N;isNaN(t)||g.LL(p,J,"e2el",[t.toFixed(3)])}}k.D("html5_alc_live_log_rawlat")?(p=k.videoData,p=g.Ck(p.G())?!0:g.hs(p.G())?p.gA==="6":!1):p=g.Ck(k.ih);p&&k.yT("rawlat",{l:Ug(k.H_,"rawlivelatency").toFixed(3)});k.AZ=Date.now()}k.videoData.Y&&uG(k.videoData.Y)&&(p=k.vL())&&p.videoHeight!== k.qy&&(k.qy=p.videoHeight,kHT(k,"a",yRu(k,k.videoData.Jp)))}; yRu=function(k,p){if(p.T.video.quality==="auto"&&uG(p.getInfo())&&k.videoData.UF)for(var t=g.Z(k.videoData.UF),J=t.next();!J.done;J=t.next())if(J=J.value,J.getHeight()===k.qy&&J.T.video.quality!=="auto")return J.getInfo();return p.getInfo()}; hHj=function(k){if(!$u(k.videoData))return NaN;var p=0;k.Ey&&k.videoData.T&&(p=dS(k.videoData)?k.Ey.XY.L$()||0:k.videoData.T.P0);return(0,g.V9)()/1E3-k.Zl()-p}; rRw=function(k){k.mediaElement&&k.mediaElement.QX()&&(k.B$=(0,g.V9)());k.ih.Vo?g.fY(function(){T_i(k)},0):T_i(k)}; T_i=function(k){var p;if((p=k.Dr)==null||!p.Bh()){if(k.mediaElement)try{k.F0=k.mediaElement.playVideo()}catch(J){Ct(k,"err."+J)}if(k.F0){var t=k.F0;t.then(void 0,function(J){k.logger.debug(function(){return"playMediaElement failed: "+J}); if(!g.u(k.playerState,4)&&!g.u(k.playerState,256)&&k.F0===t)if(J&&J.name==="AbortError"&&J.message&&J.message.includes("load"))k.logger.debug(function(){return"ignore play media element failure: "+J.message}); else{var q="promise";J&&J.name&&(q+=";m."+J.name);Ct(k,q);k.yS=!0;k.videoData.Q4=!0}})}}}; Ct=function(k,p){g.u(k.playerState,128)||(k.CT(tZ(k.playerState,1028,9)),k.yT("dompaused",{r:p}),k.publish("onAutoplayBlocked"))}; yS=function(k,p){p=p===void 0?!1:p;if(!k.mediaElement||!k.videoData.N)return!1;var t=p;t=t===void 0?!1:t;var J=null;var q;if((q=k.videoData.N)==null?0:q.T){J=$cq(k,t);var F;(F=k.Ey)==null||F.resume()}else Zh(k),k.videoData.Jp&&(J=k.videoData.Jp.qC());q=k.mediaElement.Xa();t=!1;q&&q.MR(J)||(Zg6(k,J),t=!0);g.u(k.playerState,2)||(J=k.SW,p=p===void 0?!1:p,J.X||!(J.C>0)||J.mediaElement&&J.mediaElement.getCurrentTime()>0||(p={XR:"seektimeline_resumeTime",Nx:p},J.videoData.NO||(p.seekSource=15),J.seekTo(J.C, p)));a:{p=t;if(tx(k.videoData)){if(!k.videoData.CH())break a}else if(!g.yR(k.videoData))break a;if(k.mediaElement)if((J=k.videoData.X)&&k.mediaElement.ZR()){q=k.mediaElement.KE();if(k.df)if(q!==k.df.element)Wu(k);else if(p&&J.flavor==="fairplay"&&!eN())Wu(k);else break a;if(k.D("html5_report_error_for_unsupported_tvos_widevine")&&eN()&&J.flavor==="widevine")k.W3("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{k.df=new Lb0(q,k.videoData,k.ih);k.df.subscribe("licenseerror", k.zM,k);k.df.subscribe("qualitychange",k.ZT6,k);k.df.subscribe("heartbeatparams",k.Bm,k);k.df.subscribe("keystatuseschange",k.GL,k);k.df.subscribe("ctmp",k.yT,k);k.D("html5_widevine_use_fake_pssh")&&!k.videoData.isLivePlayback&&J.flavor==="widevine"&&k.df.RT(new qX(CUh,"cenc",!1));p=g.Z(k.wX.keys);for(J=p.next();!J.done;J=p.next())J=k.wX.get(J.value),k.df.RT(J);k.D("html5_eme_loader_sync")||k.wX.removeAll()}}else k.W3("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return t}; Zg6=function(k,p){k.Sz.tick("vta");zg("vta",void 0,"video_to_ad");k.getCurrentTime()>0&&Ygi(k.SW,k.getCurrentTime());k.mediaElement.activate(p);k.Dr&&Hz(0,4);!k.videoData.NO&&k.playerState.isOrWillBePlaying()&&k.RV.start();if(prM(k)){var t;if(p=(t=k.mediaElement)==null?void 0:t.audioTracks())p.onchange=function(){k.publish("internalaudioformatchange",k.videoData,!0)}}}; Wu=function(k){k.df&&(k.df.dispose(),k.df=null)}; AR6=function(k){var p=p===void 0?!1:p;k.logger.debug("reattachVideoSource");k.mediaElement&&(k.Dr?(Wu(k),k.Wk(),$cq(k,p)):(k.videoData.Jp&&k.videoData.Jp.Y3(),k.mediaElement.stopVideo()),k.playVideo())}; mcT=function(k,p){k.ih.D("html5_log_rebuffer_reason")&&(p={r:p,lact:VP()},k.mediaElement&&(p.bh=lV(k.mediaElement)),k.yT("bufreason",p))}; Vfw=function(k,p){if(k.ih.DB()&&k.mediaElement){var t=k.mediaElement.pE();t.omt=(k.mediaElement.getCurrentTime()+k.Yx()).toFixed(3);t.ps=k.playerState.state.toString(16);t.rt=(g.VT(k.ZB().provider)*1E3).toFixed();t.e=p;k.M$[k.E_++%5]=t}try{if(p==="timeupdate"||p==="progress")return}catch(J){}k.logger.debug(function(){return"video element event "+p})}; Wh9=function(k){if(k.ih.DB()){k.M$.sort(function(J,q){return+J.rt-+q.rt}); for(var p=g.Z(k.M$),t=p.next();!t.done;t=p.next())t=t.value,k.yT("vpe",Object.assign({t:t.rt},t));k.M$=[];k.E_=0}}; Dcu=function(k){if(g.RY("cobalt")&&g.RY("nintendo switch")){var p=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;k.yT("nxdock",{d:p})}}; VS=function(k,p){var t;(t=k.Ey)==null||qb(t,p)}; BVM=function(k,p){return g.hF(k.videoData)&&k.yF?k.yF.handleError(p,void 0):!1}; lhT=function(k){FO(k.videoData,"html5_set_debugging_opt_in")&&(k=g.Iu(),g.Xa(0,183)||(Bz(183,!0),k.save()))}; sGw=function(k){return g.hF(k.videoData)&&k.yF?K$(k.yF):k.videoData.jV()}; z_S=function(k,p){k.fT.yN()||(k.yT("sgap",{f:p}),k.fT.clearQueue(!1,p==="pe"))}; qF=function(k){return k.D("html5_disable_video_player_initiated_seeks")&&tx(k.videoData)}; LhS=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);JG(this.api,"isLifaAdPlaying",function(){return p.api.isLifaAdPlaying()}); this.events.V(k,"serverstitchedvideochange",function(){var t;(t=p.api.getVideoData())!=null&&t.u1()&&(p.api.isLifaAdPlaying()?(p.playbackRate=p.api.getPlaybackRate(),p.api.setPlaybackRate(1)):p.api.setPlaybackRate(p.playbackRate))}); this.playbackRate=1}; vQi=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);JG(this.api,"seekToChapterWithAnimation",function(t){p.seekToChapterWithAnimation(t)}); JG(this.api,"seekToTimeWithAnimation",function(t,J){p.seekToTimeWithAnimation(t,J)}); JG(this.api,"renderChapterSeekingAnimation",function(t,J,q){p.api.renderChapterSeekingAnimation(t,J,q)}); JG(this.api,"setMacroMarkers",function(t){p.setMacroMarkers(k,t)}); JG(this.api,"changeMarkerVisibility",function(t,J,q){p.changeMarkerVisibility(t,J,q)}); JG(this.api,"isSameMarkerTypeVisible",function(t){return p.isSameMarkerTypeVisible(t)})}; cRL=function(k,p,t){var J=k.api.getCurrentTime()*1E3<p?1:-1;k.api.renderChapterSeekingAnimation(J,t);k.api.seekTo(p/1E3,void 0,void 0,void 0,3)}; nQ0=function(k,p){var t,J;return(t=FG(k,"macroMarkersListEntity",p))==null?void 0:(J=t.markersList)==null?void 0:J.markerType}; wrj=function(k,p){var t=g.Kq.getState().entities;k=nQ0(t,k);p=g.Z(p.gs);for(var J=p.next();!J.done;J=p.next())if(k===nQ0(t,J.value))return!0;return!1}; Dh=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"videodatachange",function(){p.updateMetadata()}); this.events.V(k,"presentingplayerstatechange",function(){igS(p)})}; sg=function(k,p){try{navigator.mediaSession.setActionHandler(k,p)}catch(t){}}; QG9=function(k){sg("play",function(){k.api.playVideo()}); sg("pause",function(){k.api.pauseVideo()}); sg("seekbackward",function(){k.api.seekBy(-5*k.api.getPlaybackRate())}); sg("seekforward",function(){k.api.seekBy(5*k.api.getPlaybackRate())}); sg("seekto",function(p){((p=p.seekTime)||k.api.D("web_player_misc_bugfix_a")&&p!=null)&&k.api.seekTo(p)})}; PUw=function(k){var p,t,J,q;return(p=k.api.getVideoData().getWatchNextResponse())==null?void 0:(t=p.playerOverlays)==null?void 0:(J=t.playerOverlayRenderer)==null?void 0:(q=J.browserMediaSession)==null?void 0:q.browserMediaSessionRenderer}; GHS=function(k){var p=[];if(!k||!k.thumbnails)return p;k=g.Z(k.thumbnails);for(var t=k.next();!t.done;t=k.next())t=t.value,t.url&&(!t.width||t.width<=0||!t.height||t.height<=0||g.Oq(t.url)&&p.push({src:t.url||"",sizes:t.width+"x"+t.height,type:"image/jpeg"}));return p}; igS=function(k){k=k.api.getPlayerStateObject();k=k.isCued()||k.isError()?"none":k.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=k}; IDe=function(k){var p=k.api.getProgressState().seekableEnd;p&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:p,playbackRate:k.api.getPlaybackRate(),position:k.api.getCurrentTime()})}; Lt=function(k){ME.call(this,k);var p=this;this.Y=new Map;this.N=this.T=void 0;this.compositeVideoState=null;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"modulecreated",function(t){var J;a:{var q,F,d,S=(q=p.api.getVideoData())==null?void 0:(F=q.getPlayerResponse())==null?void 0:(d=F.overlay)==null?void 0:d.playerControlsOverlayRenderer;if(S&&(q=g.e(S.compositeVideoOverlay,Xri),q==null?0:(J=q.sources)==null?0:J.length))for(J=g.Z(q==null?void 0:q.sources),q=J.next();!q.done;q=J.next())if(q= q.value,q.isActive){J=q;break a}J=void 0}t==="captions"&&(J==null?void 0:J.topLeftCornerX)!==void 0&&(J==null?void 0:J.topLeftCornerY)!==void 0&&(J==null?void 0:J.width)!==void 0&&(J==null?void 0:J.height)!==void 0&&p.api.cA({top:J.topLeftCornerY,right:1-J.topLeftCornerX-J.width,bottom:1-J.topLeftCornerY-J.height,left:J.topLeftCornerX})}); this.events.V(k,"videodatachange",function(t){var J=p.api.getVideoData();p.T=void 0;p.Y.clear();p.api.VM("compositeembargo",1);var q=J==null?void 0:J.tE.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(q==null?0:q.length)?RXT(p,q.filter(function(F){return B_i(p,F)})):(J==null?0:J.cueRanges)&&RXT(p,J.cueRanges.filter(function(F){return B_i(p,F)})); t==="dataupdated"&&(J==null?void 0:J.compositeLiveStatusToken)!==p.N&&(p.N=J==null?void 0:J.compositeLiveStatusToken,p.api.gZ())}); this.events.V(k,g.pT("compositeembargo"),function(t){var J;if(((J=p.T)==null?void 0:J.id)!==t.id&&(p.api.iO(!0),p.Y.has(t.id))){var q=p.Y.get(t.id);J=p.api.getVideoData();q=g.Z(q);for(var F=q.next();!F.done;F=q.next()){var d=void 0;F=(d=F.value.compositeEmbargo)==null?void 0:d.embargoStatusToken;J.M5!==F&&(J.M5=F,p.api.gZ());zXe(p,t)}}}); this.events.V(k,g.tA("compositeembargo"),function(t){var J;if(((J=p.T)==null?void 0:J.id)===t.id&&(p.api.iO(!1),p.Y.has(t.id))){if(t=p.api.getVideoData())t.M5=void 0;p.api.gZ();zXe(p)}}); this.events.V(k,"heartbeatRequest",function(t){p.compositeVideoState!==null&&(t.playbackState||(t.playbackState={}),t.playbackState.compositeVideoState=p.compositeVideoState)}); this.events.V(k,"internalaudioformatchange",function(t){if(p.api.D("html5_sabr_enable_server_xtag_selection")){var J=p.api.getVideoData(void 0,!0);if(J&&a7(J)){var q=p.api.getAvailableAudioTracks();q=g.Z(q);for(var F=q.next();!F.done;F=q.next())if(F.value.getLanguageInfo().getId()===t){J.M_=t;break}}}}); this.events.V(k,"onPlaybackAudioChange",function(){p.api.gZ()}); JG(k,"setCompositeParam",function(t){p.compositeVideoState=t})}; zXe=function(k,p){var t;((t=k.T)==null?void 0:t.id)!==(p==null?void 0:p.id)&&(k.T&&(k.Y.delete(k.T.id),k.api.Bl([k.T],1)),k.T=p)}; RXT=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){var J=t.value,q=void 0;t=Number((q=J.playbackRelativePosition)==null?void 0:q.utcTimeMs)/1E3;var F=void 0;q=t+Number((F=J.duration)==null?void 0:F.seconds);F="composite_embargo_"+t;J.onEnter&&(J=J.onEnter.filter(k.C),J.length&&(k.Y.set(F,J),k.api.addUtcCueRange(F,t,q,"compositeembargo",!1)))}}; B_i=function(k,p){var t;return(t=p.onEnter)==null?void 0:t.some(k.C)}; eX9=function(k){ME.call(this,k);JG(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));JG(this.api,"updateDownloadState",this.updateDownloadState.bind(this));JG(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));JG(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));JG(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));JG(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));JG(this.api,"setUpPositionSyncInterval", this.setUpPositionSyncInterval.bind(this))}; vu=function(k){ME.call(this,k);var p=this;JG(k,"getAvailableQualityData",function(){return p.getAvailableQualityData()}); JG(k,"getAvailableQualityDataAndMessaging",function(){return p.getAvailableQualityDataAndMessaging()})}; hX0=function(k,p,t){var J=[],q=p?156595:151874;k=g.Z(k);for(var F=k.next();!F.done;F=k.next()){var d=F.value;F=d.video;d={formatId:d.id,qualityLabel:F.qualityLabel,quality:F.quality,isPlayable:p};if(F=t.get(F.qualityLabel))d.paygatedQualityDetails={paygatedIndicatorText:F.paygatedIndicatorText,endpoint:F.endpoint,veType:q,trackingParams:F.trackingParams};J.push(d)}return J}; aDM=function(k){for(var p=0,t=0;t<k.length;t++)if(k[t].paygatedQualityDetails){var J=k[t];k.splice(t,1);k.splice(p,0,J);p++}}; Mf_=function(k){var p=new Set,t=new Map,J={};k=g.Z(k);for(var q=k.next();!q.done;q=k.next()){q=q.value;var F=q.quality,d=q.isPlayable,S=q.qualityLabel;S&&F&&(d&&t.has(F)&&t.get(F)!==S?p.add(F):d&&t.set(F,S),J[S]||(J[S]=q))}t=[];J=g.Z(Object.values(J));for(k=J.next();!k.done;k=J.next())q=k.value,(k=q.quality)&&!p.has(k)&&(q.formatId=void 0),t.push(q);return t}; cu=function(k){ME.call(this,k);var p=this;this.N=1;this.Sz=null;this.u3={GJO:function(){return p.N}}; this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"d6de4videobindingchange",function(t){p.kH(t)}); this.events.V(k,"csiinitialized",function(){gQ0(p)})}; gQ0=function(k){if(uXL()){k.Sz=k.api.WN();k.T=new Mi;k.N=2;var p=g.dU(k.api.G().experiments,"html5_d6de4_defer_timeout_ms");k.Sz.qR("pt_pish");p?g.fY(function(){lDq(k)},p):k.api.D("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){lDq(k)}):lDq(k)}}; lDq=function(k){if(uXL()){k.Sz=k.api.WN();var p=g.dU(k.api.G().experiments,"html5_d6de4_cloud_project_number");k.Sz.qR("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:p}).then(function(J){k.Y=J;var q;(q=k.T)==null||q.resolve();k.Sz.qR("pt_pif")}).catch(function(J){nt(J,"player_start"); k.Sz.qR("pt_pie");var q;(q=k.T)==null||q.reject(J)})}catch(J){nt(J,"player_start_catch"); k.api.yT("pfes",{});var t;(t=k.T)==null||t.reject(J)}}}; jG9=function(k,p){if(k.Y&&!k.D("html5_disable_d6de4_mint_debug")){var t=p.videoId;k.N=3;k.Sz.qR("pt_ms");try{k.Y.requestToken(t).then(function(J){k.Sz.qR("pt_mf");if(J=Js(J))p.U8={ZZy:J}}).catch(function(J){k.Sz.qR("pt_me"); nt(J,"player_generate");k.handleError(J,p)})}catch(J){nt(J,"player_generate_catch"),k.handleError(J,p)}}}; Ogh=function(k,p){k.api.D("html5_enable_d6de4_cold_start_and_error")&&(p.U8={coldStartInfo:{clientState:k.N}})}; nt=function(k,p){k.message&&g.wt(Error(p+"_"+k.message))}; uXL=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; wF=function(k){g.M.call(this,{K:"button",S6:["ytp-pip-button","ytp-button"],J:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},U:[RNL()]});var p=this;this.api=k;this.listen("click",this.onClick);var t=this.api.D5(),J=t.subscribe("visibilitystatechange",function(){p.Zr(t.Z5())}); this.addOnDisposeCallback(function(){t.Jo(J)}); ZB(k,this.element,this);this.Zr(t.Z5())}; iB=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"standardControlsInitialized",function(){p.createButton()}); g.Mu(this.api.G())&&(this.D("web_watch_pip")||this.D("web_shorts_pip"))&&JG(this.api,"setDocumentPictureInPicture",function(t){p.setDocumentPictureInPicture(t)})}; Khh=function(k){var p=k.api.getVideoData();k.button.rS(p.xM)}; Hg9=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);JG(this.api,"musicDisableUi",function(){g.JB(p.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); JG(this.api,"musicEnableUi",function(){g.qN(p.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; Gr=function(k,p,t){p=p===void 0?!0:p;t=t===void 0?!1:t;g.M.call(this,{K:"div",W:"ytp-suggested-action"});var J=this;this.j=k;this.Fd=this.Y8=this.NO=this.gy=this.C=this.B=this.expanded=this.enabled=this.k8=!1;this.pp=new g.jF(function(){J.badge.element.style.width=""},200,this); this.RY=new g.jF(function(){QS(J);Pu(J)},200,this); this.IY=this.j.D("delhi_modern_web_player")?40:34;this.dismissButton=new g.M({K:"button",S6:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.z(this,this.dismissButton);this.N=new g.M({K:"div",W:"ytp-suggested-action-badge-expanded-content-container",U:[{K:"label",W:"ytp-suggested-action-badge-title",sy:"{{badgeLabel}}"},this.dismissButton]});g.z(this,this.N);this.Oy=new g.M({K:"div",W:"ytp-suggested-action-badge-icon-container",U:[p?{K:"div",W:"ytp-suggested-action-badge-icon"}: ""]});g.z(this,this.Oy);this.badge=new g.M({K:t?"div":"button",S6:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[this.Oy,this.N]});g.z(this,this.badge);this.badge.QT(this.element);this.L=new g.K1(this.badge,250,!1,100);g.z(this,this.L);this.B0=new g.K1(this.N,250,!1,100);g.z(this,this.B0);this.Jp=new g.lv(this.ssY,null,this);g.z(this,this.Jp);this.v0=new g.lv(this.I1,null,this);g.z(this,this.v0);g.z(this,this.pp);g.z(this,this.RY);this.j.createServerVe(this.badge.element, this.badge,!0);this.j.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.V(this.j,"onHideControls",function(){J.vP(!1)}); this.V(this.j,"onShowControls",function(){J.vP(!0)}); this.V(this.badge.element,"click",this.wN);this.V(this.dismissButton.element,"click",this.OR);this.V(this.j,"pageTransition",this.Gg);this.V(this.j,"appresize",this.uO);this.V(this.j,"fullscreentoggled",this.mP8);this.V(this.j,"cardstatechange",this.rjT);this.V(this.j,"annotationvisibility",this.dAG,this);this.V(this.j,"offlineslatestatechange",this.zg8,this)}; QS=function(k){g.$E(k.badge.element,"ytp-suggested-action-badge-with-controls",k.NO||!k.B)}; Pu=function(k,p){var t=k.PA();k.expanded!==t&&(k.expanded=t,p===void 0||p?(k.Jp.stop(),k.v0.stop(),k.pp.stop(),k.Jp.start()):(k.N.rS(k.expanded),g.$E(k.badge.element,"ytp-suggested-action-badge-expanded",k.expanded)),k.CY())}; xcL=function(k){var p=k.text||"",t=g.lh("ytp-suggested-action-badge-title",k.element);t&&g.$W(t,p);k.badge.element.setAttribute("aria-label",p);k.dismissButton.element.setAttribute("aria-label",k.W0?k.W0:"")}; Iz=function(k,p,t,J,q,F){var d={K:"div",W:"ytp-panel"};if(t){var S="ytp-panel-back-button";var U="ytp-panel-title";var f={K:"div",W:"ytp-panel-header",U:[{K:"div",S6:["ytp-panel-back-button-container"],U:[{J:{"aria-label":"Back to previous menu"},K:"button",S6:["ytp-button",S]}]},{K:"span",S6:[U],J:k.D("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,U:[t]}]};if(q){var b="ytp-panel-options";f.U.push({K:"button",S6:["ytp-button",b],U:[J]})}d.U=[f]}J=!1;F&&(F={K:"div", W:"ytp-panel-footer",U:[F]},J=!0,d.U?d.U.push(F):d.U=[F]);g.EY.call(this,d);this.content=p;J&&d.U?p.QT(this.element,d.U.length-1):p.QT(this.element);this.Ml=!1;this.SO=J;t&&(t=this.Kp(U),this.V(this.Kp(S),"click",this.Yy),this.V(t,"click",this.Yy),this.Ml=!0,q&&this.V(this.Kp(b),"click",q));p.subscribe("size-change",this.CQ,this);this.V(k,"fullscreentoggled",this.CQ);this.j=k}; g.XM=function(k,p,t,J,q,F){p=p===void 0?null:p;var d={role:"menu"};p&&(d.id=p);p=new g.EY({K:"div",W:"ytp-panel-menu",J:d});Iz.call(this,k,p,t,J,q,F);this.menuItems=p;this.items=[];g.z(this,this.menuItems)}; g.Rz=function(k){for(var p=g.Z(k.items),t=p.next();!t.done;t=p.next())t.value.unsubscribe("size-change",k.vr,k);k.items=[];try{g.J1(k.menuItems.element)}catch(F){var J,q;g.wt(new g.hm("Failed to remove menu items from panel menu.",{error:F.message,originalStack:F.stack,childToBeRemoved:(q=(J=k.menuItems.element.firstChild)==null?void 0:J.textContent)!=null?q:"child element not found"}))}k.menuItems.publish("size-change")}; kdM=function(k,p){return p.priority-k.priority}; g.Bu=function(k,p){g.GB.call(this,k,{K:"div",S6:["ytp-popup",p||""]},100,!0);this.T=[];this.Z=this.S=null;this.maxHeight=this.maxWidth=0;this.size=new g.YY(0,0);this.listen("keydown",this.LS)}; pa6=function(k){var p=k.T[k.T.length-1];if(p){g.CZ(k.element,k.maxWidth||"100%",k.maxHeight||"100%");g.S4(p.element,"width","");g.S4(p.element,"height","");g.S4(p.element,"maxWidth","100%");g.S4(p.element,"maxHeight","100%");g.S4(p.content.element,"height","");var t=g.AK(p.element);t.width+=1;t.height+=1;g.S4(p.element,"width",t.width+"px");g.S4(p.element,"height",t.height+"px");g.S4(p.element,"maxWidth","");g.S4(p.element,"maxHeight","");var J=0;p.Ml&&(J=g.AK(p.Kp("ytp-panel-header")).height);var q= 0;p.SO&&(q=p.Kp("ytp-panel-footer"),g.S4(q,"width",t.width+"px"),q=g.AK(q).height);g.S4(p.content.element,"height",t.height-J-q+"px");p.element instanceof HTMLElement&&(J=p.element,q=J.scrollWidth-J.clientWidth,J.offsetWidth-J.clientWidth>0&&q>0&&(t.width+=q,g.S4(p.element,"width",t.width+"px")));k.size=t}}; g.zr=function(k,p){var t=k.T[k.T.length-1];t!==p&&(k.T.push(p),tjM(k,t,p))}; g.ee=function(k){if(!(k.T.length<=1)){var p=k.T.pop(),t=k.T[0];k.T=[t];tjM(k,p,t,!0)}}; tjM=function(k,p,t,J){JpM(k);p&&(p.unsubscribe("size-change",k.cG,k),p.unsubscribe("back",k.AM,k));t.subscribe("size-change",k.cG,k);t.subscribe("back",k.AM,k);if(k.NW){g.JB(t.element,J?"ytp-panel-animate-back":"ytp-panel-animate-forward");t.QT(k.element);t.focus();k.element.scrollLeft=0;k.element.scrollTop=0;var q=k.size;pa6(k);g.CZ(k.element,q);k.S=new g.jF(function(){o1i(k,p,t,J)},20,k); k.S.start()}else t.QT(k.element),p&&p.detach()}; o1i=function(k,p,t,J){k.S.dispose();k.S=null;g.JB(k.element,"ytp-popup-animating");J?(g.JB(p.element,"ytp-panel-animate-forward"),g.qN(t.element,"ytp-panel-animate-back")):(g.JB(p.element,"ytp-panel-animate-back"),g.qN(t.element,"ytp-panel-animate-forward"));g.CZ(k.element,k.size);k.Z=new g.jF(function(){g.qN(k.element,"ytp-popup-animating");p.detach();g.Fz(p.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);k.Z.dispose();k.Z=null},250,k); k.Z.start()}; JpM=function(k){k.S&&g.K2(k.S);k.Z&&g.K2(k.Z)}; hl=function(k){g.Bu.call(this,k,"ytp-shopping-product-menu");this.gI=new g.XM(this.j);g.z(this,this.gI);this.hide();g.zr(this,this.gI);g.cO(this.j,this.element,4)}; FLM=function(k,p,t){var J,q=p==null?void 0:(J=p.text)==null?void 0:J.simpleText;q&&(t=qvi(k,t,q,p==null?void 0:p.icon,p==null?void 0:p.secondaryIcon),p.navigationEndpoint&&t.listen("click",function(){k.j.zb("innertubeCommand",p.navigationEndpoint);k.hide()},k))}; $he=function(k,p,t){var J,q=p==null?void 0:(J=p.text)==null?void 0:J.simpleText;q&&qvi(k,t,q,p==null?void 0:p.icon).listen("click",function(){var F;(p==null?void 0:(F=p.icon)==null?void 0:F.iconType)==="HIDE"?k.j.publish("featuredproductdismissed"):p.serviceEndpoint&&k.j.zb("innertubeCommand",p.serviceEndpoint);k.hide()},k)}; qvi=function(k,p,t,J,q){p=new g.zB(g.eP({},[],!1,!!q),p,t);q&&p.updateValue("secondaryIcon",dh9(q));p.setIcon(dh9(J));g.z(k,p);k.gI.Ru(p,!0);return p}; dh9=function(k){if(!k)return null;switch(k.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{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{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{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 w7T();case "HIDE":return{K:"svg",J:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"g",U:[{K:"path",J:{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 At()}}; az=function(k){Gr.call(this,k,!1,!0);this.isCounterfactual=this.Y=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.B=!0;this.overflowButton=new g.M({K:"button",S6:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.M({K:"img",W:"ytp-suggested-action-badge-img",J:{src:"{{url}}"}}); this.thumbnailImage.hide();g.z(this,this.thumbnailImage);this.thumbnailIcon=new g.M({K:"div",W:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.z(this,this.thumbnailIcon);this.banner=new g.M({K:"a",W:"ytp-suggested-action-container",U:[this.thumbnailImage,this.thumbnailIcon,{K:"div",W:"ytp-suggested-action-details",U:[{K:"text",W:"ytp-suggested-action-title",sy:"{{title}}"},{K:"text",W:"ytp-suggested-action-subtitle",sy:"{{subtitle}}"},{K:"text",W:"ytp-suggested-action-metadata-text", sy:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.z(this,this.banner);this.banner.QT(this.N.element);this.V(this.j,"videodatachange",this.onVideoDataChange);this.V(this.j,g.pT("suggested_action_view_model"),this.MWy);this.V(this.j,g.tA("suggested_action_view_model"),this.xP8);this.V(this.overflowButton.element,"click",this.iS);this.V(k,"featuredproductdismissed",this.OR);this.j.createServerVe(this.banner.element,this.banner,!0)}; E1i=function(k){k.isInitialized&&(k.enabled=k.isVisible,k.Y8=k.isVisible,Pu(k),k.uO(),k.thumbnailImage.rS(k.isVisible),k.shouldHideDismissButton||k.dismissButton.rS(k.isVisible),k.shouldShowOverflowButton&&k.overflowButton.rS(k.isVisible))}; MF=function(){az.apply(this,arguments)}; Sv9=function(k){ME.call(this,k);this.T=new MF(this.api);g.z(this,this.T);g.cO(this.api,this.T.element,4)}; gF=function(k){ME.call(this,k);var p=this;this.T="";this.N=!0;this.Y=this.api.D("html5_enable_audio_track_stickiness_phase_two");var t=new g.nC(k);g.z(this,t);t.V(k,"internalaudioformatchange",function(J,q){Uhi(p,J,q)}); t.V(k,"videoplayerreset",function(){fxe(p)}); t.V(k,"videodatachange",function(J,q){p.onVideoDataChange(J,q)})}; Uhi=function(k,p,t){if(t){var J="";bAi(k,p)&&(J=p,k.Y||(k.T=p),k.api.D("html5_sabr_enable_server_xtag_selection")&&(t=k.api.getVideoData(void 0,!0)))&&(t.M_=p);if(k.Y&&J&&Nre(k,J)){var q;dY(kL(k.api.G(),(q=k.api.getVideoData())==null?void 0:g.eJ(q)),function(F){ypL(k,J,F)})}}}; fxe=function(k){if(k.T)YvS(k);else{var p;if(k.Y&&((p=I5())==null?0:p.size)){var t;dY(kL(k.api.G(),(t=k.api.getVideoData())==null?void 0:g.eJ(t)),function(J){if((J=Tr0(J))&&Nre(k,J)){var q=k.api.getVideoData(void 0,!0);q&&(q.M_=J)}})}}}; YvS=function(k){var p=k.api.getVideoData(void 0,!0);p&&(p.M_=k.T)}; ypL=function(k,p,t){Tr0(t)!==p&&(rpS([{settingItemId:uB(t),settingOptionValue:{stringValue:p}}]),dY(k.DM(),function(J){yzL(J,uB(t),{stringValue:p})}))}; ZAe=function(k,p){EJ(dY(dY(k.DM(),function(t){return bV_(t,[uB(p)])}),function(t){if(t){t=g.Z(t); for(var J=t.next();!J.done;J=t.next()){var q=J.value;J=q.key;q=q.value;J&&q&&rpS([{settingItemId:J,settingOptionValue:q}])}}}),function(){k.N=!0})}; bAi=function(k,p){k=k.api.getAvailableAudioTracks();k=g.Z(k);for(var t=k.next();!t.done;t=k.next())if(t=t.value,t.getLanguageInfo().getId()===p)return t;return null}; Tr0=function(k){k=uB(k);var p=I5();k=p?p.get(k):void 0;return k&&k.stringValue?k.stringValue:""}; uB=function(k){var p=(484).toString();k&&(p=(483).toString());return p}; Nre=function(k,p){var t;return p.split(".")[0]!==""&&((t=k.api.getVideoData())==null?void 0:!a7(t))}; rpS=function(k){var p=I5();p||(p=new Map);k=g.Z(k);for(var t=k.next();!t.done;t=k.next())t=t.value,p.set(t.settingItemId,t.settingOptionValue);p=JSON.stringify(Object.fromEntries(p));g.cz("yt-player-user-settings",p,2592E3)}; g.lB=function(k,p,t,J,q,F,d){g.zB.call(this,g.eP({"aria-haspopup":"true"}),p,k);this.Pp=J;this.B=!1;this.N=null;this.options={};this.Y=new g.XM(t,void 0,k,q,F,d);g.z(this,this.Y);this.listen("keydown",this.rQ);this.listen("click",this.open)}; Csi=function(k){if(k.N){var p=k.options[k.N];p.element.getAttribute("aria-checked");p.element.setAttribute("aria-checked","false");k.N=null}}; Api=function(k,p){g.lB.call(this,"Sleep timer",g.o6.SLEEP_TIMER,k,p);this.j=k;this.L={};this.S=this.uK("Off");this.Z=this.T="";k.D("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", fill:"#fff"}}]});this.C=new g.M({K:"div",S6:["ytp-menuitem-label-wrapper"],U:[{K:"div",sy:"End of video"},{K:"div",S6:["ytp-menuitem-sublabel"],sy:"{{content}}"}]});g.z(this,this.C);this.listen("click",this.onClick);this.V(k,"videodatachange",this.onVideoDataChange);this.V(k,"presentingplayerstatechange",this.Zr);this.V(k,"settingsMenuVisibilityChanged",this.d2G);k.createClientVe(this.element,this,218889);this.Zr();this.j.zb("onSleepTimerFeatureAvailable")}; mh0=function(k){var p="Off 10 15 20 30 45 60".split(" "),t;((t=k.j.getVideoData())==null?0:t.isLivePlayback)||p.push("End of video");t=k.j.getPlaylist();var J;t&&((J=t.listId)==null?void 0:J.type)!=="RD"&&p.push("End of playlist");k.jt(g.DR(p,k.uK));k.L=g.Y2(p,k.uK,k);p=k.uK("End of video");k.options[p]&&g.BO(k.options[p],k.C)}; VjS=function(k,p){var t=k.L[p],J=t==="End of video"||t==="End of playlist";t==="Off"&&(k.T="");k.j.getPlayerState()!==0&&k.j.getPlayerState()!==5||!J?(k.S=p,g.lB.prototype.s7.call(k,p),k.mF(p),k.j.zb("onSleepTimerSettingsChanged",t)):k.j.zb("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; je=function(k){ME.call(this,k);var p=this;k.addEventListener("settingsMenuInitialized",function(){p.menuItem||(p.menuItem=new Api(p.api,p.api.t_()),g.z(p,p.menuItem))}); k.addEventListener("openSettingsMenuItem",function(t){if(t==="menu_item_sleep_timer"){if(!p.menuItem){var J;(J=p.api.t_())==null||J.Iu()}p.menuItem.open()}}); JG(k,"resetSleepTimerMenuSettings",function(){p.resetSleepTimerMenuSettings()}); JG(k,"setSleepTimerTimeLeft",function(t){p.setSleepTimerTimeLeft(t)}); JG(k,"setVideoTimeLeft",function(t){p.setVideoTimeLeft(t)})}; WLT=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"onSnackbarMessage",function(t){switch(t){case 1:t=p.api.getPlayerStateObject(),t.isBuffering()&&g.u(t,8)&&g.u(t,16)&&p.api.zb("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.Kt=function(k,p,t,J,q){p=p===void 0?!1:p;J=J===void 0?!1:J;q=q===void 0?!1:q;g.o$.call(this);this.L=q;this.Z=!1;this.C=new VB(this);this.X=this.S=null;this.N=this.Y=!1;g.z(this,this.C);this.target=k;this.T=p;this.B=t||k;this.Z=J;p&&(g.Ok&&this.target.setAttribute("draggable","true"),q||(this.target.style.touchAction="none"));Og(this)}; Hu=function(k){g.Df(k.C,!k.T)}; Og=function(k){k.X=null;k.S=null;k.V(xd("over"),k.tS);k.V("touchstart",k.Iy);k.T&&k.V(xd("down"),k.DWb)}; Dhq=function(k,p){for(var t=0;t<p.changedTouches.length;t++){var J=p.changedTouches[t];if(J.identifier===k.S)return J}return null}; xd=function(k){return window.navigator.msPointerEnabled?"MSPointer"+k.charAt(0).toUpperCase()+k.substring(1):"mouse"+k}; kQ=function(k){return k&&sS0?BQ(k)||document:document}; LLh=function(k,p){g.M.call(this,{K:"div",S6:["ytp-overlay","ytp-speedmaster-overlay"],U:[{K:"div",W:"ytp-speedmaster-user-edu",U:[{K:"div",W:"ytp-speedmaster-label",sy:p},{K:"div",W:"ytp-speedmaster-icon",sy:"{{icon}}"}]}]});this.j=k;this.T=this.Kp("ytp-speedmaster-user-edu");this.updateValue("icon",nph());g.JB(this.T,"ytp-speedmaster-has-icon");this.j.createClientVe(this.T,this,173040,!0);this.u6()}; tR=function(k){ME.call(this,k);var p=this;this.C=this.N=!1;this.RY=g.dU(this.api.G().experiments,"speedmaster_touch_activation_ms")||500;this.NO=g.dU(this.api.G().experiments,"speedmaster_cancellation_movement_dp")||10;this.qO=g.dU(this.api.G().experiments,"speedmaster_playback_rate")||2;this.Y=new g.nC(k);g.z(this,this.Y);this.L="2x";this.speedmasterUserEdu=new LLh(k,this.L);g.z(this,this.speedmasterUserEdu);g.cO(this.api,this.speedmasterUserEdu.element,4);this.T=new g.Kt(this.api.Uy().GN,!0,null, !1,!0);g.z(this,this.T);this.delay=new g.jF(this.j6,this.RY,this);g.z(this,this.delay);this.Y.V(k,"videodatachange",function(){pg(p)},this); this.Y.V(k,"presentingplayerstatechange",function(){pg(p)},this); this.Y.V(k,"autonavvisibility",function(){pg(p)},this); this.api.D5().subscribe("visibilitystatechange",function(){pg(p)}); this.Y.V(k,"rootnodemousedown",function(t){p.Z=t}); this.D("web_speedmaster_spacebar_control")&&(this.Y.V(k,"keyboardserviceglobalkeydown",function(t,J){p.gy=J;v1j(p,t,!0)},this),this.Y.V(k,"keyboardserviceglobalkeyup",function(t){v1j(p,t,!1)},this))}; JR=function(k){k.delay.stop();k.T.unsubscribe("dragmove",k.S,k);k.T.unsubscribe("dragend",k.X,k);k.N&&(k.N=!1,k.speedmasterUserEdu.u6(),k.api.setPlaybackRate(k.P0),k.api.showControls(),k.Oy&&k.api.pauseVideo())}; v1j=function(k,p,t){t?p.keyCode!==32||p.repeat||k.N||!k.C||g.Oc(k.delay):JR(k)}; pg=function(k){var p,t;var J=!!k.L&&!((p=k.api.getVideoData())==null?0:p.isLivePlayback)&&!k.api.a8()&&k.api.getPresentingPlayerType()!==2&&!g.u(k.api.getPlayerStateObject(),2)&&!((t=g.US(k.api))==null?0:t.yX())&&!k.api.isEmbedsShortsMode()&&Z5(k.api.D5());k.C!==J&&(k.C=J,k.C?k.T.subscribe("dragstart",k.Y8,k):(k.T.unsubscribe("dragstart",k.Y8,k),k.T.unsubscribe("dragmove",k.S,k),k.T.unsubscribe("dragend",k.X,k),JR(k)))}; cpS=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);JG(this.api,"addPlayerResponseForAssociation",function(t){p.api.addPlayerResponseForAssociation(t)}); JG(this.api,"finishSegmentByCpn",function(t,J,q){return p.api.finishSegmentByCpn(t,J,q)}); this.events.V(k,"modulecreated",function(t){if(t==="ad"&&(t=p.api.getVideoData(1))&&(t=t.getPlayerResponse())){var J;t=(J=t.adPlacements)!=null?J:[];J=g.Z(t);for(var q=J.next();!q.done;q=J.next()){var F=t=void 0,d=void 0;if(q=(t=q.value.adPlacementRenderer)==null?void 0:(F=t.renderer)==null?void 0:(d=F.instreamVideoAdRenderer)==null?void 0:d.playerVars)t=xl(q),p.api.addPlayerResponseForAssociation({playerVars:t})}}}); this.events.V(k,"videodatachange",function(t,J){p.onVideoDataChange(t,J)})}; oG=function(k,p,t){g.Q3.call(this,p,k);this.T=t}; g.qc=function(k){g0.call(this);var p=this;this.T=k;this.X={};this.listener=function(t){p.dispatchEvent(new oG(p,t.type,t))}}; waj=function(k){var p=k.getVideoData(),t=k.QM(),J=t.KE(),q=k.G(),F=k.Ie(),d=F.ytG,S=F.Njp,U=Ug(S,"bandwidth")*8/1024,f=Ug(S,"networkactivity")/1024,b=Ug(S,"bufferhealth"),N=F.X8,y=F.playerState.state.toString(16),Y=t.getCurrentTime().toFixed(2),T=pr(t.p$(),",",3),A="";if(p.isDaiEnabled()){p.enableServerStitchedDai&&(A+=p.mj?"DS":"SS");A=p.u1()?A+"LIFA, ":A+"DAI, ";var V=F.kB;V&&(A+=V)}hx(p)&&!p.u1()&&(A+="LIFAE, ");var D;((D=k.getVideoData(1))==null?0:g.hF(D))?(A+="SSAP, ",(V=F.kB)&&(A+=V)):tx(p)&& (A+="SABR, ");if(p.fetchType){switch(p.fetchType){case "onesie":V="o";break;case "gp":V="gp";break;default:V="gvi"}A+="vd:"+V+", "}q.gf&&(A=q.gf.DP?A+"wa, ":A+"w, ");A+="s:"+y+" t:"+Y+" b:"+T+" ";t.isSeeking()&&(A+="S");t.isPaused()&&(A+="P");t.isEnded()&&(A+="E");k.isOrchestrationLeader()&&(A+=" L");(t=F.jo)&&(A+=" l:"+t.toFixed());t=F.currentTime;q=p.nk;t&&t>q.start&&t<q.end&&(A+=" as");t=A;A=g.j5(n4)("_start",void 0);q=[];y=g.Z(["pl_i","vir","or_p","orfb","pbs"]);for(Y=y.next();!Y.done;Y=y.next())Y= Y.value,(T=g.j5(n4)(Y,void 0))&&A&&(T-=A,q.push(Y+":"+Math.round(T)));A=q.join(" ");q=g.ar();y=g.vO(k).Irb;Y=p.N&&!p.N.T?"display:none":"";if((T=p.clientPlaybackNonce)&&T.length==16){T+="AAAA";V=0;D="";for(var v=0;v<20;v++)if(V=(V<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(T.charAt(v)),v%5==4){for(var w="",X=0;X<6;X++)w="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(V&31)+w,V>>=5;D+=w}T=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)+" "+(D.substr(12,4)+" "+D.substr(16, 4))}else T="";U={video_id_and_cpn:String(p.videoId)+" / "+T,codecs:"",dims_and_frames:"",bandwidth_kbps:U.toFixed(0)+" Kbps",buffer_health_seconds:b.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:N?"":"display:none",drm:N,debug_info:t,extra_debug_info:"",bandwidth_style:Y,network_activity_style:Y,network_activity_bytes:f.toFixed(0)+" KB",shader_info:y,shader_info_style:y?"":"display:none",playback_categories:""};f=J.clientWidth+"x"+J.clientHeight+(q>1?"*"+q.toFixed(2):"");b="-";d.totalVideoFrames&& (b=(d.droppedVideoFrames||0)+" dropped of "+d.totalVideoFrames);U.dims_and_frames=f+" / "+b;k=k.getVolume();d=Tow(p);var B;f=((B=p.C)==null?0:B.audio.T)?"DRC":Math.round(k*d)+"%";B=Math.round(k)+"% / "+f;k=p.wd.toFixed(1);isFinite(Number(k))&&(B+=" (content loudness "+k+"dB)");U.volume=B;U.resolution=J.videoWidth+"x"+J.videoHeight;if(J=p.Y){if(B=J.video)k=B.fps,k>1&&(U.resolution+="@"+k),(k=F.OZT)&&k.video&&(U.resolution+=" / "+k.video.width+"x"+k.video.height,k.video.fps>1&&(U.resolution+="@"+k.video.fps)), U.codecs=n19(J),!p.C||J.audio&&J.video?J.bQ&&(U.codecs+=" / "+J.bQ+"A"):U.codecs+=" / "+n19(p.C),B.Y||B.primaries?(k=B.Y||"unknown",k==="smpte2084"?k+=" (PQ)":k==="arib-std-b67"&&(k+=" (HLG)"),U.color=k+" / "+(B.primaries||"unknown"),U.color_style=""):U.color_style="display:none";if(J.debugInfo)for(U.fmt_debug_info="",J=g.Z(J.debugInfo),B=J.next();!B.done;B=J.next())B=B.value,U.fmt_debug_info+=B.label+":"+B.text+" ";U.fmt_debug_info_style=U.fmt_debug_info&&U.fmt_debug_info.length>0?"":"display:none"}J= p.isLivePlayback;B=p.FA;U.live_mode_style=J||B?"":"display:none";U.live_latency_style=J?"":"display:none";if(B)U.live_mode="Post-Live"+(dS(p)?" Manifestless":"");else if(J){B=Ug(S,"livelatency");U.live_latency_secs=B.toFixed(2)+"s";J=dS(p)?"Manifestless, ":"";p.Oy&&(J+="Windowed, ");k="Uncertain";if(B>=0&&B<120)if(p.latencyClass&&p.latencyClass!=="UNKNOWN")switch(p.latencyClass){case "NORMAL":k="Optimized for Normal Latency";break;case "LOW":k="Optimized for Low Latency";break;case "ULTRALOW":k="Optimized for Ultra Low Latency"; break;default:k="Unknown Latency Setting"}else k=p.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";J+=k;(B=F.hwy)&&(J+=", seq "+B.sequence);U.live_mode=J}!F.isGapless||xL(p)&&F.yN||(U.playback_categories+="Gapless ");U.playback_categories_style=U.playback_categories?"":"display:none";U.bandwidth_samples=Se(S,"bandwidth");U.network_activity_samples=Se(S,"networkactivity");U.live_latency_samples=Se(S,"livelatency");U.buffer_health_samples=Se(S,"bufferhealth");F=g.lE(p); if(p.cotn||F)U.cotn_and_local_media=(p.cotn?p.cotn:"null")+" / "+F;U.cotn_and_local_media_style=U.cotn_and_local_media?"":"display:none";FO(p,"web_player_release_debug")?(U.release_name="youtube.player.web_20250225_01_RC00",U.release_style=""):U.release_style="display:none";U.debug_info&&A.length>0&&U.debug_info.length+A.length<=60?U.debug_info+=" "+A:U.extra_debug_info=A;U.extra_debug_info_style=U.extra_debug_info&&U.extra_debug_info.length>0?"":"display:none";return U}; n19=function(k){var p=/codecs="([^"]*)"/.exec(k.mimeType);return p&&p[1]?p[1]+" ("+k.itag+")":k.itag}; FX=function(k,p,t,J,q){g.M.call(this,{K:"div",W:"ytp-horizonchart"});this.Z=p;this.sampleCount=t;this.C=J;this.S=q;this.index=0;this.heightPx=-1;this.N=this.Y=null;this.T=Math.round(k/t);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.Z+"em"}; $Q=function(k,p){if(k.heightPx===-1){var t=null;try{t=g.kW("CANVAS"),k.Y=t.getContext("2d")}catch(S){}if(k.Y){var J=k.T*k.sampleCount;k.N=t;k.N.width=J;k.N.style.width=J+"px";k.element.appendChild(k.N)}else for(k.sampleCount=Math.floor(k.sampleCount/4),k.T*=4,t=0;t<k.sampleCount;t++)J=g.kW("SPAN"),J.style.width=k.T+"px",J.style.left=k.T*t+"px",k.element.appendChild(J)}t=k.element.clientHeight||24;t!==k.heightPx&&(k.heightPx=t,k.Y&&(t=(window.devicePixelRatio||1)>1?2:1,k.N.height=k.heightPx*t,k.N.style.height= k.heightPx+"px",k.Y.scale(1,t)));p=g.Z(p);for(J=p.next();!J.done;J=p.next()){t=k;var q=k.index,F=J.value;for(J=0;J+2<t.C.length&&t.C[J+1]<F;)J++;F=Math.min(1,(F-t.C[J])/(t.C[J+1]-t.C[J]));if(t.Y)t.Y.fillStyle=t.S[J],t.Y.fillRect(q*t.T,0,t.T,t.heightPx),t.Y.fillStyle=t.S[J+1],t.Y.fillRect(q*t.T,t.heightPx*(1-F),t.T,t.heightPx);else{q=t.element.children[q];var d=window.devicePixelRatio||1;F=Math.min(t.heightPx,Math.round(t.heightPx*F*d)/d)||0;q.style.height=F+"px";q.style.backgroundColor=t.S[J+1];q.style.borderTop= "solid "+(t.heightPx-F)+"px "+t.S[J]}k.index=(k.index+1)%k.sampleCount}p=k.index;k.Y?k.Y.clearRect(p*k.T,0,k.T,k.heightPx):(k=k.element.children[p],k.style.height="0px",k.style.borderTop="")}; d_=function(k){var p=null;p={K:"button",S6:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],J:{title:"close"},sy:"[X]"};g.M.call(this,{K:"div",S6:["html5-video-info-panel","ytp-sfn"],U:[p,{K:"div",S6:["html5-video-info-panel-content","ytp-sfn-content"],U:[{K:"div",U:[{K:"div",sy:"Video ID / sCPN"},{K:"span",sy:"{{video_id_and_cpn}}",W:"ytp-sfn-cpn"}]},{K:"div",U:[{K:"div",sy:"Viewport / Frames"},{K:"span",sy:"{{dims_and_frames}}"}]},{K:"div",U:[{K:"div",sy:"Current / Optimal Res"},{K:"span", sy:"{{resolution}}"}]},{K:"div",U:[{K:"div",sy:"Volume / Normalized"},{K:"span",sy:"{{volume}}"}]},{K:"div",U:[{K:"div",sy:"Codecs"},{K:"span",sy:"{{codecs}}"}]},{K:"div",J:{style:"{{shader_info_style}}"},U:[{K:"div",sy:"Shader Info"},{K:"span",sy:"{{shader_info}}"}]},{K:"div",J:{style:"{{color_style}}"},U:[{K:"div",sy:"Color"},{K:"span",sy:"{{color}}"}]},{K:"div",J:{style:"{{drm_style}}"},U:[{K:"div",sy:"Protected"},{K:"span",sy:"{{drm}}"}]},{K:"div",J:{style:"{{bandwidth_style}}"},U:[{K:"div",sy:"Connection Speed"}, {K:"span",U:[{K:"span",sy:"{{bandwidth_chart}}"},{K:"span",sy:"{{bandwidth_kbps}}"}]}]},{K:"div",J:{style:"{{network_activity_style}}"},U:[{K:"div",sy:"Network Activity"},{K:"span",U:[{K:"span",sy:"{{network_activity_chart}}"},{K:"span",sy:"{{network_activity_bytes}}"}]}]},{K:"div",U:[{K:"div",sy:"Buffer Health"},{K:"span",U:[{K:"span",sy:"{{buffer_health_chart}}"},{K:"span",sy:"{{buffer_health_seconds}}"}]}]},{K:"div",J:{style:"{{live_latency_style}}"},U:[{K:"div",sy:"Live Latency"},{K:"span",U:[{K:"span", sy:"{{live_latency_chart}}"},{K:"span",sy:"{{live_latency_secs}}"}]}]},{K:"div",J:{style:"{{live_mode_style}}"},U:[{K:"div",sy:"Live Mode"},{K:"span",sy:"{{live_mode}}"}]},{K:"div",J:{style:"{{playback_categories_style}}"},U:[{K:"div",sy:"Playback Categories"},{K:"span",sy:"{{playback_categories}}"}]},{K:"div",J:{style:"{{fmt_debug_info_style}}"},U:[{K:"div",sy:"Format Debug Info"},{K:"span",sy:"{{fmt_debug_info}}"}]},{K:"div",U:[{K:"div",sy:"Mystery Text"},{K:"span",sy:"{{debug_info}}"}]},{K:"div", J:{style:"{{extra_debug_info_style}}"},U:[{K:"div",sy:""},{K:"span",U:[{K:"span",sy:"{{extra_debug_info}}"}]}]},{K:"div",U:[{K:"div",sy:"Date"},{K:"span",sy:"{{date}}"}]},{K:"div",J:{style:"{{cotn_and_local_media_style}}"},U:[{K:"div",sy:"COTN / Local Media"},{K:"span",sy:"{{cotn_and_local_media}}"}]},{K:"div",J:{style:"{{release_style}}"},U:[{K:"div",sy:"Player Release"},{K:"span",sy:"{{release_name}}"}]}]}]});this.fp=k;this.position=0;this.S=!0;p?this.V(this.Kp("ytp-sfn-close"),"click",this.hide): this.V(this.element,"click",this.hide);k=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];p="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var t=k.map(function(J){return J/4}); this.L={};this.T=new FX(300,1,150,k,p);g.z(this,this.T);this.updateValue("bandwidth_chart",this.T);this.N=new FX(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.z(this,this.N);this.updateValue("live_latency_chart",this.N);this.Y=new FX(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.z(this,this.Y);this.updateValue("buffer_health_chart",this.Y);this.Z=new FX(300,1,150,t,p);g.z(this,this.Z);this.updateValue("network_activity_chart", this.Z);this.delay=new g.jF(this.Zr,500,this);g.z(this,this.delay);this.C=new g.jF(this.B,2E4,this);g.z(this,this.C)}; Ps6=function(k){ME.call(this,k);var p=this;JG(k,"getStatsForNerds",function(){return waj(p.api)}); oB(k,"showVideoInfo",function(){iA0(p,!0)}); oB(k,"hideVideoInfo",function(){iA0(p,!1)}); oB(k,"isVideoInfoVisible",function(){return QSq(p)})}; iA0=function(k,p){var t=QSq(k);k.T||(k.T=new d_(k.api),g.z(k,k.T),g.cO(k.api,k.T.element,4));k.T.rS(p);var J=WO(k.api.EQ());J&&J.loaded&&t!==p&&J.p9();p&&k.api.yT("sfn",{},!0)}; QSq=function(k){var p;return!((p=k.T)==null||!p.NW)}; E2=function(){g.R.call(this);this.Y=null;this.startTime=this.duration=0;this.delay=new g.lv(this.T,null,this);g.z(this,this.delay)}; Gd9=function(k,p){if(p.K==="path")return p.J.d;if(p.U)for(var t=0;t<p.U.length;t++){var J=p.U[t];if(J&&typeof J!=="string"&&(J=Gd9(k,J)))return J}}; Bre=function(k,p,t){t=Gd9(k,t);var J=p.getElementsByTagName("path")[0],q=J.getAttribute("d");if(J.getAttribute("id")){var F=qq();p=p.getElementsByTagName("use");for(var d=0;d<p.length;d++)p[d].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+F);J.setAttribute("id",F)}var S=Ixh(q),U=Ixh(t);Xaj(k,function(f){J.setAttribute("d",RML(S,U,f))},200)}; Xaj=function(k,p,t){k.Y=p;k.startTime=(0,g.V9)();k.duration=t;k.T()}; Ixh=function(k){var p=[];k=k.match(zMh);for(var t=0;t<k.length;t++){var J=k[t]===" "?NaN:Number(k[t]);p.push(isNaN(J)?k[t]:J)}return p}; RML=function(k,p,t){for(var J="",q=0;q<k.length;q++){var F=k[q];J=typeof F==="number"?J+(F+(p[q]-F)*t):J+F}return J}; Sf=function(k){g.M.call(this,{K:"button",S6:["ytp-size-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},sy:"{{icon}}"});this.api=k;this.XU=null;this.transition=new E2;g.z(this,this.transition);this.V(k,"sizestylechange",this.Zr);this.V(k,"fullscreentoggled",this.Zr);this.V(k,"presentingplayerstatechange",this.Zr);k.createClientVe(this.element,this,139116);this.Zr();this.listen("click",this.onClick);ZB(k,this.element, this)}; eMT=function(k){ME.call(this,k);var p=this;this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"standardControlsInitialized",function(){p.button=new Sf(k);g.z(p,p.button);k.MY(p.button,"RIGHT_CONTROLS_RIGHT")})}; Mj9=function(k){ME.call(this,k);var p=this,t={};this.S=(t.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},t.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(J){return hM_(p,J)},t.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(J){return hM_(p,J)},t); this.C={};this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"videodatachange",function(J,q){if(J!=="dataupdated"||q.videoId!==p.videoId||!FB(p.timelyActions,axi(q)))p.onVideoDataChange(q)}); this.events.V(k,"presentingplayerstatechange",function(J){p.o3(J)}); this.events.V(k,g.pT("timelyAction"),function(J){p.onCueRangeEnter(J.getId())}); this.events.V(k,g.tA("timelyAction"),function(J){p.onCueRangeExit(J.getId())}); this.N=new g.M({K:"div",S6:["ytp-player-content","ytp-timely-actions-content"]});this.N.hide();JG(k,"insertTimelyActionUi",function(J){p.N.element.children.length>0&&g.J1(p.N.element);J.classList.add("ytp-timely-actions-overlay");p.N.element.appendChild(J)}); g.z(this,this.N);g.cO(this.api,this.N.element,4)}; g1u=function(k){k.timelyActions&&(k.C=k.timelyActions.reduce(function(p,t){if(t.cueRangeId===void 0)return p;p[t.cueRangeId]=0;return p},{}))}; U2=function(k,p){if(k.timelyActions){k=g.Z(k.timelyActions);for(var t=k.next();!t.done;t=k.next())if(t=t.value,t.cueRangeId===p)return t}}; u0S=function(k,p){if((k=U2(k,p))&&k.onCueRangeExit)return GD(k.onCueRangeExit)}; lxi=function(k){if(k.T!==void 0){var p=(p=U2(k,k.T))&&p.onCueRangeEnter?GD(p.onCueRangeEnter):void 0;var t=U2(k,k.T);if(t&&t.additionalTrigger){var J=!1;for(var q=g.Z(t.additionalTrigger),F=q.next();!F.done;F=q.next())F=F.value,F.type&&F.args&&k.S[F.type]!==void 0&&(J=J||k.S[F.type](F.args))}else J=!0;p&&J&&(k.api.zb("innertubeCommand",p),k.setTimeout(t),k.C[k.T]!==void 0&&k.C[k.T]++)}}; hM_=function(k,p){return k.Y===void 0?!1:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(p.seekLengthMilliseconds)===5E3?k.Y===72:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(p.seekLengthMilliseconds)===1E4?k.Y===74:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(p.seekLengthMilliseconds)===5E3?k.Y===71:p.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(p.seekLengthMilliseconds)===1E4?k.Y===73:!1}; axi=function(k){if(k=k.getWatchNextResponse()){var p,t;k=(p=k.playerOverlays)==null?void 0:(t=p.playerOverlayRenderer)==null?void 0:t.timelyActionsOverlayViewModel;p=g.e(k,jS9);if(p!=null&&p.timelyActions)return p==null?void 0:p.timelyActions.map(function(J){return g.e(J,OAi)}).filter(function(J){return!!J})}}; KL9=function(k){ME.call(this,k);var p=this;oB(this.api,"getPlaybackRate",function(){return p.api.getPlaybackRate()}); oB(this.api,"setPlaybackRate",function(t){typeof t==="number"&&p.api.setPlaybackRate(t)})}; HAS=function(k){k=k.b1();if(!k)return!1;k=g.pY(k).exp||"";return k.includes("xpv")||k.includes("xpe")}; xhL=function(k){k=g.Z(g.fg(k,!0));for(var p=k.next();!p.done;p=k.next())if(HAS(p.value))return!0;return!1}; k4h=function(k,p){k=g.Z(g.fg(k,!0));for(var t=k.next();!t.done;t=k.next())if(t=t.value,HAS(t)){var J={potc:"1",pot:p};t.url&&(t.url=te(t.url,J))}}; p50=function(k){var p=new Nvu,t={},J=(t["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",t);return new mk(p,k,function(){return J})}; tXM=function(k){return g.Q(function(p){if(p.T==1)return g.Aw(p,2),g.n(p,k,4);if(p.T!=2)return g.Vi(p,0);g.W9(p);g.CS(p)})}; Nc=function(k){ME.call(this,k);var p=this;this.useLivingRoomPoToken=!1;this.C=new g.yM;this.Sz=null;this.Z=!1;this.N=null;this.X=!1;var t=k.G().getWebPlayerContextConfig();this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"spsumpreject",function(J,q,F){p.X=q;J&&p.Z&&!p.N&&(p.D("html5_generate_content_po_token")&&F?p.V6(F):p.D("html5_generate_session_po_token")&&JL0(p));p.N||p.api.yT("stp",{s:+p.Z,b:+p.X})}); this.events.V(k,"poTokenVideoBindingChange",function(J){p.V6(J)}); this.useLivingRoomPoToken=!(t==null||!t.useLivingRoomPoToken);k.addEventListener("csiinitialized",function(){p.Sz=k.WN();var J=(p.D("html5_generate_session_po_token")||p.D("html5_generate_content_po_token"))&&!p.useLivingRoomPoToken;try{if(p.D("html5_use_shared_owl_instance"))o7e(p);else if(J){p.Sz.qR("pot_isc");p.D("html5_new_wpo_client")||qWM(p);var q=g.dU(p.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");q?(p.D("html5_new_wpo_client")&&(p.Y=uO()),g.fY(function(){bU(p)},q)):p.D("html5_webpo_idle_priority_job")? (p.D("html5_new_wpo_client")&&(p.Y=uO()),g.lk(g.OA(),function(){bU(p)})):bU(p)}}catch(F){F instanceof Error&&g.wt(F)}}); k.addEventListener("trackListLoaded",this.eP.bind(this));k.oI(this)}; F06=function(k){var p=l_(k.experiments,"html5_web_po_request_key");return p?p:g.mq(k)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; yc=function(k,p){if(k.D("html5_webpo_bge_ctmp")){var t,J={hwpo:!!k.T,hwpor:!((t=k.T)==null||!t.isReady())};k.api.yT(p,J)}}; o7e=function(k){var p,t;g.Q(function(J){if(J.T==1)return yc(k,"swpo_i"),k.Y=uO(),YQ(k),g.n(J,L2(),2);if(J.T!=3)return p=J.Y,yc(k,"swpo_co"),g.n(J,f06(p),3);t=J.Y;k.T=$fw(k,t);yc(k,"swpo_cc");k.T.ready().then(function(){k.C.resolve();yc(k,"swpo_re")}); g.fY(function(){bU(k);yc(k,"swpo_si")},0); g.CS(J)})}; qWM=function(k){var p=k.api.G(),t=F06(p),J=p50(t);p=new KI({WM:t,Xu:J,onEvent:function(q){(q=dfh[q])&&k.Sz.qR(q)}, onError:g.wt,WY:iWj(p.experiments),Zm:function(){return void k.api.yT("itr",{})}, ECh:p.experiments.Gb("html5_web_po_disable_remote_logging")||E7i.includes(g.Iq(p.NA)||"")});p.ready().then(function(){return void k.C.resolve()}); g.z(k,p);k.T=p}; SWe=function(k){var p=k.api.G(),t=p50(F06(p)),J=t.w3.bind(t);t.w3=function(S){var U;return g.Q(function(f){if(f.T==1)return g.n(f,J(S),2);U=f.Y;k.api.yT("itr",{});return f.return(U)})}; try{var q=new VM({Xu:t,IZ:{maxAttempts:5},qF:{disable:p.experiments.Gb("html5_web_po_disable_remote_logging")||E7i.includes(g.Iq(p.NA)||""),Js:iWj(p.experiments),lBy:k.D("wpo_dis_lfdms")?0:1E3},OTb:g.wt});var F=new gg({UX:q,Xu:t,onError:g.wt});tXM(F.b8()).then(function(){return void k.C.resolve()}); g.z(k,q);g.z(k,F);k.T=$fw(k,F)}catch(S){g.wt(S);var d;(d=q)==null||d.dispose()}}; bU=function(k){var p=k.api.G();k.Sz.qR("pot_ist");k.T?k.T.start():k.D("html5_new_wpo_client")&&SWe(k);k.D("html5_bandaid_attach_content_po_token")||(k.D("html5_generate_session_po_token")&&(YQ(k),JL0(k)),p=g.dU(p.experiments,"html5_session_po_token_interval_time_ms")||0,p>0&&(k.S=g.b6(function(){YQ(k)},p)),k.Z=!0)}; YQ=function(k){var p,t,J,q;g.Q(function(F){if(!k.D("html5_generate_session_po_token")||k.useLivingRoomPoToken)return F.return();p=k.api.G();t=g.M9("EOM_VISITOR_DATA")||g.M9("VISITOR_DATA");J=p.Ta?p.datasyncId:t;q=l_(p.experiments,"html5_mock_content_binding_for_session_token")||p.livingRoomPoTokenId||J;p.V4=TH(k,q);g.CS(F)})}; TH=function(k,p){if(!k.T)return k.Y?k.Y(p):"";try{var t=k.T.isReady();k.Sz.qR(t?"pot_cms":"pot_csms");var J="";J=k.D("html5_web_po_token_disable_caching")?k.T.Fy({pH:p}):k.T.Fy({pH:p,i6:{Kr:p,PGh:150,Rz:!0,l7:!0}});k.Sz.qR(t?"pot_cmf":"pot_csmf");if(t){var q;(q=k.N)==null||q.resolve();k.N=null;if(k.X){k.X=!1;var F;(F=k.api.app.tp())==null||F.Q8(!1)}}return J}catch(d){return g.wt(d),""}}; JL0=function(k){k.T&&(k.N=new Mi,k.T.ready().then(function(){k.Sz.qR("pot_if");YQ(k)}))}; $fw=function(k,p){k.D("html5_web_po_token_disable_caching")||p.J2(150);var t=!1,J=tXM(p.b8()).then(function(){t=!0}); return{isReady:function(){return t}, ready:function(){return J}, Fy:function(q){return p.Fy({pH:q.pH,kQ:!0,GT:!0,i6:q.i6?{Kr:q.i6.Kr,Rz:q.i6.Rz,l7:q.i6.l7}:void 0})}, start:function(){}}}; Uf9=function(k){ME.call(this,k);var p=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.nC(k);g.z(this,this.events);this.events.V(k,"heartbeatRequest",function(t){if(p.freePreviewUsageDetails.length||p.freePreviewWatchedDuration!==null)t.heartbeatRequestParams||(t.heartbeatRequestParams={}),t.heartbeatRequestParams.unpluggedParams||(t.heartbeatRequestParams.unpluggedParams={}),p.freePreviewUsageDetails.length>0?t.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= p.freePreviewUsageDetails:t.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+p.freePreviewWatchedDuration}}); JG(k,"setFreePreviewWatchedDuration",function(t){p.freePreviewWatchedDuration=t}); JG(k,"setFreePreviewUsageDetails",function(t){p.freePreviewUsageDetails=t})}; r_=function(k){g.R.call(this);this.features=[];var p=this.T,t=new CP(k),J=new g4(k),q=new vu(k),F=new Nc(k);var d=g.Ck(k.G())?void 0:new fP(k);var S=new Lt(k),U=new Ps6(k),f=new KL9(k),b=new Z2(k);var N=g.Ck(k.G())?new Uf9(k):void 0;var y=k.D("html5_enable_ssap")?new cpS(k):void 0;var Y=k.D("web_cinematic_watch_settings")&&(Y=k.G().getWebPlayerContextConfig())!=null&&Y.cinematicSettingsAvailable?new $O(k):void 0;var T=new r9(k);var A=k.D("enable_courses_player_overlay_purchase")?new LTL(k):void 0; var V=g.Mu(k.G())?new VEh(k):void 0;var D=new bK(k);var v=k.G().C?new TYw(k):void 0;var w=g.V0(k.G())?new YJL(k):void 0;var X=k.D("web_player_move_autonav_toggle")&&k.G().UF?new EI0(k):void 0;var B=g.Mu(k.G())?new vQi(k):void 0;var O=k.D("web_enable_speedmaster")&&g.Mu(k.G())?new tR(k):void 0;var l=k.G().p7?void 0:new eMT(k);var oi=k.D("report_pml_debug_signal")?new qJh(k):void 0;var $h=new eX9(k),kh=new iB(k);var h=g.Qj(k.G())?new Hg9(k):void 0;var x=navigator.mediaSession&&window.MediaMetadata&& k.G().zv?new Dh(k):void 0;var C=k.D("html5_enable_drc")&&!k.G().S?new U6(k):void 0;var a=new la(k);var zL=g.Mu(k.G())?new Sv9(k):void 0;var AC=k.D("html5_enable_d6de4")?new cu(k):void 0;var bJ=g.Mu(k.G())&&k.D("web_sleep_timer")?new je(k):void 0;var LS=g.V0(k.G())?new Zje(k):void 0;var KS=new gF(k),JC=new d9(k),Yn=new LhS(k);var W=k.D("enable_sabr_snackbar_message")?new WLT(k):void 0;var L=k.D("web_enable_timely_actions")?new Mj9(k):void 0;p.call(this,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B,O,l,oi, $h,kh,h,void 0,x,C,a,void 0,zL,AC,bJ,LS,void 0,KS,JC,Yn,void 0,W,L,new E6(k))}; ZD=function(){this.Y=this.T=NaN}; fwi=function(k,p){this.ih=k;this.timerName="";this.N=!1;this.Y=NaN;this.C=new ZD;this.T=p||null;this.N=!1}; bme=function(k,p,t){var J=g.cs(p.Cp)&&!p.Cp.S;if(p.Cp.YN&&(DZ(p.Cp)||p.Cp.j6==="shortspage"||Op(p.Cp)||J)&&!k.N){k.N=!0;k.S=p.clientPlaybackNonce;g.M9("TIMING_ACTION")||a3("TIMING_ACTION",k.ih.csiPageType);k.ih.csiServiceName&&a3("CSI_SERVICE_NAME",k.ih.csiServiceName);if(k.T){J=k.T.WN();for(var q=g.Z(Object.keys(J)),F=q.next();!F.done;F=q.next())F=F.value,Gg(F,J[F],k.timerName);J=g.j5(l1h)(k.T.qg);g.IF(J,k.timerName);J=k.T;J.Y={};J.qg={}}g.IF({playerInfo:{visibilityState:g.j5(usj)()},playerType:"LATENCY_PLAYER_HTML5"}, k.timerName);k.X!==p.clientPlaybackNonce||Number.isNaN(k.Y)||(RF("_start",k.timerName)?t=g.j5(n4)("_start",k.timerName)+k.Y:g.wt(new g.hm("attempted to log gapless pbs before CSI timeline started",{cpn:p.clientPlaybackNonce})));t&&!RF("pbs",k.timerName)&&k.tick("pbs",t)}}; NIi=function(k,p,t,J,q,F,d){k=(k===t?"video":"ad")+"_to_"+(p===t?"video":"ad");if(k!=="video_to_ad"||F!=null&&F.NO){F=k==="ad_to_video"?F:J;t=F==null?void 0:F.ST;var S={};if(J==null?0:J.S)S.cttAuthInfo={token:J.S,videoId:J.videoId};q&&(S.startTime=q);Xu(k,S);var U,f,b;J={targetVideoId:(U=J==null?void 0:J.videoId)!=null?U:"empty_video",targetCpn:p,adVideoId:(f=F==null?void 0:F.videoId)!=null?f:"empty_video",adClientPlaybackNonce:(b=t==null?void 0:t.cpn)!=null?b:F==null?void 0:F.clientPlaybackNonce}; t&&(J.adBreakType=t.adBreakType,J.adType=t.adType);g.IF(J,k);Gg("pbs",d!=null?d:(0,g.V9)(),k)}}; Cg=function(k){o50();Jnj();k.timerName=""}; yLu=function(k){if(k.T){var p=k.T;p.Y={};p.qg={}}k.N=!1;k.X=void 0;k.Y=NaN}; YWi=function(k,p){g.o$.call(this);this.Cp=k;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.L={};this.Y=0;if(k=p.session_data)this.sessionData=KF(k,"&");this.index=Math.max(0,Number(p.index)||0);this.loop=!!p.loop;this.startSeconds=Number(p.startSeconds)||0;this.title=p.playlist_title||"";this.description=p.playlist_description||"";this.author= p.author||p.playlist_author||"";p.video_id&&(this.items[this.index]=p);if(k=p.api)typeof k==="string"&&k.length===16?p.list="PL"+k:p.playlist=k;if(k=p.list)switch(p.listType){case "user_uploads":this.listId=new YL("UU","PLAYER_"+k);break;default:var t=p.playlist_length;t&&(this.length=Number(t)||0);this.listId=g.TI(k);if(k=p.video)this.items=k.slice(0),this.loaded=!0}else if(p.playlist){k=p.playlist.toString().split(",");this.index>0&&(this.items=[]);k=g.Z(k);for(t=k.next();!t.done;t=k.next())(t= t.value)&&this.items.push({video_id:t});this.length=this.items.length;if(k=p.video)this.items=k.slice(0),this.loaded=!0}this.setShuffle(!!p.shuffle);if(k=p.suggestedQuality)this.quality=k;this.L=fq(p,"playlist_");this.N=(p=p.thumbnail_ids)?p.split(","):[]}; TIe=function(k){return!!(k.playlist||k.list||k.api)}; rL0=function(k){var p=k.index+1;return p>=k.length?0:p}; Zme=function(k){var p=k.index-1;return p<0?k.length-1:p}; g.AR=function(k,p,t,J){p=p!==void 0?p:k.index;p=k.items&&p in k.items?k.items[k.order[p]]:null;var q=null;p&&(t&&(p.autoplay="1"),J&&(p.autonav="1"),q=new g.Rj(k.Cp,p),g.z(k,q),q.SB=!0,q.startSeconds=k.startSeconds||q.clipStart||0,k.listId&&(q.playlistId=k.listId.toString()));return q}; CWw=function(k,p){k.index=g.Ek(p,0,k.length-1);k.startSeconds=0}; ALi=function(k,p){if(p.video&&p.video.length){k.title=p.title||"";k.description=p.description;k.views=p.views;k.likes=p.likes;k.dislikes=p.dislikes;k.author=p.author||"";var t=p.loop;t&&(k.loop=t);t=g.AR(k);k.items=[];for(var J=g.Z(p.video),q=J.next();!q.done;q=J.next())if(q=q.value)q.video_id=q.encrypted_id,k.items.push(q);k.length=k.items.length;(p=p.index)?k.index=p:k.findIndex(t);k.setShuffle(!1);k.loaded=!0;k.Y++;k.T&&k.T()}}; W0u=function(k,p){var t,J,q,F,d,S,U;return g.Q(function(f){if(f.T==1){t=g.tc();var b=k.G(),N={context:g.pK(k),playbackContext:{contentPlaybackContext:{ancestorOrigins:b.ancestorOrigins}}},y=b.getWebPlayerContextConfig();if(y==null?0:y.encryptedHostFlags)N.playbackContext.contentPlaybackContext.encryptedHostFlags=y.encryptedHostFlags;if(y==null?0:y.hideInfo)N.playerParams={showinfo:!1};b=b.embedConfig;y=p.docid||p.video_id||p.videoId||p.id;if(!y){y=p.raw_embedded_player_response;if(!y){var Y=p.embedded_player_response; Y&&(y=JSON.parse(Y))}if(y){var T,A,V,D,v,w;y=((w=g.e((T=y)==null?void 0:(A=T.embedPreview)==null?void 0:(V=A.thumbnailPreviewRenderer)==null?void 0:(D=V.playButton)==null?void 0:(v=D.buttonRenderer)==null?void 0:v.navigationEndpoint,g.ub))==null?void 0:w.videoId)||null}else y=null}T=(T=y)?T:void 0;A=k.playlistId?k.playlistId:p.list;V=p.listType;if(A){var X;V==="user_uploads"?X={username:A}:X={playlistId:A};mfj(b,T,p,X);N.playlistRequest=X}else p.playlist?(X={templistVideoIds:p.playlist.toString().split(",")}, mfj(b,T,p,X),N.playlistRequest=X):T&&(X={videoId:T},b&&(X.serializedThirdPartyEmbedConfig=b),N.singleVideoRequest=X);J=N;q=g.Oy(VXh);g.Aw(f,2);return g.n(f,g.MT(t,J,q),4)}if(f.T!=2)return F=f.Y,d=k.G(),p.raw_embedded_player_response=F,d.P0=qI(p,g.V0(d)),d.N=d.P0==="EMBEDDED_PLAYER_MODE_PFL",F&&(S=F,S.trackingParams&&mT(S.trackingParams)),f.return(new g.Rj(d,p));U=g.W9(f);U instanceof Error||(U=Error("b259802748"));g.nV(U);return f.return(k)})}; mfj=function(k,p,t,J){t.index&&(J.playlistIndex=String(Number(t.index)+1));J.videoId=p?p:"";k&&(J.serializedThirdPartyEmbedConfig=k)}; g.Vc=function(k,p){mh.get(k);mh.set(k,p)}; g.Wr=function(k){g.o$.call(this);this.loaded=!1;this.player=k}; Dfj=function(){this.Y=[];this.T=[]}; g.fg=function(k,p){return p?k.T.concat(k.Y):k.T}; g.DD=function(k,p){switch(p.kind){case "asr":soL(p,k.Y);break;default:soL(p,k.T)}}; soL=function(k,p){g.j9(p,function(t){return k.MR(t)})||p.push(k)}; g.s2=function(k){g.R.call(this);this.fp=k;this.Y=new Dfj;this.C=null;this.X=[];this.B=[]}; g.Lg=function(k,p,t){g.s2.call(this,k);this.videoData=p;this.audioTrack=t;this.T=null;this.N=!1;this.X=p.G5;this.B=p.Ha;this.N=g.iE(p)}; g.vr=function(k,p){return KC(k.info.mimeType)?p?k.info.itag===p:!0:!1}; g.L0w=function(k,p){if(k.T!=null&&g.Ck(p.G())&&!k.T.isManifestless&&k.T.T.rawcc!=null)return!0;if(!k.m2())return!1;p=!!k.T&&k.T.isManifestless&&Object.values(k.T.T).some(function(t){return g.vr(t,"386")}); k=!!k.T&&!k.T.isManifestless&&g.h4i(k.T);return p||k}; g.cr=function(k,p,t,J,q,F){g.s2.call(this,k);this.videoId=t;this.eO=q;this.eventId=F;this.S={};this.T=null;k=J||g.pY(p).hl||"";k=k.split("_").join("-");this.N=te(p,{hl:k})}; v7M=function(k,p){this.Y=k;this.T=p;this.onFailure=void 0}; cL_=function(k,p){return{x_:k.x_&&p.x_,gf:k.gf&&p.gf,sync:k.sync&&p.sync,streaming:k.streaming&&p.streaming}}; w_=function(k,p){var t=n7j,J=this;this.path=k;this.N=p;this.C=t;this.capabilities={x_:!!this.N,gf:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.X=new v7M([{name:"compileStreaming",condition:function(q){return!!J.Y&&q.streaming}, lE:ng.d0("wmcx",function(){return WebAssembly.compileStreaming(fetch(J.path))}), onFailure:function(){return J.capabilities.streaming=!1}}, {name:"sync",condition:function(q){return q.sync}, lE:function(){return dY(w5j(J),ng.d0("wmcs",function(q){return new WebAssembly.Module(q)}))}, onFailure:function(){return J.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, lE:function(){return dY(w5j(J),ng.d0("wmca",function(q){return WebAssembly.compile(q)}))}, onFailure:function(){return J.capabilities.gf=!1}}]); this.S=new v7M([{name:"instantiateStreaming",condition:function(q){return q.gf&&q.streaming&&!J.Y&&!J.T}, lE:function(q,F){return ng.iX("wmix",function(){return WebAssembly.instantiateStreaming(fetch(J.path),F)}).then(function(d){J.T=Ju(d.module); return{instance:d.instance,DP:!1}})}, onFailure:function(){return J.capabilities.streaming=!1}}, {name:"sync",condition:function(q){return q.gf&&q.sync}, lE:function(q,F){return dY(imT(J,q),ng.d0("wmis",function(d){return{instance:new WebAssembly.Instance(d,F),DP:!1}}))}, onFailure:function(){return J.capabilities.sync=!1}}, {name:"async",condition:function(q){return q.gf}, lE:function(q,F){return dY(dY(imT(J,q),ng.d0("wmia",function(d){return WebAssembly.instantiate(d,F)})),function(d){return{instance:d, DP:!1}})}, onFailure:function(){return J.capabilities.gf=!1}}, {name:"asmjs",condition:function(q){return q.x_}, lE:function(q,F){return Ju(ng.iX("wmij",function(){return J.N(F)}).then(function(d){return{instance:{exports:d}, DP:!0}}))}, onFailure:function(){return J.capabilities.x_=!1}}],function(q,F,d){return J.C(d,q.instance.exports)})}; G4j=function(k){var p=Qo6;return p.instantiate(k?cL_(p.capabilities,k):p.capabilities,new PWu)}; w5j=function(k){if(k.Y)return k.Y;var p=fetch(k.path).then(function(t){return t.arrayBuffer()}).then(function(t){k.Y=Ju(t); return t}).then(void 0,function(t){g.wt(Error("wasm module fetch failure: "+t.message,{cause:t})); k.Y=void 0;throw t;}); k.Y=Ju(p);return k.Y}; imT=function(k,p){if(!p.gf)return qm(Error("wasm unavailable"));if(k.T)return k.T;k.T=EJ(dY(k.compile(p),function(t){k.T=Ju(t);return t}),function(t){g.wt(Error("wasm module compile failure: "+t.message,{cause:t})); k.T=void 0;throw t;}); return k.T}; Iwq=function(){}; X5e=function(){var k=this;this.proc_exit=function(){}; this.fd_write=function(p,t,J){if(!k.exports)return 1;p=new Uint32Array(k.exports.memory.buffer,t,J*2);t=[];for(var q=0;q<J;++q){var F=new Uint8Array(k.exports.memory.buffer,p[q*2],p[q*2+1]);F=g.VV(F);t.push(F)}return t.reduce(function(d,S){return d+S.length},0)}}; PWu=function(){this.env=new Iwq;this.wasi_snapshot_preview1=new X5e}; n7j=function(k,p){k.wasi_snapshot_preview1.exports=p;k=Math.floor(Math.random()*256);var t=Math.floor(Math.random()*256),J=0;try{J=p.malloc(16);(new Uint8Array(p.memory.buffer,J,16)).fill(k);if(p.sentinel(J,16,t)!==t*16%256)return!1;for(var q=new Uint8Array(p.memory.buffer,J,16),F=0;F<16;F++)if(q[F]!==(k+t)%256)return!1;return!0}finally{J!==0&&p.free(J)}}; RTe=function(k,p){this.instance=k;this.DP=p;this.exports=this.T=this.instance.exports}; zTi=function(k,p,t){t=t===void 0?!1:t;var J=J===void 0?!0:J;var q=ng.R5();return dY(BIi(k,p,{x_:t,gf:!0,sync:!0,streaming:!0},J),function(F){ng.g5(F.DP?"winitjs":"winit",q);return F})}; BIi=function(k,p,t,J){J=J===void 0?!0:J;Qo6||(Qo6=new w_(k,p));return dY(G4j(t),function(q){return new RTe(q.instance,q.DP,J)})}; eTe=function(k,p){g.R.call(this);var t=this;this.j=k;this.T=p;this.qg={};this.Y={};this.N=null;this.C=new Set;this.X=new g.nC(this);this.u3={iMh:function(){return t.T}, RI:function(){return t.RI()}}; this.S=this.j.D("web_player_defer_modules");this.TC=new Map;g.z(this,this.X);this.X.V(k,"videodatachange",this.onVideoDataChange)}; g.iU=function(k){return k.TC.get("captions")}; lw9=function(k,p){switch(p){case "ad":return hTj(k);case "annotations_module":return k.j.isEmbedsShortsMode()?k=!1:(p=k.j,k=p.G(),p=p.getVideoData(),k=k.N||p.Kz||k.controlsType==="3"?!1:k.Oy.isEmpty()&&k.playerStyle!=="annotation-editor"&&k.playerStyle!=="live-dashboard"?!!p.k8||!!g.ce(p)||!!g.ny(p):!0),k;case "asmjs":return k.j.G().D("html5_allow_asmjs");case "creatorendscreen":return awj(k);case "embed":return g.V0(k.j.G());case "endscreen":return g.MXj(k);case "heartbeat":return k.x3();case "kids":return Ir(k.j.G()); case "remote":return k.j.G().wd;case "miniplayer":return k.j.G().showMiniplayerUiWhenMinimized;case "offline":return k.j.G().Xo;case "captions":return g7q(k);case "unplugged":return g.nl(k.j.G());case "ux":return k.j.G().pp;case "webgl":return u8L(k);case "ypc":return k.EK();case "ypc_clickwrap":return k=k.j.getVideoData(),k.Gt&&!k.yJ;case "yto":return!!k.j.getVideoData().P0.includes("yto");default:return g.nV(Error("Module descriptor "+p+" does not match")),!1}}; Qc=function(k,p,t,J,q){var F;t=t===void 0?!1:t;J=J===void 0?!1:J;var d=k.TC.get(p);if(!d||J)if(q||(q=function(){Qc(k,p,t,J)}),F||(F=function(){k.j.Fw(p)}),d=d||jow(k,p,lw9(k,p),q,F))k.TC.set(p,d),d.create(),k.j.publish("modulecreated",p),t&&k.j.xW("onApiChange")}; K0T=function(k){var p=p===void 0?!1:p;var t,J,q,F,d;return g.Q(function(S){if(S.T==1)return(t=k.TC.get("asmjs"))&&!p?S.return(t):(J=mh.get("asmjs"))!=null?(q=J,S.oY(2)):g.n(S,new Promise(function(U,f){Omh(k,"asmjs",function(){var b=mh.get("asmjs");b?U(b):f("cannot load module asmjs")},f)}),3); S.T!=2&&(q=S.Y);F=q;if(!F)return S.return(Promise.reject("cannot load module asmjs"));d=new F(k.j);k.TC.set("asmjs",d);d.create();return S.return(d)})}; ki0=function(k){Hmj(k)&&k.Uu();xfj(k)&&(Qc(k,"captions",!0),Qc(k,"endscreen"),k.Qg(),Qc(k,"creatorendscreen",!0))}; xfj=function(k){var p=k.j.getVideoData(),t=k.S&&!p.isInlinePlaybackNoAd;k.j.D("html5_defer_modules_on_ads_only")&&!p.isAd()&&(t=!1);return t}; Hmj=function(k){k=k.j.getVideoData();var p;if(p=k.D("web_player_defer_ad")){if(g.Kc(k.P0,"ad")||oeS(k)||k.enableServerStitchedDai)k=!1;else{p=k.playerResponse;k=k.startSeconds;var t=p==null?void 0:p.adPlacements;if(p=t){p=Number.MAX_VALUE;t=g.Z(t);for(var J=t.next();!J.done;J=t.next())if(J=J.value.adPlacementRenderer){var q=void 0,F=(q=J.config)==null?void 0:q.adPlacementConfig;q=void 0;if(((q=F)==null?void 0:q.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var d=q=void 0;F=Number((q=F)==null?void 0:(d= q.adTimeOffset)==null?void 0:d.offsetStartMilliseconds)||0;d=q=void 0;J=Number(((q=J.renderer)==null?void 0:(d=q.adBreakServiceRenderer)==null?void 0:d.prefetchMilliseconds)||0);J=F-J;J<p&&(p=J)}}p=p-5E3<=k*1E3}k=p?!1:!0}p=k}return p}; g7q=function(k){var p=k.j.getVideoData();return!!p.Xn||!!p.captionTracks.length||g.L0w(p,k.j)}; g.MXj=function(k){var p=k.j.G();if(p.N||Op(p)||p.S||!p.nT&&!p.v3)return!1;var t=k.j.getPresentingPlayerType();if(t===2)return!1;if(t===3)return p.D("desktop_enable_autoplay");k=k.j.getVideoData();if(!k)return!1;t=!k.isLiveDefaultBroadcast||p.D("allow_poltergust_autoplay");t=k.isLivePlayback&&(!p.D("allow_live_autoplay")||!t);p=k.isLivePlayback&&p.D("allow_live_autoplay_on_mweb");return!t||p}; g.LK=function(k){return k.TC.get("webgl")}; u8L=function(k){var p=k.j.getVideoData();k=k.j.G();var t=g.w8i(),J=k.D("enable_spherical_kabuki"),q=g.ji(k);if(g.Ly(p))return t||J||q;if(g.Da(p))return q||t||J;if(g.s5(p))return q||t||!1;if(g.fy(p))return q||!1;t=p.Y&&p.Y.video&&p.Y.video.isHdr();return q&&!g.yR(p)&&!t&&k.D("enable_webgl_noop")}; hTj=function(k){if(k.j.G().N)return!1;k=k.j.getVideoData(1);var p=k.getPlayerResponse();if(p){var t=p.adPlacements;if(t)for(var J=0;J<t.length;J++)if(t[J].adPlacementRenderer)return!0;if(p.adSlots)return!0}return g.hF(k)?!0:!1}; awj=function(k){if(k.j.isEmbedsShortsMode())return!1;k=k.j;var p=k.G();if(p.N)return!1;var t;if(((t=p.getWebPlayerContextConfig())==null?0:t.embedsEnableEmc3ds)||p.controlsType==="3")return!1;if(p.playerStyle==="creator-endscreen-editor")return!0;t=k.getVideoData();return!!t&&(!!g.Noi(t)||!!g.yiS(t))}; jow=function(k,p,t,J,q){try{if(t){var F=mh.get(p);if(F)return new F(k.j);Omh(k,p,J,q)}else k.j.Fw(p)}catch(d){k.j.Fw(p),g.nV(d)}return null}; Pr=function(k,p,t){if(k.j.G().D("html5_dispose_modules_in_order"))for(var J=g.Z(pGu),q=J.next();!q.done;q=J.next()){q=q.value;var F=k.TC.get(q);F&&(t||F.C5(p))&&(g.ER(F),k.TC.delete(q))}else for(J=g.Z(k.TC),q=J.next();!q.done;q=J.next())F=g.Z(q.value),q=F.next().value,(F=F.next().value)&&(t||F.C5(p))&&(g.ER(F),k.TC.delete(q))}; GH=function(k){return k.TC.get("ad")}; tBT=function(k){if(Ir(k.j.G()))return k.TC.get("kids")}; WO=function(k){if(k.j.G().wd)return k.TC.get("remote")}; g.IG=function(k){if(g.nl(k.j.G()))return k.TC.get("unplugged")}; zD9=function(k){if(k.j.G().pp)return k.TC.get("ux")}; J3w=function(k){if(k.j.G().showMiniplayerUiWhenMinimized)return k.TC.get("miniplayer")}; XX=function(k){if(k.j.G().Xo)return k.TC.get("offline")}; g.RG=function(k){return k.TC.get("annotations_module")}; Br=function(k){return k.TC.get("creatorendscreen")}; qM6=function(k,p){var t=k.T.startsWith("https://")?k.T+"lib.wasm":k.T.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return zTi(t,function(J){var q=k.TC.get("asmjs");return q?Promise.resolve(q.zx(J)):oCh(k).then(function(F){return F.zx(J)})},p)}; oCh=function(k){var p,t;return g.Q(function(J){if(J.T==1)return g.n(J,K0T(k),2);t=p=J.Y;return J.return(t)})}; Omh=function(k,p,t,J){if(k.T){var q=Fn9[p];$AS(k,k.T+q,function(){k.C.add(q);t.call(k)},J)}}; $AS=function(k,p,t,J){function q(){k.MO()||J.call(k)} function F(){k.MO()||t.call(k)} for(var d=g.h2("SCRIPT"),S=!1,U,f=0;f<d.length;f++){var b=d[f];if(b.src===p||b.getAttribute("data-original-src")===p)U=b}U||(U=g.kW("SCRIPT"),U.setAttribute("data-original-src",p),S=!0);var N=U.onload;U.onload=function(A){oq(F);N&&N.apply(window,[A])}; var y=U.onerror;U.onerror=function(A){if(Math.random()<.01){var V=new g.hm("Unable to load player module",p,document.location&&document.location.origin);g.nV(V)}oq(q);y&&y(A)}; var Y=U,T=Y.onreadystatechange;Y.onreadystatechange=function(A){switch(Y.readyState){case "loaded":case "complete":oq(F)}T&&T(A)}; S&&((d=k.j.G().cspNonce)&&U.setAttribute("nonce",d),g.a_(U,g.Aq(p)),d=g.h2("HEAD")[0]||document.body,d.insertBefore(U,d.firstChild),k.addOnDisposeCallback(function(){U.parentNode&&U.parentNode.removeChild(U)}))}; dAe=function(k,p,t,J,q){g.o$.call(this);var F=this;this.target=k;this.u9=p;this.Y=0;this.S=!1;this.C=new g.NL(NaN,NaN);this.T=new g.nC(this);this.NO=this.N=this.Z=null;g.z(this,this.T);p=J||q?4E3:3E3;this.L=new g.jF(function(){zH(F,1,!1)},p,this); g.z(this,this.L);this.gy=new g.jF(function(){zH(F,2,!1)},p,this); g.z(this,this.gy);this.Y8=new g.jF(function(){zH(F,512,!1)},p,this); g.z(this,this.Y8);this.P0=3E3;J||(this.N=this.T.V(k,"mouseover",this.tS),this.T.V(k,"mousemove",this.y5),this.T.V(k,"mouseleave",this.ZEr));UH?this.T.V(k,"keypress",this.arh):this.T.V(k,"focusin",this.Eh);this.X=this.T.V(k,"mousedown",this.zg);this.B=this.T.V(k,"touchstart",this.B2,void 0,!0);zH(this,640,!0)}; ECq=function(k){zH(k,4,!1);k.Z&&(k.T.qP(k.Z),k.Z=null,k.N=k.T.V(k.target,"mouseover",k.tS));k.N&&(k.T.qP(k.N),k.N=k.T.V(k.target,"mouseover",k.tS))}; zH=function(k,p,t){k.MO();var J=!k.Y;t?(k.Y|=p,p&1&&k.L.start(),p&2&&k.gy.start()):(k.Y&=~p,p&1&&k.L.stop(),p&2&&k.gy.stop(),p&512&&k.Y8.stop());k.Y&512&&!(k.Y&128)&&g.Oc(k.Y8,k.P0);p=!k.Y;J!==p&&k.publish("autohideupdate",p)}; g.hR=function(k){g.M.call(this,{K:"button",S6:["ytp-large-play-button","ytp-button"],J:{"aria-label":"Play",title:"Play"},U:["{{largePlayButtonChildren}}"]});this.api=k;this.V(k,"videodatachange",this.Zr);this.V(k,"basechromeinitialized",this.HLy);k=this.api.G();k.B&&ef&&(this.listen("click",this.ipy,this),this.listen("touchstart",this.HZG,this));g.cs(k)&&g.JB(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Zr()}; g.aG=function(k){var p=k.G(),t=["ytp-cued-thumbnail-overlay"];p.S&&t.push("ytp-exp-contain-thumbnail");p.D("web_player_show_frame_zero_when_cued")&&t.push("ytp-exp-frame0");g.M.call(this,{K:"div",S6:t,U:[{K:"div",W:"ytp-cued-thumbnail-overlay-image"}]});p=this.Kp("ytp-cued-thumbnail-overlay");t=new g.hR(k);g.z(this,t);t.QT(p);this.C=new g.nC(this);g.z(this,this.C);this.api=k;this.S=this.Kp("ytp-cued-thumbnail-overlay-image");this.N=t;this.Y=new g.K1(this,250);g.z(this,this.Y);this.T=new g.jF(this.Zr, 0,this);g.z(this,this.T);this.Zr();this.V(k,"appresize",this.zA);this.V(k,"presentingplayerstatechange",this.onStateChange);this.V(k,"ypcStateChanged",this.Myh);DZ(k.G())&&this.V(k,"videoplayerreset",this.onReset)}; SMj=function(k){if(!k.api.D("web_player_show_frame_zero_when_cued"))return!1;var p=k.api.getCurrentTime();k=k.api.getPlayerStateObject();k=g.u(k,64)&&g.u(k,1);return p===0&&k}; g.Mc=function(k){g.M.call(this,{K:"div",S6:["ytp-error"],J:{role:"alert"},U:[{K:"div",W:"ytp-error-content",U:[{K:"div",W:"ytp-error-icon-container",U:[{K:"svg",J:{fill:"#fff",viewBox:"0 0 48 48"},U:[{K:"path",J:{d:"M0 0h48v48H0V0z",fill:"none"}},{K:"path",J:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{K:"div",W:"ytp-error-content-wrap", U:[{K:"div",W:"ytp-error-content-wrap-reason",sy:"{{content}}"},{K:"div",W:"ytp-error-content-wrap-subreason",sy:"{{subreason}}"}]}]}]});this.api=k;this.keys=[];this.N=!1;k.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.NW)}; g.g_=function(k){k=k.split(UAe);for(var p=[],t=0;t<k.length;t+=3){var J=k[t++].split("\n");p.push(J[0]);for(var q=1;q<J.length;q++)p.push({K:"br"}),p.push(J[q]);t<k.length&&p.push({K:"a",J:{href:k[t],target:k[t+1]},sy:k[t+2]})}return{K:"span",U:p}}; lU=function(k,p,t,J,q,F,d){J=J===void 0?!1:J;q=q===void 0?!1:q;d=d===void 0?!0:d;q||(q=k.api.G().C);var S=k.api.getVideoData();p=g.fT(g.uU[p]||"",J?{CPN:S.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);J=[];F&&J.push({K:"h2",sy:F});J.push(p[0]);d&&J.push({K:"br"});J.push({K:"a",J:{href:t,target:q?"_blank":null},W:"ytp-error-link",sy:p[2]});k.N=!0;J.push(p[4]);return{K:"span",U:J}}; fmq=function(k,p){for(var t=k.element.getElementsByTagName("a"),J=0;J<t.length;J++){var q=k.V(t[J],"click",p);k.keys.push(q)}}; b_i=function(k){for(var p=0;p<k.keys.length;p++)k.qP(k.keys[p]);k.keys=[]}; NG0=function(k){g.M.call(this,{K:"div",W:"ytp-paid-content-overlay",J:{"aria-live":"assertive","aria-atomic":"true"}});this.j=k;this.videoId=null;this.N=!1;this.innertubeCommand=this.B1=this.T=null;var p=k.G();k.D("enable_new_paid_product_placement")&&!g.u$(p)?(this.Y=new g.M({K:"a",W:"ytp-paid-content-overlay-link",J:{href:"{{href}}",target:"_blank"},U:[{K:"div",W:"ytp-paid-content-overlay-icon",sy:"{{icon}}"},{K:"div",W:"ytp-paid-content-overlay-text",sy:"{{text}}"},{K:"div",W:"ytp-paid-content-overlay-chevron", sy:"{{chevron}}"}]}),this.V(this.Y.element,"click",this.onClick)):this.Y=new g.M({K:"div",S6:["ytp-button","ytp-paid-content-overlay-text"],sy:"{{text}}"});this.C=new g.K1(this.Y,250,!1,100);g.z(this,this.Y);this.Y.QT(this.element);g.z(this,this.C);this.j.createServerVe(this.element,this);this.V(k,"videodatachange",this.onVideoDataChange);this.V(k,"presentingplayerstatechange",this.EE)}; YMq=function(k,p){var t=pl_(p),J=tge(p);if(!p.Gt||!k.j.cn())if(k.T||k.j.D("enable_paid_content_overlay_bugfix")){if(p.videoId&&p.videoId!==k.videoId){var q;(q=k.T)==null||g.H8(q);!k.j.D("enable_paid_content_overlay_bugfix")||t&&J?(k.videoId=p.videoId,k.N=!!J,k.N&&t&&y3T(k,J,t,p)):k.N=!1}}else t&&J&&!k.j.D("enable_paid_content_overlay_bugfix")&&y3T(k,J,t,p)}; y3T=function(k,p,t,J){k.T&&k.T.dispose();k.T=new g.jF(k.xI,p,k);g.z(k,k.T);J=Yu(J);p=J==null?void 0:J.navigationEndpoint;var q;J=J==null?void 0:(q=J.icon)==null?void 0:q.iconType;var F;q=(F=g.e(p,g.i3))==null?void 0:F.url;k.j.setTrackingParams(k.element,(p==null?void 0:p.clickTrackingParams)||null);p&&!q?(k.innertubeCommand=p,q="#!"):k.innertubeCommand=null;var d;k.Y.update({href:(d=q)!=null?d:"#",text:t,icon:J==="MONEY_HAND"?{K:"svg",J:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, U:[{K:"path",J:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:q||k.innertubeCommand?g.Y3():null})}; TGe=function(k,p){k.T&&(g.u(p,8)&&k.N?(k.N=!1,k.Iu(),k.T.start()):(g.u(p,2)||g.u(p,64))&&k.videoId&&(k.videoId=null))}; jf=function(k){g.M.call(this,{K:"div",W:"ytp-spinner",U:[tr(),{K:"div",W:"ytp-spinner-message",sy:"If playback doesn't begin shortly, try restarting your device."}]});this.api=k;this.message=this.Kp("ytp-spinner-message");this.T=new g.jF(this.show,500,this);g.z(this,this.T);this.V(k,"presentingplayerstatechange",this.onStateChange);this.V(k,"playbackstalledatstart",this.Y);this.cH(k.getPlayerStateObject())}; O2=function(k){var p=[{K:"div",S6:["ytp-unmute-icon"],U:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {K:"div",S6:["ytp-unmute-text"],sy:"Tap to unmute"}];p.push({K:"div",S6:["ytp-unmute-box"],U:[]});g.GB.call(this,k,{K:"button",S6:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],U:[{K:"div",W:"ytp-unmute-inner",U:p}]},100);this.T=this.clicked=!1;this.api=k;this.api.createClientVe(this.element,this,51663);this.V(k,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.V(k,"presentingplayerstatechange",this.o3);this.listen("click",this.onClick,this);k=k.isMutedByMutedAutoplay()&& !g.V0(this.api.G());this.rS(k);k&&r39(this);this.N=k}; r39=function(k){k.T||(k.T=!0,k.api.logVisibility(k.element,!0))}; g.Kg=function(k){g.nC.call(this);var p=this;this.api=k;this.eX=!1;this.L5=null;this.Bz=!1;this.f$=null;this.al=this.Dc=!1;this.yW=this.gb=null;this.uP=NaN;this.TY=this.HD=!1;this.Vu=0;this.BT=[];this.N4=!1;this.W$={height:0,width:0};this.Fg=480;this.NpT=["ytp-player-content","html5-endscreen","ytp-overlay"];this.xj={Im:!1};var t=k.G(),J=k.Uy();this.W$=k.getPlayerSize();this.rU=new g.jF(this.AA,0,this);g.z(this,this.rU);t.disableOrganicUi||(this.eB=new g.aG(k),g.z(this,this.eB),g.cO(k,this.eB.element, 4));if(Z_i(this)){var q=new jf(k);g.z(this,q);q=q.element;g.cO(k,q,4)}var F=k.getVideoData();this.HQ=new dAe(J,function(S){return p.u9(S)},F,t.EZ,!1); g.z(this,this.HQ);this.HQ.subscribe("autohideupdate",this.XH,this);if(!t.disablePaidContentOverlay){var d=new NG0(k);g.z(this,d);g.cO(k,d.element,4)}this.Ag=new O2(k);g.z(this,this.Ag);g.cO(this.api,this.Ag.element,2);this.VD=this.api.isMutedByMutedAutoplay();this.V(k,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.mM=new g.jF(this.LM,200,this);g.z(this,this.mM);this.F_=F.videoId;this.e1=new g.jF(function(){p.Vu=0},350); g.z(this,this.e1);this.l9=new g.jF(function(){p.TY||CHe(p)},350,this); g.z(this,this.l9);F=k.getRootNode();F.setAttribute("aria-label","YouTube Video Player");switch(t.color){case "white":g.JB(F,"ytp-color-white")}this.V(k,"appresize",this.zA);this.V(k,"presentingplayerstatechange",this.o3);this.V(k,"videodatachange",this.onVideoDataChange);this.V(k,"videoplayerreset",this.TfY);this.V(k,"autonavvisibility",function(){p.q8()}); this.V(k,"sizestylechange",function(){p.q8()}); this.V(J,"click",this.X1O,this);this.V(J,"dblclick",this.flT,this);this.V(J,"mousedown",this.nfh,this);t.Fd&&(this.V(J,"gesturechange",this.D20,this),this.V(J,"gestureend",this.ZbG,this));this.h$=[J.GN];this.eB&&this.h$.push(this.eB.element);q&&this.h$.push(q);this.api.D("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(J.element,this,247482),this.api.logVisibility(J.element,!0))}; A3i=function(k,p){if(!p)return!1;var t=k.api.QM();if(t.ZR()&&(t=t.KE())&&g.FI(t,p))return t.controls;for(t=0;t<k.h$.length;t++)if(g.FI(k.h$[t],p))return!1;t=g.Z(k.NpT);for(var J=t.next();!J.done;J=t.next())if(g.tB(p,J.value))return!1;return p===k.api.getRootNode()?!1:!0}; mAj=function(k){var p=k.api.getPresentingPlayerType()===2&&(k.api.Uy().fD||k.api.G().disableOrganicUi||!1)&&k.api.G().Y&&ef&&Hr>=11;k=k.api.G().B&&ef;return!(!p&&!k)}; xQ=function(k,p){return!k.api.isInline()&&!A3i(k,Am(p))&&g.A5(p)}; CHe=function(k){k.HQ.yQ();if(k.Dc&&k.al)k.al=!1;else if(!k.api.G().qO&&!k.wP()){var p=k.api.getPlayerStateObject();g.u(p,2)&&g.mK(k.api)||k.Ac(p);!k.api.G().Fd||p.isCued()||g.u(p,1024)?k.LM():k.mM.isActive()?(k.vy(),k.mM.stop()):k.mM.start()}}; VBi=function(k,p){var t;if((t=k.api.getVideoData())==null?0:t.mutedAutoplay){var J,q;if((J=p.target)==null?0:(q=J.className)==null?0:q.includes("ytp-info-panel"))return!1}return g.A5(p)&&k.api.isMutedByMutedAutoplay()?(k.api.unMute(),k.api.getPresentingPlayerType()===2&&k.api.playVideo(),p=k.api.getPlayerStateObject(),!g.u(p,4)||g.u(p,8)||g.u(p,2)||k.LM(),!0):!1}; Wn0=function(k,p,t){k.api.isFullscreen()?t<1-p&&k.api.toggleFullscreen():t>1+p&&k.api.toggleFullscreen()}; Z_i=function(k){var p=Bw()&&Xd()>=67&&!k.api.G().B;k=k.api.G().disableOrganicUi;return!g.RY("tizen")&&!Om&&!p&&!k}; k1=function(k,p){p=p===void 0?2:p;g.o$.call(this);this.api=k;this.T=null;this.Jj=new VB(this);g.z(this,this.Jj);this.Y=NXe;this.Jj.V(this.api,"presentingplayerstatechange",this.Aa);this.T=this.Jj.V(this.api,"progresssync",this.OF);this.WJ=p;this.WJ===1&&this.OF()}; g.pA=function(k){g.M.call(this,{K:"div",U:[{K:"div",W:"ytp-bezel-text-wrapper",U:[{K:"div",W:"ytp-bezel-text",sy:"{{title}}"}]},{K:"div",W:"ytp-bezel",J:{role:"status","aria-label":"{{label}}"},U:[{K:"div",W:"ytp-bezel-icon",sy:"{{icon}}"}]}]});this.j=k;this.Y=new g.jF(this.show,10,this);k=this.j.D("delhi_modern_web_player")?1E3:500;this.T=new g.jF(this.hide,k,this);g.z(this,this.Y);g.z(this,this.T);this.hide()}; Jp=function(k,p,t){if(p<=0){t=sY();p="muted";var J=0}else t=t?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{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"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{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"}}]},J=Math.floor(p),p=J+"volume";tp(k,t,p,J+"%")}; DAu=function(k,p){p=p?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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"}}]}:nph();var t=k.j.getPlaybackRate(),J=g.fT("Speed is $RATE",{RATE:String(t)});tp(k,p,J,t+"x")}; sDw=function(k,p){p=p?"Subtitles/closed captions on":"Subtitles/closed captions off";tp(k,fs0(),p)}; tp=function(k,p,t,J){J=J===void 0?"":J;k.updateValue("label",t===void 0?"":t);k.updateValue("icon",p);g.H8(k.T);k.Y.start();k.updateValue("title",J);g.$E(k.element,"ytp-bezel-text-hide",!J)}; Ln_=function(k,p){g.M.call(this,{K:"button",S6:["ytp-button","ytp-cards-button"],J:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.V0(k.G()))},U:[{K:"span",W:"ytp-cards-button-icon-default",U:[{K:"div",W:"ytp-cards-button-icon",U:[k.G().D("player_new_info_card_format")?Qg_():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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"}}]}]}, {K:"div",W:"ytp-cards-button-title",sy:"Info"}]},{K:"span",W:"ytp-cards-button-icon-shopping",U:[{K:"div",W:"ytp-cards-button-icon",U:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",W:"ytp-svg-shadow",J:{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"}},{K:"path",W:"ytp-svg-fill",J:{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"}},{K:"path",W:"ytp-svg-shadow-fill",J:{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"}}]}]},{K:"div", W:"ytp-cards-button-title",sy:"Shopping"}]}]});this.j=k;this.N=p;this.T=null;this.Y=new g.K1(this,250,!0,100);g.z(this,this.Y);g.$E(this.N,"ytp-show-cards-title",g.V0(k.G()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.fxG);this.yI(!0)}; vCj=function(k,p){g.M.call(this,{K:"div",W:"ytp-cards-teaser",U:[{K:"div",W:"ytp-cards-teaser-box"},{K:"div",W:"ytp-cards-teaser-text",U:k.G().D("player_new_info_card_format")?[{K:"button",W:"ytp-cards-teaser-info-icon",J:{"aria-label":"Show cards","aria-haspopup":"true"},U:[Qg_()]},{K:"span",W:"ytp-cards-teaser-label",sy:"{{text}}"},{K:"button",W:"ytp-cards-teaser-close-button",J:{"aria-label":"Close"},U:[g.Ts()]}]:[{K:"span",W:"ytp-cards-teaser-label",sy:"{{text}}"}]}]});var t=this;this.j=k;this.CL= p;this.C=new g.K1(this,250,!1,250);this.T=null;this.B=new g.jF(this.wHY,300,this);this.Z=new g.jF(this.kIp,2E3,this);this.S=[];this.Y=null;this.L=new g.jF(function(){t.element.style.margin="0"},250); this.onClickCommand=this.N=null;g.z(this,this.C);g.z(this,this.B);g.z(this,this.Z);g.z(this,this.L);k.G().D("player_new_info_card_format")?(g.JB(k.getRootNode(),"ytp-cards-teaser-dismissible"),this.V(this.Kp("ytp-cards-teaser-close-button"),"click",this.sE),this.V(this.Kp("ytp-cards-teaser-info-icon"),"click",this.B_),this.V(this.Kp("ytp-cards-teaser-label"),"click",this.B_)):this.listen("click",this.B_);this.V(p.element,"mouseover",this.J6);this.V(p.element,"mouseout",this.Uz);this.V(k,"cardsteasershow", this.yBT);this.V(k,"cardsteaserhide",this.xI);this.V(k,"cardstatechange",this.Nr);this.V(k,"presentingplayerstatechange",this.Nr);this.V(k,"appresize",this.tv);this.V(k,"onShowControls",this.tv);this.V(k,"onHideControls",this.VE);this.listen("mouseenter",this.uS)}; c3e=function(k){g.M.call(this,{K:"button",S6:[oS.BUTTON,oS.TITLE_NOTIFICATIONS],J:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{K:"div",W:oS.TITLE_NOTIFICATIONS_ON,J:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.C1()]},{K:"div",W:oS.TITLE_NOTIFICATIONS_OFF,J:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{K:"svg",J:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{K:"path",J:{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=k;this.T=!1;k.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; nC0=function(k,p){k.T=p;k.element.classList.toggle(oS.NOTIFICATIONS_ENABLED,k.T);var t=k.api.getVideoData();t?(p=p?t.JE:t.Ba)?(k=k.api.DM())?aF(k,p):g.nV(Error("No innertube service available when updating notification preferences.")):g.nV(Error("No update preferences command available.")):g.nV(Error("No video data when updating notification preferences."))}; i_L=function(k,p,t){var J=J===void 0?800:J;var q=q===void 0?600:q;var F=document.location.protocol;k=DLL(F+"//"+k+"/signin?context=popup","feature",p,"next",F+"//"+location.hostname+"/post_login");wGu(k,t,J,q)}; wGu=function(k,p,t,J){t=t===void 0?800:t;J=J===void 0?600:J;if(k=g.R_(window,k,"loginPopup","width="+t+",height="+J+",resizable=yes,scrollbars=yes"))ceL(function(){p()}),k.moveTo((screen.width-t)/2,(screen.height-J)/2)}; g.qh=function(k,p,t,J,q,F,d,S,U,f,b,N){k=k.charAt(0)+k.substring(1).toLowerCase();t=t.charAt(0)+t.substring(1).toLowerCase();if(p==="0"||p==="-1")p=null;if(J==="0"||J==="-1")J=null;var y=b.G(),Y=y.userDisplayName&&g.cs(y);g.M.call(this,{K:"div",S6:["ytp-button","ytp-sb"],U:[{K:"div",W:"ytp-sb-subscribe",J:Y?{title:g.fT("Subscribe as $USER_NAME",{USER_NAME:y.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Kl(y),"data-tooltip-opaque":String(g.V0(y)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},U:[{K:"div",W:"ytp-sb-text",U:[{K:"div",W:"ytp-sb-icon"},k]},p?{K:"div",W:"ytp-sb-count",sy:p}:""]},{K:"div",W:"ytp-sb-unsubscribe",J:Y?{title:g.fT("Subscribed as $USER_NAME",{USER_NAME:y.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Kl(y),"data-tooltip-opaque":String(g.V0(y)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{K:"div",W:"ytp-sb-text",U:[{K:"div",W:"ytp-sb-icon"},t]},J?{K:"div",W:"ytp-sb-count", sy:J}:""]}],J:{"aria-live":"polite"}});var T=this;this.channelId=d;this.j=b;this.N=N;var A=this.Kp("ytp-sb-subscribe"),V=this.Kp("ytp-sb-unsubscribe");F&&g.JB(this.element,"ytp-sb-classic");if(q){S?this.T():this.Y();var D=function(){if(y.NO){var w=T.channelId;if(U||f){var X={c:w};var B;g.sJ.isInitialized()&&(B=w1j(X));X=B||"";if(B=b.getVideoData())if(B=B.subscribeCommand){var O=b.DM();O?(aF(O,B,{botguardResponse:X,feature:U}),b.zb("SUBSCRIBE",w)):g.nV(Error("No innertube service available when updating subscriptions."))}else g.nV(Error("No subscribe command in videoData.")); else g.nV(Error("No video data available when updating subscription."))}V.focus();V.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}else i_L(g.Bs(T.j.G()),"sb_button",T.C)},v=function(){var w=T.channelId; if(U||f){var X=b.getVideoData();aF(b.DM(),X.unsubscribeCommand,{feature:U});b.zb("UNSUBSCRIBE",w)}A.focus();A.removeAttribute("aria-hidden");V.setAttribute("aria-hidden","true")}; this.V(A,"click",D);this.V(V,"click",v);this.V(A,"keypress",function(w){w.keyCode===13&&D(w)}); this.V(V,"keypress",function(w){w.keyCode===13&&v(w)}); this.V(b,"SUBSCRIBE",this.T);this.V(b,"UNSUBSCRIBE",this.Y);this.N&&Y&&(jHw(b),ZB(b,A,this),ZB(b,V,this))}else g.JB(A,"ytp-sb-disabled"),g.JB(V,"ytp-sb-disabled")}; Gi6=function(k){g.M.call(this,{K:"div",W:"ytp-title-channel",U:[{K:"div",W:"ytp-title-beacon"},{K:"a",W:"ytp-title-channel-logo",J:{href:"{{channelLink}}",target:k.G().L,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",W:"ytp-title-expanded-overlay",J:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{K:"div",W:"ytp-title-expanded-heading",U:[{K:"div",W:"ytp-title-expanded-title",U:[{K:"a",sy:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:k.G().L,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",W:"ytp-title-expanded-subtitle",sy:"{{expandedSubtitle}}",J:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var p=this;this.api=k;this.channel=this.Kp("ytp-title-channel");this.Y=this.Kp("ytp-title-channel-logo");this.channelName=this.Kp("ytp-title-expanded-title");this.S=this.Kp("ytp-title-expanded-overlay");this.N=this.T=this.subscribeButton=null;this.C=!1;k.createClientVe(this.Y,this,36925);k.createClientVe(this.channelName,this, 37220);g.V0(this.api.G())&&QDj(this);this.V(k,"videodatachange",this.Zr);this.V(k,"videoplayerreset",this.Zr);this.V(this.channelName,"click",function(t){p.api.logClick(p.channelName);g.R_(window,PHi(p));t.preventDefault()}); this.V(this.Y,"click",this.gxp);this.Zr()}; Im_=function(k){if(!k.api.G().UQ){var p=k.api.getVideoData(),t=new g.qh("Subscribe",null,"Subscribed",null,!0,!1,p.Nc,p.subscribed,"channel_avatar",null,k.api,!0);k.api.createServerVe(t.element,k);var J;k.api.setTrackingParams(t.element,((J=p.subscribeButtonRenderer)==null?void 0:J.trackingParams)||null);k.V(t.element,"click",function(){k.api.logClick(t.element)}); k.subscribeButton=t;g.z(k,k.subscribeButton);k.subscribeButton.QT(k.S);k.subscribeButton.hide();var q=new c3e(k.api);k.T=q;g.z(k,q);q.QT(k.S);q.hide();k.V(k.api,"SUBSCRIBE",function(){p.FE&&(q.show(),k.api.logVisibility(q.element,!0))}); k.V(k.api,"UNSUBSCRIBE",function(){p.FE&&(q.hide(),k.api.logVisibility(q.element,!1),nC0(q,!1))})}}; QDj=function(k){var p=k.api.G();Im_(k);k.updateValue("flyoutUnfocusable","true");k.updateValue("channelTitleFocusable","-1");k.updateValue("shouldHideExpandedTitleForA11y","true");k.updateValue("shouldHideExpandedSubtitleForA11y","true");p.Y||p.IY||(k.V(k.channel,"mouseenter",k.OG),k.V(k.channel,"mouseleave",k.vz),k.V(k.channel,"focusin",k.OG),k.V(k.channel,"focusout",function(t){k.channel.contains(t.relatedTarget)||k.vz()})); k.N=new g.jF(function(){k.isExpanded()&&(k.api.logVisibility(k.channelName,!1),k.subscribeButton&&(k.subscribeButton.hide(),k.api.logVisibility(k.subscribeButton.element,!1)),k.T&&(k.T.hide(),k.api.logVisibility(k.T.element,!1)),k.channel.classList.remove("ytp-title-expanded"),k.channel.classList.add("ytp-title-show-collapsed"))},500); g.z(k,k.N);k.V(k.channel,XGM,function(){Rfi(k)}); k.V(k.api,"onHideControls",k.Gm);k.V(k.api,"appresize",k.Gm);k.V(k.api,"fullscreentoggled",k.Gm)}; Rfi=function(k){k.channel.classList.remove("ytp-title-show-collapsed");k.channel.classList.remove("ytp-title-show-expanded")}; BG6=function(k){var p=k.api.getPlayerSize();return g.V0(k.api.G())&&p.width>=524}; PHi=function(k){var p=k.api.G(),t=k.api.getVideoData(),J=g.Hs(p)+t.Fd;g.xu(t)&&(J="https://music.youtube.com"+t.Fd);if(!g.V0(p))return J;p={};g.F4(k.api,"addEmbedsConversionTrackingParams",[p]);return g.hM(J,p)}; F0=function(k){var p=g.eP({"aria-haspopup":"true"});g.zB.call(this,p,k);this.listen("keydown",this.T)}; $1=function(k,p){k.element.setAttribute("aria-haspopup",String(p))}; zfw=function(k,p){g.M.call(this,{K:"div",W:"ytp-user-info-panel",J:{"aria-label":"User info"},U:k.G().NO&&!k.D("embeds_web_always_enable_signed_out_state")?[{K:"div",W:"ytp-user-info-panel-icon",sy:"{{icon}}"},{K:"div",W:"ytp-user-info-panel-content",U:[{K:"div",W:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable}}",role:"text"},sy:"{{watchingAsUsername}}"},{K:"div",W:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable2}}",role:"text"},sy:"{{watchingAsEmail}}"}]}]:[{K:"div",W:"ytp-user-info-panel-icon", sy:"{{icon}}"},{K:"div",W:"ytp-user-info-panel-content",U:[{K:"div",U:[{K:"text",J:{tabIndex:"{{userInfoFocusable}}"},sy:"Signed out"}]},{K:"div",W:"ytp-user-info-panel-login",U:[{K:"a",J:{tabIndex:"{{userInfoFocusable2}}",role:"button"},sy:k.G().UQ?"":"Sign in on YouTube"}]}]}]});this.fp=k;this.T=p;k.G().NO||k.G().UQ||this.V(this.Kp("ytp-user-info-panel-login"),"click",this.C8);this.closeButton=new g.M({K:"button",S6:["ytp-collapse","ytp-button"],J:{title:"Close"},U:[g.Dv()]});this.closeButton.QT(this.element); g.z(this,this.closeButton);this.V(window,"blur",this.hide);this.V(document,"click",this.No);this.Zr()}; hfi=function(k,p,t){g.XM.call(this,k);this.Pp=p;this.XA=t;this.getVideoUrl=new F0(6);this.BS=new F0(5);this.GS=new F0(4);this.pE=new F0(3);this.n1=new g.zB(g.eP({href:"{{href}}",target:this.j.G().L},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.zB(g.eP(),1,"Stats for nerds");this.Hi=new g.EY({K:"div",S6:["ytp-copytext","ytp-no-contextmenu"],J:{draggable:"false",tabindex:"1"},sy:"{{text}}"});this.WB=new Iz(this.j,this.Hi);this.z2=this.Lw=null;g.V0(this.j.G())&&(this.closeButton= new g.M({K:"button",S6:["ytp-collapse","ytp-button"],J:{title:"Close"},U:[g.Dv()]}),g.z(this,this.closeButton),this.closeButton.QT(this.element),this.closeButton.listen("click",this.wG,this));g.V0(this.j.G())&&(this.YL=new g.zB(g.eP(),8,"Account"),g.z(this,this.YL),this.Ru(this.YL,!0),this.YL.listen("click",this.zKb,this),k.createClientVe(this.YL.element,this.YL,137682));this.j.G().MG&&(this.Hn=new HO("Loop",7),g.z(this,this.Hn),this.Ru(this.Hn,!0),this.Hn.listen("click",this.ecT,this),k.createClientVe(this.Hn.element, this.Hn,28661));g.z(this,this.getVideoUrl);this.Ru(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.lxT,this);k.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.z(this,this.BS);this.Ru(this.BS,!0);this.BS.listen("click",this.XHy,this);k.createClientVe(this.BS.element,this.BS,28660);g.z(this,this.GS);this.Ru(this.GS,!0);this.GS.listen("click",this.bTy,this);k.createClientVe(this.GS.element,this.GS,28658);g.z(this,this.pE);this.Ru(this.pE,!0);this.pE.listen("click",this.Rcp, this);g.z(this,this.n1);this.Ru(this.n1,!0);this.n1.listen("click",this.m2O,this);g.z(this,this.showVideoInfo);this.Ru(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Bf8,this);g.z(this,this.Hi);this.Hi.listen("click",this.uRy,this);g.z(this,this.WB);p=document.queryCommandSupported&&document.queryCommandSupported("copy");gh9("Chromium")>=43&&(p=!0);gh9("Firefox")<=40&&(p=!1);p&&(this.Lw=new g.M({K:"textarea",W:"ytp-html5-clipboard",J:{readonly:"",tabindex:"-1"}}),g.z(this,this.Lw), this.Lw.QT(this.element));var J;(J=this.YL)==null||J.setIcon(X7j());var q;(q=this.Hn)==null||q.setIcon({K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.pE.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{"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.n1.setIcon(w7T());this.showVideoInfo.setIcon(izj());this.V(k,"onLoopChange",this.onLoopChange);this.V(k,"videodatachange",this.onVideoDataChange);efw(this);this.AX(this.j.getVideoData())}; dr=function(k,p){var t=!1;if(k.Lw){var J=k.Lw.element;J.value=p;J.select();try{t=document.execCommand("copy")}catch(q){}}t?k.Pp.xI():(k.Hi.HH(p,"text"),g.zr(k.Pp,k.WB),Jr(k.Hi.element),k.Lw&&(k.Lw=null,efw(k)));return t}; efw=function(k){var p=!!k.Lw;g.BO(k.pE,p?"Copy debug info":"Get debug info");$1(k.pE,!p);g.BO(k.GS,p?"Copy embed code":"Get embed code");$1(k.GS,!p);g.BO(k.getVideoUrl,p?"Copy video URL":"Get video URL");$1(k.getVideoUrl,!p);g.BO(k.BS,p?"Copy video URL at current time":"Get video URL at current time");$1(k.BS,!p);k.GS.setIcon(p?vpi():null);k.getVideoUrl.setIcon(p?rP():null);k.BS.setIcon(p?rP():null)}; amT=function(k){return g.V0(k.j.G())?k.YL:k.Hn}; gCw=function(k,p){g.Bu.call(this,k);this.XA=p;this.C=new g.nC(this);this.Y8=new g.jF(this.un6,1E3,this);this.NO=this.N=null;g.z(this,this.C);g.z(this,this.Y8);p=this.j.G();k.createClientVe(this.element,this,28656);g.JB(this.element,"ytp-contextmenu");this.j.G().experiments.Gb("delhi_modern_web_player")&&g.Mu(p)&&g.JB(this.element,"ytp-delhi-modern-contextmenu");MB0(this);this.hide()}; MB0=function(k){g.Df(k.C);var p=k.j.G();p.playerStyle==="gvn"||p.Y||p.IY||(p=k.j.Uy(),k.C.V(p,"contextmenu",k.Ajh),k.C.V(p,"touchstart",k.Pc,null,!0),k.C.V(p,"touchmove",k.ww,null,!0),k.C.V(p,"touchend",k.ww,null,!0))}; uw6=function(k){k.j.isFullscreen()?g.cO(k.j,k.element,10):k.QT(IB(k).body)}; Ev=function(k,p,t){t=t===void 0?240:t;g.M.call(this,{K:"button",S6:["ytp-button","ytp-copylink-button"],J:{title:"{{title-attr}}","data-tooltip-opaque":String(g.V0(k.G()))},U:[{K:"div",W:"ytp-copylink-icon",sy:"{{icon}}"},{K:"div",W:"ytp-copylink-title",sy:"Copy link",J:{"aria-hidden":"true"}}]});this.api=k;this.T=p;this.Y=t;this.visible=!1;this.tooltip=this.T.AB();p=k.G();this.tooltip.element.setAttribute("aria-live","polite");g.$E(this.element,"ytp-show-copylink-title",g.V0(p));k.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.V(k,"videodatachange",this.Zr);this.V(k,"videoplayerreset",this.Zr);this.V(k,"appresize",this.Zr);this.Zr();this.addOnDisposeCallback(g.r4(this.tooltip,this.element))}; lmM=function(k){var p=k.api.G(),t=k.api.getVideoData(),J=k.api.Uy().getPlayerSize().width;p=p.N;return!!t.videoId&&J>=k.Y&&t.xY&&!g.Ky(t)&&!k.api.isEmbedsShortsMode()&&!p}; jDh=function(k){k.updateValue("icon",Nq());if(k.api.G().Y)k.tooltip.sK(k.element,"Link copied to clipboard");else{k.updateValue("title-attr","Link copied to clipboard");k.tooltip.Tk();k.tooltip.sK(k.element);var p=k.listen("mouseleave",function(){k.qP(p);k.Zr();k.tooltip.Mc()})}}; O_T=function(k,p){return g.Q(function(t){if(t.T==1)return g.Aw(t,2),g.n(t,navigator.clipboard.writeText(p),4);if(t.T!=2)return t.return(!0);g.W9(t);var J=t.return,q=!1,F=g.kW("TEXTAREA");F.value=p;F.setAttribute("readonly","");var d=k.api.getRootNode();d.appendChild(F);if(hO){var S=window.getSelection();S.removeAllRanges();var U=document.createRange();U.selectNodeContents(F);S.addRange(U);F.setSelectionRange(0,p.length)}else F.select();try{q=document.execCommand("copy")}catch(f){}d.removeChild(F); return J.call(t,q)})}; Sj=function(k){g.M.call(this,{K:"div",W:"ytp-doubletap-ui-legacy",U:[{K:"div",W:"ytp-doubletap-fast-forward-ve"},{K:"div",W:"ytp-doubletap-rewind-ve"},{K:"div",W:"ytp-doubletap-static-circle",U:[{K:"div",W:"ytp-doubletap-ripple"}]},{K:"div",W:"ytp-doubletap-overlay-a11y"},{K:"div",W:"ytp-doubletap-seek-info-container",U:[{K:"div",W:"ytp-doubletap-arrows-container",U:[{K:"span",W:"ytp-doubletap-base-arrow"},{K:"span",W:"ytp-doubletap-base-arrow"},{K:"span",W:"ytp-doubletap-base-arrow"}]},{K:"div", W:"ytp-doubletap-tooltip",U:[{K:"div",W:"ytp-seek-icon-text-container",U:[{K:"div",W:"ytp-seek-icon",sy:"{{seekIcon}}"},{K:"div",W:"ytp-chapter-seek-text-legacy",sy:"{{seekText}}"}]},{K:"div",W:"ytp-doubletap-tooltip-label",sy:"{{seekTime}}"}]}]}]});this.j=k;this.C=new g.jF(this.show,10,this);this.Y=new g.jF(this.hide,700,this);this.Z=this.N=0;this.gy=this.S=!1;this.T=this.Kp("ytp-doubletap-static-circle");g.z(this,this.C);g.z(this,this.Y);this.hide();this.B=this.Kp("ytp-doubletap-fast-forward-ve"); this.L=this.Kp("ytp-doubletap-rewind-ve");this.j.createClientVe(this.B,this,28240);this.j.createClientVe(this.L,this,28239);this.j.logVisibility(this.B,!0);this.j.logVisibility(this.L,!0);this.S=k.D("web_show_cumulative_seek_time");this.gy=k.D("web_center_static_circles")}; Uv=function(k,p,t,J){if(J=J===void 0?null:J){var q=p===-1?k.L.visualElement:k.B.visualElement;J={seekData:J};var F=g.mP();F&&g.j5(j3)(void 0,F,q,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",J,void 0)}k.N=p===k.Z?k.N+t:t;k.Z=p;q=k.j.Uy().getPlayerSize();k.S?k.Y.stop():g.H8(k.Y);k.C.start();k.element.setAttribute("data-side",p===-1?"back":"forward");g.JB(k.element,"ytp-time-seeking");k.T.style.width="110px";k.T.style.height="110px";J=q.width*.1-15;p===1?k.gy?(k.T.style.right=J+"px",k.T.style.left=""): (k.T.style.right="",k.T.style.left=q.width*.8-30+"px"):p===-1&&(k.gy?(k.T.style.right="",k.T.style.left=J+"px"):(k.T.style.right="",k.T.style.left=q.width*.1-15+"px"));k.T.style.top=q.height*.5+15+"px";KnS(k,k.S?k.N:t)}; H_M=function(k,p,t,J){J=J===void 0?null:J;g.H8(k.Y);k.C.start();switch(p){case -1:p="back";break;case 1:p="forward";break;default:p=""}k.element.setAttribute("data-side",p);k.T.style.width="0";k.T.style.height="0";g.JB(k.element,"ytp-chapter-seek");k.updateValue("seekText",t);k.updateValue("seekTime","");t=k.Kp("ytp-seek-icon");if(J){a:if(J){switch(J){case "PREMIUM_STANDALONE":J={K:"svg",J:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},U:[{K:"path",J:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{K:"path",J:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":J={K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"rect",J:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"rect",J:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"path",J:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{K:"defs",U:[{K:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},U:[{K:"stop",J:{offset:"0.3","stop-color":"#E1002D"}},{K:"stop",J:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}J=void 0}else J=null;k.updateValue("seekIcon",J);t.style.display="inline-block"}else t.style.display="none"}; KnS=function(k,p){p=g.fT("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:p.toString()});k.updateValue("seekTime",p)}; xAw=function(k){Gr.call(this,k,!1,!0);this.P0=[];this.nE=[];this.B=!0;this.badge.element.classList.add("ytp-featured-product");this.j6=new g.M({K:"div",W:"ytp-featured-product-open-in-new"});g.z(this,this.j6);this.countdownTimer=new g.M({K:"text",W:"ytp-featured-product-countdown",sy:"{{content}}"});this.countdownTimer.hide();g.z(this,this.countdownTimer);this.Y=new g.M({K:"div",W:"ytp-featured-product-trending",U:[{K:"div",W:"ytp-featured-product-trending-icon"},{K:"text",W:"ytp-featured-product-trending-text", sy:"{{trendingOffer}}"}]});this.Y.hide();g.z(this,this.Y);this.overflowButton=new g.M({K:"button",S6:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.z(this,this.overflowButton);this.Z=new g.M({K:"text",W:"ytp-featured-product-exclusive-countdown",sy:"{{content}}",J:{id:"exclusiveCountdown","aria-hidden":"true"}});this.Z.hide();g.z(this,this.Z);this.S=new g.M({K:"div",W:"ytp-featured-product-exclusive-container",J:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, U:[{K:"div",W:"ytp-featured-product-exclusive-badge-container",U:[{K:"div",W:"ytp-featured-product-exclusive-badge",U:[{K:"text",W:"ytp-featured-product-exclusive-badge-text",sy:"{{exclusive}}",J:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.Z]});this.S.hide();g.z(this,this.S);this.banner=new g.M({K:"a",W:"ytp-featured-product-container",U:[{K:"div",W:"ytp-featured-product-thumbnail",U:[{K:"img",J:{src:"{{thumbnail}}"}},this.j6]},{K:"div",W:"ytp-featured-product-details",U:[{K:"text",W:"ytp-featured-product-title", sy:"{{title}}"},this.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",W:"ytp-featured-product-price-container",J:{"aria-label":"{{priceA11yText}}"},U:[{K:"text",W:"ytp-featured-product-price-when-promotion-text-enabled",sy:"{{price}}",J:{"aria-hidden":"true"}},{K:"text",W:"ytp-featured-product-promotion-text",sy:"{{promotionText}}",J:{"aria-hidden":"true"}}]}:{K:"div",J:{"aria-label":"{{priceA11yText}}"},U:[{K:"text",W:"ytp-featured-product-price",sy:"{{price}}", J:{"aria-hidden":"true"}},{K:"text",W:"ytp-featured-product-sales-original-price",sy:"{{salesOriginalPrice}}",J:{"aria-hidden":"true"}},{K:"text",W:"ytp-featured-product-price-drop-reference-price",sy:"{{priceDropReferencePrice}}",J:{"aria-hidden":"true"}}]},this.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",W:"ytp-featured-product-when-promotion-text-enabled",U:[{K:"text",W:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",sy:"{{affiliateDisclaimer}}"}, this.Y,{K:"text",W:"ytp-featured-product-vendor-when-promotion-text-enabled",sy:"{{vendor}}"}]}:{K:"div",U:[{K:"text",W:"ytp-featured-product-affiliate-disclaimer",sy:"{{affiliateDisclaimer}}"},this.j.D("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.Y,{K:"text",W:"ytp-featured-product-vendor",sy:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.z(this,this.banner);this.banner.QT(this.N.element);this.V(this.j,g.pT("featured_product"),this.vCS);this.V(this.j, g.tA("featured_product"),this.Dz);this.V(this.j,"videodatachange",this.onVideoDataChange);this.V(this.overflowButton.element,"click",this.o0);this.V(k,"featuredproductdismissed",this.OR)}; k$L=function(k){var p,t;k=(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:t.itemData;var J,q,F;return(k==null||!k.affiliateDisclaimer)&&(k==null?0:(J=k.exclusivesData)==null?0:J.exclusiveOfferLabelText)&&(k==null?0:(q=k.exclusivesData)==null?0:q.expirationTimestampMs)&&(k==null?0:(F=k.exclusivesData)==null?0:F.exclusiveOfferCountdownText)?!0:!1}; tb9=function(k){var p,t,J,q,F=(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:(J=t.itemData)==null?void 0:(q=J.exclusivesData)==null?void 0:q.expirationTimestampMs;p=(Number(F)-Date.now())/1E3;if(p>0){if(p<604800){var d,S,U,f;t=(d=k.T)==null?void 0:(S=d.bannerData)==null?void 0:(U=S.itemData)==null?void 0:(f=U.exclusivesData)==null?void 0:f.exclusiveOfferCountdownText;if(t!==void 0)for(d=Date.now(),S=g.Z(t),U=S.next();!U.done;U=S.next())if(U=U.value,U!==void 0&&U.text!==void 0&&(f=Number(U.textDisplayStartTimestampMs), !isNaN(f)&&d>=f)){U.insertCountdown?(p=U.text.replace(/\$0/,String(fj({seconds:p}))),k.Z.HH(p)):k.Z.HH(U.text);k.Z.show();break}}var b,N,y,Y;k.S.update({exclusive:(b=k.T)==null?void 0:(N=b.bannerData)==null?void 0:(y=N.itemData)==null?void 0:(Y=y.exclusivesData)==null?void 0:Y.exclusiveOfferLabelText});k.S.show();fA(k);var T;(T=k.aO)==null||T.start()}else pfi(k)}; pfi=function(k){var p;(p=k.aO)==null||p.stop();k.Z.hide();k.S.hide();bs(k)}; Jaw=function(k){var p,t,J=(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:t.itemData;return k.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(J==null||!J.priceReplacementText)&&(J==null?0:J.promotionText)?J==null?void 0:J.promotionText.content:null}; oj0=function(k){var p,t,J=(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:t.itemData,q,F;if(!(J!=null&&J.priceReplacementText||k.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(J==null?0:(q=J.dealsData)==null?0:(F=q.sales)==null?0:F.originalPrice)){var d,S;return J==null?void 0:(d=J.dealsData)==null?void 0:(S=d.sales)==null?void 0:S.originalPrice}return null}; qe_=function(k){var p,t,J=(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:t.itemData,q,F,d,S;if(!((J==null?0:J.priceReplacementText)||k.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(J==null?0:(q=J.dealsData)==null?0:(F=q.sales)==null?0:F.originalPrice))&&(J==null?0:(d=J.dealsData)==null?0:(S=d.priceDrop)==null?0:S.referencePrice)){var U,f;return J==null?void 0:(U=J.dealsData)==null?void 0:(f=U.priceDrop)==null?void 0:f.referencePrice}return null}; FIu=function(k){var p,t,J=(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:t.itemData;if(J==null?0:J.priceReplacementText)return J==null?void 0:J.priceReplacementText;if((J==null?0:J.promotionText)&&k.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q;return(J==null?void 0:J.price)+" "+(J==null?void 0:(q=J.promotionText)==null?void 0:q.content)}var F,d;if(J==null?0:(F=J.dealsData)==null?0:(d=F.sales)==null?0:d.originalPrice){var S,U;return J==null?void 0:(S=J.dealsData)== null?void 0:(U=S.sales)==null?void 0:U.salesPriceAccessibilityLabel}var f,b;if(J==null?0:(f=J.dealsData)==null?0:(b=f.priceDrop)==null?0:b.referencePrice){var N,y;return(J==null?void 0:J.price)+" "+(J==null?void 0:(N=J.dealsData)==null?void 0:(y=N.priceDrop)==null?void 0:y.referencePrice)}return J==null?void 0:J.price}; $V6=function(k){if(k.j.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var p,t,J;return k.Y.NW?null:(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:(J=t.itemData)==null?void 0:J.vendorName}var q,F,d,S,U,f;return k.Y.NW||k.S.NW||((q=k.T)==null?0:(F=q.bannerData)==null?0:(d=F.itemData)==null?0:d.affiliateDisclaimer)?null:(S=k.T)==null?void 0:(U=S.bannerData)==null?void 0:(f=U.itemData)==null?void 0:f.vendorName}; Ej9=function(k,p){Nh(k);if(p){var t=g.Kq.getState().entities;t=FG(t,"featuredProductsEntity",p);if(t!=null&&t.productsData){p=[];t=g.Z(t.productsData);for(var J=t.next();!J.done;J=t.next()){J=J.value;var q=void 0;if((q=J)!=null&&q.identifier&&J.featuredSegments){k.P0.push(J);var F=void 0;q=g.Z((F=J)==null?void 0:F.featuredSegments);for(F=q.next();!F.done;F=q.next()){var d=F.value;F=dVj(d.startTimeSec);F!==void 0&&(d=dVj(d.endTimeSec),p.push(new g.xf(F*1E3,d===void 0?0x7ffffffffffff:d*1E3,{id:J.identifier, namespace:"featured_product"})))}}}k.j.Lb(p)}}}; bs=function(k){if(k.trendingOfferEntityKey){var p=g.Kq.getState().entities;if(p=FG(p,"trendingOfferEntity",k.trendingOfferEntityKey)){var t,J,q;p.encodedSkuId!==((t=k.T)==null?void 0:(J=t.bannerData)==null?void 0:(q=J.itemData)==null?void 0:q.encodedOfferSkuId)?fA(k):(k.Y.update({trendingOffer:p.shortLabel+" \u2022 "+p.countLabel}),k.Y.show(),k.banner.update({vendor:$V6(k)}))}else fA(k)}else fA(k)}; fA=function(k){k.Y.hide();k.banner.update({vendor:$V6(k)})}; Nh=function(k){k.P0=[];k.Dz();k.j.VM("featured_product")}; Seu=function(k){var p,t,J,q,F=(p=k.T)==null?void 0:(t=p.bannerData)==null?void 0:(J=t.itemData)==null?void 0:(q=J.hiddenProductOptions)==null?void 0:q.dropTimestampMs;p=(Number(F)-Date.now())/1E3;k.countdownTimer.HH(fj({seconds:p}));if(p>0){var d;(d=k.ez)==null||d.start()}}; UVi=function(k){var p;(p=k.ez)==null||p.stop();k.countdownTimer.hide()}; dVj=function(k){if(k!==void 0&&k.trim()!==""&&(k=Math.trunc(Number(k.trim())),!(isNaN(k)||k<0)))return k}; Yew=function(k,p,t){g.M.call(this,{K:"div",S6:["ytp-info-panel-action-item"],U:[{K:"div",W:"ytp-info-panel-action-item-disclaimer",sy:"{{disclaimer}}"},{K:"a",S6:["ytp-info-panel-action-item-button","ytp-button"],J:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},U:[{K:"div",W:"ytp-info-panel-action-item-icon",sy:"{{icon}}"},{K:"div",W:"ytp-info-panel-action-item-label",sy:"{{label}}"}]}]});this.j=k;this.T=t;this.disclaimer=this.Kp("ytp-info-panel-action-item-disclaimer");this.button= this.Kp("ytp-info-panel-action-item-button");this.IG=!1;this.j.createServerVe(this.element,this,!0);this.listen("click",this.onClick);k="";t=g.e(p==null?void 0:p.onTap,Qt);var J=g.e(t,g.i3);this.IG=!1;J?(k=J.url||"",k.startsWith("//")&&(k="https:"+k),this.IG=!0,g.PH(this.button,g.iC(k))):(J=g.e(t,fk0))&&!this.T?((k=J.phoneNumbers)&&k.length>0?(k="sms:"+k[0],J.messageText&&(k+="?&body="+encodeURI(J.messageText))):k="",this.IG=!0,g.PH(this.button,g.iC(k,[bUM]))):(t=g.e(t,Nyu))&&!this.T&&(k=t.phoneNumber? "tel:"+t.phoneNumber:"",this.IG=!0,g.PH(this.button,g.iC(k,[yai])));var q;if(t=(q=p.disclaimerText)==null?void 0:q.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var F;this.update({label:(F=p.bodyText)==null?void 0:F.content,icon:At(),disclaimer:t})}else{this.disclaimer.style.display="none";var d;this.update({label:(d=p.bodyText)==null?void 0:d.content,icon:At()})}this.j.setTrackingParams(this.element,p.trackingParams||null);this.IG&&(this.Y={externalLinkData:{url:k}})}; Ty0=function(k,p){var t=qq();g.GB.call(this,k,{K:"div",W:"ytp-info-panel-detail-skrim",U:[{K:"div",W:"ytp-info-panel-detail",J:{role:"dialog",id:t},U:[{K:"div",W:"ytp-info-panel-detail-header",U:[{K:"div",W:"ytp-info-panel-detail-title",sy:"{{title}}"},{K:"button",S6:["ytp-info-panel-detail-close","ytp-button"],J:{"aria-label":"Close"},U:[g.Ts()]}]},{K:"div",W:"ytp-info-panel-detail-body",sy:"{{body}}"},{K:"div",W:"ytp-info-panel-detail-items"}]}]},250);this.T=p;this.items=this.Kp("ytp-info-panel-detail-items"); this.N=new g.nC(this);this.itemData=[];this.C=t;this.V(this.Kp("ytp-info-panel-detail-close"),"click",this.xI);this.V(this.Kp("ytp-info-panel-detail-skrim"),"click",this.xI);this.V(this.Kp("ytp-info-panel-detail"),"click",function(J){J.stopPropagation()}); g.z(this,this.N);this.j.createServerVe(this.element,this,!0);this.V(k,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",k.getVideoData());this.hide()}; raM=function(k,p){k=g.Z(k.itemData);for(var t=k.next();!t.done;t=k.next())t=t.value,t.j.logVisibility(t.element,p)}; Aah=function(k,p){g.M.call(this,{K:"div",W:"ytp-info-panel-preview",J:{"aria-live":"assertive","aria-atomic":"true","aria-owns":p.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.V0(k.G()))},U:[{K:"div",W:"ytp-info-panel-preview-text",sy:"{{text}}"},{K:"div",W:"ytp-info-panel-preview-chevron",sy:"{{chevron}}"}]});var t=this;this.j=k;this.B1=this.T=this.videoId=null;this.C=this.showControls=this.Y=!1;this.V(this.element,"click",function(){k.logClick(t.element);k.wP();X4(p)}); this.N=new g.K1(this,250,!1,100);g.z(this,this.N);this.j.createServerVe(this.element,this,!0);this.V(k,"videodatachange",this.onVideoDataChange);this.V(k,"presentingplayerstatechange",this.Ff);this.V(this.j,"paidcontentoverlayvisibilitychange",this.KQ);this.V(this.j,"infopaneldetailvisibilitychange",this.KQ);var J=k.getVideoData()||{};ZUT(J)&&CXe(this,J);this.V(k,"onShowControls",this.Q5);this.V(k,"onHideControls",this.jQ)}; CXe=function(k,p){if(!p.Gt||!k.j.cn()){var t=p.kc||1E4,J=ZUT(p);k.T?p.videoId&&p.videoId!==k.videoId&&(g.H8(k.T),k.videoId=p.videoId,J?(mVj(k,t,p),k.Iu()):(k.xI(),k.T.dispose(),k.T=null)):J&&(p.videoId&&(k.videoId=p.videoId),mVj(k,t,p),k.Iu())}}; ZUT=function(k){var p,t,J,q;return!!((p=k.Dw)==null?0:(t=p.title)==null?0:t.content)||!!((J=k.Dw)==null?0:(q=J.bodyText)==null?0:q.content)}; mVj=function(k,p,t){k.T&&k.T.dispose();k.T=new g.jF(k.zk6,p,k);g.z(k,k.T);var J;p=((J=t.Dw)==null?void 0:J.trackingParams)||null;k.j.setTrackingParams(k.element,p);var q;var F,d;if(t==null?0:(F=t.Dw)==null?0:(d=F.title)==null?0:d.content){var S;J=(q=t.Dw)==null?void 0:(S=q.title)==null?void 0:S.content;var U,f;if((U=t.Dw)==null?0:(f=U.bodyText)==null?0:f.content)J+=" \u2022 ";q=J}else q="";var b,N;t=((b=t.Dw)==null?void 0:(N=b.bodyText)==null?void 0:N.content)||"";k.update({text:q+t,chevron:g.Y3()})}; Vbe=function(k,p){k.T&&(g.u(p,8)?(k.Y=!0,k.Iu(),k.T.start()):(g.u(p,2)||g.u(p,64))&&k.videoId&&(k.videoId=null))}; y$=function(k){var p=null;try{p=k.toLocaleString("en",{style:"percent"})}catch(t){p=k.toLocaleString(void 0,{style:"percent"})}return p}; Y1=function(k,p){var t=0;k=g.Z(k);for(var J=k.next();!(J.done||J.value.startTime>p);J=k.next())t++;return t===0?t:t-1}; WI6=function(k,p){for(var t=0,J=g.Z(k),q=J.next();!q.done;q=J.next()){q=q.value;if(p<q.timeRangeStartMillis)return null;if(p>=q.timeRangeStartMillis&&p<q.timeRangeStartMillis+q.T)break;t++}t+1<k.length&&k[t+1].timeRangeStartMillis<=p&&t++;return t<k.length?t:null}; DV_=function(k,p){p=Y1(k,p)+1;return p<k.length?p:-1}; sMh=function(k,p){return Y1(k,p)-1}; LIi=function(k,p){return new g.xf(k,p,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+k})}; caS=function(k,p,t,J,q,F,d,S){g.nC.call(this);var U=this;this.api=k;this.contextMenu=t;this.HQ=J;this.XA=q;this.T=F;this.S=d;this.progressBar=S;this.X=new g.jF(function(){vj0(U,!1)},1E3); this.Y="";this.N={nD:!1};this.C=!1;g.z(this,this.X);this.V(p,"mousedown",function(){Td(U,!1)}); this.V(t.element,"mousedown",function(){Td(U,!1)}); this.V(p,"keydown",this.Nl);this.V(t.element,"keydown",this.Nl);this.V(p,"keyup",this.C6);this.V(t.element,"keyup",this.C6)}; nju=function(k,p){return p<0?0:Math.floor(Math.min(p,k.api.getDuration())*1E3)}; rr=function(k,p,t){var J=k.api.getCurrentTime(),q=nju(k,J);k=nju(k,J+p);return{startMediaTimeMs:q,endMediaTimeMs:k,seekSource:t}}; wfh=function(k){var p,t=(p=k.api.getVideoData())==null?void 0:p.u1();return k.api.getPresentingPlayerType(t)!==2}; Td=function(k,p){k.C=p;g.$E(k.api.getRootNode(),"ytp-probably-keyboard-focus",p);g.$E(k.contextMenu.element,"ytp-probably-keyboard-focus",p)}; CA=function(k,p,t,J){var q=g.iU(k.api.EQ());if(q&&q.loaded){var F=k.api.getSubtitlesUserSettings();q=void 0;for(var d=0;d<g.Zx.length;d++){var S=g.Zx[d];if(S.option===p){q=S.options;break}}d=void 0;for(S=0;S<q.length;S++)q[S].option===F[p]&&(d=S);if(J)if(t){if(d===0)return}else if(d===q.length-1)return;J={};J[p]=q[(d+(t?q.length-1:1))%q.length].option;k.api.updateSubtitlesUserSettings(J);vj0(k,!0);k.X.start()}}; vj0=function(k,p){g.iU(k.api.EQ())&&k.api.setOption("captions","sampleSubtitles",p)}; g.Ap=function(k,p){g.M.call(this,{K:"button",S6:["ytp-button","ytp-overflow-button"],J:{title:"More","aria-haspopup":"true","aria-owns":p.element.id},U:[{K:"div",W:"ytp-overflow-icon",U:[{K:"svg",J:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{K:"path",J:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var t=this;this.j=k;this.jP=p;this.T=this.visible=!1;k.createClientVe(this.element, this,16499);this.V(k,"videoplayerreset",this.Zr);this.V(k,"appresize",this.Zr);this.V(k,"fullscreentoggled",this.Zr);this.V(k,"presentingplayerstatechange",this.Zr);this.Zr();ZB(k,this.element,this);this.listen("click",function(){k.logClick(t.element);X4(p,t.element,!1)}); this.V(p.closeButton,"click",function(){t.focus()})}; iUS=function(k){g.GB.call(this,k,{K:"div",W:"ytp-overflow-panel",J:{id:qq(),role:"dialog"},U:[{K:"div",W:"ytp-overflow-panel-content",U:[{K:"div",W:"ytp-overflow-panel-action-buttons",sy:"{{buttons}}"}]},{K:"button",S6:["ytp-overflow-panel-close","ytp-button"],J:{title:"Close"},U:[g.Ts()]}]},250);this.actionButtons=[];this.T=this.Kp("ytp-overflow-panel-content");this.closeButton=this.Kp("ytp-overflow-panel-close");this.V(this.closeButton,"click",this.xI);ZB(k,this.closeButton,this);this.listen("click", this.qo);this.V(k,"videoplayerreset",this.hide);this.V(k,"fullscreentoggled",this.onFullscreenToggled);this.hide()}; QMM=function(k,p){k.actionButtons.includes(p)||(k.actionButtons.push(p),k.updateValue("buttons",k.actionButtons))}; PX0=function(k,p){k=g.Z(k.actionButtons);for(var t=k.next();!t.done;t=k.next())t.value.Wp(p)}; G$i=function(k,p,t){var J=g.AR(p,t),q=J.KL("default.jpg");g.M.call(this,{K:"a",S6:["ytp-video-menu-item","ytp-button"],J:{role:"menuitemradio","aria-label":J.title,href:k.G().getVideoUrl(J.videoId,p.listId?p.listId.toString():null)},U:[{K:"div",W:"ytp-video-menu-item-index",sy:String(t+1)},{K:"div",W:"ytp-video-menu-item-now-playing",sy:"\u25b6"},{K:"div",W:"ytp-video-menu-item-thumbnail",J:{style:q?"background-image: url("+q+");":void 0}},{K:"div",W:"ytp-video-menu-item-title",sy:J.title},{K:"div", W:"ytp-video-menu-item-author",sy:J.author}]});this.api=k;this.index=t;this.listen("click",this.onClick)}; Ikh=function(k){g.GB.call(this,k,{K:"div",W:"ytp-playlist-menu",J:{role:"dialog",id:qq()},U:[{K:"div",W:"ytp-playlist-menu-header",U:[{K:"div",W:"ytp-playlist-menu-title",U:[k.G().N?{K:"span",W:"ytp-playlist-menu-title-name",sy:"{{title}}"}:{K:"a",W:"ytp-playlist-menu-title-name",J:{href:"{{playlisturl}}"},sy:"{{title}}"},{K:"button",S6:["ytp-playlist-menu-close","ytp-button"],J:{"aria-label":"Close"},U:[g.Ts()]}]},{K:"div",W:"ytp-playlist-menu-subtitle",sy:"{{subtitle}}"}]},{K:"div",W:"ytp-playlist-menu-items", J:{role:"menu"}}]},250);this.api=k;this.N=this.selected=this.C=this.playlist=null;this.items=this.Kp("ytp-playlist-menu-items");this.T=new g.nC(this);this.playlistData=[];this.V(this.Kp("ytp-playlist-menu-close"),"click",this.xI);var p=this.Kp("ytp-playlist-menu-title-name");k.G().N||(this.N=this.V(p,"click",this.ABb));g.z(this,this.T);this.hide()}; mL=function(k,p){g.M.call(this,{K:"button",S6:["ytp-playlist-menu-button","ytp-button"],J:{title:"{{title}}","aria-owns":String(p.element.id),"aria-haspopup":"true","aria-label":"Playlist"},U:[{K:"div",W:"ytp-playlist-menu-button-icon",U:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z", fill:"#fff"}}]}]},{K:"div",W:"ytp-playlist-menu-button-text",sy:"{{text}}"}]});var t=this;this.api=k;this.playlist=null;this.visible=!1;k.createClientVe(this.element,this,70344);this.V(k,"videodatachange",this.T);this.V(k,"videoplayerreset",this.T);this.V(k,"onPlaylistUpdate",this.T);this.V(k,"presentingplayerstatechange",this.Zr);this.V(k,"appresize",this.Zr);this.hide();this.T();ZB(k,this.element,this);this.listen("click",function(){k.logClick(t.element);X4(p,t.element,!1)})}; Xfj=function(k,p){g.M.call(this,{K:"div",W:"ytp-promotooltip-wrapper",U:[{K:"div",W:"ytp-promotooltip-container",U:[{K:"div",W:"ytp-promotooltip-content",U:[{K:"div",W:"ytp-promotooltip-title",sy:"{{title}}"},{K:"div",W:"ytp-promotooltip-details",sy:"{{details}}"}]},{K:"div",W:"ytp-promotooltip-buttons",U:[{K:"div",W:"ytp-promotooltip-dismiss-button",sy:"{{dismissButtonText}}",J:{tabindex:"0"}},{K:"div",W:"ytp-promotooltip-accept-button",sy:"{{acceptButtonText}}",J:{tabindex:"0","aria-haspopup":"true"}}]}]}, {K:"div",W:"ytp-promotooltip-pointer"}]});var t=this;this.tooltipRenderer=k;this.j=p;this.T=this.N=null;this.title=this.Kp("ytp-promotooltip-title");this.details=this.Kp("ytp-promotooltip-details");this.acceptButton=this.Kp("ytp-promotooltip-accept-button");this.dismissButton=this.Kp("ytp-promotooltip-dismiss-button");this.Y=this.S=!1;this.C=!0;this.gy=this.Z=this.L=this.B=!1;this.u3={BM:function(J){t.BM(J)}}; this.rS(!1);k=this.tooltipRenderer.trackingParams||null;if(this.Y=!!k)this.j.createServerVe(this.element,this,!0),this.j.setTrackingParams(this.element,k);this.V(p,"onShowControls",this.Mo);this.V(p,"onHideControls",this.SQ);this.V(p,"resize",this.zA);this.V(this.acceptButton,"click",this.hAO);this.V(this.dismissButton,"click",this.oxG);this.V(document,"click",this.OE)}; Rlw=function(k){var p=document.querySelectorAll('[data-tooltip-target-id="'+k.tooltipRenderer.targetId+'"]');p=p.length>0?p[0]:null;var t=g.lh("ytp-chrome-bottom"),J=g.lh("ytp-ad-module");k.C=!(t==null||!t.contains(p));k.B=!(J==null||!J.contains(p));k.L=!(p==null||!p.hasAttribute("data-tooltip-target-fixed"));return p}; eli=function(k,p,t){if(!k.S){if(p){k.tooltipRenderer=p;p=k.tooltipRenderer.text;var J=!1,q;(p==null?0:(q=p.runs)==null?0:q.length)&&p.runs[0].text&&(k.update({title:p.runs[0].text.toString()}),J=!0);g.mS(k.title,J);p=k.tooltipRenderer.detailsText;q=!1;var F;if((p==null?0:(F=p.runs)==null?0:F.length)&&p.runs[0].text){J=p.runs[0].text.toString();F=J.indexOf("$TARGET_ICON");if(F>-1)if(k.tooltipRenderer.targetId){p=[];J=J.split("$TARGET_ICON");var d=new g.FK({K:"span",W:"ytp-promotooltip-details-icon", U:[Byw[k.tooltipRenderer.targetId]]});g.z(k,d);for(var S=[],U=g.Z(J),f=U.next();!f.done;f=U.next())f=new g.FK({K:"span",W:"ytp-promotooltip-details-component",sy:f.value}),g.z(k,f),S.push(f);J.length===2?(p.push(S[0].element),p.push(d.element),p.push(S[1].element)):J.length===1&&(F===0?(p.push(d.element),p.push(S[0].element)):(p.push(S[0].element),p.push(d.element)));F=p.length?p:null}else F=null;else F=J;if(F){if(typeof F!=="string")for(g.J1(k.details),q=g.Z(F),F=q.next();!F.done;F=q.next())k.details.appendChild(F.value); else k.update({details:F});q=!0}}g.mS(k.details,q);q=k.tooltipRenderer.acceptButton;F=!1;var b,N,y;((b=g.e(q,g.vT))==null?0:(N=b.text)==null?0:(y=N.runs)==null?0:y.length)&&g.e(q,g.vT).text.runs[0].text&&(k.update({acceptButtonText:g.e(q,g.vT).text.runs[0].text.toString()}),F=!0);g.mS(k.acceptButton,F);b=k.tooltipRenderer.dismissButton;N=!1;var Y,T,A;((Y=g.e(b,g.vT))==null?0:(T=Y.text)==null?0:(A=T.runs)==null?0:A.length)&&g.e(b,g.vT).text.runs[0].text&&(k.update({dismissButtonText:g.e(b,g.vT).text.runs[0].text.toString()}), N=!0);g.mS(k.dismissButton,N)}t&&(k.N=t);k.T=Rlw(k);k.Z=!1;k.j.G().D("web_player_hide_nitrate_promo_tooltip")||k.rS(!0);zlT(k);k.NW&&!k.gy&&(k.gy=!0,k.u3.BM(0));k.Y&&k.j.logVisibility(k.element,k.NW)}}; V$=function(k){k.rS(!1);k.Y&&k.j.logVisibility(k.element,k.NW)}; hlw=function(k){var p,t,J,q=((p=g.e(k.acceptButton,g.vT))==null?void 0:(t=p.text)==null?void 0:(J=t.runs)==null?void 0:J.length)&&!!g.e(k.acceptButton,g.vT).text.runs[0].text,F,d,S;p=((F=g.e(k.dismissButton,g.vT))==null?void 0:(d=F.text)==null?void 0:(S=d.runs)==null?void 0:S.length)&&!!g.e(k.dismissButton,g.vT).text.runs[0].text;return q||p}; zlT=function(k){var p;if(!(p=!k.T)){p=k.T;var t=window.getComputedStyle(p);p=t.display==="none"||t.visibility==="hidden"||p.getAttribute("aria-hidden")==="true"}if(p||k.j.isMinimized())k.rS(!1);else if(p=g.AK(k.T),p.width&&p.height){k.j.Yn(k.element,k.T);var J=k.j.Uy().getPlayerSize().height;t=g.AK(k.Kp("ytp-promotooltip-container")).height;k.C?k.element.style.top=J-t-p.height-12+"px":k.L||(J=k.j.kL().height-t-p.height-12,k.element.style.top=J+"px");J=k.Kp("ytp-promotooltip-pointer");var q=g.Z0(k.T, k.j.getRootNode()),F=Number(k.element.style.left.replace(/[^\d\.]/g,""));k=k.j.isFullscreen()?18:12;J.style.left=q.x-F+p.width/2-k+"px";J.style.top=t+"px"}else k.rS(!1)}; Wa=function(k){g.M.call(this,{K:"button",S6:["ytp-replay-button","ytp-button"],J:{title:"Replay"},U:[g.VF()]});this.j=k;this.V(k,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.cH(k.getPlayerStateObject());ZB(this.j,this.element,this)}; Dx=function(k,p){p=p===void 0?240:p;g.M.call(this,{K:"button",S6:["ytp-button","ytp-search-button"],J:{title:"Search","data-tooltip-opaque":String(g.V0(k.G()))},U:[{K:"div",W:"ytp-search-icon",sy:"{{icon}}"},{K:"div",W:"ytp-search-title",sy:"Search"}]});this.api=k;this.Y=p;this.visible=!1;this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",W:"ytp-svg-fill",J:{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"}}]}); k.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.V(k,"appresize",this.T);this.V(k,"videodatachange",this.T);ZB(k,this.element,this)}; g.LA=function(k,p,t,J){J=J===void 0?240:J;g.M.call(this,{K:"button",S6:["ytp-button","ytp-share-button"],J:{title:"Share","aria-haspopup":"true","aria-owns":t.element.id,"data-tooltip-opaque":String(g.V0(k.G()))},U:[{K:"div",W:"ytp-share-icon",sy:"{{icon}}"},{K:"div",W:"ytp-share-title",sy:"Share"}]});this.api=k;this.T=p;this.N=t;this.C=J;this.Y=this.visible=!1;this.tooltip=this.T.AB();k.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.V(k,"videodatachange",this.Zr); this.V(k,"videoplayerreset",this.Zr);this.V(k,"appresize",this.Zr);this.V(k,"presentingplayerstatechange",this.Zr);this.Zr();this.addOnDisposeCallback(g.r4(this.tooltip,this.element))}; akT=function(k){var p=k.api.G(),t=k.api.getVideoData(),J=g.V0(p)&&g.DB(k.api)&&g.u(k.api.getPlayerStateObject(),128);p=p.N||p.disableSharing&&k.api.getPresentingPlayerType()!==2||!t.showShareButton||t.xY||J||g.Ky(t)||k.Y;J=k.api.Uy().getPlayerSize().width;return!!t.videoId&&J>=k.C&&!p}; MbM=function(k,p){p.name!=="InvalidStateError"&&p.name!=="AbortError"&&(p.name==="NotAllowedError"?(k.T.wP(),X4(k.N,k.element,!1)):g.nV(p))}; uli=function(k,p){var t=qq(),J=k.G();t={K:"div",W:"ytp-share-panel",J:{id:qq(),role:"dialog","aria-labelledby":t},U:[{K:"div",W:"ytp-share-panel-inner-content",U:[{K:"div",W:"ytp-share-panel-title",J:{id:t},sy:"Share"},{K:"a",S6:["ytp-share-panel-link","ytp-no-contextmenu"],J:{href:"{{link}}",target:J.L,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},sy:"{{linkText}}"},{K:"label",W:"ytp-share-panel-include-playlist",U:[{K:"input",W:"ytp-share-panel-include-playlist-checkbox",J:{type:"checkbox", checked:"true"}},"Include playlist"]},{K:"div",W:"ytp-share-panel-loading-spinner",U:[tr()]},{K:"div",W:"ytp-share-panel-service-buttons",sy:"{{buttons}}"},{K:"div",W:"ytp-share-panel-error",sy:"An error occurred while retrieving sharing information. Please try again later."}]},{K:"button",S6:["ytp-share-panel-close","ytp-button"],J:{title:"Close"},U:[g.Ts()]}]};g.GB.call(this,k,t,250);var q=this;this.moreButton=null;this.api=k;this.tooltip=p.AB();this.N=[];this.S=this.Kp("ytp-share-panel-inner-content"); this.closeButton=this.Kp("ytp-share-panel-close");this.V(this.closeButton,"click",this.xI);this.addOnDisposeCallback(g.r4(this.tooltip,this.closeButton));this.C=this.Kp("ytp-share-panel-include-playlist-checkbox");this.V(this.C,"click",this.Zr);this.T=this.Kp("ytp-share-panel-link");this.addOnDisposeCallback(g.r4(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.V(this.T,"click",function(F){F.preventDefault();q.api.logClick(q.T);var d=q.api.getVideoUrl(!0,!0,!1,!1);d=gju(q,d); g.pP(d,q.api,F)&&q.api.zb("SHARE_CLICKED")}); this.listen("click",this.xz);this.V(k,"videoplayerreset",this.hide);this.V(k,"fullscreentoggled",this.onFullscreenToggled);this.V(k,"onLoopRangeChange",this.CGb);this.hide()}; jMe=function(k,p){lkh(k);for(var t=p.links||p.shareTargets,J=0,q={},F=0;F<t.length&&J<2;q={Mk:void 0,uL:void 0},F++){q.Mk=t[F];a:switch(q.Mk.img||q.Mk.iconId){case "facebook":var d={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":d={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:d=null}if(d){var S=q.Mk.sname||q.Mk.serviceName;q.uL=new g.M({K:"a",S6:["ytp-share-panel-service-button","ytp-button"],J:{href:q.Mk.url,target:"_blank",title:S},U:[d]});q.uL.listen("click",function(b){return function(N){var y=b.Mk.url;if(g.A5(N)){var Y=Y===void 0?{}:Y;Y.target=Y.target||"YouTube";Y.width=Y.width||"600";Y.height=Y.height||"600";var T=Y;T||(T={});Y=window;var A=y instanceof vH?y:g.iC(typeof y.href!="undefined"?y.href:String(y));var V=self.crossOriginIsolated!== void 0,D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);var v=D==="unsafe-url";D=T.noreferrer;if(V&&D){if(v)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");D=!1}y=T.target||y.target;V=[];for(var w in T)switch(w){case "width":case "height":case "top":case "left":V.push(w+"="+T[w]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":V.push(w+(T[w]?"="+T[w]: ""));break;default:V.push(w+"="+(T[w]?1:0))}w=V.join(",");MQ()&&Y.navigator&&Y.navigator.standalone&&y&&y!="_self"?(w=g.kW("A"),g.PH(w,A),w.target=y,D&&(w.rel="noreferrer"),((T=T.attributionsrc)||T==="")&&w.setAttribute("attributionsrc",T),T=document.createEvent("MouseEvent"),T.initMouseEvent("click",!0,!0,Y,1),w.dispatchEvent(T),Y={}):D?(Y=g.R_(Y,"",y,w),T=g.cH(A),Y&&(Y.opener=null,T===""&&(T="javascript:''"),T=I_('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ HH(T)+'">'),(A=Y.document)&&A.write&&(A.write(Xv(T)),A.close()))):((Y=g.R_(Y,A,y,w))&&T.noopener&&(Y.opener=null),Y&&T.noreferrer&&(Y.opener=null));Y&&(Y.opener||(Y.opener=window),Y.focus());N.preventDefault()}}}(q)); q.uL.addOnDisposeCallback(g.r4(k.tooltip,q.uL.element));S==="Facebook"?k.api.createClientVe(q.uL.element,q.uL,164504):S==="Twitter"&&k.api.createClientVe(q.uL.element,q.uL,164505);k.V(q.uL.element,"click",function(b){return function(){k.api.logClick(b.uL.element)}}(q)); k.api.logVisibility(q.uL.element,!0);k.N.push(q.uL);J++}}var U=p.more||p.moreLink,f=new g.M({K:"a",S6:["ytp-share-panel-service-button","ytp-button"],U:[{K:"span",W:"ytp-share-panel-service-button-more",U:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{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"}}]}]}],J:{href:U,target:"_blank",title:"More"}});f.listen("click",function(b){var N=U;k.api.logClick(k.moreButton.element);N=gju(k,N);g.pP(N,k.api,b)&&k.api.zb("SHARE_CLICKED")}); f.addOnDisposeCallback(g.r4(k.tooltip,f.element));k.api.createClientVe(f.element,f,164506);k.V(f.element,"click",function(){k.api.logClick(f.element)}); k.api.logVisibility(f.element,!0);k.N.push(f);k.moreButton=f;k.updateValue("buttons",k.N)}; gju=function(k,p){var t={};g.V0(k.api.G())&&(g.F4(k.api,"addEmbedsConversionTrackingParams",[t]),p=g.hM(p,t));return p}; lkh=function(k){for(var p=g.Z(k.N),t=p.next();!t.done;t=p.next())t=t.value,t.detach(),g.ER(t);k.N=[]}; va=function(k){return k===void 0||k.startSec===void 0||k.endSec===void 0?!1:!0}; OUe=function(k,p){k.startSec+=p;k.endSec+=p}; HUw=function(k){Gr.call(this,k);this.Y=this.T=this.isContentForward=this.Z=!1;KIu(this);this.V(this.j,"changeProductsInVideoVisibility",this.gf0);this.V(this.j,"videodatachange",this.onVideoDataChange)}; xVw=function(k){k.S&&k.Oy.element.removeChild(k.S.element);k.S=void 0}; pyS=function(k,p){return p.map(function(t){var J,q;if((t=(J=g.e(t,k59))==null?void 0:(q=J.thumbnail)==null?void 0:q.thumbnails)&&t.length!==0)return t[0].url}).filter(function(t){return t!==void 0}).map(function(t){t=new g.M({K:"img", W:"ytp-suggested-action-product-thumbnail",J:{alt:"",src:t}});g.z(k,t);return t})}; to9=function(k,p){k.isContentForward=p;g.$E(k.badge.element,"ytp-suggested-action-badge-content-forward",p)}; ca=function(k){var p=k.isContentForward&&!k.PA();g.$E(k.badge.element,"ytp-suggested-action-badge-preview-collapsed",p&&k.T);g.$E(k.badge.element,"ytp-suggested-action-badge-preview-expanded",p&&k.Y)}; nA=function(k,p,t){return new g.xf(k*1E3,p*1E3,{priority:9,namespace:t})}; JW_=function(k){k.j.VM("shopping_overlay_visible");k.j.VM("shopping_overlay_preview_collapsed");k.j.VM("shopping_overlay_preview_expanded");k.j.VM("shopping_overlay_expanded")}; KIu=function(k){k.V(k.j,g.pT("shopping_overlay_visible"),function(){k.y7(!0)}); k.V(k.j,g.tA("shopping_overlay_visible"),function(){k.y7(!1)}); k.V(k.j,g.pT("shopping_overlay_expanded"),function(){k.Y8=!0;Pu(k)}); k.V(k.j,g.tA("shopping_overlay_expanded"),function(){k.Y8=!1;Pu(k)}); k.V(k.j,g.pT("shopping_overlay_preview_collapsed"),function(){k.T=!0;ca(k)}); k.V(k.j,g.tA("shopping_overlay_preview_collapsed"),function(){k.T=!1;ca(k)}); k.V(k.j,g.pT("shopping_overlay_preview_expanded"),function(){k.Y=!0;ca(k)}); k.V(k.j,g.tA("shopping_overlay_preview_expanded"),function(){k.Y=!1;ca(k)})}; Fse=function(k){g.M.call(this,{K:"div",W:"ytp-shorts-title-channel",U:[{K:"a",W:"ytp-shorts-title-channel-logo",J:{href:"{{channelLink}}",target:k.G().L,"aria-label":"{{channelLogoLabel}}"}},{K:"div",W:"ytp-shorts-title-expanded-heading",U:[{K:"div",W:"ytp-shorts-title-expanded-title",U:[{K:"a",sy:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:k.G().L,tabIndex:"0"}}]}]}]});var p=this;this.api=k;this.T=this.Kp("ytp-shorts-title-channel-logo");this.channelName=this.Kp("ytp-shorts-title-expanded-title"); this.subscribeButton=null;k.createClientVe(this.T,this,36925);this.V(this.T,"click",function(t){p.api.logClick(p.T);g.R_(window,obq(p));t.preventDefault()}); k.createClientVe(this.channelName,this,37220);this.V(this.channelName,"click",function(t){p.api.logClick(p.channelName);g.R_(window,obq(p));t.preventDefault()}); qV9(this);this.V(k,"videodatachange",this.Zr);this.V(k,"videoplayerreset",this.Zr);this.Zr()}; qV9=function(k){if(!k.api.G().UQ){var p=k.api.getVideoData(),t=new g.qh("Subscribe",null,"Subscribed",null,!0,!1,p.Nc,p.subscribed,"channel_avatar",null,k.api,!0);k.api.createServerVe(t.element,k);var J;k.api.setTrackingParams(t.element,((J=p.subscribeButtonRenderer)==null?void 0:J.trackingParams)||null);k.V(t.element,"click",function(){k.api.logClick(t.element)}); k.subscribeButton=t;g.z(k,k.subscribeButton);k.subscribeButton.QT(k.element)}}; obq=function(k){var p=k.api.G(),t=k.api.getVideoData();t=g.Hs(p)+t.Fd;if(!g.V0(p))return t;p={};g.F4(k.api,"addEmbedsConversionTrackingParams",[p]);return g.hM(t,p)}; wr=function(k){g.GB.call(this,k,{K:"button",S6:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{K:"div",W:"ytp-skip-intro-button-text",sy:"Skip Intro"}]},100);var p=this;this.N=!1;this.T=new g.jF(function(){p.hide()},5E3); this.V4=this.Xo=NaN;g.z(this,this.T);this.Z=function(){p.show()}; this.S=function(){p.hide()}; this.C=function(){var t=p.j.getCurrentTime();t>p.Xo/1E3&&t<p.V4/1E3&&p.show()}; this.V(this.j,"videodatachange",function(t,J){p.hP(t,J)}); this.V(this.element,"click",function(){p.j.seekTo(p.V4/1E3)}); this.hide()}; is=function(k){g.M.call(this,{K:"button",S6:["ytp-airplay-button","ytp-button"],J:{title:"AirPlay","data-priority":"10"},sy:"{{icon}}"});this.j=k;this.listen("click",this.onClick);this.V(k,"airplayactivechange",this.Zr);this.V(k,"airplayavailabilitychange",this.Zr);this.Zr();ZB(k,this.element,this)}; dHi=function(k){g.M.call(this,{K:"div",W:"ytp-gradient-bottom"});this.Y=g.kW("CANVAS");this.T=this.Y.getContext("2d",{willReadFrequently:!0});this.N=NaN;this.Y.width=1;$HS(this,k.Uy().getPlayerSize().height)}; $HS=function(k,p){if(k.T){p=Math.floor(p*.4);p=Math.max(p,47);var t=p+2;if(k.N!==t){k.N=t;k.Y.height=t;k.T.clearRect(0,0,1,t);var J=k.T.createLinearGradient(0,2,0,2+p),q=p-42;J.addColorStop(0,"rgba(0, 0, 0, 0)");J.addColorStop(q/p,"rgba(0, 0, 0, 0.3)");J.addColorStop(1,"rgba(0, 0, 0, 0.68)");k.T.fillStyle=J;k.T.fillRect(0,2,1,p);k.element.style.height=t+"px";try{k.element.style.backgroundImage="url("+k.Y.toDataURL()+")"}catch(F){}}}}; Q$=function(k,p,t,J){g.M.call(this,{K:"div",W:"ytp-chapter-container",U:[{K:"button",S6:["ytp-chapter-title","ytp-button"],U:[{K:"span",J:{"aria-hidden":"true"},W:"ytp-chapter-title-prefix",sy:"\u2022"},{K:"div",W:"ytp-chapter-title-content",sy:"{{title}}",J:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:J}},{K:"div",W:"ytp-chapter-title-chevron",U:[{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z", fill:"#fff"}}]}]}]}]});this.j=k;this.C=p;this.S="";this.currentIndex=0;this.Y=void 0;this.N=!0;this.gy=this.Kp("ytp-chapter-container");this.T=this.Kp("ytp-chapter-title");this.Y8=this.Kp("ytp-chapter-title-content");this.updateVideoData("newdata",this.j.getVideoData());this.V(k,"videodatachange",this.updateVideoData);this.V(this.gy,"click",this.onClick);this.V(k,g.pT(t),this.OF);this.V(k,"onLoopRangeChange",this.OF);this.V(k,"innertubeCommand",this.onClickCommand);(k=g.w7(this.j.G()))&&g.$E(this.T, "ytp-profile-page",!0);this.j.D("web_player_updated_entrypoint")&&g.$E(this.element,"ytp-xs-mono-button-style",!0);g.V0(this.j.G())||k||ZB(this.j,this.Y8,this)}; Pa=function(k,p){Q$.call(this,k,p,"chapterCueRange","View chapter");this.Z=""}; Ebh=function(k,p,t,J,q){var F=p.WI/p.rows,d=Math.min(t/(p.Wm/p.columns),J/F),S=p.Wm*d,U=p.WI*d;S=Math.floor(S/p.columns)*p.columns;U=Math.floor(U/p.rows)*p.rows;var f=S/p.columns,b=U/p.rows,N=-p.column*f,y=-p.row*b;q&&F<=45&&(b-=1/d);f-=2/d;k=k.style;k.width=f+"px";k.height=b+"px";q||(J=(J-b)/2,t=(t-f)/2,k.marginTop=Math.floor(J)+"px",k.marginBottom=Math.ceil(J)+"px",k.marginLeft=Math.floor(t)+"px",k.marginRight=Math.ceil(t)+"px");k.background="url("+p.url+") "+N+"px "+y+"px/"+S+"px "+U+"px"}; Gd=function(k,p){g.M.call(this,{K:"div",W:"ytp-storyboard-framepreview",U:[{K:"div",W:"ytp-storyboard-framepreview-timestamp",sy:"{{timestamp}}"},{K:"div",W:"ytp-storyboard-framepreview-img"}]});this.api=k;this.C=this.Kp("ytp-storyboard-framepreview-img");this.Y=null;this.N=NaN;this.events=new g.nC(this);this.T=new g.K1(this,100);g.z(this,this.events);g.z(this,this.T);this.V(this.api,"presentingplayerstatechange",this.S);p&&this.V(this.element,"click",function(){p.bE()})}; SVu=function(k,p){var t=!!k.Y;k.Y=p;k.Y?(t||(k.events.V(k.api,"videodatachange",function(){SVu(k,k.api.Ee())}),k.events.V(k.api,"progresssync",k.eh),k.events.V(k.api,"appresize",k.Z)),k.N=NaN,UH6(k),k.T.show(200)):(t&&g.Df(k.events),k.T.hide(),k.T.stop())}; UH6=function(k){var p=k.Y,t=k.api.getCurrentTime(),J=k.api.Uy().getPlayerSize(),q=nq(p,J.width);q=mge(p,q,t);k.update({timestamp:g.Ca(t)});q!==k.N&&(k.N=q,C9q(p,q,J.width),p=rb_(p,q,J.width),Ebh(k.C,p,J.width,J.height))}; fOh=function(k,p){g.M.call(this,{K:"button",S6:["ytp-fullscreen-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},sy:"{{icon}}"});this.j=k;this.Y=p;this.message=null;this.T=g.r4(this.Y.AB(),this.element);this.N=new g.jF(this.WX,2E3,this);g.z(this,this.N);this.V(k,"fullscreentoggled",this.ye);this.V(k,"presentingplayerstatechange",this.Zr);this.V(k,"resize",this.Zr);this.listen("click",this.onClick);g.bk()&& (p=this.j.Uy(),this.V(p,O2S(),this.fW),this.V(p,jt_(document),this.BI));k.G().Fd||k.G().B||this.disable();k.createClientVe(this.element,this,139117);this.Zr();this.ye(k.isFullscreen())}; IS=function(k,p){g.M.call(this,{K:"button",S6:["ytp-button","ytp-jump-button"],J:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},U:[p>0?{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",S6:["ytp-circle-arrow","ytp-svg-fill"],J:{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"}}, {K:"text",S6:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"7.05",y:"15.05"}}]}:{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",S6:["ytp-circle-arrow","ytp-svg-fill"],J:{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"}}, {K:"text",S6:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"6.5",y:"15"}}]}]});var t=this;this.j=k;this.T=p;this.Y=new g.jF(function(){t.N?(t.N=!1,t.Y.start()):t.element.classList.remove("ytp-jump-spin","backwards")},250); this.N=!1;(p=p>0)?this.j.createClientVe(this.element,this,36843):this.j.createClientVe(this.element,this,36844);var J=g.fT(p?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.update({title:J,"data-title-no-tooltip":J,"aria-keyshortcuts":p?"\u2192":"\u2190"});this.C=this.element.querySelector(".ytp-jump-button-text");this.C.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);ZB(k,this.element, this)}; bnh=function(k,p){p?k.element.classList.add("ytp-jump-button-enabled"):k.element.classList.remove("ytp-jump-button-enabled");k.j.logVisibility(k.element,p);k.j.Tk()}; X0=function(k,p){Q$.call(this,k,p,"timedMarkerCueRange","View key moments");this.V(k,g.tA("timedMarkerCueRange"),this.OF);this.V(k,"updatemarkervisibility",this.updateVideoData)}; NbL=function(k){var p,t=(p=k.j.getVideoData())==null?void 0:p.gs;if(t)for(k=k.C.RY,t=g.Z(t),p=t.next();!p.done;p=t.next())if(p=k[p.value]){var J=void 0,q=void 0,F=void 0;if(((J=p.onTap)==null?void 0:(q=J.innertubeCommand)==null?void 0:(F=q.changeEngagementPanelVisibilityAction)==null?void 0:F.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return p}}; RS=function(k){var p=k.D("web_enable_pip_on_miniplayer");g.M.call(this,{K:"button",S6:["ytp-miniplayer-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[p?{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},U:[{K:"g",J:{transform:"translate(96, -96) scale(0.8)"},U:[{K:"path",sF:!0,J:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: RNL()]});this.j=k;this.visible=!1;this.listen("click",this.onClick);this.V(k,"fullscreentoggled",this.Zr);this.updateValue("title",g.CK(k,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});ZB(k,this.element,this);k.createClientVe(this.element,this,62946);this.Zr()}; Ba=function(k,p,t){t=t===void 0?!1:t;g.M.call(this,{K:"button",S6:["ytp-mute-button","ytp-button"],J:k.G().RY?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},sy:"{{icon}}"});this.j=k;this.j6=t;this.T=null;this.C=this.L=this.S=this.Y8=NaN;this.NO=this.Z=null;this.N=[];this.Y=[];this.visible=!1;this.B=null;k.D("delhi_modern_web_player")&&this.update({"data-priority":3}); t=this.j.G();this.updateValue("icon",sY());this.tooltip=p.AB();this.T=new g.FK({K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"defs",U:[{K:"clipPath",J:{id:"ytp-svg-volume-animation-mask"},U:[{K:"path",J:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",J:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",W:"ytp-svg-volume-animation-mover",J:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",J:{id:"ytp-svg-volume-animation-slash-mask"}, U:[{K:"path",W:"ytp-svg-volume-animation-mover",J:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",sF:!0,S6:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{"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"}},{K:"path",sF:!0,S6:["ytp-svg-fill","ytp-svg-volume-animation-hider"],J:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.z(this,this.T);this.Z=this.T.Kp("ytp-svg-volume-animation-speaker");this.NO=this.Z.getAttribute("d");this.N=g.aO("ytp-svg-volume-animation-mover",this.T.element);this.Y=g.aO("ytp-svg-volume-animation-hider",this.T.element);this.P0=new E2;g.z(this,this.P0);this.gy=new E2;g.z(this,this.gy);this.listen("click",this.GIY);this.V(k,"appresize",this.pm);this.V(k,"onVolumeChange",this.onVolumeChange);var J=null;t.RY?this.addOnDisposeCallback(g.r4(p.AB(), this.element)):(p="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),J=new g.GB(k,{K:"span",S6:["ytp-popup","ytp-generic-popup"],J:{tabindex:"0"},U:[p[0],{K:"a",J:{href:"https://support.google.com/youtube/?p=noaudio",target:t.L},sy:p[2]},p[4]]},100,!0),g.z(this,J),J.hide(),J.subscribe("show",function(q){k.aA(J,q)}),g.cO(k,J.element,4)); this.message=J;k.createClientVe(this.element,this,28662);this.pm(k.Uy().getPlayerSize());this.setVolume(k.getVolume(),k.isMuted())}; Tb_=function(k,p){k.Y8=p;var t=k.NO;p&&(t+=RML(yW6,YVj,p));k.Z.setAttribute("d",t)}; rWj=function(k,p){k.L=p;for(var t=20*p,J=0;J<k.N.length;J++)k.N[J].setAttribute("transform","translate("+t+", "+t+")");var q;p===1?q=sY():q=k.T;for(t=0;t<k.Y.length;t++){J=k.Y[t];var F=void 0;if((F=J)==null?0:F.style)J.style.display=p===0?"none":""}q!==k.B&&(k.updateValue("icon",q),k.B=q)}; g.zd=function(k,p){g.M.call(this,{K:"button",S6:["ytp-play-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},sy:"{{icon}}"});this.j=k;this.T=null;this.transition=new E2;this.tooltip=p.AB();g.z(this,this.transition);k.createClientVe(this.element,this,36842);k.D("embeds_use_parent_visibility_in_ve_logging")?k.logVisibility(this.element,this.X):k.logVisibility(this.element,!0);this.V(k,"fullscreentoggled",this.onVideoDataChange);this.V(k, "presentingplayerstatechange",this.onStateChange);this.V(k,"videodatachange",this.onVideoDataChange);this.cH(k.getPlayerStateObject());this.listen("click",this.LM,this);this.addOnDisposeCallback(g.r4(p.AB(),this.element))}; Zn_=function(k){switch(k){case 1:return mi();case 2:return I4j();case 3:return g.VF();case 4:return zNL();default:return null}}; g.ej=function(k,p,t){g.M.call(this,{K:"a",S6:[t?"ytp-next-button":"ytp-prev-button","ytp-button"],J:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},U:[t?Zv():B6e()]});var J=this;this.j=k;this.T=t;this.playlist=this.videoData=null;this.Z= !1;this.C=this.S=this.Y=null;this.N=!1;this.tooltip=p.AB();t?k.createClientVe(this.element,this,6193):k.createClientVe(this.element,this,6194);this.V(k,"fullscreentoggled",this.onVideoDataChange);this.V(k,"videodatachange",this.onVideoDataChange);this.V(k,"onPlaylistUpdate",this.onVideoDataChange);this.V(k,"onLoopRangeChange",this.onVideoDataChange);this.T||this.V(k,"appresize",this.VC);this.V(k,"mdxpreviousnextchange",function(){Cx6(J);J.VC()}); this.onVideoDataChange()}; AWe=function(k){k.playlist&&k.playlist.unsubscribe("shuffle",k.onVideoDataChange,k)}; mHu=function(k){return!!k.playlist&&!k.T&&!!k.videoData&&!k.videoData.isLivePlayback&&k.j.getCurrentTime()>=3&&k.j.getPresentingPlayerType()!==2}; Voj=function(k){var p=WO(k.j.EQ());return p?k.T?p.Vr():p.xo():!1}; Cx6=function(k){var p={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},t=k.playlist!=null&&k.playlist.Vr();t=g.DB(k.j)&&(!k.T||t);var J=k.T&&g.nK(k.j),q=Voj(k),F=k.T&&k.j.getPresentingPlayerType()===5,d=g.CK(k.j,"Next","SHIFT+n"),S=g.CK(k.j,"Previous","SHIFT+p");if(F)p.title="Start video";else if(k.N)p.title="Replay";else if(t){var U=null;k.playlist&&(U=g.AR(k.playlist,k.T?rL0(k.playlist):Zme(k.playlist)));if(U){if(U.videoId){var f=k.playlist.listId; p.url=k.j.G().getVideoUrl(U.videoId,f?f.toString():void 0)}p.text=U.title;p.duration=U.lengthText?U.lengthText:U.lengthSeconds?g.Ca(U.lengthSeconds):null;p.preview=U.KL("mqdefault.jpg")}k.T?(p.title=d,p["data-title-no-tooltip"]="Next",p["aria-keyshortcuts"]="SHIFT+n"):(p.title=S,p["data-title-no-tooltip"]="Previous",p["aria-keyshortcuts"]="SHIFT+p")}else if(J){if(S=(U=k.videoData)==null?void 0:g.lb(U))p.url=S.tP(),p.text=S.title,p.duration=S.lengthText?S.lengthText:S.lengthSeconds?g.Ca(S.lengthSeconds): null,p.preview=S.KL("mqdefault.jpg");p.title=d;p["data-title-no-tooltip"]="Next";p["aria-keyshortcuts"]="SHIFT+n"}p.disabled=!J&&!t&&!q&&!F;k.update(p);k.Z=!!p.url;J||t||k.N||q||F?k.Y||(k.Y=g.r4(k.tooltip,k.element),k.S=k.listen("click",k.onClick,k)):k.Y&&(k.Y(),k.Y=null,k.qP(k.S),k.S=null);k.tooltip.Tk();g.$E(k.element,"ytp-playlist-ui",k.T&&t)}; DHS=function(k,p){g.M.call(this,{K:"div",W:"ytp-fine-scrubbing",U:[{K:"div",W:"ytp-fine-scrubbing-draggable",U:[{K:"div",W:"ytp-fine-scrubbing-thumbnails",J:{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}}"}}]},{K:"div",J:{"aria-hidden":"true"},W:"ytp-fine-scrubbing-cursor"},{K:"div",W:"ytp-fine-scrubbing-seek-time",J:{"aria-hidden":"true"}, sy:"{{seekTime}}"},{K:"div",W:"ytp-fine-scrubbing-play",U:[mi()],J:{title:"Play from this position",role:"button"}},{K:"div",W:"ytp-fine-scrubbing-dismiss",U:[g.Ts()],J:{title:"Exit precise seeking",role:"button"}}]});var t=this;this.api=k;this.S=this.Kp("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Kp("ytp-fine-scrubbing-dismiss");this.NO=this.Kp("ytp-fine-scrubbing-draggable");this.playButton=this.Kp("ytp-fine-scrubbing-play");this.thumbnails=[];this.Y=[];this.qO=this.T=0;this.Oy=void 0; this.gy=NaN;this.RY=this.L=this.N=this.B=0;this.C=[];this.interval=this.frameCount=0;this.Z=160;this.scale=1;this.IY=0;this.isEnabled=this.j6=!1;Wsj(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.r4(p,this.dismissButton));this.addOnDisposeCallback(g.r4(p,this.playButton));this.P0=new g.Kt(this.NO,!0);this.P0.subscribe("dragstart",this.vT,this);this.P0.subscribe("dragmove",this.cT,this);this.P0.subscribe("dragend",this.R0,this);this.V(k,"SEEK_COMPLETE",this.Ip);k.D("web_fix_fine_scrubbing_false_play")&& this.V(k,"rootnodemousedown",function(J){t.Y8=J}); this.S.addEventListener("keydown",function(){}); g.z(this,this.P0);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Wsj=function(k,p){var t=g.Ca(p),J=g.fT("Seek to $PROGRESS",{PROGRESS:g.Ca(p,!0)});k.update({ariamin:0,ariamax:Math.floor(k.api.getDuration()),arianow:Math.floor(p),arianowtext:J,seekTime:t})}; sX0=function(k){k.gy=NaN;k.L=0;k.B=k.N}; cWi=function(k){var p=k.api.Ee();if(p){var t=90*k.scale,J=nq(p,160*k.scale);if(p=p.levels[J]){k.Z=p.width;if(!k.C.length){J=[];for(var q=wn(p,p.oz()),F=p.columns*p.rows,d=p.frameCount,S=0;S<=q;S++)for(var U=d<F?Math.ceil(d/p.columns):p.rows,f=0;f<p.rows;f++){var b=d<p.columns?d:p.columns,N={url:p.b1(S),column:0,columns:b,row:f,rows:U,Wm:p.width*b,WI:p.height*U};J.push(N);d-=b;if(d<=1)break}k.C=J;k.frameCount=p.pg();k.interval=p.T/1E3||k.api.getDuration()/k.frameCount}for(;k.thumbnails.length>k.C.length;)J= void 0,(J=k.thumbnails.pop())==null||J.dispose();for(;k.thumbnails.length<k.C.length;)J=new Lse,k.thumbnails.push(J),J.QT(k.S),g.z(k,J);for(J=0;J<k.C.length;J++)q=k.thumbnails[J].element,F=k.C[J],d=k.Z*k.scale,S=F.WI/F.rows,U=t/S,q.style.background="url("+F.url+") 0 "+-F.row*F.WI/F.rows*U+"px/"+d*p.columns+"px "+S*F.rows*U+"px",q.style.width=d*F.columns+"px",q.style.height=t+"px";hp(k,k.api.getCurrentTime());for(t=k.api.getVideoData().rK;k.Y.length>t.length;)J=void 0,(J=k.Y.pop())==null||J.dispose(); for(;k.Y.length<t.length;)J=new vbw,k.Y.push(new vbw),g.z(k,J);for(J=0;J<t.length;J++)q=t[J],k.Y[J].update({chapterTitle:q.title}),q=Math.round(q.startTime/p.T),F=Math.floor(q/p.rows),g.S4(k.Y[J].element,"transform","translateX("+q%p.rows*k.Z*k.scale+"px)"),F<k.thumbnails.length&&k.thumbnails[F]&&k.Y[J].QT(k.thumbnails[F].element);k.j6=!0}}}; hp=function(k,p){k.Y8&&(k.Y8.Im=!0);k.update({seekTime:g.Ca(p)});var t=k.Z*k.scale;p=p<k.interval/2?-p*t/k.interval*2+k.T/2:-p*t/k.interval-t/2+k.T/2;p=g.Ek(p,nbq(k),k.T/2);k.B=p;k.N=k.B;g.S4(k.NO,"transform","translateX("+(k.B-k.T/2)+"px)");g.S4(k.NO,"padding","0px "+k.T/2+"px");g.S4(k.S,"position","relative")}; wye=function(k,p){var t=k.Z*k.scale;p-=k.T/2;return p>-t?-p/t*k.interval*.5:-(p+t/2)/t*k.interval}; nbq=function(k){return-((k.S.offsetWidth||(k.frameCount-1)*k.Z*k.scale)-k.T/2)}; Lse=function(){g.M.call(this,{K:"div",W:"ytp-fine-scrubbing-thumbnail"})}; vbw=function(){g.M.call(this,{K:"div",W:"ytp-fine-scrubbing-chapter-title",U:[{K:"div",W:"ytp-fine-scrubbing-chapter-title-content",sy:"{{chapterTitle}}"}]})}; in0=function(k){g.M.call(this,{K:"div",W:"ytp-heat-map-chapter",U:[{K:"svg",W:"ytp-heat-map-svg",J:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{K:"defs",U:[{K:"clipPath",J:{id:"{{id}}"},U:[{K:"path",W:"ytp-heat-map-path",J:{d:"",fill:"white"}}]},{K:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},U:[{K:"stop",J:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",J:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",W:"ytp-heat-map-graph",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",W:"ytp-heat-map-hover",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",W:"ytp-heat-map-play",J:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",W:"ytp-modern-heat-map",J:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=k;this.B=this.Kp("ytp-heat-map-svg");this.S=this.Kp("ytp-heat-map-path");this.C=this.Kp("ytp-heat-map-graph");this.Z=this.Kp("ytp-heat-map-play");this.T=this.Kp("ytp-heat-map-hover");this.N=this.Kp("ytp-modern-heat-map");this.IG=!1;this.Y=60;k=""+g.O0(this);this.update({id:k});k="url(#"+k+")";this.C.setAttribute("clip-path",k);this.Z.setAttribute("clip-path",k);this.T.setAttribute("clip-path", k)}; QXj=function(k,p){p>0&&(k.Y=p,k.B.style.height=k.Y+"px")}; aS=function(){g.M.call(this,{K:"div",W:"ytp-chapter-hover-container",U:[{K:"div",W:"ytp-progress-bar-padding"},{K:"div",W:"ytp-progress-list",U:[{K:"div",S6:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",W:"ytp-progress-linear-live-buffer"},{K:"div",W:"ytp-load-progress"},{K:"div",W:"ytp-hover-progress"},{K:"div",W:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.Y=this.Kp("ytp-progress-list");this.S=this.Kp("ytp-progress-linear-live-buffer"); this.C=this.Kp("ytp-ad-progress-list");this.Z=this.Kp("ytp-load-progress");this.B=this.Kp("ytp-play-progress");this.N=this.Kp("ytp-hover-progress");this.T=this.Kp("ytp-chapter-hover-container")}; Mh=function(k,p){g.S4(k.T,"width",p)}; Pxj=function(k,p){g.S4(k.T,"margin-right",p+"px")}; G5e=function(){this.Y=this.position=this.N=this.T=this.C=this.width=NaN}; IO0=function(){g.M.call(this,{K:"div",W:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.us=function(k,p){g.EY.call(this,{K:"div",W:"ytp-progress-bar-container",J:{"aria-disabled":"true"},U:[{K:"div",S6:["ytp-heat-map-container"],U:[{K:"div",W:"ytp-heat-map-edu"}]},{K:"div",S6:["ytp-progress-bar"],J:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{K:"div",W:"ytp-chapters-container"},{K:"div",W:"ytp-timed-markers-container"},{K:"div",W:"ytp-clip-start-exclude"}, {K:"div",W:"ytp-clip-end-exclude"},{K:"div",W:"ytp-scrubber-container",U:[{K:"div",S6:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{K:"div",W:"ytp-scrubber-pull-indicator"},{K:"img",S6:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",S6:["ytp-fine-scrubbing-container"],U:[{K:"div",W:"ytp-fine-scrubbing-edu"}]},{K:"div",W:"ytp-bound-time-left",sy:"{{boundTimeLeft}}"},{K:"div",W:"ytp-bound-time-right",sy:"{{boundTimeRight}}"},{K:"div",W:"ytp-clip-start",J:{title:"{{clipstarttitle}}"},sy:"{{clipstarticon}}"}, {K:"div",W:"ytp-clip-end",J:{title:"{{clipendtitle}}"},sy:"{{clipendicon}}"}]});this.api=k;this.Dw=!1;this.hB=this.nL=this.W0=this.S=this.Gt=0;this.Ji=null;this.l1=!1;this.qO={};this.nE={};this.clipEnd=Infinity;this.Fd=this.Kp("ytp-clip-end");this.UQ=new g.Kt(this.Fd,!0);this.aO=this.Kp("ytp-clip-end-exclude");this.yn=this.Kp("ytp-clip-start-exclude");this.clipStart=0;this.ez=this.Kp("ytp-clip-start");this.jW=new g.Kt(this.ez,!0);this.L=this.pp=0;this.progressBar=this.Kp("ytp-progress-bar");this.gs= {};this.RY={};this.k8=this.Kp("ytp-chapters-container");this.kC=this.Kp("ytp-timed-markers-container");this.T=[];this.Z=[];this.Xn={};this.V4=null;this.NO=-1;this.Jp=this.P0=0;this.kx=this.B=null;this.Q4=this.Kp("ytp-scrubber-button");this.mW=this.Kp("ytp-decorated-scrubber-button");this.gp=this.Kp("ytp-scrubber-container");this.B0=new g.NL;this.v3=new G5e;this.N=new cA(0,0);this.QF=null;this.gy=this.fZ=!1;this.vQ=null;this.Y8=this.Kp("ytp-heat-map-container");this.Kb=this.Kp("ytp-heat-map-edu"); this.C=[];this.heatMarkersDecorations=[];this.v0=this.Kp("ytp-fine-scrubbing-container");this.nT=this.Kp("ytp-fine-scrubbing-edu");this.Y=void 0;this.j6=this.UF=this.Oy=!1;this.tooltip=p.AB();this.addOnDisposeCallback(g.r4(this.tooltip,this.Fd));g.z(this,this.UQ);this.UQ.subscribe("hoverstart",this.uU,this);this.UQ.subscribe("hoverend",this.Ah,this);this.V(this.Fd,"click",this.VP);this.addOnDisposeCallback(g.r4(this.tooltip,this.ez));g.z(this,this.jW);this.jW.subscribe("hoverstart",this.uU,this); this.jW.subscribe("hoverend",this.Ah,this);this.V(this.ez,"click",this.VP);XyM(this);this.V(k,"resize",this.zA);this.V(k,"presentingplayerstatechange",this.uGb);this.V(k,"videodatachange",this.hP);this.V(k,"videoplayerreset",this.sY6);this.V(k,"cuerangesadded",this.aOr);this.V(k,"cuerangesremoved",this.Nab);this.V(k,"onLoopRangeChange",this.Lm);this.V(k,"innertubeCommand",this.onClickCommand);this.V(k,g.pT("timedMarkerCueRange"),this.EW0);this.V(k,"updatemarkervisibility",this.KO);this.V(k,"serverstitchedvideochange", this.UAG);this.updateVideoData(k.getVideoData(),!0);this.Lm(k.getLoopRange());gr(this)&&!this.Y&&(this.Y=new DHS(this.api,this.tooltip),k=g.r5(this.element).x||0,this.Y.zA(k,this.S),this.Y.QT(this.v0),g.z(this,this.Y),this.V(this.Y.dismissButton,"click",this.bE),this.V(this.Y.playButton,"click",this.Rf),this.V(this.Y.element,"dblclick",this.Rf));this.api.createClientVe(this.Y8,this,139609,!0);this.api.createClientVe(this.Kb,this,140127,!0);this.api.createClientVe(this.nT,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; XyM=function(k){if(k.T.length===0){var p=new aS;k.T.push(p);g.z(k,p);p.QT(k.k8,0)}for(;k.T.length>1;)k.T.pop().dispose();Mh(k.T[0],"100%");k.T[0].startTime=0;k.T[0].title=""}; RpM=function(k){var p=p===void 0?NaN:p;var t=new in0(k.api);k.C.push(t);g.z(k,t);t.QT(k.Y8);p>=0&&(t.element.style.width=p+"px")}; Bbe=function(k){for(;k.Z.length;)k.Z.pop().dispose()}; ep9=function(k){var p,t,J,q,F;return(F=g.e((q=g.e((p=k.getWatchNextResponse())==null?void 0:(t=p.playerOverlays)==null?void 0:(J=t.playerOverlayRenderer)==null?void 0:J.decoratedPlayerBarRenderer,Cq))==null?void 0:q.playerBar,zpw))==null?void 0:F.chapters}; hpj=function(k){for(var p=k.T,t=[],J=0;J<p.length;J++)if(!isNaN(p[J].startTime)){var q=p[J].startTime;q=new g.xf(q,J===p.length-1?Infinity:p[J+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+q});t.push(q)}k.api.VM("chapterCueRange");k.api.Lb(t)}; KsL=function(k,p){var t,J=(t=k.gs[p])==null?void 0:t.chapters;J&&(aOu(k,J),k.api.getVideoData().rK=k.T,hpj(k));var q;if((t=(q=k.gs[p])==null?void 0:q.markers)&&p!=="HEATSEEKER"){Bbe(k);q=g.Z(t);for(t=q.next();!t.done;t=q.next())if(J=t.value,t=new IO0,J=g.e(J,g.Mo6)){var F=void 0;t.title=((F=J.title)==null?void 0:F.simpleText)||"";F=void 0;t.timeRangeStartMillis=(F=J.timeRangeStartMillis)!=null?F:NaN;var d=F=void 0;t.onActiveCommand=(d=(F=J)==null?void 0:F.onActiveCommand)!=null?d:void 0;gbM(k,t)}uhe(k, k.Z);q=k.Z;t=k.Xn;J=[];for(F=0;F<q.length;F++)!isNaN(q[F].timeRangeStartMillis)&&q[F].onActiveCommand&&(d=LIi(q[F].timeRangeStartMillis,F===q.length-1?Infinity:q[F+1].timeRangeStartMillis),J.push(d),t[d.id]=q[F].onActiveCommand);k.api.Lb(J)}var S;if(p=g.e((S=k.gs[p])==null?void 0:S.heatmap,lO6)){S=p.heatMarkers||[];var U;q=(U=p.minHeightDp)!=null?U:0;var f;U=(f=p.maxHeightDp)!=null?f:60;f=k.T.length;t=null;for(J=0;J<f;J++){d=k.T[J].startTime;var b=J===f-1?Infinity:k.T[J+1].startTime;J===k.C.length&& RpM(k);F=[];t&&F.push(t);for(var N=g.Z(S),y=N.next();!y.done;y=N.next()){y=y.value;var Y=void 0,T=void 0,A=(T=(Y=g.e(y,jXi))==null?void 0:Y.timeRangeStartMillis)!=null?T:-1;A>=d&&A<=b&&F.push(y)}U>0&&(k.Y8.style.height=U+"px");d=k.C[J];b=F;y=q;T=U;A=J===0;A=A===void 0?!1:A;QXj(d,T);N=b;Y=d.Y;A=A===void 0?!1:A;var V=1E3/N.length,D=[];D.push({x:0,y:100});for(var v=0;v<N.length;v++){var w=void 0,X=((w=g.e(N[v],jXi))==null?void 0:w.heatMarkerIntensityScoreNormalized)||0;w=(v+.5)*V;X=100-g.Ek(X*100,y/ Y*100,T/Y*100);v!==0||A||D.push({x:0,y:X});D.push({x:w,y:X});v===N.length-1&&D.push({x:1E3,y:X})}D.push({x:1E3,y:100});N=D;b=b.length===0?"":EKi(N);d.api.D("delhi_modern_web_player")?d.N.setAttribute("d",b):d.S.setAttribute("d",b);d.IG=b!=="";g.$E(d.api.getRootNode(),"ytp-heat-map",d.IG);g.$E(d.api.getRootNode(),"ytp-heat-map-played_bar",d.api.D("web_player_heat_map_played_bar")&&b!=="");d.api.D("delhi_modern_web_player")&&(d.N.style.display="block",d.C.style.display="none",d.T.style.display="none"); F.length>0&&(t=F[F.length-1])}g.ls(k);S=[];p=g.Z(p.heatMarkersDecorations||[]);for(q=p.next();!q.done;q=p.next())if(q=g.e(q.value,OnS))U=q.label,J=t=f=void 0,S.push({visibleTimeRangeStartMillis:(f=q.visibleTimeRangeStartMillis)!=null?f:-1,visibleTimeRangeEndMillis:(t=q.visibleTimeRangeEndMillis)!=null?t:-1,decorationTimeMillis:(J=q.decorationTimeMillis)!=null?J:NaN,label:U?g.f1(U):""});k.heatMarkersDecorations=S}}; gbM=function(k,p){k.Z.push(p);g.z(k,p);p.QT(k.kC,k.kC.children.length)}; uhe=function(k,p){p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;var J=jj(k,t.timeRangeStartMillis/(k.N.T*1E3),Ov(k));g.S4(t.element,"transform","translateX("+J+"px) scaleX(0.6)")}}; aOu=function(k,p){var t=0,J=!1;p=g.Z(p);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(g.e(q,HnT)){q=g.e(q,HnT);var F={startTime:NaN,title:null,onActiveCommand:void 0},d=q.title;F.title=d?g.f1(d):"";d=q.timeRangeStartMillis;d!=null&&(F.startTime=d);F.onActiveCommand=q.onActiveCommand;q=F;t===0&&q.startTime!==0&&(k.T[t].startTime=0,k.T[t].title="",k.T[t].onActiveCommand=q.onActiveCommand,t++,J=!0);k.T.length<=t&&(F=new aS,k.T.push(F),g.z(k,F),F.QT(k.k8,k.k8.children.length));k.T[t].startTime= q.startTime;k.T[t].title=q.title?q.title:"";k.T[t].onActiveCommand=q.onActiveCommand;k.T[t].index=J?t-1:t}t++}for(;t<k.T.length;)k.T.pop().dispose();g.ls(k);KA(k)}; g.ls=function(k){k.P0=k.T.length-1;k.Jp=0;xH6(k,!0)&&xH6(k,!1);for(var p=0,t=0;t<k.T.length;t++)if(k.T[t].width===0){if(t===k.T.length-1)for(var J=k.T.length-1;J>=0;J--)if(k.T[J].width>0){Pxj(k.T[J],0);var q=Math.floor(k.T[J].width);k.T[J].width=q;Mh(k.T[J],q+"px");break}k.T[t].width=0;Mh(k.T[t],"0")}else t===k.T.length-1?(J=Math.floor(k.T[t].width+p),k.T[t].width=J,Mh(k.T[t],J+"px")):(p=k.T[t].width+p,J=Math.round(p),p-=J,k.T[t].width=J,Mh(k.T[t],J+"px"));t=0;if(k.C.length===k.T.length)for(p=0;p< k.C.length;p++)J=k.T[p].width,k.C[p].element.style.width=J+"px",k.C[p].element.style.left=t+"px",t+=J+Ha(k);k.api.D("delhi_modern_web_player")&&(k.T.length===1?k.T[0].Y.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(k.T[0].Y.classList.remove("ytp-progress-bar-end"),k.T[0].Y.classList.add("ytp-progress-bar-start"),k.T[k.T.length-1].Y.classList.add("ytp-progress-bar-end")))}; xH6=function(k,p){var t=0,J=!1,q=k.T.length,F=k.N.T*1E3;F===0&&(F=k.api.getProgressState().seekableEnd*1E3);if(F>0&&k.S>0){for(var d=k.S-Ha(k)*k.P0,S=k.Jp===0?3:d*k.Jp,U=g.Z(k.T),f=U.next();!f.done;f=U.next())f.value.width=0;for(;t<q;){U=F-k.T[t].startTime;t<q-1&&(U=k.T[t+1].startTime-k.T[t].startTime,Pxj(k.T[t],Ha(k)));g.$E(k.T[t].T,"ytp-exp-chapter-hover-container",k.T.length>1);f=(F===0?0:U/F*d)+k.T[t].width;if(f>S)k.T[t].width=f;else{k.T[t].width=0;var b=k,N=t,y=b.T[N-1];y!==void 0&&y.width>0? y.width+=f:N<b.T.length-1&&(b.T[N+1].width+=f);Pxj(b.T[N],0);p&&(k.P0--,U/F>k.Jp&&(k.Jp=U/F),J=!0)}t++}}return J}; KA=function(k){if(k.S){var p=k.api.getProgressState(),t=k.api.getVideoData();if(!(t&&t.enableServerStitchedDai&&t.enablePreroll)||isFinite(p.current)){var J;if(((J=k.api.getVideoData())==null?0:O5(J))&&p.airingStart&&p.airingEnd)var q=x1(k,p.airingStart,p.airingEnd);else if(k.api.getPresentingPlayerType()===2&&k.api.G().D("show_preskip_progress_bar_for_skippable_ads")){var F,d,S;q=(t=(q=k.api.getVideoData())==null?void 0:(F=q.getPlayerResponse())==null?void 0:(d=F.playerConfig)==null?void 0:(S=d.webPlayerConfig)== null?void 0:S.skippableAdProgressBarDuration)?x1(k,p.seekableStart,t/1E3):x1(k,p.seekableStart,p.seekableEnd)}else q=x1(k,p.seekableStart,p.seekableEnd);F=na(q,p.loaded,0);p=na(q,p.current,0);d=k.N.Y!==q.Y||k.N.T!==q.T;k.N=q;k7(k,p,F);d&&k8_(k);pcT(k)}}}; x1=function(k,p,t){return tGS(k)?new cA(Math.max(p,k.QF.startTimeMs/1E3),Math.min(t,k.QF.endTimeMs/1E3)):new cA(p,t)}; Jg0=function(k,p){var t;if(((t=k.QF)==null?void 0:t.type)==="repeatChapter"||(p==null?void 0:p.type)==="repeatChapter")p&&(p=k.T[Y1(k.T,p.startTimeMs)],g.$E(p.T,"ytp-repeating-chapter",!1)),k.QF&&(p=k.T[Y1(k.T,k.QF.startTimeMs)],g.$E(p.T,"ytp-repeating-chapter",!0)),k.T.forEach(function(J){g.$E(J.T,"ytp-exp-chapter-hover-container",!k.QF)})}; tL=function(k,p){var t=k.N;t=t.Y+p.Y*t.getLength();if(k.T.length>1){t=pm(k,p.N,!0);for(var J=0,q=0;q<t;q++)k.T[q].width>0&&(J+=k.T[q].width,J+=Ha(k));t=(k.T[t].startTime+(p.N-J)/k.T[t].width*((t===k.T.length-1?k.N.T*1E3:k.T[t+1].startTime)-k.T[t].startTime))/1E3||0}return t}; JL=function(k,p,t,J,q){p=p<0?0:Math.floor(Math.min(p,k.api.getDuration())*1E3);t=t<0?0:Math.floor(Math.min(t,k.api.getDuration())*1E3);k=k.progressBar.visualElement;J={seekData:{startMediaTimeMs:p,endMediaTimeMs:t,seekSource:J}};(p=g.mP())&&g.j5(j3)(void 0,p,k,q,J,void 0)}; oDL=function(k,p,t){if(t>=k.T.length)return!1;var J=k.S-Ha(k)*k.P0;return Math.abs(p-k.T[t].startTime/1E3)/k.N.T*J<4}; k8_=function(k){k.Q4.style.removeProperty("height");for(var p=g.Z(Object.keys(k.qO)),t=p.next();!t.done;t=p.next())qCT(k,t.value);oo(k);k7(k,k.L,k.pp)}; Ov=function(k){var p=k.B0.x;p=g.Ek(p,0,k.S);k.v3.update(p,k.S);return k.v3}; F8=function(k){return(k.gy?135:90)-qf(k)}; qf=function(k){var p=48,t=k.api.G();k.gy?p=54:g.V0(t)&&!t.Y?p=40:k.api.D("delhi_modern_web_player")&&(p=68);return p}; k7=function(k,p,t){k.L=p;k.pp=t;var J=Ov(k),q=k.N.T;var F=k.N;F=F.Y+k.L*F.getLength();var d=g.fT("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Ca(F,!0),DURATION:g.Ca(q,!0)}),S=Y1(k.T,F*1E3);S=k.T[S].title;k.update({ariamin:Math.floor(k.N.Y),ariamax:Math.floor(q),arianow:Math.floor(F),arianowtext:S?S+" "+d:d});q=k.clipStart;F=k.clipEnd;k.QF&&k.api.getPresentingPlayerType()!==2&&(q=k.QF.startTimeMs/1E3,F=k.QF.endTimeMs/1E3);q=na(k.N,q,0);S=na(k.N,F,1);d=k.api.getVideoData();F=g.Ek(p,q,S);t=(d==null? 0:g.lE(d))?1:g.Ek(t,q,S);p=jj(k,p,J);g.S4(k.gp,"transform","translateX("+p+"px)");k.api.D("delhi_modern_web_player")&&F7_(k,p);$7(k,J,q,F,"PLAY_PROGRESS");(d==null?0:O5(d))?(p=k.api.getProgressState().seekableEnd)&&$7(k,J,F,na(k.N,p),"LIVE_BUFFER"):$7(k,J,q,t,"LOAD_PROGRESS");if(k.api.D("web_player_heat_map_played_bar")){var U;(U=k.C[0])!=null&&U.Z.setAttribute("width",(F*100).toFixed(2)+"%")}}; F7_=function(k,p){if(k.api.getPresentingPlayerType()!==1)k.k8.style.removeProperty("clip-path");else{p||(p=jj(k,k.L,Ov(k)));var t=k.l1?36:28,J=p-t/2;p+=t/2;k.k8.style.clipPath='path("M 0 0 L 0 8 L '+(J+" 8 C "+(J+6+" 8 "+(J+6)+" 0 "+J+" 0 L 0 0 M ")+(p+" 0 L ")+(k.S+" 0 L ")+(k.S+" 8 L ")+(p+" 8 C ")+(p-6+" 8 "+(p-6)+" 0 "+p+' 0")'))}}; $7=function(k,p,t,J,q){var F=k.T.length,d=p.T-k.P0*Ha(k),S=t*d;t=pm(k,S);var U=J*d;d=pm(k,U);q==="HOVER_PROGRESS"&&(d=pm(k,p.T*J,!0),U=p.T*J-$5T(k,p.T*J)*Ha(k));J=Math.max(S-d50(k,t),0);for(S=t;S<F;S++)k.T[S].KE(q).style.left=t===S?J+"px":"0";p=jj(k,k.L,p);for(F=t;F<d;F++){S=k.T[F].KE(q);var f=k.T[F].width,b=F===t?f-J:f;dI(k,S,b,f);EDi(k,S,b,f,F,p,q)}F=k.T[d].width;U=g.Ek(U-d50(k,d),0,F);t===d&&(U-=J);J=k.T[d].KE(q);dI(k,J,U,F);EDi(k,J,U,F,d,p,q);U=k.T.length;for(d+=1;d<U;d++)SCM(k,d,q);for(d=0;d< t;d++)SCM(k,d,q)}; d50=function(k,p){if(p>=k.T.length)return k.S;for(var t=0,J=0;J<p;)t+=k.T[J].width,J++;return t}; SCM=function(k,p,t){t=k.T[p].KE(t);dI(k,t,0,k.T[p].width)}; EDi=function(k,p,t,J,q,F,d){d==="PLAY_PROGRESS"&&(t=!J||k.api.G().Y?1:t/J,k.yn.clientWidth>0||k.aO.clientWidth>0?(F=p.clientWidth/t,k=-1*k.yn.clientWidth/t):(F/=t,k=-1*k.T[q].element.offsetLeft/t),g.S4(p,"background-size",F+"px"),g.S4(p,"background-position-x",k+"px"))}; dI=function(k,p,t,J,q){q||k.api.G().Y?p.style.width=t+"px":g.S4(p,"transform","scalex("+(J?t/J:0)+")")}; pm=function(k,p,t){var J=0;(t===void 0?0:t)&&(p-=$5T(k,p)*Ha(k));t=g.Z(k.T);for(var q=t.next();!q.done;q=t.next()){q=q.value;if(p>q.width)p-=q.width;else break;J++}return J===k.T.length?J-1:J}; jj=function(k,p,t){var J=p*k.N.T*1E3;for(var q=-1,F=g.Z(k.T),d=F.next();!d.done;d=F.next())d=d.value,J>d.startTime&&d.width>0&&q++;J=q<0?0:q;q=t.T-Ha(k)*k.P0;return p*q+Ha(k)*J+t.C}; $5T=function(k,p){for(var t=k.T.length,J=0,q=g.Z(k.T),F=q.next();!F.done;F=q.next())if(F=F.value,F.width!==0)if(p>F.width)p-=F.width,p-=Ha(k),J++;else break;return J===t?t-1:J}; g.U59=function(k,p,t,J){var q=k.S!==t,F=k.gy!==J;k.Gt=p;k.S=t;k.gy=J;gr(k)&&(p=k.Y)!=null&&(p.scale=J?1.5:1);k8_(k);k.T.length===1&&(k.T[0].width=t||0);q&&g.ls(k);k.Y&&F&&gr(k)&&(k.Y.isEnabled&&(t=k.gy?135:90,J=t-qf(k),k.v0.style.height=t+"px",g.S4(k.Y8,"transform","translateY("+-J+"px)"),g.S4(k.progressBar,"transform","translateY("+-J+"px)")),cWi(k.Y))}; oo=function(k){var p=!!k.QF&&k.api.getPresentingPlayerType()!==2,t=k.clipStart,J=k.clipEnd,q=!0,F=!0;p&&k.QF?(t=k.QF.startTimeMs/1E3,J=k.QF.endTimeMs/1E3):(q=t>k.N.Y,F=k.N.T>0&&J<k.N.T);var d,S;if(((d=k.QF)==null?0:d.postId)||((S=k.QF)==null?void 0:S.type)==="repeatChapter")F=q=!1;g.$E(k.element,"ytp-loop-range-enabled",p);g.$E(k.element,"ytp-clip-start-enabled",q);g.$E(k.element,"ytp-clip-end-enabled",F);p=q?na(k.N,t,0):0;J=F?na(k.N,J,1):1;k.ez.style.left=Math.round(p*1E3)/10+"%";k.Fd.style.left= Math.round(J*1E3)/10+"%";k.yn.style.width=Math.round(p*1E3)/10+"%";k.aO.style.left=Math.round(J*1E3)/10+"%";k.aO.style.width=Math.round((1-J)*1E3)/10+"%"}; pcT=function(k){var p;if((p=k.api.getVideoData())==null||!O5(p)){p=Ov(k);$7(k,p,k.L,Math.max(p.Y,k.L),"HOVER_PROGRESS");for(var t=pm(k,p.T*k.L,!0),J=pm(k,p.N,!0),q=t;q<=J;q++)g.$E(k.T[q].N,"ytp-hover-progress-light",p.Y>k.L);g.$E(k.Q4,"ytp-scrubber-button-hover",t===J&&k.T.length>1);if(k.api.D("web_player_heat_map_played_bar")){var F;(F=k.C[0])!=null&&F.T.setAttribute("width",(p.Y*100).toFixed(2)+"%")}}}; qCT=function(k,p){var t=k.qO[p];p=k.nE[p];var J=Ov(k),q=na(k.N,t.start/1E3,0),F=YYT(t,k.gy)/J.width;var d=na(k.N,t.end/1E3,1);F!==Number.POSITIVE_INFINITY&&(q=g.Ek(q,0,d-F));d=Math.min(d,q+F);t.color&&(p.style.background=t.color);t=q;p.style.left=Math.max(t*J.T+J.C,0)+"px";dI(k,p,g.Ek((d-t)*J.T+J.C,0,J.width),J.width,!0)}; f30=function(k,p){var t=p.getId();k.qO[t]===p&&(g.qa(k.nE[t]),delete k.qO[t],delete k.nE[t])}; gr=function(k){var p=g.Mu(k.api.G())&&(k.api.D("web_shorts_pip")||k.api.D("web_watch_pip")),t;return!((t=k.api.getVideoData())==null?0:t.isLivePlayback)&&!k.api.isMinimized()&&!k.api.isInline()&&(!k.api.Z5()||!p)}; EW=function(k){k.Y&&(k.Y.disable(),k.W0=0,k.Y8.style.removeProperty("transform"),k.progressBar.style.removeProperty("transform"),k.v0.style.removeProperty("height"),k.element.parentElement&&k.element.parentElement.style.removeProperty("height"))}; bp6=function(k,p){var t=p/F8(k)*qf(k);g.S4(k.progressBar,"transform","translateY("+-p+"px)");g.S4(k.Y8,"transform","translateY("+-p+"px)");g.S4(k.v0,"transform","translateY("+t+"px)");k.v0.style.height=p+t+"px";k.element.parentElement&&(k.element.parentElement.style.height=qf(k)-t+"px")}; Ndj=function(k,p){p?k.B||(k.element.removeAttribute("aria-disabled"),k.B=new g.Kt(k.progressBar,!0),k.B.subscribe("hovermove",k.Aiy,k),k.B.subscribe("hoverend",k.Efy,k),k.B.subscribe("dragstart",k.YXh,k),k.B.subscribe("dragmove",k.uAp,k),k.B.subscribe("dragend",k.sGp,k),k.api&&k.api.D("delhi_modern_web_player")&&(k.kx=new g.Kt(k.progressBar,!0),k.kx.subscribe("hoverstart",function(){k.l1=!0;F7_(k)},k),k.kx.subscribe("hoverend",function(){k.l1=!1; F7_(k)},k)),k.vQ=k.listen("keydown",k.lS)):k.B&&(k.element.setAttribute("aria-disabled","true"),k.qP(k.vQ),k.B.cancel(),k.B.dispose(),k.B=null)}; Ha=function(k){return k.api.D("delhi_modern_web_player")?4:k.gy?3:2}; tGS=function(k){var p;return!((p=k.QF)==null||!p.postId)&&k.api.getPresentingPlayerType()!==2}; SX=function(k,p){g.M.call(this,{K:"button",S6:["ytp-remote-button","ytp-button"],J:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},sy:"{{icon}}"});this.j=k;this.Pp=p;this.T=null;this.V(k,"onMdxReceiversChange",this.Zr);this.V(k,"presentingplayerstatechange",this.Zr);this.V(k,"appresize",this.Zr);k.createClientVe(this.element,this,139118);this.Zr();this.listen("click",this.Y,this);ZB(k,this.element,this)}; UW=function(k,p){g.M.call(this,{K:"button",S6:["ytp-button","ytp-settings-button"],J:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":qq(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.WR()]});this.j=k;this.Pp=p;this.Y=!0;this.listen("click",this.N);this.V(k,"onPlaybackQualityChange",this.updateBadge);this.V(k,"videodatachange",this.updateBadge);this.V(k,"webglsettingschanged",this.updateBadge);this.V(k,"appresize",this.T);ZB(k,this.element,this);this.j.createClientVe(this.element, this,28663);this.updateBadge();this.T(k.Uy().getPlayerSize())}; yg0=function(k,p){k.Y=!!p;k.T(k.j.Uy().getPlayerSize())}; fm=function(k,p){HO.call(this,"Annotations",g.o6.w7);this.j=k;this.Pp=p;this.T=!1;k.D("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{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.V(k,"videodatachange",this.Zr);this.V(k,"onApiChange",this.Zr);this.subscribe("select",this.onSelect,this);this.Zr()}; bW=function(k,p){g.lB.call(this,"Audio track",g.o6.AUDIO,k,p);this.j=k;this.tracks={};g.JB(this.element,"ytp-audio-menu-item");this.countLabel=new g.M({K:"div",U:[{K:"span",sy:"Audio track"},{K:"span",W:"ytp-menuitem-label-count",sy:"{{content}}"}]});k.D("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.z(this,this.countLabel);g.BO(this,this.countLabel);this.V(k,"videodatachange",this.Zr);this.V(k,"onPlaybackAudioChange",this.Zr);this.Zr()}; Nf=function(k,p){HO.call(this,"Autoplay",g.o6.Bf);this.j=k;this.Pp=p;this.T=!1;this.N=[];this.V(k,"presentingplayerstatechange",this.Y);this.subscribe("select",this.onSelect,this);k.createClientVe(this.element,this,113682);this.Y()}; YC0=function(k,p){g.zB.call(this,g.eP({"aria-haspopup":"false"}),0,"More options");this.j=k;this.Pp=p;this.V(this.element,"click",this.onClick);this.Pp.Ru(this)}; Tdi=function(k,p){var t;g.Mu(k.G())&&(t={K:"div",W:"ytp-panel-footer-content",U:[{K:"span",sy:"Adjust download quality from your "},{K:"a",W:"ytp-panel-footer-content-link",sy:"Settings",J:{href:"/account_downloads"}}]});g.lB.call(this,"Quality",g.o6.UE,k,p,void 0,void 0,t);this.j=k;this.NO={};this.L={};this.C={};this.P0=new Set;this.T=this.S=!1;this.Z="unknown";this.gy="";this.Y8=new g.MD;g.z(this,this.Y8);this.S=this.j.D("web_player_use_new_api_for_quality_pullback");this.T=this.j.D("web_player_enable_premium_hbr_playback_cap"); k.D("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.JB(this.Y.element,"ytp-quality-menu");this.V(k,"videodatachange",this.MC);this.V(k,"videoplayerreset",this.MC);this.V(k,"onPlaybackQualityChange",this.iR);this.MC();k.createClientVe(this.element,this,137721)}; ZpS=function(k,p,t){var J=k.NO[p],q=g.Qs[p];return rgM(k,J?J.qualityLabel:q?q+"p":"Auto",p,t)}; Cz9=function(k,p,t,J,q){var F=(p=k.T?k.C[p]:k.L[p])&&p.quality,d=p&&p.qualityLabel;d=d?d:"Auto";J&&(d="("+d);k=rgM(k,d,F||"",q);J&&k.U.push(")");(J=(J=p&&p.paygatedQualityDetails)&&J.paygatedIndicatorText)&&t&&k.U.push({K:"div",W:"ytp-premium-label",sy:J});return k}; rgM=function(k,p,t,J){p={K:"span",S6:J,U:[p]};var q;J="ytp-swatch-color";if(k.S||k.T)J="ytp-swatch-color-white";t==="highres"?q="8K":t==="hd2880"?q="5K":t==="hd2160"?q="4K":t.indexOf("hd")===0&&t!=="hd720"&&(q="HD");q&&(p.U.push(" "),p.U.push({K:"sup",W:J,sy:q}));return p}; yK=function(k,p,t,J,q){var F={K:"div",W:"ytp-input-slider-section",U:[{K:"input",W:"ytp-input-slider",J:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};q&&F.U.unshift(q);g.M.call(this,F);this.N=k;this.C=p;this.S=t;this.initialValue=J;this.header=q;this.T=this.Kp("ytp-input-slider");this.Y=J?J:k;this.init();this.V(this.T,"input",this.Z)}; m5i=function(k,p){k.Y=p;k.updateValue("slidervalue",k.Y);k.T.valueAsNumber=k.Y;Agi(k,p)}; Agi=function(k,p){k.T.style.setProperty("--yt-slider-shape-gradient-percent",(p-k.N)/(k.C-k.N)*100+"%")}; Y7=function(k){yK.call(this,k.getAvailablePlaybackRates()[0],k.getAvailablePlaybackRates()[k.getAvailablePlaybackRates().length-1],.05,k.getPlaybackRate(),{K:"div",W:"ytp-speedslider-indicator-container",U:[{K:"div",W:"ytp-speedslider-badge"},{K:"p",W:"ytp-speedslider-text"}]});this.j=k;this.L=j8h(this.Y8,this);g.JB(this.T,"ytp-speedslider");this.B=this.Kp("ytp-speedslider-text");this.P0=this.Kp("ytp-speedslider-badge");VGe(this);this.V(this.T,"change",this.NO);this.V(this.T,"keydown",this.gy)}; VGe=function(k){k.B.textContent=k.Y+"x";k.P0.classList.toggle("ytp-speedslider-premium-badge",k.Y>2&&k.j.D("enable_web_premium_varispeed"))}; T4=function(k,p,t,J,q,F,d){g.M.call(this,{K:"div",W:"ytp-slider-section",J:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{K:"div",W:"ytp-slider",U:[{K:"div",W:"ytp-slider-handle"}]}]});this.B=k;this.L=p;this.Y=t;this.N=J;this.gy=q;this.j6=F;this.range=this.N-this.Y;this.Oy=this.Kp("ytp-slider-section");this.C=this.Kp("ytp-slider");this.Y8=this.Kp("ytp-slider-handle");this.Z=new g.Kt(this.C, !0);this.T=d?d:t;g.z(this,this.Z);this.Z.subscribe("dragmove",this.f8,this);this.V(this.element,"keydown",this.Dv);this.V(this.element,"wheel",this.Xf);this.init()}; rI=function(k){T4.call(this,.05,.05,k.getAvailablePlaybackRates()[0],k.getAvailablePlaybackRates()[k.getAvailablePlaybackRates().length-1],150,20,k.getPlaybackRate());this.j=k;this.S=g.kW("P");this.P0=j8h(this.NO,this);g.JB(this.C,"ytp-speedslider");g.JB(this.S,"ytp-speedslider-text");k=this.S;var p=this.C;p.parentNode&&p.parentNode.insertBefore(k,p.nextSibling);W7M(this);this.V(this.j,"onPlaybackRateChange",this.updateValues)}; W7M=function(k){k.S.textContent=D5M(k,k.T)+"x"}; D5M=function(k,p){k=Number(g.Ek(p,k.Y,k.N).toFixed(2));p=Math.floor((k+.001)*100%5+2E-15);var t=k;p!==0&&(t=k-p*.01);return Number(t.toFixed(2))}; sPh=function(k){g.EY.call(this,{K:"div",W:"ytp-speedslider-component"});k.D("web_settings_use_input_slider")?this.T=new Y7(k):this.T=new rI(k);g.z(this,this.T);this.element.appendChild(this.T.element)}; L7w=function(k){var p=new sPh(k);Iz.call(this,k,p,"Custom");g.z(this,p)}; vDu=function(k,p){var t=new L7w(k);g.lB.call(this,"Playback speed",g.o6.L8,k,p,Zw(k)?void 0:"Custom",Zw(k)?void 0:function(){g.zr(p,t)}); var J=this;this.S=!1;g.z(this,t);this.Z=new Y7(k);g.z(this,this.Z);k.D("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{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.j=k;this.S=!1;this.gy=null;Zw(k)?(this.T=g.fT("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.j.getPlaybackRate().toString()}),this.C=this.j.getPlaybackRate()):this.C=this.T=null;this.L=this.j.getAvailablePlaybackRates();this.V(k,"presentingplayerstatechange",this.Zr);var q;((q=this.j.getVideoData())==null?0:q.u1())&&this.V(k,"serverstitchedvideochange",this.Zr);this.V(this.Z.T,"change",function(){J.S=!0;J.Zr()}); this.Zr()}; nDi=function(k,p){var t=cge(p);k.T&&(k.S||p===k.C)?(k.mF(k.T),k.HH(p.toString())):k.mF(t)}; ipT=function(k){k.jt(k.L.map(cge));k.T=null;k.C=null;var p=k.j.getPlaybackRate();if(!k.L.includes(p)||Zw(k.j))wci(k,p),k.mF(k.T)}; wci=function(k,p){k.C=p;k.T=g.fT("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:p.toString()});p=k.L.map(cge);p.unshift(k.T);k.jt(p)}; cge=function(k){return k.toString()}; Zw=function(k){return k.D("web_settings_menu_surface_custom_playback")}; QPj=function(k){return k.D("web_settings_menu_surface_custom_playback")&&k.D("web_settings_use_input_slider")}; G8e=function(k,p,t,J){var q=new g.XM(p,void 0,"Video Override");g.lB.call(this,J.text||"",k,p,t,"Video Override",function(){g.zr(t,q)}); var F=this;g.JB(this.element,"ytp-subtitles-options-menu-item");this.setting=J.option.toString();k=J.options;this.settings=g.Y2(k,this.rC,this);this.S=q;g.z(this,this.S);p=new g.zB({K:"div",W:"ytp-menuitemtitle",sy:"Allow for a different caption style if specified by the video."},0);g.z(this,p);this.S.Ru(p,!0);this.C=new g.zB({K:"div",W:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},U:[{K:"div",W:"ytp-menuitem-label",sy:"On"}]},-1);g.z(this,this.C);this.S.Ru(this.C,!0);this.V(this.C.element, "click",function(){Pzj(F,!0)}); this.T=new g.zB({K:"div",W:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},U:[{K:"div",W:"ytp-menuitem-label",sy:"Off"}]},-2);g.z(this,this.T);this.S.Ru(this.T,!0);this.V(this.T.element,"click",function(){Pzj(F,!1)}); this.jt(g.DR(k,this.rC))}; Pzj=function(k,p){k.publish("settingChange",k.setting+"Override",!p);k.Pp.AM()}; Cm=function(k,p){g.XM.call(this,k,void 0,"Options");var t=this;this.F6={};for(var J=0;J<g.Zx.length;J++){var q=g.Zx[J],F=new G8e(-J,k,p,q);g.z(this,F);F.subscribe("settingChange",this.vl,this);this.F6[q.option.toString()]=F;this.Ru(F,!0)}k=new g.zB(g.eP(),-g.Zx.length,"Reset");g.z(this,k);k.listen("click",function(){t.vl("reset",!0)}); this.Ru(k,!0)}; AL=function(k,p){g.lB.call(this,"Auto-translate",0,k,p);this.j=k;this.languages={};k.createClientVe(this.element,this,127301);k.logVisibility(this.element,!0)}; I3T=function(k,p){k.languages=g.Y2(p,k.T,k);k.jt(g.DR(p,k.T))}; R19=function(k,p){var t=new Cm(k,p),J=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],q;g.Mu(k.G())&&(q={K:"div",W:"ytp-panel-footer-content",U:[{K:"span",sy:J[0]},{K:"a",W:"ytp-panel-footer-content-link",sy:"Settings",J:{href:"/account_playback"}},{K:"span",sy:J[1]}]});g.lB.call(this,"Subtitles/CC",g.o6.SUBTITLES,k,p,"Options",function(){g.zr(p,t)},q); var F=this;this.j=k;this.Pp=p;this.tracks={};this.Z=new g.jF(function(){Xc6(F,!1)},3E3); g.z(this,this.Z);this.countLabel=new g.M({K:"div",U:[{K:"span",sy:"Subtitles/CC"},{K:"span",W:"ytp-menuitem-label-count",sy:"{{content}}"}]});g.z(this,this.countLabel);g.BO(this,this.countLabel);k.D("web_settings_menu_icons")&&this.setIcon(Umq.includes("en")?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{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"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",J:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.T=new AL(k,p);g.z(this,this.T);this.T.subscribe("select",this.Zv,this);this.S=t;g.z(this,this.S);this.S.subscribe("settingChange",this.vl,this);p.subscribe("show",this.HbS,this);this.V(k,"videodatachange",this.Zr);this.V(k,"onApiChange",this.Zr);this.V(k,"onCaptionsTrackListChanged", this.Zr);this.V(k,"captionschanged",this.Zr);k.createClientVe(this.element,this,127300);this.Zr()}; BdS=function(k){return Object.values(k.tracks).find(function(p){return p.languageCode==="en"&&p.kind==="asr"})}; m0=function(k,p){k.j.setOption("captions","track",p)}; Xc6=function(k,p){k.j.setOption("captions","sampleSubtitles",p)}; z1S=function(k){g.Bu.call(this,k,"ytp-settings-menu");var p=this;this.gI=new g.XM(this.j);this.X9=this.settingsButton=null;this.isInitialized=this.C4=!1;g.z(this,this.gI);this.hide();g.zr(this,this.gI);k.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(t){p.y7(t)}); this.V(k,"highlightSettingsMenu",function(){p.C4=!0;p.Iu()}); this.V(k,"openSettingsMenuItem",function(t){if(t&&(p.C4=!0,p.Iu(),t==="menu_item_video_quality_advanced")){var J;(J=p.X9)==null||J.open()}})}; e1i=function(k,p){k.settingsButton=p;k.element.id=p.element.getAttribute("aria-controls")}; h1q=function(k,p){g.M.call(this,{K:"button",S6:["ytp-subtitles-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},U:[fs0()]});this.j=k;this.tooltip=p.AB();this.V(k,"videodatachange",this.Zr);this.V(k,"appresize",this.Zr);this.V(k,"promotooltipacceptbuttonclicked",this.s8y);this.V(k,"onApiChange",this.Zr);this.V(k,"onCaptionsTrackListChanged",this.Zr);this.V(k,"captionschanged",this.Zr); this.j.createClientVe(this.element,this,127299);this.Zr();this.listen("click",this.onClick);this.addOnDisposeCallback(g.r4(p.AB(),this.element))}; a30=function(k){return g.iU(k.j.EQ())!=null?g.iU(k.j.EQ()).lH()?!!k.j.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; g.VK=function(k,p,t){t=t===void 0?350:t;g.M.call(this,{K:"div",S6:["ytp-time-display","notranslate"],U:[{K:"span",W:"ytp-time-wrapper",U:[{K:"span",W:"ytp-time-clip-icon",sy:"{{clipicon}}",J:{"aria-label":"Clip"}},{K:"span",W:"ytp-time-current",sy:"{{currenttime}}"},{K:"span",W:"ytp-time-separator",sy:" / "},{K:"span",W:"ytp-time-duration",sy:"{{duration}}"}]},{K:"span",W:"ytp-clip-watch-full-video-button-separator",sy:"\u2022"},{K:"span",W:"ytp-clip-watch-full-video-button",sy:"{{watchfullvideo}}"}]}); var J=this;this.api=k;this.L=t;this.liveBadge=new g.M({K:"button",S6:["ytp-live-badge","ytp-button"],J:{disabled:"true"},sy:"{{content}}"});this.T=null;this.gN=this.Y=!1;this.B=this.Z=null;this.isPremiere=!1;this.S=this.C=null;this.N=!1;this.QF=null;this.gy=this.Kp("ytp-clip-watch-full-video-button");this.api.D("web_player_updated_entrypoint")&&g.$E(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.HH("Live");g.z(this,this.liveBadge);this.api.D("web_player_updated_entrypoint")||this.api.D("delhi_modern_web_player")? this.liveBadge.QT(this.element.querySelector(".ytp-time-wrapper")):this.liveBadge.QT(this.element);this.tooltip=p.AB();this.liveBadge.listen("click",this.onClick.bind(this));this.api.D("delhi_modern_web_player")&&this.V(this.Kp("ytp-time-current"),"click",this.NSh);this.V(this.gy,"click",this.Q8h);this.V(this.api,"serverstitchedvideochange",function(){MGj(J,J.api.getProgressState().isAtLiveHead)}); this.V(k,"presentingplayerstatechange",this.OF);this.V(k,"appresize",this.OF);this.V(k,"onLoopRangeChange",this.onLoopRangeChange);this.V(k,"videodatachange",this.onVideoDataChange);(p=k.getVideoData())&&this.updateVideoData(p);this.OF();gDq(this,k.getLoopRange())}; MGj=function(k,p){var t=k.liveBadge.element,J=k.api.isLifaAdPlaying();t.disabled=J||p;!W5(k)||k.B===p&&k.Z===k.isPremiere||(k.B=p,k.Z=k.isPremiere,k.OF(),p?t.classList.add("ytp-live-badge-is-livehead"):t.classList.remove("ytp-live-badge-is-livehead"),k.liveBadge.HH(k.isPremiere?"Premiere":"Live"),p?k.T&&(k.T(),k.T=null,t.removeAttribute("title")):(t.title="Skip ahead to live broadcast.",k.T=g.r4(k.tooltip,k.liveBadge.element)))}; gDq=function(k,p){var t=k.QF!==p;k.QF=p;t&&uxi(k)}; uxi=function(k){k.updateValue("clipicon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",J:{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"}}]}); k.gN&&!k.Y?k.updateValue("watchfullvideo","Watch live stream"):k.updateValue("watchfullvideo","Watch full video");g.$E(k.element,"ytp-clip",Dw(k));g.$E(k.element,"ytp-live",W5(k))}; W5=function(k){var p=k.api.G().D("enable_linear_program_progress"),t=!k.api.D("clean_player_style_fix_on_web")||k.api.getPresentingPlayerType()!==2;return k.gN&&!Dw(k)&&(!p||!k.Y)&&t}; Dw=function(k){return!!k.QF&&!!k.QF.postId&&k.api.getPresentingPlayerType()!==2&&(!k.QF.type||k.QF.type==="clips")}; jPi=function(k,p){g.M.call(this,{K:"div",W:"ytp-volume-panel",J:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{K:"div",W:"ytp-volume-slider",U:[{K:"div",W:"ytp-volume-slider-handle"}]}]});var t=this;this.api=k;this.Z=p;this.UU=!1;this.L=this.volume=0;this.S=null;this.Y=this.T=this.isDragging=!1;this.Z=p;this.N=k.wj();this.B=this.Kp("ytp-volume-slider");this.gy=this.Kp("ytp-volume-slider-handle"); this.C=new g.Kt(this.B,!0);g.z(this,this.C);this.C.subscribe("dragstart",this.Ji0,this);this.C.subscribe("dragmove",this.I0,this);this.C.subscribe("dragend",this.U2O,this);this.V(k,"onVolumeChange",this.onVolumeChange);this.V(k,"appresize",this.To);this.V(k,"fullscreentoggled",this.BI);this.V(k,"onShowControls",this.Og);this.V(k,"onHideControls",this.Og);this.V(this.element,"keydown",this.Wc);this.V(this.element,"focus",function(){sW(t,t.T,t.isDragging,!0,t.api.UU())}); this.V(this.element,"blur",function(){sW(t,t.T,t.isDragging,!1,t.api.UU())}); this.To(k.Uy().getPlayerSize());l3h(this,k.getVolume(),k.isMuted());ZB(k,this.element,this)}; l3h=function(k,p,t){var J=Math.floor(p),q=J+"% volume"+(t?" muted":"");t=t?0:p/100;k.updateValue("valuenow",J);k.updateValue("valuetext",q);k.gy.style.left=(k.N?60:40)*t+"px";k.volume=p}; Op_=function(k,p){g.$E(k.element,"ytp-volume-control-hover",p);sW(k,p,k.isDragging,k.Y,k.api.UU())}; sW=function(k,p,t,J,q){var F=k.T||k.isDragging||k.Y||k.UU;k.T=p;k.isDragging=t;k.Y=J;k.UU=q;p=k.T||k.isDragging||k.Y||k.UU;F!==p&&(p?k.S=k.V(k.element,"wheel",k.n8):(k.qP(k.S),k.S=null),g.$E(k.Z,"ytp-volume-slider-active",p))}; Lm=function(k,p){var t=k.G(),J=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];t.N&&J.push("no-link");var q={title:"{{title}}",target:t.L,"data-priority":"5","data-sessionlink":"feature=player-button"};t.N||(q.href="{{url}}");g.M.call(this,{K:"a",S6:J,J:q,sy:"{{logoSvg}}"});this.T=null;this.api=k;this.visible=!1;t.N||(this.T=this.listen("click",this.onClick));this.V(k,"videodatachange",this.onVideoDataChange);this.V(k,"videoplayerreset",this.onVideoDataChange);this.V(k,"onLoopRangeChange", this.onVideoDataChange);this.V(k,"appresize",this.zA);this.onVideoDataChange();t.N||this.addOnDisposeCallback(g.r4(p.AB(),this.element));this.zA()}; K7_=function(k,p,t){g.nC.call(this);var J=this;this.j=k;this.P0=p;this.HQ=t;this.Jp=NaN;this.Y8=this.v0=this.playButton=this.X=this.S=this.W0=this.RY=this.gy=this.L=this.T=this.B0=this.pp=null;this.N=new z1S(this.j);this.progressBar=new g.us(this.j,this.P0);this.j6=new g.VK(this.j,this.P0);this.NO=new fOh(this.j,this.P0);this.B=new g.lv(this.eQ,null,this);t=k.G();this.HQ.subscribe("autohideupdate",this.XH,this);var q=!k.getPlayerStateObject().isCued(),F;k.G().D("html5_player_dynamic_bottom_gradient")? this.B0=F=new dHi(k):F=new g.M({K:"div",W:"ytp-gradient-bottom"});g.z(this,F);g.cO(k,F.element,9);this.qO=new g.K1(F,250,q,100);g.z(this,this.qO);this.C=new g.M({K:"div",W:"ytp-chrome-bottom",U:[{K:"div",W:"ytp-chrome-controls"}]});g.z(this,this.C);g.cO(k,this.C.element,9);this.Oy=new g.K1(this.C,250,q,100);g.z(this,this.Oy);this.IY=this.C.element.children[0];g.z(this,this.N);g.cO(k,this.N.element,6);this.N.subscribe("show",function(S){J.j.yI(!S);k.K9(J.N,S)}); g.z(this,this.progressBar);this.progressBar.QT(this.C.element,0);q=new Gd(k,p);g.z(this,q);g.cO(k,q.element,4);q=new g.FK({K:"div",W:"ytp-left-controls"});g.z(this,q);q.QT(this.IY);k.D("delhi_modern_web_player")||(F=new g.ej(k,p,!1),g.z(this,F),F.QT(q.element));k.D("web_render_jump_buttons")&&(this.L=new IS(k,g.dU(k.G().experiments,"web_jump_button_backward_amount")||-10),g.z(this,this.L),this.L.QT(q.element));t.qO||(this.playButton=new g.zd(k,p),g.z(this,this.playButton),this.playButton.QT(q.element)); k.D("web_render_jump_buttons")&&(this.gy=new IS(k,g.dU(k.G().experiments,"web_jump_button_forward_amount")||10),g.z(this,this.gy),this.gy.QT(q.element));k.D("delhi_modern_web_player_remove_nav_buttons")||(k.D("delhi_modern_web_player")&&(F=new g.ej(k,p,!1),g.z(this,F),F.QT(q.element)),F=new g.ej(k,p,!0),g.z(this,F),F.QT(q.element));if(!k.D("delhi_modern_web_player")&&(F=new g.M({K:"span",W:"ytp-volume-area"}),g.z(this,F),F.QT(q.element),!t.mW&&(this.T=new Ba(k,p),g.z(this,this.T),this.T.QT(F.element), t.RY&&!t.B))){var d=new jPi(k,this.C.element);this.v0=d;g.z(this,d);d.QT(F.element);F=new g.Kt(F.element);g.z(this,F);F.subscribe("hoverstart",function(){var S;(S=J.v0)==null||Op_(S,!0)}); F=new g.Kt(q.element);g.z(this,F);F.subscribe("hoverend",function(){var S;(S=J.v0)==null||Op_(S,!1)})}g.z(this,this.j6); this.j6.QT(q.element);this.RY=new Pa(k,this.progressBar);g.z(this,this.RY);this.RY.QT(q.element);t.D("web_key_moments_markers")&&(this.W0=new X0(k,this.progressBar),g.z(this,this.W0),this.W0.QT(q.element));k.D("delhi_modern_web_player")?(this.Y=new g.FK({K:"div",W:"ytp-right-controls",U:[{K:"div",W:v5.RIGHT_CONTROLS_LEFT},{K:"div",W:v5.RIGHT_CONTROLS_RIGHT}]}),k.D("delhi_modern_web_player_right_controls_separate")&&g.JB(this.Y.element,"ytp-right-controls-separate")):this.Y=new g.FK({K:"div",W:"ytp-right-controls"}); g.z(this,this.Y);this.Y.QT(this.IY);k.D("delhi_modern_web_player")&&(this.T=new Ba(k,p),g.z(this,this.T),this.T.QT(this.Y.Kp(v5.RIGHT_CONTROLS_LEFT)));this.k8=new h1q(k,p);g.z(this,this.k8);c5(this,this.k8,"RIGHT_CONTROLS_LEFT");this.settingsButton=new UW(k,this.N);g.z(this,this.settingsButton);e1i(this.N,this.settingsButton);c5(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");q=k.getVideoData();if(t.SB||q.JB&&t.controlsType==="1")this.S=new Lm(k,p),g.z(this,this.S),this.S.QT(this.Y.element);t.showMiniplayerButton&& (this.X=new RS(k),g.z(this,this.X),c5(this,this.X,"RIGHT_CONTROLS_RIGHT"));t.wd&&(p=new SX(k,this.N),g.z(this,p),c5(this,p,"RIGHT_CONTROLS_RIGHT"));t.xd&&(p=new is(k),g.z(this,p),c5(this,p,"RIGHT_CONTROLS_RIGHT"));g.z(this,this.NO);c5(this,this.NO,"RIGHT_CONTROLS_RIGHT");g.z(this,this.B);this.V(k,"appresize",this.zA);this.V(k,"fullscreentoggled",this.zA);this.V(k,"presentingplayerstatechange",this.jg);this.V(k,"videodatachange",this.onVideoDataChange);this.zA()}; Hpw=function(k,p){if(k.j.getPlayerStateObject().isCued()||p){if(p){k.Oy.hide();k.qO.hide();k.T&&k.T.Wp(!1);k.S&&k.S.Wp(!1);k.X&&k.X.Wp(!1);if(k.j.D("embeds_use_parent_visibility_in_ve_logging")){var t;(t=k.NO)==null||t.Wp(!1);var J;(J=k.settingsButton)==null||J.Wp(!1);var q;(q=k.playButton)==null||q.Wp(!1)}k.j.Mc(k.KE())}}else if(!p){k.Oy.show();k.qO.show();k.T&&k.T.Wp(!0);k.S&&k.S.Wp(!0);k.X&&k.X.Wp(!0);if(k.j.D("embeds_use_parent_visibility_in_ve_logging")){var F;(F=k.NO)==null||F.Wp(!0);var d; (d=k.k8)==null||d.Wp(!0);var S;(S=k.playButton)==null||S.Wp(!0)}k.XH()}}; kuq=function(k){var p=k.j.Uy().getPlayerSize().width;return Math.max(p-x5T(k)*2,100)}; x5T=function(k){var p=k.j.wj(),t=k.j.getVideoData().JB,J=0;k.j.wj()&&k.j.isEmbedsShortsMode()&&(J=(k.j.Uy().getPlayerSize().width-k.j.getVideoContentRect().width)/2);return 12*(t?0:p?2:1)+J}; pKT=function(k){var p=k.j.wj()?72:50;k=k.j.G();g.Mu(k)&&(p=k.D("delhi_modern_web_player")?78:62,g.cs(k)&&(p=54));return p}; c5=function(k,p,t){k.j.D("delhi_modern_web_player")?p.QT(k.Y.Kp(v5[t])):p.QT(k.Y.element)}; tzS=function(k){Gr.call(this,k,!1);var p=this;this.suggestedActions={};this.V(this.j,"videodatachange",this.onVideoDataChange);this.V(this.j,g.pT("suggested_action_button_visible"),function(t){t=t.id;p.text=t;xcL(p);p.onClickCommand=p.suggestedActions[t];p.enabled=!0;p.y7()}); this.V(this.j,g.tA("suggested_action_button_visible"),function(t){p.enabled=!1;p.y7();p.j.removeCueRange(t.id)})}; JV0=function(k){k.suggestedActions={};k.j.VM("suggested_action_button_visible")}; wI=function(k){g.M.call(this,{K:"div",W:nm.TITLE,U:[{K:"div",W:nm.TEXT,U:[{K:"a",S6:[nm.LINK,nm.SESSIONLINK],J:{target:k.G().L,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},sy:"{{title}}"},{K:"div",W:nm.SUBTEXT,U:["{{subtextElement}}"]}]}]});this.api=k;this.T=null;this.link=this.Kp(nm.LINK);k.createClientVe(this.element,this,23851);this.V(k,"videodatachange",this.Zr);this.V(k,"videoplayerreset",this.Zr);this.Zr()}; oxe=function(k){k.updateValue("channelLink","");k.updateValue("channelName","");g.cs(k.api.G())?k.updateValue("channelTitleFocusable","0"):k.updateValue("channelTitleFocusable","-1")}; g.iW=function(k,p){g.M.call(this,{K:"div",U:[{K:"div",W:"ytp-tooltip-text-wrapper",J:{"aria-hidden":"{{ariaHidden}}"},U:[{K:"div",W:"ytp-tooltip-edu",U:[{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",J:{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"}}]},{K:"span",sy:"{{eduText}}"}]},{K:"div",W:"ytp-tooltip-image"},{K:"div",W:"ytp-tooltip-title",U:[{K:"span",sy:"{{title}}"},{K:"div",W:"ytp-tooltip-keyboard-shortcut", sy:"{{keyBoardShortcut}}"}]},{K:"div",W:"ytp-tooltip-bottom-text",U:[{K:"span",W:"ytp-tooltip-text",sy:"{{text}}"},{K:"div",W:"ytp-tooltip-keyboard-shortcut",sy:"{{keyBoardShortcut}}"}]}]},{K:"div",W:"ytp-tooltip-bg",U:[{K:"div",W:"ytp-tooltip-duration",sy:"{{duration}}"}]}]});var t=this;this.api=k;this.qO=p;this.gy=function(J){(J=J.relatedTarget)&&g.FI(t.T,J)||t.u6()}; this.S=function(J){t.type===3&&t.u6();(J=J.currentTarget)&&J.nodeType===1&&!t.type&&(J.removeEventListener("mouseover",t.S),J.addEventListener("mouseout",t.gy),J.removeEventListener("focus",t.S),J.addEventListener("blur",t.gy),qsM(t,J,2))}; this.Y8=function(){t.u6()}; this.type=this.T=null;this.L=!1;this.Y=null;this.N="";this.B=!0;this.scale=1;this.env=this.api.G();this.j6=this.env.Y;this.wrapper=this.Kp("ytp-tooltip-text-wrapper");this.bg=this.Kp("ytp-tooltip-bg");this.Oy=this.Kp("ytp-tooltip-edu");this.image=this.Kp("ytp-tooltip-image");this.text=this.Kp("ytp-tooltip-text");this.bottomText=this.Kp("ytp-tooltip-bottom-text");this.title=this.Kp("ytp-tooltip-title");this.Z=new g.K1(this,100);this.C=NaN;this.yv=this.api.Uy().getPlayerSize().width;this.NO=new g.jF(this.iEY, 250,this);this.P0=new g.jF(this.u6,5E3,this);g.z(this,this.Z);g.z(this,this.NO);g.z(this,this.P0);Cl&&(k=this.Kp("ytp-tooltip-text"),k.setAttribute("role","text"),k.setAttribute("aria-live","polite"))}; g.r4=function(k,p){if(k.j6)return function(){}; p.addEventListener("mouseover",k.S);p.addEventListener("focus",k.S);var t=p.getAttribute("title");t&&!p.hasAttribute("aria-label")&&p.setAttribute("aria-label",t);return function(){k.T===p&&k.u6();p.removeEventListener("mouseover",k.S);p.removeEventListener("focus",k.S)}}; qsM=function(k,p,t,J){if(p&&!p.hasAttribute)k=new g.hm("showElementTooltip called with non-element.",p.toString()),g.nV(k);else{isNaN(k.C)||(k.C=NaN,k.bg.style.background="");k.T=p;k.L=!!J;J?k.N=J:(k.N=p.getAttribute("title"),p.removeAttribute("title"));g.pv(k.element,"ytp-tooltip");var q=p.getAttribute("data-tooltip-image");q&&(k.image.style.backgroundImage="url("+q+")");J?k.update({ariaHidden:"false"}):k.update({ariaHidden:"true"});g.$E(k.element,"ytp-tooltip-image-enabled",!!q);p=p.getAttribute("data-tooltip-opaque"); g.$E(k.element,"ytp-tooltip-opaque",!!p);k.type=t;k.api.addEventListener("appresize",k.Y8);k.B&&(Fte(k),k.Z.show(0))}}; Fte=function(k){if(k.T){var p=k.T.getAttribute("data-tooltip-text");if(k.N&&k.T.getAttribute("aria-label")!==k.N)var t=k.N;var J=k.T.getAttribute("aria-keyshortcuts"),q=k.T.getAttribute("data-title-no-tooltip");J&&q&&(t=g.fT("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:q,SHORTCUT_KEY:J}));t&&k.T.setAttribute("aria-label",t);if(p&&!k.L){J=k.T;k.updateValue("text",p);t=J.getAttribute("data-duration");k.update({title:k.N,duration:t});J=J.getAttribute("data-preview");q=243*k.scale;var F= 141*k.scale;k.bg.style.width=q+"px";k.bg.style.height=F+"px";k.bg.style.backgroundImage=J?"url("+J+")":"";k.bg.style.backgroundSize=q+"px "+F+"px";k.wrapper.style.width=q+"px";g.ob(k.element,["ytp-text-detail","ytp-preview"]);g.$E(k.element,"ytp-has-duration",!!t)}else k.updateValue("text",k.N),J&&k.env.D("delhi_modern_web_player")&&(k.updateValue("text",q),k.updateValue("keyBoardShortcut",J.toUpperCase())),g.Fz(k.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);$4_(k,!!p)}}; $4_=function(k,p,t,J){var q=Math.min(k.yv,300*k.scale);k.element.style.maxWidth=p?"":q+"px";k.qO.Yn(k.element,k.T,t,k.type===1,J);k.element.style.top?g.JB(k.element,"ytp-bottom"):k.element.style.bottom&&g.JB(k.element,"ytp-top");k.type===3&&k.P0.start()}; d4e=function(k,p){g.$E(k.element,"ytp-preview",p>=0);if(!(p<0||p===k.C)){k.C=p;p=243*k.scale;var t=141*k.scale,J=rb_(k.Y,k.C,p);Ebh(k.bg,J,p,t,!0);k.NO.start()}}; Exw=function(k){var p=k.T;k.type===3&&k.P0.stop();k.api.removeEventListener("appresize",k.Y8);k.L||p.setAttribute("title",k.N);k.N="";k.T=null;k.updateValue("keyBoardShortcut","");k.wrapper.style.width=""}; U4q=function(k){g.M.call(this,{K:"button",S6:["ytp-watch-later-button","ytp-button"],J:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.V0(k.G()))},U:[{K:"div",W:"ytp-watch-later-icon",sy:"{{icon}}"},{K:"div",W:"ytp-watch-later-title",sy:"Watch later"}]});this.j=k;this.icon=null;this.visible=this.isRequestPending=this.T=!1;jHw(k);k.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.V(k,"videoplayerreset",this.onReset);this.V(k,"appresize", this.xE);this.V(k,"videodatachange",this.xE);this.V(k,"presentingplayerstatechange",this.xE);this.xE();k=this.j.G();var p=g.nG("yt-player-watch-later-pending");k.C&&p?(BUT(),Ss9(this)):this.Zr(2);g.$E(this.element,"ytp-show-watch-later-title",g.V0(k));ZB(this.j,this.element,this)}; fcS=function(k){var p=k.j.getPlayerSize(),t=k.j.G(),J=k.j.getVideoData(),q=g.V0(t)&&g.DB(k.j)&&g.u(k.j.getPlayerStateObject(),128),F=t.N;return t.hB&&p.width>=240&&!J.isAd()&&J.hB&&!q&&!g.Ky(J)&&!k.j.isEmbedsShortsMode()&&!F}; b7_=function(k,p){i_L(g.Bs(k.j.G()),"wl_button",function(){BUT({videoId:p});window.location.reload()})}; Ss9=function(k){if(!k.isRequestPending){k.isRequestPending=!0;k.Zr(3);var p=k.j.getVideoData();p=k.T?p.removeFromWatchLaterCommand:p.addToWatchLaterCommand;var t=k.j.DM(),J=k.T?function(){k.T=!1;k.isRequestPending=!1;k.Zr(2);k.j.G().Z&&k.j.zb("WATCH_LATER_VIDEO_REMOVED")}:function(){k.T=!0; k.isRequestPending=!1;k.Zr(1);k.j.G().Y&&k.j.sK(k.element);k.j.G().Z&&k.j.zb("WATCH_LATER_VIDEO_ADDED")}; aF(t,p).then(J,function(){k.isRequestPending=!1;k.Zr(4,"An error occurred. Please try again later.");k.j.G().Z&&k.j.zb("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; Nwi=function(k,p){if(p!==k.icon){switch(p){case 3:var t=tr();break;case 1:t=Nq();break;case 2:t={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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:t={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path", sF:!0,J:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}k.updateValue("icon",t);k.icon=p}}; g.QK=function(){g.Kg.apply(this,arguments);this.Vp=(this.g4=g.V0(this.api.G()))&&(this.api.G().Y||OG()||l6());this.Wz=48;this.ek=69;this.tG=this.b6=null;this.SS=[];this.Rg=this.MX=this.Xi=this.xP=this.XA=null;this.Wo=[];this.contextMenu=this.hD=this.overflowButton=this.jP=this.CL=this.searchButton=this.copyLinkButton=this.shareButton=this.tf=this.E7=this.title=this.channelAvatar=this.dX=this.tooltip=null;this.jk=!1;this.qL=this.FN=this.NE=this.Cu=null;this.uJ=this.eX=this.Bz=!1}; yVS=function(k){var p=k.api.G(),t=g.u(k.api.getPlayerStateObject(),128);return p.C&&t&&!k.api.isFullscreen()}; Ys6=function(k){if(k.yX()&&!k.api.isEmbedsShortsMode()&&k.jP){var p=k.api.D("web_player_hide_overflow_button_if_empty_menu");!k.tf||p&&!fcS(k.tf)||QMM(k.jP,k.tf);!k.shareButton||p&&!akT(k.shareButton)||QMM(k.jP,k.shareButton);!k.copyLinkButton||p&&!lmM(k.copyLinkButton)||QMM(k.jP,k.copyLinkButton)}else{if(k.jP){p=k.jP;for(var t=g.Z(p.actionButtons),J=t.next();!J.done;J=t.next())J.value.detach();p.actionButtons=[]}k.searchButton&&!g.FI(k.E7.element,k.searchButton.element)&&k.searchButton.QT(k.E7.element); k.tf&&!g.FI(k.E7.element,k.tf.element)&&k.tf.QT(k.E7.element);k.shareButton&&!g.FI(k.E7.element,k.shareButton.element)&&k.shareButton.QT(k.E7.element);k.copyLinkButton&&!g.FI(k.E7.element,k.copyLinkButton.element)&&k.copyLinkButton.QT(k.E7.element)}}; Tw_=function(k,p,t){p=t?p.lastElementChild:p.firstElementChild;for(var J=null;p;){if(bQ(p,"display")!=="none"&&p.getAttribute("aria-hidden")!=="true"){var q=void 0;p.tabIndex>=0?q=p:q=Tw_(k,p,t);q&&(J?t?q.tabIndex>J.tabIndex&&(J=q):q.tabIndex<J.tabIndex&&(J=q):J=q)}p=t?p.previousElementSibling:p.nextElementSibling}return J}; rV0=function(k,p,t){if(k.api.D("web_player_nitrate_promo_tooltip")&&k.api.getPresentingPlayerType(!0)!==2){var J=k.api.getVideoData(1);if(J==null?0:J.tooltipRenderer){J=J.tooltipRenderer;var q;if(q=!k.qL){if(!(p=!p)){var F,d,S;p=((F=J.tooltipDisplayStrategy)==null?void 0:F.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((d=J.promoConfig)==null?void 0:d.promoId)!=="dtip-edu-player-iseecaptions"&&((S=J.promoConfig)==null?void 0:S.promoId)!=="dtip-edu-player-tc-m2"}q=p}q&&(k.qL=new Xfj(J,k.api), g.z(k,k.qL),g.cO(k.api,k.qL.element,9));var U;(U=k.qL)==null||eli(U,J,t)}}}; g.P5=function(k){g.Wr.call(this,k);this.chrome=null;this.load()}; Z7M=function(){for(var k=G4.length;k<4;k++){var p=g.kW("VIDEO");p.load();G4.push(new g.qc(p))}}; CMq=function(k,p,t,J){var q=t.getVideoData(),F=p.getVideoData();if(t.getPlayerState().isError())return{msg:"player-error"};var d=F.N;if(p.Zw()>J/1E3+1)return{msg:"in-the-past"};if(F.isLivePlayback&&!isFinite(J))return{msg:"live-infinite"};(J=p.QM())&&J.isView()&&(J=J.mediaElement);if(J&&J.Vl().length>12&&g.yR(q))return{msg:"played-ranges"};if(!q.N)return null;if(!d)return{msg:"no-pvd-formats"};if(!q.N.T||!d.T)return{msg:"non-dash"};J=d.videoInfos[0];var S=q.N.videoInfos[0];k.Z&&xL(F)&&(J=p.Hb(),S= t.Hb());if(!J||!S)return{msg:"no-video-info"};if(k.N&&(hD(J)||hD(S)))return{msg:"av1"};p=k.T&&F.n7()&&UI();if(S.containerType!==J.containerType)if(p)F.yT("sgap",{ierr:"container"});else return{msg:"container"};if(k.Y&&!p&&(S.H0!==J.H0||S.H0===""||J.H0===""))return{msg:"codec"};if(k.C&&S.video&&J.video&&Math.abs(S.video.width/S.video.height-J.video.width/J.video.height)>.01)return{msg:"ratio"};if(g.yR(F)&&g.yR(q))return{msg:"content-protection"};d=d.T[0];q=q.N.T[0];t=d.audio;var U=q.audio;if(t.sampleRate!== U.sampleRate&&!g.sD)if(p)F.yT("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:d.itag,cr:t.sampleRate,ni:q.itag,nr:U.sampleRate};return(t.numChannels||2)!==(U.numChannels||2)?{msg:"channel-count"}:k.X&&F.n7()&&J.video.fps!==S.video.fps?{msg:"fps"}:null}; AVL=function(k,p,t){var J=k.getVideoData(),q=p.getVideoData();if(!J.G().supportsGaplessShorts())return{nq:"env"};if(t.S){if(J.VA&&!J.isAd()||q.VA&&!q.isAd())return{nq:"autoplay"}}else if(J.VA||q.VA)return{nq:"autoplay"};if(!J.B)return{nq:"client"};if(!k.yN())return{nq:"no-empty"};k=CMq(t,k,p,Infinity);return k!=null?{nq:k.msg}:null}; Io=function(k){g.R.call(this);this.app=k;this.X=this.C=this.Y=this.T=null;this.N=1;this.events=new g.nC(this);this.events.V(this.app.fp,g.tA("gaplessshortslooprange"),this.B);g.z(this,this.events)}; m49=function(){this.C=this.S=this.N=this.Z=this.X=this.Y=this.T=!1}; Vzj=function(k){var p=new m49;p.T=k.D("h5_gapless_support_types_diff");p.X=k.D("h5_gapless_error_on_fps_diff");p.Z=k.D("html5_gapless_use_format_info_fix");p.N=k.D("html5_gapless_disable_on_av1")&&!k.D("html5_gapless_enable_on_av1");p.Y=k.D("html5_gapless_check_codec_diff_strictly");p.S=k.D("html5_gapless_on_ad_autoplay");p.C=k.D("html5_gapless_disable_diff_aspect_radio");return p}; g.X8=function(k,p,t,J){J=J===void 0?!1:J;g0.call(this);this.mediaElement=k;this.start=p;this.end=t;this.T=J}; WtT=function(k,p,t,J,q,F){F=F===void 0?0:F;g.R.call(this);var d=this;this.policy=k;this.T=p;this.Y=t;this.fT=q;this.X=F;this.C=this.N=null;this.currentVideoDuration=this.S=-1;this.Z=!1;this.CF=new Mi;this.oh=J-p.Yx()*1E3;this.CF.then(void 0,function(){}); this.timeout=new g.jF(function(){d.Yi("timeout")},1E4); g.z(this,this.timeout);this.B=isFinite(J);this.status={status:0,error:null}}; Lt0=function(k){var p,t,J,q,F,d,S,U,f,b;return g.Q(function(N){if(N.T==1){if(k.MO())return N.return(Promise.reject(Error(k.status.error||"disposed")));k.timeout.start();p=g.Ro.R5();return g.n(N,k.CF,2)}g.Ro.g5("gtfta",p);t=k.T.QM();if(t.isEnded())return k.Yi("ended_in_finishTransition"),N.return(Promise.reject(Error(k.status.error||"")));if(!k.C||!RU(k.C))return k.Yi("next_mse_closed"),N.return(Promise.reject(Error(k.status.error||"")));if(k.Y.D6()!==k.C)return k.Yi("next_mse_mismatch"),N.return(Promise.reject(Error(k.status.error|| "")));J=D4w(k);q=J.JZ;F=J.cB;d=J.a4;k.T.vj(!1,!0);S=s9i(t,q,d,!k.Y.getVideoData().isAd());k.Y.setMediaElement(S);(U=k.T.cL())&&k.Y.fP(U.Ut,U.Jd);k.B&&(k.Y.seekTo(k.Y.getCurrentTime()+.001,{ij:!0,i4:3,XR:"gapless_pseudo"}),S.play(),cw());f=t.pE();f.cpn=k.T.getVideoData().clientPlaybackNonce;f.st=""+q;f.et=""+d;k.Y.yT("gapless",f);k.T.yT("gaplessTo",{cpn:k.Y.getVideoData().clientPlaybackNonce});b=k.T.getPlayerType()===k.Y.getPlayerType();k.T.W9(F,!0,!1,b,k.Y.getVideoData().clientPlaybackNonce);k.Y.W9(k.Y.getCurrentTime(), !0,!0,b,k.T.getVideoData().clientPlaybackNonce);k.Y.pW();g.Eo(function(){!k.Y.getVideoData().NO&&k.Y.getPlayerState().isOrWillBePlaying()&&k.Y.nY()}); B5(k,6);k.dispose();return N.return(Promise.resolve())})}; wKi=function(k){if(k.Y.getVideoData().N){var p=k.fT.G().D("html5_gapless_suspend_next_loader")&&k.X===1;k.Y.J8(k.C,p,vxq(k));B5(k,3);cVT(k);var t=nx_(k);p=t.O1;t=t.CG;p.subscribe("updateend",k.Qm,k);t.subscribe("updateend",k.Qm,k);k.Qm(p);k.Qm(t)}}; cVT=function(k){k.T.unsubscribe("internalvideodatachange",k.Z0,k);k.Y.unsubscribe("internalvideodatachange",k.Z0,k);k.fT.G().D("html5_gapless_use_format_info_fix")&&(k.T.unsubscribe("internalvideoformatchange",k.Z0,k),k.Y.unsubscribe("internalvideoformatchange",k.Z0,k));k.T.unsubscribe("mediasourceattached",k.Z0,k);k.Y.unsubscribe("statechange",k.gC,k)}; s9i=function(k,p,t,J){k=k.isView()?k.mediaElement:k;return new g.X8(k,p,t,J)}; B5=function(k,p){p<=k.status.status||(k.status={status:p,error:null},p===5&&k.CF.resolve())}; vxq=function(k){return k.fT.G().D("html5_gapless_no_clear_buffer_timeline")&&k.X===1&&tx(k.T.getVideoData())}; D4w=function(k){var p=k.T.QM();p=p.isView()?p.start:0;var t=k.T.getVideoData().isLivePlayback?Infinity:k.T.FO(!0);t=Math.min(k.oh/1E3,t)+p;var J=k.B?100:0;k=t-k.Y.Zw()+J;return{NS:p,JZ:k,cB:t,a4:Infinity}}; nx_=function(k){return{O1:k.N.T.BH,CG:k.N.Y.BH}}; z4=function(k){g.R.call(this);var p=this;this.app=k;this.X=this.Y=this.T=null;this.B=!1;this.N=this.C=null;this.Z=Vzj(this.app.G());this.S=function(){g.Eo(function(){i7i(p)})}}; Q9L=function(k,p,t,J,q){J=J===void 0?0:J;q=q===void 0?0:q;k.yN()||eX(k);k.C=new Mi;k.T=p;var F=t,d=q===0;d=d===void 0?!0:d;var S=k.app.tp(),U=S.getVideoData().isLivePlayback?Infinity:S.FO(!0)*1E3;F>U&&(F=U-200,k.B=!0);d&&S.getCurrentTime()>=F/1E3?k.S():(k.Y=S,d&&(d=F,F=k.Y,k.app.fp.addEventListener(g.pT("vqueued"),k.S),d=isFinite(d)||d/1E3>F.getDuration()?d:0x8000000000000,k.X=new g.xf(d,0x8000000000000,{namespace:"vqueued"}),F.addCueRange(k.X)));d=J/=1E3;F=p.getVideoData().T;J&&F&&k.Y&&(S=J,U=0, p.getVideoData().isLivePlayback&&(d=Math.min(t/1E3,k.Y.FO(!0)),U=Math.max(0,d-k.Y.getCurrentTime()),S=Math.min(J,p.FO()+U)),d=SE0(F,S)||J,d!==J&&k.T.yT("qvaln",{st:J,at:d,rm:U,ct:S}));p=d;J=k.T;J.getVideoData().kx=!0;J.getVideoData().B=!0;J.BO(!0);F={};k.Y&&(F=k.Y.Bb(),d=k.Y.getVideoData().clientPlaybackNonce,F={crt:(F*1E3).toFixed(),cpn:d});J.yT("queued",F);p!==0&&J.seekTo(p+.01,{ij:!0,i4:3,XR:"videoqueuer_queued"});k.N=new WtT(k.Z,k.app.tp(),k.T,t,k.app,q);t=k.N;t.status.status!==Infinity&&(B5(t, 1),t.T.subscribe("internalvideodatachange",t.Z0,t),t.Y.subscribe("internalvideodatachange",t.Z0,t),t.fT.G().D("html5_gapless_use_format_info_fix")&&(t.T.subscribe("internalvideoformatchange",t.Z0,t),t.Y.subscribe("internalvideoformatchange",t.Z0,t)),t.T.subscribe("mediasourceattached",t.Z0,t),t.Y.subscribe("statechange",t.gC,t),t.T.subscribe("newelementrequired",t.qq,t),t.Z0());return k.C}; i7i=function(k){var p,t,J,q,F,d,S,U,f;g.Q(function(b){switch(b.T){case 1:if(k.MO()||!k.C||!k.T)return b.return();k.B&&k.app.tp().XX(!0,!1);t=k.app.G().D("html5_force_csdai_gapful_transition")&&((p=k.app.tp())==null?void 0:p.getVideoData().isDaiEnabled());J=null;if(!k.N||t){b.oY(2);break}g.Aw(b,3);return g.n(b,Lt0(k.N),5);case 5:g.Vi(b,2);break;case 3:J=q=g.W9(b);case 2:if(!k.T)return b.return();g.Ro.iX("vqsp",function(){k.app.zR(k.T)}); if(!k.T)return b.return();F=k.T.QM();k.app.G().D("html5_gapless_seek_on_negative_time")&&F&&F.getCurrentTime()<-.01&&k.T.seekTo(0);g.Ro.iX("vqpv",function(){k.app.playVideo()}); if(J||t)k.T?(d=J?J.message:"forced",(S=k.Y)==null||S.yT("gapfulfbk",{r:d}),k.T.fN(d)):(U=k.Y)==null||U.yT("gapsp",{});f=k.C;eX(k);f&&f.resolve();return b.return(Promise.resolve())}})}; eX=function(k,p){p=p===void 0?!1:p;if(k.Y){if(k.X){var t=k.Y;k.app.fp.removeEventListener(g.pT("vqueued"),k.S);t.removeCueRange(k.X)}k.Y=null;k.X=null}k.N&&(k.N.status.status!==6&&(t=k.N,t.status.status!==Infinity&&t.X!==1&&t.Yi("Canceled")),k.N=null);k.C=null;k.T&&!p&&k.T!==k.app.iG()&&k.T!==k.app.tp()&&EO(k.T);k.T&&p&&k.T.Wk();k.T=null;k.B=!1}; PMi=function(k){var p;return((p=k.N)==null?void 0:p.currentVideoDuration)||-1}; Gu9=function(k,p,t){if(k.yN())return"qie";if(k.T==null||k.T.Tb.MO()||k.T.getVideoData()==null)return"qpd";if(p.videoId!==k.T.nZ())return"vinm";if(PMi(k)<=0)return"ivd";if(t!==1)return"upt";if((t=k.N)==null)k=void 0;else if(t.getStatus().status!==5)k="niss";else if(CMq(t.policy,t.T,t.Y,t.oh)!=null)k="pge";else{p=nx_(t);k=p.O1;var J=p.CG;p=g.dU(t.fT.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");t=t.S+p;J=JN(J.Dl(),t);k=JN(k.Dl(),t);k=!(p>0)||J&&k?null:"neb"}return k!=null?k:null}; Icw=function(){g.o$.call(this);var k=this;this.fullscreen=0;this.C=this.N=this.pictureInPicture=this.T=this.Y=this.inline=!1;this.X=function(){k.y7()}; IF0(this.X);this.S=this.getVisibilityState(this.QX(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Z5(),this.G1(),this.pV(),this.XU())}; Z5=function(k){return!(k.isMinimized()||k.isInline()||k.isBackground()||k.Z5()||k.G1()||k.pV()||k.XU())}; XKh=function(){}; RJi=function(k,p){g.R.call(this);this.T=new XKh;this.C=this.X=null;this.Y=k;this.N=p}; aci=function(k){var p=k.experiments,t=p.Gb.bind(p);Bwi=t("html5_use_async_stopVideo");zJL=t("html5_pause_for_async_stopVideo");eJe=t("html5_not_reset_media_source");t("html5_listen_for_audio_output_changed")&&(B3q=!0);Bo=t("html5_not_reset_media_source");hJS=t("html5_not_reset_media_source");EI=t("html5_retain_source_buffer_appends_for_debugging");sS0=t("web_watch_pip");t("html5_mediastream_applies_timestamp_offset")&&(NX=!0);var J=g.dU(p,"html5_cobalt_override_quic");J&&D5("QUIC",+(J>0));(J=g.dU(p, "html5_cobalt_audio_write_ahead_ms"))&&D5("Media.AudioWriteDurationLocal",J);(J=t("html5_cobalt_enable_decode_to_texture"))&&D5("Media.PlayerConfiguration.DecodeToTexturePreferred",J?1:0);(k.DB()||t("html5_log_cpu_info"))&&Q10();Error.stackTraceLimit=50;var q=g.dU(p,"html5_idle_rate_limit_ms");q&&Object.defineProperty(window,"requestIdleCallback",{value:function(F){return window.setTimeout(F,q)}}); Bmi(k.X);CN=t("html5_use_ump_request_slicer");cuq=t("html5_record_now");t("html5_disable_streaming_xhr")&&(u_=!1);t("html5_byterate_constraints")&&(HP=!0);t("html5_use_non_active_broadcast_for_post_live")&&(ed=!0);t("html5_sunset_aac_high_codec_family")&&(X5["141"]="a");t("html5_enable_encrypted_av1")&&(em=!0)}; Mzw=function(k){return k.slice(12).replace(/_[a-z]/g,function(p){return p.toUpperCase().replace("_","")}).replace("Dot",".")}; gxS=function(k){var p={},t;for(t in k.experiments.flags)if(t.startsWith("cobalt_h5vcc")){var J=Mzw(t),q=g.dU(k.experiments,t);J&&q&&(p[J]=D5(J,q))}return p}; hL=function(k,p,t,J,q){q=q===void 0?[]:q;g.R.call(this);this.ih=k;this.fE=p;this.C=t;this.segments=q;this.T=void 0;this.Y=new Map;q.length&&(this.T=q[0])}; ubw=function(k){if(!(k.segments.length<2)){var p=k.segments.shift();if(p){var t=p.T,J=[];if(t.size){t=g.Z(t.values());for(var q=t.next();!q.done;q=t.next()){q=g.Z(q.value);for(var F=q.next();!F.done;F=q.next()){F=F.value;for(var d=g.Z(F.segments),S=d.next();!S.done;S=d.next())(S=ao(S.value))&&J.push(S);F.removeAll()}}}(t=ao(p))&&J.push(t);J=g.Z(J);for(t=J.next();!t.done;t=J.next())k.Y.delete(t.value);p.dispose()}}}; Mf=function(k,p,t,J){if(!k.T||p>t)return!1;p=new hL(k.ih,p,t,k.T,J);J=g.Z(J);for(t=J.next();!t.done;t=J.next()){t=t.value;var q=ao(t);q&&q!==ao(k.T)&&k.Y.set(q,[t])}k=k.T;k.T.has(p.qh())?k.T.get(p.qh()).push(p):k.T.set(p.qh(),[p]);return!0}; kA=function(k,p){return k.Y.get(p)}; lcT=function(k,p,t){k.Y.set(p,t)}; gI=function(k,p,t,J,q,F){return new j9i(t,t+(J||0),!J,p,k,q,F)}; j9i=function(k,p,t,J,q,F,d){g.R.call(this);this.fE=k;this.N=p;this.Y=t;this.type=J;this.C=q;this.videoData=F;this.sL=d;this.T=new Map;Cy(F)}; ao=function(k){return k.videoData.clientPlaybackNonce}; O7u=function(k){if(k.T.size)for(var p=g.Z(k.T.values()),t=p.next();!t.done;t=p.next()){t=g.Z(t.value);for(var J=t.next();!J.done;J=t.next())J.value.dispose()}k.T.clear()}; Ktq=function(k){this.end=this.start=k}; g.uW=function(){this.T=new Map;this.N=new Map;this.Y=new Map}; g.lW=function(k,p,t,J){g.R.call(this);var q=this;this.api=k;this.ih=p;this.playback=t;this.app=J;this.Oy=new g.uW;this.Y=new Map;this.S=[];this.X=[];this.N=new Map;this.aO=new Map;this.Z=new Map;this.W0=null;this.nE=NaN;this.qW=this.ez=null;this.Fd=new g.jF(function(){H7i(q,q.nE,q.ez||void 0)}); this.events=new g.nC(this);this.gs=15E3;this.NO=new g.jF(function(){q.j6=!0;q.playback.fn(q.gs);x4i(q);q.kP(!1)},this.gs); this.j6=!1;this.B=new Map;this.pp=[];this.Y8=null;this.UF=new Set;this.qO=[];this.UQ=[];this.nT=[];this.mW=[];this.T=void 0;this.P0=0;this.IY=!0;this.gy=!1;this.RY=[];this.v0=new Set;this.kx=new Set;this.Kb=new Set;this.by=0;this.k8=new Set;this.jW=0;this.bO=this.yn=!1;this.CE=this.C="";this.B0=null;this.logger=new g.xO("dai");this.u3={LL8:function(){return q.Y}, PXy:function(){return q.S}, rNh:function(){return q.N}, hs:function(F){q.onCueRangeEnter(q.Y.get(F))}, zuh:function(F){q.onCueRangeExit(q.Y.get(F))}, NZp:function(F,d){q.Y.set(F,d)}, KDr:function(F){q.CE=F}, KA:function(){return q.KA()}, iF6:function(F){return q.Z.get(F)}}; this.playback.getPlayerType();this.playback.FK(this);this.Jp=this.ih.DB();g.z(this,this.Fd);g.z(this,this.events);g.z(this,this.NO);this.events.V(this.api,g.pT("serverstitchedcuerange"),this.onCueRangeEnter);this.events.V(this.api,g.tA("serverstitchedcuerange"),this.onCueRangeExit)}; J8i=function(k,p,t,J,q,F,d,S){var U=kxe(k,F,F+q);k.j6&&k.TA({adaftto:1});t||k.TA({missadcon:1,enter:F,len:q,aid:S});k.L&&!k.L.VJ&&(k.L.VJ=S);k.bO&&k.TA({adfbk:1,enter:F,len:q,aid:S});var f=k.playback;d=d===void 0?F+q:d;F===d&&!q&&k.ih.D("html5_allow_zero_duration_ads_on_timeline")&&k.TA({attl0d:1});F>d&&jX(k,{reason:"enterTime_greater_than_return",fE:F,LT:d});var b=f.xx()*1E3;F<b&&jX(k,{reason:"enterTime_less_than_minSeekableTime",enterMs:F,minSkMs:b},k.ih.D("html5_report_ssdai_timeline_error_as_fatal")); f=f.getDuration()*1E3;d>f&&jX(k,{reason:"parent_return_greater_than_content_duration",LT:d,B46:f});f=null;b=g.dH(k.X,{LT:F},function(N,y){return N.LT-y.LT}); b>=0&&(f=k.X[b],f.LT>F&&pqS(k,p.video_id||"",F,d,f));if(U&&f)for(b=0;b<k.qO.length;b++){if(k.qO[b].identifier===U.identifier){k.qO.splice(b,1);break}}else if(U)return k.TA({rejectAttl:1}),S&&!cC(k.mW,function(N){return N===S})&&(k.TA({rejectAdBreakAttl:S},!0),k.mW.push(S)),OW(k),""; U="ss_childplayback_"+tyh++;k.ih.D("html5_enable_ssap_entity_id")?(p=new g.Rj(k.ih,p),b=p.clientPlaybackNonce):(p.cpn||(p.cpn=g.Zi(16)),b=p.cpn,p=new g.Rj(k.ih,p));p.GI=U;t={GI:U,playerType:J,durationMs:q,fE:F,LT:d,cpn:b,videoData:p,errorCount:0,ssdaiAdsConfig:t};g.fh(k.X,t,function(N,y){return N.fE===y.fE?N.durationMs-y.durationMs:N.fE-y.fE}); k.N.set(b,t);k.aO.set(U,t);k.TA({attlDone:d-F,acpn:b,et:F,prt:d});S?t.mX=S:f?t.mX=f.mX:t.mX=t.cpn;if(F=t.mX)(J=k.Z.get(F))?(J.push(t),g.SD(J,function(N,y){return N.fE-y.fE})):k.Z.set(F,[t]); k.NO.isActive()&&(k.j6=!1,k.NO.stop(),x4i(k),k.kP(!0));return U}; Km=function(k,p,t){return{ssvc:p,cpn:(t==null?void 0:t.cpn)||"",vid:(t==null?void 0:t.videoData.videoId)||"",ct:(k.playback.getCurrentTime()||0).toFixed(3),cmt:(k.playback.Zw()||0).toFixed(3)}}; H5=function(k,p){var t=k.app;gS(t.hj())&&t.rf.t5(2)&&k.logger.T(360717806,"SSTM lingering playback");k.api.Z$();k.api.publish("serverstitchedvideochange",p.GI,p.lL)}; kC=function(k,p,t){var J=k.gy,q=k.KA(),F=k.C;k.C="";var d=p.ZO-t.ZO;Math.abs(d)>.5&&k.TA({ttdtb:1,delta:d,cpn:q.cpn,enter:p.adCpn,exit:t.adCpn,seek:J,skip:F});k.api.D("html5_ssdai_enable_media_end_cue_range")&&k.api.rZ();if(p.isAd&&t.isAd){q=!!F;if(p.adCpn&&t.adCpn){var S=k.N.get(p.adCpn);var U=k.N.get(t.adCpn)}q?k.TA({igtransskip:1,enter:p.adCpn,exit:t.adCpn,seek:J,skip:F}):x7(k,U,S,t.ZO,p.ZO,J,q)}else if(!p.isAd&&t.isAd){k.CE=q.cpn;k.api.publish("serverstitchedvideochange");S=Km(k,"a2c");k.TA(S); k.by=0;if(S=t.Ai)k.P0=S.end;var f;t.adCpn&&(f=k.N.get(t.adCpn));f&&k.playback.FX(f,q,t.ZO,p.ZO,J,!!F)}else if(p.isAd&&!t.isAd){var b;p.adCpn&&(b=k.N.get(p.adCpn));b&&(k.P0=0,k.CE=b.cpn,H5(k,b),f=Km(k,"c2a",b),k.TA(f),k.by=1,k.playback.FX(q,b,t.ZO,p.ZO,J,!!F))}}; p_=function(k,p,t){t=t===void 0?0:t;var J=g.dH(k.X,{fE:(p+t)*1E3},function(S,U){return S.fE-U.fE}); J=J<0?(J+2)*-1:J;if(J>=0)for(var q=p*1E3,F=J;F<=J+1&&F<k.X.length;F++){var d=k.X[F];if(q>=d.fE-t*1E3&&q<=d.LT+t*1E3)return{xL:d,MD:p}}return{xL:void 0,MD:p}}; qze=function(k,p){var t="";(p=oVh(k,p))&&(t=p.getId());return t?k.N.get(t):void 0}; oVh=function(k,p){if(k.CE){var t=k.Y.get(k.CE);if(t&&t.start-200<=p&&t.end+200>=p)return t}k=g.Z(k.Y.values());for(t=k.next();!t.done;t=k.next())if(t=t.value,t.start<=p&&t.end>=p)return t}; H7i=function(k,p,t){var J=k.qW||k.app.tp().getPlayerState();t3(k,!0);k.playback.seekTo(p,t);k=k.app.tp();p=k.getPlayerState();J.isOrWillBePlaying()&&!p.isOrWillBePlaying()?k.playVideo():J.isPaused()&&!p.isPaused()&&k.pauseVideo()}; t3=function(k,p){k.nE=NaN;k.ez=null;k.Fd.stop();k.W0&&p&&k.W0.ED();k.qW=null;k.W0=null}; FVM=function(k){var p=p===void 0?-1:p;var t=t===void 0?Infinity:t;for(var J=[],q=g.Z(k.X),F=q.next();!F.done;F=q.next())F=F.value,(F.fE<p||F.LT>t)&&J.push(F);k.X=J;J=g.Z(k.Y.values());for(q=J.next();!q.done;q=J.next())q=q.value,q.start>=p&&q.end<=t&&(k.playback.removeCueRange(q),k.Y.delete(q.getId()),k.TA({rmAdCR:1}));J=p_(k,p/1E3);p=J.xL;J=J.MD;if(p&&(J=J*1E3-p.fE,q=p.fE+J,p.durationMs=J,p.LT=q,J=k.Y.get(p.cpn))){q=g.Z(k.S);for(F=q.next();!F.done;F=q.next())F=F.value,F.start===J.end?F.start=p.fE+ p.durationMs:F.end===J.start&&(F.end=p.fE);J.start=p.fE;J.end=p.fE+p.durationMs}if(p=p_(k,t/1E3).xL){var d;J="playback_timelinePlaybackId_"+p.GI+"_video_id_"+((d=p.videoData)==null?void 0:d.videoId)+"_durationMs_"+p.durationMs+"_enterTimeMs_"+p.fE+"_parentReturnTimeMs_"+p.LT;k.Y4("Invalid_clearEndTimeMs_"+t+"_that_falls_during_"+J+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; $yj=function(k){k.Oy.clearAll();k.Y.clear();k.S=[];k.X=[];k.N.clear();k.aO.clear();k.Z.clear();k.B.clear();k.pp=[];k.Y8=null;k.UF.clear();k.qO=[];k.UQ=[];k.nT=[];k.mW=[];k.RY=[];k.v0.clear();k.kx.clear();k.Kb.clear();k.k8.clear();k.j6=!1;k.T=void 0;k.P0=0;k.IY=!0;k.gy=!1;k.by=0;k.jW=0;k.yn=!1;k.bO=!1;k.C="";k.NO.isActive()&&OW(k)}; EVL=function(k,p,t,J,q,F){if(!k.bO)if(g.dy_(k,t))k.TA({gdu:"undec",seg:t,itag:q});else if(p=J3(k,p,t,J,F),!(k.playback.getVideoData().u1()&&(p==null?0:p.U3)))return p}; J3=function(k,p,t,J,q){var F=k.B.get(t);if(!F){if(F=Sz6(k,p))return F;p=k.q3(t-1,J!=null?J:2);if(q)return k.TA({misscue:q,sq:t,type:J,prevsstate:p==null?void 0:p.Ch,prevrecord:k.B.has(t-1)}),k.B.get(t-1);if((p==null?void 0:p.Ch)===2)return k.TA({adnf:1,sq:t,type:J,prevrecord:k.B.has(t-1)}),k.B.get(t-1)}return F}; Sz6=function(k,p){p+=k.h_();if(k.playback.getVideoData().u1())a:{var t=1;t=t===void 0?0:t;var J=p*1E3;k=g.Z(k.X);for(var q=k.next();!q.done;q=k.next()){q=q.value;var F=q.lL?q.lL*1E3:q.fE;if(J>=q.fE-t*1E3&&J<=F+q.durationMs+t*1E3){J={xL:q,MD:p};break a}}J={xL:void 0,MD:p}}else J=p_(k,p),((t=J)==null?0:t.xL)||(J=p_(k,p,1));var d;return(d=J)==null?void 0:d.xL}; UyL=function(k,p){p=p===void 0?"":p;var t=Js(p)||void 0;if(!p||!t){var J;k.TA({adcfg:(J=p)==null?void 0:J.length,dcfg:t==null?void 0:t.length})}return t}; f7q=function(k){if(k.RY.length)for(var p=g.Z(k.RY),t=p.next();!t.done;t=p.next())k.onCueRangeExit(t.value);p=g.Z(k.Y.values());for(t=p.next();!t.done;t=p.next())k.playback.removeCueRange(t.value);p=g.Z(k.S);for(t=p.next();!t.done;t=p.next())k.playback.removeCueRange(t.value);k.Y.clear();k.S=[];k.Oy.clearAll();k.T||(k.IY=!0)}; x7=function(k,p,t,J,q,F,d){if(p&&t){k.CE=t.cpn;H5(k,t);var S=Km(k,"a2a",t);k.TA(S);k.by++;k.playback.FX(p,t,J||0,q||0,!!F,!!d)}else k.TA({misspbkonadtrans:1,enter:(t==null?void 0:t.cpn)||"",exit:(p==null?void 0:p.cpn)||"",seek:F,skip:d})}; Nfw=function(k,p,t,J){if(J)for(J=0;J<k.S.length;){var q=k.S[J];if(q.start<p&&q.end>t){var F=q.end;q.end=p;b36(k,t,F)}else if(q.start>=p&&q.start<t&&q.end>t)q.start=t;else if(q.end>p&&q.end<=t&&q.start<p)q.end=p;else if(q.start>=p&&q.end<=t){k.playback.removeCueRange(q);if(k.RY.includes(q))k.onCueRangeExit(q);k.S.splice(J,1);continue}J++}else b36(k,p,t)}; b36=function(k,p,t){p=k.IA(p,t);t=!0;g.fh(k.S,p,function(d,S){return d.start-S.start}); for(var J=0;J<k.S.length;){if(J>0){var q=k.S[J],F=k.S[J-1];if(Math.round(F.end/1E3)>=Math.round(q.start/1E3)){F.end=q.end;q!==p?k.playback.removeCueRange(q):t=!1;k.S.splice(J,1);continue}}J++}if(t)for(k.playback.addCueRange(p),p=k.playback.I$("serverstitchedcuerange",36E5),p=g.Z(p),t=p.next();!t.done;t=p.next())k.Y.delete(t.value.getId())}; oD=function(k,p,t){if(t===void 0||!t){t=g.Z(k.pp);for(var J=t.next();!J.done;J=t.next()){J=J.value;if(p>=J.start&&p<=J.end)return;if(p===J.end+1){J.end+=1;return}}k.pp.push(new Ktq(p))}}; g.dy_=function(k,p){k=g.Z(k.pp);for(var t=k.next();!t.done;t=k.next())if(t=t.value,p>=t.start&&p<=t.end)return!0;return!1}; y80=function(k,p,t){var J;if(J=k.playback.getVideoData().u1()&&k.ih.D("html5_lifa_extent_last_unfinished_ad_cue_range")||k.ih.D("html5_ssdai_extent_last_unfinished_ad_cue_range"))J=(J=k.N.get(p))&&J.mX?(k=k.Z.get(J==null?void 0:J.mX))&&k.slice(-1)[0].cpn===p:!1;return J&&t===2?1E3:0}; pqS=function(k,p,t,J,q){var F;p={reason:"overlapping_playbacks",kRS:p,fE:t,LT:J,HAp:q.GI,dap:((F=q.videoData)==null?void 0:F.videoId)||"",kLY:q.durationMs,wV0:q.fE,GLp:q.LT};jX(k,p)}; jX=function(k,p,t){k.playback.Da(p,t)}; Yz_=function(k,p){var t=[];k=k.Z.get(p);if(!k)return[];k=g.Z(k);for(p=k.next();!p.done;p=k.next())p=p.value,p.cpn&&t.push(p.cpn);return t}; Tfi=function(k,p,t){var J=0;k=k.Z.get(t);if(!k)return-1;k=g.Z(k);for(t=k.next();!t.done;t=k.next()){if(t.value.cpn===p)return J;J++}return-1}; r8S=function(k,p){var t=0;k=k.Z.get(p);if(!k)return 0;k=g.Z(k);for(p=k.next();!p.done;p=k.next())p=p.value,p.durationMs!==0&&p.LT!==p.fE&&t++;return t}; Z3w=function(k,p,t){var J=!1;if(t&&(t=k.Z.get(t))){t=g.Z(t);for(var q=t.next();!q.done;q=t.next())q=q.value,q.durationMs!==0&&q.LT!==q.fE&&(q=q.cpn,p===q&&(J=!0),J&&!k.kx.has(q)&&(k.TA({decoratedAd:q}),k.kx.add(q)))}}; x4i=function(k){k.Jp&&k.TA({adf:"0_"+((new Date).getTime()/1E3-k.jW)+"_isTimeout_"+k.j6})}; kxe=function(k,p,t){if(k.qO.length)for(var J=g.Z(k.qO),q=J.next(),F={};!q.done;F={zN:void 0},q=J.next()){F.zN=q.value;q=F.zN.startSecs*1E3;var d=F.zN.NR*1E3+q;if(p>q&&p<d||t>q&&t<d)return cC(k.nT,function(S){return function(U){return U.identifier===S.zN.identifier}}(F))||(k.TA({adskip:p}),k.nT.push(F.zN)),F.zN}}; OW=function(k){k.j6=!1;k.NO.isActive()&&x4i(k);k.NO.stop();k.kP(!1)}; CeM=function(){g.lW.apply(this,arguments)}; WVT=function(k,p,t){g.R.call(this);var J=this;this.api=k;this.timeline=p;this.playback=t;this.WS=new Map;this.jm=new Map;this.WG=new Map;this.events=new g.nC(this);this.by=0;this.pD=this.CE="";this.C1=[];this.Wl=new Set;this.fY=new g.jF(function(){J.api.playVideo(1,J.api.D("html5_ssap_keep_media_on_finish_segment"));J.api.yT("ssap",{nve:""+J.CE});A8M(J,4)},3E4); this.tQ="";this.Nt=new Set;this.oF=!0;this.Ig=new Map;this.S8=new Set;this.Ef=this.SK=!1;this.E4="";this.zn=null;this.u3={jcp:function(){return J.jm}, hs:function(q){if(q=J.jm.get(q))J.onCueRangeEnter(q)}, onCueRangeEnter:function(q){J.onCueRangeEnter(q)}, yYr:function(){return J.SK}}; this.playback.getPlayerType();my6(this);p.N=void 0;this.events.V(this.api,g.pT("ssap"),this.onCueRangeEnter);this.events.V(this.api,"internalAbandon",this.aB);this.api.D("html5_ssap_timeline_handle_error_and_abandon")&&this.events.V(this.api,"presentingplayerstatechange",this.o3);g.z(this,this.fY);this.WGp=g.dU(k.G().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.qS=k.D("html5_disable_ssap_append_pause");this.SK=VyM(this)}; Dyw=function(k,p,t,J){for(var q=g.Z(J),F=q.next();!F.done;F=q.next()){var d=F.value;d.Y||((F=ao(d),d=d.getVideoData(),F&&d&&k.playback.Tb.PW().F8(F,d,2),d)?F||(d=void 0,k.api.yT("ssap",{macac:F,maccc:(d=k.timeline.T)==null?void 0:ao(d)})):(d=void 0,k.api.yT("ssap",{mvac:F,mvcc:(d=k.timeline.T)==null?void 0:ao(d)})))}return Mf(k.timeline,p,t,J)}; LVe=function(k,p){if(!k.Wl.has(k.CE)){var t=0,J=0,q=kA(k.timeline,k.CE);if(q==null?0:q.length)for(q=g.Z(q),q=q.next();!q.done;q=q.next()){J=q.value;t=J.qh();J=J.fH();break}if(!(J>0&&J>p*1E3+k.WGp)&&(J=sRM(k,t))){p=!1;t=void 0;J=g.Z(J.segments);for(q=J.next();!q.done;q=J.next()){q=q.value;if(p){t=q;break}ao(q)===k.CE&&(p=!0)}J=void 0;if(t)J=ao(t);else if(p){var F;J=(F=k.timeline.T)==null?void 0:ao(F)}if(J)k.finishSegmentByCpn(k.CE,J,2,void 0);else{var d;k.api.yT("ssap",{mfnc:1,mfncc:(d=k.timeline.T)== null?void 0:ao(d)})}}}}; VyM=function(k){return k.api.D("html5_force_ssap_gapful_switch")||k.api.D("html5_ssap_enable_legacy_browser_logic")&&!UI()}; nVT=function(k,p,t,J){k.WG.set(p,J);vVh(k,p,t);c8j(k,t)}; vI=function(k,p){k=kA(k.timeline,p);return(k==null?0:k.length)?k[0].qh():0}; cI=function(k,p){var t=t===void 0?!1:t;var J=k.timeline.T;if(!J)return{clipId:"",aD:0};var q=wqq(k,p,t);if(q)return{clipId:ao(q)||"",aD:q.qh()};k.api.yT("mci",{cs:ao(J),mt:p,tl:C$(k),invt:!!t});return{clipId:"",aD:0}}; K$=function(k){var p=k.timeline.T;if(!p)return 0;k=0;if(p.T.size===0)return(p.fH()-p.qh())/1E3;p=p.T.values();p=g.Z(p);for(var t=p.next();!t.done;t=p.next()){t=g.Z(t.value);for(var J=t.next();!J.done;J=t.next())J=J.value,k+=(J.fH()-J.qh())/1E3}return k}; QR6=function(k,p){return(k=i39(k,p*1E3))?k.qh():0}; Pe6=function(k,p){var t=kA(k.timeline,p);p=0;if(t==null?0:t.length)for(k=g.Z(t),t=k.next();!t.done;t=k.next())t=t.value,p+=(t.fH()-t.qh())/1E3;else return K$(k);return p}; i39=function(k,p){if(k=kA(k.timeline,k.CE)){k=g.Z(k);for(var t=k.next();!t.done;t=k.next())if(t=t.value,t.qh()<=p&&t.fH()>=p)return t}}; GxS=function(k){var p=k.playback.getVideoData();k.CE&&(k=k.WS.get(k.CE))&&(p=k);return p}; sRM=function(k,p,t){t=t===void 0?!1:t;var J=k.timeline.T;if(J){J=J.T;var q=Array.from(J.keys());g.SD(q);p=g.dH(q,p);p=J.get(q[p<0?(p+2)*-1:p]);if(!t&&p){t=g.Z(p);for(p=t.next();!p.done;p=t.next())if(p=p.value,p.qh()!==p.fH())return p;return k.timeline}return p&&p.length>0?p[p.length-1]:void 0}}; wqq=function(k,p,t){t=t===void 0?!1:t;var J=sRM(k,p,t);if(J){if(k=J.segments,k.length){for(var q=g.Z(k),F=q.next();!F.done;F=q.next())if(F=F.value,F.qh()<=p&&F.fH()>p)return F;if(t&&J.qh()===J.fH())return k[0]}}else k.api.yT("ssap",{ctnf:1})}; A8M=function(k,p){var t;if(k.tQ)for(t=k.C1.shift();t&&t!==k.tQ;)t=k.C1.shift();else t=k.C1.shift();if(t){if(k.Wl.has(t))I7h(k,t);else if(p===3||p===4)k.fY.stop(),k.api.playVideo(1,k.api.D("html5_ssap_keep_media_on_finish_segment"));k.WG.set(k.CE,p);k.api.yT("ssap",{onvftn:1});c8j(k,t);return!1}k.api.yT("ssap",{onvftv:1});k.fY.stop();return!0}; I7h=function(k,p){p=kA(k.timeline,p);if(p==null?0:p.length)k.api.pauseVideo(),k.fY.start(p[0].sL)}; c8j=function(k,p){var t=k.playback.getVideoData(),J=t.clientPlaybackNonce;k.zn&&(k.events.qP(k.zn),k.zn=null,k.playback.Hw());var q=k.CE,F=!1;if(q==="")q=J,F=!0;else if(q===void 0){var d=k.playback.Tb.PW().ax;d&&k.timeline.Y.has(d)&&(q=d);k.api.yT("ssap",{mcc:q+";"+p});k.playback.Vn(new AD("ssap.timelineerror",{e:"missing_current_cpn",pcpn:q,ccpn:p}))}if(q===p)F&&t&&Xqh(k,t,F);else{d=k.WG.get(q);if(!F&&(!d||d!==3&&d!==5&&d!==6&&d!==7)){var S=k.api.rZ(k.CE);k.api.yT("ssap",{nmec:S,cpc:k.CE,ec:p})}d&& d!==2||k.Jb();k.CE=p;k.Jb();p=kA(k.timeline,k.CE);if(p==null?0:p.length){p=p[0];S=p.getType();q!==J&&(k.pD=q,t=k.WS.get(q));d?k.WG.delete(q):d=F?1:2;k.api.D("html5_ssap_pacf_qoe_ctmp")&&S===2&&!p.Y&&(k.zn=k.events.V(k.api,"onVideoProgress",k.j88));k.api.yT("ssapt",{ostro:d,pcpn:q,ccpn:k.CE});a:{var U=k.CE;if(!k.jm.has(U))for(var f=g.Z(k.jm),b=f.next();!b.done;b=f.next()){var N=g.Z(b.value);b=N.next().value;N=N.next().value;if(N.getId().includes(U)){U=b;break a}}}b=U;f=k.api.G().D("html5_ssap_insert_su_before_nonvideo")&& b!==k.CE;N=k.playback.Tb.PW();if(N.ax!==b){var y=N.ZB(N.ax);U=N.ZB(b);N.ax=b;U!==y&&(y.qoe&&(b=y.qoe,b.provider.ih.DB()&&b.yT("ssap",{qoesus:"1",vid:b.provider.videoData.videoId}),f&&(f=g.VT(b.provider),loi(b,f,"SU")),isNaN(b.S)||g.yI(b.S)),U.resume())}f=Math.max(0,qA(k,q));U=k.playback.getCurrentTime();b=Math.max(0,U-vI(k,k.CE)/1E3);U=p.getVideoData();N=d===3||d===5||d===6||d===7;k.api.D("html5_ssap_skip_illegal_seeking")&&(y=k.playback.getPlayerState(),y=!g.u(y,8)&&g.u(y,16),N=N||y,y&&k.api.yT("ssap", {iis:1}));y=k.playback;var Y=q,T=k.CE,A=k.playback.getPlayerState();y.Tb.PW().pY(Y,T,f,b,!1,N,A,!0);k.api.yT("ssapt",{ostri:d,pcpn:q,ccpn:k.CE});var V;f=q;b=k.CE;N=(V=k.Ig.get(q))!=null?V:(0,g.V9)();NIi(f,b,J,U,N,t);k.Ig.delete(q);F?t=void 0:t||k.api.yT("ssap",{pvdm:q+";"+k.CE,pvdmc:k.CE===J?"1":"0"});k.api.yT("ssap",{tpac:q+";"+k.CE,tpcc:J,tpv:(U==null?0:U.IG())?"1":"0"},!1,1);k.api.G().D("html5_ssap_cleanup_player_switch_ad_player")&&k.api.Z$();k.api.publish("videodatachange","newdata",U,S,t,d); p.Y||k.playback.getVideoData().publish("dataupdated");k.Wl.delete(q);k.tQ="";U&&S===1?Xqh(k,U):k.playback.yT("ssap",{nis:k.CE});S===2?k.by++:k.by=0}}}; Xqh=function(k,p,t){t=t===void 0?!1:t;if(p.startSeconds&&k.oF){var J=p.startSeconds;p=kA(k.timeline,p.clientPlaybackNonce);if(p==null?0:p.length)J+=p[0].qh()/1E3,k.api.D("htm5_ssap_ignore_initial_seek_if_too_big")&&J>=k.TE()||(k.playback.seekTo(J,{n9:!0}),k.oF=!1,k.playback.yT("ssap",{is:k.CE,co:t?"1":"0",tse:J.toFixed()}))}}; vVh=function(k,p,t){p=kA(k.timeline,p);if(p!=null&&p.length&&(p=sRM(k,p[0].qh()))){p=g.Z(p.segments);for(var J=p.next();!J.done;J=p.next()){J=J.value;if(ao(J)===t)break;if(J=ao(J)){var q=k.jm.get(J);q&&k.playback.removeCueRange(q);k.jm.delete(J)}}}}; im=function(k){return k.playback.getVideoData().clientPlaybackNonce}; M1L=function(k,p){if(k.SK&&k.CE!==p)return!1;if(k.qS)return!0;if(p=k.jm.get(p))if(p=p.getId().split(","),p.length>1)for(var t=0;t<p.length;t++){var J=t<p.length-1?p[t+1]:"";if(k.Wl.has(p[t]))return p[t]===k.CE&&!k.Wl.has(J)}return!0}; Al9=function(k,p,t){wqq(k,p)||k.playback.yT("ssap",{ilgsk:p.toFixed(),mep:t?"1":"0",tl:C$(k)})}; qA=function(k,p){p=p||k.CE;var t=k.WS.get(p);return t?t.W0:p!==im(k)?0:k.playback.getVideoData().W0}; C$=function(k){var p=k.CE;p||(p=k.playback.getVideoData().clientPlaybackNonce);var t,J,q=Array.from((J=(t=k.timeline.T)==null?void 0:t.T.values())!=null?J:[]);t=[];if(q==null?0:q.length)for(J=g.Z(q),q=J.next();!q.done;q=J.next())if(q=q.value,q.length&&q[0]&&(q=q[0].segments,q.length)){q=g.Z(q);for(var F=q.next();!F.done;F=q.next()){var d=F.value;F="st."+d.qh()+";";F+="et."+d.fH()+";";var S=ao(d);S&&(F+="cpn."+S+";",F+="a."+(p===S?1:0)+";");if(d=d.getVideoData())S=void 0,F+="vid."+((S=d.videoId)!= null?S:"nvd");t.push(F)}}return(t.length?t.join(","):"empty."+p)+";cpcpn."+k.ZC()}; my6=function(k){k.playback.O0(Array.from(k.jm.values()));k.jm.clear()}; Bfh=function(k,p,t,J){g.R.call(this);var q=this;this.api=k;this.ih=p;this.T=t;this.app=J;this.X=new Map;this.Y=[];this.N=this.Z=null;this.gy=NaN;this.S=this.C=this.L=null;this.B=new g.jF(function(){RGM(q,q.gy,q.L||void 0)}); this.Y8=[];this.NO=new g.jF(function(){var F=q.Y8.pop();if(F){var d=F.GI,S=F.playerVars;F=F.playerType;S&&(S.prefer_gapless=!0,q.api.preloadVideoByPlayerVars(S,F,NaN,"",d),q.Y8.length&&g.Oc(q.NO,4500))}}); this.events=new g.nC(this);this.u3={NP8:function(){return q.Y}}; this.T.getPlayerType();g.z(this,this.B);g.z(this,this.NO);g.z(this,this.events);this.events.V(this.api,g.pT("childplayback"),this.onCueRangeEnter);this.events.V(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.V(this.api,"presentingplayerstatechange",this.o3)}; a7S=function(k,p,t,J,q,F){var d=p.cpn,S=p.docid||p.video_id||p.videoId||p.id,U=k.T;F=F===void 0?q+J:F;if(q>F)return Fw(k,"enterAfterReturn enterTimeMs="+q+" is greater than parentReturnTimeMs="+F.toFixed(3),d,S),"";var f=U.xx()*1E3;if(q<f)return Fw(k,"enterBeforeMinSeekable enterTimeMs="+q+" is less than parentMinSeekableTimeMs="+f,d,S),"";f=U.getDuration()*1E3;if(F>f)return U="returnAfterDuration parentReturnTimeMs="+F.toFixed(3)+" is greater than parentDurationMs="+f+". And timestampOffset in seconds is "+ U.Yx(),Fw(k,U,d,S),"";f=null;for(var b=g.Z(k.Y),N=b.next();!N.done;N=b.next()){N=N.value;if(q>=N.fE&&q<N.LT)return Fw(k,"overlappingEnter",d,S),"";if(F<=N.LT&&F>N.fE)return Fw(k,"overlappingReturn",d,S),"";if(F===N.fE)return Fw(k,"outOfOrder",d,S),"";q===N.LT&&(f=N)}d="cs_childplayback_"+zG9++;S={Ai:$C(J,!0),oh:Infinity,target:null};var y={GI:d,playerVars:p,playerType:t,durationMs:J,fE:q,LT:F,nw:S};k.Y=k.Y.concat(y).sort(function(A,V){return A.fE-V.fE}); f?eGq(k,f,{Ai:$C(f.durationMs,!0),oh:f.nw.oh,target:y}):(p={Ai:$C(q,!1),oh:q,target:y},k.X.set(p.Ai,p),U.addCueRange(p.Ai));p=!0;if(k.T===k.app.tp()&&(U=U.getCurrentTime()*1E3,U>=y.fE&&U<y.LT)){var Y=k.app.tp().getPlayerState(),T=U-y.fE;oq(function(){hG0(k,y,T/1E3,{},Y)}); p=!1}p&&(k.Y8.unshift(y),g.Oc(k.NO,0));return d}; $C=function(k,p){return new g.xf(Math.max(0,k-5E3),p?0x8000000000000:k-1,{namespace:"childplayback",priority:9})}; Myq=function(k,p,t,J){k.N=J;k.api.WU(k.T,t,p)}; gVe=function(k,p,t,J){k.N=J;J=p.GI;var q=p.playerVars,F=p.playerType;k.Z=p;q&&(k.ih.D("html5_enable_ssap_entity_id")&&(q.cached_load=!0),k.api.enqueueVideoByPlayerVars(q,F,t,J))}; eGq=function(k,p,t){var J=p.nw;p.nw=t;dG(k,p)&&(t=k.app.tp(),J.Ai===k.N&&EM(k),t.removeCueRange(J.Ai),t.addCueRange(p.nw.Ai))}; EM=function(k){k.Z=null;k.N=null;k.api.yN()||k.api.clearQueue()}; u7S=function(k,p){dG(k,p)||Fw(k,"childPlaybackIsNotPresenting");return p.LT===p.fE+p.durationMs?p.fE+k.app.tp().getCurrentTime()*1E3:p.LT}; l7T=function(k,p){var t=0;k=g.Z(k.Y);for(var J=k.next();!J.done;J=k.next()){J=J.value;var q=J.fE/1E3+t,F=q+J.durationMs/1E3;if(q>p)break;if(F>p)return{xL:J,MD:p-q};t=F-J.LT/1E3}return{xL:null,MD:p-t}}; RGM=function(k,p,t){t=t===void 0?{}:t;var J=k.S||k.app.tp().getPlayerState();SB(k,!0);p=isFinite(p)?p:k.T.nI();var q=l7T(k,p);p=q.MD;var F=(q=q.xL)&&!dG(k,q)||!q&&k.T!==k.app.tp(),d=p*1E3;d=k.N&&k.N.start<=d&&d<=k.N.end;!F&&d||EM(k);q?hG0(k,q,p,t,J):jR9(k,p,t,J)}; jR9=function(k,p,t,J){var q=k.T;q!==k.app.tp()&&k.app.Sa();q.seekTo(p,Object.assign({},{XR:"application_timelinemanager"},t));O36(k,J)}; hG0=function(k,p,t,J,q){var F=dG(k,p);if(!F){p.playerVars.prefer_gapless=!0;k.ih.D("html5_enable_ssap_entity_id")&&(p.playerVars.cached_load=!0);var d=new g.Rj(k.ih,p.playerVars);d.GI=p.GI;k.api.KR(d,p.playerType)}d=k.app.tp();F||d.addCueRange(p.nw.Ai);d.seekTo(t,Object.assign({},{XR:"application_timelinemanager"},J));O36(k,q)}; O36=function(k,p){k=k.app.tp();var t=k.getPlayerState();p.isOrWillBePlaying()&&!t.isOrWillBePlaying()?k.playVideo():p.isPaused()&&!t.isPaused()&&k.pauseVideo()}; SB=function(k,p){k.gy=NaN;k.L=null;k.B.stop();k.C&&p&&k.C.ED();k.S=null;k.C=null}; dG=function(k,p){k=k.app.tp();return!!k&&k.getVideoData().GI===p.GI}; KVi=function(k){var p=k.Y.find(function(q){return dG(k,q)}); if(p){var t=k.app.tp();EM(k);var J=new g.Kr(8);p=u7S(k,p)/1E3;jR9(k,p,{},J);t.yT("forceParentTransition",{childPlayback:1});k.T.yT("forceParentTransition",{parentPlayback:1})}}; xyi=function(k,p,t){p=p===void 0?-1:p;t=t===void 0?Infinity:t;for(var J=p,q=t,F=g.Z(k.X),d=F.next();!d.done;d=F.next()){var S=g.Z(d.value);d=S.next().value;S=S.next().value;S.oh>=J&&S.target&&S.target.LT<=q&&(k.T.removeCueRange(d),k.X.delete(d))}J=p;q=t;F=[];d=g.Z(k.Y);for(S=d.next();!S.done;S=d.next())if(S=S.value,S.fE>=J&&S.LT<=q){var U=k;U.Z===S&&EM(U);dG(U,S)&&U.app.Sa()}else F.push(S);k.Y=F;J=l7T(k,p/1E3);p=J.xL;J=J.MD;p&&(J*=1E3,H3i(k,p,J,p.LT===p.fE+p.durationMs?p.fE+J:p.LT));(p=l7T(k,t/1E3).xL)&& Fw(k,"Invalid clearEndTimeMs="+t+" that falls during playback={timelinePlaybackId="+(p.GI+" video_id="+p.playerVars.video_id+" durationMs="+p.durationMs+" enterTimeMs="+p.fE+" parentReturnTimeMs="+p.LT+"}.Child playbacks can only have duration updated not their start."))}; H3i=function(k,p,t,J){p.durationMs=t;p.LT=J;J={Ai:$C(t,!0),oh:t,target:null};eGq(k,p,J);dG(k,p)&&k.app.tp().getCurrentTime()*1E3>t&&(p=u7S(k,p)/1E3,t=k.app.tp().getPlayerState(),jR9(k,p,{},t))}; Fw=function(k,p,t,J){k.T.yT("timelineerror",{e:p,cpn:t?t:void 0,videoId:J?J:void 0})}; pNS=function(k){k&&k!=="web"&&kVe.includes(k)}; bH=function(k,p){g.R.call(this);var t=this;this.data=[];this.N=k||NaN;this.Y=p||null;this.T=new g.jF(function(){UM(t);f_(t)}); g.z(this,this.T)}; tZ6=function(k){UM(k);return k.data.map(function(p){return p.value})}; UM=function(k){var p=(0,g.V9)();k.data.forEach(function(t){t.expire<p&&NA(k,t,!0)}); k.data=g.dZ(k.data,function(t){return!(t.expire<p)})}; NA=function(k,p,t){t&&k.Y&&k.Y(p.value)}; f_=function(k){k.T.stop();var p=Infinity;for(var t=g.Z(k.data),J=t.next();!J.done;J=t.next())J=J.value,J.expire<p&&(p=J.expire);p&&isFinite(p)&&(p=Math.max(p-Date.now(),100),k.T.start(p))}; yZ=function(){g.R.call(this);this.T=new bH(5,null);g.z(this,this.T);this.Y=new bH(15,null);g.z(this,this.Y)}; KWM=function(k,p){return p?!!k.T.get(p):!1}; JU6=function(k,p){k.dataset.version=p}; Fd9=function(k){g.M.call(this,{K:"div",S6:["html5-video-player"],J:{tabindex:k.G().disableOrganicUi?"":"-1",id:k.webPlayerContextConfig?k.webPlayerContextConfig.rootElementId:k.config.attrs.id},U:[{K:"div",W:g.Xf.VIDEO_CONTAINER,J:{"data-layer":"0"}}]});var p=this;this.app=k;this.GN=this.Kp(g.Xf.VIDEO_CONTAINER);this.B4=new g.qJ(0,0,0,0);this.TI=null;this.le=new g.qJ(0,0,0,0);this.Ow=this.VU=this.hL=NaN;this.fD=this.xV=this.x9=this.FM=!1;this.d$=NaN;this.oE=!1;this.X_=null;this.RM=function(){p.element.focus({preventScroll:!0})}; this.yP=function(){p.app.fp.publish("playerUnderlayVisibilityChange","visible");p.TI.classList.remove(g.Xf.VIDEO_CONTAINER_TRANSITIONING);p.TI.removeEventListener(ql,p.yP);p.TI.removeEventListener("transitioncancel",p.yP)}; var t=this.element.addEventListener,J=this.element.removeEventListener;this.addEventListener=function(F,d,S){t.apply(p.element,[F,d,S])}; this.removeEventListener=function(F,d,S){J.apply(p.element,[F,d,S])}; var q=k.G();q.transparentBackground&&this.QZ("ytp-transparent");q.controlsType==="0"&&this.QZ("ytp-hide-controls");g.JB(this.element,"ytp-exp-bottom-control-flexbox");g.JB(this.element,"ytp-modern-caption");q.D("enable_new_paid_product_placement")&&!g.u$(q)&&g.JB(this.element,"ytp-exp-ppp-update");q.D("html5_enable_ssap")&&g.JB(this.element,"ytp-ssap");g.JB(this.element,"ytp-livebadge-color");q.D("delhi_modern_web_player")&&g.JB(this.element,"ytp-delhi-modern");JU6(this.element,ovS(k));this.Px=!1; this.sD=new g.YY(NaN,NaN);q7L(this);this.V(k.fp,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; q7L=function(k){function p(){k.TI&&YC(k);Ti(k)!==k.oE&&k.resize()} function t(d,S){k.hP(d,S)} function J(d){d.getVideoData()&&k.updateVideoData(d.getVideoData())} function q(){k.le=new g.qJ(0,0,0,0);k.B4=new g.qJ(0,0,0,0)} var F=k.app.fp;F.addEventListener("initializingmode",q);F.addEventListener("videoplayerreset",J);F.addEventListener("videodatachange",t);F.addEventListener("presentingplayerstatechange",p);k.addOnDisposeCallback(function(){F.removeEventListener("initializingmode",q);F.removeEventListener("videoplayerreset",J);F.removeEventListener("videodatachange",t);F.removeEventListener("presentingplayerstatechange",p)})}; dtu=function(k){var p=k.app.tp(),t=p=p?p.getVideoData():null;if(p==null?0:g.hF(p))t=k.app.fp.getVideoData();if(t){if(g.Da(t)||g.s5(t)||g.Ly(t))return 16/9;if(Hx(t)&&t.N.T)return k=t.N.videoInfos[0].video,$t6(k.width,k.height)}return(k=k.TI)?$t6(k.videoWidth,k.videoHeight):16/9}; Evi=function(k,p,t,J){var q=t,F=$t6(p.width,p.height);k.FM?q=t<F?Infinity:0:isNaN(k.Ow)?isNaN(k.VU)||(q=k.VU):q=k.Ow;isFinite(q)||(q=Math.max(t,F));k=q>F?{width:p.width,height:p.width/q,aspectRatio:q}:q<F?{width:p.height*q,height:p.height,aspectRatio:q}:{width:p.width,height:p.height,aspectRatio:F};J||isNaN(t)||(t>q?k.width=k.height*t:t<q&&(k.height=k.width/t),k.aspectRatio=t);return k}; $t6=function(k,p){return Math.abs(S7i*p-k)<1||Math.abs(S7i/k-p)<1?S7i:k/p}; Ti=function(k){if(k.app.getAppState()===1)return!1;if(k.app.getAppState()===6)return!0;var p=k.app.tp();if(!p||p.cn())return!1;k=k.app.fp.getPlayerStateObject();p=!g.u(k,2)||p&&p.getVideoData().B;var t=g.u(k,1024);return k&&p&&!t&&!k.isCued()}; YC=function(k){var p=k.app.G().controlsType==="3"&&!k.fD&&Ti(k)&&!k.app.Ot||!1;k.TI.controls=p;k.TI.tabIndex=p?0:-1;k.app.G().C&&(k.TI.ariaHidden=p||k.app.G().D("video_element_aria_hidden_ks")?"false":"true");p?k.TI.removeEventListener("focus",k.RM):k.TI.addEventListener("focus",k.RM)}; Ut6=function(k){var p=k.At(),t=1,J=!1,q=Evi(k,p,k.getVideoAspectRatio()),F=k.app.G(),d=F.D("enable_desktop_player_underlay"),S=i2e(),U=g.dU(F.experiments,"player_underlay_min_player_width");U=d&&k.x9&&k.getPlayerSize().width>U;if(Ti(k)){var f=dtu(k);var b=isNaN(f)||g.ag||jQ&&g.y9||U;hO&&!g.rH(601)?f=q.aspectRatio:b=b||F.controlsType==="3";b?U?(b=F.D("place_shrunken_video_on_left_of_player")?16:k.getPlayerSize().width-p.width-16,f=Math.max((k.getPlayerSize().height-p.height)/2,0),b=new g.qJ(b,f,p.width, p.height),k.TI.style.setProperty("border-radius","12px")):b=new g.qJ(0,0,p.width,p.height):(t=q.aspectRatio/f,b=new g.qJ((p.width-q.width/t)/2,(p.height-q.height)/2,q.width/t,q.height),t===1&&g.y9&&(f=b.width-p.height*f,f>0&&(b.width+=f,b.height+=f)));g.$E(k.element,"ytp-fit-cover-video",Math.max(b.width-q.width,b.height-q.height)<1);if(S||k.Px)k.TI.style.display="";k.oE=!0}else{b=-p.height;hO?b*=window.devicePixelRatio:g.l$&&(b-=window.screen.height);b=new g.qJ(0,b,p.width,p.height);if(S||k.Px)k.TI.style.display= "none";k.oE=!1}$c(k.le,b)||(k.le=b,g.nl(F)?(k.TI.style.setProperty("width",b.width+"px","important"),k.TI.style.setProperty("height",b.height+"px","important")):g.CZ(k.TI,b.getSize()),J=new g.NL(b.left,b.top),g.Yc(k.TI,Math.round(J.x),Math.round(J.y)),J=!0);p=new g.qJ((p.width-q.width)/2,(p.height-q.height)/2,q.width,q.height);$c(k.B4,p)||(k.B4=p,J=!0);g.S4(k.TI,"transform",t===1?"":"scaleX("+t+")");d&&U!==k.xV&&(U&&(k.TI.addEventListener(ql,k.yP),k.TI.addEventListener("transitioncancel",k.yP),k.TI.classList.add(g.Xf.VIDEO_CONTAINER_TRANSITIONING)), k.xV=U,k.app.fp.publish("playerUnderlayVisibilityChange",k.xV?"transitioning":"hidden"));return J}; fg9=function(){this.csn=g.mP();this.clientPlaybackNonce=null;this.elements=new Set;this.N=new Set;this.T=new Set;this.Y=new Set}; biM=function(k){if(k.csn!==g.mP())if(k.csn==="UNDEFINED_CSN")k.csn=g.mP();else{var p=g.mP(),t=g.Az();if(p&&t){k.csn=p;for(var J=g.Z(k.elements),q=J.next();!q.done;q=J.next())(q=q.value.visualElement)&&q.isClientVe()&&p&&t&&(g.TQ("combine_ve_grafts")?Au(Zs(),q,t):g.j5(g.al)(void 0,p,t,q))}if(p)for(k=g.Z(k.T),t=k.next();!t.done;t=k.next())(t=t.value.visualElement)&&t.isClientVe()&&g.HB(p,t)}}; g.rG=function(k,p,t,J){g.R.call(this);var q=this;this.logger=new g.xO("App");this.Ot=this.ly=!1;this.f4={};this.EO=[];this.w8=!1;this.JC=null;this.intentionalPlayback=!1;this.CX=!0;this.bH=!1;this.Cv=this.My=null;this.mw=!0;this.mediaElement=this.QF=null;this.aE=NaN;this.sY=!1;this.Gq=this.HG=this.yF=this.v1=this.screenLayer=this.playlist=null;this.E1=[];this.fd=0;this.u3={HF0:function(){return q.rf}, dI:function(){return q.yF}, nP:function(d){q.yF=d}, g$:function(d,S){q.yF&&q.yF.g$(d,S)}}; this.logger.debug("constructor begin");this.config=qiq(p||{});this.webPlayerContextConfig=t;rBT();p=this.config.args||{};this.ih=new Xo(p,t,t?t.canaryState:this.config.assets.player_canary_state,J,this);g.z(this,this.ih);aci(this.ih);J=gxS(this.ih);this.ih.DB()&&this.E1.push({key:"h5vcc",value:J});this.ih.experiments.Gb("jspb_serialize_with_worker")&&k20();this.ih.experiments.Gb("gzip_gel_with_worker")&&M5_();this.ih.Y&&!NWe&&(window.addEventListener(Cl?"touchstart":"click",Z7M,{capture:!0,passive:!0}), NWe=!0);this.D("html5_onesie")&&(this.T7=new cD(this.ih),g.z(this,this.T7));this.QL=xX(DZ(this.ih)&&!0,p.enablesizebutton);this.PC=xX(!1,p.player_wide);this.visibility=new Icw;g.z(this,this.visibility);this.D("web_log_theater_mode_visibility")&&this.Q6(xX(!1,p.player_wide));this.ly=xX(!1,p.external_list);this.events=new g.nC(this);g.z(this,this.events);this.D("start_client_gcf")&&(s3(n0(),{ML:ow,Sg:NDj()}),this.dG=n0().resolve(ow),TDu(this.dG));this.awS=new $R;g.z(this,this.awS);this.yj=new fg9;J= new d4;this.fp=new g.AG(this,J);g.z(this,this.fp);this.template=new Fd9(this);g.z(this,this.template);this.appState=1;this.wp=yUL(this);g.z(this,J);J={};this.N7=(J.internalvideodatachange=this.Ev,J.playbackready=this.zA8,J.playbackstarted=this.Bsp,J.statechange=this.aBS,J);this.TF=new r_(this.fp);this.q2=Y7_(this);J=this.D("html5_load_wasm");p=this.D("html5_allow_asmjs");if(J&&TWh||p)this.ih.nL=qM6(this.q2,p),EJ(dY(this.ih.nL,function(d){q.ih.gf=d;var S;(S=q.tp())==null||S.yT("wasm",{a:d.DP})}),function(d){g.wt(d); d="message"in d&&d.message||d.toString()||"";var S;(S=q.tp())==null||S.yT("wasm",{e:d})}); else if(J&&!TWh){var F;(F=this.tp())==null||F.yT("wasm",{e:"wasm unavailable"})}this.Sz=new fwi(this.ih,this.q2);this.fp.publish("csiinitialized");F=10;g.mq(this.ih)&&(F=3);g7(this.ih)&&(F=g.dU(this.ih.experiments,"tvhtml5_unplugged_preload_cache_size"));F=new bH(F,function(d){d!==q.t5(d.getPlayerType())&&EO(d)}); g.z(this,F);this.rf=new RJi(F,{});F=rUq(this);this.rf.rV(F.Ei);Ziq(this);F={};this.PK=(F.airplayactivechange=this.onAirPlayActiveChange,F.airplayavailabilitychange=this.onAirPlayAvailabilityChange,F.beginseeking=this.N9,F.sabrCaptionsDataLoaded=this.lV,F.endseeking=this.F2,F.internalAbandon=this.aB,F.internalaudioformatchange=this.bv,F.internalvideodatachange=this.onVideoDataChange,F.internalvideoformatchange=this.e$,F.liveviewshift=this.nxO,F.playbackstalledatstart=this.iZh,F.progresssync=this.C10, F.onAbnormalityDetected=this.yw,F.onSnackbarMessage=this.onSnackbarMessage,F.onLoadProgress=this.onLoadProgress,F.SEEK_COMPLETE=this.Ip,F.SEEK_TO=this.kqh,F.onVideoProgress=this.onVideoProgress,F.onLoadedMetadata=this.onLoadedMetadata,F.onAutoplayBlocked=this.onAutoplayBlocked,F.onPlaybackPauseAtStart=this.ib6,F.playbackready=this.rib,F.statechange=this.H6,F.newelementrequired=this.Sq,F.heartbeatparams=this.Bm,F.videoelementevent=this.g_,F.drmoutputrestricted=this.onDrmOutputRestricted,F.signatureexpired= this.alh,F.nonfatalerror=this.zch,F.reloadplayer=this.MVG,F);this.jS=new g.nC(this);g.z(this,this.jS);this.Qk=new yZ;g.z(this,this.Qk);this.xU=this.vU=-1;this.d_=new g.jF(this.template.resize,16,this.template);g.z(this,this.d_);this.Dx=new Bfh(this.fp,this.ih,this.iG(),this);this.Ui=new hL(this.ih);this.T6=new z4(this);g.z(this,this.T6);this.BA=new Io(this);g.z(this,this.BA);pNS(this.ih.T.c);this.events.V(this.fp,g.pT("appapi"),this.GAS);this.events.V(this.fp,g.tA("appapi"),this.HET);this.events.V(this.fp, g.pT("appprogressboundary"),this.Nfp);this.events.V(this.fp,g.tA("applooprange"),this.Uj);this.events.V(this.fp,"presentingplayerstatechange",this.o3);this.events.V(this.fp,"resize",this.RKy);this.template.QT(eO(document,k));this.events.V(this.fp,"offlineslatestatechange",this.axT);this.events.V(this.fp,"sabrCaptionsTrackChanged",this.tVh);this.events.V(this.fp,"sabrCaptionsBufferedRangesUpdated",this.eKh);this.q2.j.G().Xo&&Qc(this.q2,"offline");this.ih.pp&&g.Vc("ux",g.P5);k=g.dU(this.ih.experiments, "html5_defer_fetch_att_ms");this.pz=new g.jF(this.rD0,k,this);g.z(this,this.pz);this.hj().IG()&&(g.ik()&&this.hj().P0.push("remote"),C8L(this));this.Sz.tick("fs");AUh(this);this.ih.pp&&Qc(this.q2,"ux",!0);g.V0(this.q2.j.G())&&Qc(this.q2,"embed");this.D("web_player_sentinel_is_uniplayer")||g.wt(new g.hm("Player experiment flags missing","web_player_sentinel_is_uniplayer"));k=this.D("web_player_sentinel_yt_experiments_sync");F=g.TQ("web_player_sentinel_yt_experiments_sync");k!==F&&g.wt(new g.hm("b/195699950", {yt:k,player:F}));t||g.wt(new g.hm("b/179532961"));this.EV=mtq(this);if(t=g.dU(this.ih.experiments,"html5_block_pip_safari_delay"))this.nj=new g.jF(this.PB,t,this),g.z(this,this.nj);nY=this.ih.jW;t=g.dU(this.ih.experiments,"html5_performance_impact_profiling_timer_ms");t>0&&(this.pQ=new g.m5(t),g.z(this,this.pQ),this.events.V(this.pQ,"tick",function(){q.LQ&&VZw.g5("apit",q.LQ);q.LQ=VZw.R5()})); this.fp.publish("applicationInitialized");this.logger.debug("constructor end")}; mtq=function(k){function p(t){t.stack&&t.stack.indexOf("player")!==-1&&(k.tp()||k.iG()).SD(t)} iR.subscribe("handleError",p);uw.push(p);return function(){iR.unsubscribe("handleError",p);var t=uw.indexOf(p);t!==-1&&uw.splice(t,1)}}; rUq=function(k){var p=new g.Rj(k.ih,k.config.args);k.fp.publish("initialvideodatacreated",p);return g.Zm(k,1,p)}; Ziq=function(k){var p=k.iG();p.setPlaybackRate(k.ih.C?1:Wdw(k,Number(g.nG("yt-player-playback-rate"))||1));p.bY(k.N7,k);p.gm()}; Y7_=function(k){var p="",t=ovS(k);t.indexOf("//")===0&&(t=k.ih.protocol+":"+t);var J=t.lastIndexOf("/base.js");J!==-1&&(p=t.substring(0,J+1));if(t=Error().stack)if(t=t.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))t=t[1],t.includes(p)||g.wt(Error("Player module URL mismatch: "+(t+" vs "+p+".")));p=new eTe(k.fp,p);Dti(k,p);return p}; Dti=function(k,p){var t={};t=(t.destroyed=function(){k.onApiChange()},t); p.N=t}; yUL=function(k){if(k.ih.storeUserVolume){k=g.nG("yt-player-volume")||{};var p=k.volume;k={volume:isNaN(p)?100:g.Ek(Math.floor(p),0,100),muted:!!k.muted}}else k={volume:100,muted:k.ih.mute};return k}; C_=function(k){k.mediaElement=k.ih.deviceIsAudioOnly?new g.qc(g.kW("AUDIO")):G4.pop()||new g.qc(g.kW("VIDEO"));g.z(k,k.mediaElement);var p=k.tp();p&&p.setMediaElement(k.mediaElement);try{k.ih.mW?(k.HG&&k.events.qP(k.HG),k.HG=k.events.V(k.mediaElement,"volumechange",k.vxh)):(k.mediaElement.Ca(k.wp.muted),k.mediaElement.setVolume(k.wp.volume/100))}catch(q){k.Yi("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g, "_")));return}g.Df(k.jS);sdw(k);p=k.template;var t=k.mediaElement.KE();p.TI=t;p.fD=!1;p.TI.parentNode||on(p.GN,p.TI,0);p.le=new g.qJ(0,0,0,0);Ut6(p);YC(p);t=p.TI;g.JB(t,"video-stream");g.JB(t,g.Xf.MAIN_VIDEO);var J=p.app.G();J.BR&&t.setAttribute("data-no-fullscreen","true");J.D("html5_local_playsinline")?"playsInline"in W$()&&(t.playsInline=!0):J.Oo&&(t.setAttribute("webkit-playsinline",""),t.setAttribute("playsinline",""));J.Rc&&p.TI&&p.V(t,"click",t.play,t);try{k.mediaElement.activate()}catch(q){k.Yi("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g,"_")))}}; vvw=function(k){if(!Ldq(k)){var p=k.iG().QM();p&&(p=p.Tf(),p instanceof Promise&&p.catch(function(){})); A3(k,qw(k.getPlayerStateObject()))}}; sdw=function(k){var p=k.mediaElement;v$()?k.jS.V(p,"webkitpresentationmodechanged",k.VVG):window.document.pictureInPictureEnabled&&(k.jS.V(p,"enterpictureinpicture",function(){k.ke(!0)}),k.jS.V(p,"leavepictureinpicture",function(){k.ke(!1)})); gh&&(k.jS.V(p,"webkitbeginfullscreen",function(){k.ye(3)}),k.jS.V(p,"webkitendfullscreen",function(){k.ye(0)}))}; cUL=function(k,p){var t=p.getPlayerType(),J=k.rf.t5(t);p!==k.iG()&&p!==J&&(J==null||EO(J),k.rf.N[t]=p)}; nvh=function(k,p){p=p===void 0?!0:p;k.logger.debug("start clear presenting player");var t;if(t=k.Gq){t=k.Gq;var J=k.mediaElement;t=!!J&&J===t.mediaElement}t&&(k.vj(),C_(k));if(t=k.tp())t.vj(!p),t.aX(k.PK,k),t.getPlayerType()!==1&&EO(t);k.rf.C=null;k.logger.debug("finish clear presenting player")}; g.Zm=function(k,p,t,J){var q=k.Sz;p===2&&(q=new fwi(k.ih));return new g.Yd(k.ih,p,q,k.template,function(F,d,S){k.fp.publish(F,d,S)},function(){return k.fp.getVisibilityState()},k.visibility,k,t,J)}; wNh=function(k,p,t,J){k=g.Zm(k,p,t,J);k.gm();return k}; mn=function(k,p){return k.Ur(p)?k.iG():p}; VZ=function(k,p){var t=k.tp(),J=k.iG();return t&&p===J&&k.Ur(p)&&k.Ur(t)?t:p}; P80=function(k){k.logger.debug("start application playback");if(k.iG().getPlayerState().isError())k.logger.debug("start application playback done, player in error state");else{var p=WG(k);k.hj().isLoaded();p&&k.yK(6);iiq(k);Hmj(k.q2)||Qdj(k)}}; Qdj=function(k){if(!WG(k)){var p=GH(k.q2);p&&!p.created&&hTj(k.q2)&&(k.logger.debug("reload ad module"),p.create())}}; iiq=function(k){k.logger.debug("start presenter playback");var p=k.getVideoData(),t=k.q2;Hmj(t)||t.Uu();!TWh&&t.j.D("html5_allow_asmjs")&&oCh(t);Qc(t,"embed");Qc(t,"kids");Qc(t,"remote");Qc(t,"miniplayer");Qc(t,"offline");Qc(t,"unplugged");Qc(t,"ypc",!1,!0);Qc(t,"ypc_clickwrap",!1,!0);Qc(t,"yto",!1,!0);Qc(t,"webgl",!1,!0);xfj(t)||(Qc(t,"captions",!0),Qc(t,"endscreen"),t.RI()||t.Qg(),Qc(t,"creatorendscreen",!0));t.eZ();k.fp.publish("videoready",p)}; Dm=function(k){k=k.hj();k.IG();return Be(k)}; AUh=function(k){k.logger.debug("start prepare initial playback");k.A4();var p=k.config.args;C_(k);var t=k.hj();k.fp.xW("onVolumeChange",k.wp);if(p&&TIe(p)){var J=ei(k.ih);J&&!k.ly&&(p.fetch=0);var q=g.V0(k.ih);q&&!k.ly&&(p.fetch=0);sM(k,p);g.V0(k.ih)&&k.Sz.tick("ep_pr_s");if(!J||k.ly)if(q&&!k.ly)GV_(k);else if(!t.IG())k.playlist.onReady(function(){L_(k)})}k.zR(k.iG()); g.u(k.iG().getPlayerState(),128)||(p=ZaT(!k.ih.deviceIsAudioOnly),p==="fmt.noneavailable"?k.Yi("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):p==="html5.missingapi"?k.Yi(p,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):t&&t.IG()&&Dm(k)&&(k.ih.vQ||k.ih.kC)?vG(k):t.kE?k.fp.mutedAutoplay({durationMode:t.mutedAutoplayDurationMode}):g.nG("yt-player-playback-on-reload")?(g.qv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!k.ih.NO}),g.cz("yt-player-playback-on-reload",!1), vG(k)):Op(k.ih)||Igu(k),g.Mu(k.ih)||gi(k.ih)==="MWEB"?(g.lk(g.OA(),function(){cG(k)}),g.lk(g.OA(),function(){LYh()})):(cG(k),LYh()),k.logger.debug("finish prepare initial playback"))}; cG=function(k){if(!k.D("use_rta_for_player"))if(k.D("fetch_att_independently"))g.Oc(k.pz);else{var p=k.getVideoData().botguardData;p&&g.nj(p,k.ih,k.getVideoData().nF||"")}}; Igu=function(k){k.logger.debug("start initialize to CUED mode");k.fp.publish("initializingmode");k.yK(2);k.D("embeds_web_enable_defer_loading_remote_js")&&g.u$(k.ih)?g.lk(g.OA(),function(){Qc(k.q2,"remote")}):Qc(k.q2,"remote"); Qc(k.q2,"miniplayer");k.logger.debug("initialized to CUED mode")}; vG=function(k){k.logger.debug("start initialize application playback");var p=k.iG();if(g.u(p.getPlayerState(),128))return!1;var t=p.getVideoData();Dm(k)&&k.ih.kC&&(G4.length&&k.Ot?(n_(k,{muted:!1,volume:k.wp.volume},!1),wG(k,!1)):G4.length||k.wp.muted||(n_(k,{muted:!0,volume:k.wp.volume},!1),wG(k,!0)));Dm(k)&&g.V0(k.ih)&&t.mutedAutoplay&&(n_(k,{muted:!0,volume:k.wp.volume},!1),wG(k,!0));t.iQ&&n_(k,{muted:!0,volume:k.wp.volume},!1);XNw(k,1,t,!1);k.fp.publish("initializingmode");k.zR(k.iG());k.yK(3); var J;if(!(J=!k.ih.OS)){if(J=k.Gq){J=k.Gq;var q=k.mediaElement;J=!!q&&q===J.mediaElement}J=J&&k.w8}J&&(k.vj(),C_(k),p.setMediaElement(k.mediaElement));p.jM();if(g.u(p.getPlayerState(),128))return!1;t.AP||A3(k,3);return k.w8=!0}; WG=function(k){k=WO(k.q2);return!!k&&k.loaded}; RF6=function(k,p){if(!k.QF)return!1;var t=k.QF.startTimeMs*.001-1,J=k.QF.endTimeMs*.001;k.QF.type==="repeatChapter"&&J--;return Math.abs(p-t)<=1E-6||Math.abs(p-J)<=1E-6||p>=t&&p<=J}; eFM=function(k){var p=k.tp();p&&xL(p.getVideoData())&&!p.vW()&&(p=BWi(k)*1E3-k.getVideoData().Te,k.D("html5_gapless_new_slr")?(k=k.BA,zFw(k.app,"gaplessshortslooprange"),p=new g.xf(0,p,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(k=k.app.tp())&&k.addCueRange(p)):k.setLoopRange({startTimeMs:0,endTimeMs:p,type:"shortsLoop"}))}; hFi=function(k){var p=k.iG();if(!(g.u(p.getPlayerState(),64)&&k.hj().isLivePlayback&&k.QF.startTimeMs<5E3)){if(k.QF.type==="repeatChapter"){var t,J=(t=zD9(k.EQ()))==null?void 0:t.l6(),q;t=(q=k.getVideoData())==null?void 0:q.rK;J instanceof g.Kg&&t&&(q=t[Y1(t,k.QF.startTimeMs)],J.renderChapterSeekingAnimation(0,q.title));isNaN(Number(k.QF.loopCount))?k.QF.loopCount=0:k.QF.loopCount++;k.QF.loopCount===1&&k.fp.zb("innertubeCommand",k.getVideoData().Qi)}J={XR:"application_loopRangeStart"};if(k.QF.type=== "clips"||k.QF.type==="shortsLoop")J.seekSource=58;p.seekTo(k.QF.startTimeMs*.001,J)}}; Wdw=function(k,p){var t=k.fp.getAvailablePlaybackRates();p=Number(p.toFixed(2));k=t[0];t=t[t.length-1];p<=k?p=k:p>=t?p=t:(k=Math.floor(p*100+.001)%5,p=k===0?p:Math.floor((p-k*.01)*100+.001)/100);return p}; BWi=function(k,p){p=k.t5(p);if(!p)return k.rf.T.FO();p=mn(k,p);return iH(k,p.FO(),p)}; iH=function(k,p,t){if(k.Ur(t)){t=t.getVideoData();if(QZ(k))t=p;else{k=k.Dx;for(var J=g.Z(k.Y),q=J.next();!q.done;q=J.next())if(q=q.value,t.GI===q.GI){p+=q.fE/1E3;break}J=p;k=g.Z(k.Y);for(q=k.next();!q.done;q=k.next()){q=q.value;if(t.GI===q.GI)break;var F=q.fE/1E3;if(F<p)J+=q.durationMs/1E3+F-q.LT/1E3;else break}t=J}return t}return p}; agh=function(k,p){if(k.getPresentingPlayerType()===3)return qw(WO(k.q2).B1);if((k.getVideoData().enableServerStitchedDai||g.hF(k.getVideoData()))&&p===2){var t,J;return((t=k.v1)==null?0:t.b0(k.getCurrentTime()))||((J=k.yF)==null?0:J.b0())?k.vU:-1}return p!==2||k.Ur()?k.vU:k.xU}; C8L=function(k){k.logger.debug("reset for new application playback");PG(k);k.setLoopVideo(!1);k.setLoopRange(null);k.fp.publish("legacyadtrackingpingreset");k.f4={};k.EO=[];yLu(k.Sz);if(k.v1){var p=k.v1,t=k.iG();t.getPlayerType();t3(p,!1);FVM(p);$yj(p);p.playback=t}p=k.Dx;k=k.iG();k.getPlayerType()!==1&&Fw(p,"invalidParentVideoPlayerType");SB(p,!1);xyi(p);p.T=k}; GV_=function(k,p){var t=(p?p:k.hj()).ag;k.Sz.tick("ep_pr_r");if(t!=null&&(ALi(k.playlist,t),k.bH))k.playlist.onReady(function(){L_(k,p)})}; sM=function(k,p){k.playlist&&(g.ER(k.playlist),k.playlist=null);p&&(k.ly&&(p.fetch=0),k.playlist=new YWi(k.ih,p))}; MZu=function(k){var p,t=Number((p=k.getVideoData().progressBarEndPosition)==null?void 0:p.utcTimeMillis)/1E3;!isNaN(t)&&(p=k.Zl())&&(p-=k.getCurrentTime(),t=(t-p)*1E3,p=k.f4.progressEndBoundary,(p==null?void 0:p.start)!==t&&(p&&k.O0([p]),t=new g.xf(t,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),k.iG().addCueRange(t),k.f4.progressEndBoundary=t))}; A3=function(k,p){k.logger.debug(function(){return"set external state "+p}); var t=k.tp();if(t){var J=t.getPlayerType();if(J===2&&!k.Ur()){k.xU!==p&&(k.xU=p,k.fp.xW("onAdStateChange",p));return}if(J===2&&k.Ur()||J===5||J===6||J===7)if(p===-1||p===0||p===5)return}if(p===0){if(k.QF)return;if((t==null?0:t.QV())&&g.mq(k.ih)){k.playVideo();return}}k.vU!==p&&(k.vU=p,k.fp.xW("onStateChange",p))}; gv0=function(k,p,t,J,q){J=J===void 0?Infinity:J;q=q===void 0?0:q;k.logger.debug(function(){return"Enqueuing playerType="+t+" at time="+J+"\n videoId="+p.videoId}); var F=k.tp();t=t||F.getPlayerType();(F=XNw(k,t,p,!0))||(F=wNh(k,t,p).Ei);var d=k.iG();if(t===2&&d){var S=F.getVideoData();d.IW(S.clientPlaybackNonce,S.UQ||"",S.breakType||0,S.wd,S.videoId||"")}k.WU(F,J,0,q)}; uii=function(k,p,t,J,q){var F="";F=k.ih.D("html5_autonav_autoplay_in_preload_key")?Gi(k,t,p):ID(k,t,p.videoId,p.GI);k.logger.debug(function(){return"start preload video "+F+", trigger="+q}); var d="",S=k.tp();if(S&&(d=k.ih.D("html5_autonav_autoplay_in_preload_key")?Gi(k,S.getPlayerType(),S.getVideoData()):ID(k,S.getPlayerType(),S.getVideoData().videoId,S.getVideoData().GI),F===d))return S.BO(!0),p.dispose(),null;p.kx=!0;p=wNh(k,t,p);t===1&&g7(k.ih)||p.BO(!0);k.rf.Y.set(F,p.Ei,J||3600);return p}; lgL=function(k,p,t,J){var q=ou(t);return ID(k,p,q,J,t.autonav==="1"||t.autonav===!0,t.autoplay==="1"||t.autoplay===!0||t.autoplay===1)}; Gi=function(k,p,t){return ID(k,p,t.videoId,t.GI,t.isAutonav,t.x0)}; ID=function(k,p,t,J,q,F){q=q===void 0?!1:q;F=F===void 0?!1:F;p=p+"_"+t+"_"+J;k.ih.D("html5_autonav_autoplay_in_preload_key")&&(p+="_"+ +q+ +F);return p}; XNw=function(k,p,t,J){var q=k.ih.D("html5_autonav_autoplay_in_preload_key")?Gi(k,p,t):ID(k,p,t.videoId,t.GI);var F=k.rf.Y.get(q)||null;if(!F||F.Tb.MO())return null;k.rf.Y.remove(q);if(g.u(F.getPlayerState(),128))return EO(F),null;if(F===k.t5(p))return k.Sz.infoGel({isCacheHit:!0}),F;if((F.getVideoData().oauthToken||t.oauthToken)&&F.getVideoData().oauthToken!==t.oauthToken)return null;p===1&&PG(k);J||k.zR(F,!0);k.Sz.infoGel({isCacheHit:!0});return F}; jdq=function(k,p){var t;return p&&k.ih.Yd&&!((t=k.getVideoData())==null?0:t.backgroundable)}; Oiq=function(k,p){return jdq(k,p)?(k.nj?k.nj.start():k.PB(),!0):!1}; Xw=function(k,p,t){p&&(p=k.t5(t))&&p===k.iG()&&(p.getVideoData().lm=!0)}; RD=function(k,p,t){t=t===void 0?1:t;k.logger.debug(function(){return"start cue video, vid "+p.videoId+", type "+t}); if(p.IG()){var J=g.Zm(k,t,p).Ei;k.cancelPlayback(4,t);k.zR(J);J.gm();if(t===1){k.yK(1);if(g.V0(k.ih)&&!jJ(p)){p.dispose();EO(k.iG());return}Igu(k)}k.logger.debug("finish cue video")}else k.logger.debug(function(){return"invalid VideoData in cueVideo"}),p.dispose(),(J=k.t5(t))&&EO(J),gS(k.hj())&&t===2&&k.Z$()}; Kdh=function(k,p,t,J,q){p=Xl0(p,t,J,q);(t=g.V0(k.ih)&&!k.ih.Y8)&&!k.ly&&(p.fetch=0);sM(k,p);g.V0(k.ih)&&k.Sz.tick("ep_a_pr_s");if(t&&!k.ly)t=k.hj(),W0u(t,p).then(function(F){k.bH=!0;GV_(k,F)}); else k.playlist.onReady(function(){L_(k)}); g.V0(k.ih)&&k.Sz.tick("ep_a_pr_r")}; L_=function(k,p){var t=g.V0(k.ih)&&!k.ih.Y8,J=t&&p?p:g.AR(k.playlist);p=t&&p?p:k.getVideoData();J&&(p.VA&&(k.ih.vQ||k.ih.kC)||!k.CX?(p=p.lm,J=k.KR(J,1),p&&Xw(k,J)):RD(k,J,1));g.V0(k.ih)&&k.Sz.tick("ep_p_l");k.bH=!1;k.fp.dS("onPlaylistUpdate")}; Ldq=function(k){if(k.playlist&&g.cs(k.ih)&&k.jI()){var p=k.ih.D("html5_player_autonav_logging");k.nextVideo(!1,p);return!0}return!1}; Hi0=function(k,p,t,J,q,F,d){p={id:p,namespace:d!=null?d:"appapi"};F==="chapter"?(p.style=H1.CHAPTER_MARKER,p.visible=!0):isNaN(q)||(F==="ad"?p.style=H1.AD_MARKER:(p.style=H1.TIME_MARKER,p.color=q),p.visible=!0);k.Fs([new g.xf(t*1E3,J*1E3,p)],1);return!0}; xt6=function(k,p,t,J,q,F){F=F===void 0?!0:F;var d=k.Zl();if(!d)return F&&k.getVideoData().isLivePlayback&&k.EO.push({id:p,Tpb:t,rt6:J}),!1;F=d-k.getCurrentTime();return Hi0(k,p,t-F,J-F,void 0,void 0,q)}; kaw=function(k,p){k.EO=g.dZ(k.EO,function(d){return d.id!==p}); for(var t=k.iG(),J=t.XS(),q=0;q<J.length;q++){var F=J[q];if(F.getId()===p)return t.removeCueRange(F),BG(k,"cuerangesremoved",[F]),!0}return!1}; zFw=function(k,p,t){var J=k.t5(t);J&&(p=J.VM(p),t&&k.getPresentingPlayerType()!==t||BG(k,"cuerangesremoved",p))}; pj9=function(k){var p=(0,g.V9)(),t=k.getCurrentTime();k=k.getVideoData();t=1E3*(t-k.startSeconds);k.isLivePlayback&&(t=0);return p-Math.max(t,0)}; n_=function(k,p,t){k.ih.RY&&(k.wp=p,p.muted||wG(k,!1),t&&k.ih.storeUserVolume&&!k.ih.mW&&(t={volume:Math.floor(p.volume),muted:p.muted},t.unstorable||(g.cz("yt-player-volume",t),g.cz("yt-player-volume",t,2592E3))),ts6(k),t=g.sD&&k.mediaElement&&!k.mediaElement.Yh(),k.ih.mW&&!t||k.fp.xW("onVolumeChange",{muted:p.muted,volume:p.volume,unstorable:!k.ih.storeUserVolume}))}; ts6=function(k){var p=k.getVideoData();if(!p.yr){p=k.ih.mW?1:Tow(p);var t=k.mediaElement;t.Ca(k.wp.muted);try{t.setVolume(k.wp.volume*p/100)}catch(J){g.wt(new g.hm("b183742307","multiplier: "+p+", volume: "+k.wp.volume))}}}; wG=function(k,p){p!==k.Ot&&(k.Ot=p,k.fp.dS("onMutedAutoplayChange",p))}; fK=function(k){return k.Ot&&k.getVideoData().mutedAutoplay}; JQu=function(k){var p=NI(!0);return p&&(p===k.template.element||k.mediaElement&&p===k.mediaElement.KE())?p:null}; q4T=function(k,p){var t=window.screen&&window.screen.orientation;if((k.ih.D("lock_fullscreen2")||k.ih.B)&&t&&t.lock&&(!g.sD||!oG0))if(p){p=t.type.indexOf("portrait")===0;var J=k.template.getVideoAspectRatio(),q=p;J<1?q=!0:J>1&&(q=!1);if(!k.sY||q!==p){t=t.lock(q?"portrait":"landscape");if(t!=null)t["catch"](function(){}); k.sY=!0}}else k.sY&&(k.sY=!1,t.unlock())}; BG=function(k,p,t){k.fp.publish(p,t);var J=g.mq(k.ih)||g.nl(k.ih)||g.Qj(k.ih);if(t&&J){switch(p){case "cuerangemarkersupdated":var q="onCueRangeMarkersUpdated";break;case "cuerangesadded":q="onCueRangesAdded";break;case "cuerangesremoved":q="onCueRangesRemoved"}q&&k.fp.zb(q,t.map(function(F){return{getId:function(){return this.id}, end:F.end,id:F.getId(),namespace:F.namespace==="ad"?"ad":"",start:F.start,style:F.style,visible:F.visible}}))}}; zi=function(k,p,t,J,q,F){t=t===void 0?!0:t;var d=k.t5(q);d&&(d.getPlayerType()===2&&!k.Ur(d)||g.VR(d.getVideoData()))||(k.getPresentingPlayerType()===3?WO(k.q2).zc("control_seek",p,t):(d&&d===k.iG()&&k.QF&&!RF6(k,p)&&k.setLoopRange(null),k.seekTo(p,t,J,q,F)))}; Fpe=function(k,p,t,J){t&&(k.vj(),C_(k));t=k.tp();t.Za(p);var q=k.getVideoData(),F={};F.video_id=q.videoId;F.adformat=q.adFormat;q.isLivePlayback||(F.start=t.getCurrentTime(),F.resume="1");q.isLivePlayback&&dS(q)&&g.Ck(k.ih)&&(F.live_utc_start=t.Zl(),F.resume="1");q.Y8&&(F.vvt=q.Y8);q.S&&(F.vss_credentials_token=q.S,F.vss_credentials_token_type=q.Q$);q.oauthToken&&(F.oauth_token=q.oauthToken);q.mE&&(F.force_gvi=q.mE);F.autoplay=1;F.reload_count=q.yn+1;F.reload_reason=p;q.XB&&(F.unplugged_partner_opt_out= q.XB);q.nL&&(F.ypc_is_premiere_trailer=q.nL);q.playerParams&&(F.player_params=q.playerParams);k.loadVideoByPlayerVars(F,void 0,!0,void 0,void 0,J);p==="signature"&&k.v1&&Qdj(k)}; $$h=function(k,p){k.hj().autonavState=p;g.cz("yt-player-autonavstate",p);k.fp.publish("autonavchange",p)}; d$j=function(k){var p=k.getVideoData().yr,t=k.ih.Jp,J=k.isInline()&&!k.getVideoData().JX,q=k.mediaElement;p||t||J?q.u8():(q.jC(),n_(k,k.wp))}; PG=function(k){var p=GH(k.EQ());p&&p.created&&(k.logger.debug("reset ad module"),p.destroy())}; QZ=function(k){return k.getVideoData().enableServerStitchedDai&&!!k.v1}; EGi=function(k,p){p.bounds=k.getBoundingClientRect();for(var t=g.Z(["display","opacity","visibility","zIndex"]),J=t.next();!J.done;J=t.next())J=J.value,p[J]=bQ(k,J);p.hidden=!!k.hidden}; ovS=function(k){if(k.webPlayerContextConfig){var p=k.webPlayerContextConfig.trustedJsUrl;return p?CF(p).toString():k.webPlayerContextConfig.jsUrl}return k.config.assets&&k.config.assets.js?k.config.assets.js:""}; S4i=function(k,p){var t=k.t5(1);if(t){if(t.getVideoData().clientPlaybackNonce===p)return t;if((k=k.T6.T)&&k.getVideoData().clientPlaybackNonce===p)return k}return null}; U$M=function(k){return k.name==="TypeError"&&k.stack.includes("/s/player/")&&Xd()<=105}; fpw=function(k){return k.isTimeout?"NO_BID":"ERR_BID"}; bMT=function(){var k=null;htw().then(function(p){return k=p},function(p){return k=fpw(p)}); return k}; NaL=function(){var k=Wt(1E3,"NO_BID");return C9(k3T([htw(),k]).pU(fpw),function(){k.cancel()})}; eB=function(k){return k.UF?g.Xa(g.Iu(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; h3=function(k){this.player=k;this.N=this.T=1}; Taq=function(k,p,t,J,q,F){p.client||(p.client={});k.player.G().D("h5_remove_url_for_get_ad_break")||(p.client.originalUrl=t);var d=oY(t),S=g.Iq(t)?!1:!0;(d||S)&&typeof Intl!=="undefined"&&(p.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);S=g.Iq(t)?!1:!0;if(d||S||J!==""){var U={};t=Hi(EG(J)).split("&");var f=new Map;t.forEach(function(b){b=b.split("=");b.length>1&&f.set(b[0].toString(),decodeURIComponent(b[1].toString()))}); f.has("bid")&&(U.bid=f.get("bid"));U.params=[];yQu.forEach(function(b){f.has(b)&&(b={key:b,value:f.get(b)},U.params.push(b))}); Y4i(k,U);p.adSignalsInfo=U}p.client.unpluggedAppInfo||(p.client.unpluggedAppInfo={});p.client.unpluggedAppInfo.enableFilterMode=!1;t=q.T.cosver;t!=null&&t!=="cosver"&&(p.client.osVersion=t);t=q.T.cplatform;t!=null&&t!=="cplatform"&&t!==""&&(p.client.platform=t);t=q.T.cmodel;t!=null&&t!=="cmodel"&&(p.client.deviceModel=t);t=q.T.cplayer;t!=null&&t!=="cplayer"&&(p.client.playerType=t);t=q.T.cbrand;t!=null&&t!=="cbrand"&&(p.client.deviceMake=t);p.user||(p.user={});p.user.lockedSafetyMode=!1;(q.D("embeds_web_enable_iframe_api_send_full_embed_url")|| q.D("embeds_enable_autoplay_and_visibility_signals"))&&g.cs(q)&&MCL(p,F,k.player.getPlayerState(1))}; CI9=function(k,p){var t=!1;if(p==="")return t;p.split(",").forEach(function(J){var q={},F={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},d="ACTIVE";J[0]==="!"&&(J=J.substring(1),d="INACTIVE");J=J.split("-");J.length<3||(J[0]in rQM&&(F.clientName=rQM[J[0]]),J[1]in ZMi&&(F.platform=ZMi[J[1]]),F.applicationState=d,F.clientVersion=J.length>2?J[2]:"",q.remoteClient=F,k.remoteContexts?k.remoteContexts.push(q):k.remoteContexts=[q],t=!0)}); return t}; m$j=function(k){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in AQw))return!1;k=k.split(RegExp("[:&]"));var p=AQw.FLAG_AUTO_CAPTIONS_DEFAULT_ON,t="f"+(1+Math.floor(p/31)).toString();p=1<<Math.floor(p%31);for(var J=0,q=k.length;J<q;J++){var F=k[J].split("=");if(F[0]===t&&parseInt("0x"+F[1],16)&p)return!0}return!1}; Y4i=function(k,p){k=k.player.G();if(g.hs(k)||g7(k)){k=g.M9("INNERTUBE_CONTEXT");var t,J;(k==null?0:(t=k.adSignalsInfo)==null?0:t.advertisingId)&&typeof(k==null?void 0:(J=k.adSignalsInfo)==null?void 0:J.limitAdTracking)!=="undefined"&&(p.advertisingId=k.adSignalsInfo.advertisingId,p.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",p.limitAdTracking=k.adSignalsInfo.limitAdTracking)}}; nGj=function(k,p,t,J,q){var F=t.DRIFT_FROM_HEAD_MS&&!Number.isNaN(t.DRIFT_FROM_HEAD_MS)?Math.trunc(t.DRIFT_FROM_HEAD_MS):0,d=Vsi.exec(p);d=d!=null&&d.length>=2?d[1]:"";var S=Wpq.test(p),U=D$T.exec(p);U=U!=null&&U.length>=2?U[1]:"";var f=sJe.exec(p);f=f!=null&&f.length>=2&&!Number.isNaN(Number(f[1]))?Number(f[1]):1;var b=Lpi.exec(p);b=b!=null&&b.length>=2?b[1]:"0";var N=Ps(k.player.G().NA),y=k.player.getVideoData(1),Y=g.uS(y.j6,!0),T="BISCOTTI_ID"in t?t.BISCOTTI_ID:"";Taq(k,Y,p,T.toString(),k.player.G(), y);y={splay:!1,lactMilliseconds:t.LACT.toString(),playerHeightPixels:Math.trunc(t.P_H),playerWidthPixels:Math.trunc(t.P_W),vis:Math.trunc(t.VIS),signatureTimestamp:20145,autonavState:eB(k.player.G())};J&&(J={},CI9(J,t.YT_REMOTE)&&(y.mdxContext=J));if(J=vGM.includes(N)?void 0:g.QI("PREF")){for(var A=J.split(RegExp("[:&]")),V=0,D=A.length;V<D;V++){var v=A[V].split("=");if((v[0].toUpperCase()==="SML"||v[0].toUpperCase()==="GSML")&&v.length>1&&v[1].toUpperCase()==="TRUE"){Y.user.lockedSafetyMode=!0;break}}y.autoCaptionsDefaultOn= m$j(J)}p=cQe.exec(p);(p=p!=null&&p.length>=2?p[1]:"")&&U&&(Y.user.credentialTransferTokens=[{token:p,scope:"VIDEO"}]);p={contentPlaybackContext:y};d={adBlock:Math.trunc(t.AD_BLOCK),params:d,breakIndex:f,breakPositionMs:b,clientPlaybackNonce:t.CPN,topLevelDomain:N,isProxyAdTagRequest:S,context:Y,adSignalsInfoString:Hi(EG(T.toString())),overridePlaybackContext:p};q!==void 0&&(d.cueProcessedMs=Math.round(q).toString());U&&(d.videoId=U);t.LIVE_TARGETING_CONTEXT&&(d.liveTargetingParams=t.LIVE_TARGETING_CONTEXT); t.AD_BREAK_LENGTH&&(d.breakLengthMs=Math.trunc(t.AD_BREAK_LENGTH*1E3).toString());F&&(d.driftFromHeadMs=F.toString());d.currentMediaTimeMs=Math.round(k.player.getCurrentTime(1)*1E3);(k=k.player.getGetAdBreakContext())&&(d.getAdBreakContext=k);return d}; wj6=function(){h3.apply(this,arguments)}; iMq=function(k,p,t,J,q){var F=t.S0;var d=t.Ai;var S=k.player.G().eb,U=0;t.cueProcessedMs&&d&&!F&&(t=d.end-d.start,t>0&&(U=Math.floor(t/1E3)));var f={AD_BLOCK:q,AD_BREAK_LENGTH:F?F.NR:U,AUTONAV_STATE:eB(k.player.G()),CA_TYPE:"image",CPN:k.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:k.player.ID()*1E3,LACT:VP(),LIVE_INDEX:F?k.N++:1,LIVE_TARGETING_CONTEXT:F&&F.context?F.context:"",MIDROLL_POS:d?Math.round(d.start/1E3):0,MIDROLL_POS_MS:d?Math.round(d.start):0,VIS:k.player.getVisibilityState(), P_H:k.player.Uy().At().height,P_W:k.player.Uy().At().width,YT_REMOTE:S?S.join(","):""},b=dh($X);Object.keys(b).forEach(function(N){b[N]!=null&&(f[N.toUpperCase()]=b[N].toString())}); J!==""&&(f.BISCOTTI_ID=J);J={};Fd(p)&&(J.sts="20145",(k=k.player.G().forcedExperiments)&&(J.forced_experiments=k));return Je(g.c8(p,f),J)}; QJ0=function(k,p){var t=k.player.G(),J,q=(J=k.player.getVideoData(1))==null?void 0:J.oauthToken;return g.xH(t,q).then(function(F){if(F&&q8()){var d=Ql();PO(d,F)}return g.MT(k.player.DM(d),p,"/youtubei/v1/player/ad_break").then(function(S){return S})})}; PIi=function(k){this.mS=k}; GaM=function(k){this.j=k}; Ipi=function(k){this.mS=k}; RAj=function(k){g.R.call(this);this.T=k;this.V5=Xjq(this)}; Xjq=function(k){var p=new Azj(k.T.tj);g.z(k,p);k=g.Z([new PIi(k.T.mS),new GaM(k.T.j),new Ipi(k.T.mS),new Lf(k.T.Ga,k.T.KK),new cV,new iN(k.T.Ex,k.T.XE,k.T.mS),new vV,new sr]);for(var t=k.next();!t.done;t=k.next())mZL(p,t.value);k=g.Z(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(t=k.next();!t.done;t=k.next())nf(p,t.value,function(){}); return p}; aD=function(k){var p=k.XG,t=k.uh;k=k.y4;var J=new XXe,q={LH:new T3e(p.get(),t),uh:t};return{Xd:new OX(t,k,p,q),context:q,HN:J}}; MA=function(k,p,t,J,q){g.R.call(this);this.Y=p;this.FG=t;this.XG=J;this.H1=q;this.listeners=[];var F=new VB(this);g.z(this,F);F.V(k,"internalAbandon",this.aB);this.addOnDisposeCallback(function(){g.Df(F)})}; gG=function(k){this.j=k;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.X=!0;this.Y=this.N=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Ba_=function(k){k.contentCpn=null;k.adCpn=null;k.videoId=null;k.adVideoId=null;k.adFormat=null;k.C="AD_PLACEMENT_KIND_UNKNOWN";k.actionType="unknown_type";k.N=!1;k.Y=!1}; zAh=function(k,p){k=g.Z(p);for(p=k.next();!p.done;p=k.next())if((p=p.value.renderer)&&(p.instreamVideoAdRenderer||p.linearAdSequenceRenderer||p.sandwichedLinearAdRenderer||p.instreamSurveyAdRenderer)){Gg("ad_i");g.IF({isMonetized:!0});break}}; eA9=function(k){var p;(p=k.j.getVideoData(1))!=null&&p.NO&&(k.Y=!1,p={},k.T&&k.videoId&&(p.cttAuthInfo={token:k.T,videoId:k.videoId}),Xu("video_to_ad",p))}; RW=function(k){k.Y=!1;var p={};k.T&&k.videoId&&(p.cttAuthInfo={token:k.T,videoId:k.videoId});Xu("ad_to_video",p);hA_(k)}; hA_=function(k){if(k.N)if(k.C==="AD_PLACEMENT_KIND_START"&&k.actionType==="video_to_ad")iF("video_to_ad");else{var p={adBreakType:y8(k.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:k.videoStreamType};k.actionType==="ad_to_video"?(k.contentCpn&&(p.targetCpn=k.contentCpn),k.videoId&&(p.targetVideoId=k.videoId)):(k.adCpn&&(p.targetCpn=k.adCpn),k.adVideoId&&(p.targetVideoId=k.adVideoId));k.adFormat&&(p.adType=k.adFormat);k.contentCpn&& (p.clientPlaybackNonce=k.contentCpn);k.videoId&&(p.videoId=k.videoId);k.adCpn&&(p.adClientPlaybackNonce=k.adCpn);k.adVideoId&&(p.adVideoId=k.adVideoId);g.IF(p,k.actionType)}}; uH=function(k){g.R.call(this);this.j=k;this.T=new Map;this.Y=new VB(this);g.z(this,this.Y);this.Y.V(this.j,g.pT("ad"),this.onCueRangeEnter,this);this.Y.V(this.j,g.tA("ad"),this.onCueRangeExit,this)}; apq=function(k,p,t,J,q){g.xf.call(this,p,t,{id:k,namespace:"ad",priority:q,visible:J})}; lH=function(k){this.j=k}; jB=function(k){this.j=k;g.dU(this.j.G().experiments,"tv_pacf_logging_sample_rate")}; r2=function(k,p){p=p===void 0?!1:p;return k.j.G().D("html5_ssap_force_ads_ctmp")?!0:(p||k.j.G().DB())&&k.j.G().D("html5_ssap_pacf_qoe_ctmp")}; OM=function(k){var p,t;return(t=(p=k.j.getVideoData(1))==null?void 0:g.hF(p))!=null?t:!1}; ac=function(k,p){return k.j.G().D(p)}; Msi=function(k){return k.j.G().D("substitute_ad_cpn_macro_in_ssdai")}; yf=function(k){var p,t,J;return((p=k.j.getVideoData(1).getPlayerResponse())==null?void 0:(t=p.playerConfig)==null?void 0:(J=t.daiConfig)==null?void 0:J.enableServerStitchedDai)||!1}; v0u=function(k){return k.j.G().D("html5_enable_vod_slar_with_notify_pacf")}; gGT=function(k){return k.j.G().D("html5_recognize_predict_start_cue_point")}; u9=function(k){return k.j.G().experiments.Gb("enable_desktop_player_underlay")}; uPT=function(k){return k.j.G().experiments.Gb("html5_load_empty_player_in_media_break_sub_lra")}; LW=function(k){return k.j.G().experiments.Gb("html5_load_ads_instead_of_cue")}; v6=function(k){return k.j.G().experiments.Gb("html5_preload_ads")}; aH=function(k){return k.j.G().experiments.Gb("enable_ads_control_flow_deterministic_id_generation")}; lph=function(k){return k.j.G().experiments.Gb("enable_desktop_discovery_video_abandon_pings")||g.hs(k.j.G())}; jJ9=function(k){return k.j.G().experiments.Gb("enable_progres_commands_lr_feeds")}; OMi=function(k){return k.j.G().experiments.Gb("html5_cuepoint_identifier_logging")}; Kpw=function(k){switch(k){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}}; HMS=function(){g.o$.call(this);var k=this;this.T={};this.addOnDisposeCallback(function(){for(var p=g.Z(Object.keys(k.T)),t=p.next();!t.done;t=p.next())delete k.T[t.value]})}; K_=function(){if(x$9===null){x$9=new HMS;v0(A0).Y="b";var k=v0(A0),p=Nd(k)=="h"||Nd(k)=="b",t=!(Qo(),!1);p&&t&&(k.X=!0,k.S=new hoL)}return x$9}; kNi=function(k,p,t){k.T[p]=t}; p_T=function(k){switch(k){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}}; HG=function(k,p,t){this.FG=k;this.j=p;this.uh=t;this.Y=new Set;this.T=new Map;K_().subscribe("adactiveviewmeasurable",this.HI,this);K_().subscribe("adfullyviewableaudiblehalfdurationimpression",this.GO,this);K_().subscribe("adviewableimpression",this.dD,this);K_().subscribe("adaudioaudible",this.kp,this);K_().subscribe("adaudiomeasurable",this.wD,this)}; kj=function(k,p,t){var J=t.o$,q=t.UK,F=t.listener,d=t.C0;t=t.Y0===void 0?!1:t.Y0;if(k.T.has(p))d3("Unexpected registration of layout in LidarApi");else{if(d){if(k.Y.has(d))return;k.Y.add(d)}k.T.set(p,F);Fr(Qo().FR,"fmd",1);xSM(v0(A0),J);var S=t?p:void 0;kNi(K_(),p,{UG:function(){if(!q)return{};var U=k.j.getPresentingPlayerType(!0),f;return(f=k.j.getVideoData(U))!=null&&f.isAd()?{currentTime:k.FG.get().getCurrentTimeSec(U,!1,S),duration:q,isPlaying:xC(k.FG.get(),U).isPlaying(),isVpaid:!1,isYouTube:!0, volume:k.FG.get().isMuted()?0:k.FG.get().getVolume()/100}:{}}})}}; pU=function(k,p){k.T.has(p)?(k.T.delete(p),delete K_().T[p]):d3("Unexpected unregistration of layout in LidarApi")}; tSh=function(k,p){if(k.j.isLifaAdPlaying()){var t=k.j.kL(!0,!0);k.sA(p,t.width*.5*1.1,t.height*.25*1.1,t.width*.5*.9,t.height*.5*.9)}}; qje=function(k,p,t){var J={};JEL(k,J,p,t);o4j(J);J.LACT=ta(function(){return VP().toString()}); J.VIS=ta(function(){return k.getVisibilityState().toString()}); J.SDKV="h.3.0";J.VOL=ta(function(){return k.isMuted()?"0":Math.round(k.getVolume()).toString()}); J.VED="";return J}; FA0=function(k,p){var t={};if(p)return t;if(!k.kind)return g.nV(Error("AdPlacementConfig without kind")),t;if(k.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||k.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!k.adTimeOffset||!k.adTimeOffset.offsetStartMilliseconds)return g.nV(Error("malformed AdPlacementConfig")),t;t.MIDROLL_POS=ta(Sr(Math.round(pE(k.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else t.MIDROLL_POS=ta(Sr("0"));return t}; ta=function(k){return{toString:function(){return k()}}}; $3q=function(k,p,t){function J(S,U){(U=t[U])&&(F[S]=U)} function q(S,U){(U=t[U])&&(F[S]=d(U))} if(!t||g.cQ(t))return k;var F=Object.assign({},k),d=p?encodeURIComponent:function(S){return S}; q("DV_VIEWABILITY","doubleVerifyViewability");q("IAS_VIEWABILITY","integralAdsViewability");q("MOAT_INIT","moatInit");q("MOAT_VIEWABILITY","moatViewability");J("GOOGLE_VIEWABILITY","googleViewability");J("VIEWABILITY","viewability");return F}; JEL=function(k,p,t,J){p.CPN=ta(function(){var q;(q=k.getVideoData(1))?q=q.clientPlaybackNonce:(g.wt(Error("Video data is null.")),q=null);return q}); p.AD_MT=ta(function(){if(J!=null)var q=J;else{var F=t;k.G().D("html5_ssap_use_cpn_to_get_time")||(F=void 0);if(k.G().D("enable_h5_shorts_ad_fill_ad_mt_macro")||k.G().D("enable_desktop_discovery_pings_ad_mt_macro")||g.hs(k.G())){var d=k.getPresentingPlayerType(!0),S;q=((S=k.getVideoData(d))==null?0:S.isAd())?d3i(k,d,F):0}else q=d3i(k,2,F)}return Math.round(Math.max(0,q*1E3)).toString()}); p.MT=ta(function(){return Math.round(Math.max(0,k.getCurrentTime(1,!1)*1E3)).toString()}); p.P_H=ta(function(){return k.Uy().At().height.toString()}); p.P_W=ta(function(){return k.Uy().At().width.toString()}); p.PV_H=ta(function(){return k.Uy().getVideoContentRect().height.toString()}); p.PV_W=ta(function(){return k.Uy().getVideoContentRect().width.toString()})}; o4j=function(k){k.CONN=ta(Sr("0"));k.WT=ta(function(){return Date.now().toString()})}; d3i=function(k,p,t){return t!==void 0?k.getCurrentTime(p,!1,t):k.getCurrentTime(p,!1)}; E4L=function(){}; SjM=function(k,p,t,J,q){var F,d,S,U,f,b,N,y,Y,T,A,V,D;g.Q(function(v){switch(v.T){case 1:F=!!p.scrubReferrer;d=g.c8(p.baseUrl,$3q(t,F,J));S={};if(!p.headers){v.oY(2);break}U=k.C();if(!U.T){f=U.getValue();v.oY(3);break}return g.n(v,U.T,4);case 4:f=v.Y;case 3:b=f;N=g.Z(p.headers);for(y=N.next();!y.done;y=N.next())switch(Y=y.value,Y.headerType){case "VISITOR_ID":g.M9("VISITOR_DATA")&&(S["X-Goog-Visitor-Id"]=g.M9("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.M9("EOM_VISITOR_DATA")&&(S["X-Goog-EOM-Visitor-Id"]= g.M9("EOM_VISITOR_DATA"));break;case "USER_AUTH":b&&(S.Authorization="Bearer "+b);break;case "PLUS_PAGE_ID":(T=k.X())&&(S["X-Goog-PageId"]=T);break;case "AUTH_USER":A=k.T();!b&&A&&(S["X-Goog-AuthUser"]=A);break;case "DATASYNC_ID":if(V=void 0,(V=k.N())==null?0:V.Gb("enable_datasync_id_header_in_web_vss_pings"))D=k.Y(),oY(d)&&g.M9("LOGGED_IN")&&D&&(S["X-YouTube-DataSync-Id"]=D)}"X-Goog-EOM-Visitor-Id"in S&&"X-Goog-Visitor-Id"in S&&delete S["X-Goog-Visitor-Id"];case 2:g.Xs(d,void 0,F,Object.keys(S).length!== 0?S:void 0,"",!0,q),g.CS(v)}})}; U3S=function(k,p,t,J,q){this.C=k;this.X=p;this.T=t;this.Y=J;this.N=q}; fGj=function(k,p){this.T=k;this.uh=p}; Ja=function(k,p,t,J,q,F,d){var S=S===void 0?new U3S(function(){var U=k.G(),f=k.getVideoData(1);return g.xH(U,f?g.eJ(f):"")},function(){return k.G().pageId},function(){return k.G().NO},function(){var U; return(U=k.G().datasyncId)!=null?U:""},function(){return k.G().experiments}):S; this.j=k;this.Y=p;this.uG=t;this.XG=J;this.Xd=q;this.uh=F;this.HN=d;this.C=S;this.RZ=null;this.T=new Map;this.N=new fGj(S,this.uh)}; NzT=function(k,p,t,J,q){var F=Vf(k.Y.get(),t);F?(t=Wh(k,bdi(F),F,void 0,void 0,J),p.hasOwnProperty("baseUrl")?k.C.send(p,t):k.N.send(p,t,{},q)):d3("Trying to ping from an unknown layout",void 0,void 0,{layoutId:t})}; s$h=function(k,p,t,J,q,F){J=J===void 0?[]:J;var d=Vf(k.Y.get(),p);if(d){var S=k.uG.get().U7(p,t),U=Wh(k,bdi(d),d,q,F);J.forEach(function(f,b){f.baseUrl&&(k.N.send(f.baseUrl,U,S,f.attributionSrcMode),f.serializedAdPingMetadata&&k.Xd.KM("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,d,new F_M(f,b),void 0,void 0,d.adLayoutLoggingData))})}else d3("Trying to track from an unknown layout.",void 0,void 0,{layoutId:p, trackingType:t})}; TW=function(k,p){k.j.sendVideoStatsEngageEvent(p,void 0,2)}; u2=function(k,p){g.qv("adsClientStateChange",p)}; yEh=function(k,p){k.T.has(p.KV())?d3("Trying to register an existing AdErrorInfoSupplier."):k.T.set(p.KV(),p)}; Yj9=function(k,p){k.T.delete(p.KV())||d3("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; OE=function(k,p,t){typeof t==="string"?k.j.getVideoData(1).KP(p,t):k.j.getVideoData(1).yT(p,t)}; bdi=function(k){var p=pk(k.clientMetadata,"metadata_type_ad_placement_config");k=pk(k.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:p,hZ:k}}; Wh=function(k,p,t,J,q,F){var d=t?TzT(k):{},S=t?rEj(k,t.layoutId):{},U=ZdT(k),f,b=q!=null?q:(f=UE(k.XG.get(),2))==null?void 0:f.clientPlaybackNonce;k.j.G().D("enable_player_logging_lr_home_infeed_ads")&&!b&&(b=UE(k.XG.get(),1).clientPlaybackNonce);q=void 0;if(t){var N;if((N=k.HN.T.get(t.layoutId))==null?0:N.Y0)q=t.layoutId}N={};k=Object.assign({},qje(k.j,q,J),FA0(p.adPlacementConfig,(t==null?void 0:t.renderingContent)!==void 0),S,d,U,(N.FINAL=ta(function(){return"1"}),N.AD_CPN=ta(function(){return b|| ""}),N)); (t==null?void 0:t.renderingContent)!==void 0||(k.SLOT_POS=ta(function(){return(p.hZ||0).toString()})); t={};F=Object.assign({},k,F);k=g.Z(Object.values(Cjh));for(J=k.next();!J.done;J=k.next())J=J.value,d=F[J],d!=null&&d.toString()!=null&&(t[J]=d.toString());return t}; TzT=function(k){var p={},t,J=(t=k.RZ)==null?void 0:t.PR/1E3;J!=null&&(p.SURVEY_ELAPSED_MS=ta(function(){return Math.round(J*1E3).toString()})); p.SURVEY_LOCAL_TIME_EPOCH_S=ta(function(){return Math.round(Date.now()/1E3).toString()}); return p}; rEj=function(k,p){k=k.T.get(p);if(!k)return{};k=k.If();if(!k)return{};p={};return p.YT_ERROR_CODE=k.il.toString(),p.ERRORCODE=k.Bo.toString(),p.ERROR_MSG=k.errorMessage,p}; ZdT=function(k){var p={},t=k.j.getVideoData(1);p.ASR=ta(function(){var J;return(J=t==null?void 0:t.hR)!=null?J:null}); p.EI=ta(function(){var J;return(J=t==null?void 0:t.eventId)!=null?J:null}); return p}; oM=function(k,p,t){g.R.call(this);this.j=k;this.JY=p;this.uh=t;this.listeners=[];this.RE=null;this.yB=new Map;p=new g.nC(this);g.z(this,p);p.V(k,"videodatachange",this.Pm6);p.V(k,"serverstitchedvideochange",this.w1S);this.Mb=UE(this)}; UE=function(k,p){var t=k.j.getVideoData(p);return t?k.Lx(t,p||k.j.getPresentingPlayerType(!0)):null}; AE_=function(k,p,t){var J=k.Lx(p,t);k.Mb=J;k.listeners.forEach(function(q){q.Je(J)})}; m30=function(k){switch(k){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}}; qV=function(k,p,t){g.R.call(this);this.j=k;this.XG=p;this.uh=t;this.listeners=[];this.Ze=[];this.T=function(){d3("Called 'doUnlockPreroll' before it's initialized.")}; p=new VB(this);t=new g.nC(this);g.z(this,t);g.z(this,p);p.V(k,"progresssync",this.Kgh);p.V(k,"presentingplayerstatechange",this.yip);p.V(k,"fullscreentoggled",this.onFullscreenToggled);p.V(k,"onVolumeChange",this.onVolumeChange);p.V(k,"minimized",this.MA);p.V(k,"overlayvisibilitychange",this.VN);p.V(k,"shortsadswipe",this.vR);p.V(k,"resize",this.zA);t.V(k,g.pT("appad"),this.tM)}; Fl=function(k){OM(k.uh.get())||k.T()}; VSe=function(k,p){k.Ze=k.Ze.filter(function(t){return t!==p})}; dy=function(k,p,t){return k.getCurrentTimeSec(p,t)}; WAL=function(k,p){var t;p=(t=k.XG.get().yB.get(p))!=null?t:null;if(p===null)return d3("Expected ad video start time on playback timeline"),0;k=k.j.getCurrentTime(2,!0);return k<p?0:k-p}; xC=function(k,p){return k.j.getPlayerStateObject(p)}; D3u=function(k){var p=k.j.Uy().At();k=k.j.kL(!0,!0);return p.height-(k.height+k.top)}; sE9=function(k){k.j.cueVideoByPlayerVars({videoId:"empty_video"},2)}; OaS=function(k,p){var t=k.j.G();g.vs(t)||t.controlsType!=="3"||k.j.Uy().Tn(p)}; Ee=function(k,p){g.JB(k.j.getRootNode(),p)}; Sb=function(k,p){g.qN(k.j.getRootNode(),p)}; LA9=function(k,p,t,J,q){g.R.call(this);var F=this,d=Ic(function(){return new hi(F.uh)}); g.z(this,d);var S=Ic(function(){return new Mo(d,F.uh)}); g.z(this,S);var U=Ic(function(){return new Ai}); g.z(this,U);J=Ic(function(){return new Zt(k)}); g.z(this,J);var f=Ic(function(){return new go(d,S,F.uh)}); g.z(this,f);var b=Ic(function(){return new Kx}); g.z(this,b);this.MW=Ic(function(){return new Rc(q)}); g.z(this,this.MW);this.Qn=Ic(function(){return new gG(p)}); g.z(this,this.Qn);this.b3=Ic(function(){return new uH(p)}); g.z(this,this.b3);this.tj=Ic(function(){return new lH(p)}); g.z(this,this.tj);this.uh=Ic(function(){return new jB(p)}); g.z(this,this.uh);var N=Ic(function(){return new Eq(F.uh)}); g.z(this,N);var y=Ic(function(){return new UX(d,f,S,F.uh,N,null,null,null,null)}); g.z(this,y);this.XG=Ic(function(){return new oM(p,b,F.uh)}); g.z(this,this.XG);var Y=aD({XG:this.XG,uh:this.uh,y4:N}),T=Y.context,A=Y.HN;this.Xd=Y.Xd;this.FG=Ic(function(){return new qV(p,F.XG,F.uh)}); g.z(this,this.FG);this.uG=Ic(function(){return new HG(F.FG,p,F.uh)}); g.z(this,this.uG);this.mS=Ic(function(){return new Ja(p,U,F.uG,F.XG,F.Xd,F.uh,A)}); g.z(this,this.mS);this.N2=new ro(J,y,t,this.uh,k,this.XG,this.FG,this.Qn);g.z(this,this.N2);var V=new MA(p,this.N2,this.FG,this.XG);this.Xw=Ic(function(){return V}); this.zO=V;this.V7=new Cx(J,f,this.b3,this.Xw,T);g.z(this,this.V7);this.P1=new nJ(this.uh,J,f,y,this.XG,this.V7,t);g.z(this,this.P1);this.XI={hd:new Map,hV:new Map,jB:new Map,HO:new Map,ND:new Map};this.listeners=[];this.Y5={P1:this.P1,XE:this.uh.get(),VT:this.MW.get(),H4:this.FG.get(),N2:this.N2,Lr:d.get(),MZ:null,KK:{Xt:function(){}}, Ga:U.get(),Ex:this.XG.get()}}; Ue=function(k,p){g.R.call(this);this.NQ=p;this.NQ.get().addListener(this)}; fU=function(k){this.T=k}; v4q=function(k,p){if(!k)return{iE:[],adSlots:[],Zj:!0,ssdaiAdsConfig:void 0};k.trackingParams&&mT(k.trackingParams);if(k.adThrottled)return{iE:[],adSlots:[],Zj:!0,ssdaiAdsConfig:void 0};var t,J=(t=k.adSlots)!=null?t:[],q;t=(q=k.playerAds)!=null?q:[];if(!(t&&t.length||J.length))return{iE:[],adSlots:J,Zj:!1,ssdaiAdsConfig:void 0};q=t.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)}); if(!q.length&&!J.length)return{iE:[],adSlots:J,Zj:!1,ssdaiAdsConfig:void 0};if(p.end>0){var F=p.end.toString();q.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&d.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&d.adTimeOffset&&d.adTimeOffset.offsetEndMilliseconds==="-1"&&d.adTimeOffset.offsetEndMilliseconds!==F&&(d.adTimeOffset.offsetEndMilliseconds=F)}); J.map(function(d){return g.e(d,wR)}).forEach(function(d){var S; (d=d==null?void 0:(S=d.slotEntryTrigger)==null?void 0:S.mediaTimeRangeTrigger)&&d.offsetEndMilliseconds==="-1"&&(d.offsetEndMilliseconds=F)})}return{iE:q, adSlots:J,Zj:!1,ssdaiAdsConfig:k.ssdaiAdsConfig}}; bX=function(k){g.R.call(this);this.j=k;this.listeners=[];this.T=new VB(this);g.z(this,this.T);this.T.V(this.j,"aduxclicked",this.onAdUxClicked);this.T.V(this.j,"aduxmouseover",this.Yl);this.T.V(this.j,"aduxmouseout",this.gF);this.T.V(this.j,"muteadaccepted",this.vIb)}; cET=function(k,p,t){p=g.DR(p,function(J){return new l4i(J,t,J.id)}); k.j.zb("onAdUxUpdate",p)}; NV=function(k,p){k=g.Z(k.listeners);for(var t=k.next();!t.done;t=k.next())p(t.value)}; yh=function(k,p){this.Y=k;this.N=p===void 0?!1:p;this.T={}}; n4S=function(k,p){var t=k.startSecs+k.NR;t=t<=0?null:t;if(t===null)return null;switch(k.event){case "start":case "continue":case "stop":break;case "predictStart":if(p)break;return null;default:return null}p=Math.max(k.startSecs,0);return{g9:new Cv(p,t),hhb:new Qb(p,t-p,k.context,k.identifier,k.event,k.T)}}; w_6=function(){this.T=[]}; Weu=function(k,p,t){var J=g.dH(k.T,p);if(J>=0)return p;p=-J-1;return p>=k.T.length||k.T[p]>t?null:k.T[p]}; Yj=function(k,p,t){g.R.call(this);this.j=k;this.uh=p;this.mS=t;this.listeners=[];this.C=!1;this.eK=[];this.T=null;this.X=new yh(this,gGT(p.get()));this.N=new w_6;this.Y=null}; idS=function(k,p){k.eK.push(p);for(var t=!1,J=g.Z(k.listeners),q=J.next();!q.done;q=J.next())t=q.value.Gz(p)||t;k.C=t;OMi(k.uh.get())&&OE(k.mS.get(),"onci","cpi."+p.identifier+";cpe."+p.event+";cps."+p.startSecs+";cbi."+t)}; PjM=function(k,p){u2(k.mS.get(),{cuepointTrigger:{event:QE0(p.event),cuepointId:p.identifier,totalCueDurationMs:p.NR*1E3,playheadTimeMs:p.T,cueStartTimeMs:p.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:k.j.getVideoData(1).clientPlaybackNonce}})}; QE0=function(k){switch(k){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 Ft(k,"Unexpected cuepoint event")}}; T$=function(k){this.j=k}; GNe=function(k,p){k.j.cueVideoByPlayerVars(p,2)}; ry=function(k){this.j=k}; Zk=function(k){this.j=k}; IG0=function(k){switch(k){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:Ft(k,"unknown transitionReason")}}; X_j=function(k){this.j=k}; Rnw=function(k,p,t,J,q){g.R.call(this);var F=this,d=Ic(function(){return new hi(F.uh)}); g.z(this,d);var S=Ic(function(){return new Mo(d,F.uh)}); g.z(this,S);var U=Ic(function(){return new Ai}); g.z(this,U);var f=Ic(function(){return new Zt(k)}); g.z(this,f);var b=Ic(function(){return new go(d,S,F.uh)}); g.z(this,b);var N=Ic(function(){return new Kx}); g.z(this,N);this.EF=Ic(function(){return new bX(p)}); g.z(this,this.EF);this.MW=Ic(function(){return new Rc(q)}); g.z(this,this.MW);this.Qn=Ic(function(){return new gG(p)}); g.z(this,this.Qn);this.b3=Ic(function(){return new uH(p)}); g.z(this,this.b3);this.wS=Ic(function(){return new T$(p)}); g.z(this,this.wS);this.tj=Ic(function(){return new lH(p)}); g.z(this,this.tj);this.uh=Ic(function(){return new jB(p)}); g.z(this,this.uh);var y=Ic(function(){return new fU(J)}); g.z(this,y);var Y=Ic(function(){return new Eq(F.uh)}); g.z(this,Y);this.n$=Ic(function(){return new ry(p)}); g.z(this,this.n$);this.NQ=Ic(function(){return new eC}); g.z(this,this.NQ);this.XG=Ic(function(){return new oM(p,N,F.uh)}); g.z(this,this.XG);var T=aD({XG:this.XG,uh:this.uh,y4:Y}),A=T.context,V=T.HN;this.Xd=T.Xd;this.H1=Ic(function(){return new Yj(p,F.uh,F.mS)}); g.z(this,this.H1);this.NP=Ic(function(){return new Zk(p)}); g.z(this,this.NP);this.FG=Ic(function(){return new qV(p,F.XG,F.uh)}); g.z(this,this.FG);T=Ic(function(){return new UX(d,b,S,F.uh,Y,"SLOT_TYPE_ABOVE_FEED",F.FG,F.FU,F.I8)}); g.z(this,T);this.tB=Ic(function(){return new h9(F.uh)}); this.uG=Ic(function(){return new HG(F.FG,p,F.uh)}); g.z(this,this.uG);this.mS=Ic(function(){return new Ja(p,U,F.uG,F.XG,F.Xd,F.uh,V)}); g.z(this,this.mS);this.Hl=new TO(Ye,CU,function(v,w,X,B){return gR(S.get(),v,w,X,B)},f,b,S,Y,this.uh,this.XG); g.z(this,this.Hl);this.N2=new ro(f,T,t,this.uh,k,this.XG,this.FG,this.Qn);g.z(this,this.N2);var D=new MA(p,this.N2,this.FG,this.XG,this.H1);this.Xw=Ic(function(){return D}); this.zO=D;this.FU=new No(f,b,this.Xw,this.H1,this.FG,this.uh,this.mS,this.NP);g.z(this,this.FU);this.V7=new Cx(f,b,this.b3,this.Xw,A);g.z(this,this.V7);this.P1=new nJ(this.uh,f,b,T,this.XG,this.V7,t);g.z(this,this.P1);this.u0=Ic(function(){return new d$(y,S,Y,F.uh,F.mS,F.FG,F.NP)}); g.z(this,this.u0);this.CZ=Ic(function(){return new En}); g.z(this,this.CZ);this.uD=new vl(k,this.EF,this.uh);g.z(this,this.uD);this.vp=new cl(k);g.z(this,this.vp);this.Ql=new nx(k);g.z(this,this.Ql);this.Is=new iA(k,this.Xw,A);g.z(this,this.Is);this.wI=new Qf(k,this.b3,this.FG,this.XG,A);g.z(this,this.wI);this.xp=new Pl(k,this.XG);g.z(this,this.xp);this.I8=new XA(k,this.H1,this.FG,this.mS,this.Xw);g.z(this,this.I8);this.o8=new GO(k);g.z(this,this.o8);this.OX=new eg(k);g.z(this,this.OX);this.kN=new IH(k);g.z(this,this.kN);this.G7=new zO(k);g.z(this,this.G7); this.OX=new eg(k);g.z(this,this.OX);this.Er=Ic(function(){return new Wl}); g.z(this,this.Er);this.dA=Ic(function(){return new Dt(F.FG)}); g.z(this,this.dA);this.Vv=Ic(function(){return new uKw(F.EF,F.mS,k,U,F.uG)}); g.z(this,this.Vv);this.sZ=Ic(function(){return new uL(F.P1,f,d)}); g.z(this,this.sZ);this.MB=Ic(function(){return new On(F.uh,F.mS,F.o8,F.uG)}); g.z(this,this.MB);this.G6=Ic(function(){return new Jd(k,F.OX,F.o8,F.XG,F.NP,F.FG,F.mS,N,F.H1,F.uG,F.tB,F.wS,F.b3,F.Qn,F.tj,F.MW,F.n$,F.uh,U,A,V)}); g.z(this,this.G6);this.q4=Ic(function(){return new $O9(F.FG,F.mS,F.MW,F.uh,F.uG,F.XG)}); g.z(this,this.q4);this.iV=Ic(function(){return new jF6(F.EF,F.FG,F.mS,U,F.uG,F.Ql,F.G7,F.MW,F.uh,t)}); g.z(this,this.iV);this.Ar=Ic(function(){return new lv0(F.EF,F.mS,U)}); g.z(this,this.Ar);this.Jv=new Ue(k,this.NQ,d);g.z(this,this.Jv);this.XI={hd:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.P1],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.N2],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V7]]),hV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u0],["SLOT_TYPE_ABOVE_FEED",this.CZ],["SLOT_TYPE_FORECASTING",this.CZ], ["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ],["SLOT_TYPE_PLAYER_UNDERLAY",this.CZ],["SLOT_TYPE_PLAYBACK_TRACKING",this.CZ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.CZ]]),jB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uD],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.uD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.vp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vp],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.vp],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vp],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ql],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Is],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.wI],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.wI],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.wI],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.wI],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.wI],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.wI],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.wI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.o8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Is],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kN],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.G7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.I8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.I8],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.I8],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.I8],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.I8]]),HO:new Map([["SLOT_TYPE_ABOVE_FEED",this.Er], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Er],["SLOT_TYPE_FORECASTING",this.Er],["SLOT_TYPE_IN_PLAYER",this.Er],["SLOT_TYPE_PLAYER_BYTES",this.dA],["SLOT_TYPE_PLAYER_UNDERLAY",this.Er],["SLOT_TYPE_PLAYBACK_TRACKING",this.Er],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Er]]),ND:new Map([["SLOT_TYPE_ABOVE_FEED",this.Vv],["SLOT_TYPE_AD_BREAK_REQUEST",this.sZ],["SLOT_TYPE_FORECASTING",this.MB],["SLOT_TYPE_PLAYER_BYTES",this.G6],["SLOT_TYPE_PLAYBACK_TRACKING",this.q4],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.q4],["SLOT_TYPE_IN_PLAYER",this.iV],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ar]])};this.listeners=[U.get()];this.Y5={P1:this.P1,XE:this.uh.get(),VT:this.MW.get(),H4:this.FG.get(),N2:this.N2,Lr:d.get(),MZ:this.NQ.get(),KK:this.uD,Ga:U.get(),Ex:this.XG.get()}}; Bzw=function(k,p,t,J,q){g.R.call(this);var F=this,d=Ic(function(){return new hi(F.uh)}); g.z(this,d);var S=Ic(function(){return new Mo(d,F.uh)}); g.z(this,S);var U=Ic(function(){return new Ai}); g.z(this,U);var f=Ic(function(){return new Zt(k)}); g.z(this,f);var b=Ic(function(){return new go(d,S,F.uh)}); g.z(this,b);var N=Ic(function(){return new Kx}); g.z(this,N);this.EF=Ic(function(){return new bX(p)}); g.z(this,this.EF);this.MW=Ic(function(){return new Rc(q)}); g.z(this,this.MW);this.Qn=Ic(function(){return new gG(p)}); g.z(this,this.Qn);this.b3=Ic(function(){return new uH(p)}); g.z(this,this.b3);this.wS=Ic(function(){return new T$(p)}); g.z(this,this.wS);this.tj=Ic(function(){return new lH(p)}); g.z(this,this.tj);this.uh=Ic(function(){return new jB(p)}); g.z(this,this.uh);var y=Ic(function(){return new fU(J)}); g.z(this,y);var Y=Ic(function(){return new Eq(F.uh)}); g.z(this,Y);var T=Ic(function(){return new UX(d,b,S,F.uh,Y,null,null,F.FU,F.I8)}); g.z(this,T);this.n$=Ic(function(){return new ry(p)}); g.z(this,this.n$);this.NQ=Ic(function(){return new eC}); g.z(this,this.NQ);this.XG=Ic(function(){return new oM(p,N,F.uh)}); g.z(this,this.XG);var A=aD({XG:this.XG,uh:this.uh,y4:Y}),V=A.context,D=A.HN;this.Xd=A.Xd;this.H1=Ic(function(){return new Yj(p,F.uh,F.mS)}); this.FG=Ic(function(){return new qV(p,F.XG,F.uh)}); g.z(this,this.FG);this.uG=Ic(function(){return new HG(F.FG,p,F.uh)}); g.z(this,this.uG);this.mS=Ic(function(){return new Ja(p,U,F.uG,F.XG,F.Xd,F.uh,D)}); g.z(this,this.mS);this.tB=Ic(function(){return new h9(F.uh)}); g.z(this,this.tB);this.Hl=new TO(Ye,CU,function(w,X,B,O){return gR(S.get(),w,X,B,O)},f,b,S,Y,this.uh,this.XG); g.z(this,this.Hl);this.N2=new ro(f,T,t,this.uh,k,this.XG,this.FG,this.Qn);g.z(this,this.N2);var v=new MA(p,this.N2,this.FG,this.XG,this.H1);this.Xw=Ic(function(){return v}); this.zO=v;this.FU=new No(f,b,this.Xw,this.H1,this.FG,this.uh,this.mS);g.z(this,this.FU);this.V7=new Cx(f,b,this.b3,this.Xw,V);g.z(this,this.V7);this.P1=new nJ(this.uh,f,b,T,this.XG,this.V7,t);g.z(this,this.P1);this.u0=Ic(function(){return new d$(y,S,Y,F.uh,F.mS,F.FG)}); g.z(this,this.u0);this.CZ=Ic(function(){return new En}); g.z(this,this.CZ);this.uD=new vl(k,this.EF,this.uh);g.z(this,this.uD);this.vp=new cl(k);g.z(this,this.vp);this.Ql=new nx(k);g.z(this,this.Ql);this.Is=new iA(k,this.Xw,V);g.z(this,this.Is);this.wI=new Qf(k,this.b3,this.FG,this.XG,V);g.z(this,this.wI);this.o8=new GO(k);g.z(this,this.o8);this.kN=new IH(k);g.z(this,this.kN);this.G7=new zO(k);g.z(this,this.G7);this.NP=Ic(function(){return new Zk(p)}); g.z(this,this.NP);this.OX=new eg(k);g.z(this,this.OX);this.I8=new XA(k,this.H1,this.FG,this.mS,this.Xw);g.z(this,this.I8);this.Er=Ic(function(){return new Wl}); g.z(this,this.Er);this.dA=Ic(function(){return new Dt(F.FG)}); g.z(this,this.dA);this.sZ=Ic(function(){return new uL(F.P1,f,d)}); g.z(this,this.sZ);this.MB=Ic(function(){return new On(F.uh,F.mS,F.o8,F.uG)}); g.z(this,this.MB);this.iV=Ic(function(){return new O4i(F.EF,F.FG,F.mS,U,F.uG,F.Ql,F.G7,F.MW,F.uh,t)}); g.z(this,this.iV);this.G6=Ic(function(){return new o2(k,F.OX,F.o8,F.mS,F.uG,F.tB,F.wS,F.XG,F.FG,F.b3,F.Qn,F.tj,F.MW,F.n$,F.uh,F.NP,V,D)}); g.z(this,this.G6);this.Jv=new Ue(k,this.NQ,d);g.z(this,this.Jv);this.XI={hd:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.P1],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.N2],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V7]]),hV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u0],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ], ["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),jB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vp], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vp],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ql],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Is],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.wI],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.wI],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.wI],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.o8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Is],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kN],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.G7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.I8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.I8],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.I8],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.I8],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.I8]]),HO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Er],["SLOT_TYPE_FORECASTING",this.Er],["SLOT_TYPE_IN_PLAYER",this.Er],["SLOT_TYPE_PLAYER_BYTES",this.dA]]), ND:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sZ],["SLOT_TYPE_FORECASTING",this.MB],["SLOT_TYPE_IN_PLAYER",this.iV],["SLOT_TYPE_PLAYER_BYTES",this.G6]])};this.listeners=[U.get()];this.Y5={P1:this.P1,XE:this.uh.get(),VT:this.MW.get(),H4:this.FG.get(),N2:this.N2,Lr:d.get(),MZ:this.NQ.get(),KK:this.uD,Ga:U.get(),Ex:this.XG.get()}}; znS=function(k,p,t,J,q){g.R.call(this);var F=this,d=Ic(function(){return new hi(F.uh)}); g.z(this,d);var S=Ic(function(){return new Mo(d,F.uh)}); g.z(this,S);var U=Ic(function(){return new Ai}); g.z(this,U);var f=Ic(function(){return new Zt(k)}); g.z(this,f);var b=Ic(function(){return new go(d,S,F.uh)}); g.z(this,b);var N=Ic(function(){return new Kx}); g.z(this,N);this.EF=Ic(function(){return new bX(p)}); g.z(this,this.EF);this.MW=Ic(function(){return new Rc(q)}); g.z(this,this.MW);this.Qn=Ic(function(){return new gG(p)}); g.z(this,this.Qn);this.b3=Ic(function(){return new uH(p)}); g.z(this,this.b3);this.wS=Ic(function(){return new T$(p)}); g.z(this,this.wS);this.tj=Ic(function(){return new lH(p)}); g.z(this,this.tj);this.uh=Ic(function(){return new jB(p)}); g.z(this,this.uh);var y=Ic(function(){return new fU(J)}); g.z(this,y);var Y=Ic(function(){return new Eq(F.uh)}); g.z(this,Y);var T=Ic(function(){return new UX(d,b,S,F.uh,Y,null,null,null,null)}); g.z(this,T);this.n$=Ic(function(){return new ry(p)}); g.z(this,this.n$);this.XG=Ic(function(){return new oM(p,N,F.uh)}); g.z(this,this.XG);var A=aD({XG:this.XG,uh:this.uh,y4:Y}),V=A.context,D=A.HN;this.Xd=A.Xd;this.FG=Ic(function(){return new qV(p,F.XG,F.uh)}); g.z(this,this.FG);this.uG=Ic(function(){return new HG(F.FG,p,F.uh)}); g.z(this,this.uG);this.mS=Ic(function(){return new Ja(p,U,F.uG,F.XG,F.Xd,F.uh,D)}); g.z(this,this.mS);this.tB=Ic(function(){return new h9(F.uh)}); g.z(this,this.tB);this.Hl=new TO(Ye,CU,function(w,X,B,O){return gR(S.get(),w,X,B,O)},f,b,S,Y,this.uh,this.XG); g.z(this,this.Hl);this.N2=new ro(f,T,t,this.uh,k,this.XG,this.FG,this.Qn);g.z(this,this.N2);var v=new MA(p,this.N2,this.FG,this.XG);this.Xw=Ic(function(){return v}); this.zO=v;this.V7=new Cx(f,b,this.b3,this.Xw,V);g.z(this,this.V7);this.P1=new nJ(this.uh,f,b,T,this.XG,this.V7,t);g.z(this,this.P1);this.u0=Ic(function(){return new d$(y,S,Y,F.uh,F.mS,F.FG)}); g.z(this,this.u0);this.CZ=Ic(function(){return new En}); g.z(this,this.CZ);this.uD=new vl(k,this.EF,this.uh);g.z(this,this.uD);this.vp=new cl(k);g.z(this,this.vp);this.Is=new iA(k,this.Xw,V);g.z(this,this.Is);this.wI=new Qf(k,this.b3,this.FG,this.XG,V);g.z(this,this.wI);this.o8=new GO(k);g.z(this,this.o8);this.kN=new IH(k);g.z(this,this.kN);this.NP=Ic(function(){return new Zk(p)}); g.z(this,this.NP);this.OX=new eg(k);g.z(this,this.OX);this.Er=Ic(function(){return new Wl}); g.z(this,this.Er);this.dA=Ic(function(){return new Dt(F.FG)}); g.z(this,this.dA);this.sZ=Ic(function(){return new uL(F.P1,f,d)}); g.z(this,this.sZ);this.MB=Ic(function(){return new On(F.uh,F.mS,F.o8,F.uG)}); g.z(this,this.MB);this.Jh=Ic(function(){return new FM0(F.EF,F.FG,F.mS,U,t,F.uh)}); g.z(this,this.Jh);this.G6=Ic(function(){return new o2(k,F.OX,F.o8,F.mS,F.uG,F.tB,F.wS,F.XG,F.FG,F.b3,F.Qn,F.tj,F.MW,F.n$,F.uh,F.NP,V,D)}); g.z(this,this.G6);this.XI={hd:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.P1],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.N2],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V7]]),hV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u0],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),jB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.vp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vp],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Is],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.wI],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.wI],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.o8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Is],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OX]]),HO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Er],["SLOT_TYPE_ABOVE_FEED",this.Er],["SLOT_TYPE_FORECASTING",this.Er],["SLOT_TYPE_IN_PLAYER",this.Er],["SLOT_TYPE_PLAYER_BYTES",this.dA]]),ND:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sZ],["SLOT_TYPE_FORECASTING",this.MB],["SLOT_TYPE_IN_PLAYER", this.Jh],["SLOT_TYPE_PLAYER_BYTES",this.G6]])};this.listeners=[U.get()];this.Y5={P1:this.P1,XE:this.uh.get(),VT:this.MW.get(),H4:this.FG.get(),N2:this.N2,Lr:d.get(),MZ:null,KK:this.uD,Ga:U.get(),Ex:this.XG.get()}}; enw=function(k,p,t,J,q){g.R.call(this);var F=this,d=Ic(function(){return new hi(F.uh)}); g.z(this,d);var S=Ic(function(){return new Mo(d,F.uh)}); g.z(this,S);var U=Ic(function(){return new Ai}); g.z(this,U);var f=Ic(function(){return new Zt(k)}); g.z(this,f);var b=Ic(function(){return new go(d,S,F.uh)}); g.z(this,b);var N=Ic(function(){return new Kx}); g.z(this,N);this.Rh=Ic(function(){return new X_j(p)}); g.z(this,this.Rh);this.EF=Ic(function(){return new bX(p)}); g.z(this,this.EF);this.MW=Ic(function(){return new Rc(q)}); g.z(this,this.MW);this.Qn=Ic(function(){return new gG(p)}); g.z(this,this.Qn);this.b3=Ic(function(){return new uH(p)}); g.z(this,this.b3);this.wS=Ic(function(){return new T$(p)}); g.z(this,this.wS);this.tj=Ic(function(){return new lH(p)}); g.z(this,this.tj);this.uh=Ic(function(){return new jB(p)}); g.z(this,this.uh);var y=Ic(function(){return new fU(J)}); g.z(this,y);var Y=Ic(function(){return new Eq(F.uh)}); g.z(this,Y);var T=Ic(function(){return new UX(d,b,S,F.uh,Y,null,null,null,null)}); g.z(this,T);this.n$=Ic(function(){return new ry(p)}); g.z(this,this.n$);this.XG=Ic(function(){return new oM(p,N,F.uh)}); g.z(this,this.XG);var A=aD({XG:this.XG,uh:this.uh,y4:Y}),V=A.context,D=A.HN;this.Xd=A.Xd;this.FG=Ic(function(){return new qV(p,F.XG,F.uh)}); g.z(this,this.FG);this.uG=Ic(function(){return new HG(F.FG,p,F.uh)}); g.z(this,this.uG);this.mS=Ic(function(){return new Ja(p,U,F.uG,F.XG,F.Xd,F.uh,D)}); g.z(this,this.mS);this.tB=Ic(function(){return new h9(F.uh)}); g.z(this,this.tB);this.Hl=new TO(Pd9,CU,function(w,X,B,O){return tCe(S.get(),w,X,B,O)},f,b,S,Y,this.uh,this.XG); g.z(this,this.Hl);this.N2=new ro(f,T,t,this.uh,k,this.XG,this.FG,this.Qn);g.z(this,this.N2);var v=new MA(p,this.N2,this.FG,this.XG);this.Xw=Ic(function(){return v}); this.zO=v;this.V7=new Cx(f,b,this.b3,this.Xw,V);g.z(this,this.V7);this.P1=new nJ(this.uh,f,b,T,this.XG,this.V7,t);g.z(this,this.P1);this.u0=Ic(function(){return new d$(y,S,Y,F.uh,F.mS,F.FG)}); g.z(this,this.u0);this.CZ=Ic(function(){return new En}); g.z(this,this.CZ);this.uD=new vl(k,this.EF,this.uh);g.z(this,this.uD);this.vp=new cl(k);g.z(this,this.vp);this.Is=new iA(k,this.Xw,V);g.z(this,this.Is);this.wI=new Qf(k,this.b3,this.FG,this.XG,V);g.z(this,this.wI);this.o8=new GO(k);g.z(this,this.o8);this.kN=new IH(k);g.z(this,this.kN);this.NP=Ic(function(){return new Zk(p)}); g.z(this,this.NP);this.OX=new eg(k);g.z(this,this.OX);this.Er=Ic(function(){return new Wl}); g.z(this,this.Er);this.dA=Ic(function(){return new Dt(F.FG)}); g.z(this,this.dA);this.sZ=Ic(function(){return new uL(F.P1,f,d)}); g.z(this,this.sZ);this.MB=Ic(function(){return new On(F.uh,F.mS,F.o8,F.uG)}); g.z(this,this.MB);this.G6=Ic(function(){return new o2(k,F.OX,F.o8,F.mS,F.uG,F.tB,F.wS,F.XG,F.FG,F.b3,F.Qn,F.tj,F.MW,F.n$,F.uh,F.NP,V,D)}); g.z(this,this.G6);this.XW=Ic(function(){return new H4S(F.EF,F.FG,F.mS,U,F.Rh,t,F.XG)}); g.z(this,this.XW);this.XI={hd:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.P1],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.N2],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V7]]),hV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u0],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),jB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.vp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vp],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Is],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.wI],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.wI],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.o8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Is],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OX]]),HO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Er],["SLOT_TYPE_FORECASTING",this.Er],["SLOT_TYPE_IN_PLAYER",this.Er],["SLOT_TYPE_PLAYER_BYTES",this.dA]]),ND:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sZ],["SLOT_TYPE_FORECASTING",this.MB],["SLOT_TYPE_IN_PLAYER",this.XW],["SLOT_TYPE_PLAYER_BYTES", this.G6]])};this.listeners=[U.get()];this.Y5={P1:this.P1,XE:this.uh.get(),VT:this.MW.get(),H4:this.FG.get(),N2:this.N2,Lr:d.get(),MZ:null,KK:this.uD,Ga:U.get(),Ex:this.XG.get()}}; hnM=function(k,p,t,J,q){g.R.call(this);var F=this,d=Ic(function(){return new hi(F.uh)}); g.z(this,d);var S=Ic(function(){return new Mo(d,F.uh)}); g.z(this,S);var U=Ic(function(){return new Ai}); g.z(this,U);var f=Ic(function(){return new Zt(k)}); g.z(this,f);var b=Ic(function(){return new go(d,S,F.uh)}); g.z(this,b);var N=Ic(function(){return new Kx}); g.z(this,N);this.Rh=Ic(function(){return new X_j(p)}); g.z(this,this.Rh);this.EF=Ic(function(){return new bX(p)}); g.z(this,this.EF);this.MW=Ic(function(){return new Rc(q)}); g.z(this,this.MW);this.Qn=Ic(function(){return new gG(p)}); g.z(this,this.Qn);this.b3=Ic(function(){return new uH(p)}); g.z(this,this.b3);this.wS=Ic(function(){return new T$(p)}); g.z(this,this.wS);this.tj=Ic(function(){return new lH(p)}); g.z(this,this.tj);this.uh=Ic(function(){return new jB(p)}); g.z(this,this.uh);var y=Ic(function(){return new fU(J)}); g.z(this,y);var Y=Ic(function(){return new Eq(F.uh)}); g.z(this,Y);this.n$=Ic(function(){return new ry(p)}); g.z(this,this.n$);this.XG=Ic(function(){return new oM(p,N,F.uh)}); g.z(this,this.XG);var T=aD({XG:this.XG,uh:this.uh,y4:Y}),A=T.context,V=T.HN;this.Xd=T.Xd;this.H1=Ic(function(){return new Yj(p,F.uh,F.mS)}); g.z(this,this.H1);this.NP=Ic(function(){return new Zk(p)}); g.z(this,this.NP);this.FG=Ic(function(){return new qV(p,F.XG,F.uh)}); g.z(this,this.FG);T=Ic(function(){return new UX(d,b,S,F.uh,Y,null,F.FG,F.FU,F.I8,3)}); g.z(this,T);this.tB=Ic(function(){return new h9(F.uh)}); this.uG=Ic(function(){return new HG(F.FG,p,F.uh)}); g.z(this,this.uG);this.mS=Ic(function(){return new Ja(p,U,F.uG,F.XG,F.Xd,F.uh,V)}); g.z(this,this.mS);this.N2=new ro(f,T,t,this.uh,k,this.XG,this.FG,this.Qn);g.z(this,this.N2);var D=new MA(p,this.N2,this.FG,this.XG,this.H1);this.Xw=Ic(function(){return D}); this.zO=D;this.Hl=new TO(Gn0,CU,function(v,w,X,B){return tCe(S.get(),v,w,X,B)},f,b,S,Y,this.uh,this.XG); g.z(this,this.Hl);this.FU=new No(f,b,this.Xw,this.H1,this.FG,this.uh,this.mS,this.NP);g.z(this,this.FU);this.V7=new Cx(f,b,this.b3,this.Xw,A);g.z(this,this.V7);this.P1=new nJ(this.uh,f,b,T,this.XG,this.V7,t);g.z(this,this.P1);this.u0=Ic(function(){return new d$(y,S,Y,F.uh,F.mS,F.FG,F.NP)}); g.z(this,this.u0);this.CZ=Ic(function(){return new En}); g.z(this,this.CZ);this.uD=new vl(k,this.EF,this.uh);g.z(this,this.uD);this.vp=new cl(k);g.z(this,this.vp);this.Is=new iA(k,this.Xw,A);g.z(this,this.Is);this.wI=new Qf(k,this.b3,this.FG,this.XG,A);g.z(this,this.wI);this.xp=new Pl(k,this.XG);g.z(this,this.xp);this.I8=new XA(k,this.H1,this.FG,this.mS,this.Xw);g.z(this,this.I8);this.o8=new GO(k);g.z(this,this.o8);this.kN=new IH(k);g.z(this,this.kN);this.OX=new eg(k);g.z(this,this.OX);this.Er=Ic(function(){return new Wl}); g.z(this,this.Er);this.dA=Ic(function(){return new Dt(F.FG)}); g.z(this,this.dA);this.sZ=Ic(function(){return new uL(F.P1,f,d)}); g.z(this,this.sZ);this.MB=Ic(function(){return new On(F.uh,F.mS,F.o8,F.uG)}); g.z(this,this.MB);this.G6=Ic(function(){return new Jd(k,F.OX,F.o8,F.XG,F.NP,F.FG,F.mS,N,F.H1,F.uG,F.tB,F.wS,F.b3,F.Qn,F.tj,F.MW,F.n$,F.uh,U,A,V)}); g.z(this,this.G6);this.iV=Ic(function(){return new xTT(F.EF,F.FG,F.mS,U,F.Rh,t,F.uh,F.XG)}); g.z(this,this.iV);this.XI={hd:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.P1],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.N2],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V7]]),hV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u0],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),jB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.uD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vp],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Is],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.wI],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.wI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.o8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Is],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.I8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.I8],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.I8],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.I8],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.I8]]),HO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Er],["SLOT_TYPE_FORECASTING",this.Er],["SLOT_TYPE_IN_PLAYER",this.Er],["SLOT_TYPE_PLAYER_BYTES",this.dA]]),ND:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sZ],["SLOT_TYPE_FORECASTING",this.MB],["SLOT_TYPE_PLAYER_BYTES",this.G6],["SLOT_TYPE_IN_PLAYER",this.iV]])};this.listeners=[U.get()]; this.Y5={P1:this.P1,XE:this.uh.get(),VT:this.MW.get(),H4:this.FG.get(),N2:this.N2,Lr:d.get(),MZ:null,KK:this.uD,Ga:U.get(),Ex:this.XG.get()}}; MS6=function(k,p,t,J){function q(){return F.Y} g.R.call(this);var F=this;k.G().experiments.Gb("html5_dispose_of_manager_before_dependency")?(this.T=aGu(q,k,p,t,J),this.Y=(new XT(this.T)).N(),g.z(this,this.Y),g.z(this,this.T)):(this.T=aGu(q,k,p,t,J),g.z(this,this.T),this.Y=(new XT(this.T)).N(),g.z(this,this.Y))}; Aa=function(k){return k.T.Y5}; aGu=function(k,p,t,J,q){try{var F=p.G();if(g.Mu(F))var d=new Rnw(k,p,t,J,q);else if(g.u$(F))d=new Bzw(k,p,t,J,q);else if(Ir(F))d=new znS(k,p,t,J,q);else if(g.Qj(F))d=new enw(k,p,t,J,q);else if(g.nl(F))d=new hnM(k,p,t,J,q);else throw new TypeError("Unknown web interface");return d}catch(S){return d=p.G(),d3("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:d.T.cplatform,interface:d.T.c,qHr:d.T.cver,FpG:d.T.ctheme,QWh:d.T.cplayer,pkG:d.playerStyle}),new LA9(k,p,t,J,q)}}; g4i=function(k){BR.call(this,k)}; uWT=function(k,p,t,J,q){l3.call(this,k,{K:"div",W:"ytp-ad-timed-pie-countdown-container",U:[{K:"svg",W:"ytp-ad-timed-pie-countdown",J:{viewBox:"0 0 20 20"},U:[{K:"circle",W:"ytp-ad-timed-pie-countdown-background",J:{r:"10",cx:"10",cy:"10"}},{K:"circle",W:"ytp-ad-timed-pie-countdown-inner",J:{r:"5",cx:"10",cy:"10"}},{K:"circle",W:"ytp-ad-timed-pie-countdown-outer",J:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",p,t,J,q);this.C=this.Kp("ytp-ad-timed-pie-countdown-container");this.N=this.Kp("ytp-ad-timed-pie-countdown-inner"); this.S=this.Kp("ytp-ad-timed-pie-countdown-outer");this.Y=Math.ceil(2*Math.PI*5);this.hide()}; lG0=function(k,p,t,J,q,F){SA.call(this,k,{K:"div",W:"ytp-ad-action-interstitial",J:{tabindex:"0"},U:[{K:"div",W:"ytp-ad-action-interstitial-background-container"},{K:"div",W:"ytp-ad-action-interstitial-slot",U:[{K:"div",W:"ytp-ad-action-interstitial-instream-info"},{K:"div",W:"ytp-ad-action-interstitial-card",U:[{K:"div",W:"ytp-ad-action-interstitial-image-container"},{K:"div",W:"ytp-ad-action-interstitial-headline-container"},{K:"div",W:"ytp-ad-action-interstitial-description-container"},{K:"div", W:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",p,t,J);this.XK=q;this.Ke=F;this.navigationEndpoint=this.T=this.skipButton=this.Y=this.actionButton=null;this.RY=this.Kp("ytp-ad-action-interstitial-instream-info");this.qO=this.Kp("ytp-ad-action-interstitial-image-container");this.L=new Gs(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-ad-action-interstitial-image");g.z(this,this.L);this.L.QT(this.qO);this.j6=this.Kp("ytp-ad-action-interstitial-headline-container"); this.S=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-ad-action-interstitial-headline");g.z(this,this.S);this.S.QT(this.j6);this.Y8=this.Kp("ytp-ad-action-interstitial-description-container");this.N=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-ad-action-interstitial-description");g.z(this,this.N);this.N.QT(this.Y8);this.B0=this.Kp("ytp-ad-action-interstitial-background-container");this.W0=new Gs(this.api,this.layoutId,this.interactionLoggingClientData, this.VT,"ytp-ad-action-interstitial-background",!0);g.z(this,this.W0);this.W0.QT(this.B0);this.v0=this.Kp("ytp-ad-action-interstitial-action-button-container");this.slot=this.Kp("ytp-ad-action-interstitial-slot");this.kW=this.Kp("ytp-ad-action-interstitial-card");this.C=new VB;g.z(this,this.C);this.hide()}; jES=function(k){var p=g.lh("html5-video-player");p&&g.$E(p,"ytp-ad-display-override",k)}; x3L=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-overlay-slot",U:[{K:"div",W:"ytp-ad-overlay-container"}]},"invideo-overlay",p,t,J);this.L=[];this.B0=this.j6=this.C=this.v0=this.RY=null;this.W0=!1;this.S=null;this.Y8=0;k=this.Kp("ytp-ad-overlay-container");this.qO=new J5(k,45E3,6E3,.3,.4);g.z(this,this.qO);this.N=Odu(this);g.z(this,this.N);this.N.QT(k);this.Y=KA_(this);g.z(this,this.Y);this.Y.QT(k);this.T=Hdq(this);g.z(this,this.T);this.T.QT(k);this.hide()}; Odu=function(k){var p=new g.EY({K:"div",W:"ytp-ad-text-overlay",U:[{K:"div",W:"ytp-ad-overlay-ad-info-button-container"},{K:"div",W:"ytp-ad-overlay-close-container",U:[{K:"button",W:"ytp-ad-overlay-close-button",U:[L1(kmi)]}]},{K:"div",W:"ytp-ad-overlay-title",sy:"{{title}}"},{K:"div",W:"ytp-ad-overlay-desc",sy:"{{description}}"},{K:"div",S6:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],sy:"{{displayUrl}}"}]});k.V(p.Kp("ytp-ad-overlay-title"),"click",function(t){mI(k,p.element,t)}); k.V(p.Kp("ytp-ad-overlay-link"),"click",function(t){mI(k,p.element,t)}); k.V(p.Kp("ytp-ad-overlay-close-container"),"click",k.kJ);p.hide();return p}; KA_=function(k){var p=new g.EY({K:"div",S6:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{K:"div",W:"ytp-ad-overlay-ad-info-button-container"},{K:"div",W:"ytp-ad-overlay-close-container",U:[{K:"button",W:"ytp-ad-overlay-close-button",U:[L1(kmi)]}]},{K:"div",W:"ytp-ad-overlay-text-image",U:[{K:"img",J:{src:"{{imageUrl}}"}}]},{K:"div",W:"ytp-ad-overlay-title",sy:"{{title}}"},{K:"div",W:"ytp-ad-overlay-desc",sy:"{{description}}"},{K:"div",S6:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], sy:"{{displayUrl}}"}]});k.V(p.Kp("ytp-ad-overlay-title"),"click",function(t){mI(k,p.element,t)}); k.V(p.Kp("ytp-ad-overlay-link"),"click",function(t){mI(k,p.element,t)}); k.V(p.Kp("ytp-ad-overlay-close-container"),"click",k.kJ);k.V(p.Kp("ytp-ad-overlay-text-image"),"click",k.gWp);p.hide();return p}; Hdq=function(k){var p=new g.EY({K:"div",W:"ytp-ad-image-overlay",U:[{K:"div",W:"ytp-ad-overlay-ad-info-button-container"},{K:"div",W:"ytp-ad-overlay-close-container",U:[{K:"button",W:"ytp-ad-overlay-close-button",U:[L1(kmi)]}]},{K:"div",W:"ytp-ad-overlay-image",U:[{K:"img",J:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});k.V(p.Kp("ytp-ad-overlay-image"),"click",function(t){mI(k,p.element,t)}); k.V(p.Kp("ytp-ad-overlay-close-container"),"click",k.kJ);p.hide();return p}; pY9=function(k,p){if(p){var t=g.e(p,sx)||null;t==null?g.nV(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(p=g.lh("video-ads ytp-ad-module")||null,p==null?g.nV(Error("Could not locate the root ads container element to attach the ad info dialog.")):(k.j6=new g.EY({K:"div",W:"ytp-ad-overlay-ad-info-dialog-container"}),g.z(k,k.j6),k.j6.QT(p),p=new Mq(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,k.j6.element,!1),g.z(k,p),p.init(tt("ad-info-hover-text-button"),t,k.macros), k.S?(p.QT(k.S,0),p.subscribe("f",k.VzS,k),p.subscribe("e",k.wF,k),k.V(k.S,"click",k.c50),k.V(g.lh("ytp-ad-button",p.element),"click",function(){var J;if(g.e((J=g.e(t.button,g.vT))==null?void 0:J.serviceEndpoint,oZe))k.W0=k.api.getPlayerState(1)===2,k.api.pauseVideo();else k.api.onAdUxClicked("ad-info-hover-text-button",k.layoutId)}),k.B0=p):g.nV(Error("Ad info button container within overlay ad was not present."))))}else g.wt(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; JIL=function(k,p){if(tku(k,Vh)||k.api.isMinimized())return!1;var t=UY(p.title),J=UY(p.description);if(g.WW(t)||g.WW(J))return!1;k.createServerVe(k.N.element,p.trackingParams||null);k.N.updateValue("title",UY(p.title));k.N.updateValue("description",UY(p.description));k.N.updateValue("displayUrl",UY(p.displayUrl));p.navigationEndpoint&&g.oT(k.L,p.navigationEndpoint);k.N.show();k.qO.start();k.logVisibility(k.N.element,!0);k.V(k.N.element,"mouseover",function(){k.Y8++}); return!0}; o$M=function(k,p){if(tku(k,Vh)||k.api.isMinimized())return!1;var t=UY(p.title),J=UY(p.description);if(g.WW(t)||g.WW(J))return!1;k.createServerVe(k.Y.element,p.trackingParams||null);k.Y.updateValue("title",UY(p.title));k.Y.updateValue("description",UY(p.description));k.Y.updateValue("displayUrl",UY(p.displayUrl));k.Y.updateValue("imageUrl",mvi(p.image));p.navigationEndpoint&&g.oT(k.L,p.navigationEndpoint);k.v0=p.imageNavigationEndpoint||null;k.Y.show();k.qO.start();k.logVisibility(k.Y.element,!0); k.V(k.Y.element,"mouseover",function(){k.Y8++}); return!0}; q9u=function(k,p){if(k.api.isMinimized())return!1;var t=VYq(p.image),J=t;t.width<Vh.width&&(J=Vh);if(t.width===0||t.height===0||tku(k,J))return!1;k.createServerVe(k.T.element,p.trackingParams||null);k.T.updateValue("imageUrl",mvi(p.image));k.T.updateValue("width",t.width);k.T.updateValue("height",t.height);p.navigationEndpoint&&g.oT(k.L,p.navigationEndpoint);g.S4(k.T.Kp("ytp-ad-image-overlay"),"max-width",t.width+"px");k.T.show();k.logVisibility(k.T.element,!0);k.V(k.T.element,"mouseover",function(){k.Y8++; k.api.Yl("invideo-overlay",k.layoutId)}); k.V(k.T.element,"mouseout",function(){k.api.gF("invideo-overlay",k.layoutId)}); return!0}; tku=function(k,p){var t=k.api.Uy().At(),J=k.api.kL(!0,!1);return(p=dp(t,t.height-(J.height+J.top),p))?(k.RY&&p&&(t=g.ih(k.macros),t.ERRORCODE=p.Bo.toString(),t.ERROR_MSG=p.errorMessage,k.layoutId?zk(k.VT,k.RY,k.layoutId,t):g.nV(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; mI=function(k,p,t){var J=g.ih(k.macros),q=g.AK(p);J.AW={toString:function(){return q.width.toString()}}; J.AH={toString:function(){return q.height.toString()}}; var F=g.Z0(t,p).floor();J.I_X={toString:function(){return F.x.toString()}}; J.NX={toString:function(){return F.x.toString()}}; J.I_Y={toString:function(){return F.y.toString()}}; J.NY={toString:function(){return F.y.toString()}}; J.NM={toString:function(){return k.Y8.toString()}}; p=g.Z(k.L);for(t=p.next();!t.done;t=p.next())t=t.value,k.layoutId?zk(k.VT,t,k.layoutId,J):g.nV(Error("Missing layoutId for invideo_overlay_ad."));k.api.pauseVideo()}; F9M=function(k,p){k=k.api.getRootNode();g.$E(k,"ytp-ad-overlay-open",p);g.$E(k,"ytp-ad-overlay-closed",!p)}; $xe=function(k,p,t,J,q){l3.call(this,k,{K:"div",W:"ytp-ad-message-overlay",U:[{K:"div",W:"ytp-ad-message-slot"}]},"ad-message",p,t,J,q);var F=this;this.S=-1;this.N=0;this.Y8=!1;this.j6=this.Kp("ytp-ad-message-slot");this.Y=new g.EY({K:"span",W:"ytp-ad-message-container"});this.Y.QT(this.j6);g.z(this,this.Y);this.messageText=new gP(this.api,this.layoutId,this.interactionLoggingClientData,J,"ytp-ad-message-text");g.z(this,this.messageText);this.messageText.QT(this.Y.element);this.C=new g.K1(this.Y, 400,!1,100,function(){F.hide()}); g.z(this,this.C);this.hide()}; dx_=function(k,p){k=k.api.getRootNode();g.$E(k,"ytp-ad-overlay-open",p);g.$E(k,"ytp-ad-overlay-closed",!p)}; E$6=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-underlay-companion",U:[{K:"div",W:"ytp-ad-underlay-side-container",U:[{K:"div",W:"ytp-ad-underlay-image-container"},{K:"div",W:"ytp-ad-underlay-description-container"},{K:"div",W:"ytp-ad-underlay-headline-container"},{K:"div",W:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",p,t,J);this.actionButton=null;this.j6=this.Kp("ytp-ad-underlay-image-container");this.N=new Gs(this.api,this.layoutId,this.interactionLoggingClientData, this.VT,"ytp-ad-underlay-image");g.z(this,this.N);this.N.QT(this.j6);this.Y8=this.Kp("ytp-ad-underlay-headline-container");this.Y=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-ad-underlay-headline");g.z(this,this.Y);this.Y.QT(this.Y8);this.L=this.Kp("ytp-ad-underlay-description-container");this.C=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-ad-underlay-description");g.z(this,this.C);this.C.QT(this.L);this.S=this.Kp("ytp-ad-underlay-action-button-container"); this.T=this.Kp("ytp-ad-underlay-side-container");this.hide()}; S9L=function(k){var p=g.lh("html5-video-player");p&&g.$E(p,"ytp-ad-display-override",k)}; Wf=function(k,p,t,J,q,F){F=F===void 0?function(){}:F; SA.call(this,k,{K:"div",W:"ytp-ad-survey-answer"},"survey-answer",p,t,J);this.index=q;this.onSelected=F;this.T=null;this.toggledLoggingParams="";this.answer=this.Kp("ytp-ad-survey-answer");this.hide()}; Uxi=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",p,t,J);this.button=null;this.T=this.Kp("ytp-ad-survey-none-of-the-above");this.hide()}; Dk=function(k,p,t,J){var q=["ytp-ad-survey-submit-button"];q.push("ytp-ad-survey-submit-button-rounded");vR.call(this,k,p,t,J,q,"survey-submit")}; se=function(k,p,t,J,q){SA.call(this,k,{K:"div",W:"ytp-ad-survey-player-overlay",U:[{K:"div",W:"ytp-ad-survey-player-overlay-instream-info"},{K:"div",W:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{K:"div",W:"ytp-ad-survey-player-overlay-skip-or-preview"},{K:"div",W:"ytp-ad-survey-player-overlay-submit"}]},{K:"div",W:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",p,t,J);this.C=q;this.Y=this.T=null;this.N=this.Kp("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.Kp("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Kp("ytp-ad-survey-player-overlay-submit");g.z(this,this.C);this.hide()}; LU=function(k,p,t,J,q,F){F=F===void 0?function(){}:F; SA.call(this,k,{K:"div",W:"ytp-ad-survey-question",U:[{K:"div",S6:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{K:"div",S6:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{K:"div",S6:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{K:"div",W:"ytp-ad-survey-question-background"}]},q,p,t,J);this.j6=F;this.C=null;this.Y=[];this.T=null;this.L=this.api.G().experiments.Gb("a11y_h5_associate_survey_question");this.question=this.Kp("ytp-ad-survey-question"); this.qO=this.Kp("ytp-ad-survey-question-background");this.questionText=this.Kp("ytp-ad-survey-question-text");this.answers=this.Kp("ytp-ad-survey-answers");this.playerOverlay=this.Kp("ytp-ad-survey-question-player-overlay");this.N=Date.now()}; fQe=function(k,p){p=g.f1(p);g.$W(k.questionText,p);k.L&&k.questionText.setAttribute("id",tt("survey-question-text"))}; bsS=function(k,p,t,J){J=new Wf(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,J,k.j6);J.QT(k.answers);J.init(tt("survey-answer"),p,t);k.L&&(p=k.questionText.getAttribute("id"),p!=null&&(J.T!==null?J.T.Y.setAttribute("aria-describedby",p):J.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",p)));k.Y.push(J)}; yIT=function(k,p){if(p){var t=p.background;t&&g.e(t,NsL)&&(t=(t=g.e(t,NsL).image)&&PR(t)||"",g.WW(t)?g.wt(Error("Found ThumbnailDetails without valid image URL")):g.S4(k.qO,"backgroundImage","url("+t+")"));if(p.durationMilliseconds==null||p.durationMilliseconds===void 0||p.durationMilliseconds===0)g.nV(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(p)));else{k.N=g.kn();k.T=new r3(k.api,p.durationMilliseconds);g.z(k,k.T);if(k.T&&p.instreamAdPlayerOverlay&&g.e(p.instreamAdPlayerOverlay, DK))try{var J=new se(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,k.T);J.QT(k.playerOverlay);J.init(tt("survey-player-overlay"),g.e(p.instreamAdPlayerOverlay,DK),k.macros);k.C=J;g.z(k,J);k.bI()}catch(q){g.nV(Error("ISAPOR had an error when initializing. Error: "+(q+" SurveyAdQuestionCommon: "+JSON.stringify(p))))}else g.nV(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(p)));k.T&&p.durationMilliseconds&&p.durationMilliseconds>0?(p=new w3(k.api,k.T),p.QT(k.playerOverlay), g.z(k,p)):g.nV(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(p)))}}else g.nV(Error("addCommonComponents() needs to be called before starting countdown."))}; Y9j=function(k){function p(t){return{toString:function(){return t()}}} k.macros.SURVEY_LOCAL_TIME_EPOCH_S=p(function(){var t=new Date;return(Math.round(t.valueOf()/1E3)+-1*t.getTimezoneOffset()*60).toString()}); k.macros.SURVEY_ELAPSED_MS=p(function(){return(Date.now()-k.N).toString()})}; TsS=function(k,p,t,J,q){LU.call(this,k,p,t,J,"survey-question-multi-select");this.Y8=q;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}; rIu=function(k,p,t){k.noneOfTheAbove=new Uxi(k.api,k.layoutId,k.interactionLoggingClientData,k.VT);k.noneOfTheAbove.QT(k.answers);k.noneOfTheAbove.init(tt("survey-none-of-the-above"),p,t)}; C0q=function(k){k.Y.forEach(function(p){p.T.toggleButton(!1)}); ZsT(k,!0)}; ZsT=function(k,p){var t=k.C;k=AI6(k);p=p===void 0?!1:p;t.T&&(k?t.T.hide():t.T.show(),p&&t.T instanceof NO&&!t.T.C&&bwi(t.T,!1));t.Y&&(k?t.Y.show():t.Y.hide())}; AI6=function(k){return k.Y.some(function(p){return p.T.isToggled()})||k.noneOfTheAbove.button.isToggled()}; vf=function(k,p,t,J,q){LU.call(this,k,p,t,J,"survey-question-single-select",function(d){F.api.G().D("supports_multi_step_on_desktop")&&q([d])}); var F=this;this.hide()}; cf=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-survey",U:[{K:"div",W:"ytp-ad-survey-questions"}]},"survey",p,t,J);this.questions=[];this.Y=[];this.conditioningRules=[];this.T=0;this.S=this.Kp("ytp-ad-survey-questions");this.api.G().D("fix_survey_color_contrast_on_destop")&&this.Kp("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().D("web_enable_speedmaster")&&this.Kp("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; W99=function(k,p){var t=k.Y[p],J;(J=k.N)==null||J.dispose();g.e(t,WT)?mxi(k,g.e(t,WT),k.macros):g.e(t,Vk)&&Vk0(k,g.e(t,Vk),k.macros);k.T=p}; mxi=function(k,p,t){var J=new vf(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,k.C.bind(k));J.QT(k.S);J.init(tt("survey-question-single-select"),p,t);k.api.G().D("supports_multi_step_on_desktop")?k.N=J:k.questions.push(J);g.z(k,J)}; Vk0=function(k,p,t){var J=new TsS(k.api,k.layoutId,k.interactionLoggingClientData,k.VT,k.C.bind(k));J.QT(k.S);J.init(tt("survey-question-multi-select"),p,t);k.api.G().D("supports_multi_step_on_desktop")?k.N=J:k.questions.push(J);g.z(k,J)}; nU=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-survey-interstitial",U:[{K:"div",W:"ytp-ad-survey-interstitial-contents",U:[{K:"div",W:"ytp-ad-survey-interstitial-logo",U:[{K:"div",W:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",W:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",p,t,J);this.T=this.actionButton=null;this.interstitial=this.Kp("ytp-ad-survey-interstitial");this.Y=this.Kp("ytp-ad-survey-interstitial-contents");this.text=this.Kp("ytp-ad-survey-interstitial-text"); this.logoImage=this.Kp("ytp-ad-survey-interstitial-logo-image");this.transition=new g.K1(this,500,!1,300);g.z(this,this.transition)}; Dxj=function(k,p){p=p&&PR(p)||"";if(g.WW(p))g.wt(Error("Found ThumbnailDetails without valid image URL"));else{var t=k.style;k=k.style.cssText;var J=document.implementation.createHTMLDocument("").createElement("DIV");J.style.cssText=k;k=HZe(J.style);t.cssText=[k,'background-image:url("'+p+'");'].join("")}}; sCe=function(k){var p=g.lh("html5-video-player");p&&g.$E(p,"ytp-ad-display-override",k)}; wy=function(k,p,t,J,q,F){F=F===void 0?0:F;l3.call(this,k,{K:"div",W:"ytp-preview-ad",U:[{K:"div",W:"ytp-preview-ad__text"}]},"preview-ad",p,t,J,q);var d=this;this.Y8=F;this.Y=0;this.C=-1;this.N=this.Kp("ytp-preview-ad__text");switch(this.Y8){case 1:this.N.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.K1(this,400,!1,100,function(){d.hide()}); g.z(this,this.transition);this.hide()}; iX=function(k,p,t,J){SA.call(this,k,{K:"img",W:"ytp-ad-avatar"},"ad-avatar",p,t,J);this.hide()}; L9q=function(k){switch(k.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}}; Qh=function(k,p,t,J,q,F){q=q===void 0?!1:q;F=F===void 0?!1:F;SA.call(this,k,{K:"button",W:"ytp-ad-button-vm"},"ad-button",p,t,J);this.buttonText=this.buttonIcon=null;this.hide();this.T=q;this.Y=F}; v$e=function(k,p,t,J,q){l3.call(this,k,{K:"div",S6:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],U:[{K:"div",W:"ytp-ad-avatar-lockup-card__avatar_and_text_container",U:[{K:"div",W:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",p,t,J,q);this.startMilliseconds=0;this.adAvatar=new iX(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.adAvatar);on(this.element,this.adAvatar.element,0);this.headline=new Dy(this.api,this.layoutId, this.interactionLoggingClientData,this.VT);g.z(this,this.headline);this.headline.QT(this.Kp("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.description);this.description.QT(this.Kp("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Qh(this.api, this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.adButton);this.adButton.QT(this.element);this.hide()}; Pf=function(k,p,t,J){SA.call(this,k,{K:"button",W:"ytp-skip-ad-button",U:[{K:"div",W:"ytp-skip-ad-button__text"}]},"skip-button",p,t,J);var q=this;this.Y=!1;this.C=this.Kp("ytp-skip-ad-button__text");this.transition=new g.K1(this,500,!1,100,function(){q.hide()}); g.z(this,this.transition);this.T=new J5(this.element,15E3,5E3,.5,.5,!0);g.z(this,this.T);this.hide()}; cIi=function(k,p,t,J,q){l3.call(this,k,{K:"div",W:"ytp-skip-ad"},"skip-ad",p,t,J,q);this.skipOffsetMilliseconds=0;this.C=this.isSkippable=!1;var F;if((F=this.api.getVideoData())==null?0:F.isDaiEnabled())this.C=this.api.G().D("clean_player_style_fix_on_web");if(this.C||!this.api.G().experiments.Gb("disable_ad_preview_for_instream_ads"))this.Y=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.T),g.z(this,this.Y),this.Y.QT(this.element);this.N=new Pf(this.api,this.layoutId, this.interactionLoggingClientData,this.VT);g.z(this,this.N);this.N.QT(this.element);this.hide()}; G$=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-visit-advertiser-link"},"visit-advertiser-link",p,t,J);this.hide();this.api.D("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.D("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; IM=function(k,p,t,J,q){SA.call(this,k,{K:"div",W:"ytp-ad-player-overlay-layout",U:[{K:"div",W:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",W:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",W:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",W:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",p,t,J);this.Y=q;this.j6=this.Kp("ytp-ad-player-overlay-layout__player-card-container");this.T=this.Kp("ytp-ad-player-overlay-layout__ad-info-container"); this.L=this.Kp("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y8=this.Kp("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; n$6=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-grid-card-text",U:[{K:"div",W:"ytp-ad-grid-card-text__metadata",U:[{K:"div",W:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",W:"ytp-ad-grid-card-text__metadata__description",U:[{K:"div",W:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",W:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",W:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",p,t,J);this.headline=new Dy(this.api,this.layoutId,this.interactionLoggingClientData, this.VT);g.z(this,this.headline);this.headline.QT(this.Kp("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,!0);g.z(this,this.moreInfoButton);this.moreInfoButton.QT(this.Kp("ytp-ad-grid-card-text__button"))}; Xl=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",p,t,J);this.T=[]}; RM=function(k,p,t,J,q,F,d){l3.call(this,k,F,d,p,t,J,q);this.playerProgressOffsetMs=0;this.Y=!1}; wY9=function(k){var p=g.lh("html5-video-player");p&&g.$E(p,"ytp-ad-display-override",k)}; is9=function(k,p,t,J,q){RM.call(this,k,p,t,J,q,{K:"div",W:"ytp-display-underlay-text-grid-cards",U:[{K:"div",W:"ytp-display-underlay-text-grid-cards__content_container",U:[{K:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header",U:[{K:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",W:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {K:"div",W:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Xl(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.adGridCardCollection);this.adGridCardCollection.QT(this.Kp("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.adButton);this.adButton.QT(this.Kp("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.N=this.Kp("ytp-display-underlay-text-grid-cards__content_container");this.C=this.Kp("ytp-display-underlay-text-grid-cards__content_container__header")}; Bf=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-ad-details-line"},"ad-details-line",p,t,J);this.T=[];this.hide()}; z$=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-image-background",U:[{K:"img",W:"ytp-image-background-image"}]},"image-background",p,t,J);this.hide()}; QC_=function(k,p,t,J,q){l3.call(this,k,{K:"svg",W:"ytp-timed-pie-countdown",J:{viewBox:"0 0 20 20"},U:[{K:"circle",W:"ytp-timed-pie-countdown__background",J:{r:"10",cx:"10",cy:"10"}},{K:"circle",W:"ytp-timed-pie-countdown__inner",J:{r:"5",cx:"10",cy:"10"}},{K:"circle",W:"ytp-timed-pie-countdown__outer",J:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",p,t,J,q);this.N=this.Kp("ytp-timed-pie-countdown__inner");this.Y=Math.ceil(2*Math.PI*5);this.hide()}; eb=function(k,p,t,J){SA.call(this,k,{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout",J:{tabindex:"0"},U:[{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content",U:[{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",U:[{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",W:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",p,t,J);this.Y=null;this.C=this.Kp("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new VB;g.z(this,this.N);this.hide()}; P0S=function(k){var p=g.lh("html5-video-player");p&&g.$E(p,"ytp-ad-display-override",k)}; Gmi=function(k){if(!k.adAvatar||!g.e(k.adAvatar,ha))return g.nV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!k.headline)return g.nV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!k.adBadge||!g.e(k.adBadge,aM))return g.nV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!k.adButton||!g.e(k.adButton,MV))return g.nV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!k.adInfoRenderer|| !g.e(k.adInfoRenderer,sx))return g.nV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;k=k.durationMilliseconds||0;return typeof k!=="number"||k<=0?(g.nV(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+k)),!1):!0}; gy=function(k,p,t){BR.call(this,k);this.api=k;this.VT=p;this.Y={};k=new g.M({K:"div",S6:["video-ads","ytp-ad-module"]});g.z(this,k);Om&&g.JB(k.element,"ytp-ads-tiny-mode");this.X=new Y5(k.element);g.z(this,this.X);g.cO(this.api,k.element,4);u9(t)&&(t=new g.M({K:"div",S6:["ytp-ad-underlay"]}),g.z(this,t),this.N=new Y5(t.element),g.z(this,this.N),g.cO(this.api,t.element,0));g.z(this,hNS())}; IQu=function(k,p){k=g.nE(k.Y,p.id,null);k==null&&g.wt(Error("Component not found for element id: "+p.id));return k||null}; XYe=function(k){g.Wr.call(this,k);var p=this;this.Y=null;this.created=!1;this.N=k.G().D("h5_use_refactored_get_ad_break")?new wj6(this.player):new h3(this.player);this.C=function(){if(p.Y!=null)return p.Y;var J=new RAj({KK:Aa(p.T).KK,Ex:Aa(p.T).Ex,j:p.player,XE:Aa(p.T).XE,mS:p.T.T.mS,Ga:Aa(p.T).Ga,tj:p.T.T.tj});p.Y=J.V5;return p.Y}; this.T=new MS6(this.player,this,this.N,this.C);g.z(this,this.T);var t=k.G();!A9(t)||g.nl(t)||Ir(t)||(g.z(this,new gy(k,Aa(this.T).VT,Aa(this.T).XE)),g.z(this,new g4i(k)))}; Rw_=function(k){k.created!==k.loaded&&d3("Created and loaded are out of sync")}; ewS=function(k){g.Wr.prototype.load.call(k);var p=Aa(k.T).XE;try{k.player.getRootNode().classList.add("ad-created")}catch(U){d3(U instanceof Error?U:String(U))}var t=k.player.getVideoData(1),J=t&&t.videoId||"",q=t&&t.getPlayerResponse()||{},F=(!k.player.G().experiments.Gb("debug_ignore_ad_placements")&&q&&q.adPlacements||[]).map(function(U){return U.adPlacementRenderer}),d=((q==null?void 0:q.adSlots)||[]).map(function(U){return g.e(U,wR)}); q=q.playerConfig&&q.playerConfig.daiConfig&&q.playerConfig.daiConfig.enableDai||!1;t&&t.m2();F=BsS(F,d,p,Aa(k.T).Lr);d=t&&t.clientPlaybackNonce||"";t=t&&t.iB||!1;if(r2(p,!0)&&t){var S;p={};(S=k.player.getVideoData())==null||S.yT("p_cpb",(p.cc=d,p))}S=1E3*k.player.getDuration(1);zw6(k);k.T.T.zO.hM(d,S,t,F.K4,F.HZ,F.K4,q,J)}; zw6=function(k){var p,t;if(t=(p=k.player.getVideoData(1))==null||!p.iB)p=k.player.G(),t=A9(p)&&!g.Ck(p)&&p.playerStyle==="desktop-polymer";t&&(k=k.player.getInternalApi(),k.addEventListener("updateKevlarOrC3Companion",ZwL),k.addEventListener("updateEngagementPanelAction",Cce),k.addEventListener("changeEngagementPanelVisibility",Ay9),window.addEventListener("yt-navigate-start",VhM))}; uX=function(k,p){p===k.PY&&(k.PY=void 0)}; hw0=function(k){var p=Aa(k.T).N2,t=p.C().Py("SLOT_TYPE_PLAYER_BYTES",1);p=UE(p.XG.get(),1).clientPlaybackNonce;var J=!1;t=g.Z(t);for(var q=t.next();!q.done;q=t.next()){q=q.value;var F=q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q.slotEntryTrigger instanceof rp?q.slotEntryTrigger.EA:void 0;F&&F===p&&(J&&d3("More than 1 preroll playerBytes slot detected",q),J=!0)}J||Fl(Aa(k.T).H4)}; aQj=function(k){if(OM(Aa(k.T).XE))return!0;var p="";k=g.Z(Aa(k.T).Ga.K7.keys());for(var t=k.next();!t.done;t=k.next()){t=t.value;if(t.slotType==="SLOT_TYPE_PLAYER_BYTES"&&t.hp==="core")return!0;p+=t.slotType+" "}Math.random()<.01&&d3("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:p});return!1}; Mk6=function(k){k=g.Z(Aa(k.T).Ga.K7.values());for(var p=k.next();!p.done;p=k.next())if(p.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; QIj=function(k,p,t,J,q,F){t=t===void 0?[]:t;J=J===void 0?"":J;q=q===void 0?"":q;var d=Aa(k.T).XE,S=k.player.getVideoData(1);S&&S.getPlayerResponse();S&&S.m2();t=BsS(p,t,d,Aa(k.T).Lr);Xdh(Aa(k.T).P1,J,t.K4,t.HZ,p,q,F)}; BsS=function(k,p,t,J){p={K4:[],HZ:p};k=g.Z(k);for(var q=k.next();!q.done;q=k.next())if((q=q.value)&&q.renderer!=null){var F=q.renderer;if(!t.j.G().D("html5_enable_vod_lasr_with_notify_pacf")){var d=void 0,S=void 0,U=void 0,f=void 0,b=J;g.e((f=F.sandwichedLinearAdRenderer)==null?void 0:f.adVideoStart,Sg)?(d=g.e((U=F.sandwichedLinearAdRenderer)==null?void 0:U.adVideoStart,Sg),d=Hoj(d,b),g.Il(F.sandwichedLinearAdRenderer.adVideoStart,Sg,d)):g.e((S=F.linearAdSequenceRenderer)==null?void 0:S.adStart,Sg)&& (U=g.e((d=F.linearAdSequenceRenderer)==null?void 0:d.adStart,Sg),d=Hoj(U,b),g.Il(F.linearAdSequenceRenderer.adStart,Sg,d))}p.K4.push(q)}return p}; g.lX=function(k){if(typeof DOMParser!="undefined")return jc(new DOMParser,MLL(k),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.jb=function(k){g.R.call(this);this.callback=k;this.T=new rQ(0,0,.4,0,.2,1,1,1);this.delay=new g.lv(this.next,window,this);g.z(this,this.delay)}; g.g$j=function(k){var p=k.G();return p.nT&&!p.N&&g.V0(p)?k.isEmbedsShortsMode()?(k=k.kL(),Math.min(k.width,k.height)>=315):!k.yX():!1}; g.Oe=function(k){g.M.call(this,{K:"div",W:"ytp-more-videos-view",J:{tabIndex:"-1"}});var p=this;this.api=k;this.Y=!0;this.N=new g.nC(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.B=this.C=this.scrollPosition=0;this.title=new g.M({K:"h2",W:"ytp-related-title",sy:"{{title}}"});this.previous=new g.M({K:"button",S6:["ytp-button","ytp-previous"],J:{"aria-label":"Show previous suggested videos"},U:[g.yF()]});this.Z=new g.jb(function(t){p.suggestions.element.scrollLeft=-t}); this.next=new g.M({K:"button",S6:["ytp-button","ytp-next"],J:{"aria-label":"Show more suggested videos"},U:[g.Y3()]});g.z(this,this.N);this.S=k.G().C;g.z(this,this.title);this.title.QT(this.element);this.suggestions=new g.M({K:"div",W:"ytp-suggestions"});g.z(this,this.suggestions);this.suggestions.QT(this.element);g.z(this,this.previous);this.previous.QT(this.element);this.previous.listen("click",this.xG,this);g.z(this,this.Z);uQe(this);g.z(this,this.next);this.next.QT(this.element);this.next.listen("click", this.OM,this);this.N.V(this.api,"appresize",this.zA);this.N.V(this.api,"fullscreentoggled",this.BI);this.N.V(this.api,"videodatachange",this.onVideoDataChange);this.zA(this.api.Uy().getPlayerSize());this.onVideoDataChange()}; uQe=function(k){for(var p={fV:0};p.fV<16;p={fV:p.fV},++p.fV){var t=new g.M({K:"a",W:"ytp-suggestion-link",J:{href:"{{link}}",target:k.api.G().L,"aria-label":"{{aria_label}}"},U:[{K:"div",W:"ytp-suggestion-image"},{K:"div",W:"ytp-suggestion-overlay",J:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},U:[{K:"div",W:"ytp-suggestion-title",sy:"{{title}}"},{K:"div",W:"ytp-suggestion-author",sy:"{{author_and_views}}"},{K:"div",J:{"data-is-live":"{{is_live}}"},W:"ytp-suggestion-duration", sy:"{{duration}}"}]}]});g.z(k,t);var J=t.Kp("ytp-suggestion-link");g.S4(J,"transitionDelay",p.fV/20+"s");k.N.V(J,"click",function(q){return function(F){var d=q.fV;if(k.Y){var S=k.suggestionData[d],U=S.sessionData;k.S&&k.api.D("web_player_log_click_before_generating_ve_conversion_params")?(k.api.logClick(k.T[d].element),d=S.tP(),S={},g.sS(k.api,S),d=g.hM(d,S),g.pP(d,k.api,F)):g.kO(F,k.api,k.S,U||void 0)&&k.api.hf(S.videoId,U,S.playlistId)}else F.preventDefault(),document.activeElement.blur()}}(p)); t.QT(k.suggestions.element);k.T.push(t);k.api.createServerVe(t.element,t)}}; lQe=function(k){if(k.api.G().D("web_player_log_click_before_generating_ve_conversion_params"))for(var p=Math.floor(-k.scrollPosition/(k.C+8)),t=Math.min(p+k.columns,k.suggestionData.length)-1;p<=t;p++)k.api.logVisibility(k.T[p].element,!0)}; g.KU=function(k){var p=k.api.wj()?32:16;p=k.B/2+p;k.next.element.style.bottom=p+"px";k.previous.element.style.bottom=p+"px";p=k.scrollPosition;var t=k.containerWidth-k.suggestionData.length*(k.C+8);g.$E(k.element,"ytp-scroll-min",p>=0);g.$E(k.element,"ytp-scroll-max",p<=t)}; Osw=function(k){for(var p=k.suggestionData.length,t=0;t<p;++t){var J=void 0,q=void 0,F=void 0;J=k;var d=J.api.G(),S=J.suggestionData[t],U=J.T[t];F=J.api.isEmbedsShortsMode()?S.shortViewCount||"":S.shortViewCount?S.author+" \u2022 "+S.shortViewCount:S.author;U.element.style.display="";g.S4(U.Kp("ytp-suggestion-link"),"display","inline-block");jCe.test(S.title)&&(U.Kp("ytp-suggestion-title").dir="rtl");jCe.test(F)&&(U.Kp("ytp-suggestion-author").dir="rtl");q=S.isLivePlayback?"Live":S.lengthSeconds? g.Ca(S.lengthSeconds):"";var f=S.tP(J.api.isEmbedsShortsMode());if(g.V0(d)&&!d.D("web_player_log_click_before_generating_ve_conversion_params")){var b={};g.F4(J.api,"addEmbedsConversionTrackingParams",[b]);f=g.hM(f,b)}d.D("web_player_log_click_before_generating_ve_conversion_params")&&(d=(d=S.sessionData)&&d.itct)&&J.api.setTrackingParams(U.element,d);U.update({author_and_views:F,duration:q,link:f,title:S.title,aria_label:S.ariaLabel||S.title,is_live:S.isLivePlayback,aria_hidden:!!S.ariaLabel,blink_rendering_hack:g.sD|| g.As?"will-change: opacity":void 0});q=U.Kp("ytp-suggestion-image");J=J.api.isEmbedsShortsMode()?S.KL("hq2.jpg"):S.KL();q.style.backgroundImage=J?"url("+J+")":""}if(p<16)for(;p<16;++p)g.S4(k.T[p].Kp("ytp-suggestion-link"),"display","none");g.KU(k)}; kLi=[];SM=typeof Object.defineProperties=="function"?Object.defineProperty:function(k,p,t){if(k==Array.prototype||k==Object.prototype)return k;k[p]=t.value;return k}; g.dT=tMe(this);fS("Symbol",function(k){function p(F){if(this instanceof p)throw new TypeError("Symbol is not a constructor");return new t(J+(F||"")+"_"+q++,F)} function t(F,d){this.T=F;SM(this,"description",{configurable:!0,writable:!0,value:d})} if(k)return k;t.prototype.toString=function(){return this.T}; var J="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",q=0;return p}); fS("Symbol.iterator",function(k){if(k)return k;k=Symbol("Symbol.iterator");for(var p="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<p.length;t++){var J=g.dT[p[t]];typeof J==="function"&&typeof J.prototype[k]!="function"&&SM(J.prototype,k,{configurable:!0,writable:!0,value:function(){return Jw_(p9q(this))}})}return k}); var ohL=typeof Object.create=="function"?Object.create:function(k){function p(){} p.prototype=k;return new p},K9T=function(){function k(){function t(){} new t;Reflect.construct(t,[],function(){}); return new t instanceof t} if(typeof Reflect!="undefined"&&Reflect.construct){if(k())return Reflect.construct;var p=Reflect.construct;return function(t,J,q){t=p(t,J);q&&Reflect.setPrototypeOf(t,q.prototype);return t}}return function(t,J,q){q===void 0&&(q=t); q=ohL(q.prototype||Object.prototype);return Function.prototype.apply.call(t,q,J)||q}}(),Hse; if(typeof Object.setPrototypeOf=="function")Hse=Object.setPrototypeOf;else{var xxi;a:{var kLL={a:!0},p9J={};try{p9J.__proto__=kLL;xxi=p9J.a;break a}catch(k){}xxi=!1}Hse=xxi?function(k,p){k.__proto__=p;if(k.__proto__!==p)throw new TypeError(k+" is not extensible");return k}:null}var bq=Hse,tMS=typeof Object.assign=="function"?Object.assign:function(k,p){for(var t=1;t<arguments.length;t++){var J=arguments[t]; if(J)for(var q in J)yi(J,q)&&(k[q]=J[q])}return k}; fS("Object.assign",function(k){return k||tMS}); TL.prototype.B=function(k){this.Y=k}; TL.prototype.return=function(k){this.N={return:k};this.T=this.X}; TL.prototype.oY=function(k){this.T=k}; fS("globalThis",function(k){return k||g.dT}); fS("Reflect",function(k){return k?k:{}}); fS("Reflect.construct",function(){return K9T}); fS("Reflect.setPrototypeOf",function(k){return k?k:bq?function(p,t){try{return bq(p,t),!0}catch(J){return!1}}:null}); fS("Promise",function(k){function p(d){this.T=0;this.N=void 0;this.Y=[];this.Z=!1;var S=this.C();try{d(S.resolve,S.reject)}catch(U){S.reject(U)}} function t(){this.T=null} function J(d){return d instanceof p?d:new p(function(S){S(d)})} if(k)return k;t.prototype.Y=function(d){if(this.T==null){this.T=[];var S=this;this.N(function(){S.X()})}this.T.push(d)}; var q=g.dT.setTimeout;t.prototype.N=function(d){q(d,0)}; t.prototype.X=function(){for(;this.T&&this.T.length;){var d=this.T;this.T=[];for(var S=0;S<d.length;++S){var U=d[S];d[S]=null;try{U()}catch(f){this.C(f)}}}this.T=null}; t.prototype.C=function(d){this.N(function(){throw d;})}; p.prototype.C=function(){function d(f){return function(b){U||(U=!0,f.call(S,b))}} var S=this,U=!1;return{resolve:d(this.NO),reject:d(this.X)}}; p.prototype.NO=function(d){if(d===this)this.X(new TypeError("A Promise cannot resolve to itself"));else if(d instanceof p)this.j6(d);else{a:switch(typeof d){case "object":var S=d!=null;break a;case "function":S=!0;break a;default:S=!1}S?this.Y8(d):this.S(d)}}; p.prototype.Y8=function(d){var S=void 0;try{S=d.then}catch(U){this.X(U);return}typeof S=="function"?this.Oy(S,d):this.S(d)}; p.prototype.X=function(d){this.B(2,d)}; p.prototype.S=function(d){this.B(1,d)}; p.prototype.B=function(d,S){if(this.T!=0)throw Error("Cannot settle("+d+", "+S+"): Promise already settled in state"+this.T);this.T=d;this.N=S;this.T===2&&this.P0();this.L()}; p.prototype.P0=function(){var d=this;q(function(){if(d.gy()){var S=g.dT.console;typeof S!=="undefined"&&S.error(d.N)}},1)}; p.prototype.gy=function(){if(this.Z)return!1;var d=g.dT.CustomEvent,S=g.dT.Event,U=g.dT.dispatchEvent;if(typeof U==="undefined")return!0;typeof d==="function"?d=new d("unhandledrejection",{cancelable:!0}):typeof S==="function"?d=new S("unhandledrejection",{cancelable:!0}):(d=g.dT.document.createEvent("CustomEvent"),d.initCustomEvent("unhandledrejection",!1,!0,d));d.promise=this;d.reason=this.N;return U(d)}; p.prototype.L=function(){if(this.Y!=null){for(var d=0;d<this.Y.length;++d)F.Y(this.Y[d]);this.Y=null}}; var F=new t;p.prototype.j6=function(d){var S=this.C();d.Aq(S.resolve,S.reject)}; p.prototype.Oy=function(d,S){var U=this.C();try{d.call(S,U.resolve,U.reject)}catch(f){U.reject(f)}}; p.prototype.then=function(d,S){function U(y,Y){return typeof y=="function"?function(T){try{f(y(T))}catch(A){b(A)}}:Y} var f,b,N=new p(function(y,Y){f=y;b=Y}); this.Aq(U(d,f),U(S,b));return N}; p.prototype.catch=function(d){return this.then(void 0,d)}; p.prototype.Aq=function(d,S){function U(){switch(f.T){case 1:d(f.N);break;case 2:S(f.N);break;default:throw Error("Unexpected state: "+f.T);}} var f=this;this.Y==null?F.Y(U):this.Y.push(U);this.Z=!0}; p.resolve=J;p.reject=function(d){return new p(function(S,U){U(d)})}; p.race=function(d){return new p(function(S,U){for(var f=g.Z(d),b=f.next();!b.done;b=f.next())J(b.value).Aq(S,U)})}; p.all=function(d){var S=g.Z(d),U=S.next();return U.done?J([]):new p(function(f,b){function N(T){return function(A){y[T]=A;Y--;Y==0&&f(y)}} var y=[],Y=0;do y.push(void 0),Y++,J(U.value).Aq(N(y.length-1),b),U=S.next();while(!U.done)})}; return p}); fS("Object.setPrototypeOf",function(k){return k||bq}); fS("Symbol.dispose",function(k){return k?k:Symbol("Symbol.dispose")}); fS("SuppressedError",function(k){function p(t,J,q){if(!(this instanceof p))return new p(t,J,q);q=Error(q);"stack"in q&&(this.stack=q.stack);this.message=q.message;this.error=t;this.suppressed=J} if(k)return k;g.r(p,Error);p.prototype.name="SuppressedError";return p}); fS("Array.prototype.find",function(k){return k?k:function(p,t){return NTS(this,p,t).HA}}); fS("WeakMap",function(k){function p(U){this.T=(S+=Math.random()+1).toString();if(U){U=g.Z(U);for(var f;!(f=U.next()).done;)f=f.value,this.set(f[0],f[1])}} function t(){} function J(U){var f=typeof U;return f==="object"&&U!==null||f==="function"} function q(U){if(!yi(U,d)){var f=new t;SM(U,d,{value:f})}} function F(U){var f=Object[U];f&&(Object[U]=function(b){if(b instanceof t)return b;Object.isExtensible(b)&&q(b);return f(b)})} if(function(){if(!k||!Object.seal)return!1;try{var U=Object.seal({}),f=Object.seal({}),b=new k([[U,2],[f,3]]);if(b.get(U)!=2||b.get(f)!=3)return!1;b.delete(U);b.set(f,4);return!b.has(U)&&b.get(f)==4}catch(N){return!1}}())return k; var d="$jscomp_hidden_"+Math.random();F("freeze");F("preventExtensions");F("seal");var S=0;p.prototype.set=function(U,f){if(!J(U))throw Error("Invalid WeakMap key");q(U);if(!yi(U,d))throw Error("WeakMap key fail: "+U);U[d][this.T]=f;return this}; p.prototype.get=function(U){return J(U)&&yi(U,d)?U[d][this.T]:void 0}; p.prototype.has=function(U){return J(U)&&yi(U,d)&&yi(U[d],this.T)}; p.prototype.delete=function(U){return J(U)&&yi(U,d)&&yi(U[d],this.T)?delete U[d][this.T]:!1}; return p}); fS("Map",function(k){function p(){var S={};return S.previous=S.next=S.head=S} function t(S,U){var f=S[1];return Jw_(function(){if(f){for(;f.head!=S[1];)f=f.previous;for(;f.next!=f.head;)return f=f.next,{done:!1,value:U(f)};f=null}return{done:!0,value:void 0}})} function J(S,U){var f=U&&typeof U;f=="object"||f=="function"?F.has(U)?f=F.get(U):(f=""+ ++d,F.set(U,f)):f="p_"+U;var b=S[0][f];if(b&&yi(S[0],f))for(S=0;S<b.length;S++){var N=b[S];if(U!==U&&N.key!==N.key||U===N.key)return{id:f,list:b,index:S,entry:N}}return{id:f,list:b,index:-1,entry:void 0}} function q(S){this[0]={};this[1]=p();this.size=0;if(S){S=g.Z(S);for(var U;!(U=S.next()).done;)U=U.value,this.set(U[0],U[1])}} if(function(){if(!k||typeof k!="function"||!k.prototype.entries||typeof Object.seal!="function")return!1;try{var S=Object.seal({x:4}),U=new k(g.Z([[S,"s"]]));if(U.get(S)!="s"||U.size!=1||U.get({x:4})||U.set({x:4},"t")!=U||U.size!=2)return!1;var f=U.entries(),b=f.next();if(b.done||b.value[0]!=S||b.value[1]!="s")return!1;b=f.next();return b.done||b.value[0].x!=4||b.value[1]!="t"||!f.next().done?!1:!0}catch(N){return!1}}())return k; var F=new WeakMap;q.prototype.set=function(S,U){S=S===0?0:S;var f=J(this,S);f.list||(f.list=this[0][f.id]=[]);f.entry?f.entry.value=U:(f.entry={next:this[1],previous:this[1].previous,head:this[1],key:S,value:U},f.list.push(f.entry),this[1].previous.next=f.entry,this[1].previous=f.entry,this.size++);return this}; q.prototype.delete=function(S){S=J(this,S);return S.entry&&S.list?(S.list.splice(S.index,1),S.list.length||delete this[0][S.id],S.entry.previous.next=S.entry.next,S.entry.next.previous=S.entry.previous,S.entry.head=null,this.size--,!0):!1}; q.prototype.clear=function(){this[0]={};this[1]=this[1].previous=p();this.size=0}; q.prototype.has=function(S){return!!J(this,S).entry}; q.prototype.get=function(S){return(S=J(this,S).entry)&&S.value}; q.prototype.entries=function(){return t(this,function(S){return[S.key,S.value]})}; q.prototype.keys=function(){return t(this,function(S){return S.key})}; q.prototype.values=function(){return t(this,function(S){return S.value})}; q.prototype.forEach=function(S,U){for(var f=this.entries(),b;!(b=f.next()).done;)b=b.value,S.call(U,b[1],b[0],this)}; q.prototype[Symbol.iterator]=q.prototype.entries;var d=0;return q}); fS("Set",function(k){function p(t){this.T=new Map;if(t){t=g.Z(t);for(var J;!(J=t.next()).done;)this.add(J.value)}this.size=this.T.size} if(function(){if(!k||typeof k!="function"||!k.prototype.entries||typeof Object.seal!="function")return!1;try{var t=Object.seal({x:4}),J=new k(g.Z([t]));if(!J.has(t)||J.size!=1||J.add(t)!=J||J.size!=1||J.add({x:4})!=J||J.size!=2)return!1;var q=J.entries(),F=q.next();if(F.done||F.value[0]!=t||F.value[1]!=t)return!1;F=q.next();return F.done||F.value[0]==t||F.value[0].x!=4||F.value[1]!=F.value[0]?!1:q.next().done}catch(d){return!1}}())return k; p.prototype.add=function(t){t=t===0?0:t;this.T.set(t,t);this.size=this.T.size;return this}; p.prototype.delete=function(t){t=this.T.delete(t);this.size=this.T.size;return t}; p.prototype.clear=function(){this.T.clear();this.size=0}; p.prototype.has=function(t){return this.T.has(t)}; p.prototype.entries=function(){return this.T.entries()}; p.prototype.values=function(){return this.T.values()}; p.prototype.keys=p.prototype.values;p.prototype[Symbol.iterator]=p.prototype.values;p.prototype.forEach=function(t,J){var q=this;this.T.forEach(function(F){return t.call(J,F,F,q)})}; return p}); fS("Math.log2",function(k){return k?k:function(p){return Math.log(p)/Math.LN2}}); fS("Object.values",function(k){return k?k:function(p){var t=[],J;for(J in p)yi(p,J)&&t.push(p[J]);return t}}); fS("Object.is",function(k){return k?k:function(p,t){return p===t?p!==0||1/p===1/t:p!==p&&t!==t}}); fS("Array.prototype.includes",function(k){return k?k:function(p,t){var J=this;J instanceof String&&(J=String(J));var q=J.length;t=t||0;for(t<0&&(t=Math.max(t+q,0));t<q;t++){var F=J[t];if(F===p||Object.is(F,p))return!0}return!1}}); fS("String.prototype.includes",function(k){return k?k:function(p,t){return iq(this,p,"includes").indexOf(p,t||0)!==-1}}); fS("Array.from",function(k){return k?k:function(p,t,J){t=t!=null?t:function(S){return S}; var q=[],F=typeof Symbol!="undefined"&&Symbol.iterator&&p[Symbol.iterator];if(typeof F=="function"){p=F.call(p);for(var d=0;!(F=p.next()).done;)q.push(t.call(J,F.value,d++))}else for(F=p.length,d=0;d<F;d++)q.push(t.call(J,p[d],d));return q}}); fS("Object.entries",function(k){return k?k:function(p){var t=[],J;for(J in p)yi(p,J)&&t.push([J,p[J]]);return t}}); fS("Number.isFinite",function(k){return k?k:function(p){return typeof p!=="number"?!1:!isNaN(p)&&p!==Infinity&&p!==-Infinity}}); fS("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); fS("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); fS("Number.isInteger",function(k){return k?k:function(p){return Number.isFinite(p)?p===Math.floor(p):!1}}); fS("Number.isSafeInteger",function(k){return k?k:function(p){return Number.isInteger(p)&&Math.abs(p)<=Number.MAX_SAFE_INTEGER}}); fS("String.prototype.startsWith",function(k){return k?k:function(p,t){var J=iq(this,p,"startsWith");p+="";var q=J.length,F=p.length;t=Math.max(0,Math.min(t|0,J.length));for(var d=0;d<F&&t<q;)if(J[t++]!=p[d++])return!1;return d>=F}}); fS("String.prototype.endsWith",function(k){return k?k:function(p,t){var J=iq(this,p,"endsWith");p+="";t===void 0&&(t=J.length);t=Math.max(0,Math.min(t|0,J.length));for(var q=p.length;q>0&&t>0;)if(J[--t]!=p[--q])return!1;return q<=0}}); fS("Array.prototype.entries",function(k){return k?k:function(){return Qi(this,function(p,t){return[p,t]})}}); fS("Math.imul",function(k){return k?k:function(p,t){p=Number(p);t=Number(t);var J=p&65535,q=t&65535;return J*q+((p>>>16&65535)*q+J*(t>>>16&65535)<<16>>>0)|0}}); fS("Math.trunc",function(k){return k?k:function(p){p=Number(p);if(isNaN(p)||p===Infinity||p===-Infinity||p===0)return p;var t=Math.floor(Math.abs(p));return p<0?-t:t}}); fS("Math.clz32",function(k){return k?k:function(p){p=Number(p)>>>0;if(p===0)return 32;var t=0;(p&4294901760)===0&&(p<<=16,t+=16);(p&4278190080)===0&&(p<<=8,t+=8);(p&4026531840)===0&&(p<<=4,t+=4);(p&3221225472)===0&&(p<<=2,t+=2);(p&2147483648)===0&&t++;return t}}); fS("Math.log10",function(k){return k?k:function(p){return Math.log(p)/Math.LN10}}); fS("Number.isNaN",function(k){return k?k:function(p){return typeof p==="number"&&isNaN(p)}}); fS("Array.prototype.keys",function(k){return k?k:function(){return Qi(this,function(p){return p})}}); fS("Array.prototype.values",function(k){return k?k:function(){return Qi(this,function(p,t){return t})}}); fS("Array.prototype.fill",function(k){return k?k:function(p,t,J){var q=this.length||0;t<0&&(t=Math.max(0,q+t));if(J==null||J>q)J=q;J=Number(J);J<0&&(J=Math.max(0,q+J));for(t=Number(t||0);t<J;t++)this[t]=p;return this}}); fS("Int8Array.prototype.fill",P9);fS("Uint8Array.prototype.fill",P9);fS("Uint8ClampedArray.prototype.fill",P9);fS("Int16Array.prototype.fill",P9);fS("Uint16Array.prototype.fill",P9);fS("Int32Array.prototype.fill",P9);fS("Uint32Array.prototype.fill",P9);fS("Float32Array.prototype.fill",P9);fS("Float64Array.prototype.fill",P9); fS("Object.fromEntries",function(k){return k?k:function(p){var t={};if(!(Symbol.iterator in p))throw new TypeError(""+p+" is not iterable");p=p[Symbol.iterator].call(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;if(Object(J)!==J)throw new TypeError("iterable for fromEntries should yield objects");t[J[0]]=J[1]}return t}}); fS("String.prototype.replaceAll",function(k){return k?k:function(p,t){if(p instanceof RegExp&&!p.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return p instanceof RegExp?this.replace(p,t):this.replace(new RegExp(String(p).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),t)}}); fS("String.prototype.repeat",function(k){return k?k:function(p){var t=iq(this,null,"repeat");if(p<0||p>1342177279)throw new RangeError("Invalid count value");p|=0;for(var J="";p;)if(p&1&&(J+=t),p>>>=1)t+=t;return J}}); fS("Promise.prototype.finally",function(k){return k?k:function(p){return this.then(function(t){return Promise.resolve(p()).then(function(){return t})},function(t){return Promise.resolve(p()).then(function(){throw t; })})}}); fS("String.prototype.padStart",function(k){return k?k:function(p,t){var J=iq(this,null,"padStart");p-=J.length;t=t!==void 0?String(t):" ";return(p>0&&t?t.repeat(Math.ceil(p/t.length)).substring(0,p):"")+J}}); fS("Array.prototype.findIndex",function(k){return k?k:function(p,t){return NTS(this,p,t).lK}}); fS("Math.sign",function(k){return k?k:function(p){p=Number(p);return p===0||isNaN(p)?p:p>0?1:-1}}); fS("WeakSet",function(k){function p(t){this.T=new WeakMap;if(t){t=g.Z(t);for(var J;!(J=t.next()).done;)this.add(J.value)}} if(function(){if(!k||!Object.seal)return!1;try{var t=Object.seal({}),J=Object.seal({}),q=new k([t]);if(!q.has(t)||q.has(J))return!1;q.delete(t);q.add(J);return!q.has(t)&&q.has(J)}catch(F){return!1}}())return k; p.prototype.add=function(t){this.T.set(t,!0);return this}; p.prototype.has=function(t){return this.T.has(t)}; p.prototype.delete=function(t){return this.T.delete(t)}; return p}); fS("Array.prototype.copyWithin",function(k){function p(t){t=Number(t);return t===Infinity||t===-Infinity?t:t|0} return k?k:function(t,J,q){var F=this.length;t=p(t);J=p(J);q=q===void 0?F:p(q);t=t<0?Math.max(F+t,0):Math.min(t,F);J=J<0?Math.max(F+J,0):Math.min(J,F);q=q<0?Math.max(F+q,0):Math.min(q,F);if(t<J)for(;J<q;)J in this?this[t++]=this[J++]:(delete this[t++],J++);else for(q=Math.min(q,F+J-t),t+=q-J;q>J;)--q in this?this[--t]=this[q]:delete this[--t];return this}}); fS("Int8Array.prototype.copyWithin",GL);fS("Uint8Array.prototype.copyWithin",GL);fS("Uint8ClampedArray.prototype.copyWithin",GL);fS("Int16Array.prototype.copyWithin",GL);fS("Uint16Array.prototype.copyWithin",GL);fS("Int32Array.prototype.copyWithin",GL);fS("Uint32Array.prototype.copyWithin",GL);fS("Float32Array.prototype.copyWithin",GL);fS("Float64Array.prototype.copyWithin",GL);fS("Array.prototype.at",function(k){return k?k:Ii}); fS("Int8Array.prototype.at",Xe);fS("Uint8Array.prototype.at",Xe);fS("Uint8ClampedArray.prototype.at",Xe);fS("Int16Array.prototype.at",Xe);fS("Uint16Array.prototype.at",Xe);fS("Int32Array.prototype.at",Xe);fS("Uint32Array.prototype.at",Xe);fS("Float32Array.prototype.at",Xe);fS("Float64Array.prototype.at",Xe);fS("String.prototype.at",function(k){return k?k:Ii}); fS("Array.prototype.findLastIndex",function(k){return k?k:function(p,t){return ywj(this,p,t).lK}}); fS("Int8Array.prototype.findLastIndex",Ri);fS("Uint8Array.prototype.findLastIndex",Ri);fS("Uint8ClampedArray.prototype.findLastIndex",Ri);fS("Int16Array.prototype.findLastIndex",Ri);fS("Uint16Array.prototype.findLastIndex",Ri);fS("Int32Array.prototype.findLastIndex",Ri);fS("Uint32Array.prototype.findLastIndex",Ri);fS("Float32Array.prototype.findLastIndex",Ri);fS("Float64Array.prototype.findLastIndex",Ri);fS("Number.parseInt",function(k){return k||parseInt});var jr,jM,Y0M;jr=jr||{};g.B9=this||self;jM="closure_uid_"+(Math.random()*1E9>>>0);Y0M=0;g.r(qQ,Error);g.R.prototype.jY=!1;g.R.prototype.MO=function(){return this.jY}; g.R.prototype.dispose=function(){this.jY||(this.jY=!0,this.Ap())}; g.R.prototype[Symbol.dispose]=function(){this.dispose()}; g.R.prototype.addOnDisposeCallback=function(k,p){this.jY?p!==void 0?k.call(p):k():(this.Jn||(this.Jn=[]),p&&(k=k.bind(p)),this.Jn.push(k))}; g.R.prototype.Ap=function(){if(this.Jn)for(;this.Jn.length;)this.Jn.shift()()};var m_w;g.r(fc,g.R);fc.prototype.share=function(){if(this.MO())throw Error("E:AD");this.C++;return this}; fc.prototype.dispose=function(){--this.C||g.R.prototype.dispose.call(this)}; m_w=Symbol.dispose;VMq.prototype.LI=function(k,p){this.T.LI("/client_streamz/bg/frs",k,p)}; Wj9.prototype.LI=function(k,p,t,J,q,F){this.T.LI("/client_streamz/bg/wrl",k,p,t,J,q,F)}; D_0.prototype.T=function(k,p){this.Y.F3("/client_streamz/bg/ec",k,p)}; siT.prototype.LI=function(k,p,t,J){this.T.LI("/client_streamz/bg/el",k,p,t,J)}; LjM.prototype.T=function(k,p,t){this.Y.F3("/client_streamz/bg/cec",k,p,t)}; vhL.prototype.T=function(k,p,t){this.Y.F3("/client_streamz/bg/po/csc",k,p,t)}; cw9.prototype.T=function(k,p,t){this.Y.F3("/client_streamz/bg/po/ctav",k,p,t)}; nhM.prototype.T=function(k,p,t){this.Y.F3("/client_streamz/bg/po/cwsc",k,p,t)};g.pc(rq,Error);rq.prototype.name="CustomError";var oBT;var G9=void 0,Pn,w4T=typeof TextDecoder!=="undefined",GLS,Pqe=typeof String.prototype.isWellFormed==="function",Qih=typeof TextEncoder!=="undefined";var Lc=String.prototype.trim?function(k){return k.trim()}:function(k){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(k)[1]},w2h=/&/g,i8M=/</g,QKq=/>/g,P5q=/"/g,Gh_=/'/g,IYw=/\x00/g,nkT=/[\x00&<>"']/;var JwQ=ai(1,!0),wq=ai(610401301,!1);ai(899588437,!1);var ohK=ai(725719775,!1);ai(651175828,!1);ai(722764542,!1);ai(2147483644,!1);ai(2147483645,!1);ai(2147483646,JwQ);ai(2147483647,!0);var iJ=!!g.hw("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Qa,q0K=g.B9.navigator;Qa=q0K?q0K.userAgentData||null:null;var OS0,LO,cC;OS0=Array.prototype.indexOf?function(k,p){return Array.prototype.indexOf.call(k,p,void 0)}:function(k,p){if(typeof k==="string")return typeof p!=="string"||p.length!=1?-1:k.indexOf(p,0); for(var t=0;t<k.length;t++)if(t in k&&k[t]===p)return t;return-1}; g.Fja=Array.prototype.lastIndexOf?function(k,p){return Array.prototype.lastIndexOf.call(k,p,k.length-1)}:function(k,p){var t=k.length-1; t<0&&(t=Math.max(0,k.length+t));if(typeof k==="string")return typeof p!=="string"||p.length!=1?-1:k.lastIndexOf(p,t);for(;t>=0;t--)if(t in k&&k[t]===p)return t;return-1}; g.y1=Array.prototype.forEach?function(k,p,t){Array.prototype.forEach.call(k,p,t)}:function(k,p,t){for(var J=k.length,q=typeof k==="string"?k.split(""):k,F=0;F<J;F++)F in q&&p.call(t,q[F],F,k)}; g.dZ=Array.prototype.filter?function(k,p,t){return Array.prototype.filter.call(k,p,t)}:function(k,p,t){for(var J=k.length,q=[],F=0,d=typeof k==="string"?k.split(""):k,S=0;S<J;S++)if(S in d){var U=d[S]; p.call(t,U,S,k)&&(q[F++]=U)}return q}; g.DR=Array.prototype.map?function(k,p,t){return Array.prototype.map.call(k,p,t)}:function(k,p,t){for(var J=k.length,q=Array(J),F=typeof k==="string"?k.split(""):k,d=0;d<J;d++)d in F&&(q[d]=p.call(t,F[d],d,k)); return q}; LO=Array.prototype.reduce?function(k,p,t){return Array.prototype.reduce.call(k,p,t)}:function(k,p,t){var J=t; (0,g.y1)(k,function(q,F){J=p.call(void 0,J,q,F,k)}); return J}; cC=Array.prototype.some?function(k,p){return Array.prototype.some.call(k,p,void 0)}:function(k,p){for(var t=k.length,J=typeof k==="string"?k.split(""):k,q=0;q<t;q++)if(q in J&&p.call(void 0,J[q],q,k))return!0; return!1}; g.sQ=Array.prototype.every?function(k,p,t){return Array.prototype.every.call(k,p,t)}:function(k,p,t){for(var J=k.length,q=typeof k==="string"?k.split(""):k,F=0;F<J;F++)if(F in q&&!p.call(t,q[F],F,k))return!1; return!0};Te[" "]=function(){};var UH,jQ,oG0,$_S,d_S,EhS,Cl,Om,S0R;g.As=XS();g.Ui=z60();g.ag=GK("Edge");g.l$=g.ag||g.Ui;UH=GK("Gecko")&&!(sR(g.nc(),"WebKit")&&!GK("Edge"))&&!(GK("Trident")||GK("MSIE"))&&!GK("Edge");g.Ok=sR(g.nc(),"WebKit")&&!GK("Edge");jQ=gq();oG0=luu();g.jN=uei();$_S=aL();d_S=GK("iPad");EhS=GK("iPod");Cl=MQ();Om=sR(g.nc(),"KaiOS"); a:{var U_J="",fun=function(){var k=g.nc();if(UH)return/rv:([^\);]+)(\)|;)/.exec(k);if(g.ag)return/Edge\/([\d\.]+)/.exec(k);if(g.Ui)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(k);if(g.Ok)return/WebKit\/(\S+)/.exec(k);if(g.As)return/(?:Version)[ \/]?(\S+)/.exec(k)}(); fun&&(U_J=fun?fun[1]:"");if(g.Ui){var Hf,bS4=g.B9.document;Hf=bS4?bS4.documentMode:void 0;if(Hf!=null&&Hf>parseFloat(U_J)){S0R=String(Hf);break a}}S0R=U_J}var dQ9=S0R,F4L={};var gh,u6;g.PL=BW();gh=aL()||GK("iPod");u6=GK("iPad");g.mF=h6q();g.sD=zK();g.y9=e9()&&!MQ();var SRS={},m8=null,UQ_=UH||g.Ok||typeof g.B9.btoa=="function";var CJw=typeof Uint8Array!=="undefined",Nqi=!g.Ui&&typeof btoa==="function",rCj=/[-_.]/g,YR0={"-":"+",_:"/",".":"="},Dn={};W4.prototype.isEmpty=function(){return this.T==null}; W4.prototype.sizeBytes=function(){var k=Lh(this);return k?k.length:0}; var mQj;var W4M=void 0;var iP=typeof Symbol==="function"&&typeof Symbol()==="symbol",NTc=wH("jas",void 0,!0),o8=wH(void 0,"1oa"),MW=wH(void 0,Symbol()),Y$i=wH(void 0,"0actk"),OcL=wH(void 0,"8utk");Math.max.apply(Math,g.m(Object.values({WXG:1,ICG:2,ndh:4,RRy:8,mcy:16,Frh:32,e5Y:64,LEy:128,zd6:256,dBG:512,Xly:1024,wS6:2048,DBO:4096,z58:8192})));var Q1=iP?NTc:"ehO",sLL={ehO:{value:0,configurable:!0,writable:!0,enumerable:!1}},DQ6=Object.defineProperties;var sf={},l5,yw4=[];Ge(yw4,55);l5=Object.freeze(yw4);var Aj6=Object.freeze({});var wWi=lP(function(k){return typeof k==="number"}),nnu=lP(function(k){return typeof k==="string"}),icT=lP(function(k){return typeof k==="boolean"}),tu=lP(function(k){return k!=null&&typeof k==="object"&&typeof k.then==="function"}),pj=lP(function(k){return!!k&&(typeof k==="object"||typeof k==="function")});var jD=typeof g.B9.BigInt==="function"&&typeof g.B9.BigInt(0)==="bigint";var m$=lP(function(k){return jD?k>=Y09&&k<=TTq:k[0]==="-"?QLw(k,rwL):QLw(k,ZSK)}),rwL=Number.MIN_SAFE_INTEGER.toString(),Y09=jD?BigInt(Number.MIN_SAFE_INTEGER):void 0,ZSK=Number.MAX_SAFE_INTEGER.toString(),TTq=jD?BigInt(Number.MAX_SAFE_INTEGER):void 0;var L8h=typeof Uint8Array.prototype.slice==="function",Kh=0,x2=0,tt0;var Yk=typeof BigInt==="function"?BigInt.asIntN:void 0,lAS=typeof BigInt==="function"?BigInt.asUintN:void 0,ZY=Number.isSafeInteger,Ef=Number.isFinite,rx=Math.trunc,RSi=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var c2;var i5,bhu;g.E=DWL.prototype;g.E.init=function(k,p,t,J){J=J===void 0?{}:J;this.G4=J.G4===void 0?!1:J.G4;k&&(k=mv(k),this.Y=k.buffer,this.X=k.Yp,this.C=p||0,this.N=t!==void 0?this.C+t:this.Y.length,this.T=this.C)}; g.E.free=function(){this.clear();nX.length<100&&nX.push(this)}; g.E.clear=function(){this.Y=null;this.X=!1;this.T=this.N=this.C=0;this.G4=!1}; g.E.reset=function(){this.T=this.C}; g.E.EX=function(){var k=this.S;k||(k=this.Y,k=this.S=new DataView(k.buffer,k.byteOffset,k.byteLength));return k}; var nX=[];wB.prototype.free=function(){this.T.clear();this.Y=this.C=-1;xj.length<100&&xj.push(this)}; wB.prototype.reset=function(){this.T.reset();this.N=this.T.T;this.Y=this.C=-1}; var xj=[];g.E=X$.prototype;g.E.toJSON=function(){return n8(this)}; g.E.zH=function(k){return JSON.stringify(n8(this,k))}; g.E.clone=function(){var k=this.sQ;return new this.constructor(Gh(k,k[Q1]|0,!1))}; g.E.Yp=function(){return!!((this.sQ[Q1]|0)&2)}; g.E.j3=sf;g.E.toString=function(){return this.sQ.toString()};var PPu,Ini;z9.prototype.length=function(){return this.T.length}; z9.prototype.end=function(){var k=this.T;this.T=[];return k};var jU=l4(),CqS=l4(),Aw9=l4(),m_C=l4(),VMJ=l4(),WjW=l4(),D_R=l4(),siq=l4();var uYq=KX(function(k,p,t,J,q){if(k.Y!==2)return!1;Q6(k,qs(p,J,t),q);return!0},g2i),lnS=KX(function(k,p,t,J,q){if(k.Y!==2)return!1; Q6(k,qs(p,J,t),q);return!0},g2i),Fv=Symbol(),tY=Symbol(),OhT=Symbol(),xW_=Symbol(),Hn,xB;var Lj9=EZ(function(k,p,t){if(k.Y!==1)return!1;UZ(p,t,vn(k.T));return!0},fu,D_R),vhK=EZ(function(k,p,t){if(k.Y!==1)return!1; k=vn(k.T);UZ(p,t,k===0?void 0:k);return!0},fu,D_R),cwW=EZ(function(k,p,t,J){if(k.Y!==1)return!1; tH(p,t,J,vn(k.T));return!0},fu,D_R),nh9=EZ(function(k,p,t){if(k.Y!==0)return!1; UZ(p,t,Wn(k.T));return!0},bC,VMJ),w9a=EZ(function(k,p,t){if(k.Y!==0)return!1; k=Wn(k.T);UZ(p,t,k===0?void 0:k);return!0},bC,VMJ),iSC=EZ(function(k,p,t,J){if(k.Y!==0)return!1; tH(p,t,J,Wn(k.T));return!0},bC,VMJ),Qin=EZ(function(k,p,t){if(k.Y!==0)return!1; UZ(p,t,DL(k.T));return!0},Np,m_C),PqS=EZ(function(k,p,t){if(k.Y!==0)return!1; k=DL(k.T);UZ(p,t,k===0?void 0:k);return!0},Np,m_C),GLc=EZ(function(k,p,t,J){if(k.Y!==0)return!1; tH(p,t,J,DL(k.T));return!0},Np,m_C),IuL=EZ(function(k,p,t){if(k.Y!==1)return!1; UZ(p,t,LX(k.T));return!0},function(k,p,t){an_(k,t,jLi(p))},WjW),X99=Sc(function(k,p,t){if(k.Y!==1&&k.Y!==2)return!1; p=K8(p,p[Q1]|0,t,!1);if(k.Y==2)for(t=DL(k.T)>>>0,t=k.T.T+t;k.T.T<t;)p.push(LX(k.T));else p.push(LX(k.T));return!0},function(k,p,t){p=de(jLi,p,!1); if(p!=null)for(var J=0;J<p.length;J++)an_(k,t,p[J])},WjW),R6J=EZ(function(k,p,t){if(k.Y!==0)return!1; UZ(p,t,cn(k.T));return!0},J4T,CqS),BTc=EZ(function(k,p,t,J){if(k.Y!==0)return!1; tH(p,t,J,cn(k.T));return!0},J4T,CqS),kb=EZ(function(k,p,t){if(k.Y!==2)return!1; UZ(p,t,I8(k));return!0},okh,Aw9),z6R=Sc(function(k,p,t){if(k.Y!==2)return!1; k=I8(k);K8(p,p[Q1]|0,t,!1).push(k);return!0},function(k,p,t){p=de(W2,p,!0); if(p!=null)for(var J=0;J<p.length;J++){var q=k,F=t,d=p[J];d!=null&&u4(q,F,Iui(d))}},Aw9),e6Q=EZ(function(k,p,t,J){if(k.Y!==2)return!1; tH(p,t,J,I8(k));return!0},okh,Aw9),pn,tW=void 0; tW=tW===void 0?jU:tW;pn=new Ob(function(k,p,t,J,q){if(k.Y!==2)return!1;J=P2(void 0,J,!0);K8(p,p[Q1]|0,t,!0).push(J);Q6(k,J,q);return!0},function(k,p,t,J,q){if(Array.isArray(p))for(var F=0;F<p.length;F++)qfj(k,p[F],t,J,q)},tW); var JW=KX(function(k,p,t,J,q,F){if(k.Y!==2)return!1;kB(p,p[Q1]|0,F,t);p=qs(p,J,t);Q6(k,p,q);return!0},qfj),h6J=EZ(function(k,p,t){if(k.Y!==2)return!1; UZ(p,t,ihi(k));return!0},function(k,p,t){p=K4w(p); p!=null&&u4(k,t,mv(p).buffer)},siq),au9=Sc(function(k,p,t){if(k.Y!==2)return!1; k=ihi(k);K8(p,p[Q1]|0,t,!1).push(k);return!0},function(k,p,t){p=de(K4w,p,!1); if(p!=null)for(var J=0;J<p.length;J++){var q=k,F=t,d=p[J];d!=null&&u4(q,F,mv(d).buffer)}},siq),oX=EZ(function(k,p,t){if(k.Y!==0)return!1; UZ(p,t,DL(k.T)>>>0);return!0},function(k,p,t){p=NK(p); p!=null&&p!=null&&(gB(k,t,0),hH(k.T,p))},l4()),MMq=EZ(function(k,p,t){if(k.Y!==0)return!1; UZ(p,t,DL(k.T));return!0},function(k,p,t){p=f8(p); p!=null&&(p=parseInt(p,10),gB(k,t,0),R9S(k.T,p))},l4());$Kh.prototype.register=function(){Te(this)};g.r(EkS,X$);g.r(T3,X$);var ma=[1,2,3];var ghW=[0,ma,e6Q,GLc,BTc];var ueL=[0,pn,[0,Lj9,nh9]];g.r(re,X$);var AY=[1,2,3];var luA=[0,AY,iSC,cwW,JW,ueL];g.r(Zb,X$);var ji9=[0,pn,ghW,luA];var OSR=[0,[1,2,3],JW,[0,kb,-1,R6J],JW,[0,kb,-1,Qin,R6J],JW,[0,kb]];g.r(Cu,X$);Cu.prototype.dP=function(){var k=u5(this,3,W2,3,!0);aT(k);return k[void 0]};Cu.prototype.T=dKL([0,kb,OSR,z6R,pn,ji9,IuL,X99]);g.r(UKq,X$);var C5T=globalThis.trustedTypes,VY;Db.prototype.toString=function(){return this.T+""};vH.prototype.toString=function(){return this.T}; var Vt_=new vH("about:invalid#zClosurez");var yai=we("tel"),bUM=we("sms"),mK6=[we("data"),we("http"),we("https"),we("mailto"),we("ftp"),new nu(function(k){return/^[^:]*([/?#]|$)/.test(k)})],W$i=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;G3.prototype.toString=function(){return this.T+""};z3.prototype.toString=function(){return this.T+""};Mp.prototype.toString=function(){return this.T};var uC={};g.KjQ=String.prototype.repeat?function(k,p){return k.repeat(p)}:function(k,p){return Array(p+1).join(k)};g.E=t2.prototype;g.E.isEnabled=function(){if(!g.B9.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{fC:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.E.set=function(k,p,t){var J=!1;if(typeof t==="object"){var q=t.lbS;J=t.secure||!1;var F=t.domain||void 0;var d=t.path||void 0;var S=t.fC}if(/[;=\s]/.test(k))throw Error('Invalid cookie name "'+k+'"');if(/[;\r\n]/.test(p))throw Error('Invalid cookie value "'+p+'"');S===void 0&&(S=-1);t=F?";domain="+F:"";d=d?";path="+d:"";J=J?";secure":"";S=S<0?"":S==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+S*1E3)).toUTCString();this.T.cookie=k+"="+p+t+d+S+J+(q!=null?";samesite="+ q:"")}; g.E.get=function(k,p){for(var t=k+"=",J=(this.T.cookie||"").split(";"),q=0,F;q<J.length;q++){F=Lc(J[q]);if(F.lastIndexOf(t,0)==0)return F.slice(t.length);if(F==k)return""}return p}; g.E.remove=function(k,p,t){var J=this.get(k)!==void 0;this.set(k,"",{fC:0,path:p,domain:t});return J}; g.E.zS=function(){return J2(this).keys}; g.E.Ve=function(){return J2(this).values}; g.E.isEmpty=function(){return!this.T.cookie}; g.E.clear=function(){for(var k=J2(this).keys,p=k.length-1;p>=0;p--)this.remove(k[p])}; var wh=new t2(typeof document=="undefined"?null:document);oO.prototype.compress=function(k){var p,t,J,q;return g.Q(function(F){switch(F.T){case 1:return p=new CompressionStream("gzip"),t=(new Response(p.readable)).arrayBuffer(),J=p.writable.getWriter(),g.n(F,J.write((new TextEncoder).encode(k)),2);case 2:return g.n(F,J.close(),3);case 3:return q=Uint8Array,g.n(F,t,4);case 4:return F.return(new q(F.Y))}})}; oO.prototype.isSupported=function(k){return k<1024?!1:typeof CompressionStream!=="undefined"};g.r(qL,X$);F6.prototype.setInterval=function(k){this.intervalMs=k;this.wf&&this.enabled?(this.stop(),this.start()):this.wf&&this.stop()}; F6.prototype.start=function(){var k=this;this.enabled=!0;this.wf||(this.wf=setTimeout(function(){k.tick()},this.intervalMs),this.Y=this.T())}; F6.prototype.stop=function(){this.enabled=!1;this.wf&&(clearTimeout(this.wf),this.wf=void 0)}; F6.prototype.tick=function(){var k=this;if(this.enabled){var p=Math.max(this.T()-this.Y,0);p<this.intervalMs*.8?this.wf=setTimeout(function(){k.tick()},this.intervalMs-p):(this.wf&&(clearTimeout(this.wf),this.wf=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.wf=void 0};g.r($Y,X$);g.r(d8,X$);g.E=g.NL.prototype;g.E.clone=function(){return new g.NL(this.x,this.y)}; g.E.MR=function(k){return k instanceof g.NL&&yx(this,k)}; g.E.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.E.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.E.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.E.scale=function(k,p){this.x*=k;this.y*=typeof p==="number"?p:k;return this};g.E=g.YY.prototype;g.E.clone=function(){return new g.YY(this.width,this.height)}; g.E.aspectRatio=function(){return this.width/this.height}; g.E.isEmpty=function(){return!r8(this)}; g.E.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.E.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.E.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.E.scale=function(k,p){this.width*=k;this.height*=typeof p==="number"?p:k;return this};var jKu="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");IO.prototype.toString=function(){return this.T}; var GJ={};new IO(GJ,"");var K$i=/^[a-z][a-z\d-]*$/i,H8T="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),k9w="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),tUe=["action","formaction","href"];var qbi={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.E=RO.prototype;g.E.KE=function(k){return eO(this.T,k)}; g.E.getElementsByTagName=function(k,p){return(p||this.T).getElementsByTagName(String(k))}; g.E.Kp=function(k){return g.lh(k,this.T)}; g.E.setProperties=jO;g.E.createElement=function(k){return HQ(this.T,k)}; g.E.appendChild=g.t1;g.E.append=function(k,p){EBi(BQ(k),k,arguments,1)}; g.E.canHaveChildren=function(k){if(k.nodeType!=1)return!1;switch(k.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.E.removeNode=g.qa;g.E.getChildren=function(k){return k.children!=void 0?k.children:Array.prototype.filter.call(k.childNodes,function(p){return p.nodeType==1})}; g.E.contains=g.FI;g.r(Su,X$);Su.prototype.P$=function(){return y6(this,1)};g.r(UP,X$);g.r(fe,X$);g.r(bZ,X$);var bXS=["platform","platformVersion","architecture","model","uaFullVersion"],y3=new fe,Na=null;g.r(YW,X$);g.r(yHT,X$);g.r(TS,X$);g.r(rE,X$);rE.prototype.D=function(){return F$(this,yHT,7)!==void 0}; rE.prototype.Aw=function(){return $B(this,qL,16)};g.r(Zr,X$);Zr.prototype.UY=function(k){return ZL(this,2,k)};A1.prototype.UY=function(k){this.T.UY(k);return this}; A1.prototype.build=function(k,p,t,J,q,F){p=p===void 0?0:p;t=t===void 0?0:t;J=J===void 0?null:J;q=q===void 0?0:q;F=F===void 0?0:F;var d=$B(this.T,YW,1);if(F$(d,bZ,11)!==void 0){d=mu(this);var S=new Su;S=ZL(S,1,this.Y);S=zh(S,2,dx(this.isFinal));t=zh(S,3,Uf(t>0?t:void 0));t=zh(t,4,Uf(q>0?q:void 0));t=zh(t,5,Uf(F>0?F:void 0));q=t.sQ;F=q[Q1]|0;t=F&2?t:new t.constructor(Gh(q,F,!0));dB(d,Su,10,t)}d=this.T.clone();t=Date.now().toString();d=zh(d,4,A4(t));k=SU(d,rE,3,k.slice());J&&(d=new $Y,J=zh(d,13,Uf(J)), d=new d8,J=dB(d,$Y,2,J),d=new TS,J=dB(d,d8,1,J),J=ZL(J,2,9),dB(k,TS,18,J));p&&YB(k,14,p);return k};var IL_=function(){if(!g.B9.addEventListener||!Object.defineProperty)return!1;var k=!1,p=Object.defineProperty({},"passive",{get:function(){k=!0}}); try{var t=function(){}; g.B9.addEventListener("test",t,p);g.B9.removeEventListener("test",t,p)}catch(J){}return k}();var XGM=ZXe("AnimationEnd"),ql=ZXe("TransitionEnd");g.V3.prototype.Y=0;g.V3.prototype.reset=function(){this.T=this.N=this.C;this.Y=0}; g.V3.prototype.getValue=function(){return this.N};g.r(C40,X$);var HSL=yY(C40);g.r(F$q,X$);var qH=new $Kh;g.r(sP,g.R);g.E=sP.prototype;g.E.Ap=function(){this.ma();this.Y.stop();this.j6.stop();g.R.prototype.Ap.call(this)}; g.E.dispatch=function(k){if(k instanceof rE)this.log(k);else try{var p=new rE,t=k.zH();var J=T9(p,8,t);this.log(J)}catch(q){}}; g.E.log=function(k){if(this.Oy){k=k.clone();var p=this.IY++;k=YB(k,21,p);this.componentId&&T9(k,26,this.componentId);p=k;if(mWi(p)==null){var t=Date.now();t=Number.isFinite(t)?t.toString():"0";zh(p,1,A4(t))}gn9(RK(p,15))!=null||YB(p,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(t=this.experimentIds.clone(),dB(p,qL,16,t));p=this.T.length-1E3+1;p>0&&(this.T.splice(0,p),this.C+=p);this.T.push(k);this.wW||this.Y.enabled||this.Y.start()}}; g.E.flush=function(k,p){var t=this;if(this.T.length===0)k&&k();else if(this.P0&&this.L)this.N.Y=3,Dsi(this);else{var J=Date.now();if(this.RY>J&&this.NO<J)p&&p("throttled");else{this.network&&(typeof this.network.P$==="function"?TBq(this.N,this.network.P$()):this.N.Y=0);var q=this.N.build(this.T,this.C,this.S,this.E0,this.Y8,this.gy),F=this.Xb();if(F&&this.qO===F)p&&p("stale-auth-token");else{this.T=[];this.Y.enabled&&this.Y.stop();this.C=0;J=q.zH();var d;this.Z&&this.Z.isSupported(J.length)&&(d=this.Z.compress(J)); var S=VUj(this,J,F),U=function(N){t.X.reset();t.Y.setInterval(t.X.getValue());if(N){var y=null;try{var Y=JSON.stringify(JSON.parse(N.replace(")]}'\n","")));y=HSL(Y)}catch(V){}if(y){N=Number;var T="-1";T=T===void 0?"0":T;var A;Y=(A=mWi(y))!=null?A:T;A=N(Y);A>0&&(t.NO=Date.now(),t.RY=t.NO+A);y=qH.T?qH.Y(y,qH.T,175237375):qH.Y(y,175237375,null);if(y=y===null?void 0:y)y=dq(y,1,-1),y!==-1&&(t.X=new g.V3(y<1?1:y,3E5,.1),t.Y.setInterval(t.X.getValue()))}}k&&k();t.S=0},f=function(N,y){var Y=FS(q,rE,3); var T;var A=(T=gn9(RK(q,14)))!=null?T:void 0;g.Wg(t.X);t.Y.setInterval(t.X.getValue());N===401&&F&&(t.qO=F);A&&(t.C+=A);y===void 0&&(y=t.isRetryable(N));y&&(t.T=Y.concat(t.T),t.wW||t.Y.enabled||t.Y.start());p&&p("net-send-failed",N);++t.S},b=function(){t.network&&t.network.send(S,U,f)}; d?d.then(function(N){S.requestHeaders["Content-Encoding"]="gzip";S.requestHeaders["Content-Type"]="application/binary";S.body=N;S.X7=2;b()},function(){b()}):b()}}}}; g.E.ma=function(){this.N.isFinal=!0;this.flush();this.N.isFinal=!1}; g.E.isRetryable=function(k){return 500<=k&&k<600||k===401||k===0};Le.prototype.send=function(k,p,t){var J=this,q,F,d,S,U,f,b,N,y,Y;return g.Q(function(T){switch(T.T){case 1:return F=(q=J.uF?new AbortController:void 0)?setTimeout(function(){q.abort()},k.timeoutMillis):void 0,g.Aw(T,2,3),d=Object.assign({},{method:k.requestType, headers:Object.assign({},k.requestHeaders)},k.body&&{body:k.body},k.withCredentials&&{credentials:"include"},{signal:k.timeoutMillis&&q?q.signal:null}),g.n(T,fetch(k.url,d),5);case 5:S=T.Y;if(S.status!==200){(U=t)==null||U(S.status);T.oY(3);break}if((f=p)==null){T.oY(7);break}return g.n(T,S.text(),8);case 8:f(T.Y);case 7:case 3:g.Du(T);clearTimeout(F);g.s0(T,0);break;case 2:b=g.W9(T);switch((N=b)==null?void 0:N.name){case "AbortError":(y=t)==null||y(408);break;default:(Y=t)==null||Y(400)}T.oY(3)}})}; Le.prototype.P$=function(){return 4};g.r(vg,g.R);vg.prototype.HB=function(){this.X=!0;return this}; vg.prototype.build=function(){this.network||(this.network=new Le);var k=new sP({logSource:this.logSource,Xb:this.Xb?this.Xb:aYq,sessionIndex:this.sessionIndex,pNp:this.Xs,Ye:this.C,wW:!1,HB:this.X,YD:this.YD,network:this.network});g.z(this,k);if(this.Y){var p=this.Y,t=mu(k.N);T9(t,7,p)}k.Z=new oO;this.componentId&&(k.componentId=this.componentId);this.E0&&(k.E0=this.E0);this.pageId&&(k.pageId=this.pageId);this.T&&((t=this.T)?(k.experimentIds||(k.experimentIds=new qL),p=k.experimentIds,t=t.zH(),T9(p, 4,t)):k.experimentIds&&zh(k.experimentIds,4));this.N&&(k.P0=k.L);rHw(k.N);this.network.UY&&this.network.UY(this.logSource);this.network.BaO&&this.network.BaO(k);return k};g.r(cg,g.R);cg.prototype.flush=function(k){k=k||[];if(k.length){for(var p=new UKq,t=[],J=0;J<k.length;J++){var q=k[J],F=g.Nxq(q);t.push(F);q.clear()}SU(p,Cu,1,t);this.T.dispatch(p);this.T.flush()}};g.E=ne.prototype;g.E.F7=function(k){var p=g.nS.apply(1,arguments),t=this.Vz(p);t?t.push(new nBi(k)):this.rz(k,p)}; g.E.rz=function(k){this.T.set(this.m$(g.nS.apply(1,arguments)),[new nBi(k)])}; g.E.Vz=function(){var k=this.m$(g.nS.apply(0,arguments));return this.T.has(k)?this.T.get(k):void 0}; g.E.Fl=function(){var k=this.Vz(g.nS.apply(0,arguments));return k&&k.length?k[0]:void 0}; g.E.clear=function(){this.T.clear()}; g.E.m$=function(){var k=g.nS.apply(0,arguments);return k?k.join(","):"key"};g.r(wE,ne);wE.prototype.N=function(k){var p=g.nS.apply(1,arguments),t=0,J=this.Fl(p);J&&(t=J.T);this.rz(t+k,p)};g.r(iZ,ne);iZ.prototype.LI=function(k){this.F7(k,g.nS.apply(1,arguments))};g.Q3.prototype.stopPropagation=function(){this.Y=!0}; g.Q3.prototype.preventDefault=function(){this.defaultPrevented=!0};g.pc(Pg,g.Q3); Pg.prototype.init=function(k,p){var t=this.type=k.type,J=k.changedTouches&&k.changedTouches.length?k.changedTouches[0]:null;this.target=k.target||k.srcElement;this.currentTarget=p;p=k.relatedTarget;p||(t=="mouseover"?p=k.fromElement:t=="mouseout"&&(p=k.toElement));this.relatedTarget=p;J?(this.clientX=J.clientX!==void 0?J.clientX:J.pageX,this.clientY=J.clientY!==void 0?J.clientY:J.pageY,this.screenX=J.screenX||0,this.screenY=J.screenY||0):(this.clientX=k.clientX!==void 0?k.clientX:k.pageX,this.clientY= k.clientY!==void 0?k.clientY:k.pageY,this.screenX=k.screenX||0,this.screenY=k.screenY||0);this.button=k.button;this.keyCode=k.keyCode||0;this.key=k.key||"";this.charCode=k.charCode||(t=="keypress"?k.keyCode:0);this.ctrlKey=k.ctrlKey;this.altKey=k.altKey;this.shiftKey=k.shiftKey;this.metaKey=k.metaKey;this.pointerId=k.pointerId||0;this.pointerType=k.pointerType;this.state=k.state;this.T=k;k.defaultPrevented&&Pg.AD.preventDefault.call(this)}; Pg.prototype.stopPropagation=function(){Pg.AD.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0}; Pg.prototype.preventDefault=function(){Pg.AD.preventDefault.call(this);var k=this.T;k.preventDefault?k.preventDefault():k.returnValue=!1};var wnh="closure_listenable_"+(Math.random()*1E6|0);var iXj=0;g.E=XI.prototype;g.E.add=function(k,p,t,J,q){var F=k.toString();k=this.listeners[F];k||(k=this.listeners[F]=[],this.T++);var d=Bg(k,p,J,q);d>-1?(p=k[d],t||(p.EB=!1)):(p=new Q8q(p,this.src,F,!!J,q),p.EB=t,k.push(p));return p}; g.E.remove=function(k,p,t,J){k=k.toString();if(!(k in this.listeners))return!1;var q=this.listeners[k];p=Bg(q,p,t,J);return p>-1?(In(q[p]),g.HW(q,p),q.length==0&&(delete this.listeners[k],this.T--),!0):!1}; g.E.removeAll=function(k){k=k&&k.toString();var p=0,t;for(t in this.listeners)if(!k||t==k){for(var J=this.listeners[t],q=0;q<J.length;q++)++p,In(J[q]);delete this.listeners[t];this.T--}return p}; g.E.bz=function(k,p,t,J){k=this.listeners[k.toString()];var q=-1;k&&(q=Bg(k,p,t,J));return q>-1?k[q]:null}; g.E.hasListener=function(k,p){var t=k!==void 0,J=t?k.toString():"",q=p!==void 0;return g.mc(this.listeners,function(F){for(var d=0;d<F.length;++d)if(!(t&&F[d].type!=J||q&&F[d].capture!=p))return!0;return!1})};var lZ="closure_lm_"+(Math.random()*1E6|0),OP={},R3L=0,Ke="__closure_events_fn_"+(Math.random()*1E9>>>0);g.pc(g.Hg,g.R);g.Hg.prototype[wnh]=!0;g.E=g.Hg.prototype;g.E.addEventListener=function(k,p,t,J){g.eu(this,k,p,t,J)}; g.E.removeEventListener=function(k,p,t,J){z3S(this,k,p,t,J)}; g.E.dispatchEvent=function(k){var p=this.Cn;if(p){var t=[];for(var J=1;p;p=p.Cn)t.push(p),++J}p=this.K0;J=k.type||k;if(typeof k==="string")k=new g.Q3(k,p);else if(k instanceof g.Q3)k.target=k.target||p;else{var q=k;k=new g.Q3(J,p);g.PQ(k,q)}q=!0;var F;if(t)for(F=t.length-1;!k.Y&&F>=0;F--){var d=k.currentTarget=t[F];q=xW(d,J,!0,k)&&q}k.Y||(d=k.currentTarget=p,q=xW(d,J,!0,k)&&q,k.Y||(q=xW(d,J,!1,k)&&q));if(t)for(F=0;!k.Y&&F<t.length;F++)d=k.currentTarget=t[F],q=xW(d,J,!1,k)&&q;return q}; g.E.Ap=function(){g.Hg.AD.Ap.call(this);this.lO&&this.lO.removeAll(void 0);this.Cn=null}; g.E.listen=function(k,p,t,J){return this.lO.add(String(k),p,!1,t,J)}; g.E.m5=function(k,p,t,J){return this.lO.add(String(k),p,!0,t,J)}; g.E.qP=function(k,p,t,J){this.lO.remove(String(k),p,t,J)}; g.E.bz=function(k,p,t,J){return this.lO.bz(String(k),p,t,J)}; g.E.hasListener=function(k,p){return this.lO.hasListener(k!==void 0?String(k):void 0,p)};var tM=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(k){return k&&AsyncContext.Snapshot.wrap(k)}:function(k){return k};p9.prototype.get=function(){if(this.Y>0){this.Y--;var k=this.T;this.T=k.next;k.next=null}else k=this.N();return k};var JM;qn.prototype.add=function(k,p){var t=u$T.get();t.set(k,p);this.Y?this.Y.next=t:this.T=t;this.Y=t}; qn.prototype.remove=function(){var k=null;this.T&&(k=this.T,this.T=this.T.next,this.T||(this.Y=null),k.next=null);return k}; var u$T=new p9(function(){return new Fq},function(k){return k.reset()}); Fq.prototype.set=function(k,p){this.T=k;this.scope=p;this.next=null}; Fq.prototype.reset=function(){this.next=this.scope=this.T=null};var $J,dv=!1,MU_=new qn;OXh.prototype.reset=function(){this.context=this.Y=this.N=this.T=null;this.C=!1}; var Kvq=new p9(function(){return new OXh},function(k){k.reset()}); g.yu.prototype.then=function(k,p,t){return dpi(this,tM(typeof k==="function"?k:null),tM(typeof p==="function"?p:null),t)}; g.yu.prototype.$goog_Thenable=!0;g.E=g.yu.prototype;g.E.finally=function(k){var p=this;k=tM(k);return new Promise(function(t,J){JYL(p,function(q){k();t(q)},function(q){k(); J(q)})})}; g.E.pU=function(k,p){return dpi(this,null,tM(k),p)}; g.E.catch=g.yu.prototype.pU;g.E.cancel=function(k){if(this.T==0){var p=new AM(k);g.Eo(function(){oTi(this,p)},this)}}; g.E.viy=function(k){this.T=0;Nn(this,2,k)}; g.E.kHy=function(k){this.T=0;Nn(this,3,k)}; g.E.U$=function(){for(var k;k=qZS(this);)Fa6(this,k,this.T,this.Z);this.S=!1}; var fb0=Cc;g.pc(AM,rq);AM.prototype.name="cancel";g.pc(g.m5,g.Hg);g.E=g.m5.prototype;g.E.enabled=!1;g.E.eW=null;g.E.setInterval=function(k){this.Th=k;this.eW&&this.enabled?(this.stop(),this.start()):this.eW&&this.stop()}; g.E.lOh=function(){if(this.enabled){var k=g.kn()-this.Kv;k>0&&k<this.Th*.8?this.eW=this.Zd.setTimeout(this.ub,this.Th-k):(this.eW&&(this.Zd.clearTimeout(this.eW),this.eW=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}}; g.E.start=function(){this.enabled=!0;this.eW||(this.eW=this.Zd.setTimeout(this.ub,this.Th),this.Kv=g.kn())}; g.E.stop=function(){this.enabled=!1;this.eW&&(this.Zd.clearTimeout(this.eW),this.eW=null)}; g.E.Ap=function(){g.m5.AD.Ap.call(this);this.stop();delete this.Zd};g.r(g.Dz,g.R);g.E=g.Dz.prototype;g.E.sendIsolatedPayload=function(k){this.X=k;this.N=1}; g.E.Ky=function(){var k=this.Y.values();k=[].concat(g.m(k)).filter(function(p){return p.T.size}); k.length&&this.Z.flush(k,this.X);bEu(k);this.C=0;this.T.enabled&&this.T.stop()}; g.E.X3=function(k){var p=g.nS.apply(1,arguments);this.Y.has(k)||this.Y.set(k,new wE(k,p))}; g.E.YK=function(k){var p=g.nS.apply(1,arguments);this.Y.has(k)||this.Y.set(k,new iZ(k,p))}; g.E.F3=function(k){this.xJ(k,1,g.nS.apply(1,arguments))}; g.E.xJ=function(k,p){var t=g.nS.apply(2,arguments),J=fV6(this,k);J&&J instanceof wE&&(J.N(p,t),ULh(this))}; g.E.LI=function(k,p){var t=g.nS.apply(2,arguments),J=fV6(this,k);J&&J instanceof iZ&&(J.LI(p,t),ULh(this))};g.r(so,Error);so.prototype.toString=function(){var k="RpcError("+(y2L(this.code)||String(this.code))+")";this.message&&(k+=": "+this.message);return k};Ykj.prototype.zH=function(k){var p=[];vt(this,k,p);return p.join("")}; var ZEu={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},r2q=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var x_L;g.pc(ct,A2T);ct.prototype.T=function(){return new XMLHttpRequest}; x_L=new ct;var Pt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),LcS=/#|$/,vYi=/[?&]($|#)/;g.pc(g.ug,g.Hg);var GJ_=/^https?$/i,kKJ=["POST","PUT"],nYi=[];g.E=g.ug.prototype;g.E.h1=function(){this.dispose();g.xn(nYi,this)}; g.E.send=function(k,p,t,J){if(this.T)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+k);p=p?p.toUpperCase():"GET";this.B=k;this.C="";this.Y=0;this.Y8=!1;this.N=!0;this.T=this.j6?this.j6.T():x_L.T();this.T.onreadystatechange=tM((0,g.H9)(this.Dp,this));try{this.getStatus(),this.NO=!0,this.T.open(p,String(k),!0),this.NO=!1}catch(d){this.getStatus();QOq(this,d);return}k=t||"";t=new Map(this.headers);if(J)if(Object.getPrototypeOf(J)===Object.prototype)for(var q in J)t.set(q, J[q]);else if(typeof J.keys==="function"&&typeof J.get==="function"){q=g.Z(J.keys());for(var F=q.next();!F.done;F=q.next())F=F.value,t.set(F,J.get(F))}else throw Error("Unknown input type for opt_headers: "+String(J));J=Array.from(t.keys()).find(function(d){return"content-type"==d.toLowerCase()}); q=g.B9.FormData&&k instanceof g.B9.FormData;!g.Kc(kKJ,p)||J||q||t.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");p=g.Z(t);for(J=p.next();!J.done;J=p.next())t=g.Z(J.value),J=t.next().value,t=t.next().value,this.T.setRequestHeader(J,t);this.P0&&(this.T.responseType=this.P0);"withCredentials"in this.T&&this.T.withCredentials!==this.Z&&(this.T.withCredentials=this.Z);try{this.S&&(clearTimeout(this.S),this.S=null),this.gy>0&&(this.getStatus(),this.S=setTimeout(this.V2.bind(this), this.gy)),this.getStatus(),this.L=!0,this.T.send(k),this.L=!1}catch(d){this.getStatus(),QOq(this,d)}}; g.E.V2=function(){typeof jr!="undefined"&&this.T&&(this.C="Timed out after "+this.gy+"ms, aborting",this.Y=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.E.abort=function(k){this.T&&this.N&&(this.getStatus(),this.N=!1,this.X=!0,this.T.abort(),this.X=!1,this.Y=k||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),lg(this))}; g.E.Ap=function(){this.T&&(this.N&&(this.N=!1,this.X=!0,this.T.abort(),this.X=!1),lg(this,!0));g.ug.AD.Ap.call(this)}; g.E.Dp=function(){this.MO()||(this.NO||this.L||this.X?Phi(this):this.jG0())}; g.E.jG0=function(){Phi(this)}; g.E.isActive=function(){return!!this.T}; g.E.isComplete=function(){return g.Oo(this)==4}; g.E.getStatus=function(){try{return g.Oo(this)>2?this.T.status:-1}catch(k){return-1}}; g.E.getResponseHeader=function(k){if(this.T&&this.isComplete())return k=this.T.getResponseHeader(k),k===null?void 0:k}; g.E.getLastError=function(){return typeof this.C==="string"?this.C:String(this.C)};pB.prototype.send=function(k,p,t){p=p===void 0?function(){}:p; t=t===void 0?function(){}:t; wQT(k.url,function(J){J=J.target;K9(J)?p(g.Ht(J)):t(J.getStatus())},k.requestType,k.body,k.requestHeaders,k.timeoutMillis,k.withCredentials)}; pB.prototype.P$=function(){return 1};Jk.prototype.done=function(){this.logger.lj(this.event,tk()-this.startTime)}; g.r(om,fc);g.r(FZ,om);g.E=FZ.prototype;g.E.bq=function(){}; g.E.cV=function(){}; g.E.lj=function(){}; g.E.Y4=function(){}; g.E.tY=function(){}; g.E.XN=function(k,p,t){return t}; g.E.EL=function(){}; g.E.TM=function(){}; g.E.Yj=function(){}; g.E.vA=function(){}; g.r($z,om);g.E=$z.prototype;g.E.update=function(k){this.logger.dispose();this.logger=k}; g.E.cV=function(k){this.logger.cV(k)}; g.E.lj=function(k,p){this.logger.lj(k,p)}; g.E.Y4=function(k){this.logger.Y4(k)}; g.E.tY=function(){this.logger.tY()}; g.E.XN=function(k,p,t){return this.logger.XN(k,p,t)}; g.E.EL=function(k){this.logger.EL(k)}; g.E.TM=function(k){this.logger.TM(k)}; g.E.Yj=function(k){this.logger.Yj(k)}; g.E.vA=function(k){this.logger.vA(k)}; g.E.S9=function(k){this.logger instanceof Sw&&this.logger.S9(k)}; g.E.bq=function(k){this.logger.bq(k)}; g.r(dg,g.R);g.r(EL,om);g.E=EL.prototype;g.E.S9=function(k){this.yG=k}; g.E.bq=function(k){this.metrics.gip.LI(k,this.nH)}; g.E.cV=function(k){this.metrics.eventCount.T(k,this.nH)}; g.E.lj=function(k,p){this.metrics.Bv.LI(p,k,this.yG,this.nH)}; g.E.Y4=function(k){this.metrics.errorCount.T(k,this.yG,this.nH)}; g.E.XN=function(k,p,t){function J(d){if(!q.MO()){var S=tk()-F;q.metrics.Ath.LI(S,k,p,d,q.yG,q.nH)}} var q=this,F=tk();t.then(function(){return void J(0)},function(d){return void J(d instanceof so?d.code:-1)}); return t}; g.E.EL=function(k){this.metrics.uSp.T(k,this.yG,this.nH)}; g.E.TM=function(k){this.metrics.D2.T(k,this.yG,this.nH)}; g.E.Yj=function(k){this.metrics.s3p.T(k,this.yG,this.nH)}; g.r(Sw,EL);Sw.prototype.vA=function(k){var p=this;this.T.dispose();this.Y&&this.service.dispose();this.service=this.options.Dj("47",this.options.WY.concat(k));this.T=new dg(function(){return void p.service.Ky()},this.options.yH); this.metrics=XQq(this.service);this.N=k}; Sw.prototype.tY=function(){B8_(this.T)};g.r(UL,X$);g.r(fB,X$);g.r(bO,X$);var OET=yY(bO),eVM=function(k){return lP(function(p){return p instanceof k&&!((p.sQ[Q1]|0)&2)})}(bO); bO.messageId="bfkj";g.r($n,X$);g.r(N6,X$);var hVi=yY(N6);g.r(Yz,g.R);Yz.prototype.snapshot=function(k){if(this.MO())throw Error("Already disposed");this.logger.cV("n");var p=this.logger.share();return this.N.then(function(t){var J=t.m7;return new Promise(function(q){var F=new Jk(p,"n");J(function(d){F.done();p.bq(d.length);p.tY();p.dispose();q(d)},[k.pH, k.DI,k.R2,k.II])})})}; Yz.prototype.VR=function(k){var p=this;if(this.MO())throw Error("Already disposed");this.logger.cV("n");var t=q6(this.logger,function(){return p.C([k.pH,k.DI,k.R2,k.II])},"n"); this.logger.bq(t.length);this.logger.tY();return t}; Yz.prototype.P9=function(k){this.N.then(function(p){var t;(t=p.lw0)==null||t(k)})}; Yz.prototype.Ce=function(){return this.logger.share()};g.r(CB,X$);g.r(Ak,X$);mk.prototype.gq=function(k,p){return Kce(this,k,p,new FZ,0)}; mk.prototype.w3=function(k){return kSi(this,k,new FZ,0)};g.r(VM,g.R);VM.prototype.snapshot=function(k){var p=this;return g.Q(function(t){switch(t.T){case 1:if(p.MO())throw Error("Already disposed");if(p.Y||p.Z){t.oY(2);break}return g.n(t,p.X.promise,2);case 2:if(!p.Y){t.oY(4);break}return g.n(t,p.Y.snapshot(k),5);case 5:return t.return(t.Y);case 4:throw p.Z;}})}; VM.prototype.P9=function(k){var p,t;(p=this.Y)==null||(t=p.P9)==null||t.call(p,k)}; VM.prototype.handleError=function(k){if(!this.MO()){this.Z=k;this.X.resolve();var p,t;(t=(p=this.options).OTb)==null||t.call(p,k)}}; VM.prototype.Ce=function(){return this.logger.share()}; var J19={Tah:432E5,ej:3E5,GX:10,BX:1E4,yh:3E4,Tsp:3E4,JD6:6E4,Hv:1E3,GK:6E4,d9:6E5,zK:.25,w9:2,maxAttempts:10};var pWS,fri=(pWS=Math.imul)!=null?pWS:function(k,p){return k*p|0},vM=[196, 200,224,18];cM.prototype.zH=function(){return String(this.T)+","+this.Y.join()}; cM.prototype.vN=function(k,p){var t=void 0;if(this.Y[this.T]!==k){var J=this.Y.indexOf(k);J!==-1?(this.Y.splice(J,1),J<this.T&&this.T--,this.Y.splice(this.T,0,k)):(t=this.Y[this.T],this.Y[this.T]=k)}this.T=(this.T+1)%this.maxItems;k=Uae("iU5q-!O9@$",this.zH());t&&k&&p(t);return k};var VuL={toString:function(k){var p=[],t=0;k-=-2147483648;p[t++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(k%52);for(k=Math.floor(k/52);k>0;)p[t++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(k%62),k=Math.floor(k/62);return p.join("")}};var DaT;g.r(wg,g.R);wg.prototype.Fy=function(k,p){var t=this.Qj(k);p==null||p(t);return q6(this.logger,function(){return g.Zn(t,2)},this.N)}; DaT=Symbol.dispose;g.r(PM,wg);PM.prototype.Qj=function(k,p){var t=this;this.logger.cV(this.T);++this.X>=this.S&&this.Y.resolve();var J=k();k=q6(this.logger,function(){return t.C(J)},"C"); if(k===void 0)throw new qQ(17,"YNJ:Undefined");if(!(k instanceof Uint8Array))throw new qQ(18,"ODM:Invalid");p==null||p(k);return k}; g.r(GC,wg);GC.prototype.Qj=function(){return this.C}; g.r(XZ,wg);XZ.prototype.Qj=function(){var k=this;return q6(this.logger,function(){return Aj(k.C)},"d")}; XZ.prototype.Fy=function(){return this.C}; g.r(Rm,wg);Rm.prototype.Qj=function(){if(this.C)return this.C;this.C=sni(this,function(k){return"_"+Wu9(k)}); return sni(this,function(k){return k})}; g.r(zC,wg);zC.prototype.Qj=function(k){var p=k();if(p.length>118)throw new qQ(19,"DFO:Invalid");k=Math.floor(Date.now()/1E3);var t=[Math.random()*255,Math.random()*255],J=t.concat([this.C&255,this.clientState],[k>>24&255,k>>16&255,k>>8&255,k&255]);k=new Uint8Array(2+J.length+p.length);k[0]=34;k[1]=J.length+p.length;k.set(J,2);k.set(p,2+J.length);p=k.subarray(2);for(J=t=t.length;J<p.length;++J)p[J]^=p[J%t];this.logger.EL(this.clientState);return k};var Qne={gT:3E4,Y7O:2E4};g.r(ew,g.R);ew.prototype.J2=function(k){if(!(k>150))try{this.cache=new Ze0(k,this.logger)}catch(p){this.reportError(new qQ(22,"GBJ:init",p))}}; ew.prototype.reportError=function(k){this.logger.Y4(k.code);this.onError(k);return k}; g.r(gg,ew);gg.prototype.b8=function(){return this.C.promise}; gg.prototype.Qj=function(k){return hk(this,Object.assign({},k),!1)}; gg.prototype.Fy=function(k){return hk(this,Object.assign({},k),!0)}; var PZe=function(k){return lP(function(p){if(!pj(p))return!1;for(var t=g.Z(Object.entries(k)),J=t.next();!J.done;J=t.next()){var q=g.Z(J.value);J=q.next().value;q=q.next().value;if(!(J in p)){if(q.OMT===!0)continue;return!1}if(!q(p[J]))return!1}return!0})}({UX:function(k){return lP(function(p){return p instanceof k})}(VM)},"");g.r(lO,X$);var t9S=yY(lO);Xge.prototype.getMetadata=function(){return this.metadata};jw.prototype.getMetadata=function(){return this.metadata}; jw.prototype.getStatus=function(){return this.status};OL.prototype.Z=function(k,p){p=p===void 0?{}:p;return new Xge(k,this,p)}; OL.prototype.getName=function(){return this.name};var JCS=new OL("/google.internal.waa.v1.Waa/Create",CB,lO,function(k){return k.zH()},t9S);g.r(KB,X$);var xLS=new OL("/google.internal.waa.v1.Waa/GenerateIT",Ak,KB,function(k){return k.zH()},yY(KB));var b9h=new Set(["SAPISIDHASH","APISIDHASH"]);var $nL=Promise;g.r(HM,X$);HM.prototype.getValue=function(){var k=RK(this,2);if(Array.isArray(k)||k instanceof X$)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return jt(this,2)};g.r(xz,X$);xz.prototype.getMessage=function(){return Ns(this,2)}; var arq=yY(xz);ks.prototype.Mx=function(k,p){k=="data"?this.N.push(p):k=="metadata"?this.X.push(p):k=="status"?this.S.push(p):k=="end"?this.C.push(p):k=="error"&&this.Y.push(p);return this}; ks.prototype.removeListener=function(k,p){k=="data"?qM(this.N,p):k=="metadata"?qM(this.X,p):k=="status"?qM(this.S,p):k=="end"?qM(this.C,p):k=="error"&&qM(this.Y,p);return this}; ks.prototype.cancel=function(){this.T.abort()}; ks.prototype.cancel=ks.prototype.cancel;ks.prototype.removeListener=ks.prototype.removeListener;ks.prototype.on=ks.prototype.Mx;g.r(BEL,Error);g.pc(g.Fn,A2T);g.Fn.prototype.T=function(){var k=new $s(this.C,this.N);this.Y&&k.setCredentialsMode(this.Y);return k}; g.Fn.prototype.setCredentialsMode=function(k){this.Y=k}; g.pc($s,g.Hg);g.E=$s.prototype;g.E.open=function(k,p){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.gy=k;this.L=p;this.readyState=1;dN(this)}; g.E.send=function(k){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.T=!0;var p={headers:this.B,method:this.gy,credentials:this.X,cache:void 0};k&&(p.body=k);(this.Y8||g.B9).fetch(new Request(this.L,p)).then(this.o8h.bind(this),this.mY.bind(this))}; g.E.abort=function(){this.response=this.responseText="";this.B=new Headers;this.status=0;this.N&&this.N.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,E8(this));this.readyState=0}; g.E.o8h=function(k){if(this.T&&(this.C=k,this.Y||(this.status=this.C.status,this.statusText=this.C.statusText,this.Y=k.headers,this.readyState=2,dN(this)),this.T&&(this.readyState=3,dN(this),this.T)))if(this.responseType==="arraybuffer")k.arrayBuffer().then(this.KSr.bind(this),this.mY.bind(this));else if(typeof g.B9.ReadableStream!=="undefined"&&"body"in k){this.N=k.body.getReader();if(this.S){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.Z=new TextDecoder;Mui(this)}else k.text().then(this.PhT.bind(this),this.mY.bind(this))}; g.E.ypb=function(k){if(this.T){if(this.S&&k.value)this.response.push(k.value);else if(!this.S){var p=k.value?k.value:new Uint8Array(0);if(p=this.Z.decode(p,{stream:!k.done}))this.response=this.responseText+=p}k.done?E8(this):dN(this);this.readyState==3&&Mui(this)}}; g.E.PhT=function(k){this.T&&(this.response=this.responseText=k,E8(this))}; g.E.KSr=function(k){this.T&&(this.response=k,E8(this))}; g.E.mY=function(){this.T&&E8(this)}; g.E.setRequestHeader=function(k,p){this.B.append(k,p)}; g.E.getResponseHeader=function(k){return this.Y?this.Y.get(k.toLowerCase())||"":""}; g.E.getAllResponseHeaders=function(){if(!this.Y)return"";for(var k=[],p=this.Y.entries(),t=p.next();!t.done;)t=t.value,k.push(t[0]+": "+t[1]),t=p.next();return k.join("\r\n")}; g.E.setCredentialsMode=function(k){this.X=k}; Object.defineProperty($s.prototype,"withCredentials",{get:function(){return this.X==="include"}, set:function(k){this.setCredentialsMode(k?"include":"same-origin")}});g.Sv.prototype.toString=function(){var k=[],p=this.X;p&&k.push(Tc(p,onq,!0),":");var t=this.T;if(t||p=="file")k.push("//"),(p=this.B)&&k.push(Tc(p,onq,!0),"@"),k.push(g.OZ(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.N,t!=null&&k.push(":",String(t));if(t=this.Y)this.T&&t.charAt(0)!="/"&&k.push("/"),k.push(Tc(t,t.charAt(0)=="/"?qRq:F4K,!0));(t=this.C.toString())&&k.push("?",t);(t=this.S)&&k.push("#",Tc(t,$QJ));return k.join("")}; g.Sv.prototype.resolve=function(k){var p=this.clone(),t=!!k.X;t?g.U8(p,k.X):t=!!k.B;t?p.B=k.B:t=!!k.T;t?g.fI(p,k.T):t=k.N!=null;var J=k.Y;if(t)g.bp(p,k.N);else if(t=!!k.Y){if(J.charAt(0)!="/")if(this.T&&!this.Y)J="/"+J;else{var q=p.Y.lastIndexOf("/");q!=-1&&(J=p.Y.slice(0,q+1)+J)}q=J;if(q==".."||q==".")J="";else if(g.DA(q,"./")||g.DA(q,"/.")){J=Va(q,"/");q=q.split("/");for(var F=[],d=0;d<q.length;){var S=q[d++];S=="."?J&&d==q.length&&F.push(""):S==".."?((F.length>1||F.length==1&&F[0]!="")&&F.pop(), J&&d==q.length&&F.push("")):(F.push(S),J=!0)}J=F.join("/")}else J=q}t?p.Y=J:t=k.C.toString()!=="";t?NM(p,k.C.clone()):t=!!k.S;t&&(p.S=k.S);return p}; g.Sv.prototype.clone=function(){return new g.Sv(this)}; var onq=/[#\/\?@]/g,F4K=/[#\?:]/g,qRq=/[#\?]/g,uIe=/[#\?@]/g,$QJ=/#/g;g.E=Ys.prototype;g.E.add=function(k,p){CI(this);this.N=null;k=AT(this,k);var t=this.T.get(k);t||this.T.set(k,t=[]);t.push(p);this.Y=this.Y+1;return this}; g.E.remove=function(k){CI(this);k=AT(this,k);return this.T.has(k)?(this.N=null,this.Y=this.Y-this.T.get(k).length,this.T.delete(k)):!1}; g.E.clear=function(){this.T=this.N=null;this.Y=0}; g.E.isEmpty=function(){CI(this);return this.Y==0}; g.E.forEach=function(k,p){CI(this);this.T.forEach(function(t,J){t.forEach(function(q){k.call(p,q,J,this)},this)},this)}; g.E.zS=function(){CI(this);for(var k=Array.from(this.T.values()),p=Array.from(this.T.keys()),t=[],J=0;J<p.length;J++)for(var q=k[J],F=0;F<q.length;F++)t.push(p[J]);return t}; g.E.Ve=function(k){CI(this);var p=[];if(typeof k==="string")jnT(this,k)&&(p=p.concat(this.T.get(AT(this,k))));else{k=Array.from(this.T.values());for(var t=0;t<k.length;t++)p=p.concat(k[t])}return p}; g.E.set=function(k,p){CI(this);this.N=null;k=AT(this,k);jnT(this,k)&&(this.Y=this.Y-this.T.get(k).length);this.T.set(k,[p]);this.Y=this.Y+1;return this}; g.E.get=function(k,p){if(!k)return p;k=this.Ve(k);return k.length>0?String(k[0]):p}; g.E.toString=function(){if(this.N)return this.N;if(!this.T)return"";for(var k=[],p=Array.from(this.T.keys()),t=0;t<p.length;t++){var J=p[t],q=g.OZ(J);J=this.Ve(J);for(var F=0;F<J.length;F++){var d=q;J[F]!==""&&(d+="="+g.OZ(J[F]));k.push(d)}}return this.N=k.join("&")}; g.E.clone=function(){var k=new Ys;k.N=this.N;this.T&&(k.T=new Map(this.T),k.Y=this.Y);return k};g.pc(g.VQ,g.R);var dQW=[];g.E=g.VQ.prototype;g.E.listen=function(k,p,t,J){Array.isArray(p)||(p&&(dQW[0]=p.toString()),p=dQW);for(var q=0;q<p.length;q++){var F=g.eu(k,p[q],t||this.handleEvent,J||!1,this.Y||this);if(!F)break;this.T[F.key]=F}return this}; g.E.m5=function(k,p,t,J){return HeM(this,k,p,t,J)}; g.E.qP=function(k,p,t,J,q){if(Array.isArray(p))for(var F=0;F<p.length;F++)this.qP(k,p[F],t,J,q);else t=t||this.handleEvent,J=g.lq(J)?!!J.capture:!!J,q=q||this.Y||this,t=gE(t),J=!!J,p=GS(k)?k.bz(p,t,J,q):k?(k=uZ(k))?k.bz(p,t,J,q):null:null,p&&(ju(p),delete this.T[p.key])}; g.E.removeAll=function(){g.ZV(this.T,function(k,p){this.T.hasOwnProperty(p)&&ju(k)},this); this.T={}}; g.E.Ap=function(){g.VQ.AD.Ap.call(this);this.removeAll()}; g.E.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};xaw.prototype.isInputValid=function(){return this.N};WZ.prototype.isInputValid=function(){return this.T!=3}; WZ.prototype.C$=function(){return this.S}; WZ.prototype.e4=function(){return!0}; WZ.prototype.parse=function(k){function p(U){U&128&&DW(F,d,S,"invalid tag");(U&7)!=2&&DW(F,d,S,"invalid wire type");F.N=U>>>3;F.N!=1&&F.N!=2&&F.N!=15&&DW(F,d,S,"unexpected tag");F.T=1;F.Y=0;F.C=0} function t(U){F.C++;F.C==5&&U&240&&DW(F,d,S,"message length too long");F.Y|=(U&127)<<(F.C-1)*7;U&128||(F.T=2,F.B=0,typeof Uint8Array!=="undefined"?F.X=new Uint8Array(F.Y):F.X=Array(F.Y),F.Y==0&&q())} function J(U){F.X[F.B++]=U;F.B==F.Y&&q()} function q(){if(F.N<15){var U={};U[F.N]=F.X;F.Z.push(U)}F.T=0} for(var F=this,d=k instanceof Array?k:new Uint8Array(k),S=0;S<d.length;){switch(F.T){case 3:DW(F,d,S,"stream already broken");break;case 0:p(d[S]);break;case 1:t(d[S]);break;case 2:J(d[S]);break;default:throw Error("unexpected parser state: "+F.T);}F.L++;S++}k=F.Z;F.Z=[];return k.length>0?k:null};s8.prototype.isInputValid=function(){return this.T===null}; s8.prototype.C$=function(){return this.T}; s8.prototype.e4=function(){return!1}; s8.prototype.parse=function(k){this.T!==null&&pth(this,k,"stream already broken");var p=null;try{var t=this.N;t.N||kq6(t,k,"stream already broken");t.T+=k;var J=Math.floor(t.T.length/4);if(J==0)var q=null;else{try{var F=bcj(t.T.slice(0,J*4))}catch(d){kq6(t,t.T,d.message)}t.Y+=J*4;t.T=t.T.slice(J*4);q=F}p=q===null?null:this.C.parse(q)}catch(d){pth(this,k,d.message)}this.Y+=k.length;return p};var Enn={INIT:0,pk:1,HT:2,FQ:3,BG:4,zr:5,STRING:6,wk:7,Cz:8,R6:9,bR:10,lR:11,b4:12,l4:13,Xz:14,D_:15,je:16,Qv:17,Fj:18,Bc:19,GQ:20};g.E=vZ.prototype;g.E.isInputValid=function(){return this.X!=3}; g.E.C$=function(){return this.L}; g.E.done=function(){return this.X===2}; g.E.e4=function(){return!1}; g.E.parse=function(k){function p(){for(;y<k.length;)if(LI(k[y]))y++,F.N++;else break;return y<f} function t(){for(var T;;){T=k[y++];if(!T)break;F.N++;switch(F.T){case U.INIT:T==="{"?F.T=U.HT:T==="["?F.T=U.BG:LI(T)||cZ(F,k,y);continue;case U.wk:case U.HT:if(LI(T))continue;if(F.T===U.wk)d.push(U.Cz);else if(T==="}"){q("{}");F.T=J();continue}else d.push(U.FQ);T==='"'?F.T=U.STRING:cZ(F,k,y);continue;case U.Cz:case U.FQ:if(LI(T))continue;T===":"?(F.T===U.FQ&&(d.push(U.FQ),F.Y++),F.T=U.pk):T==="}"?(F.Y--,q(),F.T=J()):T===","?(F.T===U.FQ&&d.push(U.FQ),F.T=U.wk):cZ(F,k,y);continue;case U.BG:case U.pk:if(LI(T))continue; if(F.T===U.BG)if(F.Y++,F.T=U.pk,T==="]"){F.Y--;if(F.Y===0){F.T=U.zr;return}q("[]");F.T=J();continue}else d.push(U.zr);T==='"'?F.T=U.STRING:T==="{"?F.T=U.HT:T==="["?F.T=U.BG:T==="t"?F.T=U.R6:T==="f"?F.T=U.b4:T==="n"?F.T=U.je:T!=="-"&&("0123456789".indexOf(T)!==-1?F.T=U.GQ:cZ(F,k,y));continue;case U.zr:if(T===",")d.push(U.zr),F.T=U.pk,F.Y===1&&(N=y);else if(T==="]"){F.Y--;if(F.Y===0)return;q();F.T=J()}else if(LI(T))continue;else cZ(F,k,y);continue;case U.STRING:var A=y;a:for(;;){for(;F.B>0;)if(T=k[y++], F.B===4?F.B=0:F.B++,!T)break a;if(T==='"'&&!F.Z){F.T=J();break}if(T==="\\"&&!F.Z&&(F.Z=!0,T=k[y++],!T))break;if(F.Z)if(F.Z=!1,T==="u"&&(F.B=1),T=k[y++])continue;else break;S.lastIndex=y;T=S.exec(k);if(!T){y=k.length+1;break}y=T.index+1;T=k[T.index];if(!T)break}F.N+=y-A;continue;case U.R6:if(!T)continue;T==="r"?F.T=U.bR:cZ(F,k,y);continue;case U.bR:if(!T)continue;T==="u"?F.T=U.lR:cZ(F,k,y);continue;case U.lR:if(!T)continue;T==="e"?F.T=J():cZ(F,k,y);continue;case U.b4:if(!T)continue;T==="a"?F.T=U.l4: cZ(F,k,y);continue;case U.l4:if(!T)continue;T==="l"?F.T=U.Xz:cZ(F,k,y);continue;case U.Xz:if(!T)continue;T==="s"?F.T=U.D_:cZ(F,k,y);continue;case U.D_:if(!T)continue;T==="e"?F.T=J():cZ(F,k,y);continue;case U.je:if(!T)continue;T==="u"?F.T=U.Qv:cZ(F,k,y);continue;case U.Qv:if(!T)continue;T==="l"?F.T=U.Fj:cZ(F,k,y);continue;case U.Fj:if(!T)continue;T==="l"?F.T=J():cZ(F,k,y);continue;case U.Bc:T==="."?F.T=U.GQ:cZ(F,k,y);continue;case U.GQ:if("0123456789.eE+-".indexOf(T)!==-1)continue;else y--,F.N--,F.T= J();continue;default:cZ(F,k,y)}}} function J(){var T=d.pop();return T!=null?T:U.pk} function q(T){F.Y>1||(T||(T=N===-1?F.C+k.substring(b,y):k.substring(N,y)),F.gy?F.S.push(T):F.S.push(JSON.parse(T)),N=y)} for(var F=this,d=F.Y8,S=F.NO,U=Enn,f=k.length,b=0,N=-1,y=0;y<f;)switch(F.X){case 3:return cZ(F,k,y),null;case 2:return p()&&cZ(F,k,y),null;case 0:if(p()){var Y=k[y++];F.N++;if(Y==="["){F.X=1;b=y;F.T=U.BG;continue}else cZ(F,k,y)}return null;case 1:return t(),F.Y===0&&F.T==U.zr?(F.X=2,F.C=k.substring(y)):F.C=N===-1?F.C+k.substring(b):k.substring(N),F.S.length>0?(Y=F.S,F.S=[],Y):null}return null};nI.prototype.isInputValid=function(){return this.X===null}; nI.prototype.C$=function(){return this.X}; nI.prototype.e4=function(){return!1}; nI.prototype.parse=function(k){function p(U){F.Y=6;F.X="The stream is broken @"+F.T+"/"+d+". Error: "+U+". With input:\n";throw Error(F.X);} function t(){F.N=new vZ({Q78:!0,jL:!0})} function J(U){if(U)for(var f=0;f<U.length;f++){var b={};b[1]=U[f];F.C.push(b)}} function q(U){if(U){(F.S||U.length>1)&&p("extra status: "+U);F.S=!0;var f={};f[2]=U[0];F.C.push(f)}} for(var F=this,d=0;d<k.length;){var S;if(S=F.Y!==2){a:{for(;d<k.length;){if(!LI(k[d])){S=!0;break a}d++;F.T++}S=!1}S=!S}if(S)return null;switch(F.Y){case 6:p("stream already broken");break;case 0:k[d]==="["?(F.Y=1,d++,F.T++):p("unexpected input token");break;case 1:k[d]==="["?(F.Y=2,t()):k[d]===","||k.slice(d,d+5)=="null,"?F.Y=3:k[d]==="]"?(F.Y=5,d++,F.T++):p("unexpected input token");break;case 2:S=F.N.parse(k.substring(d));J(S);F.N.done()?(F.Y=3,S=F.N.C,F.T+=k.length-d-S.length,k=S,d=0):(F.T+=k.length- d,d=k.length);break;case 3:k[d]===","||k.slice(d,d+5)=="null,"?(F.Y=4,t(),F.N.parse("["),d+=k[d]===","?1:5,F.T++):k[d]==="]"&&(F.Y=5,d++,F.T++);break;case 4:S=F.N.parse(k.substring(d));q(S);F.N.done()?(F.Y=5,S=F.N.C,F.T+=k.length-d-S.length,k=S,d=0):(F.T+=k.length-d,d=k.length);break;case 5:p("extra input after stream end")}}return F.C.length>0?(k=F.C,F.C=[],k):null};wN.prototype.Mf=function(){return this.T}; wN.prototype.getStatus=function(){return this.X}; wN.prototype.gy=function(k){k=k.target;try{if(k==this.T)a:{var p=g.Oo(this.T),t=this.T.Y,J=this.T.getStatus(),q=g.Ht(this.T);k=[];if(g.xJ(this.T)instanceof Array){var F=g.xJ(this.T);F.length>0&&F[0]instanceof Uint8Array&&(this.L=!0,k=F)}if(!(p<3||p==3&&!q&&k.length==0))if(J=J==200||J==206,p==4&&(t==8?Ia(this,7):t==7?Ia(this,8):J||Ia(this,3)),this.Y||(this.Y=tri(this.T),this.Y==null&&Ia(this,5)),this.X>2)Xn(this);else{if(k.length>this.N){var d=k.length;t=[];try{if(this.Y.e4())for(var S=0;S<d;S++){var U= this.Y.parse(Array.from(k[S]));U&&(t=t.concat(U))}else{U="";if(!this.S){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.S=new TextDecoder}for(S=0;S<d;S++)U+=this.S.decode(k[S],{stream:p==4&&S==d-1});t=this.Y.parse(U)}k.splice(0,d);t&&this.C(t)}catch(b){Ia(this,5);Xn(this);break a}}else if(q.length>this.N){S=q.slice(this.N);this.N=q.length;try{var f=this.Y.parse(S);f!=null&&this.C&&this.C(f)}catch(b){Ia(this,5);Xn(this);break a}}p==4?(q.length!= 0||this.L?Ia(this,2):Ia(this,4),Xn(this)):Ia(this,1)}}}catch(b){Ia(this,6),Xn(this)}};g.E=JMh.prototype;g.E.Mx=function(k,p){var t=this.Y[k];t||(t=[],this.Y[k]=t);t.push(p);return this}; g.E.addListener=function(k,p){this.Mx(k,p);return this}; g.E.removeListener=function(k,p){var t=this.Y[k];t&&g.xn(t,p);(k=this.T[k])&&g.xn(k,p);return this}; g.E.once=function(k,p){var t=this.T[k];t||(t=[],this.T[k]=t);t.push(p);return this}; g.E.C3y=function(k){var p=this.Y.data;p&&oJM(k,p);(p=this.T.data)&&oJM(k,p);this.T.data=[]}; g.E.rBy=function(){switch(this.N.getStatus()){case 1:Ra(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Ra(this,"error");break;case 8:Ra(this,"close");break;case 2:Ra(this,"end")}};qoh.prototype.serverStreaming=function(k,p,t,J){var q=this,F=k.substring(0,k.length-J.name.length);return F5w(function(d){var S=d.Gj,U=d.getMetadata(),f=Soj(q,!1);U=Une(q,U,f,F+S.getName());var b=fzi(f,S.Y,!0);d=S.T(d.WK);f.send(U,"POST",d);return b},this.C).call(this,J.Z(p,t))};Nvu.prototype.create=function(k,p){return HEi(this.T,this.Y+"/$rpc/google.internal.waa.v1.Waa/Create",k,p||{},JCS)};var SRc=1,up=new WeakMap;g.r(BZ,g.R);BZ.prototype.signal=function(){var k=new ev(!1);this.signals.add(k);g.z(this,k);return k}; BZ.prototype.rX=function(k){return zc(this,k).rX()}; g.r(ev,g.R);g.E=ev.prototype;g.E.Cs=function(){var k=this,p=SRc++;hT(function(){yMj(k,p)}); return p}; g.E.detach=function(k){var p=this;hT(function(){var t=p.slots.get(k);t&&t.wU()})}; g.E.value=function(k){return this.promise(!0,k)}; g.E.rX=function(){return this.Nd}; g.E.next=function(k){return this.promise(!1,k)}; g.E.promise=function(k,p){var t=this,J=tcw();hT(function(){if(t.MO())J.reject(new AM("Signal initially disposed"));else if(p&&p.MO())J.reject(new AM("Owner initially disposed"));else if(k&&t.Ni&&t.ql)J.resolve(t.Nd);else if(t.g0.add(J),C9(J.promise,function(){t.g0.delete(J)}),p){var q=function(){J.reject(new AM("Owner asynchronously disposed"))}; C9(J.promise,function(){var F=up.get(p);F&&g.xn(F,q)}); rMu(p,q)}}); return J.promise}; g.E.Ap=function(){var k=this;g.R.prototype.Ap.call(this);hT(function(){for(var p=g.Z(k.slots.values()),t=p.next();!t.done;t=p.next())t=t.value.wU,t();k.slots.clear();p=g.Z(k.g0);for(t=p.next();!t.done;t=p.next())t.value.reject(new AM("Signal asynchronously disposed"));k.g0.clear()})}; var MM=[],gN=!1;g.r(lp,g.R);lp.prototype.start=function(){var k=this;if(this.MO())throw new O8("Cannot start a disposed timer.");if(!this.S){this.C=0;if(this.Z){var p=Date.now();this.handle=setInterval(function(){k.C=k.milliseconds>0?Math.trunc((Date.now()-p)/k.milliseconds):k.C+1;var t;(t=k.Y)==null||t.resolve();k.Y=void 0;if(k.N){var J;(J=k.T)!=null&&aa(zc(J,k.N),k)}k.A5.LW(k)},this.milliseconds)}else this.handle=setTimeout(function(){k.state=3; k.handle=void 0;k.C=1;var t;(t=k.Y)==null||t.resolve();k.Y=void 0;if(k.N){var J;(J=k.T)!=null&&aa(zc(J,k.N),k)}k.A5.LW(k)},this.milliseconds); this.state=1}}; lp.prototype.cancel=function(){if(this.S){this.clear();this.state=2;var k;(k=this.Y)==null||k.reject(new jv);var p;(p=this.A5.Ep)==null||p.call(this);if(this.X){var t;(t=this.T)!=null&&aa(zc(t,this.X))}}}; lp.prototype.Ap=function(){this.clear();var k;(k=this.Y)==null||k.reject(new O8);this.state=4;g.R.prototype.Ap.call(this)}; lp.prototype.clear=function(){this.Z?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.dT.Object.defineProperties(lp.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.C}}, B:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.Y!=null||(this.Y=new g.yM),this.Y.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new jv("Timer has been cancelled."));case 4:return Promise.reject(new O8("Timer has been disposed."));default:Ft(this.state)}}}, LW:{configurable:!0,enumerable:!0,get:function(){if(this.MO())throw new O8("Cannot attach a signal to a disposed timer.");this.N||(this.T!=null||(this.T=new BZ(this)),this.N=this.T.signal());return this.N}}, Ep:{configurable:!0,enumerable:!0,get:function(){if(this.MO())throw new O8("Cannot attach a signal to a disposed timer.");this.X||(this.T!=null||(this.T=new BZ(this)),this.X=this.T.signal());return this.X}}}); g.r(jv,rq);g.r(O8,rq);g.r(KI,ew);g.E=KI.prototype;g.E.isReady=function(){return!!this.T}; g.E.ready=function(){var k=this;return g.Q(function(p){return g.n(p,k.N.promise,0)})}; g.E.gq=function(k){return AMq(this,this.logger.XN("c",k===void 0?1:k,this.Xu.gq(rg().T,null)),new qQ(10,"JVZ:Timeout"))}; g.E.prefetch=function(){this.state===1&&(this.Jx=this.gq())}; g.E.start=function(){if(this.state===1){this.state=2;var k=new Jk(this.logger,"r");this.ready().finally(function(){return void k.done()}); Vrj(this)}}; g.E.Qj=function(k){W5u(this,k);return hk(this,CgS(k),!1)}; g.E.Fy=function(k){W5u(this,k);return hk(this,CgS(k),!0)};var vJi={NONE:0,ENh:1},d6T={EM:0,NO8:1,u3h:2,CLO:3},P0={Gs:"a",ryY:"d",VIDEO:"v"};xs.prototype.isVisible=function(){return this.EC?this.fb>=.3:this.fb>=.5};var EQ={VbG:0,mBb:1},Fki={NONE:0,P2p:1,ZUy:2};ko.prototype.getValue=function(){return this.Y}; g.r(pO,ko);pO.prototype.N=function(k){this.Y===null&&g.LE(this.C,k)&&(this.Y=k)}; g.r(tS,ko);tS.prototype.N=function(k){this.Y===null&&typeof k==="number"&&(this.Y=k)}; g.r(JS,ko);JS.prototype.N=function(k){this.Y===null&&typeof k==="string"&&(this.Y=k)};oV.prototype.disable=function(){this.Y=!1}; oV.prototype.enable=function(){this.Y=!0}; oV.prototype.isEnabled=function(){return this.Y}; oV.prototype.reset=function(){this.T={};this.Y=!0;this.N={}};var w5=document,bt=window;var S8_=!g.Ui&&!e9();S7.prototype.now=function(){return 0}; S7.prototype.Y=function(){return 0}; S7.prototype.N=function(){return 0}; S7.prototype.T=function(){return 0};g.r(fO,S7);fO.prototype.now=function(){return UQ()&&bt.performance.now?bt.performance.now():S7.prototype.now.call(this)}; fO.prototype.Y=function(){return UQ()&&bt.performance.memory?bt.performance.memory.totalJSHeapSize||0:S7.prototype.Y.call(this)}; fO.prototype.N=function(){return UQ()&&bt.performance.memory?bt.performance.memory.usedJSHeapSize||0:S7.prototype.N.call(this)}; fO.prototype.T=function(){return UQ()&&bt.performance.memory?bt.performance.memory.jsHeapSizeLimit||0:S7.prototype.T.call(this)};var wtL=f9(function(){var k=!1;try{var p=Object.defineProperty({},"passive",{get:function(){k=!0}}); g.B9.addEventListener("test",null,p)}catch(t){}return k});i9q.prototype.isVisible=function(){return Yo(w5)===1};var Pgq={RVS:"allow-forms",bHp:"allow-modals",lM6:"allow-orientation-lock",Xjh:"allow-pointer-lock",fMr:"allow-popups",DX8:"allow-popups-to-escape-sandbox",ZHb:"allow-presentation",nh6:"allow-same-origin",IM8:"allow-scripts",WFS:"allow-top-navigation",eV6:"allow-top-navigation-by-user-activation"},ROu=f9(function(){return Gq6()});var hOS=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");AS.prototype.b1=function(k,p,t){k=k+"//"+p+t;var J=uqS(this)-t.length;if(J<0)return"";this.T.sort(function(f,b){return f-b}); t=null;p="";for(var q=0;q<this.T.length;q++)for(var F=this.T[q],d=this.Y[F],S=0;S<d.length;S++){if(!J){t=t==null?F:t;break}var U=gJu(d[S],this.N,",$");if(U){U=p+U;if(J>=U.length){J-=U.length;k+=U;p=this.N;break}t=t==null?F:t}}J="";t!=null&&(J=""+p+"trn="+t);return k+J};c0.prototype.setInterval=function(k,p){return bt.setInterval(k,p)}; c0.prototype.clearInterval=function(k){bt.clearInterval(k)}; c0.prototype.setTimeout=function(k,p){return bt.setTimeout(k,p)}; c0.prototype.clearTimeout=function(k){bt.clearTimeout(k)};g.r(w1,X$);w1.prototype.T=dKL([0,vhK,w9a,-2,PqS]);var $6e={dcp:1,A1:2,Nxh:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Ezw.prototype.Ra=function(k){if(typeof k==="string"&&k.length!=0){var p=this.FR;if(p.Y){k=k.split("&");for(var t=k.length-1;t>=0;t--){var J=k[t].split("="),q=decodeURIComponent(J[0]);J.length>1?(J=decodeURIComponent(J[1]),J=/^[0-9]+$/g.exec(J)?parseInt(J,10):J):J=1;(q=p.T[q])&&q.N(J)}}}};var Fh=null;var Xr=g.B9.performance,UQQ=!!(Xr&&Xr.mark&&Xr.measure&&Xr.clearMarks),GR=f9(function(){var k;if(k=UQQ){var p=p===void 0?window:p;if(Fh===null){Fh="";try{k="";try{k=p.top.location.hash}catch(J){k=p.location.hash}if(k){var t=k.match(/\bdeid=([\d,]+)/);Fh=t?t[1]:""}}catch(J){}}p=Fh;k=!!p.indexOf&&p.indexOf("1337")>=0}return k}); IV.prototype.disable=function(){this.T=!1;this.events!==this.Y.google_js_reporting_queue&&(GR()&&g.y1(this.events,ykT),this.events.length=0)}; IV.prototype.start=function(k,p){if(!this.T)return null;var t=bBq()||fSu();k=new Ng0(k,p,t);p="goog_"+k.label+"_"+k.uniqueId+"_start";Xr&&GR()&&Xr.mark(p);return k}; IV.prototype.end=function(k){if(this.T&&typeof k.value==="number"){var p=bBq()||fSu();k.duration=p-k.value;p="goog_"+k.label+"_"+k.uniqueId+"_end";Xr&&GR()&&Xr.mark(p);!this.T||this.events.length>2048||this.events.push(k)}};YLi.prototype.ZS=function(k,p,t,J,q){q=q||this.Eb;try{var F=new AS;F.T.push(1);F.Y[1]=mB("context",k);p.error&&p.meta&&p.id||(p=new e7(hS(p)));if(p.msg){var d=p.msg.substring(0,512);F.T.push(2);F.Y[2]=mB("msg",d)}var S=p.meta||{};if(this.Eu)try{this.Eu(S)}catch(Y){}if(J)try{J(S)}catch(Y){}J=[S];F.T.push(3);F.Y[3]=J;var U=Mr_();if(U.Y){var f=U.Y.url||"";F.T.push(4);F.Y[4]=mB("top",f)}var b={url:U.T.url||""};if(U.T.url){var N=U.T.url.match(Pt);var y=n9(N[1],null,N[3],N[4])}else y="";f=[b,{url:y}];F.T.push(5); F.Y[5]=f;SLi(this.T,q,F,t)}catch(Y){try{SLi(this.T,q,{context:"ecmserr",rctx:k,msg:hS(Y),url:U&&U.T.url},t)}catch(T){}}return this.ZI}; g.r(e7,U6i);var B0,zR,RV=new IV;B0=new function(){var k="https:";bt&&bt.location&&bt.location.protocol==="http:"&&(k="http:");this.Y=k;this.T=.01}; zR=new YLi;bt&&bt.document&&(bt.document.readyState=="complete"?rki():RV.T&&yo(bt,"load",function(){rki()}));var Ak6=Date.now(),OQ=-1,lt=-1,Roj,KO=-1,j7=!1;g.E=H0.prototype;g.E.getHeight=function(){return this.bottom-this.top}; g.E.clone=function(){return new H0(this.top,this.right,this.bottom,this.left)}; g.E.contains=function(k){return this&&k?k instanceof H0?k.left>=this.left&&k.right<=this.right&&k.top>=this.top&&k.bottom<=this.bottom:k.x>=this.left&&k.x<=this.right&&k.y>=this.top&&k.y<=this.bottom:!1}; g.E.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.E.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.E.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.E.scale=function(k,p){p=typeof p==="number"?p:k;this.left*=k;this.right*=k;this.top*=p;this.bottom*=p;return this};tK.prototype.MR=function(k,p){return!!k&&(!(p===void 0?0:p)||this.volume==k.volume)&&this.N==k.N&&kc(this.T,k.T)&&!0};JK.prototype.KE=function(){return this.Z}; JK.prototype.MR=function(k,p){return this.C.MR(k.C,p===void 0?!1:p)&&this.Z==k.Z&&kc(this.N,k.N)&&kc(this.S,k.S)&&this.T==k.T&&this.X==k.X&&this.Y==k.Y&&this.B==k.B};var fAc={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},DH={rG:"start",Kq:"firstquartile",Hc:"midpoint",Ty:"thirdquartile",COMPLETE:"complete",ERROR:"error",GU:"metric",PAUSE:"pause",Ja:"resume",p8:"skip",Ed:"viewable_impression",zU:"mute",gG:"unmute",Pd:"fullscreen",NH:"exitfullscreen",pO:"bufferstart",Jr:"bufferfinish",j5:"fully_viewable_audible_half_duration_impression",wQ:"measurable_impression",kM:"abandon",sM:"engagedview",S5:"impression",Tl:"creativeview",kz:"loaded", Ucp:"progress",CLOSE:"close",I58:"collapse",ZoG:"overlay_resize",nLp:"overlay_unmeasurable_impression",I60:"overlay_unviewable_impression",eR0:"overlay_viewable_immediate_impression",WrG:"overlay_viewable_end_of_session_impression",gr:"custom_metric_viewable",Hf:"audio_audible",zs:"audio_measurable",d7:"audio_impression"},OOS="start firstquartile midpoint thirdquartile resume loaded".split(" "),KB6=["start","firstquartile","midpoint","thirdquartile"],zoM=["abandon"],gZ={UNKNOWN:-1,rG:0,Kq:1,Hc:2, Ty:3,COMPLETE:4,GU:5,PAUSE:6,Ja:7,p8:8,Ed:9,zU:10,gG:11,Pd:12,NH:13,j5:14,wQ:15,kM:16,sM:17,S5:18,Tl:19,kz:20,gr:21,pO:22,Jr:23,d7:27,zs:28,Hf:29};var Vw6={j3y:"addEventListener",Iyy:"getMaxSize",WxG:"getScreenSize",edS:"getState",Vmp:"getVersion",YSb:"removeEventListener",eWy:"isViewable"};g.E=g.qJ.prototype;g.E.clone=function(){return new g.qJ(this.left,this.top,this.width,this.height)}; g.E.contains=function(k){return k instanceof g.NL?k.x>=this.left&&k.x<=this.left+this.width&&k.y>=this.top&&k.y<=this.top+this.height:this.left<=k.left&&this.left+this.width>=k.left+k.width&&this.top<=k.top&&this.top+this.height>=k.top+k.height}; g.E.getSize=function(){return new g.YY(this.width,this.height)}; g.E.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.E.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.E.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.E.scale=function(k,p){p=typeof p==="number"?p:k;this.left*=k;this.width*=k;this.top*=p;this.height*=p;return this};var Lki={};ISh.prototype.update=function(k){k&&k.document&&(this.Z=op(!1,k,this.isMobileDevice),this.T=op(!0,k,this.isMobileDevice),RY0(this,k),XMw(this,k))};Q4.prototype.cancel=function(){nO().clearTimeout(this.T);this.T=null}; Q4.prototype.schedule=function(){var k=this,p=nO(),t=Qo().T.T;this.T=p.setTimeout(it(t,MS(143,function(){k.Y++;k.N.sample()})),m60())};g.E=PC.prototype;g.E.ob=function(){return!1}; g.E.initialize=function(){return this.isInitialized=!0}; g.E.s3=function(){return this.T.j6}; g.E.Gf=function(){return this.T.gy}; g.E.iy=function(k,p){if(!this.gy||(p===void 0?0:p))this.gy=!0,this.j6=k,this.B=0,this.T!=this||Ip(this)}; g.E.getName=function(){return this.T.RY}; g.E.vY=function(){return this.T.nB()}; g.E.nB=function(){return{}}; g.E.pF=function(){return this.T.B}; g.E.Rd=function(){var k=nZ();k.T=op(!0,this.N,k.isMobileDevice)}; g.E.XZ=function(){XMw(nZ(),this.N)}; g.E.J3=function(){return this.C.T}; g.E.sample=function(){}; g.E.isActive=function(){return this.T.S}; g.E.O3=function(k){var p=this.T;this.T=k.pF()>=this.B?k:this;p!==this.T?(this.S=this.T.S,Ip(this)):this.S!==this.T.S&&(this.S=this.T.S,Ip(this))}; g.E.a$=function(k){if(k.Y===this.T){var p=!this.C.MR(k,this.L);this.C=k;p&&eY_(this)}}; g.E.TJ=function(){return this.L}; g.E.dispose=function(){this.P0=!0}; g.E.MO=function(){return this.P0};g.E=Xj.prototype;g.E.observe=function(){return!0}; g.E.unobserve=function(){}; g.E.sA=function(k){this.X=k}; g.E.dispose=function(){if(!this.MO()){var k=this.Y;g.xn(k.X,this);k.L&&this.TJ()&&zYw(k);this.unobserve();this.NO=!0}}; g.E.MO=function(){return this.NO}; g.E.vY=function(){return this.Y.vY()}; g.E.pF=function(){return this.Y.pF()}; g.E.s3=function(){return this.Y.s3()}; g.E.Gf=function(){return this.Y.Gf()}; g.E.O3=function(){}; g.E.a$=function(){this.MV()}; g.E.TJ=function(){return this.P0};g.E=Rp.prototype;g.E.pF=function(){return this.T.pF()}; g.E.s3=function(){return this.T.s3()}; g.E.Gf=function(){return this.T.Gf()}; g.E.create=function(k,p,t){var J=null;this.T&&(J=this.bk(k,p,t),GT(this.T,J));return J}; g.E.fm=function(){return this.ji()}; g.E.ji=function(){return!1}; g.E.init=function(k){return this.T.initialize()?(GT(this.T,this),this.C=k,!0):!1}; g.E.O3=function(k){k.pF()==0&&this.C(k.s3(),this)}; g.E.a$=function(){}; g.E.TJ=function(){return!1}; g.E.dispose=function(){this.X=!0}; g.E.MO=function(){return this.X}; g.E.vY=function(){return{}};BC.prototype.add=function(k,p,t){++this.N;k=new aS6(k,p,t);this.T.push(new aS6(k.Y,k.T,k.N+this.N/4096));this.Y=!0;return this};jme.prototype.toString=function(){var k="//pagead2.googlesyndication.com//pagead/gen_204",p=e4(this.T);p.length>0&&(k+="?"+p);return k};hK.prototype.update=function(k,p,t){k&&(this.T+=p,this.Y+=p,this.C+=p,this.N=Math.max(this.N,this.C));if(t===void 0?!k:t)this.C=0};var kce=[1,.75,.5,.3,0];ap.prototype.update=function(k,p,t,J,q,F){F=F===void 0?!0:F;p=q?Math.min(k,p):p;for(q=0;q<this.Y.length;q++){var d=this.Y[q],S=p>0&&p>=d;d=!(k>0&&k>=d)||t;this.T[q].update(F&&S,J,!F||d)}};OH.prototype.update=function(k,p,t,J){this.Z=this.Z!=-1?Math.min(this.Z,p.fb):p.fb;this.Y8=Math.max(this.Y8,p.fb);this.NO=this.NO!=-1?Math.min(this.NO,p.UZ):p.UZ;this.j6=Math.max(this.j6,p.UZ);this.pp.update(p.UZ,t.UZ,p.T,k,J);this.qO+=k;p.fb===0&&(this.RY+=k);this.Y.update(p.fb,t.fb,p.T,k,J);t=J||t.EC!=p.EC?t.isVisible()&&p.isVisible():t.isVisible();p=!p.isVisible()||p.T;this.W0.update(t,k,p)}; OH.prototype.uT=function(){return this.W0.N>=this.B0};if(w5&&w5.URL){var bc4=w5.URL,NqL;if(NqL=!!bc4){var yCS;a:{if(bc4){var YRR=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var $b=YRR.exec(decodeURIComponent(bc4));if($b){yCS=$b[1]&&$b[1].length>1?$b[1].substring(1):"true";break a}}catch(k){}}yCS=""}NqL=yCS.length>0}zR.ZI=!NqL};var TqW=new H0(0,0,0,0);var dMS=new H0(0,0,0,0);g.r(p6,g.R);g.E=p6.prototype; g.E.Ap=function(){if(this.QG.T){if(this.qb.zT){var k=this.QG.T;k.removeEventListener&&k.removeEventListener("mouseover",this.qb.zT,NS());this.qb.zT=null}this.qb.HC&&(k=this.QG.T,k.removeEventListener&&k.removeEventListener("mouseout",this.qb.HC,NS()),this.qb.HC=null)}this.Fr&&this.Fr.dispose();this.W1&&this.W1.dispose();delete this.KY;delete this.IE;delete this.u5;delete this.QG.PO;delete this.QG.T;delete this.qb;delete this.Fr;delete this.W1;delete this.FR;g.R.prototype.Ap.call(this)}; g.E.G3=function(){return this.W1?this.W1.T:this.position}; g.E.Ra=function(k){Qo().Ra(k)}; g.E.TJ=function(){return!1}; g.E.Ys=function(){return new OH}; g.E.f7=function(){return this.KY}; g.E.t3=function(k){return fW6(this,k,1E4)}; g.E.Zr=function(k,p,t,J,q,F,d){this.ri||(this.zB&&(k=this.Sk(k,t,q,d),J=J&&this.KH.fb>=(this.EC()?.3:.5),this.Ps(F,k,J),this.tK=p,k.fb>0&&-1===this.tW&&(this.tW=p),this.Hx==-1&&this.uT()&&(this.Hx=p),this.lr==-2&&(this.lr=xc(this.G3())?k.fb:-1),this.KH=k),this.IE(this))}; g.E.Ps=function(k,p,t){this.f7().update(k,p,this.KH,t)}; g.E.YF=function(){return new xs}; g.E.Sk=function(k,p,t,J){t=this.YF();t.T=p;p=nO().Y;p=Yo(w5)===0?-1:p.isVisible()?0:1;t.Y=p;t.fb=this.GV(k);t.EC=this.EC();t.UZ=J;return t}; g.E.GV=function(k){return this.opacity===0&&$o(this.FR,"opac")===1?0:k}; g.E.EC=function(){return!1}; g.E.jx=function(){return this.w0b||this.dOT}; g.E.tS=function(){ut()}; g.E.MF=function(){ut()}; g.E.Ma=function(){return 0}; g.E.uT=function(){return this.KY.uT()}; g.E.ip=function(){var k=this.zB;k=(this.hasCompleted||this.MO())&&!k;var p=Qo().Y!==2||this.Wcy;return this.ri||p&&k?2:this.uT()?4:3}; g.E.d3=function(){return 0};g.Jf.prototype.next=function(){return g.db}; g.db={done:!0,value:void 0};g.Jf.prototype.Qe=function(){return this};g.r(rTi,xs);var EV=Cp6([void 0,1,2,3,4,8,16]),So=Cp6([void 0,4,8,16]),rC4={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:$8("p0",So),p1:$8("p1",So),p2:$8("p2",So),p3:$8("p3",So),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:F2("mtos1",[0,2,4],!1,So),mtos2:F2("mtos2",[0,2,4],!1,So),mtos3:F2("mtos3",[0,2,4],!1,So),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:$8("a0",So),a1:$8("a1",So),a2:$8("a2",So),a3:$8("a3",So),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:$8("c0",So),c1:$8("c1",So),c2:$8("c2",So),c3:$8("c3",So),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:$8("qmtos",EV),qnc:$8("qnc",EV),qmv:$8("qmv",EV),qnv:$8("qnv",EV), 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:$8("ss0",So),ss1:$8("ss1",So),ss2:$8("ss2",So),ss3:$8("ss3",So),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"},Zcq=Object.assign({},rC4,{avid:Sr("audio"),avas:"avas",vs:"vs"}),CJC={atos:"atos",avt:F2("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(k,p){return function(t){return t[k]===void 0&&p!==void 0?p:t[k]}}("ss",0), t:"t"};UU.prototype.getValue=function(){return this.Y}; UU.prototype.update=function(k,p){k>=32||(this.T&1<<k&&!p?this.Y&=~(1<<k):this.T&1<<k||!p||(this.Y|=1<<k),this.T|=1<<k)};g.r(f6,OH); f6.prototype.update=function(k,p,t,J){if(!p.paused){OH.prototype.update.call(this,k,p,t,J);var q=qR(p)&&qR(t),F=(J?Math.min(p.fb,t.fb):t.fb)>=.5;vC(p.volume)&&(this.C=this.C!=-1?Math.min(this.C,p.volume):p.volume,this.S=Math.max(this.S,p.volume));F&&(this.P0+=k,this.L+=q?k:0);this.T.update(p.fb,t.fb,p.T,k,J,q);this.N.update(!0,k);this.X.update(q,k);this.gy.update(t.fullscreen,k);this.Jp.update(q&&!F,k);k=Math.floor(p.mediaTime/1E3);this.Oy.update(k,p.isVisible());this.v0.update(k,p.fb>=1);this.k8.update(k, qR(p))}};saw.prototype.Y=function(k){this.N||(this.T(k)?(k=X0S(this.L,this.C,k),this.X|=k,k=k==0):k=!1,this.N=k)};g.r(NR,saw);NR.prototype.T=function(){return!0}; NR.prototype.S=function(){return!1}; NR.prototype.getId=function(){var k=this,p=vQ(DH,function(t){return t==k.C}); return gZ[p].toString()}; NR.prototype.toString=function(){var k="";this.S()&&(k+="c");this.N&&(k+="s");this.X>0&&(k+=":"+this.X);return this.getId()+k};g.r(y_,NR);y_.prototype.Y=function(k,p){p=p===void 0?null:p;p!=null&&this.Z.push(p);NR.prototype.Y.call(this,k)};g.r(Y8,L1L);Y8.prototype.Y=function(){return null}; Y8.prototype.N=function(){return[]};g.r(Tf,Xj);g.E=Tf.prototype;g.E.Ou=function(){if(this.element){var k=this.element,p=this.Y.T.N;try{try{var t=Qm6(k.getBoundingClientRect())}catch(f){t=new H0(0,0,0,0)}var J=t.right-t.left,q=t.bottom-t.top,F=nzL(k,p),d=F.x,S=F.y;var U=new H0(Math.round(S),Math.round(d+J),Math.round(S+q),Math.round(d))}catch(f){U=TqW.clone()}this.N=U;this.T=hY9(this,this.N)}}; g.E.Cf=function(){this.S=this.Y.C.T}; g.E.JH=function(k){var p=$o(this.FR,"od")==1;return $ML(k,this.S,this.element,p)}; g.E.Kf=function(){this.timestamp=ut()}; g.E.MV=function(){this.Kf();this.Ou();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var k=this.element;var p=new g.YY(k.videoWidth,k.videoHeight);k=this.T;var t=xo(k),J=k.getHeight(),q=p.width;p=p.height;q<=0||p<=0||t<=0||J<=0||(q/=p,p=t/J,k=k.clone(),q>p?(t/=q,J=(J-t)/2,J>0&&(J=k.top+J,k.top=Math.round(J),k.bottom=Math.round(J+t))):(J*=q,t=Math.round((t-J)/2),t>0&&(t=k.left+t,k.left=Math.round(t),k.right=Math.round(t+J))));this.T=k}this.Cf(); k=this.T;t=this.S;k=k.left<=t.right&&t.left<=k.right&&k.top<=t.bottom&&t.top<=k.bottom?new H0(Math.max(k.top,t.top),Math.min(k.right,t.right),Math.min(k.bottom,t.bottom),Math.max(k.left,t.left)):new H0(0,0,0,0);t=k.top>=k.bottom||k.left>=k.right?new H0(0,0,0,0):k;k=this.Y.C;p=q=J=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.JH(t))t=new H0(0,0,0,0);else{J=nZ().C;p=new H0(0,J.height,J.width,0);var F;J=k8(t,(F=this.X)!=null?F:this.T);q=k8(t,nZ().T);p=k8(t,p)}F=t.top>=t.bottom|| t.left>=t.right?new H0(0,0,0,0):pZ(t,-this.T.left,-this.T.top);iQ()||(q=J=0);this.L=new JK(k,this.element,this.T,F,J,q,this.timestamp,p)}; g.E.getName=function(){return this.Y.getName()};var AC9=new H0(0,0,0,0);g.r(rZ,Tf);g.E=rZ.prototype;g.E.observe=function(){this.C();return!0}; g.E.a$=function(){Tf.prototype.MV.call(this)}; g.E.Kf=function(){}; g.E.Ou=function(){}; g.E.MV=function(){this.C();Tf.prototype.MV.call(this)}; g.E.O3=function(k){k=k.isActive();k!==this.B&&(k?this.C():(nZ().T=new H0(0,0,0,0),this.T=new H0(0,0,0,0),this.S=new H0(0,0,0,0),this.timestamp=-1));this.B=k};var UV={},XZq=(UV.firstquartile=0,UV.midpoint=1,UV.thirdquartile=2,UV.complete=3,UV);g.r(C6,p6);g.E=C6.prototype;g.E.TJ=function(){return!0}; g.E.En=function(){return this.nU==2}; g.E.t3=function(k){return fW6(this,k,Math.max(1E4,this.N/3))}; g.E.Zr=function(k,p,t,J,q,F,d){var S=this,U=this.Z(this)||{};g.PQ(U,q);this.N=U.duration||this.N;this.L=U.isVpaid||this.L;this.RY=U.isYouTube||this.RY;nO();this.pp=!1;q=cTh(this,p);vsi(this)===1&&(F=q);p6.prototype.Zr.call(this,k,p,t,J,U,F,d);this.Pk&&this.Pk.N&&g.y1(this.S,function(f){f.Y(S)})}; g.E.Ps=function(k,p,t){p6.prototype.Ps.call(this,k,p,t);V_(this).update(k,p,this.KH,t);this.B0=qR(this.KH)&&qR(p);this.j6==-1&&this.v0&&(this.j6=this.f7().N.T);this.zt.N=0;k=this.uT();p.isVisible()&&SL(this.zt,"vs");k&&SL(this.zt,"vw");vC(p.volume)&&SL(this.zt,"am");qR(p)?SL(this.zt,"a"):SL(this.zt,"mut");this.WW&&SL(this.zt,"f");p.Y!=-1&&(SL(this.zt,"bm"),p.Y==1&&(SL(this.zt,"b"),qR(p)&&SL(this.zt,"umutb")));qR(p)&&p.isVisible()&&SL(this.zt,"avs");this.B0&&k&&SL(this.zt,"avw");p.fb>0&&SL(this.zt, "pv");WU(this,this.f7().N.T,!0)&&SL(this.zt,"gdr");lQ(this.f7().Y,1)>=2E3&&SL(this.zt,"pmx");this.pp&&SL(this.zt,"tvoff")}; g.E.Ys=function(){return new f6}; g.E.f7=function(){return this.KY}; g.E.YF=function(){return new rTi}; g.E.Sk=function(k,p,t,J){k=p6.prototype.Sk.call(this,k,p,t,J===void 0?-1:J);k.fullscreen=this.WW;k.paused=this.En();k.volume=t.volume;vC(k.volume)||(this.gs++,p=this.KH,vC(p.volume)&&(k.volume=p.volume));t=t.currentTime;k.mediaTime=t!==void 0&&t>=0?t:-1;return k}; g.E.GV=function(k){return nZ(),this.WW?1:p6.prototype.GV.call(this,k)}; g.E.Ma=function(){return 1}; g.E.getDuration=function(){return this.N}; g.E.ip=function(){return this.ri?2:wZi(this)?5:this.uT()?4:3}; g.E.d3=function(){return this.Jp?this.f7().X.N>=2E3?4:3:2}; g.E.sA=function(k){this.W1&&this.W1.sA(k)};var mQ4=g.kn();jau.prototype.reset=function(){this.T=[];this.Y=[]}; var n6=v0(jau);g.r(Q_,Rp);g.E=Q_.prototype;g.E.getName=function(){return(this.Y?this.Y:this.T).getName()}; g.E.vY=function(){return(this.Y?this.Y:this.T).vY()}; g.E.pF=function(){return(this.Y?this.Y:this.T).pF()}; g.E.init=function(k){var p=!1;(0,g.y1)(this.N,function(t){t.initialize()&&(p=!0)}); p&&(this.C=k,GT(this.T,this));return p}; g.E.dispose=function(){(0,g.y1)(this.N,function(k){k.dispose()}); Rp.prototype.dispose.call(this)}; g.E.fm=function(){return cC(this.N,function(k){return k.ob()})}; g.E.ji=function(){return cC(this.N,function(k){return k.ob()})}; g.E.bk=function(k,p,t){return new Tf(k,this.T,p,t)}; g.E.a$=function(k){this.Y=k.Y};var ooq={threshold:[0,.3,.5,.75,1]};g.r(PU,Tf);g.E=PU.prototype;g.E.observe=function(){var k=this;this.Y8||(this.Y8=ut());if(COi(298,function(){return qQi(k)}))return!0; this.Y.iy("msf");return!1}; g.E.unobserve=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.B?(this.B.unobserve(this.element),this.B=null):this.Z&&(this.Z.disconnect(),this.Z=null)}catch(k){}}; g.E.MV=function(){var k=Gf(this);k.length>0&&IQ(this,k);Tf.prototype.MV.call(this)}; g.E.Ou=function(){}; g.E.JH=function(){return!1}; g.E.Cf=function(){}; g.E.vY=function(){var k={};return Object.assign(this.Y.vY(),(k.niot_obs=this.Y8,k.niot_cbk=this.gy,k))}; g.E.getName=function(){return"nio"};g.r(X2,Rp);X2.prototype.getName=function(){return"nio"}; X2.prototype.ji=function(){return!nZ().Y&&this.T.T.N.IntersectionObserver!=null}; X2.prototype.bk=function(k,p,t){return new PU(k,this.T,p,t)};g.r(RQ,PC);RQ.prototype.J3=function(){return nZ().T}; RQ.prototype.ob=function(){var k=$Si();this.B!==k&&(this.T!=this&&k>this.T.B&&(this.T=this,Ip(this)),this.B=k);return k==2};BU.prototype.sample=function(){hf(this,wZ(),!1)}; BU.prototype.C=function(){var k=iQ(),p=ut();k?(j7||(OQ=p,g.y1(n6.T,function(t){var J=t.f7();J.IY=bD(J,p,t.nU!=1)})),j7=!0):(this.Z=fRh(this,p),j7=!1,Roj=p,g.y1(n6.T,function(t){t.zB&&(t.f7().B=p)})); hf(this,wZ(),!k)}; var zf=v0(BU);var N1L=null,f2="",Uc=!1;var T19=YQi().yV,MR=YQi().gJ;var Cti={Rdb:"visible",g4T:"audible",dGp:"time",zrG:"timetype"},ASq={visible:function(k){return/^(100|[0-9]{1,2})$/.test(k)}, audible:function(k){return k=="0"||k=="1"}, timetype:function(k){return k=="mtos"||k=="tos"}, time:function(k){return/^(100|[0-9]{1,2})%$/.test(k)||/^([0-9])+ms$/.test(k)}}; ZOu.prototype.setTime=function(k,p,t){p=="ms"?(this.N=k,this.C=-1):(this.N=-1,this.C=k);this.X=t===void 0?"tos":t;return this};g.r(jL,NR);jL.prototype.getId=function(){return this.Z}; jL.prototype.S=function(){return!0}; jL.prototype.T=function(k){var p=k.f7(),t=k.getDuration();return cC(this.B,function(J){if(J.T!=void 0)var q=V7j(J,p);else b:{switch(J.X){case "mtos":q=J.Y?p.X.N:p.N.T;break b;case "tos":q=J.Y?p.X.T:p.N.T;break b}q=0}q==0?J=!1:(J=J.N!=-1?J.N:t!==void 0&&t>0?J.C*t:-1,J=J!=-1&&q>=J);return J})};g.r(OU,mMw);OU.prototype.T=function(k){var p=new AT9;p.T=EU(k,rC4);p.Y=EU(k,CJC);return p};g.r(K6,NR);K6.prototype.T=function(k){return wZi(k)};g.r(HU,L1L);g.r(x8,NR);x8.prototype.T=function(k){return k.f7().uT()};g.r(k_,y_);k_.prototype.T=function(k){var p=g.Kc(this.Z,$o(Qo().FR,"ovms"));return!k.ri&&(k.nU!=0||p)};g.r(p2,HU);p2.prototype.Y=function(){return new k_(this.T)}; p2.prototype.N=function(){return[new x8("viewable_impression",this.T),new K6(this.T)]};g.r(t0,rZ);t0.prototype.C=function(){var k=g.hw("ima.admob.getViewability"),p=$o(this.FR,"queryid");typeof k==="function"&&p&&k(p)}; t0.prototype.getName=function(){return"gsv"};g.r(J0,Rp);J0.prototype.getName=function(){return"gsv"}; J0.prototype.ji=function(){var k=nZ();Qo();return k.Y&&!1}; J0.prototype.bk=function(k,p,t){return new t0(this.T,p,t)};g.r(ot,rZ);ot.prototype.C=function(){var k=this,p=g.hw("ima.bridge.getNativeViewability"),t=$o(this.FR,"queryid");typeof p==="function"&&t&&p(t,function(J){g.cQ(J)&&k.Z++;var q=J.opt_nativeViewVisibleBounds||{},F=J.opt_nativeViewHidden;k.T=POS(J.opt_nativeViewBounds||{});var d=k.Y.C;d.T=F?AC9.clone():POS(q);k.timestamp=J.opt_nativeTime||-1;nZ().T=d.T;J=J.opt_nativeVolume;J!==void 0&&(d.volume=J)})}; ot.prototype.getName=function(){return"nis"};g.r(qd,Rp);qd.prototype.getName=function(){return"nis"}; qd.prototype.ji=function(){var k=nZ();Qo();return k.Y&&!1}; qd.prototype.bk=function(k,p,t){return new ot(this.T,p,t)};g.r(FL,PC);g.E=FL.prototype;g.E.ob=function(){return this.Y.CK!=null}; g.E.nB=function(){var k={};this.Oy&&(k.mraid=this.Oy);this.NO&&(k.mlc=1);k.mtop=this.Y.TjY;this.Z&&(k.mse=this.Z);this.qO&&(k.msc=1);k.mcp=this.Y.compatibility;return k}; g.E.cO=function(k){var p=g.nS.apply(1,arguments);try{return this.Y.CK[k].apply(this.Y.CK,p)}catch(t){g1(538,t,.01,function(J){J.method=k})}}; g.E.initialize=function(){var k=this;if(this.isInitialized)return!this.Gf();this.isInitialized=!0;if(this.Y.compatibility===2)return this.Z="ng",this.iy("w"),!1;if(this.Y.compatibility===1)return this.Z="mm",this.iy("w"),!1;nZ().B=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?LBM(this):HC(this.N,"load",function(){nO().setTimeout(MS(292,function(){return LBM(k)}),100)},292); return!0}; g.E.Rd=function(){var k=nZ(),p=iOu(this,"getMaxSize");k.T=new H0(0,p.width,p.height,0)}; g.E.XZ=function(){nZ().C=iOu(this,"getScreenSize")}; g.E.dispose=function(){cSh(this);PC.prototype.dispose.call(this)};var oz6=new function(k,p){this.key=k;this.defaultValue=p===void 0?!1:p;this.valueType="boolean"}("45378663");g.E=dl.prototype;g.E.m6=function(k){tf(k,!1);xMM(k)}; g.E.jR=function(){}; g.E.XV=function(k,p,t,J){var q=this;k=new C6(bt,k,t?p:-1,7,this.i8(),this.tF());k.uy=J;sqM(k.FR);Fr(k.FR,"queryid",k.uy);k.Ra("");yTh(k,function(){return q.s5.apply(q,g.m(g.nS.apply(0,arguments)))},function(){return q.QYh.apply(q,g.m(g.nS.apply(0,arguments)))}); (J=v0(iD).T)&&UM0(k,J);this.N&&(k.sA(this.N),this.N=null);k.QG.PO&&v0(dSS);return k}; g.E.O3=function(k){switch(k.pF()){case 0:if(k=v0(iD).T)k=k.T,g.xn(k.X,this),k.L&&this.TJ()&&zYw(k);SF();break;case 2:eL()}}; g.E.a$=function(){}; g.E.TJ=function(){return!1}; g.E.QYh=function(k,p){k.ri=!0;switch(k.Ma()){case 1:Rz0(k,p);break;case 2:this.tO(k)}}; g.E.bph=function(k){var p=k.Z(k);p&&(p=p.volume,k.Jp=vC(p)&&p>0);Ppu(k,0);return sU(k,"start",iQ())}; g.E.hU=function(k,p,t){hf(zf,[k],!iQ());return this.Oi(k,p,t)}; g.E.Oi=function(k,p,t){return sU(k,t,iQ())}; g.E.M66=function(k){return Y_(k,"firstquartile",1)}; g.E.xOp=function(k){k.v0=!0;return Y_(k,"midpoint",2)}; g.E.lr8=function(k){return Y_(k,"thirdquartile",3)}; g.E.FS8=function(k){var p=Y_(k,"complete",4);Af(k);return p}; g.E.qyT=function(k){k.nU=3;return sU(k,"error",iQ())}; g.E.h9=function(k,p,t){p=iQ();if(k.En()&&!p){var J=k.f7(),q=ut();J.B=q}hf(zf,[k],!p);k.En()&&(k.nU=1);return sU(k,t,p)}; g.E.Rhh=function(k,p){p=this.hU(k,p||{},"skip");Af(k);return p}; g.E.OpO=function(k,p){tf(k,!0);return this.hU(k,p||{},"fullscreen")}; g.E.Syy=function(k,p){tf(k,!1);return this.hU(k,p||{},"exitfullscreen")}; g.E.oa=function(k,p,t){p=k.f7();var J=ut();p.IY=bD(p,J,k.nU!=1);hf(zf,[k],!iQ());k.nU==1&&(k.nU=2);return sU(k,t,iQ())}; g.E.mOp=function(k){hf(zf,[k],!iQ());return k.Y()}; g.E.IN=function(k){hf(zf,[k],!iQ());this.XP(k);Af(k);return k.Y()}; g.E.s5=function(){}; g.E.tO=function(){}; g.E.XP=function(){}; g.E.DT=function(){}; g.E.rY=function(){}; g.E.tF=function(){this.T||(this.T=this.rY());return this.T==null?new Y8:new p2(this.T)}; g.E.i8=function(){return new OU};g.r(Tt,NR);Tt.prototype.T=function(k){return k.d3()==4};g.r(rl,y_);rl.prototype.T=function(k){k=k.d3();return k==3||k==4};g.r(ZU,HU);ZU.prototype.Y=function(){return new rl(this.T)}; ZU.prototype.N=function(){return[new Tt(this.T)]};g.r(C2,mMw);C2.prototype.T=function(k){k&&(k.e===28&&(k=Object.assign({},k,{avas:3})),k.vs===4||k.vs===5)&&(k=Object.assign({},k,{vs:3}));var p=new AT9;p.T=EU(k,Zcq);p.Y=EU(k,CJC);return p};hzi.prototype.Y=function(){return g.hw(this.T)};g.r(A0,dl);g.E=A0.prototype;g.E.jR=function(k,p){var t=this,J=v0(iD);if(J.T!=null)switch(J.T.getName()){case "nis":var q=uri(this,k,p);break;case "gsv":q=goe(this,k,p);break;case "exc":q=lRi(this,k)}q||(p.opt_overlayAdElement?q=void 0:p.opt_adElement&&(q=zzw(this,k,p.opt_adElement,p.opt_osdId)));q&&q.Ma()==1&&(q.Z==g.Uo&&(q.Z=function(F){return t.DT(F)}),M7S(this,q,p)); return q}; g.E.DT=function(k){k.Y=0;k.P0=0;if(k.C=="h"||k.C=="n"){Qo();k.k8&&(Qo(),Nd(this)!="h"&&Nd(this));var p=g.hw("ima.common.getVideoMetadata");if(typeof p==="function")try{var t=p(k.uy)}catch(q){k.Y|=4}else k.Y|=2}else if(k.C=="b")if(p=g.hw("ytads.bulleit.getVideoMetadata"),typeof p==="function")try{t=p(k.uy)}catch(q){k.Y|=4}else k.Y|=2;else if(k.C=="ml")if(p=g.hw("ima.common.getVideoMetadata"),typeof p==="function")try{t=p(k.uy)}catch(q){k.Y|=4}else k.Y|=2;else k.Y|=1;k.Y||(t===void 0?k.Y|=8:t===null? k.Y|=16:g.cQ(t)?k.Y|=32:t.errorCode!=null&&(k.P0=t.errorCode,k.Y|=64));t==null&&(t={});p=t;k.B=0;for(var J in fAc)p[J]==null&&(k.B|=fAc[J]);ez0(p,"currentTime");ez0(p,"duration");vC(t.volume)&&vC()&&(t.volume*=NaN);return t}; g.E.rY=function(){Qo();Nd(this)!="h"&&Nd(this);var k=jVu(this);return k!=null?new hzi(k):null}; g.E.tO=function(k){!k.T&&k.ri&&yD(this,k,"overlay_unmeasurable_impression")&&(k.T=!0)}; g.E.XP=function(k){k.jj&&(k.uT()?yD(this,k,"overlay_viewable_end_of_session_impression"):yD(this,k,"overlay_unviewable_impression"),k.jj=!1)}; g.E.s5=function(){}; g.E.XV=function(k,p,t,J){if(qL0()){var q=$o(Qo().FR,"mm"),F={};(q=(F[P0.Gs]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",F[P0.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",F)[q])&&xSM(this,q);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&g1(1044,Error())}k=dl.prototype.XV.call(this,k,p,t,J);this.X&&(p=this.S,k.X==null&&(k.X=new Y8h),p.T[k.uy]=k.X,k.X.X=mQ4);return k}; g.E.m6=function(k){k&&k.Ma()==1&&this.X&&delete this.S.T[k.uy];return dl.prototype.m6.call(this,k)}; g.E.tF=function(){this.T||(this.T=this.rY());return this.T==null?new Y8:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new ZU(this.T):new p2(this.T)}; g.E.i8=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new C2:new OU}; g.E.sA=function(k,p,t,J,q){p=new H0(t,p+J,t+q,p);(k=cU(n6,k))?k.sA(p):this.N=p}; var V9C=aV(193,pCL,void 0,B1h);g.eM("Goog_AdSense_Lidar_sendVastEvent",V9C);var W49=MS(194,function(k,p){p=p===void 0?{}:p;k=HOT(v0(A0),k,p);return kTL(k)}); g.eM("Goog_AdSense_Lidar_getViewability",W49);var DQS=aV(195,function(){return xni()}); g.eM("Goog_AdSense_Lidar_getUrlSignalsArray",DQS);var sLK=MS(196,function(){return JSON.stringify(xni())}); g.eM("Goog_AdSense_Lidar_getUrlSignalsList",sLK);var t46=(new Date("2024-01-01T00:00:00Z")).getTime();var qHu=N_(["//ep2.adtrafficquality.google/sodar/",""]),FSh=N_(["//tpc.googlesyndication.com/sodar/",""]);g.r(v8,g.R);v8.prototype.b8=function(){return this.wpc.f()}; v8.prototype.J2=function(k){this.wpc.c(k)}; v8.prototype.Qj=function(k){return this.wpc.m(SH_(k))}; v8.prototype.Fy=function(k){return this.wpc.mws(SH_(k))}; g.r(sc,g.R);sc.prototype.snapshot=function(k){return this.UX.s(Object.assign({},k.pH&&{c:k.pH},k.DI&&{s:k.DI},k.II!==void 0&&{p:k.II}))}; sc.prototype.P9=function(k){this.UX.e(k)}; sc.prototype.Ce=function(){return this.UX.l()};var ddj=(new Date).getTime();var bZ0="://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(" "),N5i=/\bocr\b/;var YH_=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var wCw=0,nci=0,iZq=0;var T5i=Object.assign({},{attributes:{},handleError:function(k){throw k;}},{WLy:!0, twh:!0,DG:!1,bMy:!1,FL6:!1,Day:!1,eu8:ohK});var wl=null,QD=!1,vcj=1,It=Symbol("SIGNAL"),fn={version:0,ltb:0,hN:!1,QA:void 0,QY:void 0,pA:void 0,lQ:0,Zy:void 0,OC:void 0,Zs:!1,nf:!1,kind:"unknown",QO:function(){return!1}, FP:function(){}, IQ:function(){}, fPh:function(){}};var bx=Symbol("UNSET"),NH=Symbol("COMPUTING"),yL=Symbol("ERRORED");Object.assign({},fn,{value:bx,hN:!0,error:null,iz:n2,kind:"computed",QO:function(k){return k.value===bx||k.value===NH}, FP:function(k){if(k.value===NH)throw Error("Detected cycle in computations.");var p=k.value;k.value=NH;var t=AKT(k),J=!1;try{var q=k.HX();iv(null);J=p!==bx&&p!==yL&&q!==yL&&k.iz(p,q)}catch(F){q=yL,k.error=F}finally{mJL(k,t)}J?k.value=p:(k.value=q,k.version++)}});var spM=Object.assign({},fn,{iz:n2,value:void 0,kind:"signal"});Object.assign({},fn,{value:bx,hN:!0,error:null,iz:n2,QO:function(k){return k.value===bx||k.value===NH}, FP:function(k){if(k.value===NH)throw Error("Detected cycle in computations.");var p=k.value;k.value=NH;var t=AKT(k);try{var J=k.source();var q=k.HX(J,p===bx||p===yL?void 0:{source:k.Ei0,value:p});k.Ei0=J}catch(F){q=yL,k.error=F}finally{mJL(k,t)}p!==bx&&q!==yL&&k.iz(p,q)?k.value=p:(k.value=q,k.version++)}});Object.assign({},fn,{nf:!0,Zs:!1,IQ:function(k){k.schedule!==null&&k.schedule(k.yVp)}, CTy:!1,ma6:function(){}});var QpM=Symbol("updater");g.r(Rt,g.Hg);Rt.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.Af.KU(this.X);delete Rt.instance}; Rt.prototype.FI=function(){return this.T}; Rt.prototype.SV=function(){var k=this;this.X=this.Af.Hj(function(){var p;return g.Q(function(t){if(t.T==1)return k.T?((p=window.navigator)==null?0:p.onLine)?t.oY(3):g.n(t,XL(k),3):g.n(t,XL(k),3);k.SV();g.CS(t)})},3E4)};zt.prototype.set=function(k,p){p=p===void 0?!0:p;0<=k&&k<52&&Number.isInteger(k)&&this.data[k]!==p&&(this.data[k]=p,this.T=-1)}; zt.prototype.get=function(k){return!!this.data[k]};var h0;g.pc(g.lv,g.R);g.E=g.lv.prototype;g.E.start=function(){this.stop();this.C=!1;var k=XCj(this),p=Rk9(this);k&&!p&&this.Y.mozRequestAnimationFrame?(this.T=g.eu(this.Y,"MozBeforePaint",this.N),this.Y.mozRequestAnimationFrame(null),this.C=!0):this.T=k&&p?k.call(this.Y,this.N):this.Y.setTimeout(lLe(this.N),20)}; g.E.stop=function(){if(this.isActive()){var k=XCj(this),p=Rk9(this);k&&!p&&this.Y.mozRequestAnimationFrame?ju(this.T):k&&p?p.call(this.Y,this.T):this.Y.clearTimeout(this.T)}this.T=null}; g.E.isActive=function(){return this.T!=null}; g.E.c7=function(){this.C&&this.T&&ju(this.T);this.T=null;this.S.call(this.X,g.kn())}; g.E.Ap=function(){this.stop();g.lv.AD.Ap.call(this)};g.pc(g.jF,g.R);g.E=g.jF.prototype;g.E.Qs=0;g.E.Ap=function(){g.jF.AD.Ap.call(this);this.stop();delete this.T;delete this.Y}; g.E.start=function(k){this.stop();this.Qs=g.Vu(this.N,k!==void 0?k:this.Th)}; g.E.stop=function(){this.isActive()&&g.B9.clearTimeout(this.Qs);this.Qs=0}; g.E.isActive=function(){return this.Qs!=0}; g.E.ZT=function(){this.Qs=0;this.T&&this.T.call(this.Y)};g.x_.prototype[Symbol.iterator]=function(){return this}; g.x_.prototype.next=function(){var k=this.T.next();return{value:k.done?void 0:this.Y.call(void 0,k.value),done:k.done}};g.pc(g.dQ,g.Hg);g.E=g.dQ.prototype;g.E.isPlaying=function(){return this.T==1}; g.E.isPaused=function(){return this.T==-1}; g.E.VH=function(){this.V$("begin")}; g.E.OH=function(){this.V$("end")}; g.E.onFinish=function(){this.V$("finish")}; g.E.onStop=function(){this.V$("stop")}; g.E.V$=function(k){this.dispatchEvent(k)};var L4W=f9(function(){var k=g.kW("DIV"),p=g.Ok?"-webkit":UH?"-moz":null,t="transition:opacity 1s linear;";p&&(t+=p+"-transition:opacity 1s linear;");p=pnq({style:t});if(k.nodeType===1&&/^(script|style)$/i.test(k.tagName))throw Error("");k.innerHTML=Xv(p);return g.fZ(k.firstChild,"transition")!=""});g.pc(Ei,g.dQ);g.E=Ei.prototype;g.E.play=function(){if(this.isPlaying())return!1;this.VH();this.V$("play");this.startTime=g.kn();this.T=1;if(L4W())return g.S4(this.Y,this.S),this.N=g.Vu(this.W_Y,void 0,this),!0;this.Ry(!1);return!1}; g.E.W_Y=function(){g.AK(this.Y);ekS(this.Y,this.Z);g.S4(this.Y,this.C);this.N=g.Vu((0,g.H9)(this.Ry,this,!1),this.X*1E3)}; g.E.stop=function(){this.isPlaying()&&this.Ry(!0)}; g.E.Ry=function(k){g.S4(this.Y,"transition","");g.B9.clearTimeout(this.N);g.S4(this.Y,this.C);this.endTime=g.kn();this.T=0;if(k)this.onStop();else this.onFinish();this.OH()}; g.E.Ap=function(){this.stop();Ei.AD.Ap.call(this)}; g.E.pause=function(){};var a00={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};SI("Element","attributes")||SI("Node","attributes");SI("Element","innerHTML")||SI("HTMLElement","innerHTML");SI("Node","nodeName");SI("Node","nodeType");SI("Node","parentNode");SI("Node","childNodes");SI("HTMLElement","style")||SI("Element","style");SI("HTMLStyleElement","sheet");var OZi=gcS("getPropertyValue"),KSu=gcS("setProperty");SI("Element","namespaceURI")||SI("Node","namespaceURI");var jpw={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var pUi,jCe,kf0,xJL,tLq;pUi=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]");jCe=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.vnS=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); g.fv=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");kf0=/^http:\/\/.*/;g.cC4=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");xJL=/\s+/;tLq=/[\d\u06f0-\u06f9]/;NN.prototype.Qe=function(){return new yv(this.Y())}; NN.prototype[Symbol.iterator]=function(){return new YE(this.Y())}; NN.prototype.T=function(){return new YE(this.Y())}; g.r(yv,g.Jf);yv.prototype.next=function(){return this.Y.next()}; yv.prototype[Symbol.iterator]=function(){return new YE(this.Y)}; yv.prototype.T=function(){return new YE(this.Y)}; g.r(YE,NN);YE.prototype.next=function(){return this.N.next()};rQ.prototype.clone=function(){return new rQ(this.T,this.Z,this.N,this.X,this.C,this.S,this.Y,this.B)}; rQ.prototype.MR=function(k){return this.T==k.T&&this.Z==k.Z&&this.N==k.N&&this.X==k.X&&this.C==k.C&&this.S==k.S&&this.Y==k.Y&&this.B==k.B};Cv.prototype.clone=function(){return new Cv(this.start,this.end)}; Cv.prototype.getLength=function(){return this.end-this.start};(function(){if(oG0){var k=/Windows NT ([0-9.]+)/;return(k=k.exec(g.nc()))?k[1]:"0"}return jQ?(k=/1[0|1][_.][0-9_.]+/,(k=k.exec(g.nc()))?k[0].replace(/_/g,"."):"10"):g.jN?(k=/Android\s+([^\);]+)(\)|;)/,(k=k.exec(g.nc()))?k[1]:""):$_S||d_S||EhS?(k=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(k=k.exec(g.nc()))?k[1].replace(/_/g,"."):""):""})();var o8q=function(){if(g.PL)return AB(/Firefox\/([0-9.]+)/);if(g.Ui||g.ag||g.As)return dQ9;if(g.sD){if(MQ()||gq()){var k=AB(/CriOS\/([0-9.]+)/);if(k)return k}return AB(/Chrome\/([0-9.]+)/)}if(g.y9&&!MQ())return AB(/Version\/([0-9.]+)/);if(gh||u6){if(k=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.nc()))return k[1]+"."+k[2]}else if(g.mF)return(k=AB(/Android\s+([0-9.]+)/))?k:AB(/Version\/([0-9.]+)/);return""}();g.pc(g.Vv,g.R);g.E=g.Vv.prototype;g.E.subscribe=function(k,p,t){var J=this.Y[k];J||(J=this.Y[k]=[]);var q=this.S;this.T[q]=k;this.T[q+1]=p;this.T[q+2]=t;this.S=q+3;J.push(q);return q}; g.E.unsubscribe=function(k,p,t){if(k=this.Y[k]){var J=this.T;if(k=k.find(function(q){return J[q+1]==p&&J[q+2]==t}))return this.Jo(k)}return!1}; g.E.Jo=function(k){var p=this.T[k];if(p){var t=this.Y[p];this.C!=0?(this.N.push(k),this.T[k+1]=function(){}):(t&&g.xn(t,k),delete this.T[k],delete this.T[k+1],delete this.T[k+2])}return!!p}; g.E.publish=function(k,p){var t=this.Y[k];if(t){var J=Array(arguments.length-1),q=arguments.length,F;for(F=1;F<q;F++)J[F-1]=arguments[F];if(this.Z)for(F=0;F<t.length;F++)q=t[F],qUq(this.T[q+1],this.T[q+2],J);else{this.C++;try{for(F=0,q=t.length;F<q&&!this.MO();F++){var d=t[F];this.T[d+1].apply(this.T[d+2],J)}}finally{if(this.C--,this.N.length>0&&this.C==0)for(;t=this.N.pop();)this.Jo(t)}}return F!=0}return!1}; g.E.clear=function(k){if(k){var p=this.Y[k];p&&(p.forEach(this.Jo,this),delete this.Y[k])}else this.T.length=0,this.Y={}}; g.E.Ap=function(){g.Vv.AD.Ap.call(this);this.clear();this.N.length=0};g.Wp.prototype.set=function(k,p){p===void 0?this.T.remove(k):this.T.set(k,g.L9(p))}; g.Wp.prototype.get=function(k){try{var p=this.T.get(k)}catch(t){return}if(p!==null)try{return JSON.parse(p)}catch(t){throw"Storage: Invalid value was encountered";}}; g.Wp.prototype.remove=function(k){this.T.remove(k)};g.pc(Dq,g.Wp);Dq.prototype.set=function(k,p){Dq.AD.set.call(this,k,$Rw(p))}; Dq.prototype.Y=function(k){k=Dq.AD.get.call(this,k);if(k===void 0||k instanceof Object)return k;throw"Storage: Invalid value was encountered";}; Dq.prototype.get=function(k){if(k=this.Y(k)){if(k=k.data,k===void 0)throw"Storage: Invalid value was encountered";}else k=void 0;return k};g.pc(si,Dq);si.prototype.set=function(k,p,t){if(p=$Rw(p)){if(t){if(t<g.kn()){si.prototype.remove.call(this,k);return}p.expiration=t}p.creation=g.kn()}si.AD.set.call(this,k,p)}; si.prototype.Y=function(k,p){var t=si.AD.Y.call(this,k);if(t)if(!p&&g.dRi(t))si.prototype.remove.call(this,k);else return t};g.pc(g.Lv,si);g.pc(vp,E8L);vp.prototype[Symbol.iterator]=function(){return g.T7(this.Qe(!0)).T()}; vp.prototype.clear=function(){var k=Array.from(this);k=g.Z(k);for(var p=k.next();!p.done;p=k.next())this.remove(p.value)};g.pc(cp,vp);g.E=cp.prototype;g.E.isAvailable=function(){var k=this.T;if(k)try{k.setItem("__sak","1");k.removeItem("__sak");var p=!0}catch(t){p=t instanceof DOMException&&(t.name==="QuotaExceededError"||t.code===22||t.code===1014||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&k&&k.length!==0}else p=!1;return this.Y=p}; g.E.set=function(k,p){nv(this);try{this.T.setItem(k,p)}catch(t){if(this.T.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; g.E.get=function(k){nv(this);k=this.T.getItem(k);if(typeof k!=="string"&&k!==null)throw"Storage mechanism: Invalid value was encountered";return k}; g.E.remove=function(k){nv(this);this.T.removeItem(k)}; g.E.Qe=function(k){nv(this);var p=0,t=this.T,J=new g.Jf;J.next=function(){if(p>=t.length)return g.db;var q=t.key(p++);if(k)return g.oQ(q);q=t.getItem(q);if(typeof q!=="string")throw"Storage mechanism: Invalid value was encountered";return g.oQ(q)}; return J}; g.E.clear=function(){nv(this);this.T.clear()}; g.E.key=function(k){nv(this);return this.T.key(k)};g.pc(wQ,cp);g.pc(SUi,cp);g.pc(iu,vp);iu.prototype.set=function(k,p){this.Y.set(this.T+k,p)}; iu.prototype.get=function(k){return this.Y.get(this.T+k)}; iu.prototype.remove=function(k){this.Y.remove(this.T+k)}; iu.prototype.Qe=function(k){var p=this.Y[Symbol.iterator](),t=this,J=new g.Jf;J.next=function(){var q=p.next();if(q.done)return q;for(q=q.value;q.slice(0,t.T.length)!=t.T;){q=p.next();if(q.done)return q;q=q.value}return g.oQ(k?q.slice(t.T.length):t.Y.get(q))}; return J};Pp.prototype.getValue=function(){return this.Y}; Pp.prototype.clone=function(){return new Pp(this.T,this.Y)};g.E=G7.prototype;g.E.vN=function(k,p){var t=this.T;t.push(new Pp(k,p));k=t.length-1;p=this.T;for(t=p[k];k>0;){var J=k-1>>1;if(p[J].T>t.T)p[k]=p[J],k=J;else break}p[k]=t}; g.E.remove=function(){var k=this.T,p=k.length,t=k[0];if(!(p<=0)){if(p==1)k.length=0;else{k[0]=k.pop();k=0;p=this.T;for(var J=p.length,q=p[k];k<J>>1;){var F=k*2+1,d=k*2+2;F=d<J&&p[d].T<p[F].T?d:F;if(p[F].T>q.T)break;p[k]=p[F];k=F}p[k]=q}return t.getValue()}}; g.E.Ve=function(){for(var k=this.T,p=[],t=k.length,J=0;J<t;J++)p.push(k[J].getValue());return p}; g.E.zS=function(){for(var k=this.T,p=[],t=k.length,J=0;J<t;J++)p.push(k[J].T);return p}; g.E.clone=function(){return new G7(this)}; g.E.isEmpty=function(){return this.T.length===0}; g.E.clear=function(){this.T.length=0};g.r(Ib,G7);Ib.prototype.enqueue=function(k,p){this.vN(k,p)};Xz.jE=void 0;Xz.getInstance=function(){return Xz.jE?Xz.jE:Xz.jE=new Xz}; Xz.prototype.T=0;var Rb={},nnA=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Rb.assign=function(k){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var t=p.shift();if(t){if(typeof t!=="object")throw new TypeError(t+"must be non-object");for(var J in t)Object.prototype.hasOwnProperty.call(t,J)&&(k[J]=t[J])}}return k}; Rb.f9=function(k,p){if(k.length===p)return k;if(k.subarray)return k.subarray(0,p);k.length=p;return k}; var wWa={Oc:function(k,p,t,J,q){if(p.subarray&&k.subarray)k.set(p.subarray(t,t+J),q);else for(var F=0;F<J;F++)k[q+F]=p[t+F]}, jA:function(k){var p,t;var J=t=0;for(p=k.length;J<p;J++)t+=k[J].length;var q=new Uint8Array(t);J=t=0;for(p=k.length;J<p;J++){var F=k[J];q.set(F,t);t+=F.length}return q}},icq={Oc:function(k,p,t,J,q){for(var F=0;F<J;F++)k[q+F]=p[t+F]}, jA:function(k){return[].concat.apply([],k)}}; Rb.abS=function(){nnA?(Rb.TN=Uint8Array,Rb.bX=Uint16Array,Rb.ix=Int32Array,Rb.assign(Rb,wWa)):(Rb.TN=Array,Rb.bX=Array,Rb.ix=Array,Rb.assign(Rb,icq))}; Rb.abS();var QLC=!0;try{new Uint8Array(1)}catch(k){QLC=!1};var S5={};S5=function(k,p,t,J){var q=k&65535|0;k=k>>>16&65535|0;for(var F;t!==0;){F=t>2E3?2E3:t;t-=F;do q=q+p[J++]|0,k=k+q|0;while(--F);q%=65521;k%=65521}return q|k<<16|0};for(var UB={},Yb,PJS=[],T5=0;T5<256;T5++){Yb=T5;for(var GKc=0;GKc<8;GKc++)Yb=Yb&1?3988292384^Yb>>>1:Yb>>>1;PJS[T5]=Yb}UB=function(k,p,t,J){t=J+t;for(k^=-1;J<t;J++)k=k>>>8^PJS[(k^p[J])&255];return k^-1};var pF={};pF={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 lu=[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],Kv=[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],QQw=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],mRT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q9=Array(576);Bp(q9);var F3=Array(60);Bp(F3);var Oi=Array(512);Bp(Oi);var uu=Array(256);Bp(uu);var jI=Array(29);Bp(jI);var Hp=Array(30);Bp(Hp);var n8h,wU6,i6e,cfi=!1;var Yl;Yl=[new y2(0,0,0,0,function(k,p){var t=65535;for(t>k.y$-5&&(t=k.y$-5);;){if(k.GA<=1){fF(k);if(k.GA===0&&p===0)return 1;if(k.GA===0)break}k.jz+=k.GA;k.GA=0;var J=k.b2+t;if(k.jz===0||k.jz>=J)if(k.GA=k.jz-J,k.jz=J,$l(k,!1),k.kf.im===0)return 1;if(k.jz-k.b2>=k.Fo-262&&($l(k,!1),k.kf.im===0))return 1}k.vN=0;if(p===4)return $l(k,!0),k.kf.im===0?3:4;k.jz>k.b2&&$l(k,!1);return 1}), new y2(4,4,8,4,bw),new y2(4,5,16,8,bw),new y2(4,6,32,32,bw),new y2(4,4,16,16,N9),new y2(8,16,32,32,N9),new y2(8,16,128,128,N9),new y2(8,32,128,256,N9),new y2(32,128,258,1024,N9),new y2(32,258,258,4096,N9)];var v89={};v89=function(){this.input=null;this.HF=this.x4=this.cI=0;this.output=null;this.rb=this.im=this.x5=0;this.msg="";this.state=null;this.EG=2;this.oG=0};var PD_=Object.prototype.toString; Ty.prototype.push=function(k,p){var t=this.kf,J=this.options.chunkSize;if(this.ended)return!1;var q=p===~~p?p:p===!0?4:0;typeof k==="string"?t.input=UR9(k):PD_.call(k)==="[object ArrayBuffer]"?t.input=new Uint8Array(k):t.input=k;t.cI=0;t.x4=t.input.length;do{t.im===0&&(t.output=new Rb.TN(J),t.x5=0,t.im=J);k=Lyw(t,q);if(k!==1&&k!==0)return this.OH(k),this.ended=!0,!1;if(t.im===0||t.x4===0&&(q===4||q===2))if(this.options.KF==="string"){var F=Rb.f9(t.output,t.x5);p=F;F=F.length;if(F<65537&&(p.subarray&& QLC||!p.subarray))p=String.fromCharCode.apply(null,Rb.f9(p,F));else{for(var d="",S=0;S<F;S++)d+=String.fromCharCode(p[S]);p=d}this.chunks.push(p)}else p=Rb.f9(t.output,t.x5),this.chunks.push(p)}while((t.x4>0||t.im===0)&&k!==1);if(q===4)return(t=this.kf)&&t.state?(J=t.state.status,J!==42&&J!==69&&J!==73&&J!==91&&J!==103&&J!==113&&J!==666?k=tq(t,-2):(t.state=null,k=J===113?tq(t,-3):0)):k=-2,this.OH(k),this.ended=!0,k===0;q===2&&(this.OH(0),t.im=0);return!0}; Ty.prototype.OH=function(k){k===0&&(this.result=this.options.KF==="string"?this.chunks.join(""):Rb.jA(this.chunks));this.chunks=[];this.err=k;this.msg=this.kf.msg};var Z8="@@redux/INIT"+rD(),z8h="@@redux/REPLACE"+rD();var e80=typeof Symbol==="function"&&Symbol.observable||"@@observable";var IAS=[0,h6J,-3,oX];g.r(mx,X$);mx.prototype.getType=function(){return y6(this,11)};var JhT=function(){var k=[0,MMq,au9,kb,h6J,kb,-1,oX,h6J,oX,-1,MMq,oX,au9,pn,IAS,kb,-1,oX];return function(p,t){if(xj.length){var J=xj.pop();cjq(J,t);J.T.init(p,void 0,void 0,t);p=J}else p=new wB(p,t);try{var q=new mx,F=q.sQ;o_(k)(F,p);var d=q}finally{p.free()}return d}}();var g8M=557646788;var oZe=new g.V2("adInfoDialogEndpoint");var WPi=new g.V2("adPingingEndpoint");var MVe=new g.V2("crossDeviceProgressCommand");var lT=new g.V2("actionCompanionAdRenderer");var oe=new g.V2("adActionInterstitialRenderer");var XWa=new g.V2("adDurationRemainingRenderer");var sx=new g.V2("adHoverTextButtonRenderer");var th6=new g.V2("adInfoDialogRenderer");var Sg=new g.V2("adMessageRenderer");var LJ=new g.V2("adPreviewRenderer");var Ol=new g.V2("adsEngagementPanelRenderer");var rch=new g.V2("dismissablePanelTextPortraitImageRenderer");var Yh_=new g.V2("adsEngagementPanelSectionListViewModel");var RSL=new g.V2("flyoutCtaRenderer");var jH=new g.V2("imageCompanionAdRenderer");var tD=new g.V2("instreamAdPlayerOverlayRenderer");var NsL=new g.V2("instreamSurveyAdBackgroundImageRenderer");var DK=new g.V2("instreamSurveyAdPlayerOverlayRenderer");var $P=new g.V2("instreamSurveyAdRenderer"),WT=new g.V2("instreamSurveyAdSingleSelectQuestionRenderer"),Vk=new g.V2("instreamSurveyAdMultiSelectQuestionRenderer"),rb=new g.V2("instreamSurveyAdAnswerRenderer"),Bqq=new g.V2("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var qg=new g.V2("instreamVideoAdRenderer");var zSn=new g.V2("textOverlayAdContentRenderer"),eSa=new g.V2("enhancedTextOverlayAdContentRenderer"),hSA=new g.V2("imageOverlayAdContentRenderer");var JD=new g.V2("playerOverlayLayoutRenderer");var qz=new g.V2("videoInterstitialButtonedCenteredLayoutRenderer");var VxL=new g.V2("aboveFeedAdLayoutRenderer");var W_i=new g.V2("belowPlayerAdLayoutRenderer");var mPh=new g.V2("inPlayerAdLayoutRenderer");var TP=new g.V2("playerBytesAdLayoutRenderer");var mz=new g.V2("playerBytesSequenceItemAdLayoutRenderer");var Ab=new g.V2("playerUnderlayAdLayoutRenderer");var FF=new g.V2("adIntroRenderer");var Jb=new g.V2("playerBytesSequentialLayoutRenderer");var tK6=new g.V2("slidingTextPlayerOverlayRenderer");var dR=new g.V2("surveyTextInterstitialRenderer");var NKq=new g.V2("videoAdTrackingRenderer");var aAR=new g.V2("simpleAdBadgeRenderer");var ka=new g.V2("skipAdRenderer"),M9K=new g.V2("skipButtonRenderer");var wR=new g.V2("adSlotRenderer");var ZK=new g.V2("squeezebackPlayerSidePanelRenderer");var gnW=new g.V2("timedPieCountdownRenderer");var ha=new g.V2("adAvatarViewModel");var aM=new g.V2("adBadgeViewModel");var MV=new g.V2("adButtonViewModel");var uSc=new g.V2("adDetailsLineViewModel");var lAc=new g.V2("adDisclosureBannerViewModel");var jLa=new g.V2("adPodIndexViewModel");var OcK=new g.V2("imageBackgroundViewModel");var K4C=new g.V2("adGridCardCollectionViewModel");var Hcc=new g.V2("adGridCardTextViewModel");var xQR=new g.V2("adPreviewViewModel");var keJ=new g.V2("playerAdAvatarLockupCardButtonedViewModel");var p4C=new g.V2("skipAdButtonViewModel");var tDS=new g.V2("skipAdViewModel");var Jjn=new g.V2("timedPieCountdownViewModel");var o2a=new g.V2("visitAdvertiserLinkViewModel");var KH=new g.V2("bannerImageLayoutViewModel");var Hv=new g.V2("topBannerImageTextIconButtonedLayoutViewModel");var xa=new g.V2("adsEngagementPanelLayoutViewModel");var CJ=new g.V2("displayUnderlayTextGridCardsLayoutViewModel");g.Ax=new g.V2("browseEndpoint");var q$n=new g.V2("confirmDialogEndpoint");var sui=new g.V2("rawColdConfigGroup");var DIu=new g.V2("rawHotConfigGroup");g.bS=new g.V2("commandExecutorCommand");g.r(jQL,X$);var EaS={jvh:0,XJp:1,cfY:32,dQ0:61,LK6:67,a16:103,BuT:86,VFS:42,v0r:60,DQh:62,HKp:73,wJh:76,UQO:88,Jfb:90,iAy:99,tFh:98,pJb:100,Gv6:102,rKy:41,TJb:69,yKY:70,goG:71,qUh:2,SUY:27,ANDROID:3,VP6:54,ct0:14,UX0:91,vhb:55,kky:24,wjh:20,GkO:18,dXh:21,zVO:104,pj0:30,rMr:29,TdT:28,xQy:101,yMS:34,JtT:36,HHb:38,IOS:5,jD8:15,bI6:92,QDS:40,qo8:25,SoS:17,Mtr:19,OIT:64,x_Y:66,m_p:26,XnY:22,fCy:33,D_y:68,ZI0:35,RWy:53,lC6:37,FX8:39,Tur:7,yfp:57,g0G:43,E0G:59,Ynh:93,i7Y:74,AfS:75,sv8:85,uqp:65,CYp:80,KKp:8,iK6:10, o0p:58,PY6:63,NuY:72,LFO:23,AKy:11,s7y:13,DMy:12,rfh:16,hn6:56,znp:31,j9Y:77,cy0:84,kvh:87,k6y:89,vNp:94,Txp:95};g.r(Wi,X$);Wi.prototype.q0=function(){return Ns(this,3)}; Wi.prototype.Xl=function(){return Ns(this,5)}; Wi.prototype.w4=function(k){return T9(this,5,k)};g.r(D8,X$);g.r(O6q,X$);g.r(sB,X$);g.E=sB.prototype;g.E.getDeviceId=function(){return Ns(this,6)}; g.E.Aw=function(k){var p=u5(this,9,f8,3,!0);aT(p,k);return p[k]}; g.E.getPlayerType=function(){return y6(this,36)}; g.E.setHomeGroupInfo=function(k){return dB(this,O6q,81,k)}; g.E.clearLocationPlayabilityToken=function(){return zh(this,89)};g.r(LF,X$);LF.prototype.getValue=function(){return Ns(this,JH(this,Vq6)===2?2:-1)}; var Vq6=[2,3,4,5,6];g.r(vi,X$);vi.prototype.setTrackingParams=function(k){return zh(this,1,vn6(k,!1))};g.r(ci,X$);g.r(nF,X$);nF.prototype.Aw=function(k){var p=u5(this,5,NK,3,!0);aT(p,k);return p[k]};g.r(wD,X$);wD.prototype.getToken=function(){return fX(this,2)}; wD.prototype.setToken=function(k){return T9(this,2,k)};g.r(iw,X$);iw.prototype.setSafetyMode=function(k){return ZL(this,5,k)};g.r(Q2,X$);Q2.prototype.aP=function(k){return dB(this,sB,1,k)};var cT=new g.V2("thumbnailLandscapePortraitRenderer");g.F89=new g.V2("changeEngagementPanelVisibilityAction");var vZ6=new g.V2("continuationCommand");g.$WA=new g.V2("openPopupAction");g.ZO=new g.V2("webCommandMetadata");var Rrw=new g.V2("metadataBadgeRenderer");var Lfq=new g.V2("signalServiceEndpoint");var Qt=new g.V2("innertubeCommand");var yyq=new g.V2("loggingDirectives");var Gt_={C0h:"EMBEDDED_PLAYER_MODE_UNKNOWN",sth:"EMBEDDED_PLAYER_MODE_DEFAULT",NA8:"EMBEDDED_PLAYER_MODE_PFP",uUO:"EMBEDDED_PLAYER_MODE_PFL"};var Uo_=new g.V2("channelThumbnailEndpoint");var SX0=new g.V2("embeddedPlayerErrorMessageRenderer");var FH0=new g.V2("embeddedPlayerOverlayVideoDetailsRenderer"),ft9=new g.V2("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),bxj=new g.V2("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var GP6=new g.V2("embedsInfoPanelRenderer");var dWS=new g.V2("feedbackEndpoint");var E29=new g.V2("callToActionButtonViewModel");var S$S=new g.V2("interactionLoggingCommandMetadata");var wih={enp:"WEB_DISPLAY_MODE_UNKNOWN",ZK0:"WEB_DISPLAY_MODE_BROWSER",I1p:"WEB_DISPLAY_MODE_MINIMAL_UI",WKy:"WEB_DISPLAY_MODE_STANDALONE",n0h:"WEB_DISPLAY_MODE_FULLSCREEN"};g.r(Pi,X$);Pi.prototype.getPlayerType=function(){return y6(this,7)}; Pi.prototype.nZ=function(){return Ns(this,19)}; Pi.prototype.setVideoId=function(k){return T9(this,19,k)};g.r(Gy,X$);g.r(R3,X$);g.r(Bi,X$); var UWS=[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];var fna=new g.V2("loggingContext");g.r(zy,X$);g.r(e5,X$);e5.prototype.nZ=function(){return fX(this,JH(this,F_)===1?1:-1)}; e5.prototype.setVideoId=function(k){return pX(this,1,F_,Vy(k))}; e5.prototype.getPlaylistId=function(){return fX(this,JH(this,F_)===2?2:-1)}; var F_=[1,2];g.r(KyT,X$);var OK=new g.V2("changeKeyedMarkersVisibilityCommand");var bhA=new g.V2("changeMarkersVisibilityCommand");var zre=new g.V2("loadMarkersCommand");var NHL=new g.V2("suggestedActionDataViewModel");var OAi=new g.V2("timelyActionViewModel");var jS9=new g.V2("timelyActionsOverlayViewModel");var k59=new g.V2("productListItemRenderer");var yja=new g.V2("shoppingOverlayRenderer");var $oS=new g.V2("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Y$L=new g.V2("adFeedbackEndpoint");var THA=new g.V2("menuEndpoint");var Nyu=new g.V2("phoneDialerEndpoint");var fk0=new g.V2("sendSmsEndpoint");var qXj=new g.V2("copyTextEndpoint");var rja=new g.V2("shareEndpoint"),Zhc=new g.V2("shareEntityEndpoint"),CPR=new g.V2("shareEntityServiceEndpoint"),AjS=new g.V2("webPlayerShareEntityServiceEndpoint");g.i3=new g.V2("urlEndpoint");g.ub=new g.V2("watchEndpoint");var mWa=new g.V2("watchPlaylistEndpoint");g.VDS=new g.V2("offlineOrchestrationActionCommand");var Xri=new g.V2("compositeVideoOverlayRenderer");var W8q=new g.V2("miniplayerRenderer");var Ji9=new g.V2("paidContentOverlayRenderer");var DWK=new g.V2("playerMutedAutoplayOverlayRenderer"),sTK=new g.V2("playerMutedAutoplayEndScreenRenderer");var KZ0=new g.V2("unserializedPlayerResponse"),L8n=new g.V2("unserializedPlayerResponse");var v2L=new g.V2("playlistEditEndpoint");var Cn;g.vT=new g.V2("buttonRenderer");Cn=new g.V2("toggleButtonRenderer");var ych=new g.V2("counterfactualRenderer");var cjJ=new g.V2("resolveUrlCommandMetadata");var n2R=new g.V2("modifyChannelNotificationPreferenceEndpoint");var V3i=new g.V2("pingingEndpoint");var w4q=new g.V2("unsubscribeEndpoint");g.mm=new g.V2("subscribeButtonRenderer");var ihL=new g.V2("subscribeEndpoint");var Dmi=new g.V2("buttonViewModel");var TK0=new g.V2("qrCodeRenderer");var UkT={BKY:"LIVING_ROOM_APP_MODE_UNSPECIFIED",HIS:"LIVING_ROOM_APP_MODE_MAIN",Ga6:"LIVING_ROOM_APP_MODE_KIDS",d_h:"LIVING_ROOM_APP_MODE_MUSIC",zWr:"LIVING_ROOM_APP_MODE_UNPLUGGED",wn8:"LIVING_ROOM_APP_MODE_GAMING"};var iJi=new g.V2("autoplaySwitchButtonRenderer");var Cq,zpw,oPi,HnT;Cq=new g.V2("decoratedPlayerBarRenderer");zpw=new g.V2("chapteredPlayerBarRenderer");oPi=new g.V2("multiMarkersPlayerBarRenderer");HnT=new g.V2("chapterRenderer");g.Mo6=new g.V2("markerRenderer");var QTS=new g.V2("decoratedPlayheadRenderer");var IKh=new g.V2("desktopOverlayConfigRenderer");var ZQS=new g.V2("engagementPanelSectionListRenderer");var P9M=new g.V2("gatedActionsOverlayViewModel");var jXi=new g.V2("heatMarkerRenderer");var lO6=new g.V2("heatmapRenderer");var BR_=new g.V2("watchToWatchTransitionRenderer");var doL=new g.V2("playlistPanelRenderer");var PPA=new g.V2("productUpsellSuggestedActionViewModel");var Gen=new g.V2("suggestedActionTimeRangeTrigger"),InL=new g.V2("suggestedActionsRenderer"),X4W=new g.V2("suggestedActionRenderer");var OnS=new g.V2("timedMarkerDecorationRenderer");var ADi=new g.V2("cipher");var HHL=new g.V2("playerVars");var R9c=new g.V2("playerVars");var AW=g.B9.window,BHS,z9S,hq=(AW==null?void 0:(BHS=AW.yt)==null?void 0:BHS.config_)||(AW==null?void 0:(z9S=AW.ytcfg)==null?void 0:z9S.data_)||{};g.eM("yt.config_",hq);var uw=[];var $dh=/^[\w.]*$/,J0i={q:!0,search_query:!0},tFq=String(KF);var $X=new function(){var k=window.document;this.T=window;this.Y=k}; g.eM("yt.ads_.signals_.getAdSignalsString",function(k){return Hi(EG(k))});g.kn();var E_M="XMLHttpRequest"in g.B9?function(){return new XMLHttpRequest}:null;var e9c="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.m(e9c);var b2w={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"},Nle="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.m(e9c)),md0=!1,Udi=y0e,Z20=Ae;g.r(Ww,rq);LY.prototype.then=function(k,p,t){return this.T?this.T.then(k,p,t):this.N===1&&k?(k=k.call(t,this.Y))&&typeof k.then==="function"?k:cw(k):this.N===2&&p?(k=p.call(t,this.Y))&&typeof k.then==="function"?k:vw(k):this}; LY.prototype.getValue=function(){return this.Y}; LY.prototype.$goog_Thenable=!0;var nY=!1;var hO=gh||u6;var QtL=/^([0-9\.]+):([0-9\.]+)$/;g.r(du,rq);du.prototype.name="BiscottiError";g.r($9,rq);$9.prototype.name="BiscottiMissingError";var X8h={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},EA=null;var L$h=N_(["data-"]),uLh={};var h9n=0,Sq=g.Ok?"webkit":UH?"moz":g.Ui?"ms":g.As?"o":"",anQ=g.hw("ytDomDomGetNextId")||function(){return++h9n}; g.eM("ytDomDomGetNextId",anQ);var KEe={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};Y9.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Y9.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Y9.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var T2=g.B9.ytEventsEventsListeners||{};g.eM("ytEventsEventsListeners",T2);var k7T=g.B9.ytEventsEventsCounter||{count:0};g.eM("ytEventsEventsCounter",k7T);var oEw=f9(function(){var k=!1;try{var p=Object.defineProperty({},"passive",{get:function(){k=!0}}); window.addEventListener("test",null,p)}catch(t){}return k}),ppj=f9(function(){var k=!1; try{var p=Object.defineProperty({},"capture",{get:function(){k=!0}}); window.addEventListener("test",null,p)}catch(t){}return k});var ms;ms=window;g.V9=ms.ytcsi&&ms.ytcsi.now?ms.ytcsi.now:ms.performance&&ms.performance.timing&&ms.performance.now&&ms.performance.timing.navigationStart?function(){return ms.performance.timing.navigationStart+ms.performance.now()}:function(){return(new Date).getTime()};g.pc(mJ,g.R);mJ.prototype.L=function(k){k.T===void 0&&H2T(k);var p=k.T;k.Y===void 0&&H2T(k);this.T=new g.NL(p,k.Y)}; mJ.prototype.G3=function(){return this.T||new g.NL}; mJ.prototype.gy=function(){if(this.T){var k=(0,g.V9)();if(this.C!=0){var p=this.S,t=this.T,J=p.x-t.x;p=p.y-t.y;J=Math.sqrt(J*J+p*p)/(k-this.C);this.Y[this.N]=Math.abs((J-this.X)/this.X)>.5?1:0;for(t=p=0;t<4;t++)p+=this.Y[t]||0;p>=3&&this.Z();this.X=J}this.C=k;this.S=this.T;this.N=(this.N+1)%4}}; mJ.prototype.Ap=function(){g.yI(this.B);g.Zf(this.Y8)};g.r(VB,g.R);VB.prototype.V=function(k,p,t,J,q){t=g.j5((0,g.H9)(t,J||this.gs));t={target:k,name:p,callback:t};var F;q&&oEw()&&(F={passive:!0});k.addEventListener(p,t.callback,F);this.Z.push(t);return t}; VB.prototype.qP=function(k){for(var p=0;p<this.Z.length;p++)if(this.Z[p]==k){this.Z.splice(p,1);k.target.removeEventListener(k.name,k.callback);break}}; VB.prototype.Ap=function(){g.Df(this);g.R.prototype.Ap.call(this)};sA.prototype.clone=function(){var k=new sA,p;for(p in this)if(this.hasOwnProperty(p)){var t=this[p];k[p]=gT(t)=="object"?g.ih(t):t}return k};var ixT=["att/get"],VXh=["embedded_player"],UZi=["account/get_setting_values"],MDa=["share/get_share_panel"],g2a=["share/get_web_player_share_panel"],uYJ=["feedback"],lnc=["notification/modify_channel_preference"],Ihj=["player"],jT4=["browse/edit_playlist"],Nt6=["account/set_setting"],Ohq=["subscription/subscribe"],K8R=["subscription/unsubscribe"],zHw=["next","unplugged/watch_next"];var vz;g.LG=f9(function(){try{var k=new wQ;var p=k.isAvailable()?k:null}catch(t){return null}return p?new g.Lv(p):null}); vz=f9(function(){var k=new SUi;return k.isAvailable()?new g.Lv(k):null});g.HhR=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.eM("yt.msgs_",g.HhR);Pz.prototype.oe=function(k,p){k={};var t=[];"USER_SESSION_ID"in hq&&t.push({key:"u",value:g.M9("USER_SESSION_ID")});if(t=aYq(t))k.Authorization=t,t=p=p==null?void 0:p.sessionIndex,t===void 0&&(t=Number(g.M9("SESSION_INDEX",0)),t=isNaN(t)?0:t),g.TQ("voice_search_auth_header_removal")||(k["X-Goog-AuthUser"]=t.toString()),"INNERTUBE_HOST_OVERRIDE"in hq||(k["X-Origin"]=window.location.origin),p===void 0&&"DELEGATED_SESSION_ID"in hq&&(k["X-Goog-PageId"]=g.M9("DELEGATED_SESSION_ID"));return k};var dX={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Ru=g.hw("ytglobal.prefsUserPrefsPrefs_")||{};g.eM("ytglobal.prefsUserPrefsPrefs_",Ru);var G2;g.E=Sie.prototype;g.E.get=function(k,p){eq(k);z2(k);k=Ru[k]!==void 0?Ru[k].toString():null;return k!=null?k:p?p:""}; g.E.set=function(k,p){eq(k);z2(k);if(p==null)throw Error("ExpectedNotNull");Ru[k]=p.toString()}; g.E.remove=function(k){eq(k);z2(k);delete Ru[k]}; g.E.save=function(){var k=!0;g.TQ("web_secure_pref_cookie_killswitch")&&(k=!1);g.i6(this.T,this.dump(),63072E3,this.Y,k)}; g.E.clear=function(){g.lYe(Ru)}; g.E.dump=function(){var k=[],p;for(p in Ru)Ru.hasOwnProperty(p)&&k.push(p+"="+encodeURIComponent(String(Ru[p])));return k.join("&")}; g.E.parse=function(k){k=decodeURIComponent(k).split("&");for(var p=0;p<k.length;p++){var t=k[p].split("="),J=t[0];(t=t[1])&&(Ru[J]=t.toString())}};var bvi={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},iFM={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11, CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},Q3u={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},yBi={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.r(g.hm,Error);gu.prototype.Hj=function(k,p){return uk(k,1,p)}; gu.prototype.n0=function(k){(k=this.T.get(k))&&k()};g.hw("yt.scheduler.instance.timerIdMap_");g.r(jq,gu);jq.prototype.KU=function(k){if(k===void 0||!Number.isNaN(Number(k))){var p=g.hw("yt.scheduler.instance.cancelJob");p?p(k):g.N8(k)}}; jq.prototype.start=function(){var k=g.hw("yt.scheduler.instance.start");k&&k()}; jq.prototype.pause=function(){var k=g.hw("yt.scheduler.instance.pause");k&&k()}; g.B8=g.OA();x9.prototype.set=function(k,p,t,J){t=t||31104E3;this.remove(k);if(this.T)try{this.T.set(k,p,Date.now()+t*1E3);return}catch(F){}var q="";if(J)try{q=escape(g.L9(p))}catch(F){return}else q=escape(p);g.i6(k,q,t,this.Y)}; x9.prototype.get=function(k,p){var t=void 0,J=!this.T;if(!J)try{t=this.T.get(k)}catch(q){J=!0}if(J&&(t=g.QI(k))&&(t=unescape(t),p))try{t=JSON.parse(t)}catch(q){this.remove(k),t=void 0}return t}; x9.prototype.remove=function(k){this.T&&this.T.remove(k);g.Pw(k,"/",this.Y)}; x9.prototype.getCreationTime=function(k){return this.T&&(k=(this.T.Y(k)||{}).creation,typeof k==="number")?k:null};var kp=function(){var k;return function(){k||(k=new x9("ytidb"));return k}}();var Fm=[],tO,$p=!1;var VL={},Zve=(VL.AUTH_INVALID="No user identifier specified.",VL.EXPLICIT_ABORT="Transaction was explicitly aborted.",VL.IDB_NOT_SUPPORTED="IndexedDB is not supported.",VL.MISSING_INDEX="Index not created.",VL.MISSING_OBJECT_STORES="Object stores not created.",VL.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",VL.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",VL.UNKNOWN_ABORT= "Transaction was aborted for unknown reasons.",VL.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",VL.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",VL.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",VL.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",VL),Wy={},Cu0=(Wy.AUTH_INVALID="ERROR",Wy.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Wy.EXPLICIT_ABORT="IGNORED", Wy.IDB_NOT_SUPPORTED="ERROR",Wy.MISSING_INDEX="WARNING",Wy.MISSING_OBJECT_STORES="ERROR",Wy.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Wy.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Wy.QUOTA_EXCEEDED="WARNING",Wy.QUOTA_MAYBE_EXCEEDED="WARNING",Wy.UNKNOWN_ABORT="WARNING",Wy.INCOMPATIBLE_DB_VERSION="WARNING",Wy),DO={},ABL=(DO.AUTH_INVALID=!1,DO.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,DO.EXPLICIT_ABORT=!1,DO.IDB_NOT_SUPPORTED=!1,DO.MISSING_INDEX=!1,DO.MISSING_OBJECT_STORES=!1,DO.DB_DELETED_BY_MISSING_OBJECT_STORES= !1,DO.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,DO.QUOTA_EXCEEDED=!1,DO.QUOTA_MAYBE_EXCEEDED=!0,DO.UNKNOWN_ABORT=!0,DO.INCOMPATIBLE_DB_VERSION=!1,DO);g.r(g.fz,g.hm);g.r(br,g.fz);g.r(Nv,Error);var mNT=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.Z4.all=function(k){return new g.Z4(new r6(function(p,t){var J=[],q=k.length;q===0&&p(J);for(var F={X1:0};F.X1<k.length;F={X1:F.X1},++F.X1)g.Z4.resolve(k[F.X1]).then(function(d){return function(S){J[d.X1]=S;q--;q===0&&p(J)}}(F)).catch(function(d){t(d)})}))}; g.Z4.resolve=function(k){return new g.Z4(new r6(function(p,t){k instanceof g.Z4?k.then(p,t):p(k)}))}; g.Z4.reject=function(k){return new g.Z4(new r6(function(p,t){t(k)}))}; g.Z4.prototype.then=function(k,p){var t=this,J=k!=null?k:W6S,q=p!=null?p:VIi;return new g.Z4(new r6(function(F,d){t.state.status==="PENDING"?(t.T.push(function(){DNu(t,t,J,F,d)}),t.Y.push(function(){sbT(t,t,q,F,d)})):t.state.status==="FULFILLED"?DNu(t,t,J,F,d):t.state.status==="REJECTED"&&sbT(t,t,q,F,d)}))}; g.Z4.prototype.catch=function(k){return this.then(void 0,k)};g.E=ivu.prototype;g.E.add=function(k,p,t){return g.Lz(this,[k],{mode:"readwrite",RO:!0},function(J){return J.objectStore(k).add(p,t)})}; g.E.clear=function(k){return g.Lz(this,[k],{mode:"readwrite",RO:!0},function(p){return p.objectStore(k).clear()})}; g.E.close=function(){this.T.close();var k;((k=this.options)==null?0:k.closed)&&this.options.closed()}; g.E.count=function(k,p){return g.Lz(this,[k],{mode:"readonly",RO:!0},function(t){return t.objectStore(k).count(p)})}; g.E.delete=function(k,p){return g.Lz(this,[k],{mode:"readwrite",RO:!0},function(t){return t.objectStore(k).delete(p)})}; g.E.get=function(k,p){return g.Lz(this,[k],{mode:"readonly",RO:!0},function(t){return t.objectStore(k).get(p)})}; g.E.getAll=function(k,p,t){return g.Lz(this,[k],{mode:"readonly",RO:!0},function(J){return J.objectStore(k).getAll(p,t)})}; g.E.objectStoreNames=function(){return Array.from(this.T.objectStoreNames)}; g.E.getName=function(){return this.T.name}; g.E=W7.prototype;g.E.add=function(k,p){return AO(this.T.add(k,p))}; g.E.autoIncrement=function(){return this.T.autoIncrement}; g.E.clear=function(){return AO(this.T.clear()).then(function(){})}; g.E.count=function(k){return AO(this.T.count(k))}; g.E.delete=function(k){return k instanceof IDBKeyRange?Iqi(this,k):AO(this.T.delete(k))}; g.E.get=function(k){return AO(this.T.get(k))}; g.E.getAll=function(k,p){return"getAll"in IDBObjectStore.prototype?AO(this.T.getAll(k,p)):Xpe(this,k,p)}; g.E.index=function(k){try{return new exq(this.T.index(k))}catch(p){if(p instanceof Error&&p.name==="NotFoundError")throw new Nv(k,this.T.name);throw p;}}; g.E.getName=function(){return this.T.name}; g.E.keyPath=function(){return this.T.keyPath}; nz.prototype.abort=function(){this.T.abort();this.Y=!0;throw new g.fz("EXPLICIT_ABORT");}; nz.prototype.objectStore=function(k){k=this.T.objectStore(k);var p=this.N.get(k);p||(p=new W7(k),this.N.set(k,p));return p}; g.E=exq.prototype;g.E.count=function(k){return AO(this.T.count(k))}; g.E.delete=function(k){return g.GE(this,{query:k},function(p){return p.delete().then(function(){return g.Q9(p)})})}; g.E.get=function(k){return AO(this.T.get(k))}; g.E.getAll=function(k,p){return"getAll"in IDBIndex.prototype?AO(this.T.getAll(k,p)):hx0(this,k,p)}; g.E.keyPath=function(){return this.T.keyPath}; g.E.unique=function(){return this.T.unique}; Ig.prototype.delete=function(){return AO(this.cursor.delete()).then(function(){})}; Ig.prototype.getValue=function(){return this.cursor.value}; Ig.prototype.update=function(k){return AO(this.cursor.update(k))};Rg.prototype.Y=function(k,p,t){t=t===void 0?{}:t;return MIq(k,p,t)}; Rg.prototype.delete=function(k){k=k===void 0?{}:k;return Xm(this.name,k)}; Rg.prototype.open=function(){function k(){var F,d,S,U,f,b,N,y,Y,T;return g.Q(function(A){switch(A.T){case 1:return d=(F=Error().stack)!=null?F:"",g.Aw(A,2),g.n(A,t.Y(t.name,t.options.version,q),4);case 4:for(var V=S=A.Y,D=t.options,v=[],w=g.Z(Object.keys(D.Sn)),X=w.next();!X.done;X=w.next()){X=X.value;var B=D.Sn[X],O=B.KGp===void 0?Number.MAX_VALUE:B.KGp;!(V.T.version>=B.f5)||V.T.version>=O||V.T.objectStoreNames.contains(X)||v.push(X)}U=v;if(U.length===0){A.oY(5);break}f=Object.keys(t.options.Sn); b=S.objectStoreNames();if(t.X<g.rh("ytidb_reopen_db_retries",0))return t.X++,S.close(),d6(new g.fz("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:f,foundObjectStores:b})),A.return(k());if(!(t.C<g.rh("ytidb_remake_db_retries",1))){A.oY(6);break}t.C++;return g.n(A,t.delete(),7);case 7:return d6(new g.fz("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:f,foundObjectStores:b})),A.return(k());case 6:throw new br(b,f);case 5:return A.return(S);case 2:N= g.W9(A);if(N instanceof DOMException?N.name!=="VersionError":"DOMError"in self&&N instanceof DOMError?N.name!=="VersionError":!(N instanceof Object&&"message"in N)||N.message!=="An attempt was made to open a database using a lower version than the existing version."){A.oY(8);break}return g.n(A,t.Y(t.name,void 0,Object.assign({},q,{upgrade:void 0})),9);case 9:y=A.Y;Y=y.T.version;if(t.options.version!==void 0&&Y>t.options.version+1)throw y.close(),t.N=!1,gE0(t,Y);return A.return(y);case 8:throw p(), N instanceof Error&&!g.TQ("ytidb_async_stack_killswitch")&&(N.stack=N.stack+"\n"+d.substring(d.indexOf("\n")+1)),Yp(N,t.name,"",(T=t.options.version)!=null?T:-1);}})} function p(){t.T===J&&(t.T=void 0)} var t=this;if(!this.N)throw gE0(this);if(this.T)return this.T;var J,q={blocking:function(F){F.close()}, closed:p,mAS:p,upgrade:this.options.upgrade};return this.T=J=k()};var zE=new Rg("YtIdbMeta",{Sn:{databases:{f5:1}},upgrade:function(k,p){p(1)&&g.D4(k,"databases",{keyPath:"actualName"})}});var g6,Mv=new function(){}(new function(){});new g.yM;g.r(jY,Rg);jY.prototype.Y=function(k,p,t){t=t===void 0?{}:t;return(this.options.shared?pi9:kyM)(k,p,Object.assign({},t))}; jY.prototype.delete=function(k){k=k===void 0?{}:k;return(this.options.shared?qBw:t5_)(this.name,k)};var xWQ={},$9i=g.OT("ytGcfConfig",{Sn:(xWQ.coldConfigStore={f5:1},xWQ.hotConfigStore={f5:1},xWQ),shared:!1,upgrade:function(k,p){p(1)&&(g.w6(g.D4(k,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.w6(g.D4(k,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.r(H7,g.R);H7.prototype.Ap=function(){for(var k=g.Z(this.Y),p=k.next();!p.done;p=k.next()){var t=this.T;p=t.indexOf(p.value);p>=0&&t.splice(p,1)}this.Y.length=0;g.R.prototype.Ap.call(this)};ow.prototype.w4=function(k){this.hotHashData=k;g.eM("yt.gcf.config.hotHashData",this.hotHashData||null)};var kh4=typeof TextEncoder!=="undefined"?new TextEncoder:null,OFi=kh4?function(k){return kh4.encode(k)}:function(k){k=g.m4(k); for(var p=new Uint8Array(k.length),t=0;t<p.length;t++)p[t]=k[t];return p};var $1i={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},E5M={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};Ew.prototype.zH=function(){return{version:this.version,args:this.args}};Sh.prototype.toString=function(){return this.topic};var p2a=g.hw("ytPubsub2Pubsub2Instance")||new g.Vv;g.Vv.prototype.subscribe=g.Vv.prototype.subscribe;g.Vv.prototype.unsubscribeByKey=g.Vv.prototype.Jo;g.Vv.prototype.publish=g.Vv.prototype.publish;g.Vv.prototype.clear=g.Vv.prototype.clear;g.eM("ytPubsub2Pubsub2Instance",p2a);var bc=g.hw("ytPubsub2Pubsub2SubscribedKeys")||{};g.eM("ytPubsub2Pubsub2SubscribedKeys",bc);var ND=g.hw("ytPubsub2Pubsub2TopicToKeys")||{};g.eM("ytPubsub2Pubsub2TopicToKeys",ND);var I8i=g.hw("ytPubsub2Pubsub2IsAsync")||{}; g.eM("ytPubsub2Pubsub2IsAsync",I8i);g.eM("ytPubsub2Pubsub2SkipSubKey",null);var mf=void 0,Ay=void 0;var u3q=g.rh("max_body_size_to_compress",5E5),l8S=g.rh("min_body_size_to_compress",500),Lw=!0,wX=0,nw=0,KxM=g.rh("compression_performance_threshold_lr",250),HF9=g.rh("slow_compressions_before_abandon_count",4),W3=!1,D1=new Map,v3=1,j3T=!0;g.E=Qr.prototype;g.E.writeThenSend=function(k,p){var t=this;p=p===void 0?{}:p;if(ic(this)&&this.T){var J={url:k,options:p,timestamp:this.now(),status:"NEW",sendCount:0};this.GH.set(J,this.GC).then(function(q){J.id=q;t.SE.FI()&&t.UD(J)}).catch(function(q){t.UD(J); P3(t,q)})}else this.sendFn(k,p)}; g.E.sendThenWrite=function(k,p,t){var J=this;p=p===void 0?{}:p;if(ic(this)&&this.T){var q={url:k,options:p,timestamp:this.now(),status:"NEW",sendCount:0};this.Gb&&this.Gb("nwl_skip_retry")&&(q.skipRetry=t);if(this.SE.FI()||this.Gb&&this.Gb("nwl_aggressive_send_then_write")&&!q.skipRetry){if(!q.skipRetry){var F=p.onError?p.onError:function(){}; p.onError=function(d,S){return g.Q(function(U){if(U.T==1)return g.n(U,J.GH.set(q,J.GC).catch(function(f){P3(J,f)}),2); F(d,S);g.CS(U)})}}this.sendFn(k,p,q.skipRetry)}else this.GH.set(q,this.GC).catch(function(d){J.sendFn(k,p,q.skipRetry); P3(J,d)})}else t=this.Gb&&this.Gb("nwl_skip_retry")&&t,this.sendFn(k,p,t)}; g.E.sendAndWrite=function(k,p){var t=this;p=p===void 0?{}:p;if(ic(this)&&this.T){var J={url:k,options:p,timestamp:this.now(),status:"NEW",sendCount:0},q=!1,F=p.onSuccess?p.onSuccess:function(){}; J.options.onSuccess=function(d,S){J.id!==void 0?t.GH.Uc(J.id,t.GC):q=!0;t.SE.hS&&t.Gb&&t.Gb("vss_network_hint")&&t.SE.hS(!0);F(d,S)}; this.sendFn(J.url,J.options,void 0,!0);this.GH.set(J,this.GC).then(function(d){J.id=d;q&&t.GH.Uc(J.id,t.GC)}).catch(function(d){P3(t,d)})}else this.sendFn(k,p,void 0,!0)}; g.E.I5=function(){var k=this;if(!ic(this))throw Error("IndexedDB is not supported: throttleSend");this.Y||(this.Y=this.Af.Hj(function(){var p;return g.Q(function(t){if(t.T==1)return g.n(t,k.GH.h3("NEW",k.GC),2);if(t.T!=3)return p=t.Y,p?g.n(t,k.UD(p),3):(k.Rl(),t.return());k.Y&&(k.Y=0,k.I5());g.CS(t)})},this.Wx))}; g.E.Rl=function(){this.Af.KU(this.Y);this.Y=0}; g.E.UD=function(k){var p=this,t;return g.Q(function(J){switch(J.T){case 1:if(!ic(p))throw Error("IndexedDB is not supported: immediateSend");if(k.id===void 0){J.oY(2);break}return g.n(J,p.GH.K26(k.id,p.GC),3);case 3:(t=J.Y)||p.m3(Error("The request cannot be found in the database."));case 2:if(p.GD(k,p.DK)){J.oY(4);break}p.m3(Error("Networkless Logging: Stored logs request expired age limit"));if(k.id===void 0){J.oY(5);break}return g.n(J,p.GH.Uc(k.id,p.GC),5);case 5:return J.return();case 4:k.skipRetry|| (k=oXe(p,k));if(!k){J.oY(0);break}if(!k.skipRetry||k.id===void 0){J.oY(8);break}return g.n(J,p.GH.Uc(k.id,p.GC),8);case 8:p.sendFn(k.url,k.options,!!k.skipRetry),g.CS(J)}})}; g.E.GD=function(k,p){k=k.timestamp;return this.now()-k>=p?!1:!0}; g.E.zD=function(){var k=this;if(!ic(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.GH.h3("QUEUED",this.GC).then(function(p){p&&!k.GD(p,k.O_)?k.Af.Hj(function(){return g.Q(function(t){if(t.T==1)return p.id===void 0?t.oY(2):g.n(t,k.GH.dg(p.id,k.GC),2);k.zD();g.CS(t)})}):k.SE.FI()&&k.I5()})};var Gp;var cmL={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470, fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491, castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var ttR={},Nhu=g.OT("ServiceWorkerLogsDatabase",{Sn:(ttR.SWHealthLog={f5:1},ttR),shared:!0,upgrade:function(k,p){p(1)&&g.w6(g.D4(k,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Rw={},C6M=0;var B3;eh.prototype.requestComplete=function(k,p){p&&(this.Y=!0);k=this.removeParams(k);this.T.get(k)||this.T.set(k,p)}; eh.prototype.isEndpointCFR=function(k){k=this.removeParams(k);return(k=this.T.get(k))?!1:k===!1&&this.Y?!0:null}; eh.prototype.removeParams=function(k){return k.split("?")[0]}; eh.prototype.removeParams=eh.prototype.removeParams;eh.prototype.isEndpointCFR=eh.prototype.isEndpointCFR;eh.prototype.requestComplete=eh.prototype.requestComplete;eh.getInstance=hy;g.r(aw,g.Hg);g.E=aw.prototype;g.E.FI=function(){return this.T.FI()}; g.E.hS=function(k){this.T.T=k}; g.E.Uh=function(){var k=window.navigator.onLine;return k===void 0?!0:k}; g.E.fJ=function(){this.Y=!0}; g.E.listen=function(k,p){return this.T.listen(k,p)}; g.E.L4=function(k){k=XL(this.T,k);k.then(function(p){g.TQ("use_cfr_monitor")&&hy().requestComplete("generate_204",p)}); return k}; aw.prototype.sendNetworkCheckRequest=aw.prototype.L4;aw.prototype.listen=aw.prototype.listen;aw.prototype.enableErrorFlushing=aw.prototype.fJ;aw.prototype.getWindowStatus=aw.prototype.Uh;aw.prototype.networkStatusHint=aw.prototype.hS;aw.prototype.isNetworkAvailable=aw.prototype.FI;aw.getInstance=VN9;g.r(g.MD,g.Hg);g.MD.prototype.FI=function(){var k=g.hw("yt.networkStatusManager.instance.isNetworkAvailable");return k?k.bind(this.Y)():!0}; g.MD.prototype.hS=function(k){var p=g.hw("yt.networkStatusManager.instance.networkStatusHint").bind(this.Y);p&&p(k)}; g.MD.prototype.L4=function(k){var p=this,t;return g.Q(function(J){t=g.hw("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(p.Y);return g.TQ("skip_network_check_if_cfr")&&hy().isEndpointCFR("generate_204")?J.return(new Promise(function(q){var F;p.hS(((F=window.navigator)==null?void 0:F.onLine)||!0);q(p.FI())})):t?J.return(t(k)):J.return(!0)})};var gX;g.r(uc,Qr);uc.prototype.writeThenSend=function(k,p){p||(p={});p=jh(k,p);g.MI()||(this.T=!1);Qr.prototype.writeThenSend.call(this,k,p)}; uc.prototype.sendThenWrite=function(k,p,t){p||(p={});p=jh(k,p);g.MI()||(this.T=!1);Qr.prototype.sendThenWrite.call(this,k,p,t)}; uc.prototype.sendAndWrite=function(k,p){p||(p={});p=jh(k,p);g.MI()||(this.T=!1);Qr.prototype.sendAndWrite.call(this,k,p)}; uc.prototype.awaitInitialization=function(){return this.N.promise};var vXi=g.B9.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.eM("ytNetworklessLoggingInitializationOptions",vXi);g.Ow.prototype.isReady=function(){!this.config_&&Wxe()&&(this.config_=g.Fs());return!!this.config_};var J4q,xZ,p0;J4q=g.B9.ytPubsubPubsubInstance||new g.Vv;xZ=g.B9.ytPubsubPubsubSubscribedKeys||{};p0=g.B9.ytPubsubPubsubTopicToKeys||{};g.k5=g.B9.ytPubsubPubsubIsSynchronous||{};g.Vv.prototype.subscribe=g.Vv.prototype.subscribe;g.Vv.prototype.unsubscribeByKey=g.Vv.prototype.Jo;g.Vv.prototype.publish=g.Vv.prototype.publish;g.Vv.prototype.clear=g.Vv.prototype.clear;g.eM("ytPubsubPubsubInstance",J4q);g.eM("ytPubsubPubsubTopicToKeys",p0);g.eM("ytPubsubPubsubIsSynchronous",g.k5); g.eM("ytPubsubPubsubSubscribedKeys",xZ);var P6j={};g.r(yP,g.R);yP.prototype.append=function(k){if(!this.Y)throw Error("This does not support the append operation");k=k.KE();this.KE().appendChild(k)}; g.r(Y5,yP);Y5.prototype.KE=function(){return this.T};g.r(XwM,g.R);var Tv=Date.now().toString();var mY={};var L0=Symbol("injectionDeps");WS.prototype.toString=function(){return"InjectionToken("+this.name+")"}; eaM.prototype.resolve=function(k){return k instanceof Di?vS(this,k.key,[],!0):vS(this,k,[])};var cS;var wO=window;var Gv=g.TQ("web_enable_lifecycle_monitoring")&&i7()!==0,jYu=g.TQ("web_enable_lifecycle_monitoring");gXM.prototype.cancel=function(){for(var k=g.Z(this.T),p=k.next();!p.done;p=k.next())p=p.value,p.jobId===void 0||p.X0||this.scheduler.KU(p.jobId),p.X0=!0;this.Y.resolve()};g.E=IN.prototype;g.E.install=function(k){this.plugins.push(k);return this}; g.E.uninstall=function(){var k=this;g.nS.apply(0,arguments).forEach(function(p){p=k.plugins.indexOf(p);p>-1&&k.plugins.splice(p,1)})}; g.E.transition=function(k,p){var t=this;Gv&&aTh(this.state);var J=this.transitions.find(function(F){return Array.isArray(F.from)?F.from.find(function(d){return d===t.state&&F.KF===k}):F.from===t.state&&F.KF===k}); if(J){this.Y&&(ud9(this.Y),this.Y=void 0);OYi(this,k,p);this.state=k;Gv&&QP(this.state);J=J.action.bind(this);var q=this.plugins.filter(function(F){return F[k]}).map(function(F){return F[k]}); J(lTi(this,q),p)}else throw Error("no transition specified from "+this.state+" to "+k);}; g.E.O$O=function(k){var p=g.nS.apply(1,arguments);g.OA();for(var t=g.Z(k),J=t.next(),q={};!J.done;q={OT:void 0},J=t.next())q.OT=J.value,TQ6(function(F){return function(){RN(F.OT.name);zv(function(){return F.OT.callback.apply(F.OT,g.m(p))}); BS(F.OT.name)}}(q))}; g.E.MhY=function(k){var p=g.nS.apply(1,arguments),t,J,q,F;return g.Q(function(d){d.T==1&&(g.OA(),t=g.Z(k),J=t.next(),q={});if(d.T!=3){if(J.done)return d.oY(0);q.CR=J.value;q.z4=void 0;F=function(S){return function(){RN(S.CR.name);var U=zv(function(){return S.CR.callback.apply(S.CR,g.m(p))}); tu(U)?S.z4=g.TQ("web_lifecycle_error_handling_killswitch")?U.then(function(){BS(S.CR.name)}):U.then(function(){BS(S.CR.name)},function(f){MN_(f); BS(S.CR.name)}):BS(S.CR.name)}}(q); TQ6(F);return q.z4?g.n(d,q.z4,3):d.oY(3)}q={CR:void 0,z4:void 0};J=t.next();return d.oY(2)})}; g.E.EW=function(k){var p=g.nS.apply(1,arguments),t=this,J=k.map(function(q){return{jX:function(){RN(q.name);zv(function(){return q.callback.apply(q,g.m(p))}); BS(q.name)}, priority:XB(t,q)}}); J.length&&(this.Y=new gXM(J))}; g.dT.Object.defineProperties(IN.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var hn;g.r(eW,IN);eW.prototype.X=function(k,p){var t=this;this.T=g.lk(0,function(){t.currentState==="application_navigating"&&t.transition("none")},5E3); k(p==null?void 0:p.event)}; eW.prototype.S=function(k,p){this.T&&(g.B8.KU(this.T),this.T=null);k(p==null?void 0:p.event)};var NZ=[];g.eM("yt.logging.transport.getScrapedGelPayloads",function(){return NZ});aN.prototype.storePayload=function(k,p){k=M1(k);this.store[k]?this.store[k].push(p):(this.Y={},this.store[k]=[p]);this.T++;g.TQ("more_accurate_gel_parser")&&(p=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(p));return k}; aN.prototype.smartExtractMatchingEntries=function(k){if(!k.keys.length)return[];for(var p=u7(this,k.keys.splice(0,1)[0]),t=[],J=0;J<p.length;J++)this.store[p[J]]&&k.sizeLimit&&(this.store[p[J]].length<=k.sizeLimit?(t.push.apply(t,g.m(this.store[p[J]])),delete this.store[p[J]]):t.push.apply(t,g.m(this.store[p[J]].splice(0,k.sizeLimit))));this.T-=t.length;(k==null?0:k.sizeLimit)&&t.length<(k==null?void 0:k.sizeLimit)&&(k.sizeLimit-=t.length,t.push.apply(t,g.m(this.smartExtractMatchingEntries(k)))); return t}; aN.prototype.extractMatchingEntries=function(k){k=u7(this,k);for(var p=[],t=0;t<k.length;t++)this.store[k[t]]&&(p.push.apply(p,g.m(this.store[k[t]])),delete this.store[k[t]]);this.T-=p.length;return p}; aN.prototype.getSequenceCount=function(k){k=u7(this,k);for(var p=0,t=0;t<k.length;t++){var J=void 0;p+=((J=this.store[k[t]])==null?void 0:J.length)||0}return p}; aN.prototype.getSequenceCount=aN.prototype.getSequenceCount;aN.prototype.extractMatchingEntries=aN.prototype.extractMatchingEntries;aN.prototype.smartExtractMatchingEntries=aN.prototype.smartExtractMatchingEntries;aN.prototype.storePayload=aN.prototype.storePayload;var YAu=g.rh("initial_gel_batch_timeout",2E3),ym_=g.rh("gel_queue_timeout_max_ms",6E4),Tuu=g.rh("gel_min_batch_size",5),tz=void 0,v9h=new l7,LJ6=new l7,Nui=new l7,bGi=new l7,ol,S3=!0,bR=1,O3=new Map,dt=g.B9.ytLoggingTransportTokensToCttTargetIds_||{};g.eM("ytLoggingTransportTokensToCttTargetIds_",dt);var $K=g.B9.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.eM("ytLoggingTransportTokensToJspbCttTargetIds_",$K);var x5={},HYq=!1;var YK=g.B9.ytLoggingGelSequenceIdObj_||{};g.eM("ytLoggingGelSequenceIdObj_",YK);var $vu=[];var eLe,sV=g.B9.ytLoggingDocDocumentNonce_;sV||(sV=g.Zi(16),g.eM("ytLoggingDocDocumentNonce_",sV));eLe=sV;var RLS={EM:0,xM6:1,cMr:2,dQ:3,UMy:4,bK0:5,Q9b:6,SHARE:7,i5G:8,PLy:9,FKY:10,hRT:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var wzT=1;g.E=rt.prototype;g.E.getAsJson=function(){var k={};this.T.trackingParams!==void 0?k.trackingParams=this.T.trackingParams:(k.veType=this.T.veType,this.T.veCounter!==void 0&&(k.veCounter=this.T.veCounter),this.T.elementIndex!==void 0&&(k.elementIndex=this.T.elementIndex));this.T.dataElement!==void 0&&(k.dataElement=this.T.dataElement.getAsJson());this.T.youtubeData!==void 0&&(k.youtubeData=this.T.youtubeData);this.T.isCounterfactual&&(k.isCounterfactual=!0);return k}; g.E.getAsJspb=function(){var k=new vi;this.T.trackingParams!==void 0?k.setTrackingParams(this.T.trackingParams):(this.T.veType!==void 0&&zh(k,2,Uf(this.T.veType)),this.T.veCounter!==void 0&&zh(k,6,Uf(this.T.veCounter)),this.T.elementIndex!==void 0&&zh(k,3,Uf(this.T.elementIndex)),this.T.isCounterfactual&&zh(k,5,dx(!0)));if(this.T.dataElement!==void 0){var p=this.T.dataElement.getAsJspb();dB(k,vi,7,p)}this.T.youtubeData!==void 0&&dB(k,jQL,8,this.T.jspbYoutubeData);return k}; g.E.toString=function(){return JSON.stringify(this.getAsJson())}; g.E.isClientVe=function(){return!this.T.trackingParams&&!!this.T.veType}; g.E.getLoggingDirectives=function(){return this.T.loggingDirectives};g.eM("yt_logging_screen.getRootVeType",G2u);g.eM("yt_logging_screen.getCurrentCsn",g.mP);g.eM("yt_logging_screen.getCttAuthInfo",Vt);g.eM("yt_logging_screen.setCurrentScreen",hL9);var g9w="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var p7h=[{tL:function(k){return"Cannot read property '"+k.key+"'"}, oH:{Error:[{Gh:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Gh:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Gh:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Gh:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{Gh:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Gh:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Gh:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{tL:function(k){return"Cannot call '"+k.key+"'"}, oH:{TypeError:[{Gh:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Gh:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Gh:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Gh:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Gh:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {Gh:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{tL:function(k){return k.key+" is not defined"}, oH:{ReferenceError:[{Gh:/(.*) is not defined/,groups:["key"]},{Gh:/Can't find variable: (.*)/,groups:["key"]}]}}];var OGq={jn:[],Wb:[{callback:uaM,weight:500}]};var De;var iR=new g.Vv;var tYw=new Set,xI9=0,qTj=0,opM=0,kEw=[],FDL=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Ep6=new g.V2("parallelCommand");var f4h=new g.V2("performOnceCommand");var Uvh=new g.V2("serialCommand");var PB=void 0;var okn=g.Z(PQT({},"Z39Sdf"));okn.next();okn.next();var qf4=g.Z(PQT(null,"qqrkLd"));qf4.next();qf4.next();g.r(X_,Ew);var GyS=new Sh("screen-created",X_),ON=[],N60=Zz_,KV=0,BB=new Map,zD=new Map,e3=new Map;g.pc(g.o$,g.R);g.E=g.o$.prototype;g.E.subscribe=function(k,p,t){return this.MO()?0:this.eb.subscribe(k,p,t)}; g.E.unsubscribe=function(k,p,t){return this.MO()?!1:this.eb.unsubscribe(k,p,t)}; g.E.Jo=function(k){return this.MO()?!1:this.eb.Jo(k)}; g.E.publish=function(k,p){return this.MO()?!1:this.eb.publish.apply(this.eb,arguments)}; g.E.bY=function(k,p){for(var t in k)this.subscribe(t,k[t],p)}; g.E.aX=function(k,p){for(var t in k)this.unsubscribe(t,k[t],p)};var S7i=16/9,Ln=[.25,.5,.75,1,1.25,1.5,1.75,2],F$J=Ln.concat([3,4,5,6,7,8,9,10,15]),$Kn=Ln.concat([2.5,3,3.5,4]),dKK=Ln.concat([2.5,3]);var CrL=1;g.r(g.FK,g.R);g.E=g.FK.prototype; g.E.createElement=function(k,p){p=p||k.K==="svg";var t=k.W,J=k.S6;if(p){var q=document.createElementNS("http://www.w3.org/2000/svg",k.K);g.l$&&(k.J||(k.J={}),k.J.focusable="false")}else q=g.kW(k.K);if(t){if(t=$3(this,q,"class",t))dP(this,q,"class",t),this.qW[t]=q}else if(J){t=g.Z(J);for(var F=t.next();!F.done;F=t.next())this.qW[F.value]=q;dP(this,q,"class",J.join(" "))}J=k.sy;t=k.U;if(J)p=$3(this,q,"child",J),p!==void 0&&q.appendChild(g.pe(p));else if(t)for(J=0,t=g.Z(t),F=t.next();!F.done;F=t.next())if(F= F.value)if(typeof F==="string")F=$3(this,q,"child",F),F!=null&&q.appendChild(g.pe(F));else if(F.element)q.appendChild(F.element);else{var d=F;F=this.createElement(d,p);q.appendChild(F);d.sF&&(d=qq(),F.id=d,F=document.createElementNS("http://www.w3.org/2000/svg","use"),F.setAttribute("class","ytp-svg-shadow"),F.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+d),on(q,F,J++))}if(k=k.J)for(p=q,J=g.Z(Object.keys(k)),t=J.next();!t.done;t=J.next())t=t.value,F=k[t],dP(this,p,t,typeof F==="string"? $3(this,p,t,F):F);return q}; g.E.Kp=function(k){return this.qW[k]}; g.E.QT=function(k,p){typeof p==="number"?on(k,this.element,p):k.appendChild(this.element)}; g.E.detach=function(){g.qa(this.element)}; g.E.update=function(k){for(var p=g.Z(Object.keys(k)),t=p.next();!t.done;t=p.next())t=t.value,this.updateValue(t,k[t])}; g.E.updateValue=function(k,p){(k=this.lm["{{"+k+"}}"])&&dP(this,k[0],k[1],p)}; g.E.Ap=function(){this.qW={};this.lm={};this.detach();g.R.prototype.Ap.call(this)};g.r(g.M,g.FK);g.E=g.M.prototype;g.E.HH=function(k,p){this.updateValue(p||"content",k)}; g.E.show=function(){this.NW||(g.S4(this.element,"display",""),this.NW=!0)}; g.E.hide=function(){this.NW&&(g.S4(this.element,"display","none"),this.NW=!1)}; g.E.rS=function(k){k?this.show():this.hide()}; g.E.Wp=function(k){this.X=k}; g.E.listen=function(k,p,t){return this.V(this.element,k,p,t)}; g.E.V=function(k,p,t,J){t=(0,g.H9)(t,J||this);J={target:k,type:p,listener:t};this.listeners.push(J);k.addEventListener(p,t);return J}; g.E.qP=function(k){var p=this;this.listeners.forEach(function(t,J){t===k&&(t=p.listeners.splice(J,1)[0],t.target.removeEventListener(t.type,t.listener))})}; g.E.focus=function(){this.element.focus()}; g.E.Ap=function(){for(;this.listeners.length;){var k=this.listeners.pop();k&&k.target.removeEventListener(k.type,k.listener)}g.FK.prototype.Ap.call(this)};g.r(g.EY,g.M);g.EY.prototype.subscribe=function(k,p,t){return this.IY.subscribe(k,p,t)}; g.EY.prototype.unsubscribe=function(k,p,t){return this.IY.unsubscribe(k,p,t)}; g.EY.prototype.Jo=function(k){return this.IY.Jo(k)}; g.EY.prototype.publish=function(k){return this.IY.publish.apply(this.IY,[k].concat(g.m(g.nS.apply(1,arguments))))};var Ekc=new WeakSet;g.r(SA,g.EY);g.E=SA.prototype;g.E.bind=function(k){this.k8||k.renderer&&this.init(k.id,k.renderer,{},k);return Promise.resolve()}; g.E.init=function(k,p,t){this.k8=k;this.element.setAttribute("id",this.k8);this.Jp&&g.JB(this.element,this.Jp);this.gy=p&&p.adRendererCommands;this.Oy=p.interaction;var J;((J=this.Oy)==null?0:J.onTap)&&g.JB(this.element,"ytp-ad-component--clickable");this.macros=t;this.B=p.trackingParams||null;var q,F;this.Z=(F=(q=g.e(p.rendererContext,fna))==null?void 0:q.loggingDirectives)!=null?F:p.loggingDirectives;this.B!=null?this.createServerVe(this.element,this.B):this.Z&&(k=this.element,p=this.Z,this.api.createServerVe(k, this,!0),this.api.setTrackingParams(k,p.trackingParams||null))}; g.E.clear=function(){}; g.E.hide=function(){g.EY.prototype.hide.call(this);(this.B!=null||this.Z)&&this.logVisibility(this.element,!1)}; g.E.show=function(){g.EY.prototype.show.call(this);if(!this.gs){this.gs=!0;var k=this.gy&&this.gy.impressionCommand,p,t=(p=this.Oy)==null?void 0:p.onFirstVisible;k?this.vM(k):t&&(k=GD(t))&&this.vM(k)}(this.B!=null||this.Z)&&this.logVisibility(this.element,!0)}; g.E.onClick=function(k){if((this.B||this.Z)&&!Ekc.has(k)){var p=this.element;this.api.hasVe(p)&&this.NW&&this.api.logClick(p,this.interactionLoggingClientData);Ekc.add(k)}var t=this.gy&&this.gy.clickCommand,J;p=(J=this.Oy)==null?void 0:J.onTap;if(t)p=this.qI(t),this.vM(p);else{if(J=p)a:{J=this.element;k=k.composedPath();k=g.Z(k);for(t=k.next();!t.done;t=k.next()){t=t.value;if(t===J)break;if(t.className.indexOf("ytp-ad-component--clickable")>=0){J=!1;break a}}J=!0}J&&(p=GD(p))&&this.vM(p)}}; g.E.qI=function(k){return k}; g.E.G$=function(k){var p=this.NO;p.Z=!0;p.Y=k.touches.length;p.T.isActive()&&(p.T.stop(),p.X=!0);k=k.touches;p.S=Raj(p,k)||k.length!=1;var t=k.item(0);p.S||!t?(p.B=Infinity,p.L=Infinity):(p.B=t.clientX,p.L=t.clientY);for(t=p.N.length=0;t<k.length;t++){var J=k.item(t);p.N.push(J.identifier)}}; g.E.wl=function(k){var p=this.NO;k=k.changedTouches.item(0);var t;if(t=MQ()){t=g.nc();var J="";if(luu())J=/Windows (?:NT|Phone) ([0-9.]+)/,J=(t=J.exec(t))?t[1]:"0.0";else if(MQ())J=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,J=(t=J.exec(t))&&t[1].replace(/_/g,".");else if(gq())J=/Mac OS X ([0-9_.]+)/,J=(t=J.exec(t))?t[1].replace(/_/g,"."):"10";else if(sR(g.nc(),"KaiOS"))J=/(?:KaiOS)\/(\S+)/i,J=(t=J.exec(t))&&t[1];else if(uei())J=/Android\s+([^\);]+)(\)|;)/,J=(t=J.exec(t))&&t[1];else if(hC()?Qa.platform=== "Chrome OS":GK("CrOS"))J=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,J=(t=J.exec(t))&&t[1];t=!(g.cW(J||"",8)>=0)}if(t||k&&Math.pow(k.clientX-p.B,2)+Math.pow(k.clientY-p.L,2)>25)p.C=!0}; g.E.v7=function(k){if(this.NO){var p=this.NO,t=k.changedTouches;t&&p.Z&&p.Y==1&&!p.C&&!p.X&&!p.S&&Raj(p,t)&&(p.gy=k,p.T.start());p.Y=k.touches.length;p.Y===0&&(p.Z=!1,p.C=!1,p.N.length=0);p.X=!1}}; g.E.vM=function(k){this.layoutId?this.VT.executeCommand(k,this.layoutId):g.nV(new g.hm("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.E.createServerVe=function(k,p){this.api.createServerVe(k,this);this.api.setTrackingParams(k,p)}; g.E.logVisibility=function(k,p){this.api.hasVe(k)&&this.api.logVisibility(k,p,this.interactionLoggingClientData)}; g.E.Ap=function(){this.clear(null);this.qP(this.pp);for(var k=g.Z(this.P0),p=k.next();!p.done;p=k.next())this.qP(p.value);g.EY.prototype.Ap.call(this)};g.r(vR,SA); vR.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);this.T=p;if(p.text==null&&p.icon==null)g.wt(Error("ButtonRenderer did not have text or an icon set."));else{switch(p.style||null){case "STYLE_UNKNOWN":k="ytp-ad-button-link";break;default:k=null}k!=null&&g.JB(this.element,k);p.text!=null&&(k=g.f1(p.text),g.WW(k)||(this.element.setAttribute("aria-label",k),this.N=new g.EY({K:"span",W:"ytp-ad-button-text",sy:k}),g.z(this,this.N),this.N.QT(this.element)));p.accessibilityData&&p.accessibilityData.accessibilityData&& p.accessibilityData.accessibilityData.label&&!g.WW(p.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",p.accessibilityData.accessibilityData.label);p.icon!=null&&(p=L1(p.icon,this.C),p!=null&&(this.Y=new g.EY({K:"span",W:"ytp-ad-button-icon",U:[p]}),g.z(this,this.Y)),this.S?on(this.element,this.Y.element,0):this.Y.QT(this.element))}}; vR.prototype.clear=function(){this.hide()}; vR.prototype.onClick=function(k){SA.prototype.onClick.call(this,k);k=g.Z(eNS(this));for(var p=k.next();!p.done;p=k.next())p=p.value,this.layoutId?this.VT.executeCommand(p,this.layoutId):g.nV(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.r(cR,g.R);cR.prototype.Ap=function(){this.Y&&g.Zf(this.Y);this.T.clear();n1=null;g.R.prototype.Ap.call(this)}; cR.prototype.register=function(k,p){p&&this.T.set(k,p)}; var n1=null;g.r(QF,SA); QF.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);k=p.hoverText||null;p=p.button&&g.e(p.button,g.vT)||null;p==null?g.nV(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,void 0,void 0,void 0,void 0,this.N),g.z(this,this.button),this.button.init(tt("button"),p,this.macros),k&&this.button.element.setAttribute("aria-label",g.f1(k)),this.button.QT(this.element),this.L&&!g.tB(this.button.element, "ytp-ad-clickable")&&g.JB(this.button.element,"ytp-ad-clickable"),this.N&&(g.JB(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.D("clean_player_style_fix_on_web")&&g.JB(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),k&&(this.Y=new g.EY({K:"div",W:"ytp-ad-hover-text-container"}),this.S&&(p=new g.EY({K:"div",W:"ytp-ad-hover-text-callout"}),p.QT(this.Y.element),g.z(this,p)),g.z(this,this.Y),this.Y.QT(this.element),p=wP(k),on(this.Y.element,p,0)), this.show())}; QF.prototype.hide=function(){this.button&&this.button.hide();this.Y&&this.Y.hide();SA.prototype.hide.call(this)}; QF.prototype.show=function(){this.button&&this.button.show();SA.prototype.show.call(this)};g.r(Gs,SA); Gs.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);t=(k=p.thumbnail)&&PR(k)||"";g.WW(t)?Math.random()<.01&&g.wt(Error("Found AdImage without valid image URL")):(this.T?g.S4(this.element,"backgroundImage","url("+t+")"):jO(this.element,{src:t}),jO(this.element,{alt:k&&k.accessibility&&k.accessibility.label||""}),p&&p.adRendererCommands&&p.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Gs.prototype.clear=function(){this.hide()};g.r(I$,SA);g.E=I$.prototype;g.E.hide=function(){SA.prototype.hide.call(this);this.N&&this.N.focus()}; g.E.show=function(){this.N=document.activeElement;SA.prototype.show.call(this);this.C.focus()}; g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);this.Y=p;p.dialogMessages||p.title!=null?p.confirmLabel==null?g.nV(Error("ConfirmDialogRenderer.confirmLabel was not set.")):p.cancelLabel==null?g.nV(Error("ConfirmDialogRenderer.cancelLabel was not set.")):gp0(this,p):g.nV(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.E.clear=function(){g.Df(this.T);this.hide()}; g.E.KW=function(){this.hide()}; g.E.bl=function(){var k=this.Y.cancelEndpoint;k&&(this.layoutId?this.VT.executeCommand(k,this.layoutId):g.nV(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.E.Pr=function(){var k=this.Y.confirmNavigationEndpoint||this.Y.confirmEndpoint;k&&(this.layoutId?this.VT.executeCommand(k,this.layoutId):g.nV(Error("Missing layoutId for confirm dialog.")));this.hide()};g.r(XK,SA);g.E=XK.prototype; g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);this.N=p;if(p.defaultText==null&&p.defaultIcon==null)g.nV(Error("ToggleButtonRenderer must have either text or icon set."));else if(p.defaultIcon==null&&p.toggledIcon!=null)g.nV(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(p.style){switch(p.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":k="ytp-ad-toggle-button-default-style";break;default:k=null}k!=null&&g.JB(this.C,k)}k={};p.defaultText? (t=g.f1(p.defaultText),g.WW(t)||(k.buttonText=t,this.api.G().experiments.Gb("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",t),this.api.G().experiments.Gb("fix_h5_toggle_button_a11y")&&this.Y.setAttribute("aria-label",t))):g.mS(this.j6,!1);p.defaultTooltip&&(k.tooltipText=p.defaultTooltip,this.T.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",p.defaultTooltip));p.defaultIcon?(t=L1(p.defaultIcon),this.updateValue("untoggledIconTemplateSpec",t),p.toggledIcon?(this.Y8= !0,t=L1(p.toggledIcon),this.updateValue("toggledIconTemplateSpec",t)):(g.mS(this.L,!0),g.mS(this.S,!1)),g.mS(this.T,!1)):g.mS(this.Y,!1);g.cQ(k)||this.update(k);p.isToggled&&(g.JB(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(p.isToggled));R$(this);this.V(this.element,"change",this.nm);this.show()}}; g.E.onClick=function(k){this.P0.length>0&&(this.toggleButton(!this.isToggled()),this.nm());SA.prototype.onClick.call(this,k)}; g.E.nm=function(){g.$E(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var k=g.Z(umS(this,this.isToggled())),p=k.next();!p.done;p=k.next())p=p.value,this.layoutId?this.VT.executeCommand(p,this.layoutId):g.nV(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);R$(this)}; g.E.clear=function(){this.hide()}; g.E.toggleButton=function(k){g.$E(this.C,"ytp-ad-toggle-button-toggled",k);this.T.checked=k;R$(this)}; g.E.isToggled=function(){return this.T.checked};g.r(BR,VB);BR.prototype.S=function(k){if(Array.isArray(k)){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())p=p.value,p instanceof l4i&&this.C(p)}};g.r(zs,SA);g.E=zs.prototype;g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);p.reasons?p.confirmLabel==null?g.nV(Error("AdFeedbackRenderer.confirmLabel was not set.")):(p.cancelLabel==null&&g.wt(Error("AdFeedbackRenderer.cancelLabel was not set.")),p.title==null&&g.wt(Error("AdFeedbackRenderer.title was not set.")),Hzw(this,p)):g.nV(Error("AdFeedbackRenderer.reasons were not set."))}; g.E.clear=function(){CG(this.S);CG(this.L);this.C.length=0;this.hide()}; g.E.hide=function(){this.T&&this.T.hide();this.Y&&this.Y.hide();SA.prototype.hide.call(this);this.N&&this.N.focus()}; g.E.show=function(){this.T&&this.T.show();this.Y&&this.Y.show();this.N=document.activeElement;SA.prototype.show.call(this);this.S.focus()}; g.E.Nq=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.E.K_8=function(){this.hide()}; eA.prototype.KE=function(){return this.T.element}; eA.prototype.getCommand=function(){return this.Y}; eA.prototype.isChecked=function(){return this.N.checked};g.r(ht,I$);ht.prototype.KW=function(k){I$.prototype.KW.call(this,k);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ht.prototype.bl=function(k){I$.prototype.bl.call(this,k);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ht.prototype.Pr=function(k){I$.prototype.Pr.call(this,k);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.r(a$,SA);g.E=a$.prototype; g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);this.S=p;if(p.dialogMessage==null&&p.title==null)g.nV(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{p.confirmLabel==null&&g.wt(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(k=p.closeOverlayRenderer&&g.e(p.closeOverlayRenderer,g.vT)||null)this.T=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.z(this,this.T),this.T.init(tt("button"),k,this.macros),this.T.QT(this.element);p.title&&(k=g.f1(p.title),this.updateValue("title",k));if(p.adReasons)for(k=p.adReasons,t=0;t<k.length;t++){var J=wP(k[t]);if(!g.WW(J.textContent)){var q=xY("LI");q.appendChild(J);this.qO.appendChild(q)}}else g.mS(this.qO,!1);p.dialogMessage&&(k=wP(p.dialogMessage,!0),this.W0.appendChild(k));p.confirmLabel&&(k=g.f1(p.confirmLabel),this.updateValue("confirmLabel",k));p.muteAdRenderer&&(p=g.e(p.muteAdRenderer,g.vT)||null)&& (k=p.navigationEndpoint&&g.e(p.navigationEndpoint,Y$L)||null,t=p.navigationEndpoint&&g.e(p.navigationEndpoint,q$n)||null,k==null&&t==null?g.wt(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(k?xvM(this,k):t&&kp_(this,t),this.N=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,["ytp-ad-info-dialog-mute-button"],"button",!0),g.z(this,this.N),this.N.init(tt("button"),p,this.macros),this.N.listen("click", this.HT0,this),this.N.QT(this.v0)));p36(this)}}; g.E.clear=function(){CG(this.L);this.hide()}; g.E.hide=function(){this.Y?this.Y.hide():this.C&&this.C.hide();this.T&&this.T.hide();this.N&&this.N.hide();SA.prototype.hide.call(this);this.Y8&&this.Y8.focus()}; g.E.show=function(){this.T&&this.T.show();this.N&&this.N.show();if(!this.RY){for(var k=g.Z(this.S&&this.S.impressionEndpoints||[]),p=k.next();!p.done;p=k.next())p=p.value,this.layoutId?this.VT.executeCommand(p,this.layoutId):g.nV(Error("Missing layoutId for ad info dialog."));this.RY=!0}this.Y8=document.activeElement;SA.prototype.show.call(this);this.L.focus()}; g.E.Id=function(){if(this.S&&this.S.confirmServiceEndpoint){var k=this.S.confirmServiceEndpoint;this.layoutId?this.VT.executeCommand(k,this.layoutId):g.nV(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()}; g.E.HT0=function(){var k=this.Y?this.Y:this.C;k&&!k.NW&&(this.hide(),k.show())};g.r(Mq,QF);Mq.prototype.init=function(k,p,t){QF.prototype.init.call(this,k,p,t);k=p.button&&g.e(p.button,g.vT)||null;k!=null&&(Ffi(this,k,t),this.api.D("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())}; Mq.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();QF.prototype.hide.call(this)}; Mq.prototype.show=function(){this.button&&this.button.show();QF.prototype.show.call(this)}; Mq.prototype.clear=function(){this.hide()};g.r(gP,SA); gP.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);this.T=p;this.isTemplated()||g.$W(this.element,UY(this.T));if(p.backgroundImage&&(k=(k=p.backgroundImage.thumbnail)?PR(k):"",t=(t=this.api.getVideoData(1))&&t.CI,k&&t&&(this.element.style.backgroundImage="url("+k+")",this.element.style.backgroundSize="100%"),p.style&&p.style.adTextStyle))switch(p.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(k=g.xT(p.targetId))&&this.element.setAttribute("data-tooltip-target-id",k); p&&p.adRendererCommands&&p.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()}; gP.prototype.isTemplated=function(){return this.T.isTemplated||!1}; gP.prototype.clear=function(){this.hide()};var NXe={seekableStart:0,seekableEnd:1,current:0};g.r(l3,SA);l3.prototype.clear=function(){this.dispose()};g.r(g.K1,g.R);g.E=g.K1.prototype;g.E.show=function(k){this.state!==1&&this.state!==2&&(this.state===4&&this.lk(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.T&&this.T()):this.element.NW||(HR(this,!0),this.state=1,k?this.delay.start(k):this.lk()))}; g.E.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.NW&&(HR(this,!0),this.state=4,this.delay.start(this.N)))}; g.E.lk=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:HR(this,!1);this.state=3;this.delay.start(this.Y);break;case 3:this.state=null;this.T&&this.T();break;case 4:this.element.hide();HR(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}}; g.E.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.lk()}; g.E.Ap=function(){this.element.MO()||this.element.element.removeAttribute("aria-hidden");g.R.prototype.Ap.call(this)};g.r(x3,l3);g.E=x3.prototype; g.E.init=function(k,p,t){l3.prototype.init.call(this,k,p,t);k=p.durationMilliseconds;typeof k==="number"&&k<0&&g.nV(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+k));this.B0&&(this.C?g.JB(this.Y.element,"modern-countdown-next-to-thumbnail"):g.JB(this.Y.element,"countdown-next-to-thumbnail"));k=p.durationMilliseconds;this.qO=k==null||k===0?this.T.BU():k;if(p.templatedCountdown)var J=p.templatedCountdown.templatedAdText;else p.staticPreview&&(J=p.staticPreview); this.N.init(tt("ad-text"),J,t);(J=this.api.getVideoData(1))&&J.CI&&p.thumbnail?this.S.init(tt("ad-image"),p.thumbnail,t):(this.Y8.hide(),this.C&&this.B0&&g.JB(this.N.element,"ytp-ad-preview-text-modern-postroll"))}; g.E.clear=function(){this.hide()}; g.E.hide=function(){this.Y.hide();this.N.hide();this.S.hide();OY(this);l3.prototype.hide.call(this)}; g.E.show=function(){jA(this);this.Y.show();this.N.show();this.S.show();l3.prototype.show.call(this)}; g.E.Yb=function(){this.hide()}; g.E.pI=function(){if(this.T!=null){var k=this.T.getProgressState();k!=null&&k.current!=null&&(k=1E3*k.current,!this.W0&&k>=this.qO?(this.j6.hide(),this.W0=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(k=Math.max(0,Math.ceil((this.qO-k)/1E3)),k!=this.v0&&(u3(this.N,{TIME_REMAINING:String(k)}),this.v0=k)))}};g.r(pa,l3);g.E=pa.prototype; g.E.init=function(k,p,t){l3.prototype.init.call(this,k,p,t);if(p.image&&p.image.thumbnail)if(p.headline)if(p.description)if((k=p.actionButton&&g.e(p.actionButton,g.vT))&&k.navigationEndpoint){var J=this.api.getVideoData(2);if(J!=null)if(p.image&&p.image.thumbnail){var q=p.image.thumbnail.thumbnails;q!=null&&q.length>0&&g.WW(g.xT(q[0].url))&&(q[0].url=J.profilePicture)}else g.wt(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(tt("ad-image"),p.image,t);this.S.init(tt("ad-text"), p.headline,t);this.C.init(tt("ad-text"),p.description,t);this.Y.init(tt("button"),k,t);t=Md(this.Y.element);at(this.Y.element,t+" This link opens in new tab");this.Y8=k.navigationEndpoint;this.api.BW()||this.show();this.api.G().D("enable_larger_flyout_cta_on_desktop")&&(this.Kp("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Kp("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Kp("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Kp("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Kp("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Kp("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.Y.element.classList.add("ytp-flyout-cta-action-button-large"),this.Y.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Kp("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.W2.bind(this));this.j6=p.startMs||0;jA(this)}else g.nV(Error("FlyoutCtaRenderer has no valid action button."));else g.nV(Error("FlyoutCtaRenderer has no description AdText."));else g.nV(Error("FlyoutCtaRenderer has no headline AdText."));else g.wt(Error("FlyoutCtaRenderer has no image."))}; g.E.onClick=function(k){l3.prototype.onClick.call(this,k);this.api.pauseVideo();!g.FI(this.Y.element,k.target)&&this.Y8&&(this.layoutId?this.VT.executeCommand(this.Y8,this.layoutId):g.nV(Error("Missing layoutId for flyout cta.")))}; g.E.pI=function(){if(this.T){var k=this.T.getProgressState();(k&&k.current||this.qO)&&1E3*k.current>=this.j6&&(OY(this),g.qN(this.element,"ytp-flyout-cta-inactive"),this.Y.element.removeAttribute("tabIndex"))}}; g.E.Yb=function(){this.clear()}; g.E.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.W2.bind(this))}; g.E.show=function(){this.Y&&this.Y.show();l3.prototype.show.call(this)}; g.E.hide=function(){this.Y&&this.Y.hide();l3.prototype.hide.call(this)}; g.E.W2=function(k){k=="hidden"?this.show():this.hide()};g.r(t5,SA);g.E=t5.prototype; g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);this.T=p;if(this.T.rectangle)for(k=this.T.likeButton&&g.e(this.T.likeButton,Cn),p=this.T.dislikeButton&&g.e(this.T.dislikeButton,Cn),this.N.init(tt("toggle-button"),k,t),this.Y.init(tt("toggle-button"),p,t),this.V(this.element,"change",this.er),this.C.show(100),this.show(),t=g.Z(this.T&&this.T.impressionCommands||[]),k=t.next();!k.done;k=t.next())k=k.value,this.layoutId?this.VT.executeCommand(k,this.layoutId):g.nV(Error("Missing layoutId for instream user sentiment."))}; g.E.clear=function(){this.hide()}; g.E.hide=function(){this.N.hide();this.Y.hide();SA.prototype.hide.call(this)}; g.E.show=function(){this.N.show();this.Y.show();SA.prototype.show.call(this)}; g.E.er=function(){zkM(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.zb("onYtShowToast",this.T.postMessageAction);this.C.hide()}; g.E.onClick=function(k){this.P0.length>0&&this.er();SA.prototype.onClick.call(this,k)};g.r(J5,g.R);g.E=J5.prototype;g.E.Ap=function(){this.reset();g.R.prototype.Ap.call(this)}; g.E.reset=function(){g.Df(this.C);this.S=!1;this.T&&this.T.stop();this.X.stop();this.N&&(this.N=!1,this.Z.play())}; g.E.start=function(){this.reset();this.C.V(this.Y,"mouseover",this.h6,this);this.C.V(this.Y,"mouseout",this.t6,this);this.gy&&(this.C.V(this.Y,"focusin",this.h6,this),this.C.V(this.Y,"focusout",this.t6,this));this.T?this.T.start():(this.S=this.N=!0,g.S4(this.Y,{opacity:this.L}))}; g.E.h6=function(){this.N&&(this.N=!1,this.Z.play());this.X.stop();this.T&&this.T.stop()}; g.E.t6=function(){this.S?this.X.start():this.T&&this.T.start()}; g.E.ib=function(){this.N||(this.N=!0,this.B.play(),this.S=!0)};var Swe=[new oZ("b.f_",!1,0),new oZ("j.s_",!1,2),new oZ("r.s_",!1,4),new oZ("e.h_",!1,6),new oZ("i.s_",!0,8),new oZ("s.t_",!1,10),new oZ("p.h_",!1,12),new oZ("s.i_",!1,14),new oZ("f.i_",!1,16),new oZ("a.b_",!1,18),new oZ("a.o_",!1),new oZ("g.o_",!1,22),new oZ("p.i_",!1,24),new oZ("p.m_",!1),new oZ("i.k_",!0,28),new oZ("n.k_",!0,20),new oZ("i.f_",!1),new oZ("a.s_",!0),new oZ("m.c_",!1),new oZ("n.h_",!1,26),new oZ("o.p_",!1)].reduce(function(k,p){k[p.Y]=p;return k},{});g.r(fa,l3);g.E=fa.prototype; g.E.init=function(k,p,t){l3.prototype.init.call(this,k,p,t);this.Y8=p;(this.j6=f1j(this))&&g.wt(Error("hasAdControlInClickCommands_ is true."));if(!p||g.cQ(p))g.nV(Error("SkipButtonRenderer was not specified or empty."));else if(!p.message||g.cQ(p.message))g.nV(Error("SkipButtonRenderer.message was not specified or empty."));else{k=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};p=L1(k);p==null?g.nV(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+k.iconType+".")): (this.C=new g.EY({K:"button",S6:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],U:[{K:"span",W:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",U:[p]}]}),g.z(this,this.C),this.C.QT(this.N.element),this.Y=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,"ytp-ad-skip-button-text"),this.S&&this.Y.element.classList.add("ytp-ad-skip-button-text-centered"),this.Y.init(tt("ad-text"),this.Y8.message,t),g.z(this,this.Y),on(this.C.element,this.Y.element, 0));var J=J===void 0?null:J;t=this.api.G();!(this.P0.length>0)&&t.Y&&(Om?0:"ontouchstart"in document.documentElement&&(Qq6()||TR()))&&(this.qP(this.pp),J&&this.qP(J),this.P0=[this.V(this.element,"touchstart",this.G$,this),this.V(this.element,"touchmove",this.wl,this),this.V(this.element,"touchend",this.v7,this)])}}; g.E.clear=function(){this.qO.reset();this.hide()}; g.E.hide=function(){this.N.hide();this.Y&&this.Y.hide();OY(this);l3.prototype.hide.call(this)}; g.E.onClick=function(k){if(this.C!=null){if(k){var p=k||window.event;p.returnValue=!1;p.preventDefault&&p.preventDefault()}var t;if(dDL(k,{contentCpn:((t=this.api.getVideoData(1))==null?void 0:t.clientPlaybackNonce)||""})===0)this.api.zb("onAbnormalityDetected");else if(l3.prototype.onClick.call(this,k),this.publish("j"),this.api.zb("onAdSkip"),this.W0||!this.j6)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.E.qI=function(k){if(!this.W0)return this.j6&&d3("SkipButton click commands not pruned while ALC exist"),k;var p,t=(p=g.e(k,g.bS))==null?void 0:p.commands;if(!t)return k;k=[];for(p=0;p<t.length;p++){var J=t[p];J.adLifecycleCommand&&UDh(J.adLifecycleCommand)||J.pingingEndpoint||J.adPingingEndpoint||k.push(J)}return{commandExecutorCommand:{commands:k}}}; g.E.show=function(){this.qO.start();this.N.show();this.Y&&this.Y.show();jA(this);l3.prototype.show.call(this);this.v0&&this.api.G().D("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}; g.E.Yb=function(){this.publish("k")}; g.E.pI=function(){};g.r(NO,l3);g.E=NO.prototype; g.E.init=function(k,p,t){l3.prototype.init.call(this,k,p,t);k=p&&p.preskipRenderer&&g.e(p.preskipRenderer,LJ)||{};(k=g.cQ(k)?null:k)?(this.S=k.durationMilliseconds!=null&&k.durationMilliseconds!==void 0?k.durationMilliseconds:5E3,this.Y=new x3(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.T,l_(this.api.G().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&A9(this.api.G())),this.Y.init(tt("preskip-component"),k,t),kM(this.Y),g.z(this,this.Y),this.Y.QT(this.element)): p.skipOffsetMilliseconds&&(this.S=p.skipOffsetMilliseconds);k=p&&p.skippableRenderer&&g.e(p.skippableRenderer,M9K)||{};k=g.cQ(k)?null:k;k==null?g.nV(Error("SkipButtonRenderer was not set in player response.")):(this.N=new fa(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.T,this.Y8),this.N.init(tt("skip-button"),k,t),g.z(this,this.N),this.N.QT(this.element),this.api.G().experiments.Gb("enable_skip_to_next_messaging")&&(p=g.xT(p.targetId))&&(t=this.N,t.C!=null&&(t.v0=!0,t.C.element.setAttribute("data-tooltip-target-id", p),t.C.element.setAttribute("data-tooltip-target-fixed",""))),this.show())}; g.E.show=function(){this.C&&this.N?this.N.show():this.Y&&this.Y.show();jA(this);l3.prototype.show.call(this)}; g.E.Yb=function(){}; g.E.clear=function(){this.Y&&this.Y.clear();this.N&&this.N.clear();OY(this);l3.prototype.hide.call(this)}; g.E.hide=function(){this.Y&&this.Y.hide();this.N&&this.N.hide();OY(this);l3.prototype.hide.call(this)}; g.E.pI=function(){1E3*this.T.getProgressState().current>=this.S&&bwi(this,!0)};g.r(yj,vR);yj.prototype.init=function(k,p,t){vR.prototype.init.call(this,k,p,t);k=!1;p.text!=null&&(k=g.f1(p.text),k=!g.WW(k));k?p.navigationEndpoint==null?g.wt(Error("No visit advertiser clickthrough provided in renderer,")):p.style!=="STYLE_UNKNOWN"?g.wt(Error("Button style was not a link-style type in renderer,")):this.show():g.wt(Error("No visit advertiser text was present in the renderer."))};g.r(YM,SA); YM.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);k=p.text;g.WW(UY(k))?g.wt(Error("SimpleAdBadgeRenderer has invalid or empty text")):(k&&k.text&&(p=k.text,this.N&&!this.Y&&(p=this.api.G(),p=k.text+" "+(p&&p.Y?"\u2022":"\u00b7")),p={text:p,isTemplated:k.isTemplated},k.style&&(p.style=k.style),k.targetId&&(p.targetId=k.targetId),k=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),k.init(tt("simple-ad-badge"),p,t),k.QT(this.element),g.z(this,k)),this.show())}; YM.prototype.clear=function(){this.hide()};g.r(TU,Jt);g.r(r3,g.o$);g.E=r3.prototype;g.E.BU=function(){return this.durationMs}; g.E.stop=function(){this.T&&this.Jj.qP(this.T)}; g.E.OF=function(k){this.Y={seekableStart:0,seekableEnd:this.durationMs/1E3,current:k.current};this.publish("h")}; g.E.getProgressState=function(){return this.Y}; g.E.H7=function(k){g.Uy(k,2)&&this.publish("g")};g.r(Zy,g.o$);g.E=Zy.prototype;g.E.BU=function(){return this.durationMs}; g.E.start=function(){this.T||(this.T=!0,this.wf.start())}; g.E.stop=function(){this.T&&(this.T=!1,this.wf.stop())}; g.E.OF=function(){this.PR+=100;var k=!1;this.PR>this.durationMs&&(this.PR=this.durationMs,this.wf.stop(),k=!0);this.Y={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.PR/1E3};this.publish("h");k&&this.publish("g")}; g.E.getProgressState=function(){return this.Y};g.r(mM,l3);g.E=mM.prototype;g.E.init=function(k,p,t){l3.prototype.init.call(this,k,p,t);var J;if(p==null?0:(J=p.templatedCountdown)==null?0:J.templatedAdText){k=p.templatedCountdown.templatedAdText;if(!k.isTemplated){g.wt(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.Y=new gP(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);this.Y.init(tt("ad-text"),k,{});this.Y.QT(this.element);g.z(this,this.Y)}this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){OY(this);l3.prototype.hide.call(this)}; g.E.Yb=function(){this.hide()}; g.E.pI=function(){if(this.T!=null){var k=this.T.getProgressState();if(k!=null&&k.current!=null&&this.Y){var p=this.T instanceof r3?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:k.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof Zy?k.seekableEnd:this.api.getDuration(2,!1);k=k.current;var t,J,q=((t=this.api.getVideoData())==null?0:(J=t.u1)==null?0:J.call(t))?Math.max(p-k,0):p-k;u3(this.Y,{FORMATTED_AD_DURATION_REMAINING:String(g.Ca(q)), TIME_REMAINING:String(Math.ceil(q))})}}}; g.E.show=function(){jA(this);l3.prototype.show.call(this)};g.r(Vj,gP);Vj.prototype.onClick=function(k){gP.prototype.onClick.call(this,k);this.api.onAdUxClicked(this.componentType)};g.r(Dy,SA);Dy.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(k=p.content){g.$W(this.element,k);var t,J;p=((t=p.interaction)==null?void 0:(J=t.accessibility)==null?void 0:J.label)||k;this.element.setAttribute("aria-label",p)}else g.nV(Error("AdSimpleAttributedString does not have text content"))}; Dy.prototype.clear=function(){this.hide()}; Dy.prototype.onClick=function(k){SA.prototype.onClick.call(this,k)};g.r(sy,SA); sy.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});(k=p.label)&&k.content&&!g.WW(k.content)?(this.adBadgeText.init(tt("ad-simple-attributed-string"),new WA(k)),(p=p.adPodIndex)&&p.content&&!g.WW(p.content)&&(this.T=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),this.T.QT(this.element),g.z(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(tt("ad-simple-attributed-string"),new WA(p))),this.element.classList.add(this.Y?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.nV(Error("No label is returned in AdBadgeViewModel."))}; sy.prototype.show=function(){this.adBadgeText.show();var k;(k=this.T)==null||k.show();SA.prototype.show.call(this)}; sy.prototype.hide=function(){this.adBadgeText.hide();var k;(k=this.T)==null||k.hide();SA.prototype.hide.call(this)};g.r(La,SA); La.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});(k=p.adPodIndex)&&k.content&&!g.WW(k.content)&&(this.T=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),this.T.QT(this.element),g.z(this,this.T),this.T.init(tt("ad-simple-attributed-string"),new WA(k)),(this.api.G().D("clean_player_style_fix_on_web")?p.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.Y||p.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.D("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; La.prototype.show=function(){var k;(k=this.T)==null||k.show();SA.prototype.show.call(this)}; La.prototype.hide=function(){var k;(k=this.T)==null||k.hide();SA.prototype.hide.call(this)};g.r(vA,SA); vA.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(p!=null&&p.text){var t;if(((t=p.text)==null?0:t.content)&&!g.WW(p.text.content)){this.T=new g.EY({K:"div",W:"ytp-ad-disclosure-banner__text",sy:p.text.content});g.z(this,this.T);this.T.QT(this.element);var J,q;k=((J=p.interaction)==null?void 0:(q=J.accessibility)==null?void 0:q.label)||p.text.content;this.element.setAttribute("aria-label",k);var F;if((F=p.interaction)==null?0:F.onTap)this.Y=new g.EY({K:"div",W:"ytp-ad-disclosure-banner__chevron",U:[g.Y3()]}), g.z(this,this.Y),this.Y.QT(this.element);this.show()}}else g.nV(Error("No banner text found in AdDisclosureBanner."))}; vA.prototype.clear=function(){this.hide()};cA.prototype.getLength=function(){return this.T-this.Y};g.r(w3,g.EY);w3.prototype.OF=function(){var k=this.Y.getProgressState(),p=k.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.G().D("show_preskip_progress_bar_for_skippable_ads")&&(p=this.N?this.N/1E3:k.seekableEnd);k=na(new cA(k.seekableStart,p),k.current,0);this.progressBar.style.width=k*100+"%"}; w3.prototype.onStateChange=function(){g.nl(this.api.G())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.Y.subscribe("h",this.OF,this),this.OF()):this.T!==-1&&(this.hide(),this.Y.Jo(this.T),this.T=-1))};g.r(iS,SA); iS.prototype.init=function(k,p,t,J){SA.prototype.init.call(this,k,p,t);t=!0;if(p.skipOrPreviewRenderer){var q=p.skipOrPreviewRenderer;k=g.e(q,ka);q=g.e(q,LJ);k?(q=new NO(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.Y,this.Y8),q.QT(this.L),q.init(tt("skip-button"),k,this.macros),g.z(this,q)):q&&!this.api.G().experiments.Gb("disable_ad_preview_for_instream_ads")&&(k=new x3(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.Y,!1),k.QT(this.L),k.init(tt("ad-preview"),q, this.macros),kM(k),g.z(this,k));if(k=g.e(p.skipOrPreviewRenderer,ka)){t=!1;var F=k.skipOffsetMilliseconds}}p.brandInteractionRenderer&&(k=p.brandInteractionRenderer.brandInteractionRenderer,q=new t5(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),q.QT(this.qO),q.init(tt("instream-user-sentiment"),k,this.macros),g.z(this,q));if(k=g.e(p,RSL))if(k=g.e(k,RSL))q=new pa(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.Y,!!p.showWithoutLinkedMediaLayout),g.z(this,q), q.QT(this.S),q.init(tt("flyout-cta"),k,this.macros);k=(this.api.G().D("disable_ad_duration_remaining_for_instream_video_ads")||p.adPodIndex!==void 0)&&!1;J=J&&J.videoAdDurationSeconds;if(p.adBadgeRenderer){var d=p.adBadgeRenderer;q=g.e(d,aM);q!=null?(d=new sy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,k),g.z(this,d),d.QT(this.T),d.init(tt("ad-badge"),q,this.macros),this.N=d.element):(q=d.simpleAdBadgeRenderer,q==null&&(q={text:{text:"Ad",isTemplated:!1}}),d=new YM(this.api,this.layoutId, this.interactionLoggingClientData,this.VT,!0),g.z(this,d),d.QT(this.T),d.init(tt("simple-ad-badge"),q,this.macros))}p.adPodIndex&&(q=g.e(p.adPodIndex,jLa),q!=null&&(t=new La(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,t),g.z(this,t),t.QT(this.T),t.init(tt("ad-pod-index"),q)));p.adDurationRemaining&&!p.showWithoutLinkedMediaLayout&&(t=p.adDurationRemaining.adDurationRemainingRenderer,t==null&&(t={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}), J=new mM(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.Y,J,k),g.z(this,J),J.QT(this.T),J.init(tt("ad-duration-remaining"),t,this.macros),k&&J.element.classList.add("ytp-ad-duration-remaining-autohide"));p.adInfoRenderer&&(J=g.e(p.adInfoRenderer,sx))&&(t=new Mq(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.element,void 0,k),g.z(this,t),this.api.G().D("enable_ad_pod_index_autohide")&&this.N!==null?this.T.insertBefore(t.element,this.N.nextSibling):t.QT(this.T), t.init(tt("ad-info-hover-text-button"),J,this.macros));p.visitAdvertiserRenderer&&(t=g.e(p.visitAdvertiserRenderer,g.vT))&&(q=Yw_(this)&&this.C?this.C:this.T)&&(J=new yj(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,J),J.QT(q),J.init(tt("visit-advertiser"),t,this.macros),eF(J.element),t=Md(J.element),at(J.element,t+" This link opens in new tab"));!(J=this.api.G())||g.vs(J)||J.controlsType!="3"&&!J.disableOrganicUi||(F=new w3(this.api,this.Y,F,k),F.QT(this.RY),g.z(this, F));p.adDisclosureBannerRenderer&&(p=g.e(p.adDisclosureBannerRenderer,lAc))&&(F=new vA(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),F.QT(this.j6),F.init(tt("ad-disclosure-banner"),p),g.z(this,F));this.api.G().D("enable_updated_html5_player_focus_style")&&g.JB(this.element,"ytp-ad-player-overlay-updated-focus-style");k&&this.api.G().Y&&this.T.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; iS.prototype.clear=function(){this.hide()};IZ.prototype.set=function(k,p,t){t=t!==void 0?Date.now()+t:void 0;this.T.set(k,p,t)}; IZ.prototype.get=function(k){return this.T.get(k)}; IZ.prototype.remove=function(k){this.T.remove(k)};var zU=null,eV=null,h5=null,mDe=null;g.eM("yt.www.ads.eventcache.getLastCompanionData",function(){return zU}); g.eM("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.eM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return eV}); g.eM("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return h5}); g.eM("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return mDe});var Wfj=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);aZ.prototype.handleResponse=function(k,p){if(!p)throw Error("request needs to be passed into ConsistencyService");var t,J;p=((t=p.XO.context)==null?void 0:(J=t.request)==null?void 0:J.consistencyTokenJars)||[];var q;(k=(q=k.responseContext)==null?void 0:q.consistencyTokenJar)&&this.replace(p,k)}; aZ.prototype.replace=function(k,p){k=g.Z(k);for(var t=k.next();!t.done;t=k.next())delete this.T[t.value.encryptedTokenJarContents];sw_(this,p)};var Sfa=window.location.hostname.split(".").slice(-2).join("."),vy;g3.getInstance=function(){vy=g.hw("yt.clientLocationService.instance");vy||(vy=new g3,g.eM("yt.clientLocationService.instance",vy));return vy}; g.E=g3.prototype; g.E.setLocationOnInnerTubeContext=function(k){k.client||(k.client={});if(this.T)k.client.locationInfo||(k.client.locationInfo={}),k.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),k.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),k.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),k.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)k.client.locationPlayabilityToken=this.N|| this.locationPlayabilityToken}; g.E.handleResponse=function(k){var p;k=(p=k.responseContext)==null?void 0:p.locationPlayabilityToken;k!==void 0&&(this.locationPlayabilityToken=k,this.T=void 0,g.M9("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=MO(this))&&this.localStorage.set("yt-location-playability-token",k,15552E3):g.i6("YT_CL",JSON.stringify({loctok:k}),15552E3,Sfa,!0))}; g.E.clearLocationPlayabilityToken=function(k){k==="TVHTML5"?(this.localStorage=MO(this))&&this.localStorage.remove("yt-location-playability-token"):g.Pw("YT_CL");this.N=void 0;this.Y!==-1&&(clearTimeout(this.Y),this.Y=-1)}; g.E.getCurrentPositionFromGeolocation=function(){var k=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var p=!1,t=1E4;g.M9("INNERTUBE_CLIENT_NAME")==="MWEB"&&(p=!0,t=15E3);return new Promise(function(J,q){navigator.geolocation.getCurrentPosition(function(F){k.T=F;J(F)},function(F){q(F)},{enableHighAccuracy:p, maximumAge:0,timeout:t})})}; g.E.createUnpluggedLocationInfo=function(k){var p={};k=k.coords;if(k==null?0:k.latitude)p.latitudeE7=Math.floor(k.latitude*1E7);if(k==null?0:k.longitude)p.longitudeE7=Math.floor(k.longitude*1E7);if(k==null?0:k.accuracy)p.locationRadiusMeters=Math.round(k.accuracy);return p}; g.E.createLocationInfo=function(k){var p={};k=k.coords;if(k==null?0:k.latitude)p.latitudeE7=Math.floor(k.latitude*1E7);if(k==null?0:k.longitude)p.longitudeE7=Math.floor(k.longitude*1E7);return p};g.E=w3_.prototype;g.E.contains=function(k){return Object.prototype.hasOwnProperty.call(this.T,k)}; g.E.get=function(k){if(this.contains(k))return this.T[k]}; g.E.set=function(k,p){this.T[k]=p}; g.E.zS=function(){return Object.keys(this.T)}; g.E.remove=function(k){delete this.T[k]};lS.prototype.getModuleId=function(k){return k.serviceId.getModuleId()}; lS.prototype.get=function(k){a:{var p=this.mappings.get(k.toString());switch(p.type){case "mapping":k=p.value;break a;case "factory":p=p.value();this.mappings.set(k.toString(),{type:"mapping",value:p});k=p;break a;default:k=Ft(p)}}return k}; lS.prototype.registerService=function(k,p){this.mappings.set(k.toString(),{type:"mapping",value:p});return k}; new lS;var cy={},iwj=(cy.WEB_UNPLUGGED="^unplugged/",cy.WEB_UNPLUGGED_ONBOARDING="^unplugged/",cy.WEB_UNPLUGGED_OPS="^unplugged/",cy.WEB_UNPLUGGED_PUBLIC="^unplugged/",cy.WEB_CREATOR="^creator/",cy.WEB_KIDS="^kids/",cy.WEB_EXPERIMENTS="^experiments/",cy.WEB_MUSIC="^music/",cy.WEB_REMIX="^music/",cy.WEB_MUSIC_EMBEDDED_PLAYER="^music/",cy.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",cy);Ka.prototype.X=function(k,p,t){p=p===void 0?{}:p;t=t===void 0?dX:t;var J={context:g.uS(k.clickTrackingParams,!1,this.C)};var q=this.Y(k);if(q){this.T(J,q,p);var F;p=g.Oy(this.N());(q=(F=g.e(k.commandMetadata,g.ZO))==null?void 0:F.apiUrl)&&(p=q);F=v_u(GQ(p));k=Object.assign({},{command:k},void 0);J={input:F,Vk:IY(F),XO:J,config:k};J.config.YP?J.config.YP.identity=t:J.config.YP={identity:t};return J}g.nV(new g.hm("Error: Failed to create Request from Command.",k))}; g.dT.Object.defineProperties(Ka.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.r(HA,Ka);g.r(xM,HA);xM.prototype.X=function(){return{input:"/getDatasyncIdsEndpoint",Vk:IY("/getDatasyncIdsEndpoint","GET"),XO:{}}}; xM.prototype.N=function(){return[]}; xM.prototype.Y=function(){}; xM.prototype.T=function(){};var UKJ={},fiq=(UKJ.GET_DATASYNC_IDS=jV(xM),UKJ);var nn={},fYS=(nn["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",nn["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",nn["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",nn["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",nn["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",nn["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",nn["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", nn["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",nn["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",nn["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",nn["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",nn["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",nn["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",nn["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",nn["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", nn["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",nn["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",nn["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",nn["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",nn["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",nn["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",nn["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", nn["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",nn.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",nn["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",nn["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",nn["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",nn["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",nn["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",nn["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", nn["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",nn["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",nn["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",nn["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",nn["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",nn["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",nn["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",nn["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",nn["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",nn["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",nn.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",nn["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",nn["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",nn["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",nn["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",nn["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",nn["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",nn["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",nn["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",nn["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",nn["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",nn["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",nn["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",nn["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",nn["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",nn["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",nn["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",nn["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",nn["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",nn["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",nn["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",nn["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", nn["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",nn["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",nn["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",nn["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",nn["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",nn["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",nn["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",nn["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",nn["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", nn["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",nn["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",nn["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",nn["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",nn["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",nn["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",nn["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",nn["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", nn),wb={},BXS=(wb.auto_search="LATENCY_ACTION_AUTO_SEARCH",wb.ad_to_ad="LATENCY_ACTION_AD_TO_AD",wb.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",wb.app_startup="LATENCY_ACTION_APP_STARTUP",wb.browse="LATENCY_ACTION_BROWSE",wb.cast_splash="LATENCY_ACTION_CAST_SPLASH",wb.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",wb.channels="LATENCY_ACTION_CHANNELS",wb.chips="LATENCY_ACTION_CHIPS",wb.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",wb.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", wb.editor="LATENCY_ACTION_EDITOR",wb.embed="LATENCY_ACTION_EMBED",wb.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",wb.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",wb.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",wb.explore="LATENCY_ACTION_EXPLORE",wb.favorites="LATENCY_ACTION_FAVORITES",wb.home="LATENCY_ACTION_HOME",wb.inboarding="LATENCY_ACTION_INBOARDING",wb.library="LATENCY_ACTION_LIBRARY",wb.live="LATENCY_ACTION_LIVE",wb.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",wb.management="LATENCY_ACTION_MANAGEMENT",wb.mini_app="LATENCY_ACTION_MINI_APP_PLAY",wb.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",wb.onboarding="LATENCY_ACTION_ONBOARDING",wb.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",wb.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",wb.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",wb.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",wb.prebuffer="LATENCY_ACTION_PREBUFFER", wb.prefetch="LATENCY_ACTION_PREFETCH",wb.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",wb.profile_switcher="LATENCY_ACTION_LOGIN",wb.projects="LATENCY_ACTION_PROJECTS",wb.reel_watch="LATENCY_ACTION_REEL_WATCH",wb.results="LATENCY_ACTION_RESULTS",wb.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",wb.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",wb.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",wb.review="LATENCY_ACTION_REVIEW",wb.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", wb.search_ui="LATENCY_ACTION_SEARCH_UI",wb.search_suggest="LATENCY_ACTION_SUGGEST",wb.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",wb.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",wb.seek="LATENCY_ACTION_PLAYER_SEEK",wb.settings="LATENCY_ACTION_SETTINGS",wb.store="LATENCY_ACTION_STORE",wb.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",wb.tenx="LATENCY_ACTION_TENX",wb.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",wb.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",wb.watch="LATENCY_ACTION_WATCH", wb.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",wb["watch,watch7"]="LATENCY_ACTION_WATCH",wb["watch,watch7_html5"]="LATENCY_ACTION_WATCH",wb["watch,watch7ad"]="LATENCY_ACTION_WATCH",wb["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",wb.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",wb.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",wb.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",wb.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",wb.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", wb.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",wb.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",wb.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",wb);Object.assign(BXS,fYS);g.r(ZP,Ew);var kv6=new Sh("aft-recorded",ZP);var b8K=g.B9.ytLoggingGelSequenceIdObj_||{};g.eM("ytLoggingGelSequenceIdObj_",b8K);var me=g.B9.ytLoggingLatencyUsageStats_||{};g.eM("ytLoggingLatencyUsageStats_",me);C4.prototype.tick=function(k,p,t,J){Vw(this,"tick_"+k+"_"+p)||g.qv("latencyActionTicked",{tickName:k,clientActionNonce:p},{timestamp:t,cttAuthInfo:J})}; C4.prototype.info=function(k,p,t){var J=Object.keys(k).join("");Vw(this,"info_"+J+"_"+p)||(k=Object.assign({},k),k.clientActionNonce=p,g.qv("latencyActionInfo",k,{cttAuthInfo:t}))}; C4.prototype.jspbInfo=function(k,p,t){for(var J="",q=0;q<n8(k).length;q++)n8(k)[q]!==void 0&&(J=q===0?J.concat(""+q):J.concat("_"+q));if(!Vw(this,"info_"+J+"_"+p)){T9(k,2,p);t={cttAuthInfo:t};p=g.TQ("jspb_sparse_encoded_pivot")?new Bi([{}]):new Bi;k!=null?DY(k,Pi):k=void 0;pX(p,7,UWS,k);t=t===void 0?{}:t;k=!1;g.M9("ytLoggingEventsDefaultDisabled",!1)&&(k=!0);k=k?null:g.Ow;t=t===void 0?{}:t;J=Math.round(t.timestamp||(0,g.V9)());YB(p,1,J<Number.MAX_SAFE_INTEGER?J:0);J=new R3;t.lact?YB(J,1,isFinite(t.lact)? t.lact:-1):t.timestamp?YB(J,1,-1):(q=VP(),YB(J,1,isFinite(q)?q:-1));if(t.sequenceGroup&&!g.TQ("web_gel_sequence_info_killswitch")){q=t.sequenceGroup;var F=n90(q),d=new Gy;YB(d,2,F);T9(d,1,q);dB(J,Gy,3,d);t.endOfSequence&&delete b8K[t.sequenceGroup]}dB(p,R3,33,J);(t.sendIsolatedPayload?$I6:dIq)("latencyActionInfo",{endpoint:"log_event",payload:p,cttAuthInfo:t.cttAuthInfo,dangerousLogToVisitorSession:t.dangerousLogToVisitorSession},k)}}; C4.prototype.span=function(k,p,t){var J=Object.keys(k).join("");Vw(this,"span_"+J+"_"+p)||(k.clientActionNonce=p,g.qv("latencyActionSpan",k,{cttAuthInfo:t}))};var ix=window,WF=ix.performance||ix.mozPerformance||ix.msPerformance||ix.webkitPerformance||new zju;var xD9=!1,a1M=!1,Qw={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},tW0=(0,g.H9)(WF.clearResourceTimings||WF.webkitClearResourceTimings||WF.mozClearResourceTimings||WF.msClearResourceTimings||WF.oClearResourceTimings||g.Uo,WF);var NxJ=window;NxJ.ytcsi&&(NxJ.ytcsi.infoGel=g.IF,NxJ.ytcsi.tick=Gg);g.r(g.eR,g.hm);var rn0="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),C76=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var VWq=new WS("INNERTUBE_TRANSPORT_TOKEN");g.r(gk,HA);gk.prototype.N=function(){return Ohq}; gk.prototype.Y=function(k){return g.e(k,ihL)||void 0}; gk.prototype.T=function(k,p,t){t=t===void 0?{}:t;p.channelIds&&(k.channelIds=p.channelIds);p.siloName&&(k.siloName=p.siloName);p.params&&(k.params=p.params);t.botguardResponse&&(k.botguardResponse=t.botguardResponse);t.feature&&(k.clientFeature=t.feature)}; g.dT.Object.defineProperties(gk.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.r(uF,HA);uF.prototype.N=function(){return K8R}; uF.prototype.Y=function(k){return g.e(k,w4q)||void 0}; uF.prototype.T=function(k,p){p.channelIds&&(k.channelIds=p.channelIds);p.siloName&&(k.siloName=p.siloName);p.params&&(k.params=p.params)}; g.dT.Object.defineProperties(uF.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});var y4n=new WS("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.r(lF,HA);lF.prototype.N=function(){return MDa}; lF.prototype.Y=function(k){return g.e(k,Zhc)||g.e(k,CPR)||g.e(k,rja)}; lF.prototype.T=function(k,p){p.serializedShareEntity&&(k.serializedSharedEntity=p.serializedShareEntity);if(p.clientParamIdentifier){var t;if((t=this.S)==null?0:t.T(p.clientParamIdentifier))k.clientParams=this.S.Y(p.clientParamIdentifier)}}; lF[L0]=[y4n];g.r(jR,HA);jR.prototype.N=function(){return uYJ}; jR.prototype.Y=function(k){return g.e(k,dWS)||void 0}; jR.prototype.T=function(k,p,t){k.feedbackTokens=[];p.feedbackToken&&k.feedbackTokens.push(p.feedbackToken);if(p=p.cpn||t.cpn)k.feedbackContext={cpn:p};k.isFeedbackTokenUnencrypted=!!t.is_feedback_token_unencrypted;k.shouldMerge=!1;t.extra_feedback_tokens&&(k.shouldMerge=!0,k.feedbackTokens=k.feedbackTokens.concat(t.extra_feedback_tokens))}; g.dT.Object.defineProperties(jR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.r(O_,HA);O_.prototype.N=function(){return lnc}; O_.prototype.Y=function(k){return g.e(k,n2R)||void 0}; O_.prototype.T=function(k,p){p.params&&(k.params=p.params);p.secondaryParams&&(k.secondaryParams=p.secondaryParams)};g.r(K4,HA);K4.prototype.N=function(){return jT4}; K4.prototype.Y=function(k){return g.e(k,v2L)||void 0}; K4.prototype.T=function(k,p){p.actions&&(k.actions=p.actions);p.params&&(k.params=p.params);p.playlistId&&(k.playlistId=p.playlistId)};g.r(HF,HA);HF.prototype.N=function(){return g2a}; HF.prototype.Y=function(k){return g.e(k,AjS)}; HF.prototype.T=function(k,p,t){t=t===void 0?{}:t;p.serializedShareEntity&&(k.serializedSharedEntity=p.serializedShareEntity);t.includeListId&&(k.includeListId=!0)};var YfC=new WS("FETCH_FN_TOKEN"),Txc=new WS("PARSE_FN_TOKEN");var r4n=new WS("NETWORK_SLI_TOKEN");kU.prototype.fetch=function(k,p,t){var J=this,q,F,d;return g.Q(function(S){q=Ani(J,k,p);d=(F=J.Y)!=null?F:fetch;return S.return(d(q).then(function(U){return J.handleResponse(U,t)}).catch(function(U){g.wt(U); if((t==null?0:t.GJ)&&U instanceof g.eR&&U.errorType===1)return Promise.reject(U)}))})}; kU.prototype.handleResponse=function(k,p){var t,J=(t=this.N)!=null?t:JSON.parse;t=k.text().then(function(q){if((p==null?0:p.Byp)&&k.ok)return QTe(p.Byp,q);q=q.replace(")]}'","");if((p==null?0:p.GJ)&&q)try{var F=J(q)}catch(S){throw new g.eR(1,"JSON parsing failed after fetch");}var d;return(d=F)!=null?d:J(q)}); k.redirected||k.ok?this.T&&this.T.success():(this.T&&this.T.aPp(),t=t.then(function(q){g.wt(new g.hm("Error: API fetch failed",k.status,k.url,q));return Object.assign({},q,{errorMetadata:{status:k.status}})})); return t}; kU[L0]=[new Di(r4n),new Di(YfC),new Di(Txc)];var m1M=new WS("NETWORK_MANAGER_TOKEN");var pQ;oI.prototype.bindInnertubeChallengeFetcher=function(k){this.T.bicf(k)}; oI.prototype.registerChallengeFetchedCallback=function(k){this.T.bcr(k)}; oI.prototype.getLatestChallengeResponse=function(){return this.T.blc()};var sN9=[],qP=!1;Sx.prototype.C=function(){var k=this;return g.Q(function(p){return p.T==1?g.n(p,Promise.race([k.T,null]),2):p.return(!!p.Y)})}; Sx.prototype.N=function(k,p,t){var J=this,q,F,d;return g.Q(function(S){J.T===null&&v5_(J,Eh(J));q=!1;F={};d=function(){var U,f,b;return g.Q(function(N){switch(N.T){case 1:return g.n(N,J.T,2);case 2:U=N.Y;F.challenge=U.challenge;if(!U.UX){"c1a"in U.OU&&(F.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");N.oY(3);break}f=Object.assign({},{c:U.challenge,e:k},p);g.Aw(N,4);q=!0;if(g.TQ("attbs")&&!g.TQ("attmusi")){b=U.UX.VR({pH:f});N.oY(6);break}return g.n(N,U.UX.snapshot({pH:f}),7);case 7:b=N.Y;case 6:b?F.webResponse= b:F.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Vi(N,3);break;case 4:g.W9(N),F.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(k==="ENGAGEMENT_TYPE_PLAYBACK"){var y=U.OU,Y={};y.c6a&&(Y.reportingStatus=String(Number(y.c)^Fy()));y.c6b&&(Y.broadSpectrumDetectionResult=String(Number(y.c)^Number(g.M9("CATSTAT",0))));F.adblockReporting=Y}return N.return(F)}})}; return S.return(Promise.race([d(),i0L(t,function(){var U=Object.assign({},F);q&&(U.error="ATTESTATION_ERROR_VM_TIMEOUT");return U})]))})};var GvM=["APP_STATE","PI"];var Yqi=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,244189,236208,7282,124448,196088,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,225031,177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628, 205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380, 128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651, 133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657, 132972,133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688, 200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923, 109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122, 62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236, 14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,240553,95101,75240,27039,68823,21537,83464,75707,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227, 135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,233985,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842, 62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146, 174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746, 93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];fQ.prototype.getState=function(){return this.store.getState()}; fQ.prototype.dispatch=function(k){return this.store.dispatch(k)}; fQ.prototype.subscribe=function(k){return this.store.subscribe(k)}; fQ.prototype.replaceReducer=function(k){return this.store.replaceReducer(k)}; fQ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.E=NP.prototype;g.E.getLength=function(){return this.totalLength}; g.E.append=function(k){if(R20(this,k)){var p=this.sx[this.sx.length-1];this.sx[this.sx.length-1]=new Uint8Array(p.buffer,p.byteOffset,p.length+k.length);TM(this)}else this.sx.push(k);this.totalLength+=k.length}; g.E.split=function(k){for(var p=new NP,t=new NP,J=g.Z(this.sx),q=J.next();!q.done;q=J.next())q=q.value,k>=q.length?(p.append(q),k-=q.length):k?(p.append(new Uint8Array(q.buffer,q.byteOffset,k)),t.append(new Uint8Array(q.buffer,q.byteOffset+k,q.length-k)),k=0):t.append(q);return{lZ:p,EU:t}}; g.E.isFocused=function(k){return k>=this.CU&&k<this.CU+this.sx[this.MM].length}; g.E.focus=function(k){if(!this.isFocused(k)){for(k<this.CU&&TM(this);this.CU+this.sx[this.MM].length<=k&&this.MM<this.sx.length;)this.CU+=this.sx[this.MM].length,this.MM+=1;this.Ax=void 0}}; g.E.BL=function(k,p){return k+p<=this.totalLength}; g.E.EX=function(k,p){k=k===void 0?0:k;p=p===void 0?-1:p;if(!this.totalLength||!p)return new DataView(new ArrayBuffer(0));p<0&&(p=this.totalLength-k);this.focus(k);if(!rK(this,k,p)){var t=this.MM,J=this.CU;this.focus(k+p-1);J=new Uint8Array(this.CU+this.sx[this.MM].length-J);for(var q=0,F=t;F<=this.MM;F++)J.set(this.sx[F],q),q+=this.sx[F].length;this.sx.splice(t,this.MM-t+1,J);TM(this);this.focus(k)}t=this.sx[this.MM];return new DataView(t.buffer,t.byteOffset+k-this.CU,p)}; g.E.xN=function(k,p){k=this.EX(k===void 0?0:k,p===void 0?-1:p);return new Uint8Array(k.buffer,k.byteOffset,k.byteLength)}; g.E.getUint8=function(k){this.focus(k);return this.sx[this.MM][k-this.CU]};var m_,CQ,Wd;g.ye=function(){function k(J){for(var q=new Uint8Array(J.length),F=0;F<J.length;F++)q[F]=J[F];return q} function p(J){return new Uint8Array(J)} var t=new Uint8Array([1]);return t.length===1&&t[0]===1?p:k}(); m_=Array(1024);CQ=window.TextDecoder?new TextDecoder:void 0;Wd=window.TextEncoder?new TextEncoder:void 0;for(var li9={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2, fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261, markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30, offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76, votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},uBw={},Z8A=g.Z(Object.entries(li9)),C5q=Z8A.next();!C5q.done;C5q=Z8A.next()){var A4J=g.Z(C5q.value),mKS=A4J.next().value,VtQ=A4J.next().value,W$a=mKS,DKa=VtQ;DKa&&(uBw[DKa]=W$a)};var KYq=!1,dL,Er,SK,Ur,ff;g.r(bN,g.R); bN.prototype.encrypt=function(k){var p=k.length;k=new Uint8Array(k.buffer.slice(k.byteOffset,k.byteOffset+p));for(var t=this.Y,J=0;J<p&&this.T<16;)k[J++]^=t[this.T++];for(var q=p-(p-J)%16;J<q;)H0w(this),k[J++]^=t[0],k[J++]^=t[1],k[J++]^=t[2],k[J++]^=t[3],k[J++]^=t[4],k[J++]^=t[5],k[J++]^=t[6],k[J++]^=t[7],k[J++]^=t[8],k[J++]^=t[9],k[J++]^=t[10],k[J++]^=t[11],k[J++]^=t[12],k[J++]^=t[13],k[J++]^=t[14],k[J++]^=t[15];if(J<p)for(H0w(this),this.T=0;J<p;)k[J++]^=t[this.T++];return k};var yO=!1;(function(){function k(J){for(var q=new Uint8Array(J.length),F=0;F<J.length;F++)q[F]=J[F];return q} function p(J){return new Uint8Array(J)} var t=new Uint8Array([1]);return t.length===1&&t[0]===1?p:k})(); var Yi;g.rL.prototype.encrypt=function(k,p){var t=this,J,q;return g.Q(function(F){if(F.T==1){J=TX();if(!J)return F.return(t.T(k,p));g.Aw(F,3);return g.n(F,t.Y(k,p,J),5)}if(F.T!=3)return F.return(F.Y);q=g.W9(F);g.wt(q);yO=!0;return F.return(t.T(k,p))})}; g.rL.prototype.Y=function(k,p,t){var J=this,q,F;return g.Q(function(d){switch(d.T){case 1:if(J.X){d.oY(2);break}return g.n(d,t.importKey("raw",J.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:J.X=d.Y;case 2:return q={name:"AES-CTR",counter:p,length:128},g.n(d,t.encrypt(q,J.X,k),4);case 4:return F=d.Y,d.return(new Uint8Array(F))}})}; g.rL.prototype.T=function(k,p){this.N||(this.N=new bN(this.C));N0(this.N,p);return this.N.encrypt(k)}; g.rL.prototype.decrypt=function(k,p){return this.encrypt(k,p)}; g.Z6.prototype.encrypt=function(k,p){this.T||(this.T=new bN(this.Y));N0(this.T,p);return this.T.encrypt(k)}; g.Z6.prototype.decrypt=function(k,p){return this.encrypt(k,p)};Cf.prototype.reset=function(){kD_(this);this.update(this.N)}; Cf.prototype.update=function(k){var p=0,t=k.length;this.C+=t;this.Y&&this.Y+t>=64&&(this.S.set(k.subarray(0,64-this.Y),this.Y),p=64-this.Y,this.Y=0,x1M(this,this.S,0));for(;p+64<=t;p+=64)x1M(this,k,p);p<t&&(k=k.subarray(p),this.S.set(k,this.Y),this.Y+=k.length)}; var A$=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804, 4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var sKC;sKC={};g.L$n=g.OT("yt-idb-pref-storage",{Sn:(sKC.prefs={f5:1},sKC),shared:!1,upgrade:function(k,p){p(1)&&g.w6(g.D4(k,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")}, version:1});var QL;QL={};g.vkR=(QL.INVALID_ENCODER_VERSION="Invalid encoder version",QL.KEY_CREATION_FAILED="Failed to create encoder key",QL.UNKNOWN_DECODE_ERROR="Failed to decode PES data",QL.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",QL.WRONG_DATA_TYPE="Encoder cannot process the data type",QL);g.o0("","downloadsPageViewConfigurationEntity");g.o0("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.Py=g.o0("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.o0("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.o0("SMART_DOWNLOADS_ENABLED","settingEntity");g.o0("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var rz0=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.E=VO.prototype;g.E.initialize=function(k,p,t,J){this.NA=J;if(k.program){var q;J=(q=k.interpreterUrl)!=null?q:null;if(k.interpreterSafeScript)q=h86(k.interpreterSafeScript);else{var F;q=(F=k.interpreterScript)!=null?F:null}k.interpreterSafeUrl&&(J=CF(k.interpreterSafeUrl).toString());Ttw(this,q,J,k.program,p,t)}else g.wt(Error("Cannot initialize botguard without program"))}; g.E.isInitialized=function(){return this.OJ()}; g.E.getState=function(){return this.state}; g.E.isLoading=function(){return this.state===2}; g.E.invoke=function(k){k=k===void 0?{}:k;return this.OJ()?this.l5({pH:k}):null}; g.E.dispose=function(){this.qe(null);this.cH(8)}; g.E.OJ=function(){return!!this.UX}; g.E.l5=function(k){return this.UX.VR(k)}; g.E.qe=function(k){g.ER(this.UX);this.UX=k}; g.E.cH=function(k){this.state=k};g.r(D6,VO);D6.prototype.qe=function(k){var p;(p=WV())==null||p.bgvma();k?(p={bgvma:k.dispose.bind(k),bgvmb:k.snapshot.bind(k),bgvmc:k.VR.bind(k)},g.eM("yt.abuse.playerAttLoader",p),g.eM("yt.abuse.playerAttLoaderRun",function(t){return k.snapshot(t)})):(g.eM("yt.abuse.playerAttLoader",null),g.eM("yt.abuse.playerAttLoaderRun",null))}; D6.prototype.OJ=function(){return!!WV()}; D6.prototype.l5=function(k){return WV().bgvmc(k)};sr.prototype.dP=function(){return"crossDeviceProgressCommand"}; sr.prototype.BY=function(k){if(k.crossDevicePings){var p=[];k=g.Z(k.crossDevicePings);for(var t=k.next();!t.done;t=k.next())p.push({baseUrl:t.value.baseUrl});g.qv("crossDeviceNotificationTransfer",{crossDevicePings:p})}};Lf.prototype.dP=function(){return"muteAdEndpoint"}; Lf.prototype.BY=function(k,p){switch(k.type){case "SKIP":ZVw(this.Ga,this.KK,p)}};vV.prototype.dP=function(){return"openPopupAction"}; vV.prototype.BY=function(){};cV.prototype.dP=function(){return"pingingEndpoint"}; cV.prototype.BY=function(){};var slh={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.r(Azj,g.R);var Cjh={P6S:"FINAL",FFO:"AD_BREAK_LENGTH",qeO:"AD_CPN",Ser:"AH",MPy:"AD_MT",OHy:"ASR",mXb:"AW",l56:"NM",XRS:"NX",f5h:"NY",WVy:"CONN",v4h:"CPN",gNy:"DV_VIEWABILITY",jtO:"ERRORCODE",SZy:"ERROR_MSG",OUG:"EI",wlh:"GOOGLE_VIEWABILITY",gdp:"IAS_VIEWABILITY",VtO:"LACT",kap:"LIVE_TARGETING_CONTEXT",pnh:"I_X",LXy:"I_Y",y_y:"MT",YUT:"MIDROLL_POS",ELG:"MIDROLL_POS_MS",A_y:"MOAT_INIT",s9Y:"MOAT_VIEWABILITY",c_0:"P_H",vLS:"PV_H",kd6:"PV_W",wh6:"P_W",HoS:"TRIGGER_TYPE",FE0:"SDKV",WEO:"SLOT_POS",H5h:"SURVEY_LOCAL_TIME_EPOCH_S", GSy:"SURVEY_ELAPSED_MS",A1:"VIS",OKp:"VIEWABILITY",mQS:"VED",Rnp:"VOL",l18:"WT",uO8:"YT_ERROR_CODE"};iN.prototype.dP=function(){return"urlEndpoint"}; iN.prototype.BY=function(k,p,t){var J=this.mS.get(),q=Vf(J.Y.get(),p);q?p=Wh(J,bdi(q),q,void 0,void 0,t):(d3("Trying to ping from an unknown layout",void 0,void 0,{layoutId:p}),p={});p=Object.assign({},p);ac(this.T,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(t=UE(this.Ex,2))&&(p.AD_CPN=t.clientPlaybackNonce);p=g.c8(k.url,p);g.BA(p,void 0,void 0,void 0,k.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};QO.prototype.get=function(){return this.value}; g.r(PV,QO);PV.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.r(GX,QO);GX.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}; g.r(I0,QO);I0.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.r(XG,QO);XG.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"}; g.r(R0,QO);R0.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.r(BV,QO);BV.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.r(zX,QO);zX.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.r(eK,QO);eK.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.r(h$,QO);h$.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"}; g.r(a0,QO);a0.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.r(M0,QO);M0.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.r(gL,QO);gL.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.r(uN,QO);uN.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.r(lN,QO);lN.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.r(jK,QO);jK.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"}; g.r(Or,QO);Or.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"}; g.r(Kf,QO);Kf.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"}; g.r(HV,QO);HV.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.r(xi,QO);xi.prototype.getType=function(){return"metadata_type_content_cpn"}; g.r(k0,QO);k0.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.r(po,QO);po.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"}; g.r(to,QO);to.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.r(Jo,QO);Jo.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"}; g.r(oA,QO);oA.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"}; g.r(qG,QO);qG.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.r(FU,QO);FU.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.r($0,QO);$0.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.r(dA,QO);dA.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.r(Ea,QO);Ea.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.r(S$,QO);S$.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.r(Ua,QO);Ua.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.r(fo,QO);fo.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.r(bd,QO);bd.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.r(NG,QO);NG.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.r(y7,QO);y7.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.r(Y0,QO);Y0.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.r(Tn,QO);Tn.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.r(rA,QO);rA.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.r(Z$,QO);Z$.prototype.getType=function(){return"metadata_type_cue_point"}; g.r(Co,QO);Co.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.r(Ao,QO);Ao.prototype.getType=function(){return"metadata_type_player_vars"}; g.r(m3,QO);m3.prototype.getType=function(){return"metadata_type_preload_player_vars"}; g.r(V7,QO);V7.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.r(WX,QO);WX.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.r(D$,QO);D$.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.r(sa,QO);sa.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.r(Lo,QO);Lo.prototype.getType=function(){return"metadata_type_dai"}; g.r(vX,QO);vX.prototype.getType=function(){return"metadata_type_ad_intro"}; g.r(cX,QO);cX.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.r(no,QO);no.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.r(wA,QO);wA.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.r(id,QO);id.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.r(Q7,QO);Q7.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.r(PX,QO);PX.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.r(Gn,QO);Gn.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.r(IA,QO);IA.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.r(XU,QO);XU.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.r(RA,QO);RA.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"}; g.r(BX,QO);BX.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.r(zn,QO);zn.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.r(e$,QO);e$.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.r(ho,QO);ho.prototype.getType=function(){return"metadata_type_active_view_traffic_type"}; g.r(aA,QO);aA.prototype.getType=function(){return"metadata_type_active_view_identifier"}; g.r(MG,QO);MG.prototype.getType=function(){return"metadata_type_ssdai_ads_config"}; g.r(gA,QO);gA.prototype.getType=function(){return"metadata_type_eligible_for_ssap"}; g.r(ud,QO);ud.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}; g.r(ld,QO);ld.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"}; g.r(j$,QO);j$.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var Bt_=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var jlS=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.r(x0,rq);g.r(K,rq);new Promise(function(){});var nK_=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),vKL=new Map([["normal",{mJ:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",V9:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{mJ:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",V9:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{mJ:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",V9:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{mJ:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",V9:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{mJ:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",V9:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{mJ:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",V9:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{mJ:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",V9:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.r(SC,g.R);g.E=SC.prototype;g.E.Py=function(k,p){return this.T.Py(k,p)}; g.E.Ix=function(k,p){this.Xd.ZN("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",k,p);for(var t=g.Z(this.Y),J=t.next();!J.done;J=t.next())J.value.Ix(k,p)}; g.E.Sy=function(k){if(yE(this.T,k)){this.Xd.Ay("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",k);this.T.Sy(k);for(var p=g.Z(this.Y),t=p.next();!t.done;t=p.next())t.value.Sy(k);PRL(this,k)}}; g.E.Mh=function(k){if(yE(this.T,k)){this.Xd.Ay("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",k);this.T.Mh(k);for(var p=g.Z(this.Y),t=p.next();!t.done;t=p.next())t.value.Mh(k);yE(this.T,k)&&Yf(this.T,k).X&&bY(this,k,!1)}}; g.E.TD=function(k){this.Xd.Ay("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",k);yE(this.T,k)&&(this.T.TD(k),bY(this,k,!1))}; g.E.Hp=function(k,p){if(yE(this.T,k)){this.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",k,p);for(var t=g.Z(this.Y),J=t.next();!J.done;J=t.next())J.value.Hp(k,p)}}; g.E.PH=function(k,p,t){if(yE(this.T,k)){this.Xd.LL(czq(t),k,p);this.T.PH(k,p);for(var J=g.Z(this.Y),q=J.next();!q.done;q=J.next())q.value.PH(k,p,t);(t=c1(this.T,k))&&p.layoutId===t.layoutId&&gKS(this,k,!1)}}; g.E.Tt=function(k,p,t,J){t.RD&&J?(d3(t,k,p,void 0,t.yl),this.Xd.o9(J,t.RD,k,p)):d3("adsClientErrorMessage is missing.",k,p);bY(this,k,!0)}; g.E.Ap=function(){var k=lej(this.T);k=g.Z(k);for(var p=k.next();!p.done;p=k.next())bY(this,p.value,!1);g.R.prototype.Ap.call(this)}; g.E.ox=function(k,p){this.Xd.LL("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",k,p);this.Xd.LL("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",k,p);for(var t=g.Z(this.Y),J=t.next();!J.done;J=t.next())J=J.value,p&&J.ox(k,p)};u_S.prototype.isActive=function(){switch(this.T){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.r(iY,g.R);g.E=iY.prototype;g.E.Py=function(k,p){p=v1(this,k+"_"+p);k=[];p=g.Z(p.values());for(var t=p.next();!t.done;t=p.next())k.push(t.value.slot);return k}; g.E.tD=function(k){k=Yf(this,k);k.T!=="not_scheduled"&&nk(k.slot,k.T,"onSlotScheduled");k.T="scheduled"}; g.E.Yr=function(k){k=Yf(this,k);k.C="fill_requested";k.Z.Yr()}; g.E.Sy=function(k){k=Yf(this,k);k.T!=="enter_requested"&&nk(k.slot,k.T,"onSlotEntered");k.T="entered"}; g.E.TD=function(k){Yf(this,k).C="fill_canceled"}; g.E.Mh=function(k){k=Yf(this,k);k.T!=="exit_requested"&&nk(k.slot,k.T,"onSlotExited");k.T="scheduled"}; g.E.PH=function(k,p){k=Yf(this,k);k.layout!=null&&k.layout.layoutId===p.layoutId&&(k.T!=="rendering_stop_requested"&&nk(k.slot,k.T,"onLayoutExited"),k.T="entered")};g.r(Gk,g.R);Gk.prototype.get=function(){Math.random()<.001&&this.MO()&&d3("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.T());return this.instance};g.r(XT,g.R);XT.prototype.N=function(){return this.Y};Rc.prototype.executeCommand=function(k,p){wL(this.T(),k,p)};eC.prototype.addListener=function(k){this.listeners.add(k)}; eC.prototype.removeListener=function(k){this.listeners.delete(k)};var G5={},H1=(G5.AD_MARKER="ytp-ad-progress",G5.CHAPTER_MARKER="ytp-chapter-marker",G5.TIME_MARKER="ytp-time-marker",G5);var koT=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),o3L=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"), pPi=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Uqw=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"), E3S=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),Fii=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"), tEq=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),$qM=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),qYj=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"), qle=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"), oaS=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"), c49=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.xf.prototype.getId=function(){return this.id}; g.xf.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+yte(this.start)+", "+yte(this.end)+"]"}; g.xf.prototype.contains=function(k,p){return k>=this.start&&(k<this.end||k===this.end&&this.start===this.end)&&(p==null||k<p&&p<=this.end)}; var NPh=1;g.xf.prototype.getId=g.xf.prototype.getId;JA.prototype.Yr=function(){var k=this,p=0;tAi(this.T,function(){var t=pk(k.slot.clientMetadata,"metadata_type_ad_break_request_data");p=Date.now();OE(k.mS.get(),"abrs","ct."+p+";cmt."+k.FG.get().getCurrentTimeSec(1,!1)+";sid."+k.slot.slotId+";");return k.Y.get().fetch({qn:t.getAdBreakUrl,gY:new g.xf(t.nM,t.Zt),S0:pk(k.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:t.cueProcessedMs})},function(){TPM(k)},function(t){var J=Date.now()-p; OE(k.mS.get(),"abrr","ct."+(new Date).getTime()+";cmt."+k.FG.get().getCurrentTimeSec(1,!1)+";l."+J.toString()+";sid."+k.slot.slotId+";");J=t.iE;J.length>=2&&t.ssdaiAdsConfig&&d3("Unexpected ad placement renderers length",k.slot,null,{length:J.length});J.some(function(q){var F,d,S,U;return!!((F=q.renderer)==null?0:(d=F.linearAdSequenceRenderer)==null?0:(S=d.linearAds)==null?0:S.length)||!((U=q.renderer)==null||!U.instreamVideoAdRenderer)})||TPM(k)})}; JA.prototype.mI=function(){Jti(this.T)};of.prototype.Yr=function(){var k=this;tAi(this.Y,function(){var p=pk(k.slot.clientMetadata,"metadata_type_ad_break_request_data");return p.cueProcessedMs?k.T.get().fetch({qn:p.getAdBreakUrl,gY:new g.xf(p.nM,p.Zt),cueProcessedMs:p.cueProcessedMs}):k.T.get().fetch({qn:p.getAdBreakUrl,gY:new g.xf(p.nM,p.Zt)})})}; of.prototype.mI=function(){Jti(this.Y)};q7.prototype.Yr=function(){var k=this.slot.clientMetadata,p,t=(p=this.slot.fulfilledLayout)!=null?p:pk(k,"metadata_type_fulfilled_layout");GDL(this.callback,this.slot,t)}; q7.prototype.mI=function(){NU(this.callback,this.slot,new K("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")};$t.prototype.build=function(k,p){return p.fulfilledLayout||FC(p,{Yf:["metadata_type_fulfilled_layout"]})?new q7(k,p):this.N(k,p)};g.r(d$,$t); d$.prototype.N=function(k,p){if(FC(p,{Yf:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new JA(k,p,this.T,this.Y,this.y4,this.uh,this.mS,this.FG,this.NP);if(FC(p,{Yf:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new of(k,p,this.T,this.Y,this.y4,this.uh);throw new K("Unsupported slot with type: "+p.slotType+" and client metadata: "+t9(p.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.r(En,$t);En.prototype.N=function(k,p){throw new K("Unsupported slot with type: "+p.slotType+" and client metadata: "+t9(p.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.E=rtM.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.init=function(){}; g.E.release=function(){}; g.E.startRendering=function(k){if(k.layoutId!==this.layout.layoutId)this.callback.Tt(this.slot,k,new x0("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 p=pk(k.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Hp(this.slot,k),GMS(this.N, this.slot,p)):d3("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,k)}}; g.E.au=function(k,p){k.layoutId!==this.layout.layoutId?this.callback.Tt(this.slot,k,new x0("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.PH(this.slot,k,p),C3T(this),At6(this))};g.r(N7,g.o$);g.E=N7.prototype;g.E.h5=function(){return this.Y.slot}; g.E.e6=function(){return this.Y.layout}; g.E.init=function(){this.N.get().addListener(this)}; g.E.release=function(){this.N.get().removeListener(this);this.dispose()}; g.E.Xt=function(){}; g.E.RN=function(){}; g.E.mN=function(){}; g.E.Mp=function(){}; g.E.startRendering=function(k){var p=this;bL(this.Y,k,function(){return void p.Q_()})}; g.E.Q_=function(){this.N.get().Q_(this.T)}; g.E.au=function(k,p){var t=this;bL(this.Y,k,function(){var J=t.N.get();cET(J,t.T,3);t.T=[];t.callback.PH(t.slot,k,p)})}; g.E.Ap=function(){this.N.MO()||this.N.get().removeListener(this);g.o$.prototype.Ap.call(this)}; g.dT.Object.defineProperties(N7.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.Y.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.Y.layout}}});mC.prototype.U7=function(k,p){p=p===void 0?!1:p;var t=(this.N.get(k)||[]).concat();if(p=p&&Wi9(k)){var J=this.N.get(p);J&&t.push.apply(t,g.m(J))}DM(this,k,t);this.T.add(k);p&&this.T.add(p)}; mC.prototype.VF=function(k,p){p=p===void 0?!1:p;if(!this.T.has(k)){var t=p&&Wi9(k);t&&(p=!this.T.has(t));this.U7(k,p)}};g.r(LiM,Jt);g.r(nT,N7);g.E=nT.prototype;g.E.K$=function(k,p){r$("ads-engagement-panel-layout",k,this.S.get().K7,this.mS.get(),this.C,this.X,this.h5(),this.e6(),p)}; g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),g.e(this.e6().renderingContent,xa),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(p,t,J,q,F){return new LiM(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(k,p){this.X===p.layoutId&&(this.C===null?this.C=this.mS.get().VX():d3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)};g.r(ct9,Jt);g.r(w$,N7);g.E=w$.prototype;g.E.K$=function(k,p){r$("banner-image",k,this.S.get().K7,this.mS.get(),this.C,this.X,this.h5(),this.e6(),p)}; g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),g.e(this.e6().renderingContent,KH),this.callback,"metadata_type_banner_image_layout_view_model",function(p,t,J,q,F){return new ct9(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(k,p){this.X===p.layoutId&&(this.C===null?this.C=this.mS.get().VX():d3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)};g.r(iL,Jt);g.r(QC,N7);g.E=QC.prototype;g.E.K$=function(k,p){r$("action-companion",k,this.S.get().K7,this.mS.get(),this.C,this.X,this.h5(),this.e6(),p)}; g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),g.e(this.e6().renderingContent,lT),this.callback,"metadata_type_action_companion_ad_renderer",function(p,t,J,q,F){return new iL(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(k,p){p.layoutId===this.layout.layoutId?this.wy.VF("impression"):this.X===p.layoutId&&(this.C===null?this.C=this.mS.get().VX():d3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)};g.r(i1w,Jt);g.r(Ph,N7);g.E=Ph.prototype;g.E.K$=function(k,p){r$("image-companion",k,this.S.get().K7,this.mS.get(),this.C,this.X,this.h5(),this.e6(),p)}; g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),g.e(this.e6().renderingContent,jH),this.callback,"metadata_type_image_companion_ad_renderer",function(p,t,J,q,F){return new i1w(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(k,p){p.layoutId===this.layout.layoutId?this.wy.VF("impression"):this.X===p.layoutId&&(this.C===null?this.C=this.mS.get().VX():d3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)};g.r(P3u,Jt);g.r(GW,N7);g.E=GW.prototype;g.E.K$=function(k,p){r$("shopping-companion",k,this.S.get().K7,this.mS.get(),this.C,this.X,this.h5(),this.e6(),p)}; g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(p,t,J,q,F){return new P3u(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(k,p){p.layoutId===this.layout.layoutId?this.wy.VF("impression"):this.X===p.layoutId&&(this.C===null?this.C=this.mS.get().VX():d3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)};g.r(XC,N7);g.E=XC.prototype;g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(p,t,J,q,F){return new iL(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(){}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)}; g.E.K$=function(){};g.E=zUe.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.init=function(){this.FG.get().addListener(this);this.FG.get().Ze.push(this);var k=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),p=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZM(this.layout.YI)&&kj(this.uG.get(),this.layout.layoutId,{o$:p,UK:k,listener:this})}; g.E.release=function(){this.FG.get().removeListener(this);VSe(this.FG.get(),this);ZM(this.layout.YI)&&pU(this.uG.get(),this.layout.layoutId)}; g.E.startRendering=function(k){this.callback.Hp(this.slot,k)}; g.E.au=function(k,p){lph(this.uh.get())&&!this.T&&(this.wy.VF("abandon"),this.T=!0);this.callback.PH(this.slot,k,p)}; g.E.tM=function(k){switch(k.id){case "part2viewed":this.wy.VF("start");this.wy.VF("impression");break;case "videoplaytime25":this.wy.VF("first_quartile");break;case "videoplaytime50":this.wy.VF("midpoint");break;case "videoplaytime75":this.wy.VF("third_quartile");break;case "videoplaytime100":lph(this.uh.get())?this.T||(this.wy.VF("complete"),this.T=!0):this.wy.VF("complete");ch(this.wy)&<(this.wy,Infinity,!0);jJ9(this.uh.get())&&If(this.Y,Infinity,!0);break;case "engagedview":ch(this.wy)||this.wy.VF("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:d3("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.E.onVolumeChange=function(){}; g.E.Ek=function(){}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.onFullscreenToggled=function(){}; g.E.WQ=function(){}; g.E.I3=function(){}; g.E.oM=function(k){jJ9(this.uh.get())&&If(this.Y,k*1E3,!1);ch(this.wy)&<(this.wy,k*1E3,!1)}; g.E.vR=function(){}; g.E.HI=function(){this.wy.VF("active_view_measurable")}; g.E.dD=function(){this.wy.VF("active_view_viewable")}; g.E.GO=function(){this.wy.VF("active_view_fully_viewable_audible_half_duration")}; g.E.wD=function(){this.wy.VF("audio_measurable")}; g.E.kp=function(){this.wy.VF("audio_audible")};g.r(Rf,N7);g.E=Rf.prototype;g.E.init=function(){N7.prototype.init.call(this);var k=pk(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p={adsClientData:this.layout.lG};this.T.push(new TU(k,this.layout.layoutId,pk(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),p,!0))}; g.E.wJ=function(){this.C||this.FG.get().resumeVideo(1)}; g.E.startRendering=function(k){N7.prototype.startRendering.call(this,k);Ee(this.FG.get(),"ad-showing");this.callback.Hp(this.slot,k);this.X.PY=this}; g.E.au=function(k,p){N7.prototype.au.call(this,k,p);Sb(this.FG.get(),"ad-showing");uX(this.X,this)}; g.E.K$=function(k){switch(k){case "ad-info-icon-button":(this.C=this.FG.get().En(1))||this.FG.get().pauseVideo();break;case "visit-advertiser":this.FG.get().pauseVideo()}}; g.E.Ap=function(){N7.prototype.Ap.call(this)};g.r(Bh,Jt);g.r(zW,N7);g.E=zW.prototype;g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(p,t,J,q,F){return new Bh(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(){}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)}; g.E.K$=function(){};g.r(e0,Jt);g.r(hA,N7);hA.prototype.init=function(){N7.prototype.init.call(this);this.T.push(new e0(g.e(this.layout.renderingContent,CJ),this.layout.layoutId,{adsClientData:this.layout.lG}))}; hA.prototype.K$=function(){mH(this.C.get(),this.X)&&TW(this.mS.get(),3)}; hA.prototype.startRendering=function(k){N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k)}; hA.prototype.Ap=function(){N7.prototype.Ap.call(this)};g.r(af,Jt);g.r(M7,N7);M7.prototype.init=function(){N7.prototype.init.call(this);var k=g.e(this.layout.renderingContent,oe)||pk(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),p=yC(this.wy);this.T.push(new af(k,p,this.layout.layoutId,{adsClientData:this.layout.lG},!0,!0))}; M7.prototype.startRendering=function(k){N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k)}; M7.prototype.K$=function(k,p){if(p===this.layout.layoutId)switch(k){case "skip-button":var t;(k=(t=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:t.current)&&k.Y2(this.h5(),this.layout)}}; M7.prototype.Ap=function(){N7.prototype.Ap.call(this)};uL.prototype.build=function(k,p,t,J){if(g$(J,{Yf:["metadata_type_ad_break_response_data"],aG:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new rtM(k,t,J,this.Y,this.N,this.T);throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.r(av9,Jt);g.r(lL,N7);g.E=lL.prototype;g.E.K$=function(k,p){r$("ads-engagement-panel",k,this.S.get().K7,this.mS.get(),this.C,this.X,this.h5(),this.e6(),p)}; g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),g.e(this.e6().renderingContent,Ol),this.callback,"metadata_type_ads_engagement_panel_renderer",function(p,t,J,q,F){return new av9(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(k,p){p.layoutId===this.layout.layoutId?this.wy.VF("impression"):this.X===p.layoutId&&(this.C===null?this.C=this.mS.get().VX():d3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)};g.r(j0,N7);g.E=j0.prototype;g.E.K$=function(k,p){r$("top-banner-image-text-icon-buttoned",k,this.S.get().K7,this.mS.get(),this.C,this.X,this.h5(),this.e6(),p)}; g.E.startRendering=function(k){Yt(this.wy,this.h5(),this.e6(),g.e(this.e6().renderingContent,Hv),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(p,t,J,q,F){return new Bh(p,t,J,q,F)},this.T); N7.prototype.startRendering.call(this,k)}; g.E.Hp=function(k,p){this.X===p.layoutId&&(this.C===null?this.C=this.mS.get().VX():d3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Ap=function(){fk(this.J5(),this);N7.prototype.Ap.call(this)};uKw.prototype.build=function(k,p,t,J){if(g$(J,MA6())||g.e(J.renderingContent,Ol)!==void 0)return new lL(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);if(g$(J,wR6())||g.e(J.renderingContent,lT)!==void 0)return new QC(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);if(g$(J,Q$h())||g.e(J.renderingContent,jH)!==void 0)return new Ph(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);if(g$(J,GsM()))return new GW(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);if(g$(J,BPj()))return new XC(k,t,J,this.EF,this.mS,this.J5, this.uG,this.T);if(g$(J,n3h())||g.e(J.renderingContent,KH)!==void 0)return new w$(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);if(g$(J,g3M())||g.e(J.renderingContent,Hv)!==void 0)return new j0(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);if(g$(J,eUM()))return new zW(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);if(g$(J,v3w())||g.e(J.renderingContent,xa)!==void 0)return new nT(k,t,J,this.EF,this.mS,this.J5,this.uG,this.T);throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+ t9(J.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};lv0.prototype.build=function(k,p,t,J){if(g$(J,{Yf:["metadata_type_linked_player_bytes_layout_id"],aG:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new hA(k,t,J,this.EF,this.mS,this.T);throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.E=j$q.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.init=function(){}; g.E.release=function(){}; g.E.startRendering=function(k){k.layoutId!==this.layout.layoutId?this.callback.Tt(this.slot,k,new x0("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.Hp(this.slot,k),this.wy.VF("impression"),B6(this.Wj,k,"normal"))}; g.E.au=function(k,p){k.layoutId!==this.layout.layoutId?this.callback.Tt(this.slot,k,new x0("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.PH(this.slot,k,p)};g.E=Kii.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.init=function(){}; g.E.release=function(){}; g.E.startRendering=function(k){k.layoutId!==this.layout.layoutId?this.callback.Tt(this.slot,k,new x0("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.Hp(this.slot,k),this.wy.VF("impression"),B6(this.Wj,k,"normal"))}; g.E.au=function(k,p){k.layoutId!==this.layout.layoutId?this.callback.Tt(this.slot,k,new x0("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.PH(this.slot,k,p)};On.prototype.build=function(k,p,t,J){if(!this.uh.get().j.G().D("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(g$(J,O1w()))return new j$q(k,t,J,this.mS,this.Wj)}else if(g$(J,{Yf:[],aG:["LAYOUT_TYPE_FORECASTING"]}))return new Kii(k,t,J,this.mS,this.Wj);throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.r(kUw,Jt);g.r(KT,N7);g.E=KT.prototype;g.E.init=function(){N7.prototype.init.call(this);var k=g.e(this.layout.renderingContent,JD)||pk(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),p={adsClientData:this.layout.lG};this.T.push(new kUw(k,pk(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,p))}; g.E.wJ=function(){this.C||this.FG.get().resumeVideo(2)}; g.E.startRendering=function(k){N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k);this.X.PY=this}; g.E.au=function(k,p){N7.prototype.au.call(this,k,p);uX(this.X,this)}; g.E.K$=function(k){if(mH(this.S.get(),this.Z))switch(k){case "visit-advertiser-link":TW(this.mS.get(),3)}switch(k){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.FG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.C=this.FG.get().En(2))||this.FG.get().pauseVideo();break;case "visit-advertiser-link":this.FG.get().pauseVideo();pAS(this).v9();break;case "skip-button":if(k=pAS(this), this.layout.renderingContent&&!Oa(this.layout.clientMetadata,"metadata_type_dai")||!k.v$){var p;(k=(p=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:p.current)&&k.Y2(this.h5(),this.layout)}else d3("Requesting to skip by LegacyPlayerBytes when components enabled"),k.pX(this.h5(),this.layout)}}; g.E.Ap=function(){N7.prototype.Ap.call(this)};g.r(Hh,N7);g.E=Hh.prototype;g.E.init=function(){N7.prototype.init.call(this);var k=g.e(this.layout.renderingContent,tD)||pk(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p={adsClientData:this.layout.lG},t;(t=!!this.layout.renderingContent)||(t=!xt(this).v$);this.T.push(new TU(k,this.layout.layoutId,pk(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),p,t))}; g.E.wJ=function(){this.C||this.FG.get().resumeVideo(2)}; g.E.startRendering=function(k){N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k);this.X.PY=this}; g.E.au=function(k,p){N7.prototype.au.call(this,k,p);uX(this.X,this)}; g.E.K$=function(k){if(mH(this.S.get(),this.Z))switch(k){case "visit-advertiser":TW(this.mS.get(),3)}switch(k){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.FG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.C=this.FG.get().En(2))||this.FG.get().pauseVideo();break;case "visit-advertiser":this.FG.get().pauseVideo();xt(this).v9();break;case "skip-button":if(k=xt(this),this.layout.renderingContent&& !Oa(this.layout.clientMetadata,"metadata_type_dai")||!k.v$){var p;(k=(p=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:p.current)&&k.Y2(this.h5(),this.layout)}else d3("Requesting to skip by LegacyPlayerBytes"),k.pX(this.h5(),this.layout)}}; g.E.Ap=function(){N7.prototype.Ap.call(this)};g.r(J5L,Jt);g.r(kg,N7);g.E=kg.prototype;g.E.startRendering=function(k){var p=this;bL(this.Y,k,function(){p.T.push(new J5L(pk(p.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),k.layoutId,k.lG));p.Q_();p.callback.Hp(p.slot,k);g.u(xC(p.FG.get(),1),512)&&p.callback.Tt(p.h5(),p.e6(),new x0("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.E.I3=function(){}; g.E.WQ=function(k){if(k.state.isError()){var p;this.callback.Tt(this.h5(),this.e6(),new x0("A player error happened during adNotify",{playerErrorCode:(p=k.state.JD)==null?void 0:p.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.E.onFullscreenToggled=function(){}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.Ek=function(){}; g.E.onVolumeChange=function(){}; g.E.tM=function(){}; g.E.vR=function(){}; g.E.K$=function(){};g.r(qyi,Jt);g.r(pC,N7);pC.prototype.init=function(){N7.prototype.init.call(this);var k=g.e(this.layout.renderingContent,qz),p=yC(this.wy);this.T.push(new qyi(k,p,this.layout.layoutId,{adsClientData:this.layout.lG}))}; pC.prototype.startRendering=function(k){N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k)}; pC.prototype.K$=function(k,p){if(p===this.layout.layoutId)switch(k){case "skip-button":var t;(k=(t=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:t.current)&&k.Y2(this.h5(),this.layout)}}; pC.prototype.Ap=function(){N7.prototype.Ap.call(this)};FM0.prototype.build=function(k,p,t,J){if(k=F5(k,t,J,this.EF,this.FG,this.mS,this.Y,this.T,this.uh))return k;throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.E=ED.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.init=function(){this.FG.get().addListener(this);this.FG.get().Ze.push(this);var k=this.layout.renderingContent?UE(this.XG.get(),1).yO/1E3:pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),p=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),t=pk(this.layout.clientMetadata,"metadata_type_active_view_identifier");ZM(this.layout.YI)&&kj(this.uG.get(),this.layout.layoutId,{o$:p,UK:k,listener:this,C0:t})}; g.E.release=function(){this.FG.get().removeListener(this);VSe(this.FG.get(),this);ZM(this.layout.YI)&&pU(this.uG.get(),this.layout.layoutId)}; g.E.startRendering=function(k){this.callback.Hp(this.slot,k)}; g.E.au=function(k,p){Sm(this,"abandon");this.callback.PH(this.slot,k,p)}; g.E.tM=function(k){switch(k.id){case "part2viewed":this.wy.VF("start");this.wy.VF("impression");break;case "videoplaytime25":this.wy.VF("first_quartile");break;case "videoplaytime50":this.wy.VF("midpoint");break;case "videoplaytime75":this.wy.VF("third_quartile");break;case "videoplaytime100":Sm(this,"complete");ch(this.wy)&<(this.wy,Infinity,!0);break;case "engagedview":ch(this.wy)||this.wy.VF("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:d3("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.E.onVolumeChange=function(){}; g.E.Ek=function(){}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.onFullscreenToggled=function(){}; g.E.WQ=function(k){this.T||(g.Uy(k,4)&&!g.Uy(k,2)?sn(this.wy,"pause"):SV(k,4)<0&&!(SV(k,2)<0)&&sn(this.wy,"resume"))}; g.E.I3=function(){}; g.E.oM=function(k){ch(this.wy)&<(this.wy,k*1E3,!1)}; g.E.vR=function(){Sm(this,"swipe")}; g.E.HI=function(){this.wy.VF("active_view_measurable")}; g.E.dD=function(){this.wy.VF("active_view_viewable")}; g.E.GO=function(){this.wy.VF("active_view_fully_viewable_audible_half_duration")}; g.E.wD=function(){this.wy.VF("audio_measurable")}; g.E.kp=function(){this.wy.VF("audio_audible")};$O9.prototype.build=function(k,p,t,J){if(t.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.e(J.renderingContent,NKq)!==void 0)return new ED(k,t,J,this.FG,this.mS,this.uh,this.uG,this.XG);p=["metadata_type_ad_placement_config"];for(var q=g.Z(VC()),F=q.next();!F.done;F=q.next())p.push(F.value);if(g$(J,{Yf:p,aG:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return t.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new ED(k,t,J,this.FG,this.mS,this.uh,this.uG,this.XG):new zUe(k,t,J,this.FG,this.mS, this.MW,this.uh,this.uG);throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Nz={contentCpn:"",Om:new Map};T3e.prototype.TA=function(k,p){var t={};p=Object.assign({},p,(t.cc=this.Ex.DC(),t));this.Ex.j.yT(k,p)};var nkq,IX; nkq={tP6:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",YkS:"AUTHENTICATION_MALFORMED",E4b:"AUTHENTICATION_MISSING",sq6:"BAD_REQUEST",jq0:"CAST_SESSION_DEVICE_MISMATCHED",Qqh:"CAST_SESSION_VIDEO_MISMATCHED",FV6:"CAST_TOKEN_EXPIRED",qky:"CAST_TOKEN_FAILED",Skp:"CAST_TOKEN_MALFORMED",Mb6:"CGI_PARAMS_MALFORMED",O7r:"CGI_PARAMS_MISSING",a5y:"DEVICE_FALLBACK",Qtb:"GENERIC_WITH_LINK_AND_CPN",Fxr:"ERROR_HDCP",qZp:"LICENSE",MmY:"VIDEO_UNAVAILABLE",ly8:"FORMAT_UNAVAILABLE",nN8:"GEO_FAILURE", plO:"HTML5_AUDIO_RENDERER_ERROR",LxO:"GENERIC_WITHOUT_LINK",iIp:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",rPG:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",TKy:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",yPT:"HTML5_SPS_UMP_STATUS_REJECTED",od0:"INVALID_DRM_MESSAGE",php:"PURCHASE_NOT_FOUND",Lrr:"PURCHASE_REFUNDED",Eb8:"RENTAL_EXPIRED",KEG:"RETRYABLE_ERROR",MBy:"SERVER_ERROR",DGS:"SIGNATURE_EXPIRED",VBT:"STOPPED_BY_ANOTHER_PLAYBACK",cn8:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",vbp:"STREAMING_NOT_ALLOWED", kST:"STREAM_LICENSE_NOT_FOUND",a0y:"TOO_MANY_REQUESTS",UGY:"TOO_MANY_REQUESTS_WITH_LINK",JnS:"TOO_MANY_STREAMS_PER_ENTITLEMENT",pSS:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",SnT:"VIDEO_FORBIDDEN",MFh:"VIDEO_NOT_FOUND",Cy0:"BROWSER_OR_EXTENSION_ERROR"};IX={}; g.uU=(IX.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.",IX.DEVICE_FALLBACK="Sorry, this video is not available on this device.",IX.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",IX.LICENSE="Sorry, there was an error licensing this video.",IX.VIDEO_UNAVAILABLE= "Video unavailable",IX.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",IX.GEO_FAILURE="This video isn't available in your country.",IX.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",IX.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",IX.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",IX.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", IX.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",IX.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",IX.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",IX.PURCHASE_NOT_FOUND="This video requires payment.",IX.PURCHASE_REFUNDED="This video's purchase has been refunded.",IX.RENTAL_EXPIRED="This video's rental has expired.",IX.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",IX.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",IX.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",IX.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",IX.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",IX.SERVER_ERROR="There was an internal server error. Please try again later.",IX.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",IX.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",IX.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",IX.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",IX.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",IX.TOO_MANY_REQUESTS="Please log in to watch this video.", IX.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",IX.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",IX.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",IX.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",IX.VIDEO_FORBIDDEN="Access to this video is forbidden.",IX.VIDEO_NOT_FOUND="This video can not be found.",IX.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",IX);var w2n;var i89=g.nc(),QKJ=i89.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!QKJ||QKJ.length<2)w2n=void 0;else{var P5J=i89.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);w2n=P5J&&P5J.length===6?Number(P5J[5].replace("_",".")):0}var Hr=w2n,ef=Hr>=0;g.r(g.nC,VB);g.nC.prototype.V=function(k,p,t,J,q){return VB.prototype.V.call(this,k,p,t,J,q)};var Xh={},Em=(Xh.FAIRPLAY="fairplay",Xh.PLAYREADY="playready",Xh.WIDEVINE="widevine",Xh.CLEARKEY=null,Xh.FLASHACCESS=null,Xh.UNKNOWN=null,Xh.WIDEVINE_CLASSIC=null,Xh);w2.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var RX={},NB=(RX.WIDTH={name:"width",video:!0,valid:640,p5:99999},RX.HEIGHT={name:"height",video:!0,valid:360,p5:99999},RX.FRAMERATE={name:"framerate",video:!0,valid:30,p5:9999},RX.BITRATE={name:"bitrate",video:!0,valid:3E5,p5:2E9},RX.EOTF={name:"eotf",video:!0,valid:"bt709",p5:"catavision"},RX.CHANNELS={name:"channels",video:!1,valid:2,p5:99},RX.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",p5:"invalidformat"},RX.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", p5:"nope"},RX.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",p5:"av99.0.05M.08"},RX.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",p5:"invalid"},RX);var GhQ=["h","H"],IYC=["9","("],X2q=["9h","(h"],RIS=["8","*"],Bx9=["a","A"],zIQ=["o","O"],eIc=["m","M"],hIJ=["mac3","MAC3"],aYJ=["meac3","MEAC3"],By={},yZe=(By.h=GhQ,By.H=GhQ,By["9"]=IYC,By["("]=IYC,By["9h"]=X2q,By["(h"]=X2q,By["8"]=RIS,By["*"]=RIS,By.a=Bx9,By.A=Bx9,By.o=zIQ,By.O=zIQ,By.m=eIc,By.M=eIc,By.mac3=hIJ,By.MAC3=hIJ,By.meac3=aYJ,By.MEAC3=aYJ,By),MtA=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),$zh=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var H={},X5=(H["0"]="f",H["160"]="h",H["133"]="h",H["134"]="h",H["135"]="h",H["136"]="h",H["137"]="h",H["264"]="h",H["266"]="h",H["138"]="h",H["298"]="h",H["299"]="h",H["304"]="h",H["305"]="h",H["214"]="h",H["216"]="h",H["374"]="h",H["375"]="h",H["140"]="a",H["141"]="ah",H["327"]="sa",H["258"]="m",H["380"]="mac3",H["328"]="meac3",H["161"]="H",H["142"]="H",H["143"]="H",H["144"]="H",H["222"]="H",H["223"]="H",H["145"]="H",H["224"]="H",H["225"]="H",H["146"]="H",H["226"]="H",H["227"]="H",H["147"]="H", H["384"]="H",H["376"]="H",H["385"]="H",H["377"]="H",H["149"]="A",H["261"]="M",H["381"]="MAC3",H["329"]="MEAC3",H["598"]="9",H["278"]="9",H["242"]="9",H["243"]="9",H["244"]="9",H["775"]="9",H["776"]="9",H["777"]="9",H["778"]="9",H["779"]="9",H["780"]="9",H["781"]="9",H["782"]="9",H["783"]="9",H["247"]="9",H["248"]="9",H["353"]="9",H["355"]="9",H["356"]="9",H["271"]="9",H["577"]="9",H["313"]="9",H["579"]="9",H["272"]="9",H["302"]="9",H["303"]="9",H["407"]="9",H["408"]="9",H["308"]="9",H["315"]="9", H["330"]="9h",H["331"]="9h",H["332"]="9h",H["333"]="9h",H["334"]="9h",H["335"]="9h",H["336"]="9h",H["337"]="9h",H["338"]="so",H["600"]="o",H["250"]="o",H["251"]="o",H["774"]="o",H["194"]="*",H["195"]="*",H["220"]="*",H["221"]="*",H["196"]="*",H["197"]="*",H["279"]="(",H["280"]="(",H["317"]="(",H["318"]="(",H["273"]="(",H["274"]="(",H["357"]="(",H["358"]="(",H["275"]="(",H["359"]="(",H["360"]="(",H["276"]="(",H["583"]="(",H["584"]="(",H["314"]="(",H["585"]="(",H["561"]="(",H["277"]="(",H["361"]="(h", H["362"]="(h",H["363"]="(h",H["364"]="(h",H["365"]="(h",H["366"]="(h",H["591"]="(h",H["592"]="(h",H["367"]="(h",H["586"]="(h",H["587"]="(h",H["368"]="(h",H["588"]="(h",H["562"]="(h",H["409"]="(",H["410"]="(",H["411"]="(",H["412"]="(",H["557"]="(",H["558"]="(",H["394"]="1",H["395"]="1",H["396"]="1",H["397"]="1",H["398"]="1",H["399"]="1",H["720"]="1",H["721"]="1",H["400"]="1",H["401"]="1",H["571"]="1",H["402"]="1",H["694"]="1h",H["695"]="1h",H["696"]="1h",H["697"]="1h",H["698"]="1h",H["699"]="1h",H["700"]= "1h",H["701"]="1h",H["702"]="1h",H["703"]="1h",H["386"]="3",H["387"]="w",H["406"]="6",H["787"]="1",H["788"]="1",H["548"]="1e",H["549"]="1e",H["550"]="1e",H["551"]="1e",H["809"]="1e",H["810"]="1e",H["552"]="1e",H["811"]="1e",H["812"]="1e",H["553"]="1e",H["813"]="1e",H["814"]="1e",H["554"]="1e",H["815"]="1e",H["816"]="1e",H["555"]="1e",H["817"]="1e",H["818"]="1e",H["572"]="1e",H["556"]="1e",H["645"]="(",H["646"]="(",H["647"]="(",H["648"]="(",H["649"]="(",H["650"]="(",H["651"]="(",H["652"]="(",H["653"]= "(",H["654"]="(",H["655"]="(",H["656"]="(",H["657"]="(",H["658"]="(",H["659"]="(",H["660"]="(",H["661"]="(",H["662"]="(",H["663"]="(",H["664"]="(",H["665"]="(",H["666"]="(",H["667"]="(",H["668"]="(",H["669"]="(",H["670"]="(",H["671"]="(",H["672"]="(",H["673"]="(",H["674"]="(h",H["675"]="(h",H["676"]="(h",H["677"]="(h",H["678"]="(h",H["679"]="(h",H["680"]="(h",H["681"]="(h",H["682"]="(h",H["683"]="(h",H["684"]="(h",H["685"]="(h",H["686"]="(h",H["687"]="(h",H["688"]="A",H["689"]="A",H["690"]="A",H["691"]= "MEAC3",H["773"]="i",H["806"]="I",H["805"]="I",H["829"]="9",H["830"]="9",H["831"]="9",H["832"]="9",H["833"]="9",H["834"]="9",H["835"]="9",H["836"]="9",H["837"]="9",H["838"]="9",H["839"]="9",H["840"]="9",H["841"]="(",H["842"]="(",H["843"]="(",H["844"]="(",H["845"]="(",H["846"]="(",H["847"]="(",H["848"]="(",H["849"]="(",H["850"]="(",H["851"]="(",H["852"]="(",H["865"]="9",H["866"]="9",H["867"]="9",H["868"]="9",H["869"]="9",H["870"]="9",H["871"]="9",H["872"]="9",H["873"]="9",H["874"]="9",H["875"]="9", H["876"]="9",H["877"]="(",H["878"]="(",H["879"]="(",H["880"]="(",H["881"]="(",H["882"]="(",H["883"]="(",H["884"]="(",H["885"]="(",H["886"]="(",H["887"]="(",H["888"]="(",H);var z5={},Orq=(z5.STEREO_LAYOUT_UNKNOWN=0,z5.STEREO_LAYOUT_LEFT_RIGHT=1,z5.STEREO_LAYOUT_TOP_BOTTOM=2,z5);var eo,kw;eo={};g.Qs=(eo.auto=0,eo.tiny=144,eo.light=144,eo.small=240,eo.medium=360,eo.large=480,eo.hd720=720,eo.hd1080=1080,eo.hd1440=1440,eo.hd2160=2160,eo.hd2880=2880,eo.highres=4320,eo);kw={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var Gw="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");P$.prototype.isHdr=function(){return this.Y==="smpte2084"||this.Y==="arib-std-b67"};Re.prototype.rI=function(){return this.containerType===2}; Re.prototype.isEncrypted=function(){return!!this.xf}; Re.prototype.B3=function(){return!!this.audio}; Re.prototype.pZ=function(){return!!this.video}; var em=!1;g.r(d0,g.o$);g.E=d0.prototype;g.E.appendBuffer=function(k,p,t){if(this.BH.Pg()!==this.appendWindowStart+this.start||this.BH.HU()!==this.appendWindowEnd+this.start||this.BH.Yx()!==this.timestampOffset+this.start)this.BH.supports(1),this.BH.Al(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.BH.NG(this.timestampOffset+this.start);this.BH.appendBuffer(k,p,t)}; g.E.abort=function(){this.BH.abort()}; g.E.remove=function(k,p){this.BH.remove(k+this.start,p+this.start)}; g.E.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.E.clear=function(){this.BH.clear()}; g.E.Al=function(k,p){this.appendWindowStart=k;this.appendWindowEnd=p}; g.E.qf=function(){return this.timestampOffset+this.start}; g.E.Pg=function(){return this.appendWindowStart}; g.E.HU=function(){return this.appendWindowEnd}; g.E.NG=function(k){this.timestampOffset=k}; g.E.Yx=function(){return this.timestampOffset}; g.E.Dl=function(k){k=this.BH.Dl(k===void 0?!1:k);return $S(k,this.start,this.end)}; g.E.fU=function(){return this.BH.fU()}; g.E.FF=function(){return this.BH.FF()}; g.E.Bh=function(){return this.BH.Bh()}; g.E.ir=function(){return this.BH.ir()}; g.E.Iz=function(){this.BH.Iz()}; g.E.oV=function(k){return this.BH.oV(k)}; g.E.ZA=function(){return this.BH.ZA()}; g.E.iZ=function(){return this.BH.iZ()}; g.E.wY=function(){return this.BH.wY()}; g.E.Nn=function(k,p,t){this.BH.Nn(k,p,t)}; g.E.Ci=function(k,p,t){this.BH.Ci(k,p,t)}; g.E.t8=function(k,p){return this.BH.t8(k,p)}; g.E.supports=function(k){return this.BH.supports(k)}; g.E.Re=function(){return this.BH.Re()}; g.E.isView=function(){return!0}; g.E.sB=function(){return this.BH.sB()?this.isActive:!1}; g.E.isLocked=function(){return this.Ly&&!this.isActive}; g.E.pE=function(k){k=this.BH.pE(k);k.vw=this.start+"-"+this.end;return k}; g.E.rR=function(){return this.BH.rR()}; g.E.N3=function(){return this.BH.N3()}; g.E.CN=function(){return this.BH.CN()}; g.E.Ap=function(){this.BH.aX(this.P8);g.o$.prototype.Ap.call(this)};var NX=!1;g.r(S6,g.o$);g.E=S6.prototype;g.E.appendBuffer=function(k,p,t){this.xk=!1;t&&(this.Qu=t);if(k.length){var J;((J=this.bG)==null?0:J.appendBuffer)?this.bG.appendBuffer(k):this.bG?this.bG.append(k):this.lD&&this.lD.webkitSourceAppend(this.id,k)}p&&(p.isEncrypted()&&(this.SX=this.Qu),p.type===3&&(this.LZ=p),this.oB.push(p.Aj()),this.oB.length>4&&this.oB.shift());this.Yu&&(this.Yu.length>=2||k.length>1048576?delete this.Yu:this.Yu.push(k))}; g.E.abort=function(){try{this.bG?this.bG.abort():this.lD&&this.lD.webkitSourceAbort(this.id)}catch(k){hJS&&g.nV(new g.hm("Error while abort the source buffer: "+k.name+", "+k.message))}this.Qu=this.LZ=null}; g.E.remove=function(k,p,t){this.xk=!1;var J;if((J=this.bG)==null?0:J.remove)t&&t({b:pr(this.Dl()),s:k,e:p}),this.bG.remove(k,p)}; g.E.removeAll=function(){this.remove(this.Pg(),this.HU())}; g.E.clear=function(){this.Bh()||(this.abort(),this.removeAll(),this.SX=this.Qu=this.LZ=null,this.appendWindowStart=this.timestampOffset=0,this.M7=kS([],[]),this.xk=!1,this.Yu=EI?[]:void 0,this.Kg=!0)}; g.E.Pg=function(){if(NX&&this.pZ)return this.appendWindowStart;var k;return((k=this.bG)==null?void 0:k.appendWindowStart)||0}; g.E.HU=function(){var k;return((k=this.bG)==null?void 0:k.appendWindowEnd)||0}; g.E.Al=function(k,p){this.bG&&(NX&&this.pZ?(this.appendWindowStart=k,this.bG.appendWindowEnd=p):k>this.Pg()?(this.bG.appendWindowEnd=p,this.bG.appendWindowStart=k):(this.bG.appendWindowStart=k,this.bG.appendWindowEnd=p))}; g.E.qf=function(){return this.timestampOffset}; g.E.NG=function(k){NX?this.timestampOffset=k:this.supports(1)&&(this.bG.timestampOffset=k)}; g.E.Yx=function(){return NX?this.timestampOffset:this.supports(1)?this.bG.timestampOffset:0}; g.E.Dl=function(k){if(k===void 0?0:k)return this.xk||this.fU()||(this.M7=this.Dl(!1),this.xk=!0),this.M7;try{return this.bG?this.bG.buffered:this.lD?this.lD.webkitSourceBuffered(this.id):kS([0],[Infinity])}catch(p){return kS([],[])}}; g.E.fU=function(){var k;return((k=this.bG)==null?void 0:k.updating)||!1}; g.E.Bh=function(){return this.Kg}; g.E.ir=function(){return!this.Kg&&this.fU()}; g.E.Iz=function(){this.Kg=!1}; g.E.oV=function(k){var p=k==null?void 0:k.H0;k=k==null?void 0:k.containerType;return!p&&!k||p===this.H0&&k===this.containerType}; g.E.ZA=function(){return this.Qu}; g.E.iZ=function(){return this.SX}; g.E.t8=function(k,p){return this.containerType!==k||this.H0!==p}; g.E.Nn=function(k,p,t){if(this.containerType!==k||t&&this.t8(k,t))this.supports(4),UI()&&this.bG.changeType(p),t&&(this.H0=t);this.containerType=k}; g.E.Ci=function(k,p,t){this.containerType&&this.t8(k,p)&&UI()&&this.bG.changeType(t);this.containerType=k;this.H0=p}; g.E.Re=function(){return this.LZ}; g.E.isView=function(){return!1}; g.E.supports=function(k){switch(k){case 1:var p;return((p=this.bG)==null?void 0:p.timestampOffset)!==void 0;case 0:var t;return!((t=this.bG)==null||!t.appendBuffer);case 2:var J;return!((J=this.bG)==null||!J.remove);case 3:var q,F;return!!(((q=this.bG)==null?0:q.addEventListener)&&((F=this.bG)==null?0:F.removeEventListener));case 4:return!(!this.bG||!this.bG.changeType);default:return!1}}; g.E.sB=function(){return!this.fU()}; g.E.isLocked=function(){return!1}; g.E.pE=function(k){k.to=this.Yx();k.up=this.fU();var p,t=((p=this.bG)==null?void 0:p.appendWindowStart)||0,J;p=((J=this.bG)==null?void 0:J.appendWindowEnd)||Infinity;k.aw=t.toFixed(3)+"-"+p.toFixed(3);return k}; g.E.FF=function(){var k;return((k=this.bG)==null?void 0:k.writeHead)||0}; g.E.rR=function(){for(var k={},p=0;p<this.oB.length;p++)k["s"+p]=this.oB[p];return k}; g.E.Ap=function(){this.supports(3)&&(this.bG.removeEventListener("updateend",this.Jj),this.bG.removeEventListener("error",this.Jj));g.o$.prototype.Ap.call(this)}; g.E.N3=function(){return this.containerType}; g.E.wY=function(){return this.H0}; g.E.CN=function(){return this.Yu}; var EI=!1,hJS=!1;fr.prototype.dispose=function(){if(!this.MO()){if(this.T)try{URL.revokeObjectURL(this.oO)}catch(k){}this.Y=!0}}; fr.prototype.MO=function(){return this.Y}; fr.prototype.MR=function(k){return k!==null&&k.oO===this.oO}; fr.prototype.toString=function(){return"MediaResource {"+this.oO+"}"};g.r(bV,g.R);g.E=bV.prototype;g.E.getDuration=function(){var k;return((k=this.Dr)==null?void 0:k.duration)||this.L}; g.E.gP=function(k){try{this.Dr?this.Dr.duration=k:(this.L=k,this.lD.webkitSourceSetDuration(k))}catch(p){}}; g.E.TH=function(){try{return hN(this)==="closed"}catch(k){return!0}}; g.E.fU=function(){return!!(this.T&&this.T.fU()||this.Y&&this.Y.fU())}; g.E.isAsync=function(){return this.T?!!this.T.supports(0):aU()}; g.E.Lgy=function(){!this.MO()&&RU(this)&&this.callback&&(this.callback(this),this.callback=null)}; g.E.p1O=function(){this.dispose()}; g.E.dl=function(k){if(Bo&&!this.C&&k.Bh()&&k.Dl().length===0){var p;z0(this.mediaElement,{l:"mswoue",sr:(p=this.mediaElement.Tb)==null?void 0:p.Uk()},!1);k.Iz();this.Bh()||(this.mediaElement.ZU=!0,this.mediaElement.setCurrentTime(0))}}; g.E.RA=function(){return!!this.T.supports(2)}; g.E.clear=function(){vMj(this,function(){}); var k;(k=this.T)==null||k.clear();var p;(p=this.Y)==null||p.clear()}; g.E.Bh=function(){var k,p;return((k=this.Y)==null?void 0:k.Bh())||((p=this.T)==null?void 0:p.Bh())}; g.E.oV=function(k,p){return!!this.T&&!!this.Y&&this.T.oV(p)&&this.Y.oV(k)}; var Bo=!1;Mi.prototype.then=function(k,p){return this.promise.then(k,p)}; Mi.prototype.resolve=function(k){this.RX(k)}; Mi.prototype.reject=function(k){this.Ww(k)};g.r(g0,g.R);g.E=g0.prototype;g.E.Xa=function(){return this.oO}; g.E.activate=function(k){var p="";k&&(XA6(this,k),p=k.oO);if(!this.Yh()||p)p&&this.Yh()!==p&&(this.YZ(p),delete this.Y,this.N&&(this.N.reject(),delete this.N),!window.MediaSource&&window.ManagedMediaSource&&this.uH(!(k==null||!k.T))),k&&k.T||this.load(),this.Z||(this.addEventListener("volumechange",this.xD),this.Z=!0)}; g.E.D6=function(k,p){if(this.Y)if(eJe&&e6(this.Y)&&!this.Y.oV(k,p)){var t;z0(this,{l:"megms",sr:(t=this.Tb)==null?void 0:t.Uk()});GUu(this);this.stopVideo()}else return this.Dr=this.Y,this.Y=void 0,this.Dr;k=window.MediaSource?new bV(this,new window.MediaSource,!1):window.ManagedMediaSource?new bV(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new bV(this,new window.WebKitMediaSource,!1):new bV(this,void 0,!1);this.activate(k.N);this.Dr=k;this.ZU=!1;return k}; g.E.playVideo=function(){var k=this;this.isEnded()&&this.seekTo(0);!this.Yh()&&this.oO&&(g.nV(Error("playVideo without src")),this.YZ(this.oO.oO),this.oO.T||this.load());var p=this.play(),t;((t=this.Tb)==null?0:t.D("html5_remove_ios_7_hack_force_play"))||!p&&ef&&(Hr||0)>=7&&r5q(this,function(){g.fY(function(){Iy0(k,k.getCurrentTime(),0)},500)}); return p}; g.E.seekTo=function(k){this.Pn()>0&&(ef&&Hr<4&&(k=Math.max(.1,k)),this.setCurrentTime(k))}; g.E.Td=function(){if(!this.Y&&this.Dr)if(this.Dr.X)try{var k;z0(this,{l:"mer",sr:(k=this.Tb)==null?void 0:k.Uk(),rs:hN(this.Dr)});this.Dr.clear();this.Y=this.Dr;this.Dr=void 0}catch(p){k=new g.hm("Error while clearing Media Source in MediaElement: "+p.name+", "+p.message),g.nV(k),this.stopVideo()}else this.stopVideo()}; g.E.stopVideo=function(){var k=this;if(!this.Y){var p;(p=this.Dr)==null||QZe(p);if(Bwi){if(!this.N){var t=new Mi;t.then(void 0,function(){}); this.N=t;zJL&&this.pause();g.fY(function(){k.N===t&&(j6(k),t.resolve())},200)}}else j6(this)}}; g.E.jw=function(){var k=this.p$();return qi(k)>0&&this.getDuration()?oU(k,this.getCurrentTime()):0}; g.E.e0=function(){var k=this.getDuration();return k===Infinity?1:k?this.jw()/k:0}; g.E.pE=function(){try{var k=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:pr(this.Vl(),",",3),vbu:pr(this.p$()),vbs:pr(this.F1()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Pn(),vns:""+this.gR(),vec:""+this.eE(),vemsg:this.C$(),vvol:""+this.getVolume(),vdom:""+ +this.TT(),vsrc:""+ +!!this.Yh(),vw:""+k.width,vh:""+k.height}}catch(p){return{}}}; g.E.hasError=function(){return this.eE()>0}; g.E.addEventListener=function(k,p){this.C.listen(k,p,!1,this);this.qU(k)}; g.E.removeEventListener=function(k,p){this.C.qP(k,p,!1,this)}; g.E.dispatchEvent=function(k){if(this.N&&k.type==="pause")return!1;if(eJe){var p,t=((p=k.T)==null?void 0:p.timeStamp)||Infinity;p=t>performance.now()?t-Date.now()+performance.now():t;t=this.Y||this.Dr;if((t==null?0:t.Bh())||p<=((t==null?void 0:t.S)||0)){var J;z0(this,{l:"mede",sr:(J=this.Tb)==null?void 0:J.Uk(),et:k.type});return!1}if(this.ZU)return z0(this,{l:"medes",et:k.type}),t&&k.type==="seeking"&&(t.S=performance.now(),this.ZU=!1),!1}return this.C.dispatchEvent(k)}; g.E.jC=function(){this.S=!1}; g.E.u8=function(){this.S=!0;this.Ca(!0)}; g.E.xD=function(){this.S&&!this.yp()&&this.Ca(!0)}; g.E.MR=function(k){return!!k&&k.KE()===this.KE()}; g.E.Ap=function(){this.Z&&this.removeEventListener("volumechange",this.xD);Bwi&&j6(this);g.R.prototype.Ap.call(this)}; var Bwi=!1,zJL=!1,eJe=!1,B3q=!1;g.E=g.Kr.prototype;g.E.isPaused=function(){return g.u(this,4)}; g.E.isPlaying=function(){return g.u(this,8)&&!g.u(this,512)&&!g.u(this,64)&&!g.u(this,2)}; g.E.isOrWillBePlaying=function(){return g.u(this,8)&&!g.u(this,2)&&!g.u(this,1024)}; g.E.isCued=function(){return g.u(this,64)&&!g.u(this,8)&&!g.u(this,4)}; g.E.isBuffering=function(){return g.u(this,1)&&!g.u(this,2)}; g.E.isError=function(){return g.u(this,128)}; g.E.isSuspended=function(){return g.u(this,512)}; g.E.Nk=function(){return g.u(this,64)&&g.u(this,4)}; g.E.toString=function(){return"PSt."+this.state.toString(16)}; var hW={},aX=(hW.BUFFERING="buffering-mode",hW.CUED="cued-mode",hW.ENDED="ended-mode",hW.PAUSED="paused-mode",hW.PLAYING="playing-mode",hW.SEEKING="seeking-mode",hW.UNSTARTED="unstarted-mode",hW);g.r($r,g.R);g.E=$r.prototype;g.E.HS=function(){return this.N}; g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.init=function(){var k=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),p=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZM(this.layout.YI)&&kj(this.uG.get(),this.layout.layoutId,{o$:p,UK:k,listener:this,Y0:this.jy()});yEh(this.mS.get(),this);k=this.HN;p=this.layout.layoutId;var t={Y0:this.jy()};k.T.set(p,t);this.Ir()}; g.E.Vy=function(){}; g.E.release=function(){ZM(this.layout.YI)&&pU(this.uG.get(),this.layout.layoutId);Yj9(this.mS.get(),this);this.HN.T.delete(this.layout.layoutId);this.qN()}; g.E.lT=function(){}; g.E.Vj=function(){}; g.E.startRendering=function(k){Tw(dm(this));if(EE(this,k)){var p=this.T;r2(p.params.LH.uh.get(),!0)&&Yy_(p,"p_sr",{});S_(this);this.hQ(k);this.jy()||this.Jz(!1)}}; g.E.Hp=function(k,p){if(p.layoutId===this.layout.layoutId){this.Bp="rendering";this.Y=this.FG.get().isMuted()||this.FG.get().getVolume()===0;this.VF("impression");this.VF("start");if(this.FG.get().isMuted()){Yr(this,"mute");var t;k=((t=F1(this))==null?void 0:t.muteCommands)||[];B1(this.MW.get(),k,this.layout.layoutId)}if(this.FG.get().isFullscreen()){this.U7("fullscreen");var J;t=((J=F1(this))==null?void 0:J.fullscreenCommands)||[];B1(this.MW.get(),t,this.layout.layoutId)}this.jy()||(J=this.Qn.get(), J.N&&!J.Y&&(J.X=!1,J.Y=!0,J.actionType!=="ad_to_video"&&(zg("pbs",void 0,J.actionType),g.TQ("finalize_all_timelines")&&q39(J.actionType))));this.ES(1);this.IM(p);var q;p=((q=F1(this))==null?void 0:q.impressionCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}}; g.E.Z9=function(k,p,t){this.Z={il:3,Bo:k==="load_timeout"?402:400,errorMessage:p.message};this.VF("error");var J;k=((J=F1(this))==null?void 0:J.errorCommands)||[];B1(this.MW.get(),k,this.layout.layoutId);this.jy()||this.Xq.Tt(this.slot,this.layout,p,t)}; g.E.LG=function(){if(this.Bp==="rendering"){Yr(this,"pause");var k,p=((k=F1(this))==null?void 0:k.pauseCommands)||[];B1(this.MW.get(),p,this.layout.layoutId);this.ES(2)}}; g.E.i5=function(){if(this.Bp==="rendering"){Yr(this,"resume");var k,p=((k=F1(this))==null?void 0:k.resumeCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}}; g.E.z7=function(k,p){p=p===void 0?!1:p;if(this.Bp==="rendering"){var t={currentTimeSec:k,flush:p};Zl(this.T,"p_ip",t);LT(this.wy,k*1E3,p);this.Y||LT(this.wy,k*1E3,p===void 0?!1:p);var J=this.CV();if(J){J/=1E3;if(k>=J*.25||p)this.VF("first_quartile"),Zl(this.T,"p_fq",t);if(k>=J*.5||p)this.VF("midpoint"),Zl(this.T,"p_sq",t);if(k>=J*.75||p)this.VF("third_quartile"),Zl(this.T,"p_tq",t);this.uh.get().j.G().experiments.Gb("enable_progress_command_flush_on_kabuki")?If(this.C,k*1E3,p):If(this.C,k*1E3,gMq(this)? p:!1)}}}; g.E.DC=function(){var k;return((k=UE(this.XG.get(),1))==null?void 0:k.clientPlaybackNonce)||""}; g.E.U0=function(k,p){k.layoutId!==this.layout.layoutId?this.Xq.Tt(this.slot,k,new x0("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"):p()}; g.E.PH=function(k,p,t){if(p.layoutId===this.layout.layoutId)switch(this.Bp="not_rendering",this.layoutExitReason=void 0,this.jy()||(k=t!=="normal"||this.position+1===this.S)&&this.Jz(k),this.pG(t),this.ES(0),t){case "abandoned":if(vh(this.wy,"impression")){var J,q=((J=F1(this))==null?void 0:J.abandonCommands)||[];B1(this.MW.get(),q,this.layout.layoutId)}break;case "normal":J=((q=F1(this))==null?void 0:q.completeCommands)||[];B1(this.MW.get(),J,this.layout.layoutId);break;case "skipped":var F;J=((F= F1(this))==null?void 0:F.skipCommands)||[];B1(this.MW.get(),J,this.layout.layoutId)}}; g.E.KV=function(){return this.layout.layoutId}; g.E.If=function(){return this.Z}; g.E.HI=function(){if(this.Bp==="rendering"){this.wy.VF("active_view_measurable");var k,p=((k=F1(this))==null?void 0:k.activeViewMeasurableCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}}; g.E.GO=function(){if(this.Bp==="rendering"){this.wy.VF("active_view_fully_viewable_audible_half_duration");var k,p=((k=F1(this))==null?void 0:k.activeViewFullyViewableAudibleHalfDurationCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}}; g.E.dD=function(){if(this.Bp==="rendering"){this.wy.VF("active_view_viewable");var k,p=((k=F1(this))==null?void 0:k.activeViewViewableCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}}; g.E.kp=function(){if(this.Bp==="rendering"){this.wy.VF("audio_audible");var k,p=((k=F1(this))==null?void 0:k.activeViewAudioAudibleCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}}; g.E.wD=function(){if(this.Bp==="rendering"){this.wy.VF("audio_measurable");var k,p=((k=F1(this))==null?void 0:k.activeViewAudioMeasurableCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}}; g.E.Jz=function(k){this.Qn.get().Jz(pk(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,k,this.position,this.S,!1)}; g.E.onFullscreenToggled=function(k){if(this.Bp==="rendering")if(k){this.U7("fullscreen");var p,t=((p=F1(this))==null?void 0:p.fullscreenCommands)||[];B1(this.MW.get(),t,this.layout.layoutId)}else this.U7("end_fullscreen"),p=((t=F1(this))==null?void 0:t.endFullscreenCommands)||[],B1(this.MW.get(),p,this.layout.layoutId)}; g.E.onVolumeChange=function(){if(this.Bp==="rendering")if(this.FG.get().isMuted()){Yr(this,"mute");var k,p=((k=F1(this))==null?void 0:k.muteCommands)||[];B1(this.MW.get(),p,this.layout.layoutId)}else Yr(this,"unmute"),k=((p=F1(this))==null?void 0:p.unmuteCommands)||[],B1(this.MW.get(),k,this.layout.layoutId)}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.Ek=function(){}; g.E.tM=function(){}; g.E.vR=function(){}; g.E.U7=function(k){this.wy.U7(k,!this.Y)}; g.E.VF=function(k){this.wy.VF(k,!this.Y)}; g.E.jy=function(){var k=pk(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return k===void 0?(d3("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.uh.get().jy(k)};g.r(AZ,$r);g.E=AZ.prototype;g.E.Ir=function(){}; g.E.qN=function(){var k=this.mS.get();k.RZ===this&&(k.RZ=null);this.wf.stop()}; g.E.lT=function(){this.wf.stop();$r.prototype.LG.call(this)}; g.E.Vj=function(){V8(this);$r.prototype.i5.call(this)}; g.E.CV=function(){return pk(this.e6().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.E.au=function(k,p){var t=this;this.U0(k,function(){t.Bp!=="rendering_stop_requested"&&(t.Bp="rendering_stop_requested",t.layoutExitReason=p,fW(t,p),t.wf.stop())})}; g.E.OF=function(){var k=Date.now(),p=k-this.xQ;this.xQ=k;this.PR+=p;this.PR>=this.CV()?this.yb():(this.z7(this.PR/1E3),mR(this,this.PR))}; g.E.pG=function(){}; g.E.I3=function(){}; g.r(W6,AZ);g.E=W6.prototype;g.E.WQ=function(k){if(this.Bp!=="not_rendering"){k=b2(this,k);var p=this.FG.get().getPresentingPlayerType()===2;this.Bp==="rendering_start_requested"?p&&$g(k)&&this.jT():p?g.Uy(k,2)?d3("Receive player ended event during MediaBreak",this.h5(),this.e6()):Nw(this,k):this.Sc()}}; g.E.hQ=function(){ay9(this);sE9(this.FG.get());this.mS.get().RZ=this;RF("pbp")||RF("pbs")||zg("pbp");RF("pbp","watch")||RF("pbs","watch")||zg("pbp",void 0,"watch");this.jT()}; g.E.IM=function(k){this.Qn.get();var p=pk(k.clientMetadata,"metadata_type_ad_placement_config").kind,t=this.position===0;k=pk(k.clientMetadata,"metadata_type_linked_in_player_layout_type");k={adBreakType:y8(p),adType:J7_(k)};var J=void 0;t?p!=="AD_PLACEMENT_KIND_START"&&(J="video_to_ad"):J="ad_to_ad";Gg("ad_mbs",void 0,J);g.IF(k,J);V8(this)}; g.E.Sc=function(){this.fh()}; g.E.yb=function(){lyh(this);this.fh()}; g.r(Dj,AZ);g.E=Dj.prototype;g.E.WQ=function(k){this.Bp!=="not_rendering"&&(k=b2(this,k),Nw(this,k))}; g.E.hQ=function(){d3("Not used in SSAP")}; g.E.IM=function(){V8(this)}; g.E.Sc=function(){d3("Not used in SSAP")}; g.E.yb=function(){lyh(this);this.Xq.Tr(this.h5(),this.e6(),"normal")}; g.r(sE,Dj);sE.prototype.au=function(k,p){var t=this;this.U0(k,function(){fC(t.N,p)&&(t.Bp="rendering_stop_requested",t.layoutExitReason=p,fW(t,p),t.wf.stop())})}; sE.prototype.startRendering=function(k){Tw(dm(this));EE(this,k)&&(S_(this),this.mS.get().RZ=this)};g.r(c6,$r);g.E=c6.prototype;g.E.Sc=function(){this.fh()}; g.E.WQ=function(k){if(this.Bp!=="not_rendering"){k=b2(this,k);var p=this.FG.get().getPresentingPlayerType()===2;this.Bp==="rendering_start_requested"?p&&$g(k)&&this.jT():!p||g.Uy(k,2)?this.fh():Nw(this,k)}}; g.E.Ir=function(){pk(this.e6().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=pk(this.e6().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.E.qN=function(){pk(this.e6().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.tN){var k=this.context.LH,p=this.tN,t=this.e6().layoutId;if(r2(k.uh.get(),!0)){var J={};k.TA("mccru",(J.cid=p,J.p_ac=t,J))}this.b3.get().removeCueRange(this.tN)}this.tN=void 0;var q;(q=this.oC)==null||q.dispose();this.FH&&this.FH.dispose()}; g.E.hQ=function(k){var p=LW(this.uh.get()),t=v6(this.uh.get());if(p&&t&&!this.jy()){t=pk(k.clientMetadata,"metadata_type_preload_player_vars");var J=g.dU(this.uh.get().j.G().experiments,"html5_preload_wait_time_secs");t&&this.FH&&this.FH.start(J*1E3)}KM0(this,k);ay9(this);p?(t=this.wS.get(),k=pk(k.clientMetadata,"metadata_type_player_vars"),t.j.loadVideoByPlayerVars(k,!1,2)):GNe(this.wS.get(),pk(k.clientMetadata,"metadata_type_player_vars"));var q;(q=this.oC)==null||q.start();p||this.wS.get().j.playVideo(2)}; g.E.IM=function(){var k;(k=this.oC)==null||k.stop();this.tN="adcompletioncuerange:"+this.e6().layoutId;this.b3.get().addCueRange(this.tN,0x7ffffffffffff,0x8000000000000,!1,this,2,2);k=this.context.LH;var p=this.tN,t=this.e6().layoutId;if(r2(k.uh.get(),!0)){var J={};k.TA("mccr",(J.cid=p,J.p_ac=t,J))}(this.adCpn=hRi(this))||d3("Media layout confirmed started, but ad CPN not set.");this.tj.get().Dt("onAdStart",this.adCpn);this.Go=Date.now()}; g.E.CV=function(){var k;return(k=UE(this.XG.get(),2))==null?void 0:k.yO}; g.E.v9=function(){this.wy.U7("clickthrough")}; g.E.au=function(k,p){var t=this;this.U0(k,function(){if(t.Bp!=="rendering_stop_requested"){t.Bp="rendering_stop_requested";t.layoutExitReason=p;fW(t,p);var J;(J=t.oC)==null||J.stop();t.FH&&t.FH.stop();Haq(t)}})}; g.E.onCueRangeEnter=function(k){if(k!==this.tN)d3("Received CueRangeEnter signal for unknown layout.",this.h5(),this.e6(),{cueRangeId:k});else{var p=this.context.LH,t=this.e6().layoutId;if(r2(p.uh.get(),!0)){var J={};p.TA("mccre",(J.cid=k,J.p_ac=t,J))}this.b3.get().removeCueRange(this.tN);this.tN=void 0;ac(this.context.uh.get(),"html5_ssap_flush_at_stop_rendering")&&this.jy()||(k=pk(this.e6().clientMetadata,"metadata_type_video_length_seconds"),this.z7(k,!0),this.VF("complete"))}}; g.E.pG=function(k){k!=="abandoned"&&this.tj.get().Dt("onAdComplete");this.tj.get().Dt("onAdEnd",this.adCpn)}; g.E.onCueRangeExit=function(){}; g.E.I3=function(k){this.Bp==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&k>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.FG.get().YY(!0),this.z7(k))}; g.E.z7=function(k,p){$r.prototype.z7.call(this,k,p===void 0?!1:p);p=Date.now()-this.Go;var t=k*1E3,J={contentCpn:this.DC(),adCpn:hRi(this)};if(k>=5&&!this.FC){var q=p<1E3?0:1;qO(q,"i.k_",{metadata:J,k7:p,wC:Math.floor(t/1E3)});a3("IKDSTAT",q);q===0&&xOw(this)&&this.tj.get().Dt("onAbnormalityDetected");this.FC=!0}k-this.Yg>=5&&(q=p<t*.4?0:1,qO(q,"n.k_",{metadata:J,k7:p,wC:Math.floor(t/1E3)}),a3("NKDSTAT",q),q===0&&xOw(this)&&this.tj.get().Dt("onAbnormalityDetected"),this.Yg=k)};g.r(nW,c6);nW.prototype.WQ=function(k){this.Bp!=="not_rendering"&&(k=b2(this,k),Nw(this,k))}; nW.prototype.hQ=function(){d3("Not used in SSAP")}; g.r(wm,nW);wm.prototype.au=function(k,p){var t=this;this.U0(k,function(){if(fC(t.N,p)){t.Bp="rendering_stop_requested";t.layoutExitReason=p;fW(t,p);if(ac(t.context.uh.get(),"html5_ssap_flush_at_stop_rendering")&&p==="normal"){var J=pk(t.e6().clientMetadata,"metadata_type_video_length_seconds");t.z7(J,!0)}Haq(t)}})}; wm.prototype.startRendering=function(k){Tw(dm(this));EE(this,k)&&(S_(this),KM0(this,k))};g.r(Q8,g.R);g.E=Q8.prototype;g.E.init=function(){var k=pk(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");k&&(k.current=this);this.XG.get().addListener(this);this.vH.init();dOi([this.layout],this.XG.get());this.A2()}; g.E.A2=function(){var k=pk(this.vH.e6().clientMetadata,"metadata_type_player_vars");k?this.wS.get().addPlayerResponseForAssociation({playerVars:k}):(k=oye(this.vH.e6()),this.wS.get().addPlayerResponseForAssociation({ST:k}))}; g.E.Je=function(){}; g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.lT=function(){this.vH.lT()}; g.E.Vj=function(){this.vH.Vj()}; g.E.pX=function(){d3("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; g.E.Hp=function(k,p){this.vH.Hp(k,p)}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.I3=function(k){this.vH.I3(k)}; g.E.onFullscreenToggled=function(k){this.vH.onFullscreenToggled(k)}; g.E.MA=function(k){this.vH.MA(k)}; g.E.Ek=function(k){this.vH.Ek(k)}; g.E.onVolumeChange=function(){this.vH.onVolumeChange()}; g.E.tM=function(){}; g.E.vR=function(){}; g.E.VN=function(){}; g.E.hI=function(){return this.FG.get().getPresentingPlayerType()===2}; g.E.Hm=function(k){baj({cpn:k,Ex:this.XG.get(),sH:!0});this.layout.layoutId===k&&(K3M(this.OX,this.slot.slotId),this.pM.Hp(this.slot,this.layout))}; g.E.startRendering=function(k){if(k.layoutId!==this.layout.layoutId)return void d3("wrong layout");this.FG.get().addListener(this);Uq(this.J5(),this);this.vH.startRendering(this.layout)}; g.E.WQ=function(k){this.vH.WQ(k)}; g.E.PH=function(k,p,t){this.vH.PH(k,p,t)}; g.E.release=function(){this.XG.get().removeListener(this);this.vH.release();EM6();fk(this.J5(),this)}; g.E.wi=function(){return ac(this.params.context.uh.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.E.au=function(k,p){k.layoutId!==this.layout.layoutId?d3("wrong layout"):this.wi()&&this.vH.HS().currentState>=2||(this.vH.au(this.layout,p),k=ac(this.params.context.uh.get(),"html5_ssap_pass_transition_reason")&&p==="abandoned",this.hI()&&!k&&(ac(this.params.context.uh.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(p)||d3("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:p})),this.NP.get().finishSegmentByCpn(this.layout.layoutId, UE(this.XG.get(),1).clientPlaybackNonce,rm(p,this.params.context.uh))),this.FG.get().removeListener(this),this.wi()&&bG(this.vH.HS())&&this.pM.PH(this.slot,this.layout,this.vH.HS().T))}; g.E.dN=function(k,p,t){N3i({cpn:k,Ex:this.XG.get(),sH:!0});this.e6().layoutId!==k||ac(this.params.context.uh.get(),"html5_ssap_pass_transition_reason")&&t===5||(this.vH.HS().currentState<2&&(k=Zj(t,this.params.context.uh),k==="error"?this.pM.Tt(this.slot,this.layout,new x0("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:t},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):B6(this.o8, this.layout,k)),ac(this.params.context.uh.get(),"html5_ssap_exit_without_waiting_for_transition")||this.pM.PH(this.slot,this.layout,this.vH.HS().T))};g.r(P6,g.R);g.E=P6.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.Je=function(){}; g.E.H3=function(){return this.BN[this.Nw]}; g.E.fI=function(){return this.Nw}; g.E.lT=function(k,p){var t=this.H3();p.layoutId!==IW(t,k,p)?d3("pauseLayout for a PlayerBytes layout that is not currently active",k,p):t.lT()}; g.E.Vj=function(k,p){var t=this.H3();p.layoutId!==IW(t,k,p)?d3("resumeLayout for a PlayerBytes layout that is not currently active",k,p):t.Vj()}; g.E.pX=function(k,p){var t=this.H3();dTq(this,k,p);Eyh(t,k,p)&&this.cU(t.h5(),t.e6(),"skipped")}; g.E.Y2=function(k,p){var t=this.H3();S_9(this);UT0(t,k,p)&&(k=fP6(this,t,k,p),k!==void 0&&(this.jy()?d3("Should not happen. Should delete"):Nkj(this,t.h5(),t.e6(),k)))}; g.E.Vq=function(k,p){var t=Object.assign({},G1(this),{layoutId:p.layoutId}),J=t.layoutId,q=t.sH;if(t.Y0){var F={};Yg(t.Ex,"wrse",(F.ec=J,F.is=q,F.ctp=ys(J),F))}VE(this.Rv,k,p)}; g.E.Hp=function(k,p){var t;(t=this.H3())==null||t.Hp(k,p)}; g.E.PH=function(k,p,t){p.layoutId===this.e6().layoutId&&(this.rD=!1,fk(this.J5(),this));var J;(J=this.H3())==null||J.PH(k,p,t)}; g.E.I3=function(k){var p;(p=this.H3())==null||p.I3(k)}; g.E.O2=function(k,p,t){this.fI()===-1&&(this.callback.Hp(this.slot,this.layout),this.Nw++);var J=this.H3();J?(J.Z9(k,p,t),this.jy()&&this.callback.Tt(this.slot,this.layout,p,t)):d3("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.fI()),layoutId:this.e6().layoutId})}; g.E.onFullscreenToggled=function(k){var p;(p=this.H3())==null||p.onFullscreenToggled(k)}; g.E.MA=function(k){var p;(p=this.H3())==null||p.MA(k)}; g.E.Ek=function(k){var p;(p=this.H3())==null||p.Ek(k)}; g.E.onVolumeChange=function(){var k;(k=this.H3())==null||k.onVolumeChange()}; g.E.Hz=function(k,p,t){W1(this.Rv,k,p,t)}; g.E.wL=function(k){k.startRendering(k.e6())}; g.E.init=function(){var k=pk(this.e6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");k&&(k.current=this);if(this.BN.length<1)throw new K("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.BN.length)});if(k=pk(this.e6().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))k.current=this;k=g.Z(this.BN);for(var p=k.next();!p.done;p=k.next())p=p.value,p.init(),Ie0(this.Rv,this.slot,p.e6()),XB0(this.Rv,this.slot,p.e6()); if(this.jy())for(this.XG.get().addListener(this),dOi($TL(this),this.XG.get()),k=$TL(this),k=g.Z(k),p=k.next();!p.done;p=k.next())this.A2(p.value)}; g.E.A2=function(k){var p=pk(k.clientMetadata,"metadata_type_player_vars");p?(k.layoutType!=="LAYOUT_TYPE_MEDIA"&&d3("Non-video ad contains playerVars",this.slot,k),this.wS.get().addPlayerResponseForAssociation({playerVars:p})):(k=oye(k),this.wS.get().addPlayerResponseForAssociation({ST:k}))}; g.E.release=function(){var k=pk(this.e6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");k&&(k.current=null);if(k=pk(this.e6().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))k.current=null;k=g.Z(this.BN);for(var p=k.next();!p.done;p=k.next())p=p.value,Rh6(this.Rv,this.slot,p.e6()),p.release();this.jy()&&(this.XG.get().removeListener(this),EM6())}; g.E.U0=function(k){return k.layoutId!==this.e6().layoutId?(this.callback.Tt(this.h5(),k,new x0("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e6().layoutId+("and LayoutType: "+this.e6().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.E.w1=function(){this.FG.get().addListener(this);Uq(this.J5(),this)}; g.E.WQ=function(k){if(k.state.isError()){var p,t;this.O2((p=k.state.JD)==null?void 0:p.errorCode,new x0("There was a player error during this media layout.",{playerErrorCode:(t=k.state.JD)==null?void 0:t.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(p=this.H3())&&p.WQ(k)}; g.E.jy=function(){var k=pk(this.h5().clientMetadata,"metadata_type_eligible_for_ssap");return k===void 0?(d3("Expected SSAP eligibility in PlayerBytes slots",this.h5(),this.e6()),!1):this.uh.get().jy(k)}; g.E.VN=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.tM=function(){}; g.E.vR=function(){}; g.r(z1,P6);g.E=z1.prototype;g.E.v6=function(k,p,t){this.cU(k,p,t)}; g.E.c6=function(k,p){this.cU(k,p,"error")}; g.E.cU=function(k,p,t){var J=this;b4S(this,k,p,t,function(){X1(J,J.fI()+1)})}; g.E.startRendering=function(k){this.U0(k)&&(this.w1(),eA9(this.Qn.get()),uPT(this.uh.get())||sE9(this.FG.get()),this.fI()===-1&&X1(this,this.fI()+1))}; g.E.au=function(k,p){var t=this;this.rD=!0;this.fI()===this.BN.length?this.callback.PH(this.slot,this.layout,p):(k=this.H3(),k.au(k.e6(),p),this.IK=function(){t.callback.PH(t.slot,t.layout,p)}); this.FG.get().j.Sa();GNe(this.wS.get(),{});k=xC(this.FG.get(),1);k.isPaused()&&!g.u(k,2)&&this.FG.get().playVideo();this.FG.get().removeListener(this);this.rD&&y7w(this)}; g.E.dN=function(){}; g.E.Hm=function(){}; g.E.Tr=function(){}; g.r(e_,P6);g.E=e_.prototype;g.E.v6=function(k,p,t){k=Object.assign({},G1(this),{layoutId:p.layoutId,layoutExitReason:t});p=k.layoutId;t=k.layoutExitReason;var J={};Yg(k.Ex,"prse",(J.xc=p,J.ler=t,J.ctp=ys(p),J))}; g.E.c6=function(){d3("onSubLayoutError in SSAP")}; g.E.cU=function(){d3("exitSubLayoutAndPlayNext in SSAP")}; g.E.H3=function(){return this.Fn}; g.E.fI=function(){var k=this;return this.BN.findIndex(function(p){var t;return p.e6().layoutId===((t=k.Fn)==null?void 0:t.e6().layoutId)})}; g.E.wL=function(k){$M(this.Fn===void 0,"replacing another adapter");this.Fn=k;k.startRendering(k.e6())}; g.E.Hz=function(k,p,t){W1(this.Rv,k,p,t);var J;$M(p.layoutId===((J=this.Fn)==null?void 0:J.e6().layoutId),"currentAdapter does not match exiting layout",{slot:k?"slot: "+k.slotType:"",subLayout:FD(p)})&&(this.Fn=void 0)}; g.E.release=function(){P6.prototype.release.call(this);$M(this.Fn===void 0,"currentAdapter is still active during release");this.Fn=void 0}; g.E.hI=function(){return this.FG.get().getPresentingPlayerType()===2}; g.E.au=function(k,p){function t(){hZ(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(p)||d3("Composite stopRendering: Unexpected layout exit reason",this.slot,k,{layoutExitReason:p}))} function J(){this.Fn&&aW(this,this.Fn,p);if(this.hI()&&(!hZ(this)||p!=="abandoned")){t.call(this);var F;var d=((F=this.XG.get().j.getVideoData())==null?void 0:F.clientPlaybackNonce)||"";F=UE(this.XG.get(),1).clientPlaybackNonce;this.NP.get().finishSegmentByCpn(d,F,rm(p,this.uh))}Y_T(this,p)} function q(){if(this.Fn){var F=this.Fn;F.HS().currentState<2&&F.au(F.e6(),p);F=hZ(this)&&p==="abandoned";this.hI()&&!F&&(t.call(this),this.NP.get().finishSegmentByCpn(this.Fn.e6().layoutId,UE(this.XG.get(),1).clientPlaybackNonce,rm(p,this.uh)))}} $M(k.layoutId===this.e6().layoutId,"StopRendering for wrong layout")&&fC(this.mD.Y,p)&&(this.wi()?J.call(this):q.call(this))}; g.E.PH=function(k,p,t){P6.prototype.PH.call(this,k,p,t);p.layoutId===this.e6().layoutId&&this.FG.get().removeListener(this)}; g.E.DC=function(){return UE(this.XG.get(),1).clientPlaybackNonce}; g.E.dN=function(k,p,t){N3i(Object.assign({},G1(this),{cpn:k}));if(!hZ(this)||t!==5)if(this.wi()){if(this.Fn&&this.Fn.e6().layoutId!==p){var J=this.Fn.e6().layoutId;J!==k&&d3("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:J,exitingCpn:k,enteringCpn:p});k=Zj(t,this.uh);aW(this,this.Fn,k)}else this.Fn&&d3("onClipExited: active layout is entering again");p===this.DC()&&r7e(this,t)}else{if(this.Fn&&this.Fn.e6().layoutId===k)Tk0(this,this.Fn,t);else{var q;d3("Exiting cpn does not match active cpn", this.slot,(J=this.Fn)==null?void 0:J.e6(),{exitingCpn:k,transitionReason:t,activeCpn:(q=this.Fn)==null?void 0:q.e6().layoutId})}p===this.DC()&&(this.Fn!==void 0&&(d3("active adapter is not properly exited",this.slot,this.layout,{activeLayout:FD(this.Fn.e6())}),Tk0(this,this.Fn,t)),r7e(this,t),Y_T(this,this.mD.Y.T))}}; g.E.wi=function(){return ac(this.uh.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.E.startRendering=function(k){this.U0(k)&&(k=this.mD,$M(k.T===1,"tickStartRendering: state is not initial"),k.T=2,this.w1())}; g.E.Hm=function(k){baj(Object.assign({},G1(this),{cpn:k}));var p=this.BN.find(function(t){return t.e6().layoutId===k}); p?(this.mD.T!==2&&(K3M(this.OX,this.slot.slotId),$M(this.mD.T===2,"Expect started"),this.callback.Hp(this.slot,this.layout)),this.wL(p),VE(this.Rv,this.slot,p.e6())):Z4q(this,k)}; g.E.pX=function(k,p){dTq(this,k,p);var t=this.H3();t?Eyh(t,k,p)&&CF9(this,"skipped"):A7q(this,"onSkipRequested")}; g.E.Y2=function(k,p){var t;a:{if(t=this.H3()){if(S_9(this),UT0(t,k,p)&&(k=fP6(this,t,k,p),k!==void 0)){t={NK:t,OLp:this.BN[k]};break a}}else A7q(this,"SkipWithAdPodSkip");t=void 0}if(k=t)t=k.NK,p=k.OLp,k=t.e6().layoutId,this.wi()?aW(this,t,"skipped"):t.au(t.e6(),"skipped"),t=p.e6().layoutId,this.NP.get().finishSegmentByCpn(k,t,rm("skipped",this.uh))}; g.E.Vq=function(){d3("Not used in html5_ssap_fix_layout_exit")}; g.E.WQ=function(k){var p;(p=this.H3())==null||p.WQ(k)}; g.E.O2=function(){d3("Not used in html5_ssap_fix_layout_exit")}; g.E.Tr=function(k,p,t){var J;if(((J=this.H3())==null?void 0:J.e6().layoutId)!==p.layoutId)return void d3("requestToExitSubLayout: wrong layout");CF9(this,t)};g.r(Mw,g.R);g.E=Mw.prototype;g.E.h5=function(){return this.vH.h5()}; g.E.e6=function(){return this.vH.e6()}; g.E.init=function(){var k=pk(this.e6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");k&&(k.current=this);this.Ir()}; g.E.Ir=function(){this.vH.init()}; g.E.release=function(){var k=pk(this.e6().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");k&&(k.current=null);this.qN()}; g.E.qN=function(){this.vH.release()}; g.E.lT=function(){this.vH.lT()}; g.E.Vj=function(){this.vH.Vj()}; g.E.pX=function(k,p){d3("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.h5(),this.e6(),{requestingSlot:k,requestingLayout:p})}; g.E.startRendering=function(k){k.layoutId!==this.e6().layoutId?this.callback.Tt(this.h5(),k,new x0("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e6().layoutId+("and LayoutType: "+this.e6().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.FG.get().addListener(this),Uq(this.J5(),this),eA9(this.Qn.get()),uPT(this.uh.get())||sE9(this.FG.get()),this.vH.startRendering(k))}; g.E.au=function(k,p){this.rD=!0;this.vH.au(k,p);this.FG.get().j.Sa();GNe(this.wS.get(),{});k=xC(this.FG.get(),1);k.isPaused()&&!g.u(k,2)&&this.FG.get().playVideo();this.FG.get().removeListener(this);this.rD&&this.vH.Sc()}; g.E.Hp=function(k,p){this.vH.Hp(k,p)}; g.E.PH=function(k,p,t){p.layoutId===this.e6().layoutId&&(this.rD=!1,fk(this.J5(),this));this.vH.PH(k,p,t);p.layoutId===this.e6().layoutId&&RW(this.Qn.get())}; g.E.I3=function(k){this.vH.I3(k)}; g.E.WQ=function(k){if(k.state.isError()){var p,t;this.O2((p=k.state.JD)==null?void 0:p.errorCode,new x0("There was a player error during this media layout.",{playerErrorCode:(t=k.state.JD)==null?void 0:t.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.vH.WQ(k)}; g.E.O2=function(k,p,t){this.vH.Z9(k,p,t)}; g.E.onFullscreenToggled=function(k){this.vH.onFullscreenToggled(k)}; g.E.MA=function(k){this.vH.MA(k)}; g.E.Ek=function(k){this.vH.Ek(k)}; g.E.onVolumeChange=function(){this.vH.onVolumeChange()}; g.E.VN=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.tM=function(){}; g.E.vR=function(){};g.E=gm.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.init=function(){this.H1.get().addListener(this);this.FG.get().addListener(this);var k=pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var p=pk(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.C){var t=this.H1.get().eK.slice(-1)[0];t!==void 0&&(k=t.startSecs*1E3,p=(t.startSecs+t.NR)*1E3)}this.Vy(k,p);var J;t=(J=this.XG.get().Mb)==null?void 0:J.clientPlaybackNonce;J=this.layout.lG.adClientDataEntry;u2(this.mS.get(),{daiStateTrigger:{filledAdsDurationMs:p-k,contentCpn:t, adClientData:J}});var q=this.H1.get();q=Weu(q.N,k,p);q!==null&&(u2(this.mS.get(),{daiStateTrigger:{filledAdsDurationMs:q-k,contentCpn:t,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:J}}),this.NP.get().nt(q,p))}; g.E.release=function(){this.qN();this.H1.get().removeListener(this);this.FG.get().removeListener(this)}; g.E.startRendering=function(){this.hQ();this.callback.Hp(this.slot,this.layout)}; g.E.au=function(k,p){this.l$(p);this.driftRecoveryMs!==null&&(l2(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(DTh(this)-pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.FG.get().j.ID()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.PH(this.slot,this.layout,p)}; g.E.Gz=function(){return!1}; g.E.jD=function(k){var p=pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),t=pk(this.layout.clientMetadata,"metadata_type_layout_exit_ms");k*=1E3;if(p<=k&&k<t){var J;u2(this.mS.get(),{daiStateTrigger:{filledAdsDurationMs:k-p,contentCpn:(J=this.XG.get().Mb)==null?void 0:J.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.lG.adClientDataEntry}});this.NP.get().nt(k,t)}}; g.E.I3=function(k){this.Tw(k);k=dy(this.FG.get(),2,!0);if(mH(this.X.get(),this.layout.layoutId)){var p=pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),t=this.driftRecoveryMs;if(!(t===null||k*1E3<p+t)){this.driftRecoveryMs=null;var J=DTh(this),q=this.FG.get().j.ID(),F=Math.min(k+q,J/1E3);F<=k?l2(this,{driftRecoveryMs:t.toString(),breakDurationMs:Math.round(J-p).toString(),driftFromHeadMs:Math.round(q*1E3).toString()}):(l2(this,{driftRecoveryMs:t.toString(),breakDurationMs:Math.round(J- p).toString(),driftFromHeadMs:Math.round(q*1E3).toString(),appliedDriftRecoveryMs:Math.round(k*1E3-p).toString(),destinationMs:Math.round(F*1E3-p).toString()}),this.FG.get().j.seekTo(F,void 0,void 0,1))}}}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.Ek=function(){}; g.E.onVolumeChange=function(){}; g.E.tM=function(){}; g.E.vR=function(){};g.r(j_,gm);g.E=j_.prototype;g.E.Vy=function(k,p){this.XG.get().addListener(this);if(this.C){var t=k,J=0,q=[];k=this.N.slice();k.sort(function(F,d){return pk(F.e6().clientMetadata,"metadata_type_media_sub_layout_index")-pk(d.e6().clientMetadata,"metadata_type_media_sub_layout_index")}); k.forEach(function(F){var d=t,S=pk(F.e6().clientMetadata,"metadata_type_video_length_seconds"),U=Math.min(d+S*1E3,p);t=U;J++;q.push(S);F.Vy(d,U)})}else this.N.forEach(function(F){F.init()}); this.Y!=null&&OE(this.mS.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.Y)}; g.E.qN=function(){this.XG.get().removeListener(this);this.T=null;this.N.forEach(function(k){k.release()})}; g.E.hQ=function(){if(this.T)d3("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.Y)});else{var k,p=(k=this.XG.get().Mb)==null?void 0:k.layoutId;LeM(this,p)}}; g.E.l$=function(k){var p,t,J,q;(J=this.T)==null||(q=J.Fu)==null||q.au((p=this.T)==null?void 0:(t=p.Fu)==null?void 0:t.e6(),k);this.T=null}; g.E.Je=function(k){var p=k.videoId;k=k.layoutId;if(p==="nPpU29QrbiU"){var t,J;OE(this.mS.get(),"ads_ssmplra_opdcs","vid."+p+";lid."+this.layout.layoutId+";smlid."+this.Y+";slrs."+!!this.T+";slrslid."+((t=this.T)==null?void 0:(J=t.Fu)==null?void 0:J.e6().layoutId))}if(this.T){var q;if(((q=this.T.Fu)==null?void 0:q.e6().layoutId)===k)d3("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:k});else{var F,d;(d=this.T.Fu)==null||d.au((F=this.T.Fu)==null?void 0:F.e6(),"normal"); LeM(this,k)}}}; g.E.dN=function(){}; g.E.Hm=function(){}; g.E.Tw=function(){}; g.E.WQ=function(){}; g.E.onFullscreenToggled=function(){};g.E=RgM.prototype;g.E.h5=function(){return this.slot}; g.E.e6=function(){return this.layout}; g.E.HS=function(){d3("Should not get exitStateMachine for DAI");return new UD}; g.E.Vy=function(k,p){var t=this;pk(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.GI=vy6(this.slot,this.layout,pk(this.layout.clientMetadata,"metadata_type_player_vars"),k,p,pk(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.NP.get(),this.JY.get(),function(){var J=Object,q=J.assign,F=pH(t.layout);var d=pk(t.slot.clientMetadata,"metadata_type_fulfilled_layout")||t.slot.fulfilledLayout;var S=pk(d.clientMetadata,"metadata_type_sub_layouts")|| d.N8;d=Object.assign({},pH(d),{adPlacementConfig:pk(d.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(S||[]).map(pH)});return q.call(J,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},F,{compositeLayout:d,hasSurveyOverlay:Oa(t.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:pk(t.layout.clientMetadata,"metadata_type_survey_overlay")})},this.mS.get()); this.FG.get().addListener(this);k=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds");p=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZM(this.layout.YI)&&kj(this.uG.get(),this.layout.layoutId,{o$:p,UK:k,listener:this});Ie0(this.callback,this.slot,this.layout);XB0(this.callback,this.slot,this.layout)}; g.E.init=function(){var k=pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),p=pk(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Vy(k,p)}; g.E.release=function(){this.FG.get().removeListener(this);ZM(this.layout.YI)&&pU(this.uG.get(),this.layout.layoutId);this.uh.get();Rh6(this.callback,this.slot,this.layout)}; g.E.startRendering=function(){var k=this;Oa(this.layout.clientMetadata,"metadata_type_survey_overlay")&&OE(this.mS.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Bp)d3("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:Oa(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:pk(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.Bp={uY:null,Gi:!1};this.T=!1;if(Msi(this.uh.get())){var p;this.adCpn= (p=UE(this.XG.get(),2))==null?void 0:p.clientPlaybackNonce}this.uh.get().j.G().experiments.Gb("html5_disable_sodar_for_tvhtml5")||c7T(this.slot,this.layout,this.tB.get());ZM(this.layout.YI)&&tSh(this.uG.get(),this.layout.layoutId);this.wy.VF("start");if(yf(this.uh.get())){p=xC(this.FG.get());var t=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=dy(this.FG.get(),2,!1);ny0(this.wy,this.Bp.uY,p,t,J,function(){return void zgh(k,"teois")},UE(this.XG.get(),1).u1)}VE(this.callback, this.slot,this.layout); Oa(this.layout.clientMetadata,"metadata_type_survey_overlay")&&OE(this.mS.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}}; g.E.au=function(k,p){var t=this;if(this.Bp){if(yf(this.uh.get()))if(this.GI===null)d3("Unexpected media sub layout exited without a timeline playback ID");else{k=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds");var J=WAL(this.FG.get(),this.GI);Msi(this.uh.get())&&this.adCpn===void 0&&d3("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:pk(this.layout.clientMetadata,"metadata_type_content_cpn")});Dqi(this.wy,J,this.adCpn);H6(this.wy,null,this.Bp.uY,k,J,UE(this.XG.get(), 1).u1,function(q){return void Bk0(t,q,"fue")},Msi(this.uh.get()))}this.Bp=null; W1(this.callback,this.slot,this.layout,this.T&&this.uh.get().j.G().D("dai_layout_log_skip_exit_reason")?"skipped":p)}else d3("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.E.Z9=function(){}; g.E.Sc=function(){}; g.E.I3=function(k){var p=this;if(this.Bp){if(vh(this.wy,"impression")){var t=xC(this.FG.get()),J=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds");xr(this.wy,t,k,this.Bp.uY,J,function(q){return void Bk0(p,q,"tpaqe")})}this.Bp.uY=k}}; g.E.WQ=function(k){var p=this;if(this.Bp){yf(this.uh.get())||this.Bp.Gi||(this.Bp.Gi=!0,k=new g.Ey(k.state,new g.Kr));var t=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=dy(this.FG.get(),2,!1);KW(this.wy,this.Bp.uY,k,t,J,UE(this.XG.get(),1).u1,!yf(this.uh.get()),function(){return void zgh(p,"teosc")})}}; g.E.onFullscreenToggled=function(k){wF9(this.wy,k)}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.Ek=function(){}; g.E.pX=function(k,p){var t;k=this.mS.get();var J="ti."+vh(this.wy,"impression")+";ts."+vh(this.wy,"skip")+";hp.",q;var F=!((q=this.wy.N.get("skip"))==null||!q.length);OE(k,"ads_dsr",J+F+";cpn."+pk(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((t=UE(this.XG.get(),2))==null?void 0:t.clientPlaybackNonce)+";sl."+(pk(p.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));vh(this.wy,"impression")&&this.wy.VF("skip");p=UE(this.XG.get(),1).u1;this.T=!0; this.NP.get().mK(p)||(this.T=!1,d3("Unexpected failure to skip a server stitched ad",this.slot,this.layout))}; g.E.onVolumeChange=function(){}; g.E.Hp=function(){}; g.E.PH=function(){}; g.E.lT=function(){}; g.E.Vj=function(){}; g.E.v9=function(){i4M(this.wy)}; g.E.HI=function(){QF0(this.wy)}; g.E.GO=function(){PFe(this.wy)}; g.E.dD=function(){Gg6(this.wy)}; g.E.kp=function(){IPh(this.wy)}; g.E.wD=function(){XFS(this.wy)}; g.E.tM=function(){}; g.E.vR=function(){};g.r(td,gm);g.E=td.prototype; g.E.Vy=function(){var k=this;pk(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var p=pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),t=pk(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.GI=vy6(this.slot,this.layout,pk(this.layout.clientMetadata,"metadata_type_player_vars"),p,t,pk(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.NP.get(),this.JY.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:p, exitMs:t,adPlacementConfig:pk(k.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.mS.get()); var J=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZM(this.layout.YI)&&kj(this.uG.get(),this.layout.layoutId,{o$:q,UK:J,listener:this})}; g.E.qN=function(){ZM(this.layout.YI)&&pU(this.uG.get(),this.layout.layoutId)}; g.E.hQ=function(){var k=this;if(this.Bp)d3("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Bp={uY:null,Gi:!1},c7T(this.slot,this.layout,this.tB.get()),this.wy.VF("start"),yf(this.uh.get())){var p=xC(this.FG.get()),t=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=dy(this.FG.get(),2,!1);ny0(this.wy,this.Bp.uY,p,t,J,function(){return void egu(k,"teois")},!1)}}; g.E.l$=function(){var k=this;if(this.Bp){if(yf(this.uh.get()))if(this.GI===null)d3("Unexpected single media layout exited without a timeline playback ID");else{var p=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=WAL(this.FG.get(),this.GI);Dqi(this.wy,t);H6(this.wy,null,this.Bp.uY,p,t,!1,function(J){return void hgj(k,J,"fue")})}this.Bp=null}else d3("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.E.Tw=function(k){var p=this;if(this.Bp){if(vh(this.wy,"impression")){var t=xC(this.FG.get()),J=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds");xr(this.wy,t,k,this.Bp.uY,J,function(q){return void hgj(p,q,"tpaqe")})}this.Bp.uY=k}}; g.E.WQ=function(k){var p=this;if(this.Bp){yf(this.uh.get())||this.Bp.Gi||(this.Bp.Gi=!0,k=new g.Ey(k.state,new g.Kr));var t=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=dy(this.FG.get(),2,!1);KW(this.wy,this.Bp.uY,k,t,J,!1,!yf(this.uh.get()),function(){return void egu(p,"teosc")})}}; g.E.onFullscreenToggled=function(k){wF9(this.wy,k)}; g.E.v9=function(){i4M(this.wy)}; g.E.HI=function(){QF0(this.wy)}; g.E.GO=function(){PFe(this.wy)}; g.E.dD=function(){Gg6(this.wy)}; g.E.kp=function(){IPh(this.wy)}; g.E.wD=function(){XFS(this.wy)};Jd.prototype.build=function(k,p,t,J){if(Oa(t.clientMetadata,"metadata_type_dai")){var q=pk(J.clientMetadata,"metadata_type_ad_placement_config");g$(J,{Yf:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),aG:["LAYOUT_TYPE_MEDIA"]})&&q!==void 0?(q=new mC(J.YI,this.mS,q,J.layoutId,null),q=new td(k,t,J,this.XG,this.NP,this.JY,this.H1,this.FG,q,this.mS,this.tB, this.T,this.uG,this.uh)):q=null;if(q)return q;a:{var F,d=(F=J.N8)!=null?F:pk(J.clientMetadata,"metadata_type_sub_layouts");q=pk(J.clientMetadata,"metadata_type_ad_placement_config");if(g$(J,{Yf:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],aG:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&d!==void 0&&q!==void 0){F=[];d=g.Z(d);for(var S=d.next();!S.done;S=d.next()){S=S.value;var U=pk(S.clientMetadata,"metadata_type_media_sub_layout_index");if(!g$(S,{Yf:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "), aG:["LAYOUT_TYPE_MEDIA"]})||U===void 0){k=null;break a}U=new mC(S.YI,this.mS,q,S.layoutId,U);F.push(new RgM(p,t,S,this.NP,U,this.FG,this.JY,this.uG,this.tB,this.uh,this.mS,this.XG))}p=new mC(J.YI,this.mS,q,J.layoutId);k=new j_(k,t,J,this.XG,this.NP,this.H1,this.FG,p,this.mS,this.T,F)}else k=null}if(k)return k}else if(k=VRi(k,p,t,J,this.J5,this.OX,this.Wj,this.mS,this.uG,this.tB,this.wS,this.XG,this.FG,this.b3,this.Qn,this.tj,this.MW,this.n$,this.uh,this.NP,this.context,this.HN))return k;throw new x0("Unsupported layout with type: "+ J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};o2.prototype.build=function(k,p,t,J){if(k=VRi(k,p,t,J,this.J5,this.OX,this.Wj,this.mS,this.uG,this.tB,this.wS,this.XG,this.FG,this.b3,this.Qn,this.tj,this.MW,this.n$,this.uh,this.NP,this.context,this.HN))return k;throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.r(aPw,Jt);g.r(qk,N7);qk.prototype.startRendering=function(k){var p=yC(this.wy),t={adsClientData:this.layout.lG};this.T.push(new aPw(pk(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),p,this.e6().layoutId,t));N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k)}; qk.prototype.K$=function(k,p){p!==this.layout.layoutId||k!=="survey-interstitial"&&k!=="button"||((k=pk(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?k.pX(this.slot,this.layout):d3("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}; qk.prototype.Ap=function(){N7.prototype.Ap.call(this)};var $a=new g.YY(320,63);g.r(SH,Jt);g.r(Ul,N7);g.E=Ul.prototype;g.E.I3=function(){}; g.E.WQ=function(){}; g.E.onFullscreenToggled=function(){}; g.E.MA=function(k){k&&wo(this.C,this.layout)}; g.E.VN=function(){}; g.E.Ek=function(k){var p=El(this.layout);if(this.Z=dp(k,D3u(this.FG.get())))p.onErrorCommand&&this.MW.get().executeCommand(p.onErrorCommand,this.layout.layoutId),wo(this.C,this.layout)}; g.E.onVolumeChange=function(){}; g.E.KV=function(){return this.e6().layoutId}; g.E.If=function(){return this.Z}; g.E.K$=function(k){this.X.K$(k);k==="in_video_overlay_close_button"&&wo(this.C,this.layout)}; g.E.Mp=function(k){k==="invideo-overlay"&&wo(this.C,this.layout)}; g.E.wJ=function(){this.X.wJ()}; g.E.startRendering=function(k){N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k);this.S.PY=this}; g.E.au=function(k,p){N7.prototype.au.call(this,k,p);uX(this.S,this)}; g.E.init=function(){N7.prototype.init.call(this);yEh(this.mS.get(),this);this.FG.get().addListener(this);this.T.push(new SH(El(this.layout),yC(this.wy),this.layout.layoutId,{adsClientData:this.layout.lG}))}; g.E.release=function(){N7.prototype.release.call(this);this.FG.get().removeListener(this);Yj9(this.mS.get(),this)}; g.E.tM=function(){}; g.E.vR=function(){};g.r(fH,N7);g.E=fH.prototype;g.E.init=function(){N7.prototype.init.call(this);yEh(this.mS.get(),this);this.FG.get().addListener(this);this.T.push(new SH(El(this.layout),yC(this.wy),this.layout.layoutId,{adsClientData:this.layout.lG}))}; g.E.wJ=function(){this.X.wJ()}; g.E.startRendering=function(k){N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k);this.S.PY=this}; g.E.au=function(k,p){N7.prototype.au.call(this,k,p);uX(this.S,this)}; g.E.K$=function(k){this.X.K$(k);k==="in_video_overlay_close_button"&&wo(this.C,this.layout)}; g.E.RN=function(k){if(k==="invideo-overlay"){k=Ooi(this.B,this.layout);k=g.Z(k);for(var p=k.next();!p.done;p=k.next())p.value.stop()}}; g.E.Mp=function(k){k==="invideo-overlay"&&wo(this.C,this.layout)}; g.E.mN=function(k){if(k==="invideo-overlay"){k=Ooi(this.B,this.layout);k=g.Z(k);for(var p=k.next();!p.done;p=k.next())p.value.start()}}; g.E.I3=function(){}; g.E.WQ=function(){}; g.E.onFullscreenToggled=function(){}; g.E.MA=function(k){k&&wo(this.C,this.layout)}; g.E.VN=function(){}; g.E.Ek=function(k){var p=El(this.layout),t=p.contentSupportedRenderer.imageOverlayAdContentRenderer,J=D3u(this.FG.get());a:{t=t.image;t=t===void 0?null:t;if(t!=null&&(t=t.thumbnail,t!=null&&t.thumbnails!=null&&t.thumbnails.length!=0&&t.thumbnails[0].width!=null&&t.thumbnails[0].height!=null)){t=new g.YY(t.thumbnails[0].width||0,t.thumbnails[0].height||0);break a}t=new g.YY(0,0)}if(this.Z=dp(k,J,t))p.onErrorCommand&&this.MW.get().executeCommand(p.onErrorCommand,this.layout.layoutId),wo(this.C,this.layout)}; g.E.onVolumeChange=function(){}; g.E.KV=function(){return this.e6().layoutId}; g.E.If=function(){return this.Z}; g.E.release=function(){N7.prototype.release.call(this);this.FG.get().removeListener(this);Yj9(this.mS.get(),this)}; g.E.tM=function(){}; g.E.vR=function(){};bT.prototype.K$=function(k){k==="ad-info-hover-text-button"&&((this.T=this.FG.get().En(1))||this.FG.get().pauseVideo())}; bT.prototype.wJ=function(){this.T||this.FG.get().resumeVideo(1)};g.r(lPi,Jt);g.r(Nk,N7);g.E=Nk.prototype;g.E.init=function(){N7.prototype.init.call(this);this.FG.get().addListener(this)}; g.E.startRendering=function(k){var p=pk(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.T.push(new lPi(p,this.layout.layoutId,{adsClientData:this.layout.lG}));N7.prototype.startRendering.call(this,k);this.callback.Hp(this.slot,k)}; g.E.Hp=function(){}; g.E.K$=function(k,p){p!==this.layout.layoutId||k!=="ad-info-icon-button"&&k!=="ad-info-dialog-close-button"||((p=pk(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?k==="ad-info-icon-button"?p.lT(this.slot,this.layout):k==="ad-info-dialog-close-button"&&p.Vj(this.slot,this.layout):d3("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:k}))}; g.E.Ek=function(k){k.width<450&&wo(this.C,this.layout)}; g.E.onVolumeChange=function(){}; g.E.I3=function(){}; g.E.onFullscreenToggled=function(){}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.WQ=function(){}; g.E.tM=function(){}; g.E.vR=function(){}; g.E.Ap=function(){N7.prototype.Ap.call(this)}; g.E.release=function(){N7.prototype.release.call(this);this.FG.get().removeListener(this)};jF6.prototype.build=function(k,p,t,J){if(p=F5(k,t,J,this.EF,this.FG,this.mS,this.C,this.T,this.uh))return p;if(g$(J,uuL()))return new fH(t,J,this.mS,this.uG,this.EF,k,this.Y,this.N,this.FG,this.MW,this.uh,this.T,new bT(this.FG));if(g$(J,gyu()))return new Ul(t,J,this.mS,this.uG,this.EF,k,this.Y,this.FG,this.MW,this.uh,this.T,new bT(this.FG));if(g$(J,{Yf:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],aG:["LAYOUT_TYPE_SURVEY"]}))return new Nk(t,J,k,this.EF,this.Y,this.FG,this.uh);if(g$(J, {Yf:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],aG:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new qk(t,J,k,this.EF,this.mS);if(g$(J,oMe()))return new kg(t,J,k,this.EF,this.FG,this.uh);throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};O4i.prototype.build=function(k,p,t,J){if(p=F5(k,t,J,this.EF,this.FG,this.mS,this.C,this.T,this.uh))return p;if(g$(J,uuL()))return new fH(t,J,this.mS,this.uG,this.EF,k,this.Y,this.N,this.FG,this.MW,this.uh,this.T,new bT(this.FG));if(g$(J,gyu()))return new Ul(t,J,this.mS,this.uG,this.EF,k,this.Y,this.FG,this.MW,this.uh,this.T,new bT(this.FG));throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory."); };g.r(yH,Hh);yH.prototype.startRendering=function(k){Hh.prototype.startRendering.call(this,k);if(k.renderingContent?xqw(k,UE(this.XG.get(),2)||void 0):pk(this.layout.clientMetadata,"metadata_ad_video_is_listed"))k=k.renderingContent?H1i(k,UE(this.XG.get(),2)||void 0):pk(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.Rh.get().j.zb("onAdMetadataAvailable",k)};H4S.prototype.build=function(k,p,t,J){if(g$(J,Kei())||J.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(J.renderingContent,tD)!==void 0)return new yH(k,t,J,this.EF,this.FG,this.mS,this.Y,this.Rh,this.T,this.XG);throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};xTT.prototype.build=function(k,p,t,J){if(g$(J,Kei()))return new yH(k,t,J,this.EF,this.FG,this.mS,this.Y,this.Rh,this.T,this.XG);if(k=F5(k,t,J,this.EF,this.FG,this.mS,this.Y,this.T,this.uh))return k;throw new x0("Unsupported layout with type: "+J.layoutType+" and client metadata: "+t9(J.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};XV.prototype.clone=function(k){var p=this;return new XV(function(){return p.triggerId},k)};R2.prototype.clone=function(k){var p=this;return new R2(function(){return p.triggerId},k)};Bv.prototype.clone=function(k){var p=this;return new Bv(function(){return p.triggerId},k)};zz.prototype.clone=function(k){var p=this;return new zz(function(){return p.triggerId},k)};eH.prototype.clone=function(k){var p=this;return new eH(function(){return p.triggerId},k)};hd.prototype.clone=function(k){var p=this;return new hd(function(){return p.triggerId},k)};g.r(nJ,g.R);var NLS={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15, "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var HT={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],l3:[],layoutExitUserInputSubmittedTriggers:[]};var Q0={aCT:1,U_h:2,JPh:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.r(No,g.R);g.E=No.prototype;g.E.Ov=function(k){if(this.T)d3("Unexpected multiple fetch instructions for the current content");else{this.T=k;k=g.Z(this.H1.get().eK);for(var p=k.next();!p.done;p=k.next())io6(this,this.T,p.value)}}; g.E.Gz=function(k){if(!this.T){var p;(p=this.NP)==null||p.get().bV(k.identifier);return!1}io6(this,this.T,k);return!0}; g.E.jD=function(){}; g.E.hM=function(k){this.T&&this.T.contentCpn!==k&&(d3("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:k,fetchInstructionsCpn:this.T.contentCpn}),this.T=null)}; g.E.Lo=function(k){this.T&&this.T.contentCpn!==k&&d3("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:k,fetchInstructionsCpn:this.T.contentCpn},!0);this.T=null}; g.E.Ap=function(){g.R.prototype.Ap.call(this);this.T=null};var CU=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],gkS=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.r(TO,g.R);g.E=TO.prototype;g.E.Hp=function(k,p){var t=this;if(p.layoutType==="LAYOUT_TYPE_MEDIA"&&(Ko(p,this.S)||Ko(p,gkS))){var J=UE(this.XG.get(),2),q=this.C(p,J||void 0);q?S0(this.N.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var F=[WXe(t.T.get(),q.contentCpn,q.Pb,function(d){return t.X(d.slotId,"core",q,$f(t.y4.get(),d))},q.inPlayerSlotId)]; q.instreamAdPlayerUnderlayRenderer&&u9(t.uh.get())&&F.push(I$0(t,q,q.instreamAdPlayerUnderlayRenderer));return F}):d3("Expected MediaLayout to carry valid opportunity on entered",k,p)}}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.Sy=function(){}; g.E.O7=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.PH=function(){};g.r(ro,g.R);ro.prototype.hM=function(k,p,t,J,q,F,d){var S=this,U=UE(this.XG.get(),1);!ac(this.uh.get(),"html5_ssap_play_cached_preroll")&&U.iB?Fl(this.FG.get()):(zAh(this.Qn.get(),J),S0(this.Y.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Idh(S.T.get(),J,q,F,k,p,d,U,"")}),hw0(this.N))}; ro.prototype.Lo=function(){};g.r(Zt,g.R);g.r(Cx,g.R);Cx.prototype.onCueRangeEnter=function(){}; Cx.prototype.onCueRangeExit=function(k){var p=this,t=this.T.get(k);t&&(this.T.delete(k),this.b3.get().removeCueRange(k),S0(this.Y.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var J=p.N.get();J=Un(J.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},t,{slotId:J,slotEntryTrigger:t.slotEntryTrigger?ofj(t.slotId,J,t.slotEntryTrigger):void 0,slotFulfillmentTriggers:qq9(t.slotId,J,t.slotFulfillmentTriggers),slotExpirationTriggers:qq9(t.slotId,J,t.slotExpirationTriggers)})]}, t.slotId))}; Cx.prototype.hM=function(){for(var k=g.Z(this.T.keys()),p=k.next();!p.done;p=k.next())p=p.value,this.b3.get().removeCueRange(p);this.T.clear()}; Cx.prototype.Lo=function(){};g.r(Ai,g.R);g.E=Ai.prototype;g.E.tD=function(){}; g.E.bD=function(k){var p=this;g.lk(g.OA(),function(){var t=p.T.get(k);t&&d3("Expected layouts to be properly unscheduled",k,void 0,{slotType:k.slotType,layoutTypes:[].concat(g.m(t)).map(function(J){return J.layoutType})})},0)}; g.E.Sy=function(){}; g.E.O7=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(k,p){this.T.has(k)||this.T.set(k,new Set);this.T.get(k).add(p)}; g.E.ox=function(k,p){this.K7.has(k)&&this.K7.get(k)===p&&d3("Unscheduled a Layout that is currently entered.",k,p);if(this.T.has(k)){var t=this.T.get(k);t.has(p)?(t.delete(p),t.size===0&&this.T.delete(k)):d3("Trying to unscheduled a Layout that was not scheduled.",k,p)}else d3("Trying to unscheduled a Layout that was not scheduled.",k,p)}; g.E.Hp=function(k,p){this.K7.set(k,p)}; g.E.PH=function(k){this.K7.delete(k)}; g.E.Ix=function(){};g.E=Ryw.prototype;g.E.init=function(){}; g.E.h5=function(){return this.slot}; g.E.eT=function(){this.callback.Sy(this.slot)}; g.E.hq=function(){this.callback.Mh(this.slot)}; g.E.release=function(){};Wl.prototype.build=function(k,p){return new Ryw(k,p)};g.E=BAM.prototype;g.E.init=function(){}; g.E.h5=function(){return this.slot}; g.E.eT=function(){Ee(this.FG.get(),"ad-showing");this.callback.Sy(this.slot)}; g.E.hq=function(){this.callback.Mh(this.slot);Sb(this.FG.get(),"ad-showing")}; g.E.release=function(){};g.E=zyu.prototype;g.E.init=function(){}; g.E.h5=function(){return this.slot}; g.E.eT=function(){Ee(this.FG.get(),"ad-showing");Ee(this.FG.get(),"ad-interrupting");this.Y=this.FG.get().isAtLiveHead();this.T=Math.ceil(Date.now()/1E3);this.callback.Sy(this.slot)}; g.E.hq=function(){Sb(this.FG.get(),"ad-showing");Sb(this.FG.get(),"ad-interrupting");var k=this.Y?Infinity:dy(this.FG.get(),1,!0)+Math.floor(Date.now()/1E3)-this.T;this.FG.get().j.seekTo(k,void 0,void 0,1);this.callback.Mh(this.slot)}; g.E.release=function(){};g.E=eyi.prototype;g.E.init=function(){}; g.E.h5=function(){return this.slot}; g.E.eT=function(){Ee(this.FG.get(),"ad-showing");Ee(this.FG.get(),"ad-interrupting");this.callback.Sy(this.slot)}; g.E.hq=function(){Fl(this.FG.get());Sb(this.FG.get(),"ad-showing");Sb(this.FG.get(),"ad-interrupting");this.callback.Mh(this.slot)}; g.E.release=function(){Fl(this.FG.get())};Dt.prototype.build=function(k,p){if(J9(p,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new BAM(k,p,this.FG);if(p.slotEntryTrigger instanceof cv&&J9(p,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new zyu(k,p,this.FG);if(J9(p,[],"SLOT_TYPE_PLAYER_BYTES"))return new eyi(k,p,this.FG);throw new K("Unsupported slot with type "+p.slotType+" and client metadata: "+(t9(p.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.r(sX,g.R);sX.prototype.T=function(k){for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next()){J=J.value;var q=J.trigger;q instanceof I2&&J.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&q.triggeringLayoutId===k&&p.push(J)}p.length?DJ(this.ll(),p):d3("Mute requested but no registered triggers can be activated.")};g.r(vl,sX);g.E=vl.prototype;g.E.K$=function(k,p){if(p)if(k==="skip-button"){k=[];for(var t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next()){J=J.value;var q=J.trigger;q instanceof I2&&J.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&q.triggeringLayoutId===p&&k.push(J)}k.length&&DJ(this.ll(),k)}else ac(this.uh.get(),"supports_multi_step_on_desktop")?k==="ad-action-submit-survey"&&Lx(this,p):k==="survey-submit"?Lx(this,p):k==="survey-single-select-answer-button"&&Lx(this,p)}; g.E.Xt=function(k){sX.prototype.T.call(this,k)}; g.E.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof a2||p instanceof I2))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in AdUxUpdateTriggerAdapter.");this.OQ.set(p.triggerId,new gp(k,p,t,J))}; g.E.LU=function(k){this.OQ.delete(k.triggerId)}; g.E.RN=function(){}; g.E.mN=function(){}; g.E.Mp=function(){};g.r(cl,g.R);g.E=cl.prototype; g.E.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof XV||p instanceof R2||p instanceof Bv||p instanceof zz||p instanceof eH||p instanceof hd||p instanceof iT||p instanceof mZ||p instanceof Wv||p instanceof VH||p instanceof wp||p instanceof Ad))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in AdsControlFlowEventTriggerAdapter");k=new gp(k,p,t,J);this.OQ.set(p.triggerId,k);p instanceof eH&&this.X.has(p.triggeringSlotId)&&DJ(this.T(),[k]);p instanceof XV&&this.N.has(p.triggeringSlotId)&&DJ(this.T(),[k]);p instanceof mZ&&this.Y.has(p.triggeringLayoutId)&&DJ(this.T(),[k])}; g.E.LU=function(k){this.OQ.delete(k.triggerId)}; g.E.tD=function(k){this.X.add(k.slotId);for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next())J=J.value,J.trigger instanceof eH&&k.slotId===J.trigger.triggeringSlotId&&p.push(J);p.length>0&&DJ(this.T(),p)}; g.E.bD=function(k){this.X.delete(k.slotId);for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next()){J=J.value;var q=J.trigger;q instanceof hd&&q.triggeringSlotId===k.slotId&&p.push(J)}p.length>0&&DJ(this.T(),p)}; g.E.O7=function(k){for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next()){J=J.value;var q=J.trigger;q instanceof iT&&q.slotType===k.slotType&&q.T!==k.slotId&&p.push(J)}p.length>0&&DJ(this.T(),p)}; g.E.Sy=function(k){this.N.add(k.slotId);for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next())J=J.value,J.trigger instanceof XV&&k.slotId===J.trigger.triggeringSlotId&&p.push(J);p.length>0&&DJ(this.T(),p)}; g.E.Mh=function(k){this.N.delete(k.slotId);this.C.add(k.slotId);for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next())if(J=J.value,J.trigger instanceof R2)k.slotId===J.trigger.triggeringSlotId&&p.push(J);else if(J.trigger instanceof Ad){var q=J.trigger;k.slotId===q.slotId&&this.Y.has(q.triggeringLayoutId)&&p.push(J)}p.length>0&&DJ(this.T(),p)}; g.E.xi=function(k){for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next())J=J.value,J.trigger instanceof Bv&&k.slotId===J.trigger.triggeringSlotId&&p.push(J);p.length>0&&DJ(this.T(),p)}; g.E.Rs=function(k){for(var p=[],t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next())J=J.value,J.trigger instanceof zz&&k.slotId===J.trigger.triggeringSlotId&&p.push(J);p.length>0&&DJ(this.T(),p)}; g.E.gj=function(k,p){this.S.add(p.layoutId)}; g.E.ox=function(k,p){this.S.delete(p.layoutId)}; g.E.Hp=function(k,p){this.Y.add(p.layoutId);for(var t=[],J=g.Z(this.OQ.values()),q=J.next();!q.done;q=J.next())if(q=q.value,q.trigger instanceof mZ)p.layoutId===q.trigger.triggeringLayoutId&&t.push(q);else if(q.trigger instanceof wp){var F=q.trigger;k.slotType===F.slotType&&p.layoutType===F.layoutType&&p.layoutId!==F.T&&t.push(q)}else q.trigger instanceof Ad&&(F=q.trigger,p.layoutId===F.triggeringLayoutId&&this.C.has(F.slotId)&&t.push(q));t.length>0&&DJ(this.T(),t)}; g.E.PH=function(k,p,t){this.Y.delete(p.layoutId);k=[];for(var J=g.Z(this.OQ.values()),q=J.next();!q.done;q=J.next())if(q=q.value,q.trigger instanceof Wv&&p.layoutId===q.trigger.triggeringLayoutId&&k.push(q),q.trigger instanceof VH){var F=q.trigger;p.layoutId===F.triggeringLayoutId&&F.T.includes(t)&&k.push(q)}k.length>0&&DJ(this.T(),k)}; g.E.Ix=function(){}; g.E.hM=function(){this.C.clear()}; g.E.Lo=function(){};g.r(nx,g.R);nx.prototype.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof ZX))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in CloseRequestedTriggerAdapter");this.OQ.set(p.triggerId,new gp(k,p,t,J))}; nx.prototype.LU=function(k){this.OQ.delete(k.triggerId)};g.r(iA,g.R);iA.prototype.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof rp||p instanceof Pv))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.OQ.set(p.triggerId,new gp(k,p,t,J))}; iA.prototype.LU=function(k){this.OQ.delete(k.triggerId)}; iA.prototype.hM=function(k){for(var p=[],t=p.push,J=t.apply,q=[],F=g.Z(this.OQ.values()),d=F.next();!d.done;d=F.next())d=d.value,d.trigger instanceof rp&&d.trigger.EA===k&&q.push(d);J.call(t,p,g.m(q));t=p.push;J=t.apply;q=[];F=g.Z(this.OQ.values());for(d=F.next();!d.done;d=F.next())d=d.value,d.trigger instanceof Pv&&d.trigger.T!==k&&q.push(d);J.call(t,p,g.m(q));p.length&&DJ(this.T(),p)}; iA.prototype.Lo=function(k){for(var p=[],t=p.push,J=t.apply,q=[],F=g.Z(this.OQ.values()),d=F.next();!d.done;d=F.next()){d=d.value;var S=d.trigger;S instanceof Pv&&S.T===k&&q.push(d)}J.call(t,p,g.m(q));p.length&&DJ(this.T(),p)};g.r(Qf,g.R);g.E=Qf.prototype;g.E.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");var q="adtriggercuerange:"+p.triggerId;if(p instanceof cv)hyw(this,k,p,t,J,q,p.T.start,p.T.end,p.EA,p.visible);else if(p instanceof CH)hyw(this,k,p,t,J,q,0x7ffffffffffff,0x8000000000000,p.EA,p.visible);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in CueRangeTriggerAdapter");}; g.E.LU=function(k){var p=this.OQ.get(k.triggerId);p&&this.b3.get().removeCueRange(p.cueRangeId);this.OQ.delete(k.triggerId)}; g.E.onCueRangeEnter=function(k){var p=a$_(this,k);if(p&&(p=this.OQ.get(p)))if(g.u(xC(this.FG.get()),32))this.T.add(p.cueRangeId);else{var t=p==null?void 0:p.Mw.trigger;if(t instanceof cv||t instanceof CH){if(r2(this.context.uh.get())){var J=p.Mw.slot,q=p.Mw.layout,F={};this.context.LH.TA("cre",(F.ca=p.Mw.category,F.tt=t.triggerType,F.st=J.slotType,F.lt=q==null?void 0:q.layoutType,F.cid=k,F))}DJ(this.Y(),[p.Mw])}}}; g.E.onCueRangeExit=function(k){(k=a$_(this,k))&&(k=this.OQ.get(k))&&this.T.delete(k.cueRangeId)}; g.E.WQ=function(k){if(SV(k,16)<0){k=g.Z(this.T);for(var p=k.next();!p.done;p=k.next())this.onCueRangeEnter(p.value,!0);this.T.clear()}}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Hp=function(){}; g.E.PH=function(){}; g.E.Ix=function(){}; g.E.I3=function(){}; g.E.onFullscreenToggled=function(){}; g.E.MA=function(){}; g.E.VN=function(){}; g.E.Ek=function(){}; g.E.onVolumeChange=function(){}; g.E.tM=function(){}; g.E.vR=function(){};g.r(Pl,g.R);g.E=Pl.prototype; g.E.z6=function(k,p,t,J){if(this.Y.has(p.triggerId)||this.N.has(p.triggerId))throw new K("Tried to re-register the trigger.");k=new gp(k,p,t,J);if(k.trigger instanceof vv)this.Y.set(k.trigger.triggerId,k);else if(k.trigger instanceof DX)this.N.set(k.trigger.triggerId,k);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+k.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.Y.has(k.trigger.triggerId)&&k.slot.slotId===this.T&&DJ(this.C(),[k])}; g.E.LU=function(k){this.Y.delete(k.triggerId);this.N.delete(k.triggerId)}; g.E.Je=function(k){k=k.slotId;if(this.T!==k){var p=[];this.T!=null&&p.push.apply(p,g.m(M$9(this.N,this.T)));k!=null&&p.push.apply(p,g.m(M$9(this.Y,k)));this.T=k;p.length&&DJ(this.C(),p)}}; g.E.dN=function(){}; g.E.Hm=function(){};g.r(GO,g.R);g.E=GO.prototype;g.E.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof QH))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.OQ.set(p.triggerId,new gp(k,p,t,J))}; g.E.LU=function(k){this.OQ.delete(k.triggerId)}; g.E.Hp=function(){}; g.E.PH=function(){}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){};g.r(IH,g.R);g.E=IH.prototype;g.E.Ix=function(k,p){for(var t=[],J=g.Z(this.OQ.values()),q=J.next();!q.done;q=J.next()){q=q.value;var F=q.trigger;F.opportunityType===k&&(F.associatedSlotId&&F.associatedSlotId!==p||t.push(q))}t.length&&DJ(this.T(),t)}; g.E.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof pRS))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in OpportunityEventTriggerAdapter");this.OQ.set(p.triggerId,new gp(k,p,t,J))}; g.E.LU=function(k){this.OQ.delete(k.triggerId)}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Hp=function(){}; g.E.PH=function(){};g.r(XA,g.R);g.E=XA.prototype;g.E.z6=function(k,p,t,J){k=new gp(k,p,t,J);if(p instanceof sl||p instanceof nH||p instanceof LH||p instanceof Gz||p instanceof kM6){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");this.OQ.set(p.triggerId,k);t=t.slotId;k=this.N.has(t)?this.N.get(t):new Set;k.add(p);this.N.set(t,k)}else throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in PrefetchTriggerAdapter");}; g.E.LU=function(k){this.OQ.delete(k.triggerId)}; g.E.tD=function(k){var p=k.slotId;if(this.N.has(p)){k=0;var t=new Set;p=g.Z(this.N.get(p));for(var J=p.next();!J.done;J=p.next())if(J=J.value,t.add(J.triggerId),J instanceof nH&&J.breakDurationMs){k=J.breakDurationMs;break}RH(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",k,t)}}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Hp=function(){}; g.E.PH=function(){}; g.E.Ix=function(){}; g.E.Gz=function(k){if(this.T){this.Y&&this.Y.stop();this.C&&g.Oc(this.C);k=k.NR*1E3+1E3;for(var p=0,t=g.Z(this.OQ.values()),J=t.next();!J.done;J=t.next())J=J.value.trigger,J instanceof sl&&J.breakDurationMs<=k&&J.breakDurationMs>p&&(p=J.breakDurationMs);k=p;if(k>0)return RH(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",k,new Set,!0),RH(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",k,new Set,!1),!0}return!1}; g.E.jD=function(){}; g.E.hM=function(k){this.T&&this.T.contentCpn!==k?(d3("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:k,fetchInstructionsCpn:this.T.contentCpn}),Bl(this)):uU_(this)}; g.E.Lo=function(k){this.T&&this.T.contentCpn!==k&&d3("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:k,fetchInstructionsCpn:this.T.contentCpn},!0);Bl(this)}; g.E.Ov=function(k){var p=this;if(this.T)d3("Unexpected multiple fetch instructions for the current content");else{this.T=k;k=jAj(k);this.Y=new g.jF(function(){uU_(p)},k?k:6E5); this.Y.start();this.C=new g.jF(function(){p.T&&(p.Y&&(p.Y.stop(),p.Y.start()),g0e(p,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},l$M(this.T)); k=this.FG.get().getCurrentTimeSec(1,!1);for(var t=g.Z(this.H1.get().eK),J=t.next();!J.done;J=t.next())J=J.value,OE(this.mS.get(),"nocache","ct."+Date.now()+";cmt."+k+";d."+J.NR.toFixed(3)+";tw."+(J.startSecs-k)+";cid."+J.identifier+";")}}; g.E.Ap=function(){g.R.prototype.Ap.call(this);Bl(this)};g.r(zO,g.R);g.E=zO.prototype;g.E.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof Mk))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.OQ.set(p.triggerId,new gp(k,p,t,J));k=this.T.has(p.triggeringLayoutId)?this.T.get(p.triggeringLayoutId):new Set;k.add(p);this.T.set(p.triggeringLayoutId,k)}; g.E.LU=function(k){this.OQ.delete(k.triggerId);if(!(k instanceof Mk))throw new K("Incorrect TriggerType: Tried to unregister trigger of type "+k.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var p=this.Y.get(k.triggerId);p&&(p.dispose(),this.Y.delete(k.triggerId));if(p=this.T.get(k.triggeringLayoutId))p.delete(k),p.size===0&&this.T.delete(k.triggeringLayoutId)}; g.E.tD=function(){}; g.E.bD=function(){}; g.E.O7=function(){}; g.E.Sy=function(){}; g.E.Mh=function(){}; g.E.xi=function(){}; g.E.Rs=function(){}; g.E.gj=function(){}; g.E.ox=function(){}; g.E.Ix=function(){}; g.E.Hp=function(k,p){var t=this;if(this.T.has(p.layoutId)){k=this.T.get(p.layoutId);k=g.Z(k);var J=k.next();for(p={};!J.done;p={WA:void 0},J=k.next())p.WA=J.value,J=new g.jF(function(q){return function(){var F=t.OQ.get(q.WA.triggerId);DJ(t.N(),[F])}}(p),p.WA.durationMs),J.start(),this.Y.set(p.WA.triggerId,J)}}; g.E.PH=function(){};g.r(eg,g.R);eg.prototype.z6=function(k,p,t,J){if(this.OQ.has(p.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(p instanceof Ya))throw new K("Incorrect TriggerType: Tried to register trigger of type "+p.triggerType+" in VideoTransitionTriggerAdapter.");this.OQ.set(p.triggerId,new gp(k,p,t,J))}; eg.prototype.LU=function(k){this.OQ.delete(k.triggerId)};go.prototype.gi=function(k){return k.kind==="AD_PLACEMENT_KIND_START"};g.r(jg,g.R);g.E=jg.prototype;g.E.logEvent=function(k){this.KM(k)}; g.E.Ay=function(k,p,t){this.KM(k,void 0,void 0,void 0,p,void 0,void 0,void 0,p.adSlotLoggingData,void 0,void 0,t)}; g.E.LL=function(k,p,t,J){this.KM(k,void 0,void 0,void 0,p,t?t:void 0,void 0,void 0,p.adSlotLoggingData,t?t.adLayoutLoggingData:void 0,void 0,J)}; g.E.XL=function(k,p,t,J){ac(this.uh.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+k,"trigger:",t,"slot:",p,"layout:",J);FT(this.T.get())&&this.KM(k,void 0,void 0,void 0,p,J?J:void 0,void 0,t,p.adSlotLoggingData,J?J.adLayoutLoggingData:void 0)}; g.E.ZN=function(k,p,t,J,q){this.KM(k,p,t,J,void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)}; g.E.o9=function(k,p,t,J){this.KM("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,t,J,void 0,void 0,t.adSlotLoggingData,J?J.adLayoutLoggingData:void 0,{errorType:k,errorMessage:p})}; g.E.KM=function(k,p,t,J,q,F,d,S,U,f,b,N){var y=this;N=N===void 0?0:N;ac(this.uh.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+k,"slot:",q,"layout:",F,"ping:",d,"Opportunity:",{opportunityType:p,associatedSlotId:t,Zwb:J,e2h:S,adSlotLoggingData:U,adLayoutLoggingData:f});try{var Y=function(){if(!y.uh.get().j.G().D("html5_disable_client_tmp_logs")&&k!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){k||d3("Empty PACF event type",q,F);var T=FT(y.T.get()),A={eventType:k,eventOrder:++y.eventCount},V={}; q&&(V.slotData=qU(T,q));F&&(V.layoutData=wBq(T,F));d&&(V.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:d.T.serializedAdPingMetadata,pingIndex:d.index});S&&(V.triggerData=oc(S.trigger,S.category));p&&(V.opportunityData=iVh(T,p,t,J));T={organicPlaybackContext:{contentCpn:UE(y.XG.get(),1).clientPlaybackNonce}};T.organicPlaybackContext.isLivePlayback=UE(y.XG.get(),1).m2;var D;T.organicPlaybackContext.isMdxPlayback=(D=UE(y.XG.get(),1))==null?void 0:D.isMdxPlayback; var v;if((v=UE(y.XG.get(),1))==null?0:v.daiEnabled)T.organicPlaybackContext.isDaiContent=!0;var w;if(D=(w=UE(y.XG.get(),2))==null?void 0:w.clientPlaybackNonce)T.adVideoPlaybackContext={adVideoCpn:D};T&&(V.externalContext=T);A.adClientData=V;U&&(A.serializedSlotAdServingData=U.serializedSlotAdServingDataEntry);f&&(A.serializedAdServingData=f.serializedAdServingDataEntry);b&&(A.errorInfo=b);g.qv("adsClientStateChange",{adsClientEvent:A})}}; N&&N>0?g.lk(g.OA(),function(){return Y()},N):Y()}catch(T){ac(this.uh.get(),"html5_log_pacf_logging_errors")&&g.lk(g.OA(),function(){d3(T instanceof Error?T:String(T),q,F,{pacf_message:"exception during pacf logging"})})}};var utn=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.r(OX,jg);g.E=OX.prototype; g.E.Ay=function(k,p,t){jg.prototype.Ay.call(this,k,p,t);r2(this.uh.get())&&(t={},this.context.LH.TA("pacf",(t.et=k,t.st=p.slotType,t.si=p.slotId,t)))}; g.E.LL=function(k,p,t,J){var q=utn.has(k);jg.prototype.LL.call(this,k,p,t,J);r2(this.uh.get(),q)&&(J={},this.context.LH.TA("pacf",(J.et=k,J.st=p.slotType,J.si=p.slotId,J.lt=t==null?void 0:t.layoutType,J.li=t==null?void 0:t.layoutId,J.p_ac=t==null?void 0:t.layoutId,J)))}; g.E.ZN=function(k,p,t,J,q){jg.prototype.ZN.call(this,k,p,t,J,q);r2(this.uh.get())&&(t={},this.context.LH.TA("pacf",(t.et=k,t.ot=p,t.ss=J==null?void 0:J.length,t)))}; g.E.XL=function(k,p,t,J){jg.prototype.XL.call(this,k,p,t,J);if(r2(this.uh.get())){var q={};this.context.LH.TA("pacf",(q.et=k,q.tt=t.trigger.triggerType,q.tc=t.category,q.st=p.slotType,q.si=p.slotId,q.lt=J==null?void 0:J.layoutType,q.li=J==null?void 0:J.layoutId,q.p_ac=J==null?void 0:J.layoutId,q))}}; g.E.o9=function(k,p,t,J){jg.prototype.o9.call(this,k,p,t,J);if(r2(this.uh.get(),!0)){var q={};this.context.LH.TA("perror",(q.ert=k,q.erm=p,q.st=t.slotType,q.si=t.slotId,q.lt=J==null?void 0:J.layoutType,q.li=J==null?void 0:J.layoutId,q.p_ac=J==null?void 0:J.layoutId,q))}}; g.E.KM=function(k,p,t,J,q,F,d,S,U,f,b){if(g.mq(this.uh.get().j.G())){var N=this.uh.get();N=g.dU(N.j.G().experiments,"H5_async_logging_delay_ms")}else N=void 0;jg.prototype.KM.call(this,k,p,t,J,q,F,d,S,U,f,b,N)};Kx.prototype.clear=function(){this.T.clear()};kI.prototype.resolve=function(k){Hl(this,k)}; kI.prototype.reject=function(k){xe(this,k)}; kI.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; kI.prototype.wait=function(){var k=this;return function t(){return fuh(t,function(J){if(J.T==1)return g.mj(J,2),g.n(J,{C_:k},4);if(J.T!=2)return J.return(J.Y);g.Du(J);return g.s0(J,0)})}()}; var mwT=lP(function(k){return pj(k)?k instanceof kI:!1});Object.freeze({G3Y:function(k){var p=bkw(k);return dY(fJM(p,function(t){return p[t].currentState==="fail"}),function(t){return Number.isNaN(t)?p.map(function(J){return J.state().result}):p[t]})}, Hwb:function(k){var p=bkw(k);return dY(fJM(p),function(){return p.map(function(t){return t.state()})})}});var UJ=window.NJp||"en";yp.prototype.aP=function(k){this.client=k}; yp.prototype.T=function(){this.clear();this.csn=g.mP()}; yp.prototype.clear=function(){this.N.clear();this.Y.clear();this.C.clear();this.csn=null};To.prototype.aP=function(k){g.j5(YI().aP).bind(YI())(k)}; To.prototype.clear=function(){g.j5(YI().clear).bind(YI())()};g.E=rY.prototype;g.E.aP=function(k){this.client=k}; g.E.hF=function(k,p){var t=this;p=p===void 0?{}:p;g.j5(function(){var J,q,F,d=((J=g.e(k==null?void 0:k.commandMetadata,g.ZO))==null?void 0:J.rootVe)||((q=g.e(k==null?void 0:k.commandMetadata,S$S))==null?void 0:(F=q.screenVisualElement)==null?void 0:F.uiType);if(d){J=g.e(k==null?void 0:k.commandMetadata,cjJ);if(J==null?0:J.parentTrackingParams){var S=g.Ze(J.parentTrackingParams);if(J.parentCsn)var U=J.parentCsn}else p.clickedVisualElement?S=p.clickedVisualElement:k.clickTrackingParams&&(S=g.Ze(k.clickTrackingParams)); a:{J=g.e(k,g.ub);q=g.e(k,mWa);if(J){if(q=y9S(J,"VIDEO")){J={token:q,videoId:J.videoId};break a}}else if(q&&(J=y9S(q,"PLAYLIST"))){J={token:J,playlistId:q.playlistId};break a}J=void 0}p=Object.assign({},{cttAuthInfo:J,parentCsn:U},p);if(g.TQ("expectation_logging")){var f;p.loggingExpectations=((f=g.e(k==null?void 0:k.commandMetadata,S$S))==null?void 0:f.loggingExpectations)||void 0}Cj(t,d,S,p)}else g.wt(new g.hm("Error: Trying to create a new screen without a rootVeType",k))})()}; g.E.clickCommand=function(k,p,t){k=k.clickTrackingParams;t=t===void 0?0:t;k?(t=g.mP(t===void 0?0:t))?(rOe(this.client,t,g.Ze(k),p),p=!0):p=!1:p=!1;return p}; g.E.stateChanged=function(k,p,t){this.visualElementStateChanged(g.Ze(k),p,t===void 0?0:t)}; g.E.visualElementStateChanged=function(k,p,t){t=t===void 0?0:t;t===0&&this.Y.has(t)?this.B.push([k,p]):CYw(this,k,p,t)};WP.prototype.fetch=function(k,p,t){var J=this,q=VCh(k,p,t);return new Promise(function(F,d){function S(){if(t==null?0:t.GJ)try{var f=J.handleResponse(k,q.status,q.response,t);F(f)}catch(b){d(b)}else F(J.handleResponse(k,q.status,q.response,t))} q.onerror=S;q.onload=S;var U;q.send((U=p.body)!=null?U:null)})}; WP.prototype.handleResponse=function(k,p,t,J){t=t.replace(")]}'","");try{var q=JSON.parse(t)}catch(F){g.wt(new g.hm("JSON parsing failed after XHR fetch",k,p,t));if((J==null?0:J.GJ)&&t)throw new g.eR(1,"JSON parsing failed after XHR fetch");q={}}p!==200&&(g.wt(new g.hm("XHR API fetch failed",k,p,t)),q=Object.assign({},q,{errorMetadata:{status:p}}));return q};Ds.getInstance=function(){var k=g.hw("ytglobal.storage_");k||(k=new Ds,g.eM("ytglobal.storage_",k));return k}; Ds.prototype.estimate=function(){var k,p,t;return g.Q(function(J){k=navigator;return((p=k.storage)==null?0:p.estimate)?J.return(k.storage.estimate()):((t=k.webkitTemporaryStorage)==null?0:t.queryUsageAndQuota)?J.return(Wqq()):J.return()})}; g.eM("ytglobal.storageClass_",Ds);JO.prototype.Y4=function(k){this.handleError(k)}; JO.prototype.logEvent=function(k,p){switch(k){case "IDB_DATA_CORRUPTED":g.TQ("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",p);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",p);break;case "IS_SUPPORTED_COMPLETED":g.TQ("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",p);break;case "QUOTA_EXCEEDED":sci(this,p);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.T("idbTransactionEnded",p);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":k= Object.assign({},p,{hasWindowUnloaded:this.Y}),this.T("idbTransactionAborted",k)}};var MH={},dg0=g.OT("yt-player-local-media",{Sn:(MH.index={f5:2},MH.media={f5:2},MH.captions={f5:5},MH),shared:!1,upgrade:function(k,p){p(2)&&(g.D4(k,"index"),g.D4(k,"media"));p(5)&&g.D4(k,"captions");p(6)&&(sT(k,"metadata"),sT(k,"playerdata"))}, version:5});var lYS={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},gb;a:{var ux=g.nc();ux=ux.toLowerCase();if(g.DA(ux,"android")){var jKA=ux.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(jKA){var O8S=parseFloat(jKA[1]);if(O8S<100){gb=O8S;break a}}var K$a=ux.match("("+Object.keys(lYS).join("|")+")");gb=K$a?lYS[K$a[0]]:0}else gb=void 0}var Ll=gb,sp=Ll>=0;var Djh=window;var Lqi=f9(function(){var k,p;return(p=(k=window).matchMedia)==null?void 0:p.call(k,"(prefers-reduced-motion: reduce)").matches});var Lj;g.sJ=new D6;Lj=0;var vP={K5:function(k,p){k.splice(0,p)}, h2:function(k,p){var t=k[0];k[0]=k[p%k.length];k[p%k.length]=t}, Tu:function(k){k.reverse()}};var Xui=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var u_=Gk_()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.ag?!0:!1;var FZu={xXY:"adunit",Bdp:"detailpage",YZr:"editpage",Ay0:"embedded",cPb:"leanback",zR8:"previewpage",a6y:"profilepage",Yt:"unplugged",Gd0:"playlistoverview",hr8:"sponsorshipsoffer",b5p:"shortspage",G68:"handlesclaiming",YoY:"immersivelivepage",wRh:"creatormusic",Edp:"immersivelivepreviewpage",Q3r:"admintoolyurt",Rrp:"shortsaudiopivot",tb0:"consumption"};var lx,H8q,v5;lx={};g.Xf=(lx.STOP_EVENT_PROPAGATION="html5-stop-propagation",lx.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",lx.IV_DRAWER_OPEN="ytp-iv-drawer-open",lx.MAIN_VIDEO="html5-main-video",lx.VIDEO_CONTAINER="html5-video-container",lx.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",lx.HOUSE_BRAND="house-brand",lx);H8q={};v5=(H8q.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",H8q.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",H8q);var hbi={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var uCj={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},lMM={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"},G6h={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Lz_={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.jE.prototype.getLanguageInfo=function(){return this.ws}; g.jE.prototype.getXtags=function(){if(!this.xtags){var k=this.id.split(";");k.length>1&&(this.xtags=k[1])}return this.xtags}; g.jE.prototype.toString=function(){return this.ws.name}; g.jE.prototype.getLanguageInfo=g.jE.prototype.getLanguageInfo;OJ.prototype.MR=function(k){return this.Y===k.Y&&this.T===k.T&&this.N===k.N&&this.reason===k.reason&&(!HP||this.Lp===k.Lp)}; OJ.prototype.isLocked=function(){return this.N&&!!this.Y&&this.Y===this.T}; OJ.prototype.compose=function(k){if(k.N&&xI(k))return Xp;if(k.N||xI(this))return k;if(this.N||xI(k))return this;var p=this.Y&&k.Y?Math.max(this.Y,k.Y):this.Y||k.Y,t=this.T&&k.T?Math.min(this.T,k.T):this.T||k.T;p=Math.min(p,t);var J=0;HP&&(J=this.Lp!==0&&k.Lp!==0?Math.min(this.Lp,k.Lp):this.Lp===0?k.Lp:this.Lp);return HP&&p===this.Y&&t===this.T&&J===this.Lp||!HP&&p===this.Y&&t===this.T?this:HP?new OJ(p,t,!1,t===this.T&&J===this.Lp?this.reason:k.reason,J):new OJ(p,t,!1,t===this.T?this.reason:k.reason)}; OJ.prototype.C=function(k){return!k.video||HP&&this.Lp!==0&&this.Lp<k.Lp?!1:OTL(this,k.video.quality)}; var xKA=g.Kj("auto","hd1080",!1,"l"),DXh=g.Kj("auto","large",!1,"l"),Xp=g.Kj("auto","auto",!1,"p"),HP=!1;J6.prototype.Na=function(k){k=k||Xp;for(var p=g.dZ(this.videoInfos,function(d){return k.C(d)}),t=[],J={},q=0;q<p.length;q++){var F=p[q].video; J[F.quality]||(t.push(F),J[F.quality]=!0)}return t}; J6.prototype.DA=function(k){k=k||Xp;return g.dZ(this.videoInfos,function(p){return k.C(p)})}; J6.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var bC_=new Set(["356"]);g.r(ov,g.R);ov.prototype.Ap=function(){g.R.prototype.Ap.call(this)};g.yb.prototype.set=function(k,p){this.T[k]!==p&&(this.T[k]=p,this.url="")}; g.yb.prototype.get=function(k){Yw(this);return this.T[k]||null}; g.yb.prototype.b1=function(){this.url||(this.url=ZC0(this));return this.url}; g.yb.prototype.clone=function(){var k=new g.yb(this.Y,this.C);k.scheme=this.scheme;k.path=this.path;k.N=this.N;k.T=g.ih(this.T);k.url=this.url;return k}; var rD9=[u29];g.E=g.Vb.prototype;g.E.nx=function(k){this.segments.push(k)}; g.E.Hh=function(k){return!!this.wO(k)}; g.E.getDuration=function(k){return(k=this.wO(k))?k.duration:0}; g.E.bN=function(k){return this.getDuration(k)}; g.E.hx=function(){return 0}; g.E.dO=function(){return this.segments.length?this.segments[0].x8:-1}; g.E.Zl=function(k){return(k=this.wO(k))?k.ingestionTime:NaN}; g.E.WH=function(){return this.segments.length?this.segments[this.segments.length-1].x8:-1}; g.E.uq=function(k){return this.WH()===k&&!this.Y&&k>=0}; g.E.kq=function(){var k=this.segments[this.segments.length-1];return k?k.endTime:NaN}; g.E.xx=function(){return this.segments[0].startTime}; g.E.jc=function(){return this.segments.length}; g.E.I9=function(){return 0}; g.E.cN=function(k){return(k=this.yy(k))?k.x8:-1}; g.E.Np=function(k){return(k=this.wO(k))?k.sourceURL:""}; g.E.getStartTime=function(k){return(k=this.wO(k))?k.startTime:0}; g.E.UB=function(k){return this.getStartTime(k)+this.getDuration(k)}; g.E.KD=tw(1);g.E.isLoaded=function(){return this.segments.length>0}; g.E.wO=function(k){if(this.T&&this.T.x8===k)return this.T;k=g.dH(this.segments,new mN(k,0,0,0,""),function(p,t){return p.x8-t.x8}); return this.T=k>=0?this.segments[k]:null}; g.E.yy=function(k){if(this.T&&this.T.startTime<=k&&k<this.T.startTime+this.T.duration)return this.T;k=g.dH(this.segments,{startTime:k},function(p,t){return p.startTime-t.startTime}); return this.T=k>=0?this.segments[k]:this.segments[Math.max(0,-k-2)]}; g.E.append=function(k){if(k.length)if(k=g.tj(k),this.segments.length){var p=this.segments.length?g.uJ(this.segments).endTime:0,t=k[0].x8-this.WH();t>1&&Kj_(this.segments);for(t=t>0?0:-t+1;t<k.length;t++){var J=k[t];J.startTime=p;J.endTime=J.startTime+J.duration;p+=k[t].duration;this.segments.push(k[t])}}else this.segments=k}; g.E.Wq=function(){return 0};WE.prototype.skip=function(k){this.T+=k};WO6.prototype.xN=function(){return new Uint8Array(this.data.buffer)};var jo={},k9C=(jo.predictStart="predictStart",jo.start="start",jo["continue"]="continue",jo.stop="stop",jo),Dzu={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};GY.prototype.Hg=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])}; GY.prototype.toString=function(){for(var k="",p=g.Z(Object.keys(this.data)),t=p.next();!t.done;t=p.next())t=t.value,k+=t+":"+this.data[t]+";";return k};j8.prototype.Tv=function(){var k=this.pos;this.pos=0;var p=!1;try{xw(this,440786851)&&(this.pos=0,xw(this,408125543)&&(p=!0))}catch(t){if(t instanceof RangeError)this.pos=0,p=!1,g.wt(t);else throw t;}this.pos=k;return p};Et.prototype.set=function(k,p){this.Bj.get(k);this.T[k]=p;this.url=""}; Et.prototype.get=function(k){return this.T[k]||this.Bj.get(k)}; Et.prototype.b1=function(){this.url||(this.url=u5S(this));return this.url};Nr.prototype.rA=function(k,p){return k.aO?this.B?this.S=!0:this.S=jeq(this,k,p):jeq(this,k,p)}; Nr.prototype.E2=function(k){return this.N.get(k)}; Nr.prototype.mx=function(k,p){k.Bj===this.T&&(this.T=Sd(k,p));k.Bj===this.C&&(this.C=Sd(k,p))}; Nr.prototype.PL=function(){return this.T!==this.C&&!this.S};C5.prototype.Ox=function(){return!!this.T&&this.index.isLoaded()}; C5.prototype.Jw=function(){return!1}; C5.prototype.Va=function(k){return[k]}; C5.prototype.y6=function(k){return[k]};A_.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.E=DC.prototype;g.E.ZM=function(){return this.C&&this.T.index.uq(this.x8)}; g.E.isEncrypted=function(){return this.T.info.isEncrypted()}; g.E.MR=function(k){return!(!k||k.T!==this.T||k.type!==this.type||(this.range&&k.range?k.range.start!==this.range.start||k.range.end!==this.range.end:k.range!==this.range)||k.x8!==this.x8||k.Y!==this.Y||k.N!==this.N)}; g.E.pZ=function(){return!!this.T.info.video}; g.E.Aj=function(){var k=wj(this),p="";g.ZV(k,function(t,J){p+=J+"_"+t+"_"}); return p.slice(0,-1)};Qd.prototype.E3=function(){return this.T?this.T.b1():""}; Qd.prototype.isDecorated=function(){return!!(this.T||this.C&&this.C.sS)}; Qd.prototype.Ih=function(){return L5(this.aY[0])}; Qd.prototype.mx=function(k,p){this.oO.mx(k,p);if(this.T){this.T=Sd(k,p);p=g.Z(["acpns","cpn","daistate","skipsq"]);for(var t=p.next();!t.done;t=p.next())this.T.set(t.value,null)}this.requestId=k.get("req_id")};g.r(XH,C5);g.E=XH.prototype;g.E.a9=function(){return!1}; g.E.sC=function(){return!0}; g.E.HW=function(){return!1}; g.E.Jw=function(){return!this.X}; g.E.t7=function(){return new Qd([new DC(1,this,this.initRange,"getMetadataRequestInfo")],this.X)}; g.E.Pi=function(){return null}; g.E.FB=function(k){this.Cw(k);return this.sC()&&k.N&&!k.C?new Qd([new DC(k.type,k.T,k.range,"liveGetNextRequestInfoBySegment",k.x8,k.startTime,k.duration,k.Y+k.N,NaN,!0)],this.index.Np(k.x8)):this.Kw(n5(k),!1)}; g.E.U9=function(k,p){p=p===void 0?!1:p;k=this.index.cN(k);p&&(k=Math.min(this.index.WH(),k+1));return this.Kw(k,!0)}; g.E.bu=function(k){Hk(k)}; g.E.Cw=function(k){return k.N===0?!0:this.index.WH()>k.x8&&this.index.dO()<=k.x8+1}; g.E.update=function(k,p,t){this.index.append(k);mzL(this.index,t);k=this.index;k.Y=p;k.N="update"}; g.E.Ox=function(){return this.Jw()?!0:C5.prototype.Ox.call(this)}; g.E.Kw=function(k,p){var t=this.index.Np(k),J=this.index.getStartTime(k),q=this.index.getDuration(k),F;p?q=F=0:F=this.info.Lp>0?this.info.Lp*q:1E3;return new Qd([new DC(3,this,void 0,"liveCreateRequestInfoForSegment",k,J,q,0,F,!p)],t)}; g.E.g6=function(){return this.Jw()?0:this.initRange.length}; g.E.Q0=function(){return!1};zb.prototype.update=function(k){var p=void 0;this.Y&&(p=this.Y);var t=new zb,J=Array.from(k.getElementsByTagName("S"));if(J.length){var q=+R4(k,"timescale")||1,F=(+J[0].getAttribute("t")||0)/q,d=+R4(k,"startNumber")||0;t.C=F;var S=p?p.startSecs+p.NR:0,U=Date.parse(yNM(R4(k,"yt:segmentIngestTime")))/1E3;t.X=k.parentElement.tagName==="SegmentTemplate";t.X&&(t.Z=R4(k,"media"));k=p?d-p.x8:1;t.S=k>0?0:-k+1;k=g.Z(J);for(J=k.next();!J.done;J=k.next()){J=J.value;for(var f=+J.getAttribute("d")/q,b=(+J.getAttribute("yt:sid")|| 0)/q,N=+J.getAttribute("r")||0,y=0;y<=N;y++)if(p&&d<=p.x8)d++;else{var Y=new br6(d,S,f,U+b,F);t.T.push(Y);var T=J;var A=q,V=Y.startSecs;Y=T.getAttribute("yt:cuepointTimeOffset");var D=T.getAttribute("yt:cuepointDuration");if(Y&&D){Y=Number(Y);V=-Y/A+V;A=Number(D)/A;D=T.getAttribute("yt:cuepointContext")||null;var v=T.getAttribute("yt:cuepointIdentifier")||"";T=T.getAttribute("yt:cuepointEvent")||"";T=new Qb(V,A,D,v,k9C[T]||"unknown",Y)}else T=null;T&&t.N.push(T);d++;S+=f;F+=f;U+=f+b}}t.T.length&& (t.Y=g.uJ(t.T))}this.S=t.S;this.Y=t.Y||this.Y;g.oT(this.T,t.T);g.oT(this.N,t.N);this.X=t.X;this.Z=t.Z;this.C===-1&&(this.C=t.getStreamTimeOffset())}; zb.prototype.getStreamTimeOffset=function(){return this.C===-1?0:this.C};g.r(h_,g.Vb);g.E=h_.prototype;g.E.hx=function(){return this.Rx}; g.E.Hh=function(k,p){k=a4(this,k);return k>=0&&(p||!this.segments[k].pending)}; g.E.dO=function(){return this.D0?this.segments.length?this.yy(this.xx()).x8:-1:g.Vb.prototype.dO.call(this)}; g.E.xx=function(){if(this.FA)return 0;if(!this.D0)return g.Vb.prototype.xx.call(this);if(!this.segments.length)return 0;var k=Math.max(g.uJ(this.segments).endTime-this.VK,0);return this.P3>0&&this.yy(k).x8<this.P3?this.wO(this.P3).startTime:k}; g.E.kq=function(){if(this.Ho&&this.zd&&this.zd>0)return this.zd/1E3;if(!this.segments.length)return g.Vb.prototype.kq.call(this);var k=this.WH();if(!this.D0||k<=this.segments[this.segments.length-1].x8)k=this.segments[this.segments.length-1];else{var p=this.segments[this.segments.length-1];k=new mN(k,Math.max(0,p.startTime-(p.x8-k)*this.Rx),this.Rx,0,"sq/"+k,void 0,void 0,!0)}return this.FA?Math.min(this.VK,k.endTime):k.endTime}; g.E.jc=function(){return this.D0?this.segments.length?this.WH()-this.dO()+1:0:g.Vb.prototype.jc.call(this)}; g.E.WH=function(){var k=Math.min(this.Pj,Math.max(g.Vb.prototype.WH.call(this),this.R7)),p=this.VK*1E3;p=this.zd>0&&this.zd<p;this.FA&&this.VK>0&&this.R7>0&&!p&&(p=this.yy(this.VK))&&(k=Math.min(p.x8-1,k));return k}; g.E.IU=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.E.nx=function(k){var p=a4(this,k.x8);if(p>=0)this.segments[p]=k;else if(this.segments.splice(-(p+1),0,k),this.P4&&k.x8%(300/this.Rx)===0){var t=this.segments[0].x8,J=Math.floor(this.P4/this.Rx);k=k.x8-J;p=-(p+1)-J;p>0&&k>t&&(this.segments=this.segments.slice(p))}}; g.E.Lg=function(){return this.R7}; g.E.uq=function(k){return ed?!this.Y&&k>=0&&this.WH()<=k:g.Vb.prototype.uq.call(this,k)}; g.E.yy=function(k){if(!this.D0)return g.Vb.prototype.yy.call(this,k);if(!this.segments.length)return null;var p=this.segments[this.segments.length-1];if(k<this.segments[0].startTime)p=Math.max(0,this.segments[0].x8-Math.ceil((this.segments[0].startTime-k)/this.Rx));else if(k>=p.endTime)p=p.x8+Math.floor((k-p.endTime)/this.Rx+1);else{p=E$(this.segments,function(J){return k<J.startTime?-1:k>=J.endTime?1:0}); if(p>=0)return this.segments[p];var t=-(p+1);p=this.segments[t-1];t=this.segments[t];p=Math.floor((k-p.endTime)/((t.startTime-p.endTime)/(t.x8-p.x8-1))+1)+p.x8}return this.wO(p)}; g.E.wO=function(k){if(!this.D0)return g.Vb.prototype.wO.call(this,k);if(!this.segments.length)return null;var p=a4(this,k);if(p>=0)return this.segments[p];var t=-(p+1);p=this.Rx;if(t===0)var J=Math.max(0,this.segments[0].startTime-(this.segments[0].x8-k)*p);else t===this.segments.length?(J=this.segments[this.segments.length-1],J=J.endTime+(k-J.x8-1)*p):(J=this.segments[t-1],p=this.segments[t],p=(p.startTime-J.endTime)/(p.x8-J.x8-1),J=J.endTime+(k-J.x8-1)*p);return new mN(k,J,p,0,"sq/"+k,void 0,void 0, !0)}; var ed=!1;g.r(Mr,XH);g.E=Mr.prototype;g.E.HW=function(){return!0}; g.E.Ox=function(){return!0}; g.E.Cw=function(k){return this.sC()&&k.N&&!k.C||!k.T.index.uq(k.x8)}; g.E.t7=function(){}; g.E.U9=function(k,p){return typeof k!=="number"||isFinite(k)?XH.prototype.U9.call(this,k,p===void 0?!1:p):new Qd([new DC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.JM,void 0,this.JM*this.info.Lp)],"")}; g.E.Kw=function(k,p){var t=t===void 0?!1:t;if(this.index.Hh(k))return XH.prototype.Kw.call(this,k,p);var J=this.index.getStartTime(k),q=Math.round(this.JM*this.info.Lp),F=this.JM;p&&(F=q=0);return new Qd([new DC(t?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",k,J,F,void 0,q,!p)],k>=0?"sq/"+k:"")};g.r(gj,C5);g.E=gj.prototype;g.E.a9=function(){return!1}; g.E.sC=function(){return!1}; g.E.HW=function(){return!1}; g.E.t7=function(){return new Qd([new DC(1,this,void 0,"otfInit")],this.X)}; g.E.Pi=function(){return null}; g.E.FB=function(k){this.Cw(k);return V6T(this,n5(k),!1)}; g.E.U9=function(k,p){p=p===void 0?!1:p;k=this.index.cN(k);p&&(k=Math.min(this.index.WH(),k+1));return V6T(this,k,!0)}; g.E.bu=function(k){k.info.type===1&&(this.T||(this.T=Zd(k.T)),k.Y&&k.Y.uri==="http://youtube.com/streaming/otf/durations/112015"&&Wre(this,k.Y))}; g.E.Cw=function(k){return k.N===0?!0:this.index.WH()>k.x8&&this.index.dO()<=k.x8+1}; g.E.g6=function(){return 0}; g.E.Q0=function(){return!1};ui.prototype.EX=function(){return this.T.EX()};g.E=g.x6.prototype;g.E.Hh=function(k){return k<=this.WH()}; g.E.I9=function(k){return this.offsets[k]}; g.E.getStartTime=function(k){return this.startTicks[k]/this.T}; g.E.UB=function(k){return this.getStartTime(k)+this.getDuration(k)}; g.E.KD=tw(0);g.E.Zl=function(){return NaN}; g.E.getDuration=function(k){k=this.bN(k);return k>=0?k/this.T:-1}; g.E.bN=function(k){return k+1<this.count||this.Y?this.startTicks[k+1]-this.startTicks[k]:-1}; g.E.hx=function(){return 0}; g.E.dO=function(){return 0}; g.E.WH=function(){return this.count-1}; g.E.uq=function(k){return this.WH()===k&&k>=0}; g.E.kq=function(){return this.Y?this.startTicks[this.count]/this.T:NaN}; g.E.xx=function(){return 0}; g.E.jc=function(){return this.count}; g.E.Np=function(){return""}; g.E.cN=function(k){k=g.dH(this.startTicks.subarray(0,this.count),k*this.T);return k>=0?k:Math.max(0,-k-2)}; g.E.isLoaded=function(){return this.WH()>=0}; g.E.Wq=function(k,p){if(k>=this.WH())return 0;var t=0;for(p=this.getStartTime(k)+p;k<this.WH()&&p>this.getStartTime(k);k++)t=Math.max(t,QU9(this,k)/this.getDuration(k));return t}; g.E.resize=function(k){k+=2;var p=this.offsets;this.offsets=new Float64Array(k+1);var t=this.startTicks;this.startTicks=new Float64Array(k+1);for(k=0;k<this.count+1;k++)this.offsets[k]=p[k],this.startTicks[k]=t[k]}; g.E.cap=function(k,p){km(this);this.Y=!0;this.startTicks[this.count]=p;this.offsets[this.count]=k};g.r(pR,C5);g.E=pR.prototype;g.E.t7=function(k,p){var t=new DC(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p),J=[new DC(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p),t];this.info.contentLength>0&&k&&(t=t.range.end+1,k=Math.min(k,this.info.contentLength-t),k>0&&J.push(new DC(4,this,Vd(t,k),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p)));return new Qd(J)}; g.E.bu=function(k){if(k.info.type===1){if(this.T)return;this.T=Zd(k.T)}else if(k.info.type===2){if(this.X||this.index.WH()>=0)return;if(g.g2(this.info)){var p=this.index,t=k.EX();k=k.info.range.start;var J=g.Rv(t,0,1936286840);t=PGq(J);p.T=t.timescale;var q=t.mC;p.offsets[0]=t.YA+k+J.size;p.startTicks[0]=q;p.Y=!0;k=t.zG.length;for(J=0;J<k;J++){q=p;var F=t.i$S[J],d=t.zG[J];q.count++;km(q);q.offsets[q.count]=q.offsets[q.count-1]+F;q.startTicks[q.count]=q.startTicks[q.count-1]+d}}else this.X=k.EX()}if(this.info.rI()&& this.T&&this.X){t=new DataView(this.T.buffer);p=this.index;J=this.X;k=this.indexRange.end;q=new j8(t);t=q;q=t.pos;F={hW:1E6,VL:1E9,duration:0,ze:0,gL:0};if(xw(t,408125543))if(F.ze=k6(t,!0),F.gL=t.start+t.pos,xw(t,357149030)){for(d=HE(t);!O1(d);){var S=k6(d,!1);S===2807729?F.hW=t_(d):S===2807730?F.VL=t_(d):S===17545?F.duration=o4(d):J_(d)}t.pos=q;t=F}else t.pos=q,t=null;else t.pos=q,t=null;if(t!==null){p.T=t.VL/t.hW;q=new j8(J);J=q;d=t.gL;q=J.pos;F=[];if(xw(J,475249515)){for(S=HE(J);xw(S,187);){var U= HE(S);if(xw(U,179)){var f=t_(U);if(xw(U,183)){U=HE(U);for(var b=d;xw(U,241);)b=t_(U)+d;F.push({oo:b,Y6:f})}}}if(F.length>0&&k===F[0].oo)for(k=0;k<F.length;k++)F[k].oo+=1;J.pos=q;k=F}else J.pos=q,k=null;if(k!==null){k=g.Z(k);for(J=k.next();!J.done;J=k.next())F=J.value,J=p,q=F.oo,F=F.Y6,km(J),J.offsets[J.count]=q,J.startTicks[J.count]=F,J.count++;p.cap(t.ze+t.gL,t.duration)}}this.X=null}}; g.E.nu=function(k,p,t,J){for(var q=[],F=k;F<=this.index.WH();F++){var d=Vd(this.index.I9(F),QU9(this.index,F)),S=this.index.getStartTime(F),U=this.index.getDuration(F),f=Math.max(0,p-d.start),b=Math.min(d.end+1,p+t)-(d.start+f);q.push(new DC(3,this,d,"getRequestInfoForRange",F,S,U,f,b,void 0,void 0,J));if(d.start+f+b>=p+t)break}q.length||g.nV(new g.hm("b189619593",""+k,""+p,""+t));return new Qd(q)}; g.E.Va=function(k){for(var p=this.y6(k.info),t=k.info.range.start+k.info.Y,J=[],q=0;q<p.length;q++){var F=YU(k.T,p[q].range.start+p[q].Y-t,p[q].N);J.push(new ui(p[q],F))}return J}; g.E.y6=function(k){for(var p=k.range.start+k.Y,t=0;t<this.index.WH()&&p>=this.index.I9(t+1);)t++;return this.nu(t,p,k.N).aY}; g.E.Cw=function(k){k.ZM();return this.Ox()?!0:k.range.end+1<this.info.contentLength}; g.E.Pi=function(k,p){this.Cw(k);if(!this.Ox())return p=Vd(k.range.end+1,p),p.end+1>this.info.contentLength&&(p=new A_(p.start,this.info.contentLength-1)),new Qd([new DC(4,k.T,p,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,k.clipId)]);k.type===4&&(k=this.y6(k),k=k[k.length-1]);var t=0,J=k.range.start+k.Y+k.N;k.type===3&&(k.ZM(),t=k.x8,J===k.range.end+1&&(t+=1));return this.nu(t,J,p)}; g.E.FB=function(){return null}; g.E.U9=function(k,p,t){p=p===void 0?!1:p;k=this.index.cN(k);p&&(k=Math.min(this.index.WH(),k+1));return this.nu(k,this.index.I9(k),0,t)}; g.E.a9=function(){return!0}; g.E.sC=function(){return!0}; g.E.HW=function(){return!1}; g.E.g6=function(){return this.indexRange.length+this.initRange.length}; g.E.Q0=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var OV={},KrL=(OV.COLOR_PRIMARIES_BT709="bt709",OV.COLOR_PRIMARIES_BT2020="bt2020",OV.COLOR_PRIMARIES_UNKNOWN=null,OV.COLOR_PRIMARIES_UNSPECIFIED=null,OV),Kn={},G0i=(Kn.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Kn.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Kn.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Kn.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Kn.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Kn.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Kn);g.th.prototype.getName=function(){return this.name}; g.th.prototype.getId=function(){return this.id}; g.th.prototype.getIsDefault=function(){return this.isDefault}; g.th.prototype.toString=function(){return this.name}; g.th.prototype.getName=g.th.prototype.getName;g.th.prototype.getId=g.th.prototype.getId;g.th.prototype.getIsDefault=g.th.prototype.getIsDefault;var B0i=/action_display_post/;var z40,qY,FR;g.r($m,g.o$);g.E=$m.prototype;g.E.isLoading=function(){return this.state===1}; g.E.kd=function(){return this.state===3}; g.E.xhb=function(k){var p=k.getElementsByTagName("Representation");if(k.getElementsByTagName("SegmentList").length>0||k.getElementsByTagName("SegmentTemplate").length>0){this.m2=this.Y=!0;this.timeline||(this.timeline=new T0M);ANi(this.timeline,k);this.publish("refresh");for(k=0;k<p.length;k++){var t=orT(this,p[k]);if(!this.T[t.id]){var J=fR(Bk(p[k],"BaseURL").textContent),q=Bk(p[k],"Initialization"),F=R4(q,"sourceURL");q=mU(R4(q,"range"));this.T[t.id]=new XH(J,t,F,q)}t=this.T[t.id];J=R4(p[k],"id", "AdaptationSet");J=J!==""?J:R4(p[k],"mimetype","AdaptationSet");F=this.timeline;F=F.N[t.info.id]||F.Y[J]||F.T||null;J=F.T;!this.Z&&F.getStreamTimeOffset()&&(this.Z=F.getStreamTimeOffset());if(F.X){q=[];J=g.Z(J);for(var d=J.next();!d.done;d=J.next()){d=d.value;var S=t.info.id,U=t.info.Lp*8,f=d.x8;var b=d.startSecs;var N=F.Z.split("$$");for(var y=0;y<N.length;y++)N[y]=N[y].replace("$RepresentationID$",S),N[y]=N[y].replace("$Number$",f.toString()),N[y]=N[y].replace("$Bandwidth$",U.toString()),N[y]=N[y].replace("$Time$", b.toString());q.push(new mN(d.x8,d.startSecs,d.NR,d.T,N.join("$"),null,d.Y))}J=q}else{F=qW(Bk(p[k],"SegmentList").getElementsByTagName("SegmentURL"),F.S);q=[];for(d=0;d<F.length;d++){S=q;U=S.push;f=J[d];b=void 0;y=F[d];N=y.getAttribute("media");if(y=y.getAttribute("mediaRange")){var Y=y.split("-");Y[1]&&Number(Y[1])>=0?b=mU(y):N=N+"?range="+y}U.call(S,new mN(f.x8,f.startSecs,f.NR,f.T,N,b,f.Y))}J=q}t.update(J,this.isLive,this.k8)}miu(this.timeline);return!0}this.duration=N0j(R4(k,"mediaPresentationDuration")); a:{for(k=0;k<p.length;k++){F=p[k];t=orT(this,F);J=fR(Bk(F,"BaseURL").textContent);q=Bk(F,"SegmentBase");F=mU(q.attributes.getNamedItem("indexRange").value);q=mU(q.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);t=new pR(J,t,q,F);if(!t){p=!1;break a}os(this,t)}p=!0}return p}; g.E.refresh=function(){if(!this.isLoading()&&!this.MO()){var k=g.hM(this.sourceUrl,{start_seq:Erw(this).toString()});FR_(this,k).pU(function(){})}}; g.E.resume=function(){qEq(this)}; g.E.jV=function(){if(this.isManifestless&&this.C&&NY(this))return NY(this);var k=this.T,p=!1,t=NaN,J=NaN,q;for(q in k){var F=k[q],d=F.index;d.isLoaded()&&!KC(F.info.mimeType)&&(F.C&&(p=!0),d=d.kq(),F.info.B3()&&(isNaN(t)||d<t)?t=d:F.info.pZ()&&(isNaN(J)||d<J)&&(J=d))}return p||isNaN(J)?t:Math.min(t,J)}; g.E.xx=function(){if(this.isManifestless){if(yq(this))return yq(this);if(this.jW){var k=this.Zl(this.jV());if(k&&(k-=this.jW,k>0))return this.jV()-k}}k=this.T;for(var p in k){var t=k[p].index;if(t.isLoaded()&&!KC(k[p].info.mimeType))return t.xx()}return 0}; g.E.getStreamTimeOffset=function(){return this.Z}; g.E.Zl=function(k){for(var p in this.T){var t=this.T[p].index;if(t.isLoaded()){var J=t.cN(k),q=t.Zl(J);if(q)return q+k-t.getStartTime(J)}}return NaN}; var Ah=null,pnJ,m2=!((pnJ=navigator.mediaCapabilities)==null||!pnJ.decodingInfo),JZT={commentary:1,alternate:2,dub:3,main:4};var CL=new Set,Vq=new Map;sm.prototype.clone=function(k){return new sm(this.flavor,k,this.Y,this.experiments)}; sm.prototype.pE=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; sm.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 tUS={},Is=(tUS.playready=["com.youtube.playready","com.microsoft.playready"],tUS.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],tUS),Hy={},FKi=(Hy.widevine="DRM_SYSTEM_WIDEVINE",Hy.fairplay="DRM_SYSTEM_FAIRPLAY",Hy.playready="DRM_SYSTEM_PLAYREADY",Hy),xb={},JHq=(xb.widevine=1,xb.fairplay=2,xb.playready=3,xb);BL.prototype.LI=function(k,p){p=p===void 0?1:p;this.n5+=p;this.Y+=k;k/=p;for(var t=0;t<Rs.length&&!(k<Rs[t]);++t)this.T[t]+=p}; BL.prototype.toString=function(){return""}; var Rs=[20,100,500,2E3];g.E=ZWj.prototype;g.E.isActive=function(){return!0}; g.E.tI=function(k,p){var t=this;if(p){var J={},q;for(q in p)J={aj:void 0,Rw:void 0},p.hasOwnProperty(q)&&(J.aj=k.prototype[q],J.Rw=p[q],k.prototype[q]=function(F){return function(){var d=g.nS.apply(0,arguments),S=(0,g.V9)();d=F.aj.apply(this,d);return zj(t,d,F.Rw,S)}}(J))}}; g.E.cW=function(k,p){if(p){var t=this,J={},q;for(q in p)J={XM:void 0,wB:void 0},p.hasOwnProperty(q)&&(J.wB=k.prototype[q],J.XM=p[q],k.prototype[q]=function(F){return function(){var d=g.nS.apply(0,arguments),S=this,U=(0,g.V9)(),f=F.wB.apply(S,d);return zj(t,f,null,U,function(b){return F.XM.apply(S,[b].concat(d))})}}(J))}}; g.E.d0=function(k,p){var t=this;return function(){var J=g.nS.apply(0,arguments),q=(0,g.V9)();J=p.apply(null,J);return zj(t,J,k,q)}}; g.E.R5=function(){return new rZe}; g.E.g5=function(k,p,t){t=t===void 0?1:t;p instanceof rZe&&(C2u(this,k,(0,g.V9)()-p.startTimeMs,t),p.T=!0)}; g.E.iX=function(k,p){var t=(0,g.V9)();p=p();return zj(this,p,k,t)}; g.E.Qf=function(){var k={},p;for(p in this.T)if(this.T.hasOwnProperty(p)){var t=this.T[p];if(t.n5===0)t=null;else{for(var J=Math.ceil(t.n5).toFixed(0)+"."+t.Y.toFixed(0),q=0;q<Rs.length;++q)if(t.T[q]>0)J+="."+Rs[q].toFixed(0)+"_"+t.T[q].toFixed(0);else break;t=J}t&&(k[p]=t)}this.T=new TmT;return k}; g.E.toString=function(){return""};g.E=V_h.prototype;g.E.isActive=function(){return!1}; g.E.tI=function(){}; g.E.cW=function(){}; g.E.d0=function(k,p){return p}; g.E.R5=function(){}; g.E.g5=function(){}; g.E.iX=function(k,p){return p()}; g.E.Qf=function(){return{}}; g.E.toString=function(){return""};var kD,oBq,qbL,FvJ,$sL,dsa,pp,ng,KP,VZw,MY;kD=new V_h;oBq=!!+gD("html5_enable_profiler");qbL=!!+gD("html5_onesie_enable_profiler");FvJ=!!+gD("html5_offline_encryption_enable_profiler");$sL=!!+gD("html5_performance_impact_profiling_timer_ms");dsa=!!+gD("html5_drm_enable_profiler");pp=oBq||qbL||FvJ||$sL||dsa?new ZWj:kD;g.Ro=oBq?pp:kD;ng=qbL?pp:kD;KP=FvJ?pp:kD;VZw=$sL?pp:kD;MY=dsa?pp:kD;var as;g.r(e1,g.R); e1.prototype.initialize=function(k,p){for(var t=this,J=g.Z(Object.keys(k)),q=J.next();!q.done;q=J.next()){q=g.Z(k[q.value]);for(var F=q.next();!F.done;F=q.next())if(F=F.value,F.xf)for(var d=g.Z(Object.keys(F.xf)),S=d.next();!S.done;S=d.next()){var U=S.value;S=U;U=Is[U];!U&&this.D("html5_enable_vp9_fairplay")&&S==="fairplay"&&(U=["com.youtube.fairplay.sbdl"]);if(U){U=g.Z(U);for(var f=U.next();!f.done;f=U.next())f=f.value,this.N[f]=this.N[f]||new sm(S,f,F.xf[S],this.Cp.experiments),this.T[S]=this.T[S]|| {},this.T[S][F.mimeType]=!0}}}eN()&&(this.N["com.youtube.fairplay"]=new sm("fairplay","com.youtube.fairplay","",this.Cp.experiments),this.D("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.Y=YEi(p,this.useCobaltWidevine,this.D("html5_enable_safari_fairplay"),this.D("html5_enable_vp9_fairplay")).filter(function(b){return!!t.N[b]})}; e1.prototype.D=function(k){return this.Cp.experiments.Gb(k)};var EBL={"":"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"};nri.prototype.D=function(k){return this.experiments.Gb(k)};var dkS={RED:"red",YiT:"white"};w6S.prototype.Gb=function(k){k=this.flags[k];JSON.stringify(k);return k==="true"};var P2S=Promise.resolve(),RQM=window.queueMicrotask?window.queueMicrotask.bind(window):G1j;j1.prototype.canPlayType=function(k,p){k=k.canPlayType?k.canPlayType(p):!1;hO?k=k||SbA[p]:Ll===2.2?k=k||Us4[p]:Bw()&&(k=k||fLS[p]);return!!k}; j1.prototype.isTypeSupported=function(k){return this.Y8?window.cast.receiver.platform.canDisplayType(k):LC(k)}; var Us4={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},fLS={"application/x-mpegURL":"maybe"},SbA={"application/x-mpegURL":"maybe"};g.r(kH,g.o$);kH.prototype.add=function(k,p){if(!this.items[k]&&(p.Ng||p.Xk||p.Zc)){var t=this.items,J=p;Object.isFrozen&&!Object.isFrozen(p)&&(J=Object.create(p),Object.freeze(J));t[k]=J;this.publish("vast_info_card_add",k)}}; kH.prototype.remove=function(k){var p=this.get(k);delete this.items[k];return p}; kH.prototype.get=function(k){return this.items[k]||null}; kH.prototype.isEmpty=function(){return g.cQ(this.items)};g.r(pl,g.rL);pl.prototype.T=function(k,p){return g.rL.prototype.T.call(this,k,p)}; pl.prototype.Y=function(k,p,t){var J=this;return g.Q(function(q){return q.T==1?g.n(q,g.rL.prototype.Y.call(J,k,p,t),2):q.return(q.Y)})}; g.r(ts,g.Z6);ts.prototype.encrypt=function(k,p){return g.Z6.prototype.encrypt.call(this,k,p)};var or;qu.prototype.add=function(k){if(this.pos+20>this.data.length){var p=new Uint8Array(this.data.length*2);p.set(this.data);this.data=p}for(;k>31;)this.data[this.pos++]=or[(k&31)+32],k>>=5;this.data[this.pos++]=or[k|0]}; qu.prototype.zH=function(){return g.VV(this.data.subarray(0,this.pos))}; qu.prototype.reset=function(){this.pos=0};$H.prototype.zk=function(k,p){var t=Math.pow(this.alpha,k);this.T=p*(1-t)+t*this.T;this.Y+=k}; $H.prototype.L$=function(){return this.T/(1-Math.pow(this.alpha,this.Y))};d7.prototype.zk=function(k,p){for(var t=0;t<10;t++){var J=this.T[t],q=J+(t===0?k:0),F=1*Math.pow(2,t);if(q<=F)break;J=Math.min(1,(q-F*.5)/J);for(q=0;q<16;q++)F=this.values[t*16+q]*J,this.values[(t+1)*16+q]+=F,this.T[t+1]+=F,this.values[t*16+q]-=F,this.T[t]-=F}J=t=0;q=8192;p>8192&&(t=Math.ceil(Math.log(p/8192)/Math.log(2)),J=8192*Math.pow(2,t-1),q=J*2);t+2>16?this.values[15]+=k:(p=(p-J)/(q-J),this.values[t]+=k*(1-p),this.values[t+1]+=k*p);this.T[0]+=k}; d7.prototype.L$=function(){var k=k===void 0?this.Y:k;var p=p===void 0?.02:p;var t=t===void 0?.98:t;for(var J=this.N,q=0;q<16;q++)J[q]=this.values[q];q=this.T[0];for(var F=1;F<11;F++){var d=this.T[F];if(d===0)break;for(var S=Math.min(1,(k-q)/d),U=0;U<16;U++)J[U]+=this.values[F*16+U]*S;q+=d*S;if(S<1)break}for(F=k=d=0;F<16;F++){S=d+J[F]/q;k+=Math.max(0,Math.min(S,t)-Math.max(d,p))*(F>0?8192*Math.pow(2,F-1):0);if(S>t)break;d=S}return k/(t-p)};Ep.prototype.zk=function(k,p){k=Math.min(this.T,Math.max(1,Math.round(k*this.resolution)));k+this.Y>=this.T&&(this.N=!0);for(;k--;)this.values[this.Y]=p,this.Y=(this.Y+1)%this.T;this.hN=!0}; Ep.prototype.percentile=function(k){var p=this;if(!this.N&&this.Y===0)return 0;this.hN&&(g.SD(this.X,function(t,J){return p.values[t]-p.values[J]}),this.hN=!1); return this.values[this.X[Math.round(k*((this.N?this.T:this.Y)-1))]]||0}; Ep.prototype.L$=function(){return this.S?(this.percentile(this.C-this.S)+this.percentile(this.C)+this.percentile(this.C+this.S))/3:this.percentile(this.C)};g.r(Si,g.R);Si.prototype.W0=function(){var k;(k=this.RY)==null||k.start();if(r7(this)&&this.policy.B){var p;(p=this.fT)==null||p.vI()}};xwh.prototype.D=function(k){return this.experiments.Gb(k)};g.r(pv_,g.R);var $kL="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),bHw={Bpp:"caoe",aM6:"capsv",uo0:"cbrand",NdS:"cbr",KVT:"cbrver",mMp:"cchip",Z76:"ccappver",n4p:"ccrv",bU6:"cfrmver",uEy:"c",KX0:"cver",C2r:"ctheme",NKh:"cplayer",uub:"cmodel",OoY:"cnetwork",f6G:"cos",Dcr:"cosver",Vdp:"cplatform",sh0:"crqyear"};g.r(Xo,g.R);g.E=Xo.prototype;g.E.D=function(k){return this.experiments.Gb(k)}; g.E.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.E.getVideoUrl=function(k,p,t,J,q,F,d){p={list:p};t&&(q?p.time_continue=t:p.t=t);t=d?"music.youtube.com":g.Bs(this);q=t==="www.youtube.com";!F&&J&&q?F="https://youtu.be/"+k:g.nl(this)?(F="https://"+t+"/fire",p.v=k):(F&&q?(F=this.protocol+"://"+t+"/shorts/"+k,J&&(p.feature="share")):(F=this.protocol+"://"+t+"/watch",p.v=k),hO&&(k=H6S())&&(p.ebc=k));return g.hM(F,p)}; g.E.getVideoEmbedCode=function(k,p,t,J){p="https://"+g.Bs(this)+"/embed/"+p;J&&(p=g.hM(p,{list:J}));J=t.width;t=t.height;p=HH(p);k=HH(k!=null?k:"YouTube video player");return'<iframe width="'+J+'" height="'+t+'" src="'+p+'" title="'+(k+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')}; g.E.supportsGaplessAudio=function(){return g.sD&&!hO&&Xd()>=74||g.PL&&g.rH(68)?!0:!1}; g.E.supportsGaplessShorts=function(){return!this.D("html5_enable_short_gapless")||this.IY||g.y9?!1:!0}; g.E.getPlayerType=function(){return this.T.cplayer}; g.E.DB=function(){return this.Xn}; var TpL=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],fXh=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],ydL=[19];var tg={},CT0=(tg["140"]={numChannels:2},tg["141"]={numChannels:2},tg["251"]={audioSampleRate:48E3,numChannels:2},tg["774"]={audioSampleRate:48E3,numChannels:2},tg["380"]={numChannels:6},tg["328"]={numChannels:6},tg["773"]={},tg),Jg={},rdT=(Jg["1"]='video/mp4; codecs="av01.0.08M.08"',Jg["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Jg["1e"]='video/mp4; codecs="av01.0.08M.08"',Jg["9"]='video/webm; codecs="vp9"',Jg["("]='video/webm; codecs="vp9"',Jg["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Jg.h='video/mp4; codecs="avc1.64001e"',Jg.H='video/mp4; codecs="avc1.64001e"',Jg.o='audio/webm; codecs="opus"',Jg.a='audio/mp4; codecs="mp4a.40.2"',Jg.ah='audio/mp4; codecs="mp4a.40.2"',Jg.mac3='audio/mp4; codecs="ac-3"; channels=6',Jg.meac3='audio/mp4; codecs="ec-3"; channels=6',Jg.i='audio/mp4; codecs="iamf.001.001.Opus"',Jg),oP={},ZHL=(oP["337"]={width:3840,height:2160,bitrate:3E7,fps:30},oP["336"]={width:2560,height:1440,bitrate:15E6,fps:30},oP["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, oP["702"]={width:7680,height:4320,bitrate:4E7,fps:60},oP["701"]={width:3840,height:2160,bitrate:2E7,fps:60},oP["700"]={width:2560,height:1440,bitrate:1E7,fps:60},oP["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},oP["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},oP["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},oP["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, oP["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},oP["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},oP["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},oP["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},oP["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},oP["315"]={width:3840,height:2160,bitrate:2E7,fps:60},oP["308"]={width:2560, height:1440,bitrate:1E7,fps:60},oP["303"]={width:1920,height:1080,bitrate:5E6,fps:60},oP["302"]={width:1280,height:720,bitrate:25E5,fps:60},oP["299"]={width:1920,height:1080,bitrate:75E5,fps:60},oP["298"]={width:1280,height:720,bitrate:35E5,fps:60},oP["571"]={width:7680,height:4320,bitrate:3E7,fps:60},oP["401"]={width:3840,height:2160,bitrate:15E6,fps:60},oP["400"]={width:2560,height:1440,bitrate:75E5,fps:60},oP["399"]={width:1920,height:1080,bitrate:2E6,fps:60},oP["398"]={width:1280,height:720,bitrate:1E6, fps:60},oP["397"]={width:854,height:480,bitrate:4E5,fps:30},oP["396"]={width:640,height:360,bitrate:25E4,fps:30},oP["787"]={width:1080,height:608,bitrate:2E5,fps:30},oP["788"]={width:1080,height:608,bitrate:4E5,fps:30},oP["572"]={width:7680,height:4320,bitrate:3E7,fps:60},oP["555"]={width:3840,height:2160,bitrate:15E6,fps:60},oP["554"]={width:2560,height:1440,bitrate:75E5,fps:60},oP["553"]={width:1920,height:1080,bitrate:2E6,fps:60},oP["552"]={width:1280,height:720,bitrate:1E6,fps:60},oP["551"]={width:854, height:480,bitrate:4E5,fps:30},oP["550"]={width:640,height:360,bitrate:25E4,fps:30},oP["313"]={width:3840,height:2160,bitrate:8E6,fps:30},oP["271"]={width:2560,height:1440,bitrate:4E6,fps:30},oP["248"]={width:1920,height:1080,bitrate:2E6,fps:30},oP["247"]={width:1280,height:720,bitrate:15E5,fps:30},oP["244"]={width:854,height:480,bitrate:52E4,fps:30},oP["243"]={width:640,height:360,bitrate:28E4,fps:30},oP["137"]={width:1920,height:1080,bitrate:4E6,fps:30},oP["136"]={width:1280,height:720,bitrate:3E6, fps:30},oP["135"]={width:854,height:480,bitrate:1E6,fps:30},oP["385"]={width:1920,height:1080,bitrate:6503313,fps:60},oP["376"]={width:1280,height:720,bitrate:5706960,fps:60},oP["384"]={width:1280,height:720,bitrate:3660979,fps:60},oP["225"]={width:1280,height:720,bitrate:5805E3,fps:30},oP["224"]={width:1280,height:720,bitrate:453E4,fps:30},oP["145"]={width:1280,height:720,bitrate:2682052,fps:30},oP);g.E=tF.prototype;g.E.getInfo=function(){return this.T}; g.E.qC=function(){return null}; g.E.XT=function(){var k=this.qC();return k?(k=g.pY(k.oO),Number(k.expire)):NaN}; g.E.Y3=function(){}; g.E.getHeight=function(){return this.T.video.height};WZ6.prototype.build=function(){LZL(this);var k=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],p={};a:if(this.T)var t=this.T;else{t="";for(var J=g.Z(this.N),q=J.next();!q.done;q=J.next())if(q=q.value,q.ws){if(q.ws.getIsDefault()){t=q.ws.getId();break a}t||(t=q.ws.getId())}}J=g.Z(this.N);for(q=J.next();!q.done;q=J.next())if(q=q.value,this.S||!q.ws||q.ws.getId()===t)p[q.itag]||(p[q.itag]=[]),p[q.itag].push(q);t=g.Z(this.Y);for(J=t.next();!J.done;J=t.next())if(J=J.value,q=p[J.T]){q=g.Z(q);for(var F=q.next();!F.done;F= q.next()){var d=k,S=d.push;F=F.value;var U="#EXT-X-MEDIA:TYPE=AUDIO,",f="YES",b="audio";if(F.ws){b=F.ws;var N=b.getId().split(".")[0];N&&(U+='LANGUAGE="'+N+'",');(this.T?this.T===b.getId():b.getIsDefault())||(f="NO");b=b.getName()}N="";J!==null&&(N=J.itag.toString());N=oj(this,F.url,N);U=U+('NAME="'+b+'",DEFAULT='+(f+',AUTOSELECT=YES,GROUP-ID="'))+(s20(F,J)+'",URI="'+(N+'"'));S.call(d,U)}}t=g.Z(this.X);for(J=t.next();!J.done;J=t.next())J=J.value,q=bXc,J=(d=J.ws)?'#EXT-X-MEDIA:URI="'+oj(this,J.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+q+'",LANGUAGE="'+d.getId()+'",NAME="'+d.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,J&&k.push(J);t=this.X.length>0?bXc:void 0;J=g.Z(this.Y);for(q=J.next();!q.done;q=J.next())q=q.value,S=p[q.T],d=void 0,((d=S)==null?void 0:d.length)>0&&(d=q,S=S[0],S="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+S.bitrate)+',CODECS="'+(d.codecs+","+S.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(s20(S,d)+'",')+(t?'SUBTITLES="'+t+'",':"")+"CLOSED-CAPTIONS=NONE",d.fps>1&&(S+= ",FRAME-RATE="+d.fps),d.Gr&&(S+=",VIDEO-RANGE="+d.Gr),k.push(S),k.push(oj(this,q.url,"")));return k.join("\n")}; var bXc="text";g.r(q2,tF);q2.prototype.XT=function(){return this.expiration}; q2.prototype.qC=function(){if(!this.oO||this.oO.MO()){var k=this.Y.build();k="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(k);this.oO=new fr(k)}return this.oO};g.r(Fp,tF);Fp.prototype.qC=function(){return new fr(this.Y.b1())}; Fp.prototype.Y3=function(){this.Y=CD(this.Y)};g.r($L,tF);$L.prototype.qC=function(){return new fr(this.Y)};var q5={},Xv6=(q5.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",q5.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",q5.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",q5);g.E=g.dn.prototype;g.E.getId=function(){return this.id}; g.E.getName=function(){return this.name}; g.E.isServable=function(){return this.T}; g.E.b1=function(){return this.url}; g.E.getXtags=function(){return this.xtags}; g.E.toString=function(){return this.languageCode+": "+g.EK(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.E.MR=function(k){return k?this.toString()===k.toString():!1}; g.E.IG=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var hmj={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},aXi={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},MH9=/^(\d*)_((\d*)_?(\d*))$/;var uVT={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},lXT={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Fx={},NBS=(Fx.ALWAYS=1,Fx.BY_REQUEST=3,Fx.UNKNOWN=void 0,Fx),$D={},yHq=($D.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",$D.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",$D.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",$D.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",$D);var XSe; XSe=function(k){for(var p=Object.keys(k),t={},J=0;J<p.length;J++){var q=p[J];typeof k[q]==="function"&&(t[q]=k[q])}var F=Object.keys(t);try{R8i(t)}catch(S){var d=S}return function(S,U){S=S===void 0?{}:S;if(d)throw d;for(var f=!1,b={},N=0;N<F.length;N++){var y=F[N],Y=S[y],T=(0,t[y])(Y,U);if(typeof T==="undefined")throw S=U&&U.type,Error("When called with an action of type "+(S?'"'+String(S)+'"':"(unknown type)")+', the slice reducer for key "'+y+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');b[y]= T;f=f||T!==Y}return(f=f||F.length!==Object.keys(S).length)?b:S}}({entities:function(k,p){k=k===void 0?{}:k; return O0w(k,p)}}); g.Kq=new fQ;YL.prototype.toString=function(){return this.type+this.id};g.rn.prototype.KL=function(k){k=k||"hqdefault.jpg";var p=this.L[k];if(p)return p;if(k==="sddefault.jpg"||k==="hq720.jpg"||k==="maxresdefault.jpg")return p;if(this.T)return zG(this.Cp,this.T,k)}; g.rn.prototype.tP=function(){return this.Cp.getVideoUrl(this.videoId,this.playlistId)};g.Z_.prototype.KL=function(k){k||(k="hqdefault.jpg");var p=this.L[k];return p?p:k==="pop1.jpg"||k==="pop2.jpg"||k==="sddefault.jpg"||k==="hq720.jpg"||k==="maxresdefault.jpg"?p:zG(this.Cp,this.videoId,k)}; g.Z_.prototype.tP=function(k){return this.watchUrl||this.Cp.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,k)};var mo=void 0;IiL("LMS",function(){return g.Q(function(k){return k.return(g.VX())})});var Lq;Lq=0;g.YxT=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;IiL("LMDB",function(){var k,p;return g.Q(function(t){if(t.T==1)return g.n(t,g.lr(),2);if(t.T!=3){k=t.Y;if(!k)throw g.TE("edd");return g.n(t,g.sK(k),3)}p=t.Y;return t.return(g.Lz(p,["index","media","captions"],{mode:"readonly",RO:!0},function(J){var q={};J=[g.ir(J.objectStore("index"),{},function(F){q[F.cursor.key]=F.getValue();return g.Q9(F)}), BQ0(J.objectStore("media")),BQ0(J.objectStore("captions"))];return g.Z4.all(J).then(function(F){var d=g.Z(F);d.next();F=d.next().value;d=d.next().value;return{index:q,media:TRS(F||[]),captions:d}})}))})});g.r(cx,g.o$);cx.prototype.Ap=function(){this.T&&(this.T=this.T.onload=null);g.o$.prototype.Ap.call(this)};g.E=g.QX.prototype;g.E.getHeight=function(){return this.height}; g.E.I_=tw(2);g.E.pg=function(){return this.frameCount}; g.E.isDefault=function(){return this.N.indexOf("default")!==-1}; g.E.isLoaded=function(k){return this.loaded.has(k)}; g.E.b1=function(k){var p=this.C;p=p.replace("$N",this.N);p=p.replace("$L",this.level.toString());p=p.replace("$M",k.toString());this.signature&&(p=g.hM(p,{sigh:this.signature}));return Kk(p)}; g.E.IR=function(k){var p=this.pg()-1;return g.Ek(this.T===0?Math.round(k*this.frameCount/this.videoLength):Math.round(k*1E3/this.T),0,p)}; g.E.oz=function(){return this.frameCount-1}; g.E.fl=function(){return this.frameCount?0:-1}; g.E.v2=function(){};g.r(Px,cx);Px.prototype.Y=function(k,p){var t=[];k=k.split("|");for(var J=k[0],q=1;q<k.length;q++){var F=this.X(q-1,J,k[q],p);(this.Z||F.getHeight()<180)&&t.push(F)}return t}; Px.prototype.X=function(k,p,t,J){return new g.QX(k,p,t,J)};g.r(GI,g.QX);g.E=GI.prototype;g.E.pg=function(){return this.Y.jc()}; g.E.IR=function(k){var p=this.rows*this.columns*this.X,t=this.Y,J=t.WH();k=t.cN(k);return k>J-p?-1:k}; g.E.oz=function(){return this.Y.WH()}; g.E.fl=function(){return this.Y.dO()}; g.E.v2=function(k){this.Y=k};g.r(Ij,Px);Ij.prototype.Y=function(k,p){return Px.prototype.Y.call(this,"$N|"+k,p)}; Ij.prototype.X=function(k,p,t){return new GI(k,p,t,this.isLive)};var wTq=[],aj=new Set;g.r(g.Rj,g.o$);g.E=g.Rj.prototype; g.E.setData=function(k){k=k||{};var p=k.errordetail;p!=null&&(this.errorDetail=p);var t=k.errorcode;t!=null?this.errorCode=t:k.status==="fail"&&(this.errorCode="auth");var J=k.reason;J!=null&&(this.errorReason=J);var q=k.subreason;q!=null&&(this.cS=q);this.D("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=k.cpn||(this.Cp.DB()?"r"+g.Zi(15):g.Zi(16)));this.B0=xX(this.Cp.B0,k.livemonitor);WzL(this,k);var F=k.raw_player_response;if(F)this.rh=F;else{var d=k.player_response; d&&(F=JSON.parse(d))}if(this.D("html5_enable_ssap_entity_id")){var S=k.cached_load;S&&(this.iB=xX(this.iB,S));if(!this.clientPlaybackNonce){var U=k.cpn;U?(this.KP("ssei","shdc"),this.clientPlaybackNonce=U):this.clientPlaybackNonce=this.Cp.DB()?"r"+g.Zi(15):g.Zi(16)}}F&&(this.playerResponse=F);if(this.playerResponse){var f=this.playerResponse.annotations;if(f)for(var b=g.Z(f),N=b.next();!N.done;N=b.next()){var y=N.value.playerAnnotationsUrlsRenderer;if(y){y.adsOnly&&(this.VQ=!0);var Y=y.loadPolicy; Y&&(this.annotationsLoadPolicy=NBS[Y]);var T=y.invideoUrl;T&&(this.k8=Kk(T));break}}var A=this.playerResponse.attestation;A&&OH0(this,A);var V=this.playerResponse.cotn;V&&(this.cotn=V);var D=this.playerResponse.heartbeatParams;if(D){AiT(this)&&(this.NJ=!0);var v=D.heartbeatToken;v&&(this.drmSessionId=D.drmSessionId||"",this.heartbeatToken=v,this.Cx=Number(D.intervalMilliseconds),this.Kx=Number(D.maxRetries),this.Pu=!!D.softFailOnError,this.Z_=!!D.useInnertubeHeartbeatsForDrm,this.vJ=!0);this.heartbeatServerData= D.heartbeatServerData;var w;this.u2=!((w=D.heartbeatAttestationConfig)==null||!w.requiresAttestation)}var X=this.playerResponse.messages;X&&kPT(this,X);var B=this.playerResponse.overlay;if(B){var O=B.playerControlsOverlayRenderer;if(O)if(tpL(this,O.controlBgHtml),O.mutedAutoplay){var l=g.e(O.mutedAutoplay,DWK);if(l&&l.endScreen){var oi=g.e(l.endScreen,sTK);oi&&oi.text&&(this.Se=g.f1(oi.text))}}else this.mutedAutoplay=!1}var $h=this.playerResponse.playabilityStatus;if($h){var kh=$h.backgroundability; kh&&kh.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var h,x;if((h=$h.offlineability)==null?0:(x=h.offlineabilityRenderer)==null?0:x.offlineable)this.offlineable=!0;var C=$h.contextParams;C&&(this.contextParams=C);var a=$h.pictureInPicture;a&&a.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);$h.playableInEmbed&&(this.allowEmbed=!0);var zL=$h.ypcClickwrap;if(zL){var AC=zL.playerLegacyDesktopYpcClickwrapRenderer,bJ=zL.ypcRentalActivationRenderer;if(AC)this.Rc=AC.durationMessage|| "",this.Gt=!0;else if(bJ){var LS=bJ.durationMessage;this.Rc=LS?g.f1(LS):"";this.Gt=!0}}var KS=$h.errorScreen;if(KS){if(KS.playerLegacyDesktopYpcTrailerRenderer){var JC=KS.playerLegacyDesktopYpcTrailerRenderer;this.Em=JC.trailerVideoId||"";var Yn=KS.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var W=Yn&&Yn.ypcTrailerRenderer}else if(KS.playerLegacyDesktopYpcOfferRenderer)JC=KS.playerLegacyDesktopYpcOfferRenderer;else if(KS.ypcTrailerRenderer){W=KS.ypcTrailerRenderer;var L=W.fullVideoMessage;this.Vo= L?g.f1(L):"";var c,P;this.Em=((c=g.e(W,L8n))==null?void 0:(P=c.videoDetails)==null?void 0:P.videoId)||""}JC&&(this.cJ=JC.itemTitle||"",JC.itemUrl&&(this.OA=JC.itemUrl),JC.itemBuyUrl&&(this.q5=JC.itemBuyUrl),this.SG=JC.itemThumbnail||"",this.gE=JC.offerHeadline||"",this.k0=JC.offerDescription||"",this.xd=JC.offerId||"",this.ym=JC.offerButtonText||"",this.gW=JC.offerButtonFormattedText||null,this.Yq=JC.overlayDurationMsec||NaN,this.Vo=JC.fullVideoMessage||"",this.p7=!0);if(W){var I=g.e(W,L8n);if(I)this.jd= {raw_player_response:I};else{var pS=g.e(W,R9c);this.jd=pS?xl(pS):null}this.p7=!0}}}var q_=this.playerResponse.playbackTracking;if(q_){var Fe=k,G=N2(q_.googleRemarketingUrl);G&&(this.googleRemarketingUrl=G);var U0=N2(q_.youtubeRemarketingUrl);U0&&(this.youtubeRemarketingUrl=U0);var Yh={},E0=N2(q_.ptrackingUrl);if(E0){var wT=yX(E0),NQ=wT.oid;NQ&&(this.Os=NQ);var RL=wT.pltype;RL&&(this.x7=RL);var bP=wT.ptchn;bP&&(this.Mm=bP);var M_=wT.ptk;M_&&(this.nX=encodeURIComponent(M_));var B4=wT.m;B4&&(this.JR= B4)}var Eb=N2(q_.qoeUrl);if(Eb){for(var wx=g.pY(Eb),ML=g.Z(Object.keys(wx)),Uk=ML.next();!Uk.done;Uk=ML.next()){var h1=Uk.value,ze=wx[h1];wx[h1]=Array.isArray(ze)?ze.join(","):ze}this.Dh=wx;var an=wx.cat;an&&(this.D("html5_enable_qoe_cat_list")?this.hK=this.hK.concat(an.split(",")):this.SF=an);var Ce=wx.live;Ce&&(this.JU=Ce);var fE=wx.drm_product;fE&&(this.gA=fE)}var wv=N2(q_.videostatsPlaybackUrl);if(wv){var b5=yX(wv),ig=b5.adformat;if(ig){Fe.adformat=ig;var ip=this.G(),QQ=gah(ig,this.QQ,ip.C,ip.Z); QQ&&(this.adFormat=QQ)}var sL=b5.aqi;sL&&(Fe.ad_query_id=sL);var H4=b5.autoplay;H4&&(this.VA=H4=="1",this.x0=H4=="1",He(this,"vss"));var Ma=b5.autonav;Ma&&(this.isAutonav=Ma=="1");var Jj=b5.delay;Jj&&(this.ez=pE(Jj));var mE=b5.ei;mE&&(this.eventId=mE);if(b5.adcontext||ig)this.VA=!0,He(this,"ad");var I3=b5.feature;I3&&(this.BV=I3);var NW=b5.list;NW&&(this.playlistId=NW);var Ni=b5.of;Ni&&(this.gh=Ni);var yG=b5.osid;yG&&(this.osid=yG);var YS=b5.referrer;YS&&(this.referrer=YS);var t7=b5.sdetail;t7&&(this.BF= t7);var Fj=b5.ssrt;Fj&&(this.M8=Fj=="1");var J7=b5.subscribed;J7&&(this.subscribed=J7=="1",this.Z.subscribed=J7);var oF=b5.uga;oF&&(this.userGenderAge=oF);var T0=b5.upt;T0&&(this.iM=T0);var r0=b5.vm;r0&&(this.videoMetadata=r0);Yh.playback=b5}var ZE=N2(q_.videostatsWatchtimeUrl);if(ZE){var Cr=yX(ZE),AN=Cr.ald;AN&&(this.eG=AN);Yh.watchtime=Cr}var mr=N2(q_.atrUrl);if(mr){var QR=yX(mr);Yh.atr=QR}var VD=N2(q_.engageUrl);if(VD){var Pe=yX(VD);Yh.engage=Pe}this.mL=Yh;if(q_.promotedPlaybackTracking){var g8= q_.promotedPlaybackTracking;g8.startUrls&&(this.uf=g8.startUrls);g8.firstQuartileUrls&&(this.lA=g8.firstQuartileUrls);g8.secondQuartileUrls&&(this.fk=g8.secondQuartileUrls);g8.thirdQuartileUrls&&(this.Z4=g8.thirdQuartileUrls);g8.completeUrls&&(this.Rb=g8.completeUrls);g8.engagedViewUrls&&(g8.engagedViewUrls.length>1&&g.wt(new g.hm("There are more than one engaged_view_urls.")),this.Iq=g8.engagedViewUrls[0])}}var qT=this.playerResponse.playerCueRanges;qT&&qT.length>0&&(this.cueRanges=qT);var VG=this.playerResponse.playerCueRangeSet; VG&&g.M2(this,VG);a:{var Fu=this.playerResponse.adPlacements;if(Fu)for(var Wo=g.Z(Fu),$y=Wo.next();!$y.done;$y=Wo.next()){var DE=void 0,sI=void 0,Lr=(DE=$y.value.adPlacementRenderer)==null?void 0:(sI=DE.renderer)==null?void 0:sI.videoAdTrackingRenderer;if(Lr){var vo=Lr;break a}}vo=null}var dk=vo;q_&&q_.promotedPlaybackTracking&&dk&&g.wt(new g.hm("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var yr;if(!(yr=dk))a:{for(var co=g.Z(this.playerResponse.adSlots||[]), E_=co.next();!E_.done;E_=co.next()){var SR=g.e(E_.value,wR);if(SR===void 0||!DPu(SR))break;var nr=void 0,Gl=(nr=SR.fulfillmentContent)==null?void 0:nr.fulfilledLayout,w0=g.e(Gl,mz);if(w0&&rR(w0)){yr=!0;break a}}yr=!1}yr&&(this.Az=!0);var iV=this.playerResponse.playerAds;if(iV)for(var I7=k,QG=g.Z(iV),YZ=QG.next();!YZ.done;YZ=QG.next()){var Po=YZ.value;if(Po){var G0=Po.playerLegacyDesktopWatchAdsRenderer;if(G0){var DU=G0.playerAdParams;if(DU){DU.autoplay=="1"&&(this.x0=this.VA=!0);this.hR=DU.encodedAdSafetyReason|| null;DU.showContentThumbnail!==void 0&&(this.CI=!!DU.showContentThumbnail);I7.enabled_engage_types=DU.enabledEngageTypes;break}}}}var AH=this.playerResponse.playerConfig;if(AH){var PZ=AH.manifestlessWindowedLiveConfig;if(PZ){var IU=Number(PZ.minDvrSequence),U_=Number(PZ.maxDvrSequence),Tp=Number(PZ.minDvrMediaTimeMs),rX=Number(PZ.maxDvrMediaTimeMs),f4=Number(PZ.startWalltimeMs);IU&&(this.P3=IU);Tp&&(this.qO=Tp/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&tx(this)&&(this.LA=Tp/ 1E3));U_&&(this.Pj=U_);rX&&(this.aO=rX/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&tx(this)&&(this.N_=rX/1E3));f4&&(this.jW=f4/1E3);(IU||Tp)&&(U_||rX)&&(this.allowLiveDvr=this.isLivePlayback=this.Oy=!0,this.FA=!1)}var Gc=AH.daiConfig;if(Gc){if(Gc.enableDai){this.Ur=!0;var Z1=Gc.enableServerStitchedDai;Z1&&(this.enableServerStitchedDai=Z1);var XN=Gc.enablePreroll;XN&&(this.enablePreroll=XN)}var R7;if(Gc.daiType==="DAI_TYPE_SS_DISABLED"||((R7=Gc.debugInfo)==null?0:R7.isDisabledUnpluggedChannel))this.mj= !0;Gc.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.I2=!0)}var d5=AH.audioConfig;if(d5){var X3=d5.loudnessDb;X3!=null&&(this.wd=X3);var bK9=d5.trackAbsoluteLoudnessLkfs;bK9!=null&&(this.rk=bK9);var N4e=d5.loudnessTargetLkfs;N4e!=null&&(this.loudnessTargetLkfs=N4e);d5.audioMuted&&(this.yr=!0);d5.muteOnStart&&(this.iQ=!0);var Ex=d5.loudnessNormalizationConfig;if(Ex){Ex.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Ex.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var yGi=Ex.minimumLoudnessTargetLkfs;yGi!=null&&(this.minimumLoudnessTargetLkfs=yGi);var YSL=Ex.maxStatefulTimeThresholdSec;YSL!=null&&(this.maxStatefulTimeThresholdSec=YSL)}this.D("web_player_audio_playback_from_audio_config")&&d5.playAudioOnly&&(this.kC=!0)}var bui=AH.playbackEndConfig;if(bui){var T4h=bui.endSeconds,rGh=bui.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(T4h&&(this.endSeconds=T4h),rGh&&(this.limitedPlaybackDurationInSeconds=rGh))}var tv=AH.fairPlayConfig;if(tv){var ZK9= tv.certificate;ZK9&&(this.v0=Js(ZK9));var CaM=Number(tv.keyRotationPeriodMs);CaM>0&&(this.RU=CaM);var AGe=Number(tv.keyPrefetchMarginMs);AGe>0&&(this.uE=AGe)}var lo=AH.playbackStartConfig;if(lo){this.I7=Number(lo.startSeconds);var mE0=lo.liveUtcStartSeconds,VPM=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;mE0&&!VPM&&(this.liveUtcStartSeconds=Number(mE0));var Neh=lo.startPosition;if(Neh){var WK0=Neh.utcTimeMillis;WK0&&!VPM&&(this.liveUtcStartSeconds=Number(WK0)*.001);var DEq=Neh.streamTimeMillis; DEq&&(this.Ji=Number(DEq)*.001)}this.progressBarStartPosition=lo.progressBarStartPosition;this.progressBarEndPosition=lo.progressBarEndPosition}else{var yYu=AH.skippableSegmentsConfig;if(yYu){var sBq=yYu.introSkipDurationMs;sBq&&(this.HJ=Number(sBq)/1E3);var LKM=yYu.outroSkipDurationMs;LKM&&(this.ys=Number(LKM)/1E3)}}var YZu=AH.skippableIntroConfig;if(YZu){var vR0=Number(YZu.startMs),cG6=Number(YZu.endMs);isNaN(vR0)||isNaN(cG6)||(this.Xo=vR0,this.V4=cG6)}var nRS=AH.streamSelectionConfig;nRS&&(this.Kb= Number(nRS.maxBitrate));var wO9=AH.vrConfig;wO9&&(this.z1=wO9.partialSpherical=="1");var Sp=AH.webDrmConfig;if(Sp){Sp.skipWidevine&&(this.kR=!0);var iKM=Sp.widevineServiceCert;iKM&&(this.Oo=Js(iKM));Sp.useCobaltWidevine&&(this.useCobaltWidevine=!0);Sp.startWithNoQualityConstraint&&(this.YN=!0)}var gl=AH.mediaCommonConfig;if(gl){var Jv=gl.dynamicReadaheadConfig;if(Jv){this.maxReadAheadMediaTimeMs=Jv.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Jv.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= Jv.readAheadGrowthRateMs||NaN;var QBT,Paq=gl==null?void 0:(QBT=gl.mediaUstreamerRequestConfig)==null?void 0:QBT.videoPlaybackUstreamerConfig;Paq&&(this.Oe=Js(Paq));var TeL=gl==null?void 0:gl.sabrContextUpdates;if(TeL&&TeL.length>0)for(var GBL=g.Z(TeL),rYT=GBL.next();!rYT.done;rYT=GBL.next()){var U3=rYT.value;if(U3.type&&U3.value){var D9R={type:U3.type,scope:U3.scope,value:Js(U3.value)||void 0,sendByDefault:U3.sendByDefault};this.sabrContextUpdates.set(U3.type,D9R)}}}var IB_=gl.serverPlaybackStartConfig; IB_&&(this.serverPlaybackStartConfig=IB_);gl.useServerDrivenAbr&&(this.St=!0);var XOL=gl.requestPipeliningConfig;XOL&&(this.requestPipeliningConfig=XOL)}var RdL=AH.inlinePlaybackConfig;RdL&&(this.JX=!!RdL.showAudioControls);var o1=AH.embeddedPlayerConfig;if(o1){this.embeddedPlayerConfig=o1;var ZuS=o1.embeddedPlayerMode;if(ZuS){var B4M=this.G();B4M.P0=ZuS;B4M.N=ZuS==="EMBEDDED_PLAYER_MODE_PFL"}var zdM=o1.permissions;zdM&&(this.allowImaMonetization=!!zdM.allowImaMonetization)}var edj=AH.ssapConfig; edj&&(this.Le=edj.ssapPrerollEnabled||!1);var qj=AH.webPlayerConfig;qj&&(qj.gatewayExperimentGroup&&(this.gatewayExperimentGroup=qj.gatewayExperimentGroup),qj.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var uv=this.playerResponse.streamingData;if(uv){var CC6=uv.formats;if(CC6){for(var Ux=[],hdu=g.Z(CC6),AYq=hdu.next();!AYq.done;AYq=hdu.next()){var mpi=AYq.value;Ux.push(mpi.itag+"/"+mpi.width+"x"+mpi.height)}this.KC=Ux.join(",");Ux=[];for(var aBj=g.Z(CC6),Vcu=aBj.next();!Vcu.done;Vcu=aBj.next()){var fJ= Vcu.value,b9={itag:fJ.itag,type:fJ.mimeType,quality:fJ.quality},MP0=fJ.url;MP0&&(b9.url=MP0);var Fg=A6(fJ),s3c=Fg.bC,LxQ=Fg.Po,vlq=Fg.s;Fg.jO&&(b9.url=s3c,b9.sp=LxQ,b9.s=vlq);Ux.push(g.er(b9))}this.vQ=Ux.join(",")}var Wa0=uv.hlsFormats;if(Wa0){var gRL=AH||null,$q={};if(gRL){var DpL=gRL.audioPairingConfig;if(DpL&&DpL.pairs)for(var u4L=g.Z(DpL.pairs),s_h=u4L.next();!s_h.done;s_h=u4L.next()){var lBT=s_h.value,Laq=lBT.videoItag;$q[Laq]||($q[Laq]=[]);$q[Laq].push(lBT.audioItag)}}for(var jBw={},OKS=g.Z(Wa0), vT9=OKS.next();!vT9.done;vT9=OKS.next()){var KKS=vT9.value;jBw[KKS.itag]=KKS.bitrate}for(var HKw=[],xE0=g.Z(Wa0),cY_=xE0.next();!cY_.done;cY_=xE0.next()){var kJ=cY_.value,WC={itag:kJ.itag,type:kJ.mimeType,url:kJ.url,bitrate:kJ.bitrate,width:kJ.width,height:kJ.height,fps:kJ.fps},dM=kJ.audioTrack;if(dM){var kAT=dM.displayName;kAT&&(WC.name=kAT,WC.audio_track_id=dM.id,dM.audioIsDefault&&(WC.is_default="1"))}if(kJ.drmFamilies){for(var pIh=[],tlu=g.Z(kJ.drmFamilies),nT0=tlu.next();!nT0.done;nT0=tlu.next())pIh.push(Em[nT0.value]); WC.drm_families=pIh.join(",")}var EF=$q[kJ.itag];if(EF&&EF.length){WC.audio_itag=EF.join(",");var Jr0=jBw[EF[0]];Jr0&&(WC.bitrate+=Jr0)}var oOq=IE6(kJ);oOq&&(WC.eotf=oOq);kJ.audioChannels&&(WC.audio_channels=kJ.audioChannels);HKw.push(g.er(WC))}this.hlsFormats=HKw.join(",")}var wHi=uv.licenseInfos;if(wHi&&wHi.length>0){for(var q6q={},FwM=g.Z(wHi),iuL=FwM.next();!iuL.done;iuL=FwM.next()){var $li=iuL.value,dl9=$li.drmFamily,EOe=$li.url;dl9&&EOe&&(q6q[Em[dl9]]=EOe)}this.xf=q6q}var S6M=uv.drmParams;S6M&& (this.drmParams=S6M);var Uli=uv.dashManifestUrl;Uli&&(this.nT=g.hM(Uli,{cpn:this.clientPlaybackNonce}));var f2i=uv.hlsManifestUrl;f2i&&(this.hlsvp=f2i);var bPj=uv.probeUrl;bPj&&(this.probeUrl=Kk(g.hM(bPj,{cpn:this.clientPlaybackNonce})));var N9i=uv.serverAbrStreamingUrl;N9i&&(this.BR=new g.yb(N9i,!0))}var yre=this.playerResponse.trackingParams;yre&&(this.j6=yre);var uP=this.playerResponse.videoDetails;if(uP){var D0=k,Q_u=uP.videoId;Q_u&&(this.videoId=Q_u,D0.video_id||(D0.video_id=Q_u));var Y6h=uP.channelId; Y6h&&(this.Z.uid=Y6h.substring(2));var PCh=uP.title;PCh&&(this.title=PCh,D0.title||(D0.title=PCh));var G3i=uP.lengthSeconds;G3i&&(this.lengthSeconds=Number(G3i),D0.length_seconds||(D0.length_seconds=G3i));var T90=uP.keywords;T90&&(this.keywords=cb9(T90));var IbS=uP.channelId;IbS&&(this.Nc=IbS,D0.ucid||(D0.ucid=IbS));var rr9=uP.viewCount;rr9&&(this.rawViewCount=Number(rr9));var XH0=uP.author;XH0&&(this.author=XH0,D0.author||(D0.author=XH0));var ZPi=uP.shortDescription;ZPi&&(this.shortDescription=ZPi); var CKM=uP.isCrawlable;CKM&&(this.isListed=CKM);var ArL=uP.musicVideoType;ArL&&(this.musicVideoType=ArL);var R5i=uP.isLive;R5i!=null&&(this.isLivePlayback=R5i);if(R5i||uP.isUpcoming)this.isPremiere=!uP.isLiveContent;var ml_=uP.thumbnail;ml_&&(this.L=bb(ml_));var VlM=uP.isExternallyHostedPodcast;VlM&&(this.isExternallyHostedPodcast=VlM);var Bej=uP.viewerLivestreamJoinPosition;if(Bej==null?0:Bej.utcTimeMillis)this.Fx=pE(Bej.utcTimeMillis);var Wwu=AH||null,z5h=k;uP.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast= !0);uP.isUpcoming&&(this.isUpcoming=!0);if(uP.isPostLiveDvr){this.FA=!0;var DlM=uP.latencyClass;DlM&&(this.latencyClass=yHq[DlM]||"UNKNOWN");uP.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var e5i=!1;this.B0?(this.allowLiveDvr=KR()?!0:u6&&Hr<5?!1:!0,this.isLivePlayback=!0):uP.isLive?(z5h.livestream="1",this.allowLiveDvr=uP.isLiveDvrEnabled?KR()?!0:u6&&Hr<5?!1:!0:!1,this.partnerId=27,e5i=!0):uP.isUpcoming&&(e5i=!0);if(uP.isLive||this.B0&&this.D("html5_parse_live_monitor_flags")){uP.isLowLatencyLiveStream&& (this.isLowLatencyLiveStream=!0);var s6h=uP.latencyClass;s6h&&(this.latencyClass=yHq[s6h]||"UNKNOWN");var Lw9=uP.liveChunkReadahead;Lw9&&(this.liveChunkReadahead=Lw9);var jx=Wwu&&Wwu.livePlayerConfig;if(jx){jx.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);jx.hasSubfragmentedWebm&&(this.zf=!0);jx.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var vOh=jx.liveExperimentalContentId;vOh&&(this.liveExperimentalContentId=Number(vOh));var cre=jx.isLiveHeadPlayable;this.D("html5_live_head_playable")&& cre!=null&&(this.isLiveHeadPlayable=cre)}}e5i&&(this.isLivePlayback=!0,z5h.adformat&&z5h.adformat.split("_")[1]!=="8"||this.P0.push("heartbeat"),this.vJ=!0)}var nO6=uP.isPrivate;nO6!==void 0&&(this.isPrivate=xX(this.isPrivate,nO6))}if($h){var wIu=uP||null,iPj=!1,Oh=$h.errorScreen;iPj=Oh&&(Oh.playerLegacyDesktopYpcOfferRenderer||Oh.playerLegacyDesktopYpcTrailerRenderer||Oh.ypcTrailerRenderer)?!0:wIu&&wIu.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes($h.status);if(!iPj){this.errorCode= Rmi($h.errorCode)||"auth";var ST=Oh&&Oh.playerErrorMessageRenderer;if(ST){this.playerErrorMessageRenderer=ST;var Q6j=ST.reason;Q6j&&(this.errorReason=g.f1(Q6j));var h5i=ST.subreason;h5i&&(this.cS=g.f1(h5i),this.aU=h5i)}else this.errorReason=$h.reason||null;var abj=$h.status;if(abj==="LOGIN_REQUIRED")this.errorDetail="1";else if(abj==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(abj==="AGE_CHECK_REQUIRED"){var PKh=$h.errorScreen,GAj=PKh&&PKh.playerKavRenderer;this.errorDetail=GAj&&GAj.kavUrl? "4":"3"}else this.errorDetail=$h.isBlockedInRestrictedMode?"5":"0"}}var I29=this.playerResponse.interstitialPods;I29&&xkS(this,I29);this.k8&&this.eventId&&(this.k8=Je(this.k8,{ei:this.eventId}));var Mci=this.playerResponse.captions;if(Mci&&Mci.playerCaptionsTracklistRenderer)a:{var sH=Mci.playerCaptionsTracklistRenderer;this.captionTracks=[];if(sH.captionTracks)for(var XI9=g.Z(sH.captionTracks),gTi=XI9.next();!gTi.done;gTi=XI9.next()){var LZ=gTi.value,RCM=sh9(LZ.baseUrl);if(!RCM)break a;var uv6={is_translateable:!!LZ.isTranslatable, languageCode:LZ.languageCode,languageName:LZ.name&&g.f1(LZ.name),url:RCM,vss_id:LZ.vssId,kind:LZ.kind};uv6.name=LZ.trackName;uv6.displayName=LZ.name&&g.f1(LZ.name);this.captionTracks.push(new g.dn(uv6))}this.wh=sH.audioTracks||[];this.N6=sH.defaultAudioTrackIndex||0;this.G5=[];if(sH.translationLanguages)for(var B9L=g.Z(sH.translationLanguages),lbj=B9L.next();!lbj.done;lbj=B9L.next()){var KQ=lbj.value,f0={};f0.languageCode=KQ.languageCode;f0.languageName=g.f1(KQ.languageName);if(KQ.translationSourceTrackIndices){f0.translationSourceTrackIndices= [];for(var zC0=g.Z(KQ.translationSourceTrackIndices),j_M=zC0.next();!j_M.done;j_M=zC0.next())f0.translationSourceTrackIndices.push(j_M.value)}if(KQ.excludeAudioTrackIndices){f0.excludeAudioTrackIndices=[];for(var eCM=g.Z(KQ.excludeAudioTrackIndices),OuT=eCM.next();!OuT.done;OuT=eCM.next())f0.excludeAudioTrackIndices.push(OuT.value)}this.G5.push(f0)}this.Ha=[];if(sH.defaultTranslationSourceTrackIndices)for(var hCq=g.Z(sH.defaultTranslationSourceTrackIndices),Kah=hCq.next();!Kah.done;Kah=hCq.next())this.Ha.push(Kah.value); this.wc=!!sH.contribute&&!!sH.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.I7=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&pTe(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var a2h;this.compositeLiveIngestionOffsetToken= (a2h=this.playerResponse.playbackTracking)==null?void 0:a2h.compositeLiveIngestionOffsetToken;var Mle;this.compositeLiveStatusToken=(Mle=this.playerResponse.playbackTracking)==null?void 0:Mle.compositeLiveStatusToken}zI(this,k);k.queue_info&&(this.queueInfo=k.queue_info);var gOi=k.hlsdvr;gOi!=null&&(this.allowLiveDvr=Number(gOi)===1?KR()?!0:u6&&Hr<5?!1:!0:!1);this.adQueryId=k.ad_query_id||null;this.hR||(this.hR=k.encoded_ad_safety_reason||null);this.XF=k.agcid||null;this.D4=k.ad_id||null;this.Wa= k.ad_sys||null;this.Ku=k.encoded_ad_playback_context||null;this.yr=xX(this.yr,k.infringe||k.muted);this.YG=k.authkey;this.KFy=k.authuser;this.mutedAutoplay=xX(this.mutedAutoplay,k&&k.playmuted);this.mutedAutoplayDurationMode=pG(this.mutedAutoplayDurationMode,k&&k.muted_autoplay_duration_mode);this.kE=xX(this.kE,k&&k.mutedautoplay);var UF=k.length_seconds;UF&&(this.lengthSeconds=typeof UF==="string"?pE(UF):UF);if(this.isAd()||this.SB||!g.Fa(g.i$(this.Cp)))this.endSeconds=pG(this.endSeconds,this.ys|| k.end||k.endSeconds);else{var cqJ=g.i$(this.Cp),f$=this.lengthSeconds;switch(cqJ){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":f$>30?this.limitedPlaybackDurationInSeconds=30:f$<30&&f$>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=f$*.2}}this.j6=tm(this.j6,k.itct);this.hc=xX(this.hc,k.noiba);this.g1=xX(this.g1,k.is_live_destination);this.isLivePlayback=xX(this.isLivePlayback,k.live_playback); this.enableServerStitchedDai=this.enableServerStitchedDai&&this.m2();k.isUpcoming&&(this.isUpcoming=xX(this.isUpcoming,k.isUpcoming));this.FA=xX(this.FA,k.post_live_playback);this.Oy&&(this.FA=!1);this.isMdxPlayback=xX(this.isMdxPlayback,k.mdx);var bl=k.mdx_control_mode;bl&&(this.mdxControlMode=typeof bl==="number"?bl:pE(bl));this.isInlinePlaybackNoAd=xX(this.isInlinePlaybackNoAd,k.is_inline_playback_no_ad);this.yn=pG(this.yn,k.reload_count);this.reloadReason=tm(this.reloadReason,k.reload_reason); this.CI=xX(this.CI,k.show_content_thumbnail);this.a5=xX(this.a5,k.utpsa);this.cycToken=k.cyc||null;this.dh=k.tkn||null;var uE0=fq(k);Object.keys(uE0).length>0&&(this.L=uE0);this.Y8=tm(this.Y8,k.vvt);this.mdxEnvironment=tm(this.mdxEnvironment,k.mdx_environment);k.source_container_playlist_id&&(this.sourceContainerPlaylistId=k.source_container_playlist_id);k.serialized_mdx_metadata&&(this.serializedMdxMetadata=k.serialized_mdx_metadata);this.Am=k.osig;this.eventId||(this.eventId=k.eventid);this.osid|| (this.osid=k.osid);this.playlistId=tm(this.playlistId,k.list);k.index&&(this.playlistIndex=this.playlistIndex===void 0?pG(0,k.index):pG(this.playlistIndex,k.index));this.WZ=k.pyv_view_beacon_url;this.GW=k.pyv_quartile25_beacon_url;this.Ug=k.pyv_quartile50_beacon_url;this.KB=k.pyv_quartile75_beacon_url;this.SZ=k.pyv_quartile100_beacon_url;var l2i=k.session_data;!this.r8&&l2i&&(this.r8=KF(l2i,"&").feature);this.isFling=pG(this.isFling?1:0,k.is_fling)===1;this.vnd=pG(this.vnd,k.vnd);this.forceAdsUrl= tm(this.forceAdsUrl,k.force_ads_url);this.C7=tm(this.C7,k.ctrl);this.HR=tm(this.HR,k.ytr);this.Fb=k.ytrcc;this.XC=k.ytrexp;this.Ib=k.ytrext;this.UQ=tm(this.UQ,k.adformat);this.QQ=tm(this.QQ,k.attrib);this.slotPosition=pG(this.slotPosition,k.slot_pos);this.breakType=k.break_type;this.M8=xX(this.M8,k.ssrt);this.videoId=ou(k)||this.videoId;this.S=tm(this.S,k.vss_credentials_token);this.Q$=tm(this.Q$,k.vss_credentials_token_type);this.kC=xX(this.kC,k.audio_only);this.pp=xX(this.pp,k.aac_high);this.bA= xX(this.bA,k.prefer_low_quality_audio);this.iC=xX(this.iC,k.uncap_inline_quality);this.D("html5_enable_qoe_cat_list")?k.qoe_cat&&(this.hK=this.hK.concat(k.qoe_cat.split(","))):this.SF=tm(this.SF,k.qoe_cat);this.OS=xX(this.OS,k.download_media);var j6q=k.prefer_gapless;this.B=j6q!=null?xX(this.B,j6q):this.B?this.B:this.Cp.preferGapless&&this.Cp.supportsGaplessShorts();xGi(this.playerResponse)&&this.P0.push("ad");var OPh=k.adaptive_fmts;OPh&&(this.adaptiveFormats=OPh,this.yT("adpfmts",{},!0));var Kw0= k.allow_embed;Kw0&&(this.allowEmbed=Number(Kw0)===1);var HPL=k.backgroundable;HPL&&(this.backgroundable=Number(HPL)===1);var xl6=k.autonav;xl6&&(this.isAutonav=Number(xl6)===1);var k_w=k.autoplay;k_w&&(this.VA=this.x0=Number(k_w)===1,He(this,"c"));var pJL=k.iv_load_policy;pJL&&(this.annotationsLoadPolicy=k9(this.annotationsLoadPolicy,pJL,Q0));var tQw=k.cc_lang_pref;tQw&&(this.captionsLanguagePreference=tm(tQw,this.captionsLanguagePreference));var JJu=k.cc_load_policy;JJu&&(this.m8=k9(this.m8,JJu, Q0));var oF9;this.deviceCaptionsOn=(oF9=k.device_captions_on)!=null?oF9:void 0;var qdi;this.tX=(qdi=k.device_captions_lang_pref)!=null?qdi:"";var FgL;this.TB=(FgL=k.viewer_selected_caption_langs)!=null?FgL:[];if(!this.D("html5_enable_ssap_entity_id")){var $eM=k.cached_load;$eM&&(this.iB=xX(this.iB,$eM))}if(k.dash==="0"||k.dash===0||k.dash===!1)this.rW=!0;var deq=k.dashmpd;deq&&(this.nT=g.hM(deq,{cpn:this.clientPlaybackNonce}));var EFL=k.delay;EFL&&(this.ez=pE(EFL));var HuL=this.ys||k.end;if(this.mW? HuL!=null:HuL!=void 0)this.clipEnd=pG(this.clipEnd,HuL);var SdT=k.fmt_list;SdT&&(this.KC=SdT);k.heartbeat_preroll&&this.P0.push("heartbeat");this.qG=-Math.floor(Math.random()*10);this.md=-Math.floor(Math.random()*40);var Uei=k.is_listed;Uei&&(this.isListed=xX(this.isListed,Uei));var fIS=k.is_private;fIS&&(this.isPrivate=xX(this.isPrivate,fIS));var bNM=k.is_dni;bNM&&(this.JB=xX(this.JB,bNM));var Nc6=k.dni_color;Nc6&&(this.AK=tm(this.AK,Nc6));var yJj=k.pipable;yJj&&(this.pipable=xX(this.pipable,yJj)); this.xM=(this.H$=this.pipable&&this.Cp.vJ)&&!this.Cp.showMiniplayerButton;var Yd0=k.paid_content_overlay_duration_ms;Yd0&&(this.paidContentOverlayDurationMs=pE(Yd0));var Tcw=k.paid_content_overlay_text;Tcw&&(this.paidContentOverlayText=Tcw);var rJL=k.url_encoded_fmt_stream_map;rJL&&(this.vQ=rJL);var ZNM=k.hls_formats;ZNM&&(this.hlsFormats=ZNM);var C19=k.hlsvp;C19&&(this.hlsvp=C19);var Nj=k.live_start_walltime;Nj&&(this.La=typeof Nj==="number"?Nj:pE(Nj));var yJ=k.live_manifest_duration;yJ&&(this.Eo= typeof yJ==="number"?yJ:pE(yJ));var AJw=k.player_params;AJw&&(this.playerParams=AJw);var meM=k.partnerid;meM&&(this.partnerId=pG(this.partnerId,meM));var VQ9=k.probe_url;VQ9&&(this.probeUrl=Kk(g.hM(VQ9,{cpn:this.clientPlaybackNonce})));var xp0=k.pyv_billable_url;xp0&&dqS(xp0)&&(this.Iq=xp0);var kJ_=k.pyv_conv_url;kJ_&&dqS(kJ_)&&(this.BZ=kJ_);nPM(this,k);this.startSeconds>0?this.D("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.I7||this.HJ||k.start||k.startSeconds)&&this.yT("lss", {css:this.startSeconds,pcss:this.I7,iss:this.HJ,ps:k.start||void 0,pss:k.startSeconds||void 0}):this.nE=this.startSeconds=pG(this.startSeconds,this.I7||this.HJ||k.start||k.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Wgh=k.live_utc_start;if(Wgh!=null)this.liveUtcStartSeconds=Number(Wgh);else{var pQi=this.startSeconds;pQi&&isFinite(pQi)&&pQi>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var DeL=k.utc_start_millis; DeL&&(this.liveUtcStartSeconds=Number(DeL)*.001)}var sxT=k.stream_time_start_millis;sxT&&(this.Ji=Number(sxT)*.001);var tO9=this.HJ||k.start;(this.mW?tO9==null||Number(k.resume)===1:tO9==void 0||k.resume=="1")||this.isLivePlayback||(this.clipStart=pG(this.clipStart,tO9));var Lg0=k.url_encoded_third_party_media;Lg0&&(this.q_=kX(Lg0));var J20=k.ypc_offer_button_formatted_text;if(J20){var vF6=JSON.parse(J20);this.gW=vF6!=null?vF6:null;this.IL=J20}var cJ9=k.ypc_offer_button_text;cJ9&&(this.ym=cJ9);var nFj= k.ypc_offer_description;nFj&&(this.k0=nFj);var wJq=k.ypc_offer_headline;wJq&&(this.gE=wJq);var iNq=k.ypc_full_video_message;iNq&&(this.Vo=iNq);var Qx6=k.ypc_offer_id;Qx6&&(this.xd=Qx6);var P1q=k.ypc_buy_url;P1q&&(this.q5=P1q);var G_T=k.ypc_item_thumbnail;G_T&&(this.SG=G_T);var IIL=k.ypc_item_title;IIL&&(this.cJ=IIL);var XJw=k.ypc_item_url;XJw&&(this.OA=XJw);var Rv9=k.ypc_vid;Rv9&&(this.Em=Rv9);k.ypc_overlay_timeout&&(this.Yq=Number(k.ypc_overlay_timeout));var Bcu=k.ypc_trailer_player_vars;Bcu&&(this.jd= xl(Bcu));var zvh=k.ypc_original_itct;zvh&&(this.vc=zvh);this.Nc=tm(this.Nc,k.ucid);k.baseUrl&&(this.Z.baseUrl=k.baseUrl);k.uid&&(this.Z.uid=k.uid);k.oeid&&(this.Z.oeid=k.oeid);k.ieid&&(this.Z.ieid=k.ieid);k.ppe&&(this.Z.ppe=k.ppe);k.engaged&&(this.Z.engaged=k.engaged);k.subscribed&&(this.Z.subscribed=k.subscribed);this.Z.focEnabled=xX(this.Z.focEnabled,k.focEnabled);this.Z.rmktEnabled=xX(this.Z.rmktEnabled,k.rmktEnabled);this.LP=k.storyboard_spec||null;this.jl=k.live_storyboard_spec||null;this.o6= k.iv_endscreen_url||null;this.vJ=xX(this.vJ,k.ypc_license_checker_module);this.p7=xX(this.p7,k.ypc_module);this.Gt=xX(this.Gt,k.ypc_clickwrap_module);this.p7&&this.P0.push("ypc");this.Gt&&this.P0.push("ypc_clickwrap");this.Xj={video_id:k.video_id,eventid:k.eventid,cbrand:k.cbrand,cbr:k.cbr,cbrver:k.cbrver,c:k.c,cver:k.cver,ctheme:k.ctheme,cplayer:k.cplayer,cmodel:k.cmodel,cnetwork:k.cnetwork,cos:k.cos,cosver:k.cosver,cplatform:k.cplatform,user_age:k.user_age,user_display_image:k.user_display_image, user_display_name:k.user_display_name,user_gender:k.user_gender,csi_page_type:k.csi_page_type,csi_service_name:k.csi_service_name,enablecsi:k.enablecsi,enabled_engage_types:k.enabled_engage_types};Dgi(this,k);var evS=k.cotn;evS&&(this.cotn=evS);if(aKM(this))qC(this)&&(this.isLivePlayback&&this.nT&&(this.gp=!0),this.v0&&(this.du=!0));else if(Mpi(this))this.gp=!0;else{var hvT,aI9,MQ0=((hvT=this.playerResponse)==null?void 0:(aI9=hvT.streamingData)==null?void 0:aI9.adaptiveFormats)||[];if(MQ0.length> 0)var Ng=hrh(this,MQ0);else{var gFu=this.adaptiveFormats;if(gFu&&!qC(this)){FO(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(m2=!0);var Hd=bE(gFu),oY6=this.xf,uJT=this.lengthSeconds,nlA=this.isLivePlayback,yk=this.FA,xU=this.Cp,win=Hri(Hd);if(nlA||yk){var lIL=xU==null?void 0:xU.experiments,Im=new $m("",lIL,!0);Im.m2=!0;Im.isManifestless=!0;Im.Y=!yk;Im.isLive=!yk;Im.FA=yk;for(var jxj=g.Z(Hd),qkT=jxj.next();!qkT.done;qkT=jxj.next()){var ki=qkT.value,ONM=Um(ki,oY6),b7=fR(ki.url,ki.sp,ki.s), Kgq=b7.get("id");Kgq&&Kgq.includes("%7E")&&(Im.L=!0);var HN9=void 0,iF9=(HN9=lIL)==null?void 0:HN9.Gb("html5_max_known_end_time_rebase"),Q3A=Number(ki.target_duration_sec)||5,PwJ=Number(ki.max_dvr_duration_sec)||14400,xeT=Number(b7.get("mindsq")||b7.get("min_sq")||"0"),kZi=Number(b7.get("maxdsq")||b7.get("max_sq")||"0")||Infinity;Im.P3=Im.P3||xeT;Im.Pj=Im.Pj||kZi;var Gyc=!KC(ONM.mimeType);b7&&os(Im,new Mr(b7,ONM,{JM:Q3A,D0:Gyc,VK:PwJ,P3:xeT,Pj:kZi,P4:300,FA:yk,Ho:iF9}))}var pb6=Im}else{if(win==="FORMAT_STREAM_TYPE_OTF"){var Yq= uJT;Yq=Yq===void 0?0:Yq;var pf=new $m("",xU==null?void 0:xU.experiments,!1);pf.duration=Yq||0;for(var tnT=g.Z(Hd),FcL=tnT.next();!FcL.done;FcL=tnT.next()){var t$=FcL.value,$Li=Um(t$,oY6,pf.duration),dLw=fR(t$.url,t$.sp,t$.s);if(dLw)if($Li.streamType==="FORMAT_STREAM_TYPE_OTF")os(pf,new gj(dLw,$Li,"sq/0"));else{var I8a=mU(t$.init),XiC=mU(t$.index);os(pf,new pR(dLw,$Li,I8a,XiC))}}pf.isOtf=!0;var JP6=pf}else{var T6=uJT;T6=T6===void 0?0:T6;var rM=new $m("",xU==null?void 0:xU.experiments,!1);rM.duration= T6||0;for(var oN_=g.Z(Hd),EYu=oN_.next();!EYu.done;EYu=oN_.next()){var J$=EYu.value,RKR=Um(J$,oY6,rM.duration),BDa=mU(J$.init),zKK=mU(J$.index),qui=fR(J$.url,J$.sp,J$.s);qui&&os(rM,new pR(qui,RKR,BDa,zKK))}JP6=rM}pb6=JP6}var FbL=pb6;if(Hd.length>0){var $Xu=Hd[0];if(this.G().playerStyle==="hangouts-meet"&&$Xu.url){var eKS=g.pY($Xu.url);this.mu=this.mu||Number(eKS.expire)}}var hKq=this.isLivePlayback&&!this.FA&&!this.Oy&&!this.isPremiere;this.D("html5_live_head_playable")&&(!$u(this)&&hKq&&this.yT("missingLiveHeadPlayable", {}),this.Cp.gy==="yt"&&(FbL.W0=!0));Ng=FbL}else Ng=null;this.yT("pafmts",{isManifestFilled:!!Ng})}if(Ng){SJ(this,Ng);var dX6=!0}else dX6=!1;dX6?this.enableServerStitchedDai=this.enableServerStitchedDai&&dS(this):this.nT&&(this.Cp.gy==="yt"&&this.m2()&&this.D("drm_manifestless_unplugged")&&this.D("html5_deprecate_manifestful_fallback")?this.yT("deprecateMflFallback",{}):this.gp=!0)}var SkS=k.adpings;SkS&&(this.tR=SkS?xl(SkS):null);var ENq=k.feature;ENq&&(this.BV=ENq);var Suq=k.referrer;Suq&&(this.referrer= Suq);this.clientScreenNonce=tm(this.clientScreenNonce,k.csn);this.cM=pG(this.cM,k.root_ve_type);this.zv=pG(this.zv,k.kids_age_up_mode);this.mW||k.kids_app_info==void 0||(this.kidsAppInfo=k.kids_app_info);this.mW&&k.kids_app_info!=null&&(this.kidsAppInfo=k.kids_app_info);this.rE=xX(this.rE,k.upg_content_filter_mode);this.unpluggedFilterModeType=pG(this.unpluggedFilterModeType,k.unplugged_filter_mode_type);var UX9=k.unplugged_location_info;UX9&&(this.gy=UX9);var fF_=k.unplugged_partner_opt_out;fF_&& (this.XB=tm("",fF_));this.UA=xX(this.UA,k.disable_watch_next);this.Gv=tm(this.Gv,k.internal_ip_override);this.yJ=!!k.is_yto_interstitial;(this.interstitials.length||this.yJ)&&this.P0.push("yto");var bb9=k.po;bb9&&(this.po=bb9);var NVu;this.IY=(NVu=k.csi_timer)!=null?NVu:"";this.mE=!!k.force_gvi;k.watchUrl&&(this.watchUrl=k.watchUrl);var N1=k.watch_endpoint;this.D("html5_attach_watch_endpoint_ustreamer_config")&&N1&&zmT(this,N1);if(N1==null?0:N1.ustreamerConfig)this.eF=Js(N1.ustreamerConfig);var yPi, Yue,TVe=N1==null?void 0:(yPi=N1.loggingContext)==null?void 0:(Yue=yPi.qoeLoggingContext)==null?void 0:Yue.serializedContextData;TVe&&(this.qH=TVe);g.V0(this.Cp)&&this.Cp.u2&&(this.embedsRct=tm(this.embedsRct,k.rct),this.embedsRctn=tm(this.embedsRctn,k.rctn));this.AP=this.AP||!!k.pause_at_start;k.default_active_source_video_id&&(this.defaultActiveSourceVideoId=k.default_active_source_video_id)}; g.E.G=function(){return this.Cp}; g.E.D=function(k){return this.Cp.D(k)}; g.E.qA=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.E.hasSupportedAudio51Tracks=function(){var k;return!((k=this.fZ)==null||!k.Jp)}; g.E.getUserAudio51Preference=function(){var k=1;g7(this.Cp)&&this.D("html5_ytv_surround_toggle_default_off")?k=0:g.hs(this.Cp)&&this.isLivePlayback&&this.CH()&&(k=0);var p;return(p=g.nG("yt-player-audio51"))!=null?p:k}; g.E.P6=function(){this.MO()||(this.T.Y||this.T.unsubscribe("refresh",this.P6,this),this.Mi(-1))}; g.E.Mi=function(k){if(!this.isLivePlayback||!this.X||this.X.flavor!=="fairplay"){var p=k1w(this.T,this.UO);if(p.length>0){for(var t=g.Z(p),J=t.next();!J.done;J=t.next())J=J.value,J.startSecs=Math.max(J.startSecs,this.xx()),this.D("html5_cuepoint_identifier_logging")&&J.event==="start"&&this.yT("cuepoint",{pubCue:J.identifier,segNum:k});this.publish("cuepointupdated",p,k);this.UO+=p.length;if(dS(this)&&this.Cp.DB())for(p=g.Z(p),t=p.next();!t.done;t=p.next())t=t.value,this.yT("cuepoint",{segNum:k,event:t.event, startSecs:t.startSecs,id:t.identifier.slice(-16)}),t.event==="start"&&(t=t.startSecs,this.nk.start=this.W0,this.nk.end=t+3)}}}; g.E.DY=function(){this.MO()||(this.loading=!1,this.publish("dataloaded"))}; g.E.CH=function(){return this.kS!==void 0?this.kS:this.kS=!!this.xf||!!this.T&&dC(this.T)}; g.E.Lx=function(k){var p=this;if(this.MO())return vw();this.UF=this.Jp=this.N=null;FO(this,"html5_high_res_logging_always")&&(this.Cp.Xn=!0);return jh6(this,k).then(void 0,function(){return Kzi(p,k)}).then(void 0,function(){return HJ9(p)}).then(void 0,function(){return kO_(p)})}; g.E.y_=function(k){this.N=k;OJh(this,this.N.getAvailableAudioTracks());if(this.N){k=g.Z(this.N.videoInfos);for(var p=k.next();!p.done;p=k.next()){p=p.value;var t=p.containerType;t!==0&&(this.z8[t]=p.id)}}Cy(this);if(this.X&&this.N&&this.N.videoInfos&&!(this.N.videoInfos.length<=0)&&(k=uG(this.N.videoInfos[0]),this.X.flavor==="fairplay"!==k))for(p=g.Z(this.WV),t=p.next();!t.done;t=p.next())if(t=t.value,k===(t.flavor==="fairplay")){this.X=t;break}}; g.E.Ee=function(){if(this.cotn)return null;var k=g.Ck(this.Cp)||this.D("web_l3_storyboard");if(!this.Ta)if(this.playerResponse&&this.playerResponse.storyboards){var p=this.playerResponse.storyboards,t=p.playerStoryboardSpecRenderer;t&&t.spec?this.Ta=new Px(t.spec,this.lengthSeconds,void 0,!1,k):(p=p.playerLiveStoryboardSpecRenderer)&&p.spec&&this.T&&(t=gk6(this.T.T).index)&&(this.Ta=new Ij(p.spec,this.T.isLive,t,k))}else this.LP?this.Ta=new Px(this.LP,this.lengthSeconds,void 0,!1,k):this.jl&&this.T&& (p=gk6(this.T.T).index)&&(this.Ta=new Ij(this.jl,this.T.isLive,p,k));return this.Ta}; g.E.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var k=this.playerResponse.storyboards;return(k=k.playerStoryboardSpecRenderer||k.playerLiveStoryboardSpecRenderer)&&k.spec||null}return this.LP||this.jl}; g.E.jV=function(){return this.T&&!isNaN(this.T.jV())?this.T.jV():dS(this)?0:this.lengthSeconds}; g.E.xx=function(){return this.T&&!isNaN(this.T.xx())?this.T.xx():0}; g.E.getPlaylistSequenceForTime=function(k){if(this.T&&this.Y){var p=this.T.T[this.Y.id];if(!p)return null;var t=p.index.cN(k);p=p.index.getStartTime(t);return{sequence:t,elapsed:Math.floor((k-p)*1E3)}}return null}; g.E.IG=function(){return!this.MO()&&!(!this.videoId&&!this.q_)}; g.E.HL=function(){var k,p,t;return!!this.adaptiveFormats||!!((k=this.playerResponse)==null?0:(p=k.streamingData)==null?0:(t=p.adaptiveFormats)==null?0:t.length)}; g.E.isLoaded=function(){return Bx(this)&&!this.gp&&!this.du}; g.E.KL=function(k){k||(k="hqdefault.jpg");var p=this.L[k];return p||this.Cp.Y8||k==="pop1.jpg"||k==="pop2.jpg"||k==="sddefault.jpg"||k==="hq720.jpg"||k==="maxresdefault.jpg"?p:zG(this.Cp,this.videoId,k)}; g.E.m2=function(){return this.isLivePlayback||this.FA||this.Oy||!(!this.liveUtcStartSeconds||!this.Eo)}; g.E.isOtf=function(){return!!this.T&&(this.T.isOtf||!this.FA&&!this.isLivePlayback&&this.T.Y)}; g.E.getAvailableAudioTracks=function(){return this.N?this.N.getAvailableAudioTracks().length>0?this.N.getAvailableAudioTracks():this.EZ||[]:[]}; g.E.getAudioTrack=function(){var k=this;if(this.C&&!uG(this.C))return g.j9(this.getAvailableAudioTracks(),function(J){return J.id===k.C.id})||this.gK; if(this.EZ){if(!this.QK)for(var p=g.Z(this.EZ),t=p.next();!t.done;t=p.next())if(t=t.value,t.ws.getIsDefault()){this.QK=t;break}return this.QK||this.gK}return this.gK}; g.E.getPlayerResponse=function(){return this.playerResponse}; g.E.getWatchNextResponse=function(){return this.RY}; g.E.getHeartbeatResponse=function(){return this.So}; g.E.tP=function(){return this.watchUrl?this.watchUrl:this.Cp.getVideoUrl(this.videoId)}; g.E.yU=function(){return!!this.T&&(aE0(this.T)||M6M(this.T)||gS0(this.T))}; g.E.getEmbeddedPlayerResponse=function(){return this.b6}; g.E.n7=function(){return(this.eventLabel||this.Cp.j6)==="shortspage"}; g.E.isAd=function(){return this.YO||!!this.adFormat}; g.E.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.E.u1=function(){var k,p,t;return this.isDaiEnabled()&&!!((k=this.playerResponse)==null?0:(p=k.playerConfig)==null?0:(t=p.daiConfig)==null?0:t.ssaEnabledPlayback)}; g.E.x3=function(){return AiT(this)?this.NJ:this.vJ||this.nL}; g.E.EK=function(){return this.p7||this.nL}; g.E.Hu=function(){return FO(this,"html5_samsung_vp9_live")}; g.E.yT=function(k,p,t){this.publish("ctmp",k,p,t)}; g.E.KP=function(k,p,t){this.publish("ctmpstr",k,p,t)}; g.E.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.E.getGetAdBreakContext=function(k,p){k=k===void 0?NaN:k;p=p===void 0?NaN:p;var t={isSabr:tx(this)},J,q=(J=this.getHeartbeatResponse())==null?void 0:J.adBreakHeartbeatParams;q&&(t.adBreakHeartbeatParams=q);if(this.D("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(k)&&!isNaN(p)){p=k-p;for(var F in this.T.T)if(J=this.T.T[F],J.info.pZ()||J.info.B3())if(J=J.index,J.isLoaded()){F=J.cN(p);J=J.Zl(F)+p-J.getStartTime(F);this.yT("gabc",{t:k.toFixed(3),mt:p.toFixed(3),sg:F,igt:J.toFixed(3)}); t.livePlaybackPosition={utcTimeMillis:""+(J*1E3).toFixed(0)};break}}return t}; g.E.isEmbedsShortsMode=function(k,p){if(!g.V0(this.Cp))return!1;var t;if(!this.D("embeds_enable_emc3ds_shorts")&&((t=this.Cp.getWebPlayerContextConfig())==null?0:t.embedsEnableEmc3ds)||(this.Cp.P0||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||p)return!1;var J,q;return!!(((J=this.embeddedPlayerConfig)==null?0:(q=J.embeddedPlayerFlags)==null?0:q.isShortsExperienceEligible)&&k.width<=k.height)}; g.E.Ap=function(){g.o$.prototype.Ap.call(this);this.tR=null;delete this.LO;delete this.accountLinkingConfig;delete this.T;this.N=this.So=this.playerResponse=this.RY=null;this.vQ=this.adaptiveFormats="";delete this.botguardData;this.gs=this.suggestions=this.vt=null;this.sabrContextUpdates.clear()};var ve_={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ciM={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},sHe={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Vg_={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"},Doh={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},WHj={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"},LHT={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.r(tG,g.R);g.E=tG.prototype;g.E.handleExternalCall=function(k,p,t){var J=this.state.Z[k],q=this.state.B[k],F=J;if(q)if(t&&uY(t,c49))F=q;else if(!J)throw Error('API call from an untrusted origin: "'+t+'"');this.logApiCall(k,t);if(F){t=!1;J=g.Z(p);for(q=J.next();!q.done;q=J.next())if(String(q.value).includes("javascript:")){t=!0;break}t&&g.wt(Error('Dangerous call to "'+k+'" with ['+p+"]."));return F.apply(this,p)}throw Error('Unknown API method: "'+k+'".');}; g.E.logApiCall=function(k,p,t){var J=this.app.G();J.HJ&&!this.state.L.has(k)&&(this.state.L.add(k),g.qv("webPlayerApiCalled",{callerUrl:J.loaderUrl,methodName:k,origin:p||void 0,playerStyle:J.playerStyle||void 0,embeddedPlayerMode:J.P0,errorCode:t}))}; g.E.publish=function(k){var p=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[k].concat(g.m(p)));if(k==="videodatachange"||k==="resize"||k==="cardstatechange")this.state.Y.publish.apply(this.state.Y,[k].concat(g.m(p))),this.state.C.publish.apply(this.state.C,[k].concat(g.m(p)))}; g.E.zb=function(k){var p=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[k].concat(g.m(p)));this.state.Y.publish.apply(this.state.Y,[k].concat(g.m(p)))}; g.E.dS=function(k){var p=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[k].concat(g.m(p)));this.state.Y.publish.apply(this.state.Y,[k].concat(g.m(p)));this.state.C.publish.apply(this.state.C,[k].concat(g.m(p)))}; g.E.xW=function(k){var p=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[k].concat(g.m(p)));this.state.Y.publish.apply(this.state.Y,[k].concat(g.m(p)));this.state.C.publish.apply(this.state.C,[k].concat(g.m(p)));this.state.X.publish.apply(this.state.X,[k].concat(g.m(p)))}; g.E.D=function(k){return this.app.G().D(k)}; g.E.Ap=function(){if(this.state.element){var k=this.state.element,p;for(p in this.state.T)this.state.T.hasOwnProperty(p)&&(k[p]=null);this.state.element=null}g.R.prototype.Ap.call(this)};g.r($R,g.Vv);$R.prototype.publish=function(k){var p=g.nS.apply(1,arguments);if(this.X.has(k))return this.X.get(k).push(p),!0;var t=!1;try{for(p=[p],this.X.set(k,p);p.length;)t=g.Vv.prototype.publish.call.apply(g.Vv.prototype.publish,[this,k].concat(g.m(p.shift())))}finally{this.X.delete(k)}return t};g.r(d4,g.R);d4.prototype.Ap=function(){this.X.dispose();this.C.dispose();this.Y.dispose();this.N.dispose();this.L=this.T=this.B=this.Z=this.S=void 0};var It_=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.r(SP,tG);g.E=SP.prototype;g.E.getApiInterface=function(){return Array.from(this.state.S)}; g.E.MK=function(k,p){this.state.X.subscribe(k,p)}; g.E.sxy=function(k,p){this.state.X.unsubscribe(k,p)}; g.E.getPlayerState=function(k){return agh(this.app,k)}; g.E.W5=function(){return agh(this.app)}; g.E.nCy=function(k,p,t){ba(this)&&(Xw(this.app,!0,1),zi(this.app,k,p,t,1))}; g.E.getCurrentTime=function(k,p,t){var J=this.getPlayerState(k);if(this.app.getAppState()===2&&J===5){var q;return((q=this.app.getVideoData())==null?void 0:q.startSeconds)||0}return this.D("web_player_max_seekable_on_ended")&&J===0?BWi(this.app,k):k?this.app.getCurrentTime(k,p,t):this.app.getCurrentTime(k)}; g.E.M0=function(){return this.app.getCurrentTime(1)}; g.E.f_=function(){var k=this.app.Zl(1);return isNaN(k)?this.getCurrentTime(1):k}; g.E.Ri=function(){return this.app.getDuration(1)}; g.E.sP=function(k,p){k=g.Ek(Math.floor(k),0,100);isFinite(k)&&n_(this.app,{volume:k,muted:this.isMuted()},p)}; g.E.UR0=function(k){this.sP(k,!1)}; g.E.RC=function(k){n_(this.app,{muted:!0,volume:this.getVolume()},k)}; g.E.nI6=function(){this.RC(!1)}; g.E.V_=function(k){fK(this.app)&&!this.D("embeds_enable_emc3ds_muted_autoplay")||n_(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},k)}; g.E.co0=function(){fK(this.app)&&this.D("embeds_enable_emc3ds_muted_autoplay")||this.V_(!1)}; g.E.getPlayerMode=function(){var k={};this.app.getVideoData().JB&&(k.pfp={enableIma:g.Ky(this.app.getVideoData())&&this.app.hj().allowImaMonetization,autoplay:Be(this.app.hj()),mutedAutoplay:this.app.hj().mutedAutoplay});return k}; g.E.F9=function(){var k=this.app.getPresentingPlayerType();if(k===2&&!this.app.Ur()){var p=GH(this.app.EQ());if(!aQj(p)||Mk6(p))return}k===3?WO(this.app.EQ()).zc("control_play"):this.app.G().D("html5_ssap_ignore_play_for_ad")&&g.hF(this.app.hj())&&k===2||this.app.playVideo(k)}; g.E.Iwh=function(){Xw(this.app,!0,1);this.F9()}; g.E.pauseVideo=function(k){var p=this.app.getPresentingPlayerType();if(p!==2||this.app.Ur()||aQj(GH(this.app.EQ())))p===3?WO(this.app.EQ()).zc("control_pause"):this.app.pauseVideo(p,k)}; g.E.oih=function(){var k=this.app,p=!1;k.ih.yn&&(k.fp.publish("pageTransition"),p=!0);k.stopVideo(p)}; g.E.clearVideo=function(){}; g.E.getAvailablePlaybackRates=function(){var k=this.app.G();return k.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(k.C?k.ancestorOrigins[0]:window.location.origin)||k.du?F$J:k.supportsVarispeedExtendedFeatures?$Kn:k.D("web_remix_allow_up_to_3x_playback_rate")&&g.Qj(k)?dKK:Ln:[1]}; g.E.getPlaybackQuality=function(k){return(k=this.app.t5(k))?k.getPlaybackQuality():"unknown"}; g.E.GtO=function(){}; g.E.getAvailableQualityLevels=function(k){return(k=this.app.t5(k))?(k=g.DR(k.Na(),function(p){return p.quality}),k.length&&(k[0]==="auto"&&k.shift(),k=k.concat(["auto"])),k):[]}; g.E.Qh=function(){return this.getAvailableQualityLevels(1)}; g.E.kA=function(){return this.LB()}; g.E.wT=function(){return 1}; g.E.getVideoLoadedFraction=function(k){return this.app.getVideoLoadedFraction(k)}; g.E.LB=function(){return this.getVideoLoadedFraction()}; g.E.dT=function(){return 0}; g.E.getSize=function(){var k=this.app.Uy().getPlayerSize();return{width:k.width,height:k.height}}; g.E.setSize=function(){this.app.Uy().resize()}; g.E.loadVideoById=function(k,p,t,J){if(!k)return!1;k=ES(k,p,t);return this.app.loadVideoByPlayerVars(k,J)}; g.E.y5p=function(k,p,t){k=this.loadVideoById(k,p,t,1);Xw(this.app,k,1)}; g.E.cueVideoById=function(k,p,t,J){k=ES(k,p,t);this.app.cueVideoByPlayerVars(k,J)}; g.E.E$=function(k,p,t){this.cueVideoById(k,p,t,1)}; g.E.loadVideoByUrl=function(k,p,t,J){k=GOL(k,p,t);return this.app.loadVideoByPlayerVars(k,J)}; g.E.EIy=function(k,p,t){k=this.loadVideoByUrl(k,p,t,1);Xw(this.app,k,1)}; g.E.cueVideoByUrl=function(k,p,t,J){k=GOL(k,p,t);this.app.cueVideoByPlayerVars(k,J)}; g.E.uo=function(k,p,t){this.cueVideoByUrl(k,p,t,1)}; g.E.B5=function(){var k=this.app.G();if(k.Y8)return"";var p=this.app.hj(),t=void 0;p.isLivePlayback||(t=Math.floor(this.app.getCurrentTime(1)));return k.getVideoUrl(p.videoId,this.getPlaylistId()||void 0,t)}; g.E.xA=function(){return this.app.getDebugText()}; g.E.getVideoEmbedCode=function(){var k=this.app.G();if(k.Y8)return"";var p=this.app.hj();return k.getVideoEmbedCode(p.isPrivate?"":p.title,this.app.hj().videoId,this.app.Uy().getPlayerSize(),this.getPlaylistId()||void 0)}; g.E.qK=function(k,p,t){return Hi0(this.app,k,p,t)}; g.E.removeCueRange=function(k){return kaw(this.app,k)}; g.E.loadPlaylist=function(k,p,t,J){this.app.loadPlaylist(k,p,t,J)}; g.E.r5h=function(k,p,t,J){this.loadPlaylist(k,p,t,J);Xw(this.app,!0,1)}; g.E.cuePlaylist=function(k,p,t,J){this.app.cuePlaylist(k,p,t,J)}; g.E.nextVideo=function(k,p){this.app.nextVideo(k,p)}; g.E.IBO=function(){this.nextVideo();Xw(this.app,!0,1)}; g.E.previousVideo=function(k){this.app.previousVideo(k)}; g.E.dh0=function(){this.previousVideo();Xw(this.app,!0,1)}; g.E.playVideoAt=function(k){this.app.playVideoAt(k)}; g.E.nW8=function(k){this.playVideoAt(k);Xw(this.app,!0,1)}; g.E.setShuffle=function(k){var p=this.app.getPlaylist();p&&p.setShuffle(k)}; g.E.setLoop=function(k){var p=this.app.getPlaylist();p&&(p.loop=k)}; g.E.Vh=function(){var k=this.app.getPlaylist();if(!k)return null;for(var p=[],t=0;t<k.getLength();t++){var J=g.AR(k,t);J&&p.push(J.videoId)}return p}; g.E.getPlaylistIndex=function(){var k=this.app.getPlaylist();return k?k.index:-1}; g.E.getPlaylistId=function(){var k=this.app.getPlaylist();return k&&k.listId?k.listId.toString():null}; g.E.Fe=function(k){k==="captions"&&(k=g.iU(this.app.EQ()))&&!k.loaded&&k.load()}; g.E.sV=function(k){k==="captions"&&(k=g.iU(this.app.EQ()))&&k.loaded&&k.GHp()}; g.E.P_=function(k,p,t){if(!p)return null;var J=this.app.EQ();return k==="captions"?(k=g.iU(J))&&k.rp(p,t):null}; g.E.Do=function(k,p,t){return this.app.iG().getVideoData().isPrivate&&this.app.G().C?{}:this.P_(k,p,t)}; g.E.Ew=function(k){var p=this.app.EQ();if(k==="captions"){var t;return((t=g.iU(p))==null?void 0:t.getOptions())||null}return k?null:(k=[],g.iU(p)&&k.push("captions"),k)}; g.E.getVolume=function(){return this.app.wp.volume}; g.E.isMuted=function(){return this.app.wp.muted}; g.E.destroy=function(){this.app.dispose()}; g.E.logImaAdEvent=function(k,p){var t=this.app.G();g.Ky(this.app.getVideoData())&&this.app.hj().allowImaMonetization&&(k={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:p,embedUrl:g.mLh(this.app.G().loaderUrl),eventType:k,youtubeHost:g.Iq(this.app.G().NA)||""},k.embeddedPlayerMode=t.P0,g.qv("embedsAdEvent",k))}; g.E.mutedAutoplay=function(k){var p=this.app.G(),t,J,q;((t=p.getWebPlayerContextConfig())==null?0:(J=t.embedsHostFlags)==null?0:(q=J.allowMutedAutoplayDurationMode)==null?0:q.length)&&!p.N&&this.app.mutedAutoplay(k)}; g.E.preloadVideoById=function(k,p,t,J){var q,F;((q=this.app.G().getWebPlayerContextConfig())==null?0:(F=q.embedsHostFlags)==null?0:F.allowPreloadVideoById)&&k&&(k=ES(k,p,t),this.app.preloadVideoByPlayerVars(k,J))}; g.E.kCh=function(k,p,t){this.preloadVideoById(k,p,t,1)}; g.E.setFauxFullscreen=function(k){g.bk();this.app.ye(k?2:0)}; g.E.cDy=function(k){var p,t;((p=this.app.G().getWebPlayerContextConfig())==null?0:(t=p.embedsHostFlags)==null?0:t.allowSetFauxFullscreen)&&this.setFauxFullscreen(k)}; g.E.setCenterCrop=function(k){var p,t;((p=this.app.G().getWebPlayerContextConfig())==null?0:(t=p.embedsHostFlags)==null?0:t.allowSetCenterCrop)&&this.app.Uy().setCenterCrop(k)}; g.E.wakeUpControls=function(){var k=g.US(this);k&&k.yQ()};var hDu="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.r(NE,SP);g.E=NE.prototype;g.E.Od=function(k,p){this.state.C.subscribe(k,p)}; g.E.uwh=function(k,p){this.state.C.unsubscribe(k,p)}; g.E.cueVideoByPlayerVars=function(k,p){this.app.cueVideoByPlayerVars(k,p)}; g.E.s$=function(k,p){p=p===void 0?1:p;this.cueVideoByPlayerVars(yl(this,k),p)}; g.E.loadVideoByPlayerVars=function(k,p,t,J,q){this.app.loadVideoByPlayerVars(k,t,p,J,q)}; g.E.YQT=function(k,p,t,J){t=t===void 0?1:t;this.loadVideoByPlayerVars(yl(this,k),p,t,J)}; g.E.preloadVideoByPlayerVars=function(k,p,t,J,q){t=t===void 0?NaN:t;this.app.preloadVideoByPlayerVars(k,p,t,J===void 0?"":J,q===void 0?"":q)}; g.E.GC8=function(k,p,t,J){p=p===void 0?1:p;this.preloadVideoByPlayerVars(yl(this,k),p,t,J)}; g.E.Sf=function(k,p,t){this.loadVideoById(k,p,t,1)}; g.E.Md=function(k,p,t){this.loadVideoByUrl(k,p,t,1)}; g.E.eH=function(k){return this.getPlayerState(k)}; g.E.pB=function(k){k=k===void 0?1:k;var p=RDi(this,k);if(k=this.app.t5(k)){k=k.getVideoData();p.backgroundable=k.backgroundable;p.eventId=k.eventId;p.cpn=k.clientPlaybackNonce;p.isLive=k.isLivePlayback;p.isWindowedLive=k.Oy;p.isManifestless=dS(k);p.allowLiveDvr=k.allowLiveDvr;p.isListed=k.isListed;k.liveUtcStartSeconds!=null&&(p.liveUtcStartSeconds=k.liveUtcStartSeconds);k.CH()&&(p.isEncrypted=!0);if(k.N)for(var t=g.Z(k.N.videoInfos),J=t.next();!J.done;J=t.next()){var q=void 0;if((q=J.value.video)== null?0:q.isHdr()){p.isHdr=!0;break}}var F,d;p.isMultiChannelAudio=!!((F=k.C)==null?0:(d=F.audio)==null?0:d.isMultiChannelAudio())}return p}; g.E.seekBy=function(k,p,t,J,q){ba(this)&&zi(this.app,this.app.getCurrentTime()+k,p,t,q,J)}; g.E.DR0=function(k,p,t){this.seekBy(k,p,t,void 0,1)}; g.E.seekTo=function(k,p,t,J,q){ba(this)&&zi(this.app,k,p,t,J,q)}; g.E.Ibp=function(k,p,t,J){this.seekTo(k,p,t,J===void 0?1:J)}; g.E.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.E.Oh=function(k,p){return this.getCurrentTime(k===void 0?1:k,p)}; g.E.s2=function(){var k=this.app.getPresentingPlayerType(!0);k===2&&this.app.Ur()&&(k=1);return k}; g.E.getDuration=function(k,p){if(this.s2()===3){var t;return((t=WO(this.app.EQ()).getProgressState())==null?void 0:t.duration)||0}return k?this.app.getDuration(k,p):this.app.getDuration(k)}; g.E.lN=function(k,p){return this.getDuration(k===void 0?1:k,p)}; g.E.H5=function(k){return this.getVideoLoadedFraction(k)}; g.E.loadModule=function(k){if(k==="annotations_module"){var p=g.RG(this.app.EQ());p&&!p.loaded&&p.load()}this.Fe(k)}; g.E.unloadModule=function(k){if(k==="annotations_module"){var p=g.RG(this.app.EQ());p&&p.loaded&&p.unload()}this.sV(k)}; g.E.getOption=function(k,p,t,J){return(J=this.app.t5(J))&&J.getVideoData().isPrivate&&this.app.G().C?{}:this.setOption(k,p,t)}; g.E.cq=function(k,p,t){return this.getOption(k,p,t,1)}; g.E.getOptions=function(k){var p=this.app.EQ();switch(k){case "ad":var t,J;return((t=GH(p))==null?void 0:(J=t.getOptions)==null?void 0:J.call(t))||null;case "remote":var q,F;return((q=WO(p))==null?void 0:(F=q.getOptions)==null?void 0:F.call(q))||null;case "annotations_module":var d,S;return((d=g.RG(p))==null?void 0:(S=d.getOptions)==null?void 0:S.call(d))||null;case "creatorendscreen":var U,f;return((U=Br(p))==null?void 0:(f=U.getOptions)==null?void 0:f.call(U))||null;case "unplugged":var b,N;return((b= g.IG(p))==null?void 0:(N=b.getOptions)==null?void 0:N.call(b))||null;case "kids":var y,Y;return((y=tBT(p))==null?void 0:(Y=y.getOptions)==null?void 0:Y.call(y))||null}if(!k){k=this.Ew();if(!k)return k;GH(p)&&k.push("ad");WO(p)&&k.push("remote");g.RG(p)&&k.push("annotations_module");Br(p)&&k.push("creatorendscreen");g.IG(p)&&k.push("unplugged");tBT(p)&&k.push("kids");return k}return this.Ew(k)}; g.E.setOption=function(k,p,t){if(!p)return null;var J=this.app.EQ();switch(k){case "ad":return(k=GH(J))&&k.rp&&k.rp(p,t);case "kids":return(k=tBT(J))&&k.rp(p,t);case "remote":return(k=WO(J))&&k.rp(p,t);case "unplugged":return(k=g.IG(J))&&k.rp(p,t);case "annotations_module":return(k=g.RG(J))&&k.rp(p,t);case "creatorendscreen":return(k=Br(J))&&k.rp(p,t)}return this.P_(k,p,t)}; g.E.addCueRange=function(k,p,t,J,q){return Hi0(this.app,k,p,t,J,q)}; g.E.getDebugText=function(k){return this.app.getDebugText(k)}; g.E.getCurrentBroadcastId=function(){return null}; g.E.handleGlobalKeyDown=function(k,p,t,J,q,F,d,S){p=p===void 0?!1:p;t=t===void 0?!1:t;J=J===void 0?!1:J;q=q===void 0?!1:q;var U=g.US(this);U&&U.handleGlobalKeyDown(k,p,t,J,q,F,d,S)}; g.E.handleGlobalKeyUp=function(k,p,t,J,q,F,d){p=p===void 0?!1:p;t=t===void 0?!1:t;J=J===void 0?!1:J;q=q===void 0?!1:q;var S=g.US(this);S&&S.handleGlobalKeyUp(k,p,t,J,q,F,d)}; g.E.setSizeStyle=function(k,p){this.app.setSizeStyle(k,p)}; g.E.showControls=function(){var k=g.US(this);k&&k.showControls(!0)}; g.E.hideControls=function(){var k=g.US(this);k&&k.showControls(!1)}; g.E.getVideoContentRect=function(k){k=this.app.Uy().getVideoContentRect(k);return{left:k.left,top:k.top,width:k.width,height:k.height}}; g.E.toggleFullscreen=function(){function k(t){g.wt(t)} var p=this.app.G();if(p.externalFullscreen){if(!g.u$(p))return this.isFullscreen()?yB(window.document.documentElement):fG(window.document.documentElement).catch(k)}else if(g.bk()||p.B)return this.isFullscreen()?yB(NI()):p.controlsType!=="3"&&g.bk()?fG(this.app.Uy().element).catch(k):(p=this.app.QM().KE())?fG(p).catch(k):Promise.reject(Error("Media element missing"));this.xW("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.E.isFullscreen=function(){return this.app.isFullscreen()}; g.E.fA=function(){return this.app.fA()}; g.E.cancelPlayback=function(){var k=GH(this.app.EQ());k&&k.created&&k.destroy();(k=this.app.tp())&&k.stopVideo();(k=this.app.EQ().TC.get("endscreen"))&&k.cpp()&&g.Vl(this.app.fp,!0)}; g.E.getProgressState=function(k){if(this.s2()===3)return WO(this.app.EQ()).getProgressState();var p=this.app.getVideoData(),t=this.app.t5(k)||this.app.tp(),J=t.getPlayerType();a:{var q=this.app.getVideoData();var F;if((F=q.progressBarStartPosition)==null?0:F.utcTimeMillis)if(q=Number(q.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(q)){q=YR(this,q,k);break a}q=0}var d;a:{F=this.app.getVideoData();if((d=F.progressBarEndPosition)==null?0:d.utcTimeMillis)if(d=Number(F.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(d)){d=YR(this,d,k);break a}d=0}F=this.getCurrentTime(k);k=this.getDuration(k);var S=this.app.Zl(J),U=this.app.isAtLiveHead(J),f=this.app.jw();var b=this.app;var N=b.t5(J);N?(N=mn(b,N),b=iH(b,N.Xc(),N)):b=b.rf.T.Xc();N=BWi(this.app,J);t=t.Yx();var y=this.app.getVideoData().Fx;J=!y||isNaN(y)?0:YR(this,y,J);return{airingStart:q,airingEnd:d,allowSeeking:this.app.qA(),clipEnd:p.clipEnd,clipStart:p.clipStart,current:F,displayedStart:-1,duration:k,ingestionTime:S,isAtLiveHead:U,loaded:f,seekableStart:b, seekableEnd:N,offset:t,viewerLivestreamJoinMediaTime:J}}; g.E.isInline=function(){return this.app.isInline()}; g.E.setInline=function(k){this.app.setInline(k)}; g.E.zF=function(){return this.app.iG().pE(!0)}; g.E.toggleSubtitles=function(){var k=g.iU(this.app.EQ());k&&k.DAr()}; g.E.getPlayerSize=function(){var k=this.app.Uy().getPlayerSize();return{width:k.width,height:k.height}}; g.E.setCenterCrop=function(k){this.app.Uy().setCenterCrop(k)}; g.E.getLoopVideo=function(){return this.app.getLoopVideo()}; g.E.setLoopVideo=function(k){this.app.setLoopVideo(k)}; var eDL="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), Mg6="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var dd={},gee=(dd["api.invalidparam"]=2,dd.auth=150,dd["drm.auth"]=150,dd["heartbeat.net"]=150,dd["heartbeat.servererror"]=150,dd["heartbeat.stop"]=150,dd["html5.unsupportedads"]=5,dd["fmt.noneavailable"]=5,dd["fmt.decode"]=5,dd["fmt.unplayable"]=5,dd["html5.missingapi"]=5,dd["html5.unsupportedlive"]=5,dd["drm.unavailable"]=5,dd["mrm.blocked"]=151,dd["embedder.identity.denied"]=152,dd);g.r(g.TB,NE);g.E=g.TB.prototype;g.E.isExternalMethodAvailable=function(k,p){return this.state.Z[k]?!0:!!(this.state.B[k]&&p&&uY(p,c49))}; g.E.getBandwidthEstimate=function(){return TG(this.app.G().schedule)}; g.E.reportPlaybackIssue=function(k){k=k===void 0?"":k;var p=this.app.tp();p&&(k={gpu:(0,g.wJ)(),d:k},p.handleError(new AD("feedback",k)))}; g.E.getInternalApi=function(){return Object.assign({},this.state.T)}; g.E.getInternalApiInterface=function(){return g.DV(this.state.T)}; g.E.queueNextVideo=function(k,p,t,J,q){t=t===void 0?NaN:t;this.app.queueNextVideo(k,p,t,J===void 0?"":J,q===void 0?"":q)}; g.E.Ii=function(k){k=this.app.getPlayerStateObject(k);return{isBuffering:g.u(k,1),isCued:k.isCued(),isDomPaused:g.u(k,1024),isEnded:g.u(k,2),isError:g.u(k,128),isOrWillBePlaying:k.isOrWillBePlaying(),isPaused:k.isPaused(),isPlaying:k.isPlaying(),isSeeking:g.u(k,16),isUiSeeking:g.u(k,32),isUnstarted:g.u(k,64)}}; g.E.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.E.startSeekCsiAction=function(){this.app.WN().C.T=(0,g.V9)()}; g.E.SH=function(k,p,t){return this.getCurrentTime(k===void 0?1:k,p,t)}; g.E.seekToStreamTime=function(k,p,t,J){var q=this.app;p=p===void 0?!0:p;var F=q.t5(1),d=0;F&&F.getStreamTimeOffset()&&!F.Yx()&&(d=F.getStreamTimeOffset());zi(q,k-d,p,t,1,J)}; g.E.getStreamTimeOffset=function(){return this.app.iG().getStreamTimeOffset()}; g.E.seekToLiveHead=function(k,p){var t=this.app.iG().getVideoData();t&&t.isLivePlayback&&zi(this.app,Infinity,k,p,1)}; g.E.requestSeekToWallTimeSeconds=function(k,p){this.app.iG().tb(k,p)}; g.E.Z$p=function(k,p,t,J,q){this.seekTo(k,p,t,J===void 0?1:J,q)}; g.E.fby=function(k,p,t,J){this.seekBy(k,p,t,J,1)}; g.E.setVolume=function(k,p){this.sP(k,p===void 0?!0:p)}; g.E.mute=function(k){this.RC(k===void 0?!0:k)}; g.E.unMute=function(k){this.V_(k===void 0?!0:k)}; g.E.syncVolume=function(){var k=yUL(this.app);n_(this.app,{volume:k.volume,muted:k.muted},!1)}; g.E.getAvailableQualityLabels=function(){return g.DR(this.app.iG().Na(),function(k){return k.qualityLabel})}; g.E.channelSubscribed=function(){this.zb("SUBSCRIBE",this.app.hj().Nc)}; g.E.channelUnsubscribed=function(){this.zb("UNSUBSCRIBE",this.app.hj().Nc)}; g.E.setScreenLayer=function(k){this.app.setScreenLayer(k)}; g.E.getCurrentPlaylistSequence=function(){return this.app.tp().getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.E.getPlaylistSequenceForTime=function(k){return this.app.tp().getPlaylistSequenceForTime(k)}; g.E.shouldSendVisibilityState=function(){return!0}; g.E.confirmYpcRental=function(){this.app.iG().Fw("ypc_clickwrap")}; g.E.setHomeGroupInfo=function(k){this.app.G().homeGroupInfo=k}; g.E.setConnectedRemoteApps=function(k){this.app.G().eb=k}; g.E.setLivingRoomAppMode=function(k){this.app.G().livingRoomAppMode=k9("LIVING_ROOM_APP_MODE_UNSPECIFIED",k,UkT)}; g.E.setEnablePrivacyFilter=function(k){this.app.G().enablePrivacyFilter=k===void 0?!1:k}; g.E.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.E.addUtcCueRange=function(k,p,t,J,q){return xt6(this.app,k,p,t,J,q)}; g.E.GF=function(k){k=k===void 0?1:k;var p=this.pB(k);if(k=this.app.t5(k)){k=k.getVideoData();p.hasProgressBarBoundaries=k.hasProgressBarBoundaries();p.isPremiere=k.isPremiere;p.itct=k.j6;p.playerResponseCpn=k.playerResponseCpn;var t;var J=k.hasProgressBarBoundaries()&&((t=k.progressBarStartPosition)==null?0:t.utcTimeMillis)?pE(k.progressBarStartPosition.utcTimeMillis):null;p.progressBarStartPositionUtcTimeMillis=J;var q;t=k.hasProgressBarBoundaries()&&((q=k.progressBarEndPosition)==null?0:q.utcTimeMillis)? pE(k.progressBarEndPosition.utcTimeMillis):null;p.progressBarEndPositionUtcTimeMillis=t;p.ypcOriginalItct=k.vc;p.ypcPreview=k.ypcPreview;p.paidContentOverlayText=pl_(k);p.paidContentOverlayDurationMs=tge(k);k.T&&qB(k.T)&&(p.usingLocalMedia="true");p.transitionEndpointAtEndOfStream=k.transitionEndpointAtEndOfStream}return p}; g.E.getAdState=function(){return this.app.getAdState()}; g.E.isNotServable=function(k){if(k!==this.app.config.args.video_id)return!1;var p=(k=this.app.iG().getPlayerState())?k.JD:null;return!!(k&&p&&g.u(k,128)&&uAS(p.errorCode)===5)}; g.E.supportsGaplessAudio=function(){return this.app.G().supportsGaplessAudio()}; g.E.supportsGaplessShorts=function(){return this.app.G().supportsGaplessShorts()}; g.E.enqueueVideoByPlayerVars=function(k,p,t,J){t=t===void 0?Infinity:t;this.app.enqueueVideoByPlayerVars(k,p,t,J===void 0?"":J)}; g.E.clearQueue=function(){this.app.clearQueue()}; g.E.l6=function(){return g.US(this)}; g.E.sendAbandonmentPing=function(){var k;(k=this.app.tp())==null||k.sendAbandonmentPing()}; g.E.setAutonavState=function(k,p){p=p===void 0?!1:p;if(this.D("web_player_autonav_use_server_provided_state")&&!p&&(p=this.app.hj(),p==null?0:gn(p))){if(this.D("web_player_autonav_server_provided_state_pause_killswitch"))return;if(k===3)p.autonavState!==3&&(p.hE=p.autonavState);else if(p.hE!==void 0)k=p.hE,p.hE=void 0;else return}$$h(this.app,k)}; g.E.setAutonav=function(k,p){this.setAutonavState(k?2:1,p===void 0?!1:p)}; g.E.setLoopRange=function(k){this.app.setLoopRange(k)}; g.E.getLoopRange=function(){return this.app.getLoopRange()}; g.E.hasSupportedAudio51Tracks=function(){return this.app.iG().hasSupportedAudio51Tracks()}; g.E.setUserAudio51Preference=function(k,p){this.app.iG().setUserAudio51Preference(k,p===void 0?!1:p)}; g.E.getUserAudio51Preference=function(){return this.app.iG().getUserAudio51Preference()}; g.E.setProximaLatencyPreference=function(k){this.app.iG().setProximaLatencyPreference(k)}; g.E.getProximaLatencyPreference=function(){return this.app.iG().getProximaLatencyPreference()}; g.E.isProximaLatencyEligible=function(){return this.app.iG().isProximaLatencyEligible()}; g.E.getAppState=function(){return this.app.getAppState()}; g.E.updateLastActiveTime=function(){C0()}; g.E.setBlackout=function(k){this.app.setBlackout(k)}; g.E.setUserEngagement=function(k){this.app.G().Qr!==k&&(this.app.G().Qr=k,this.app.iG().T3())}; g.E.updateSubtitlesUserSettings=function(k,p){p=p===void 0?!0:p;g.iU(this.app.EQ()).ju(k,p)}; g.E.getCaptionWindowContainerId=function(){var k=g.iU(this.app.EQ());return k?k.getCaptionWindowContainerId():""}; g.E.toggleSubtitlesOn=function(){var k=g.iU(this.app.EQ());k&&k.zX()}; g.E.isSubtitlesOn=function(){var k=g.iU(this.app.EQ());return k?k.isSubtitlesOn():!1}; g.E.getPlayerResponse=function(k){return(k=this.app.t5(k))?k.getVideoData().getPlayerResponse():null}; g.E.n_=function(){return this.getPlayerResponse(1)}; g.E.getEmbeddedPlayerResponse=function(){return this.app.iG().getVideoData().getEmbeddedPlayerResponse()}; g.E.getWatchNextResponse=function(k){return(k=this.app.t5(k))?k.getVideoData().getWatchNextResponse():null}; g.E.ai=function(){return this.getWatchNextResponse(1)}; g.E.getHeartbeatResponse=function(k){return(k=this.app.t5(k))?k.getVideoData().getHeartbeatResponse():null}; g.E.lw=function(){return this.getHeartbeatResponse(1)}; g.E.getStoryboardFrame=function(k,p){var t=this.app.Ee();if(!t)return null;p=t.levels[p];return p?(k=g.ib(p,k))?{column:k.column,columns:k.columns,height:k.WI,row:k.row,rows:k.rows,url:k.url,width:k.Wm}:null:null}; g.E.getStoryboardFrameIndex=function(k,p){var t=this.app.Ee();if(!t)return-1;p=t.levels[p];if(!p)return-1;k-=this.Yx();return p.IR(k)}; g.E.getStoryboardLevel=function(k){var p=this.app.Ee();return p?(p=p.levels[k])?{index:k,intervalMs:p.T,maxFrameIndex:p.oz(),minFrameIndex:p.fl()}:null:null}; g.E.getNumberOfStoryboardLevels=function(){var k=this.app.Ee();return k?k.levels.length:0}; g.E.K_=function(){return this.getAudioTrack(1)}; g.E.getAudioTrack=function(k){return(k=this.app.t5(k))?k.getAudioTrack():this.app.getVideoData().gK}; g.E.setAudioTrack=function(k,p,t){this.s2()===3&&WO(this.app.EQ()).zc("control_set_audio_track",k);return(t=this.app.t5(t))?t.sJ(k,p):!1}; g.E.hk8=function(k,p){return this.setAudioTrack(k,p,1)}; g.E.jH=function(){return this.getAvailableAudioTracks(1)}; g.E.getAvailableAudioTracks=function(k){return this.app.t5(k).getAvailableAudioTracks()}; g.E.getMaxPlaybackQuality=function(){var k=this.app.iG();return k.getVideoData().Y?pD(k.QD()):"unknown"}; g.E.getUserPlaybackQualityPreference=function(){return this.app.iG().getUserPlaybackQualityPreference()}; g.E.getSubtitlesUserSettings=function(){var k=g.iU(this.app.EQ());return k?k.v5():null}; g.E.resetSubtitlesUserSettings=function(){g.iU(this.app.EQ()).FGh()}; g.E.setMinimized=function(k){this.app.setMinimized(k)}; g.E.setOverlayVisibility=function(k){this.publish("overlayvisibilitychange",k)}; g.E.setInlinePreview=function(k){this.app.setInlinePreview(k)}; g.E.setSqueezeback=function(k){this.app.setSqueezeback(k)}; g.E.setGlobalCrop=function(k){this.app.Uy().setGlobalCrop(k)}; g.E.setAppFullscreen=function(k){this.app.ye(k?4:0)}; g.E.D5=function(){return this.app.D5()}; g.E.getVisibilityState=function(){return this.D5().getVisibilityState(this.QX(),this.fA()||g.vs(this.app.G()),this.isMinimized(),this.isInline(),this.app.Z5(),this.app.G1(),this.app.pV(),this.app.XU())}; g.E.isMutedByMutedAutoplay=function(){return this.app.Ot}; g.E.isMutedByEmbedsMutedAutoplay=function(){return fK(this.app)}; g.E.setInternalSize=function(k,p){this.app.Uy().setInternalSize(new g.YY(k,p))}; g.E.Yx=function(){var k=this.app.t5();return k?k.Yx():0}; g.E.isMinimized=function(){return this.app.isMinimized()}; g.E.Z5=function(){return this.app.Z5()}; g.E.QX=function(){var k=this.app.tp();return!!k&&k.QX()}; g.E.setSafetyMode=function(k){this.app.G().enableSafetyMode=k}; g.E.canPlayType=function(k){return this.app.canPlayType(k)}; g.E.updatePlaylist=function(k){if(k){var p=this.getPlaylistId(),t=!1;p&&p!==k.list&&(t=!0);k.external_list!==void 0&&(this.app.ly=xX(!1,k.external_list));var J=k.video;(p=this.app.getPlaylist())&&!t?this.isFullscreen()&&((t=J[p.index])&&t.encrypted_id!==g.AR(p).videoId||(k.index=p.index)):sM(this.app,{list:k.list,index:k.index,playlist_length:J.length});ALi(this.app.getPlaylist(),k);this.dS("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.E.updateVideoData=function(k,p){g.ea(this.app.iG().getVideoData(),k,p)}; g.E.updateEnvironmentData=function(k){GG(this.app.G(),k,!1)}; g.E.thh=function(k){this.app.sendVideoStatsEngageEvent(k,1)}; g.E.productsInVideoVisibilityUpdated=function(k){this.publish("changeProductsInVideoVisibility",k)}; g.E.isAtLiveHead=function(k,p){return this.app.isAtLiveHead(k,p===void 0?!0:p)}; g.E.getVideoAspectRatio=function(){return this.app.Uy().getVideoAspectRatio()}; g.E.getPreferredQuality=function(){var k=this.app.tp();return k?k.getPreferredQuality():"unknown"}; g.E.getPlaybackQualityLabel=function(k){if(k=this.app.t5(k)){var p,t;return((t=(p=k.getVideoData().Y)==null?void 0:p.video)==null?void 0:t.qualityLabel)||""}return""}; g.E.setPlaybackQualityRange=function(k,p,t,J){(J=this.app.t5(J))&&J.EP(g.Kj(k,p||k,!0,"m"),!0,t)}; g.E.H$G=function(k,p,t){this.setPlaybackQualityRange(k,p,t,1)}; g.E.onAdUxClicked=function(k,p){this.publish("aduxclicked",k,p)}; g.E.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.E.dispatchReduxAction=function(k){g.Kq.dispatch(k)}; g.E.highlightSettingsMenuItem=function(k){this.publish("highlightSettingsMenu",k)}; g.E.openSettingsMenuItem=function(k){this.publish("openSettingsMenuItem",k)}; g.E.S2=function(k,p){this.state.Y.subscribe(k,p)}; g.E.ADY=function(k,p){this.state.Y.unsubscribe(k,p)}; g.E.As=function(k,p){this.cueVideoByPlayerVars(k,p===void 0?1:p)}; g.E.gI8=function(k,p,t,J){this.loadVideoByPlayerVars(k,p,t===void 0?1:t,J)}; g.E.w3O=function(k,p,t,J){this.preloadVideoByPlayerVars(k,p===void 0?1:p,t,J)}; g.E.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.E.wj=function(){return g.US(this).wj()}; g.E.yX=function(){return g.US(this).yX()}; g.E.UU=function(){return g.US(this).UU()}; g.E.AB=function(){return this.l6().AB()}; g.E.Mc=function(){var k=g.nS.apply(0,arguments),p;(p=this.AB()).Mc.apply(p,g.m(k))}; g.E.Tk=function(){this.AB().Tk()}; g.E.kF=function(){this.AB().kF()}; g.E.u6=function(){this.AB().hide()}; g.E.Fi=function(k,p,t,J,q,F,d,S){this.AB().Fi(k,p,t,J,q,F,d,S)}; g.E.sK=function(k,p){this.AB().sK(k,p)}; g.E.Yn=function(k,p,t,J,q){this.l6().Yn(k,p,t,J,q)}; g.E.yI=function(k){this.AB().setEnabled(k)}; g.E.MY=function(k,p){this.l6().MY(k,p)}; g.E.aA=function(k,p){this.l6().aA(k,p)}; g.E.r5=function(k,p){this.l6().r5(k,p)}; g.E.wP=function(){this.l6().wP()}; g.E.K9=function(k,p){this.l6().K9(k,p)}; g.E.Ka=tw(4);g.E.PG=tw(6);g.E.d4=tw(9);g.E.Hk=tw(12);g.E.renderChapterSeekingAnimation=function(k,p,t){this.l6().renderChapterSeekingAnimation(k,p,t)}; g.E.bE=function(){this.l6().bE()}; g.E.getWebPlayerContextConfig=function(){return this.app.G().getWebPlayerContextConfig()}; g.E.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")}; g.E.qa=function(){var k=this.app.tp();return k?k.qa():""};g.r(g.AG,g.TB);g.E=g.AG.prototype;g.E.hf=function(k,p,t,J,q,F,d){return this.app.hf(k,p,t,J,q,F,d)}; g.E.jI=function(){return this.app.jI()}; g.E.VZ=tw(14);g.E.EQ=function(){return this.app.EQ()}; g.E.a8=function(){var k=this.EQ().TC.get("endscreen");return!!k&&k.a8()}; g.E.getRootNode=function(){return this.Uy().element}; g.E.G=function(){return this.app.G()}; g.E.zJ=tw(17);g.E.DM=function(k){return this.app.DM(k)}; g.E.t_=function(){var k;return((k=g.US(this))==null?void 0:k.t_())||null}; g.E.Ie=function(){var k;return(k=this.app.tp())==null?void 0:k.Ie()}; g.E.getPlayerStateObject=function(k){return this.app.getPlayerStateObject(k)}; g.E.Uy=function(){return this.app.Uy()}; g.E.getPlaylist=function(){return this.app.getPlaylist()}; g.E.getVideoData=function(k,p){p=p===void 0?!1:p;var t=this.app.t5(k);if(!t)return null;t=t.getVideoData();if(p)var J=t;else if(t.enableServerStitchedDai&&k===2||g.hF(t)&&k!==1)a:{t=this.app;p=t.getVideoData();if(t.v1){k=t.v1;t=t.getCurrentTime();if(k.bO)var q=void 0;else{var F=void 0;k.CE&&(F=k.N.get(k.CE));if(!F){F=qze(k,t*1E3);var d=(q=F)==null?void 0:q.cpn;k.CE?d&&k.CE!==d&&k.TA({cpcnm:d+"_"+k.CE,cmt:t.toFixed(3)}):k.TA({cpcna:d,cmt:t.toFixed(3)})}q=(J=F)==null?void 0:J.videoData}p=q||p}else if(t.yF&& t.tp()){J=t.yF.getVideoData(k);break a}J=p}else J=t;return J}; g.E.vL=function(){var k;return((k=this.app.tp())==null?void 0:k.vL())||null}; g.E.Ee=function(k){return this.app.Ee(k)}; g.E.XU=function(){return this.app.XU()}; g.E.isHdr=function(){var k=this.app.tp();return k?k.isHdr():!1}; g.E.Cd=function(){return this.app.Cd()}; g.E.isEmbedsShortsMode=function(){var k=g.US(this),p=this.getVideoData();k=k?k.W$:this.getPlayerSize();var t=!!this.getPlaylist();return!(!p||!p.isEmbedsShortsMode(new g.YY(k.width,k.height),t))}; g.E.o5=function(k){this.app.o5(k)}; g.E.W3=function(k,p,t,J,q){this.app.Yi(k,p,t,J,q)}; g.E.Bk=function(k,p){this.app.Bk(k,p)}; g.E.playVideo=function(k,p){try{if(this.getPresentingPlayerType()===3){WO(this.app.EQ()).zc("control_play");return}if(!k&&this.getPresentingPlayerType()===2){var t=GH(this.app.EQ());if(t&&Mk6(t))return}}catch(J){g.nV(J)}this.app.playVideo(k,p)}; g.E.stopVideo=function(k){this.app.t5(k).stopVideo()}; g.E.Td=function(k){this.app.t5(k).Td()}; g.E.addEventListener=function(k,p){this.state.N.subscribe(k,p)}; g.E.removeEventListener=function(k,p){this.state.N.unsubscribe(k,p)}; g.E.OY=function(k){this.app.OY(k)}; g.E.setPlaybackQuality=function(k,p){this.setPlaybackQualityRange(k,k,p)}; g.E.Na=function(){var k={},p=this.app.tp().Na();p=g.Z(p);for(var t=p.next();!t.done;t=p.next())t=t.value,k[t.quality]=t;return k}; g.E.DA=function(){return this.app.tp().DA()}; g.E.wZ=tw(22);g.E.w_=function(k){this.app.w_(k);k&&$$h(this.app,k)}; g.E.getVideoUrl=function(k,p,t,J){var q=this.getPresentingPlayerType(),F=q===2;if(J&&F||q===3)F=!1,q=1;J=this.getVideoData(q);if(!J)return"";var d;k||J.isLivePlayback||(d=Math.floor(this.getCurrentTime(q)));k=F?void 0:this.getPlaylistId()||void 0;p&&k==="WL"&&(k=void 0);return this.app.getVideoUrl(J.videoId,k,d,p,t)}; g.E.fu=tw(24);g.E.VG=tw(29);g.E.iO=function(k){var p;(p=this.app.tp())==null||p.iO(k)}; g.E.dj=tw(34);g.E.cj=tw(39);g.E.Et=function(k,p){this.EQ().Et(k,p)}; g.E.NB=function(){var k=g.RG(this.EQ());return!!k&&k.NB()}; g.E.LK=function(){var k=g.RG(this.EQ());return!!k&&k.LK()}; g.E.Ns=function(k,p,t){var J=g.RG(this.EQ());J&&J.Ns(k,p,t)}; g.E.u7=tw(40);g.E.gZ=function(){var k;(k=this.app.tp())==null||k.Bi()}; g.E.Tn=function(k){this.dS("onVideoAreaChange");this.dS(k?"onShowControls":"onHideControls")}; g.E.kL=function(k,p){var t=g.US(this);if(t)return t.kL(k,p);k=this.app.Uy().At();return new g.qJ(0,0,k.width,k.height)}; g.E.Yc=function(){var k=this.EQ().TC.get("heartbeat");return!!k&&k.Yc()}; g.E.qA=function(){var k=this.G();if(k.qO||k.disableSeek)return!1;var p=this.app.tp();if(!p)return!1;var t=p.getVideoData();if(!t.IG()||g.VR(t)||this.getPresentingPlayerType()===2&&!this.app.Ur()||t.u1()&&this.getPresentingPlayerType(!0)===2||p.cn()&&this.getPresentingPlayerType()!==3)return!1;k=g.i$(k);return g.Fa(k)&&!t.SB||fK(this.app)?!1:!0}; g.E.Tc=function(){var k=this.app.tp();return k?k.Lj():!1}; g.E.isLifaAdPlaying=function(){var k,p=(k=this.getVideoData())==null?void 0:k.u1();return p?this.getPresentingPlayerType(p)===2:!1}; g.E.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.E.E9=function(){var k;(k=this.app.tp())==null||k.E9()}; g.E.sendVideoStatsEngageEvent=function(k,p,t){this.app.sendVideoStatsEngageEvent(k,t,p)}; g.E.Lb=function(k,p,t){this.app.Fs(k,p,t)}; g.E.Bl=function(k,p){this.app.O0(k,p)}; g.E.VM=function(k,p){zFw(this.app,k,p)}; g.E.Um=tw(43);g.E.rZ=function(k){return this.app.rZ(k)}; g.E.Fw=function(k,p){var t;(t=this.app.t5(p))==null||t.Fw(k)}; g.E.cn=function(){var k=this.app.t5();return k?k.cn():!0}; g.E.HL=function(){var k=this.getVideoData();return!!k&&(k.HL()||!!k.hlsFormats||!!k.nT)}; g.E.getPlaybackRate=function(){return this.app.iG().getPlaybackRate()}; g.E.setPlaybackRate=function(k,p){this.app.setPlaybackRate(k,p)}; g.E.QM=function(){return this.app.QM()}; g.E.WN=function(){return this.app.WN()}; g.E.VX=function(k){return this.app.VX(k)}; g.E.createClientVe=function(k,p,t,J){this.G().W0&&this.app.yj.createClientVe(k,p,t,J===void 0?!1:J)}; g.E.createServerVe=function(k,p,t){this.G().W0&&this.app.yj.createServerVe(k,p,t===void 0?!1:t)}; g.E.setTrackingParams=function(k,p){this.G().W0&&this.app.yj.setTrackingParams(k,p)}; g.E.logClick=function(k,p){this.G().W0&&(this.app.yj.click(k,p),this.publish("veClickLogged",k))}; g.E.logVisibility=function(k,p,t){this.G().W0&&this.app.yj.rS(k,p,t)}; g.E.hasVe=function(k){return this.G().W0?this.app.yj.hasVe(k):!1}; g.E.destroyVe=function(k){this.G().W0&&this.app.yj.destroyVe(k)}; g.E.getPresentingPlayerType=function(k){return this.app.getPresentingPlayerType(k)}; g.E.Sa=function(){this.app.Sa()}; g.E.WD=tw(45);g.E.yK=function(k){this.app.yK(k)}; g.E.C3=function(){this.app.C3()}; g.E.AC=function(){return this.app.AC()}; g.E.addPlayerResponseForAssociation=function(k){this.app.addPlayerResponseForAssociation(k)}; g.E.finishSegmentByCpn=function(k,p,t){return this.app.finishSegmentByCpn(k,p,t)}; g.E.Kh=function(k,p,t,J,q,F,d){return this.app.Kh(k,p,t,J,q,F,d)}; g.E.pu=function(k,p,t,J,q,F,d){return this.app.pu(k,p,t,J,q,F,d)}; g.E.d5=function(){return this.app.d5()}; g.E.bV=function(k){this.app.bV(k)}; g.E.nt=function(k,p){p=p===void 0?Infinity:p;this.app.nt(k===void 0?-1:k,p)}; g.E.cA=function(k){var p;(p=g.iU(this.EQ()))==null||p.cA(k)}; g.E.wm=function(k,p,t){this.app.wm(k,p,t)}; g.E.ID=function(){return this.app.ID()}; g.E.WU=function(k,p,t){this.app.WU(k,p,t===void 0?0:t)}; g.E.yN=function(){return this.app.yN()}; g.E.Ur=function(){return this.app.Ur()}; g.E.KR=function(k,p,t){return this.app.KR(k,p,t)}; g.E.yT=function(k,p,t,J){t=t===void 0?!1:t;var q;(q=this.app.t5(J))==null||q.yT(k,p,t)}; g.E.Yl=function(k,p){this.publish("aduxmouseover",k,p)}; g.E.gF=function(k,p){this.publish("aduxmouseout",k,p)}; g.E.wF=function(k,p){this.publish("muteadaccepted",k,p)}; g.E.BW=function(){return this.app.Uy().BW()}; g.E.YY=function(k){this.app.Uy().YY(k)}; g.E.mK=function(k){return k?this.app.W_():(k=this.app.tp())?k.mK():!1}; g.E.oI=function(k){this.app.oI(k)}; g.E.nK=function(){this.app.iG().nK()}; g.E.uc=function(){var k;(k=this.app.tp())==null||k.uc()}; g.E.Z$=function(){this.app.Z$()}; g.E.getGetAdBreakContext=function(){var k=this.app.iG();return k.getVideoData().getGetAdBreakContext(k.getCurrentTime(),k.Yx())}; g.E.PF=function(k,p){var t;(t=this.app.tp())==null||t.PF(k,p)}; g.E.ET=function(){var k;return((k=this.app.tp())==null?void 0:k.ET())||!1};var ia;g.r(w4,Pz);w4.prototype.oe=function(k,p){k=Pz.prototype.oe.call(this,k,p);return Object.assign({},k,this.requestHeaders)};g.r(g.GB,g.EY);g.E=g.GB.prototype;g.E.show=function(){var k=this.l0();g.EY.prototype.show.call(this);this.P0&&(this.B.V(window,"blur",this.xI),this.B.V(IB(this),"click",this.z$));k||this.publish("show",!0)}; g.E.hide=function(){var k=this.l0();g.EY.prototype.hide.call(this);HxT(this);k&&this.publish("show",!1)}; g.E.Iu=function(k,p){this.Y=k;this.gy.show();p?(this.L||(this.L=this.B.V(this.j,"appresize",this.a6)),this.a6()):this.L&&(this.B.qP(this.L),this.L=void 0)}; g.E.FT=function(){this.Y&&this.element&&(this.Y.getAttribute("aria-haspopup"),this.Y.setAttribute("aria-expanded","true"),this.focus())}; g.E.a6=function(){var k=g.US(this.j);this.Y&&k.Yn(this.element,this.Y)}; g.E.xI=function(){var k=this.l0();HxT(this);this.gy.hide();k&&this.publish("show",!1)}; g.E.z$=function(k){var p=Am(k);p&&(g.FI(this.element,p)||this.Y&&g.FI(this.Y,p)||!g.A5(k))||this.xI()}; g.E.l0=function(){return this.NW&&this.gy.state!==4};g.r(RB,g.GB);RB.prototype.Iu=function(){g.GB.prototype.Iu.call(this);this.dialog.focus()};g.r(g.zB,g.EY);g.zB.prototype.setIcon=function(k){this.updateValue("icon",k)}; g.zB.prototype.updateValue=function(k,p){g.EY.prototype.updateValue.call(this,k,p);this.publish("size-change")};g.o6={iF:15,gb6:14,nbh:13,dQ:12,yE:11,Bf:10,rr:9,w7:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,L8:4,UE:3,vdb:2,REMOTE:1,h5T:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SLEEP_TIMER",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.r(hG,g.zB);hG.prototype.Wp=function(k){this.Y&&this.j.logVisibility(this.element,this.T&&k)}; hG.prototype.C=function(){var k,p,t=(k=this.j.getVideoData())==null?void 0:(p=k.accountLinkingConfig)==null?void 0:p.linked;if(t&&!this.T){var J;k=(J=this.j.getVideoData())==null?void 0:J.accountLinkingConfig;this.setIcon(rP());var q;g.BO(this,aB(k==null?void 0:(q=k.menuData)==null?void 0:q.connectedMenuLabel));var F,d,S;this.N=new RB(this.j,aB(k==null?void 0:(F=k.menuData)==null?void 0:F.connectedDialogTitle),aB(k==null?void 0:(d=k.menuData)==null?void 0:d.connectedDialogMessage),aB(k==null?void 0: (S=k.menuData)==null?void 0:S.confirmButtonText));g.z(this,this.N);var U;J=(k==null?void 0:(U=k.menuData)==null?void 0:U.trackingParams)||null;(this.Y=!!J)&&this.j.setTrackingParams(this.element,J);this.Pp.Ru(this);this.T=!0}else!t&&this.T&&(this.Pp.fL(this),this.T=!1)}; hG.prototype.onClick=function(){this.Y&&this.j.logClick(this.element);this.Pp.xI();this.N&&this.N.Iu()};g.r(ME,g.R);ME.prototype.D=function(k){return this.api.D(k)};g.r(g4,ME);g4.prototype.onVideoDataChange=function(k){if(!k.accountLinkingConfig){var p,t=(p=k.getPlayerResponse())==null?void 0:p.accountLinkingConfig;k.accountLinkingConfig=t}var J;if(p=(J=k.accountLinkingConfig)==null?void 0:J.alsParam)k.Wu=p}; g4.prototype.setAccountLinkState=function(k){this.api.getVideoData().Wu=k;this.api.gZ()}; g4.prototype.updateAccountLinkingConfig=function(k){var p=this.api.getVideoData(),t=p.accountLinkingConfig;t&&(t.linked=k);this.api.publish("videodatachange","dataupdated",p,this.api.getPresentingPlayerType())};g.r(la,ME); la.prototype.Y=function(k){var p=k.getId(),t=this.api.getVideoData(1),J=!this.api.isInline();if(!t.inlineMetricEnabled&&!this.api.D("enable_player_logging_lr_home_infeed_ads")||J){if(p==="part2viewed"){if(t.WZ&&g.Xs(t.WZ),t.YE&&jP(this,t.YE),t.uf)for(var q={CPN:this.api.getVideoData().clientPlaybackNonce},F=g.Z(t.uf),d=F.next();!d.done;d=F.next())jP(this,g.c8(d.value,q))}else p==="conversionview"?this.api.nK():p==="engagedview"&&t.Iq&&(q={CPN:this.api.getVideoData().clientPlaybackNonce},g.Xs(g.c8(t.Iq, q)));t.BZ&&(q=t.BZ,F=k.getId(),q=te(q,{label:F}),g.Xs(q));switch(p){case "videoplaytime25":t.Zu&&jP(this,t.Zu);t.lA&&OS(this,t.lA);t.GW&&g.Xs(t.GW);break;case "videoplaytime50":t.nz&&jP(this,t.nz);t.fk&&OS(this,t.fk);t.Ug&&g.Xs(t.Ug);break;case "videoplaytime75":t.I6&&jP(this,t.I6);t.Z4&&OS(this,t.Z4);t.KB&&g.Xs(t.KB);break;case "videoplaytime100":t.Du&&jP(this,t.Du),t.Rb&&OS(this,t.Rb),t.SZ&&g.Xs(t.SZ)}(q=this.api.getVideoData().tR)&&Juq(this,q,k.getId())&&Juq(this,q,k.getId()+"gaia")}if(t.inlineMetricEnabled&& !J)switch(p){case "videoplaybackstart":var S,U=(S=t.cF)==null?void 0:S.T;U&&jP(this,U);break;case "videoplayback2s":(S=(U=t.cF)==null?void 0:U.N)&&jP(this,S);break;case "videoplayback10s":var f;(S=(f=t.cF)==null?void 0:f.Y)&&jP(this,S)}this.api.Bl([k],1)};g.r(qJh,ME);g.r(KK,g.M);g.E=KK.prototype; g.E.Si=function(){var k;if(k=this.j.getPresentingPlayerType()!==3&&g.nK(this.j)&&this.j.Uy().getPlayerSize().width>=400)if(k=this.hj(),this.j.G().D("client_respect_autoplay_switch_button_renderer"))k=!!k.autoplaySwitchButtonRenderer;else{var p,t,J,q;k=!!((p=k.getWatchNextResponse())==null?0:(t=p.contents)==null?0:(J=t.twoColumnWatchNextResults)==null?0:(q=J.autoplay)==null?0:q.autoplay)!==!1}if(k)this.T||(this.T=!0,this.rS(this.T),this.j.G().D("web_player_autonav_toggle_always_listen")||FTS(this), p=this.hj(),this.wH(p.autonavState),this.j.logVisibility(this.element,this.T));else if(this.T=!1,this.rS(this.T),!this.j.G().D("web_player_autonav_toggle_always_listen"))for(this.j.G().D("web_player_autonav_toggle_always_listen"),p=g.Z(this.Y),t=p.next();!t.done;t=p.next())this.qP(t.value)}; g.E.wH=function(k){dme(this)?this.isChecked=k!==1:((k=k!==1)||(g.Iu(),k=g.TQ("web_autonav_allow_off_by_default")&&!g.Xa(0,141)&&g.M9("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Xa(0,140)),this.isChecked=k);$mu(this)}; g.E.onClick=function(){this.isChecked=!this.isChecked;this.j.w_(this.isChecked?2:1);$mu(this);if(dme(this)){var k=this.hj().autoplaySwitchButtonRenderer;this.isChecked&&(k==null?0:k.onEnabledCommand)?this.j.zb("innertubeCommand",k.onEnabledCommand):!this.isChecked&&(k==null?0:k.onDisabledCommand)&&this.j.zb("innertubeCommand",k.onDisabledCommand)}this.j.logClick(this.element)}; g.E.getValue=function(){return this.isChecked}; g.E.hj=function(){return this.j.getVideoData(1)};g.r(EI0,ME);g.r(HO,g.zB);HO.prototype.onClick=function(){this.enabled&&(xR(this,!this.checked),this.publish("select",this.checked))}; HO.prototype.getValue=function(){return this.checked}; HO.prototype.setEnabled=function(k){(this.enabled=k)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Umq=["en-CA","en","es-MX","fr-CA"];g.r(FE,HO);FE.prototype.Zr=function(k){k?this.T||(this.Pp.Ru(this),this.T=!0):this.T&&(this.Pp.fL(this),this.T=!1);this.T&&xR(this,vfS())}; FE.prototype.C=function(){g.qN(this.element,"ytp-menuitem-highlight-transition-enabled")}; FE.prototype.N=function(k){var p=vfS();k!==p&&(p=g.Iu(),Bz(190,k),Bz(192,!0),p.save(),this.j.zb("cinematicSettingsToggleChange",k))}; FE.prototype.Ap=function(){this.T&&this.Pp.fL(this);HO.prototype.Ap.call(this)};g.r($O,ME);$O.prototype.updateCinematicSettings=function(k){this.T=k;var p;(p=this.menuItem)==null||p.Zr(k);this.api.publish("onCinematicSettingsVisibilityChange",k)};g.r(d9,ME);d9.prototype.Ev=function(k,p){p=p.clipConfig;k==="dataloaded"&&p&&p.startTimeMs!=null&&p.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(p.startTimeMs)),endTimeMs:Math.floor(Number(p.endTimeMs)),postId:p.postId,type:"clips"})};g.r(E6,ME);E6.prototype.setCreatorEndscreenVisibility=function(k){var p;(p=Br(this.api.EQ()))==null||p.rS(k)}; E6.prototype.T=function(k){function p(J){J==="creatorendscreen"&&(J=Br(t.api.EQ()))&&J.kt6(t.hideButton)} var t=this;this.hideButton=k;this.events.V(this.api,"modulecreated",p);p("creatorendscreen")};g.r(Sl,HO);Sl.prototype.N=function(k){this.C(k?1:0)}; Sl.prototype.Y=function(){var k=this.hasDrcAudioTrack(),p=this.T()===1&&k;xR(this,p);this.setEnabled(k)}; Sl.prototype.Ap=function(){this.Pp.fL(this);HO.prototype.Ap.call(this)};g.r(U6,ME);U6.prototype.getDrcUserPreference=function(){return this.T}; U6.prototype.setDrcUserPreference=function(k){g.cz("yt-player-drc-pref",k,31536E3);k!==this.T&&(this.T=k,this.updateEnvironmentData(),this.Y()&&this.api.uc())}; U6.prototype.updateEnvironmentData=function(){this.api.G().Dw=this.T===1}; U6.prototype.Y=function(){var k,p,t=(k=this.api.getVideoData())==null?void 0:(p=k.N)==null?void 0:p.T;if(!t)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.D("mta_drc_mutual_exclusion_removal")){var J=this.api.getAudioTrack().ws.id;return cC(t,function(q){var F;return q.audio.T&&((F=q.ws)==null?void 0:F.id)===J})}return cC(t,function(q){var F; return((F=q.audio)==null?void 0:F.T)===!0})};g.r(fP,ME);fP.prototype.onVideoDataChange=function(){var k=this,p=this.api.getVideoData();this.api.VM("embargo",1);var t=p==null?void 0:p.tE.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(t==null?0:t.length)?yuw(this,t.filter(function(J){return NYh(k,J)})):(p==null?0:p.cueRanges)&&yuw(this,p.cueRanges.filter(function(J){return NYh(k,J)}))}; fP.prototype.Y=function(k){return k.embargo!==void 0}; fP.prototype.Ap=function(){ME.prototype.Ap.call(this);this.T={}};g.r(bK,ME); bK.prototype.addEmbedsConversionTrackingParams=function(k){var p=this.api.G(),t=p.widgetReferrer,J=p.v0,q=this.T,F="",d=p.getWebPlayerContextConfig();d&&(F=d.embedsIframeOriginParam||"");t.length>0&&(k.embeds_widget_referrer=t);J.length>0&&(k.embeds_referring_euri=J);p.C&&F.length>0&&(k.embeds_referring_origin=F);d&&d.embedsFeature&&(k.feature=d.embedsFeature);q.length>0&&(p.D("embeds_web_enable_lite_experiment_control_arm_logging")?q.unshift(28572):g.Fa(g.i$(p))&&q.unshift(159628),p=q.join(","),p= g.zQ()?p:g.Ch(p,4),k.source_ve_path=p);this.T.length=0};g.r(YJL,ME);g.r(TYw,ME);g.r(Nl,g.R);Nl.prototype.Ap=function(){g.R.prototype.Ap.call(this);this.T=null;this.Y&&this.Y.disconnect()};g.r(Zje,ME);g.r(ym,g.M);ym.prototype.show=function(){g.M.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; ym.prototype.onVideoDataChange=function(k){var p,t,J=(p=this.api.getVideoData())==null?void 0:(t=p.getPlayerResponse())==null?void 0:t.playabilityStatus;J&&(p=Cy9(J),g.u(this.api.getPlayerStateObject(),128)||k==="dataloaderror"||!p?(this.Y=0,YO(this),this.hide()):(k=(p.remainingTimeSecs||0)*1E3,k>0&&(this.show(),this.updateValue("label",by(p.label)),mmM(this,k))))}; ym.prototype.Ap=function(){YO(this);g.M.prototype.Ap.call(this)};g.r(VEh,ME);g.r(TA,g.M);TA.prototype.onClick=function(){this.fp.logClick(this.element);this.fp.zb("onFullerscreenEduClicked")}; TA.prototype.Zr=function(){this.fp.isFullscreen()?this.Y?this.T.hide():this.T.show():this.hide();this.fp.logVisibility(this.element,this.fp.isFullscreen()&&!this.Y)};g.r(r9,ME);r9.prototype.updateFullerscreenEduButtonSubtleModeState=function(k){var p;(p=this.T)!=null&&(g.$E(p.element,"ytp-fullerscreen-edu-button-subtle",k),k&&!p.N&&(p.element.setAttribute("title","Scroll for details"),ZB(p.fp,p.element,p),p.N=!0))}; r9.prototype.updateFullerscreenEduButtonVisibility=function(k){var p;(p=this.T)!=null&&(p.Y=k,p.Zr())};g.r(WTe,g.M);g.r(LTL,ME);g.r(Z2,ME);Z2.prototype.getSphericalProperties=function(){var k=g.LK(this.api.EQ());return k?k.getSphericalProperties():{}}; Z2.prototype.setSphericalProperties=function(k){if(k){var p=g.LK(this.api.EQ());p&&p.setSphericalProperties(k,!0)}};g.r(CP,ME);g.E=CP.prototype;g.E.createClientVe=function(k,p,t,J){this.api.createClientVe(k,p,t,J===void 0?!1:J)}; g.E.createServerVe=function(k,p,t){this.api.createServerVe(k,p,t===void 0?!1:t)}; g.E.setTrackingParams=function(k,p){this.api.setTrackingParams(k,p)}; g.E.logClick=function(k,p){this.api.logClick(k,p)}; g.E.logVisibility=function(k,p,t){this.api.logVisibility(k,p,t)}; g.E.hasVe=function(k){return this.api.hasVe(k)}; g.E.destroyVe=function(k){this.api.destroyVe(k)};var cuq=!1;mw.prototype.setPlaybackRate=function(k){this.playbackRate=Math.max(1,k)}; mw.prototype.getPlaybackRate=function(){return this.playbackRate};LP.prototype.lz=function(k){var p=g.lG(k.info.T.info,this.lh.m2),t=k.info.x8+this.C,J=k.info.startTime*1E3;if(this.policy.k8)try{J=this.policy.k8?g.jd(k)*1E3:k.info.startTime*1E3}catch(d){Math.random()>.99&&this.logger&&(J=Zd(k.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:k.info.Aj(),encodedDataView:g.Zn(J,4)})),J=k.info.startTime*1E3}var q=k.info.clipId,F=this.policy.k8?g.vSS(k)*1E3:k.info.duration*1E3;this.policy.k8&&(J<0||F<0)&&(this.logger&&(this.logger({missingSegInfo:k.info.Aj(), startTimeMs:J,durationMs:F}),this.policy.OS||(J<0&&(J=k.info.startTime*1E3),F<0&&(F=k.info.duration*1E3))),this.policy.OS&&(J<0&&(J=k.info.startTime*1E3),F<0&&(F=k.info.duration*1E3)));return{formatId:p,x8:t,startTimeMs:J,clipId:q,x6:F}}; LP.prototype.NG=function(k){this.timestampOffset=k};nP.prototype.seek=function(k,p){k!==this.T&&(this.seekCount=0);this.T=k;var t=this.videoTrack.Y,J=this.audioTrack.Y,q=this.audioTrack.bG,F=lsS(this,this.videoTrack,k,this.videoTrack.bG,p);p=lsS(this,this.audioTrack,this.policy.hB?k:F,q,p);k=Math.max(k,F,p);this.X=!0;this.lh.isManifestless&&(hWL(this,this.videoTrack,t),hWL(this,this.audioTrack,J));return k}; nP.prototype.isSeeking=function(){return this.X}; nP.prototype.QR=function(k){this.N=k}; var uf6=2/24;var KT_=0;g.E=el.prototype;g.E.ZL=function(){this.gy=this.now();OWS(this.gS,this.gy);this.A5.ZL()}; g.E.RW=function(k,p){var t=this.policy.Y?(0,g.V9)():0;hr(this,k,p);k-this.S<10&&this.Y>0||this.n2(k,p);this.A5.RW(k,p);this.policy.Y&&(k=(0,g.V9)()-t,this.Fd+=k,this.pp=Math.max(k,this.pp))}; g.E.n2=function(k,p){var t=(k-this.S)/1E3,J=p-this.N;this.hn||(y0(this.gS,t,J),this.eS(t,J));this.S=k;this.N=p}; g.E.jF=function(){this.j6&&Hjw(this);this.A5.jF()}; g.E.xT=function(k){this.j6||(this.j6=this.X-this.nE+k,this.UQ=this.X,this.yn=this.Z)}; g.E.WO=function(k,p){k=k===void 0?this.Z:k;p=p===void 0?this.X:p;this.Y>0||(this.L=k,this.Y=p,this.Y8=this.isActive=!0)}; g.E.Tp=function(){return this.Rx||2}; g.E.mT=function(){}; g.E.ZX=function(){var k,p={rn:this.requestNumber,rt:(this.Z-this.T).toFixed(),lb:this.X,stall:(1E3*this.C).toFixed(),ht:(this.gy-this.T).toFixed(),elt:(this.L-this.T).toFixed(),elb:this.Y,d:(k=this.Oy)==null?void 0:k.zH()};this.url&&vIL(p,this.url);this.policy.Y&&(p.mph=this.pp.toFixed(),p.tph=this.Fd.toFixed());p.ulb=this.P0;p.ult=this.B;p.abw=this.RY;return p}; g.E.now=function(){return(0,g.V9)()}; g.E.deactivate=function(){this.isActive&&(this.isActive=!1)};g.r(Ml,el);g.E=Ml.prototype;g.E.ZX=function(){var k=el.prototype.ZX.call(this);k.pb=this.T1;k.pt=(1E3*this.Jp).toFixed();k.se=this.aO;return k}; g.E.CA=function(){var k=this.A5;this.v0||(this.v0=k.CA?k.CA():1);return this.v0}; g.E.Kd=function(){return this.dK?this.CA()!==1:!1}; g.E.Ld=function(k,p,t){if(!this.ez){this.ez=!0;if(!this.hn){hr(this,k,p);this.n2(k,p);var J=this.CA();this.aO=t;if(!this.policy.X||!this.hn)if(J===2&&this.policy.X){J=k-this.L<this.Tp()*1E3+50;t=this.B?this.P0/(this.B/1E3):Math.max(this.policy.B,t||this.RY);var q=this.Bn*1.3;J&&t<q||(this.B?Up(this.gS,this.B/1E3,this.P0,this.qO||this.policy.Y8):Up(this.gS,p/t,p,.01));b$(this.gS,p,J?0:this.C)}else J===2?this.hn||(this.B?Up(this.gS,this.B/1E3,this.P0,this.qO||this.policy.Y8):Up(this.gS,p/Math.max(this.policy.B, t||this.RY),p,.01),b$(this.gS,p,this.C)):J===1&&(J=(k-this.T)/1E3,!(J<=this.policy.C)&&this.policy.C||this.gs||this.policy.NO||!(this.Y>0)||g9(this,J,p),this.Y>0&&b$(this.gS,p,this.C));k=(k-this.T)/1E3||.01;this.policy.gy&&!(this.Y>0)||fl(this.gS,k,this.N,kYi(this),this.Ih)}this.deactivate()}}; g.E.X6=function(k,p,t){t&&(this.v0=2);k<0&&this.Rx&&(k=this.Rx);p?this.k8+=k:this.qO+=k}; g.E.Tp=function(){return this.qO||this.k8||el.prototype.Tp.call(this)}; g.E.n2=function(k,p){var t=(k-this.S)/1E3,J=p-this.N,q=this.CA();this.isActive?q===1&&((J>0||this.policy.S)&&(t>.2||J<1024)?(this.C+=t,J>0&&t>.2&&g9(this,this.Bn?t:.05,J),this.gs=!0):J>0&&(g9(this,t,J),this.gs=!0)):p&&p>=this.policy.T&&this.WO(k,p);el.prototype.n2.call(this,k,p)}; g.E.IC=function(k){if(!this.hn){hr(this,k,this.X);var p=(k-this.T)/1E3;this.CA()!==2&&this.Y>0&&(this.C+=(k-this.S)/1E3,b$(this.gS,this.N,this.C));fl(this.gS,p,this.N,kYi(this),this.Ih,!0);k=(k-this.S)/1E3;y0(this.gS,k,0);this.eS(k,0)}}; g.E.WO=function(k,p){k=k===void 0?this.Z:k;p=p===void 0?this.X:p;if(!(this.Y>0)&&(el.prototype.WO.call(this,k,p),this.CA()===1)){p=(this.gy-this.T)/1E3;var t=(k-this.gy)/1E3;this.dK&&uK(this,this.now());this.qW||this.hn||(this.Rx&&(t=Math.max(0,t-this.Rx)),k=this.gS,k.B.zk(1,p),k.j6.zk(1,t))}}; g.E.dn=function(){this.dK&&uK(this,this.now());return this.W0}; g.E.uj=function(){var k;if(k=this.N>this.sI)k=(k=this.N)?k>=this.policy.T:!1;return k}; g.E.uZ=function(){return this.B0}; g.E.hO=function(k){k=k===void 0?this.now():k;if(this.dK){uK(this,k);if(this.v0?this.Kd():this.NO!==this.IY){var p=this.IY;if(k<p){this.B0=this.IY;return}}else p=this.NO;p=Math.max(p,this.W0)}else p=this.W0;var t=this.T1-this.N;t<0&&(t=0);t=(t*this.snapshot.stall+t/this.snapshot.byterate)*1E3;this.B0=t=this.Y>0?t+k:t+Math.max(k,p)}; g.E.ao=function(){return this.now()-this.L}; g.E.uu=function(){return(this.N-this.Y)*1E3/this.ao()||0}; g.E.zP=function(){return this.L};lK.prototype.feed=function(k){yV(this.T,k);this.SV()}; lK.prototype.SV=function(){if(this.C){if(!this.T.getLength())return;var k=this.T.split(this.N-this.Y),p=k.lZ;k=k.EU;if(!this.A5.xT(this.C,p,this.Y,this.N))return;this.Y+=p.getLength();this.T=k;this.Y===this.N&&(this.C=this.N=this.Y=void 0)}for(;;){var t=0;k=g.Z(owi(this.T,t));p=k.next().value;t=k.next().value;t=g.Z(owi(this.T,t));k=t.next().value;t=t.next().value;if(p<0||k<0)break;if(!this.T.BL(t,k)){if(!this.A5.xT||!this.T.BL(t,1))break;t=this.T.split(t).EU;this.A5.xT(p,t,0,k)&&(this.C=p,this.Y= t.getLength(),this.N=k,this.T=new NP([]));break}k=this.T.split(t).EU.split(k);t=k.EU;this.A5.W4(p,k.lZ);this.T=t}}; lK.prototype.dispose=function(){this.T=new NP};g.E=jl.prototype;g.E.kU=function(){return 0}; g.E.Lg=function(){return null}; g.E.ZD=function(){return null}; g.E.ER=function(){return this.state>=1}; g.E.isComplete=function(){return this.state>=3}; g.E.kd=function(){return this.state===5}; g.E.onStateChange=function(){}; g.E.cH=function(k){var p=this.state;this.state=k;this.onStateChange(p);this.callback&&this.callback(this,p)}; g.E.Rp=function(k){k&&this.state<k?this.cH(k):this.callback&&this.callback(this,this.state)}; g.E.MO=function(){return this.state===-1}; g.E.Aj=function(){var k="";this.info.aY.forEach(function(p){k+=p.Aj()+"."}); return k.slice(0,-1)}; g.E.dispose=function(){this.MO()||(this.info.aY[0].T.N=!1,this.cH(-1))}; g.E.oN=function(){return 0};g.E=O6.prototype;g.E.ZY=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.A5.ZL()}; g.E.onError=function(){this.N=!0;this.onDone()}; g.E.onDone=function(){this.MO||(this.C=!0,this.A5.jF())}; g.E.JV=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.E.getResponseHeader=function(k){try{return this.xhr.getResponseHeader(k)}catch(p){return""}}; g.E.Qt=function(){return+this.getResponseHeader("content-length")}; g.E.Z6=function(){return this.Y}; g.E.NN=function(){return this.status>=200&&this.status<300&&!!this.Y}; g.E.vn=function(){return this.T.getLength()>0}; g.E.IX=function(){var k=this.T;this.T=new NP;return k}; g.E.QP=function(){return this.T}; g.E.abort=function(){this.MO=!0;this.xhr.abort()}; g.E.UR=function(){return!0}; g.E.n4=function(){return this.N}; g.E.C$=function(){return""};g.E=dBe.prototype;g.E.getResponseHeader=function(k){return k==="content-type"?this.T.get("type"):""}; g.E.abort=function(){}; g.E.JV=function(){return!0}; g.E.Qt=function(){return this.range.length}; g.E.Z6=function(){return this.loaded}; g.E.NN=function(){return!!this.loaded}; g.E.vn=function(){return!!this.Y.getLength()}; g.E.IX=function(){var k=this.Y;this.Y=new NP;return k}; g.E.QP=function(){return this.Y}; g.E.UR=function(){return!0}; g.E.n4=function(){return!!this.error}; g.E.C$=function(){return this.error};g.E=S16.prototype;g.E.start=function(k){var p={credentials:"include",cache:"no-store"};Object.assign(p,this.Z);this.C&&(p.signal=this.C.signal);k=new Request(k,p);fetch(k).then(this.L,this.onError).then(void 0,og)}; g.E.onDone=function(){this.MO()||this.A5.jF()}; g.E.getResponseHeader=function(k){return this.responseHeaders?this.responseHeaders.get(k):null}; g.E.JV=function(){return!!this.responseHeaders}; g.E.Z6=function(){return this.Y}; g.E.Qt=function(){return+this.getResponseHeader("content-length")}; g.E.NN=function(){return this.status>=200&&this.status<300&&!!this.Y}; g.E.vn=function(){return!!this.T.getLength()}; g.E.IX=function(){this.vn();var k=this.T;this.T=new NP;return k}; g.E.QP=function(){this.vn();return this.T}; g.E.MO=function(){return this.X}; g.E.abort=function(){this.N&&this.N.cancel().catch(function(){}); this.C&&this.C.abort();this.X=!0}; g.E.UR=function(){return!0}; g.E.n4=function(){return this.S}; g.E.C$=function(){return this.errorMessage};g.E=UBL.prototype;g.E.onDone=function(){if(!this.MO){this.status=this.xhr.status;try{this.response=this.xhr.response,this.Y=this.response.byteLength}catch(k){}this.T=!0;this.A5.jF()}}; g.E.ZY=function(){this.xhr.readyState===2&&this.A5.ZL()}; g.E.eh=function(k){this.MO||(this.status=this.xhr.status,this.T||(this.Y=k.loaded),this.A5.RW((0,g.V9)(),k.loaded))}; g.E.JV=function(){return this.xhr.readyState>=2}; g.E.getResponseHeader=function(k){try{return this.xhr.getResponseHeader(k)}catch(p){return g.wt(Error("Could not read XHR header "+k)),""}}; g.E.Qt=function(){return+this.getResponseHeader("content-length")}; g.E.Z6=function(){return this.Y}; g.E.NN=function(){return this.status>=200&&this.status<300&&this.T&&!!this.Y}; g.E.vn=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.E.IX=function(){this.vn();var k=this.response;this.response=void 0;return new NP([new Uint8Array(k)])}; g.E.QP=function(){this.vn();return new NP([new Uint8Array(this.response)])}; g.E.abort=function(){this.MO=!0;this.xhr.abort()}; g.E.UR=function(){return!1}; g.E.n4=function(){return!1}; g.E.C$=function(){return""};g.xO.prototype.info=function(){}; g.xO.prototype.debug=function(){}; g.xO.prototype.T=function(k){kF.apply(null,[5,this.tag,k].concat(g.m(g.nS.apply(1,arguments))))}; var NCS=new Map,TCT=new Map,y69=new function(){var k=this;this.T=new Map;this.u3={EYr:function(){return k.T}}};g.r(pN,g.R);pN.prototype.gx=function(){if(!this.ey.length)return[];var k=this.ey;this.ey=[];this.N=g.uJ(k).info;return k}; pN.prototype.NL=function(){return this.ey}; pN.prototype.Ap=function(){g.R.prototype.Ap.call(this);this.T=null;this.ey.length=0;this.aY.length=0;this.N=null};g.r(JJ,g.R);g.E=JJ.prototype; g.E.PtS=function(){if(!this.MO()){var k=(0,g.V9)(),p=!1;if(this.policy.Qr){k=k-(this.timing.Y>0?this.timing.L:this.timing.T)-this.timing.Tp()*1E3;var t=f5(ox(this),!1);k>=2E3*t?p=!0:k>=this.policy.vJ*t&&(this.T=this.policy.Yd)}else if(this.timing.Y>0){if(this.X){this.policy.mW&&(this.T=0);return}var J=this.timing.uZ();this.timing.hO();var q=this.timing.uZ();q-J>=this.policy.v3*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(q-J).toFixed(0)}),p=this.T>=5):this.T=0}else{var F=k- this.timing.dn(); this.policy.Yd&&F>0&&(this.T+=1);p=f5(ox(this),!1)*this.policy.lA;(p=F>p*1E3)&&this.logger.debug(function(){return"Elbow late by "+F.toFixed(3)})}this.T>0&&this.A5.Dk(); p?this.YS(!1):this.Y.start()}}; g.E.YS=function(k){this.C=!0;k&&!this.policy.QQ&&(k=ox(this),k.Y+=1);this.A5.qY();this.lastError="net.timeout";FJ(this)}; g.E.canRetry=function(k){var p=ox(this);k=k?this.policy.iM:this.policy.jY;return p.timedOut<this.policy.jG&&p.T<k}; g.E.eE=function(){return this.lastError}; g.E.ac=function(){return this.T}; g.E.dispose=function(){this.Y.dispose();g.R.prototype.dispose.call(this)};var EC={},RBL=(EC["1h"]=8,EC["9h"]=4,EC["1"]=8,EC["9"]=4,EC["("]=4,EC.h=2,EC.H=2,EC),SG={},BCu=(SG.o=3,SG.O=3,SG.so=3,SG.a=1,SG.ah=1,SG.A=1,SG.m=1,SG.M=1,SG.sa=1,SG.mac3=7,SG.MAC3=7,SG.meac3=5,SG.MEAC3=5,SG),UC={},eBS=(UC.o=0,UC.O=0,UC.a=0,UC.ah=0,UC.A=0,UC.m=1,UC.M=1,UC.mac3=1,UC.MAC3=1,UC.meac3=1,UC.MEAC3=1,UC.so=4,UC.sa=4,UC);var M80={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var Ud,SQ,fN=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],iDj=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],Qvw=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],Pfh=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],GYu=["412","359"],INj=[["140"],["251"],["380"],["328"]],fp={},c69=(fp["398"]="397 396 395 394 788 787".split(" "), fp["247"]=["780","779","244","243","242"],fp["136"]=["135","134","133","160"],fp["141"]=["140"],fp["251"]=["250"],fp["774"]=["251","250"],fp),bz={},nwT=(bz["135"]=["134","133","160"],bz["243"]=["242"],bz["781"]=["780","779"],bz["777"]=["776","775"],bz["396"]=["395","394"],bz["141"]=["140"],bz["251"]=["250"],bz),N5={},wE6=(N5["274"]=["317","273","318","280","279"],N5["145"]=["144","222","223","143","142"],N5["141"]=["149"],N5["140"]=["149"],N5["380"]=["381"],N5["328"]=["329"],N5),yN={},LNi=(yN["133"]= 240,yN["134"]=360,yN["135"]=480,yN["136"]=720,yN["137"]=1080,yN["242"]=240,yN["243"]=360,yN["244"]=480,yN["247"]=720,yN["248"]=1080,yN["298"]=720,yN["299"]=1080,yN["302"]=720,yN["303"]=1080,yN["395"]=240,yN["396"]=360,yN["397"]=480,yN["398"]=720,yN["399"]=1080,yN);var hBj={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.r(iK,jl);g.E=iK.prototype;g.E.Wh=function(){return this.timing.requestNumber}; g.E.b1=function(){return this.Cb.b1()}; g.E.PV=function(){var k=WNM(this.MP);if(this.sU){var p=this.sU,t=p.T.getLength();k.ulen=t;t>0&&(p=p.T.getUint8(0),k.ubyte=p,t===1&&p===0&&(k.b248180278=!0))}this.Zb&&(k.rc=this.policy.jd?this.Zb:this.Zb.toString());this.policy.UF&&this.wz&&(k.tr=this.wz);k.itag=this.info.aY[0].T.info.itag;k.ml=""+ +this.info.aY[0].T.Ox();k.sq=""+this.info.aY[0].x8;this.Cb&&(k.ifi=""+ +ZN(this.info.oO.N));this.Zb!==410&&this.Zb!==500&&this.Zb!==503||(k.fmt_unav="true");var J;(t=this.errorMessage||((J=this.xhr)==null? void 0:J.C$()))&&(k.msg=t);this.qt&&(k.smb="1");this.info.isDecorated()&&(k.sdai="1");return k}; g.E.R_=function(){return pEi(this.timing)}; g.E.C$=function(){return this.xhr.C$()||""}; g.E.uj=function(){return this.isComplete()||this.timing.uj()}; g.E.RW=function(){!this.MO()&&this.xhr&&(this.Zb=this.xhr.status,this.policy.Wt&&this.jh&&this.wx(!1),this.gO()?this.Rp(2):!this.xX&&this.uj()&&(this.Rp(),this.xX=!0))}; g.E.ZL=function(){if(!this.MO()&&this.xhr){if(!this.hk&&this.xhr.JV()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var k=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.hk=((0,g.V9)()-k)/1E3}this.xhr.JV()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.JX&&!zbT()&&g.cz("yt-player-headers-readable",!0,2592E3);k=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var p=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),t;(t=this.qD)==null||t.stop();this.R7=k||this.R7; this.zd=p||this.zd}}; g.E.jF=function(){var k=this.xhr;if(!this.MO()&&k){this.Zb=k.status;k=this.Wy(k);if(this.policy.UF){var p;(p=this.qD)==null||p.stop()}k===5?FJ(this.MP):this.cH(k);this.MP.Y.stop()}}; g.E.Wy=function(k){var p=this;ODq(this);if($F(this.MP,this.xhr.status,this.Zg?this.timing.Y8||this.hX:this.xhr.NN(),!1,this.KX))return 5;var t="";dc(this.MP,this.xhr)&&(t=V8j(this.MP,this.xhr));if(t)return Ut(ox(this.MP)),this.info.mx(this.Cb,t),3;t=k.Z6();if(this.sU){this.wx(!0);ODq(this);if($F(this.MP,this.xhr.status,this.timing.Y8||this.hX,!1,this.KX))return 5;if(!this.YM){if(this.hX)return Ut(ox(this.MP)),3;this.MP.lastError="net.closed";return 5}}else{if($F(this.MP,this.xhr.status,this.xhr.NN(), !1,this.KX))return 5;var J=this.info.N;if(J&&J!==t||k.n4())return this.MP.lastError="net.closed",5;this.wx(!0)}J=q1M(this)?k.getResponseHeader("X-Bandwidth-Est"):0;if(k=q1M(this)?k.getResponseHeader("X-Bandwidth-Est3"):0)this.pc=!0,this.policy.qp&&(J=k);A6i(this.MP,t,J?Number(J):0,this.info.aY[0].type===5);this.logger.debug(function(){var q=p.timing;return"Succeeded, rtpd="+(q.Jp*1E3+q.T-Date.now()).toFixed(0)}); return 4}; g.E.canRetry=function(){this.MO();var k=this.info.isDecorated();return this.MP.canRetry(k)}; g.E.onStateChange=function(){this.isComplete()&&(this.policy.Rc?this.qY():this.timing.deactivate())}; g.E.YS=function(k){this.MP.YS(k)}; g.E.Dk=function(){this.callback&&this.callback(this,this.state)}; g.E.ac=function(){return this.MP.ac()}; g.E.dispose=function(){jl.prototype.dispose.call(this);this.MP.dispose();var k;(k=this.qD)==null||k.dispose();this.policy.Rc||this.qY()}; g.E.qY=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.E.gx=function(){if(!this.NL().length)return[];this.tC=!0;return this.jh.gx()}; g.E.gO=function(){if(this.state<1)return!1;if(this.jh&&this.jh.ey.length)return!0;var k;return((k=this.xhr)==null?0:k.vn())?!0:!1}; g.E.NL=function(){this.wx(!1);return this.jh?this.jh.NL():[]}; g.E.wx=function(k){try{if(k||this.xhr.JV()&&this.xhr.vn()&&!dc(this.MP,this.xhr)&&!this.k5)this.jh||(this.jh=new pN(this.policy,this.info.aY)),this.xhr.vn()&&(this.sU?this.sU.feed(this.xhr.IX()):tJ(this.jh,this.xhr.IX(),k&&!this.xhr.vn()))}catch(p){this.sU?uke(this,p):g.wt(p)}}; g.E.W4=function(k,p){switch(k){case 21:k=p.split(1).EU;lNq(this,k);break;case 22:this.YM=!0;tJ(this.jh,new NP([]),!0);break;case 43:if(k=QV(new LQ(p),1))this.info.mx(this.Cb,k),this.hX=!0;break;case 45:p=ly(new LQ(p));k=p.iH;p=p.rL;k&&p&&(this.yg=k/p);break;case 44:this.AU=B$q(new LQ(p));var t,J,q;!this.timing.Y8&&((t=this.AU)==null?void 0:t.action)===4&&((J=this.AU)==null?0:(q=J.wv)==null?0:q.Zg)&&(this.Zg=this.AU.wv.Zg);break;case 53:this.policy.UF&&(k=IMh(new LQ(p)).vV)&&(this.qD||(this.vV=k,this.qD= new g.jF(this.WE,k,this)),this.qD.start());break;case 60:this.gX=uy(new LQ(p));break;case 58:if(k=N$0(new LQ(p)))this.uX=k,k.uX===3&&(this.KX=!0)}}; g.E.xT=function(k,p,t,J){t||this.timing.xT(J);if(k!==21)return!1;if(k=this.policy.Wt)if(J=p.getLength()+t===J,k*=this.info.aY[0].T.info.Lp,!J&&p.getLength()<k)return!1;if(!t){if(p.getLength()===1)return!0;p=p.split(1).EU}lNq(this,p);return!0}; g.E.Z6=function(){return this.xhr.Z6()}; g.E.kU=function(){return this.hk}; g.E.CA=function(){return this.Kd()?2:1}; g.E.Kd=function(){if(!this.policy.B.QN||!isNaN(this.info.PN)&&this.info.PN>0)return!1;if(!this.xhr.JV())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.sU)var k=!this.info.N;else this.xhr.Qt()?k=!1:(k=this.xhr.getResponseHeader("content-type"),k=k==="audio/mp4"||k==="video/mp4"||k==="video/webm");if(!k)return!1;if(isNaN(this.info.PN)){k=this.xhr.getResponseHeader("x-head-seqnum");var p=this.timing.policy.L?1:0;if(!k)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(k)>this.info.aY[0].x8+p)return!1}return!0}; g.E.oN=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.E.Lg=function(){this.xhr&&(this.R7=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.R7}; g.E.ZD=function(){this.xhr&&(this.zd=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.zd}; g.E.eE=function(){return this.MP.eE()}; g.E.WE=function(){if(!this.MO()&&this.xhr){this.wz="heartbeat";var k=this.MP;k.T+=2;this.Dk()}};g.r(YF,el);g.E=YF.prototype;g.E.n2=function(k,p){var t=(k-this.S)/1E3,J=p-this.N;this.Y>0?J>0&&(this.NO&&(t>.2||J<1024?(this.C+=t,t>.2&&KNS(this,.05,J)):KNS(this,t,J)),this.qO&&(this.IY+=J,this.W0+=t)):p>this.policy.T&&this.WO(k,p);el.prototype.n2.call(this,k,p)}; g.E.Ld=function(k,p){hr(this,k,p);this.n2(k,p);this.NO&&(p=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.Y>0&&b$(this.gS,this.IY,this.C),k=(k-this.T)/1E3||.01,this.policy.gy&&!(this.Y>0)||fl(this.gS,k,this.N,p,!1))}; g.E.IC=function(k){hr(this,k,this.X);var p=(k-this.S)/1E3;y0(this.gS,p,0);this.eS(p,0);!this.NO&&this.Y>0||(p=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.Y>0&&(this.C+=(k-this.S)/1E3,b$(this.gS,this.IY,this.C)),fl(this.gS,((k-this.T)/1E3||.01)*this.policy.P0,this.N,p,!1,!0))}; g.E.EY=function(k){k=k.Fk||2147483647;(k&2)!==2&&(this.qO=!1);(k&1)===1&&(this.NO=!0)}; g.E.UT=function(k){k=k.Fk||2147483647;(k&2)===2&&(this.qO=!1);(k&1)===1&&(this.NO=!1)}; g.E.zP=function(){return this.L}; g.E.ao=function(){var k=this.qO?this.now()-this.S:0;return Math.max(this.W0*1E3+k,1)}; g.E.uu=function(){return this.IY*1E3/this.ao()}; g.E.WO=function(k,p){k=k===void 0?this.Z:k;p=p===void 0?this.X:p;this.Y>0||(el.prototype.WO.call(this,k,p),p=this.gS,k=(k-this.gy)/1E3,p.B.zk(1,(this.gy-this.T)/1E3),p.j6.zk(1,k))}; g.E.mT=function(k){this.k8=k}; g.E.ZX=function(){var k=el.prototype.ZX.call(this);k.rbw=this.uu();k.rbe=+this.qO;k.gbe=+this.NO;k.ackt=(this.k8-this.T).toFixed();return k}; g.E.hO=function(){}; g.E.uZ=function(){return NaN}; g.E.dn=function(){return this.T+this.snapshot.delay*1E3};T_.prototype.W4=function(k,p){p.getLength();switch(k){case 20:k=new LQ(p);k={bB:nQ(k,1),videoId:QV(k,2),itag:nQ(k,3),lmt:nQ(k,4),xtags:QV(k,5),sO:nQ(k,6),Tv:wK(k,8),On:nQ(k,9),noy:nQ(k,10),startMs:nQ(k,11),durationMs:nQ(k,12),kT:nQ(k,14),timeRange:Pd(k,15,Hki),aq:nQ(k,16),WP:nQ(k,17),clipId:QV(k,1E3)};this.hA(k);break;case 21:this.eD(p,!1);break;case 22:this.HV(p);break;case 31:k=Xy(p,vti);this.mR(k);break;case 52:k=Xy(p,Xhj);this.n3(k);break;default:this.M9(k,p)}}; T_.prototype.hA=function(){}; T_.prototype.M9=function(){};g.r(rc,T_);g.E=rc.prototype; g.E.M9=function(k,p){p.getLength();switch(k){case 35:this.dJ(p);break;case 44:this.Ti(p);break;case 43:this.zz(p);break;case 53:this.Hr(p);break;case 55:k=new LQ(p);(k={timeline:Pd(k,1,euh),mRy:Pd(k,2,M0u)},k.timeline)&&k.timeline.vx&&this.A5.iJ(k.timeline.vx,k.timeline.roy,k.mRy);break;case 56:this.LC();break;case 57:this.UC(p);break;case 42:this.X2(p);break;case 45:this.zL(p);break;case 59:this.iW(p);break;case 51:this.g2(p);break;case 49:this.EY(p);break;case 50:this.UT(p);break;case 47:this.yY(p); break;case 58:this.fR(p);break;case 61:this.A5.Tq.mT((0,g.V9)());break;case 66:this.mp(p);break;case 46:this.J$(p);break;case 67:this.onSnackbarMessage(p)}}; g.E.g2=function(k){k=new LQ(k);k={s$8:II(k,1,Mm),AVb:II(k,2,Mm)};this.A5.g2(k)}; g.E.iW=function(k){var p=new LQ(k);k=GM(p,1);var t=GM(p,2);p=GM(p,3);this.A5.iW(k,t,p)}; g.E.zL=function(k){k=ly(new LQ(k));this.A5.zL(k)}; g.E.yY=function(k){k=Xy(k,whM);this.A5.yY(k)}; g.E.X2=function(k){k=new LQ(k);k={videoId:QV(k,1),formatId:Pd(k,2,Mm),endTimeMs:nQ(k,3),cKh:nQ(k,4),mimeType:QV(k,5),kX:Pd(k,6,m7i),indexRange:Pd(k,7,m7i),DW:Pd(k,8,V0M)};this.A5.X2(k)}; g.E.UC=function(k){k=M0u(new LQ(k));this.A5.UC(k)}; g.E.LC=function(){this.A5.LC()}; g.E.dJ=function(k){k=cAM(new LQ(k));this.A5.dJ(k)}; g.E.Hr=function(k){k=IMh(new LQ(k));this.A5.Hr(k)}; g.E.Ti=function(k){k=B$q(new LQ(k));this.A5.Ti(k)}; g.E.zz=function(k){k={redirectUrl:QV(new LQ(k),1)};this.A5.zz(k)}; g.E.eD=function(k){var p=k.getUint8(0);if(k.getLength()!==1){k=k.split(1).EU;var t=this.Y[p]||null;t&&DI(this.A5.ra,p,t,k)}}; g.E.HV=function(k){k=k.getUint8(0);var p=this.Y[k]||null;p&&this.A5.HV(k,p)}; g.E.n3=function(k){this.A5.n3(k)}; g.E.hA=function(k){var p=k.bB,t=k.Tv,J=k.sO,q=k.WP,F=k.aq,d=k.On,S=k.startMs,U=k.durationMs,f=k.timeRange,b=k.kT,N=k.clipId,y=ZC(k);k=MtA.has(X5[""+k.itag]);this.Y[p]=y;this.A5.X6(y,k,{bB:p,Tv:!!t,sO:J!=null?J:-1,On:d!=null?d:-1,startMs:S!=null?S:-1,durationMs:U!=null?U:-1,kT:b,WP:q,aq:F,clipId:N,timeRange:f})}; g.E.EY=function(k){k={Fk:nQ(new LQ(k),1)};this.A5.EY(k)}; g.E.UT=function(k){k={Fk:nQ(new LQ(k),1)};this.A5.UT(k)}; g.E.mR=function(k){this.A5.mR(k)}; g.E.fR=function(k){k=N$0(new LQ(k));this.A5.fR(k)}; g.E.mp=function(k){k={rN:Pd(new LQ(k),1,PLT)};this.A5.mp(k)}; g.E.onSnackbarMessage=function(k){k=nQ(new LQ(k),1);this.A5.onSnackbarMessage(k)}; g.E.J$=function(k){k={reloadPlaybackParams:Pd(new LQ(k),1,bT0)};this.A5.J$(k)};g.r(ZI,g.R);g.E=ZI.prototype;g.E.cY=function(){return Array.from(this.Zx.keys())}; g.E.aW=function(k){k=this.Zx.get(k);var p=k.ey;k.XQ+=p.getLength();k.ey=new NP;return p}; g.E.TH=function(k){return this.Zx.get(k).TH}; g.E.yx=function(k){return this.Zx.get(k).yx}; g.E.X6=function(k,p,t,J){this.Zx.get(k)||tdi(this,k,p);p=this.Zx.get(k);if(this.lh){k=o60(this,k,t);if(J)for(var q=g.Z(k),F=q.next();!F.done;F=q.next()){F=F.value;var d=J;F.L=d;F.startTime+=d;F.M2+=d;F.m_+=d}J_h(this,t.bB,p,k)}else t.Tv?p.v8=t.kT:p.nC.push(t),p.yR.push(t)}; g.E.Sw=function(k){var p;return((p=this.Zx.get(k))==null?void 0:p.aY)||[]}; g.E.Rp=function(){for(var k=g.Z(this.Zx.values()),p=k.next();!p.done;p=k.next())p=p.value,p.bJ&&(p.eh&&p.eh(),p.bJ=!1)}; g.E.HV=function(k,p){this.logger.debug(function(){return"[onMediaEnd] formatId: "+p}); var t=this.Zx.get(p);if(CN){if(t&&!t.TH){if(t.WR.get(k))t.WR.get(k).AS=!0;else{var J;((J=this.pT)==null?0:J.Kb)&&t.WR.set(k,{data:new NP,T9:0,AS:!0})}t.yx=!0}}else t&&!t.yx&&(t.yx=!0)}; g.E.gx=function(k){if(CN){var p=this.Zx.get(k);if(p)for(var t=g.Z(p.WR),J=t.next();!J.done;J=t.next()){var q=g.Z(J.value);J=q.next().value;q=q.next().value;var F=p.Cy.get(J);if(L5(F[0])){if(!q.AS)continue;var d=F,S=q.data;S.getLength();F=0;var U=[];d=g.Z(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var b=f.N,N=YU(S,F,b);F+=b;U.push(new ui(f,N))}p.IV.push.apply(p.IV,g.m(U))}else if(q.data.getLength()>0||!F[0].range&&q.AS)S=void 0,F=F[0],U=q.T9,d=q.data,F.range||(S=q.AS),f=d.getLength(),S=new ui(diM(F, F.Y+U,f,S),d),q.T9+=S.info.N,p.IV.push(S);p.WR.get(J).data=new NP;q.AS&&p.WR.delete(J)}k=this.Zx.get(k);if(!k)return[];p=k.IV;k.IV=[];t=g.Z(p);for(J=t.next();!J.done;J=t.next())k.XQ+=J.value.info.N;return p||[]}t=(p=this.Zx.get(k))==null?void 0:p.jh;if(!t)return[];this.wx(k,t);return t.gx()}; g.E.gO=function(k){if(CN)return WJ(this,k);var p,t,J;return!!((t=(p=this.Zx.get(k))==null?void 0:p.jh)==null?0:(J=t.NL())==null?0:J.length)||WJ(this,k)}; g.E.wx=function(k,p){for(;WJ(this,k);){var t=this.aW(k);var J=k;J=this.Zx.get(J).TH&&!Ve(this,J);tJ(p,t,J&&pke(this,k))}}; g.E.Ap=function(){g.R.prototype.Ap.call(this);for(var k=g.Z(this.Zx.keys()),p=k.next();!p.done;p=k.next())AJ(this,p.value);var t;if((t=this.pT)==null?0:t.N_)for(k=g.Z(this.Zx.values()),p=k.next();!p.done;p=k.next())p=p.value,p.WR.clear(),p.Cy.clear(),p.IV.length=0,p.aY.length=0,p.yR.length=0,p.nC.length=0;this.Zx.clear()}; var CN=!1;g.r(sd,g.R);g.E=sd.prototype;g.E.RW=function(){!this.MO()&&this.xhr&&(this.wx(!1),xq(this.A5,this))}; g.E.ZL=function(){}; g.E.jF=function(){if(!this.MO()&&this.xhr){var k=this.Wy();k===5?FJ(this.MP):this.cH(k);this.MP.Y.stop();var p;(p=this.IP)==null||p.stop()}}; g.E.Wy=function(){var k="";dc(this.MP,this.xhr)&&(k=V8j(this.MP,this.xhr));if(k)return this.info.oO.mx(this.Cb,k),3;this.wx(!0);if($F(this.MP,this.xhr.status,this.xhr.NN(),this.info.EH(),this.KX))return 5;if(this.Ge)return 3;A6i(this.MP,this.xhr.Z6(),0,this.EH());this.policy.nT&&zc6(this.A5);return 4}; g.E.wx=function(k){var p=this.xhr;if((k||!dc(this.MP,this.xhr))&&p.vn()){k=p.IX();var t=k.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+t}); this.sU.feed(k)}}; g.E.W4=function(k,p){this.xhr.UR()&&k===21&&dr6(this);this.HK.W4(k,p)}; g.E.xT=function(k,p,t,J){t||(this.Tq.xT(J),this.policy.uf&&k===21&&dr6(this));if(k!==21)return!1;this.Tq.Y8=!0;k=p.getLength();t||(this.YU=p.getUint8(0),p=p.split(1).EU);var q=this.policy.Ib,F=this.HK.Y[this.YU],d=this.lh.N.get(F);if(q&&d&&(q*=d.info.Lp,k+t!==J&&k<q))return!1;DI(this.ra,this.YU,F,p);return!0}; g.E.dJ=function(k){this.A5.dJ(k)}; g.E.Hr=function(k){if(this.policy.enableServerDrivenRequestCancellation){var p;(p=this.IP)==null||p.dispose();this.V0=k;k.Cc&&(this.IP=new g.jF(this.I4,k.Cc,this));this.I4()}}; g.E.I4=function(){var k;if((k=this.V0)!=null&&k.items){var p;(p=this.IP)==null||p.start();if(this.Tq.Y>0){this.policy.Qr&&this.MP.Y.stop();k=this.Tq.ao();p=this.Tq.uu();var t=E6w(this,k);if(!(p>t.S3||t.vC>0&&this.info.z_()>t.vC)){this.cw=(0,g.V9)();var J;(J=this.IP)==null||J.stop();this.policy.nT&&(J=this.A5,k={Cr:Math.round(p*k/1E3),vF:k},J.policy.nT&&(J.j6=k,J.rP++));this.YS(!1)}}}}; g.E.YS=function(k){this.MP.YS(k)}; g.E.Ti=function(k){this.A5.Ti(k,this.Wh())}; g.E.zz=function(k){this.Ge=!0;this.info.oO.mx(this.Cb,k.redirectUrl)}; g.E.EY=function(k){this.Tq instanceof YF&&this.Tq.EY(k)}; g.E.UT=function(k){this.Tq instanceof YF&&this.Tq.UT(k)}; g.E.iJ=function(k,p,t){this.A5.iJ(k,p,t,this.Wh())}; g.E.X2=function(k){var p=k.formatId,t=ZC({itag:p.itag,lmt:p.lmt,xtags:p.xtags}),J,q,F=new A_(((J=k.kX)==null?void 0:J.first)||0,((q=k.kX)==null?void 0:q.gB)||0),d,S;J=new A_(((d=k.indexRange)==null?void 0:d.first)||0,((S=k.indexRange)==null?void 0:S.gB)||0);if(!this.lh.N.get(t)){t=k.DW||{};if(this.policy.QK){var U,f;k=(U=k.mimeType)!=null?U:"";U=(f=p.itag)!=null?f:0;f=X5[""+U];t.mimeType=f!=="9"&&f!=="9h"?k:'video/webm; codecs="'+["vp09",f==="9h"?"02":"00","51",f==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else t.mimeType=k.mimeType;t.itag=p.itag;t.lastModified=""+(p.lmt||0);t.xtags=p.xtags;p=this.lh;f=fR("");U=S1(t,null);os(p,new pR(f,U,F,J))}}; g.E.zL=function(k){this.A5.zL(k)}; g.E.onSnackbarMessage=function(k){if(this.policy.So)this.A5.onSnackbarMessage(k)}; g.E.mR=function(k){this.aH=k;this.F5=(0,g.V9)();this.A5.mR(k)}; g.E.iW=function(k,p,t){this.A5.iW(k,p,t)}; g.E.UC=function(k){k.scope===2&&(this.Rk0=k);this.A5.UC(k)}; g.E.LC=function(){this.Us=!0;this.A5.LC()}; g.E.g2=function(k){this.policy.Q4&&this.A5.g2(k)}; g.E.yY=function(k){this.A5.yY(k,this.Wh())}; g.E.fR=function(k){k.uX===3&&(this.KX=!0);this.A5.fR(k)}; g.E.mp=function(k){this.A5.mp(k)}; g.E.J$=function(k){this.A5.J$(k)}; g.E.canRetry=function(){this.MO();return this.MP.canRetry(!1)}; g.E.dispose=function(){if(!this.MO()){g.R.prototype.dispose.call(this);this.MP.dispose();var k;(k=this.IP)==null||k.dispose();this.cH(-1);this.qY()}}; g.E.cH=function(k){this.state=k;xq(this.A5,this)}; g.E.EH=function(){return this.info.EH()}; g.E.xK=function(){return this.Us}; g.E.KN=function(){return this.Rk0}; g.E.X6=function(k,p,t){t.clipId&&(this.clipId=t.clipId);this.policy.X&&!p&&(this.FS=t.On,this.vO=t.startMs);var J=0;this.policy.Xo&&this.tZ&&this.clipId&&(J=vI(this.tZ,this.clipId)/1E3);this.ra.X6(k,p,t,J);this.policy.CI&&this.aH&&this.Tq instanceof Ml&&(J=this.aH.Bg,this.Tq.X6(t.durationMs/1E3,p,J>0&&t.On+1>=J));this.ra.Zx.get(k).uC=!0}; g.E.HV=function(k,p){this.ra.HV(k,p)}; g.E.n3=function(k){this.requestIdentifier=k}; g.E.gx=function(k){return this.ra.gx(k)}; g.E.Sw=function(k){return this.ra.Sw(k)}; g.E.gO=function(k){return this.ra.gO(k)}; g.E.cY=function(){return this.ra.cY()}; g.E.CA=function(){return 1}; g.E.Wh=function(){return this.Tq.requestNumber}; g.E.Nf=function(){return this.requestIdentifier}; g.E.Ob=function(){return this.clipId}; g.E.b1=function(){return this.Cb.b1()}; g.E.yq=function(){this.qY()}; g.E.qY=function(){this.Tq.deactivate();var k;(k=this.xhr)==null||k.abort()}; g.E.isComplete=function(){return this.state>=3}; g.E.iP=function(){return this.state===3}; g.E.kd=function(){return this.state===5}; g.E.rB=function(){return this.state===4}; g.E.eJ=function(){return this.isComplete()}; g.E.ER=function(){return this.state>=1}; g.E.ac=function(){return this.policy.mW?this.MP.ac():0}; g.E.Dk=function(){this.policy.mW&&xq(this.A5,this)}; g.E.Bq=function(){return Due(this.info)}; g.E.eE=function(){return this.MP.eE()}; g.E.PV=function(){var k=WNM(this.MP);Object.assign(k,LF_(this.info));k.req="sabr";k.rn=this.Wh();var p;if((p=this.xhr)==null?0:p.status)k.rc=this.policy.jd?this.xhr.status:this.xhr.status.toString();var t;(p=(t=this.xhr)==null?void 0:t.C$())&&(k.msg=p);this.cw&&(t=E6w(this,this.cw-this.Tq.zP()),k.letm=t.UOp,k.mrbps=t.S3,k.mram=t.vC);return k}; g.E.Ub=function(){return{FS:this.FS,vO:this.vO,isDecorated:this.info.isDecorated()}};St6.prototype.tick=function(k,p){this.ticks[k]=p?window.performance.timing.navigationStart+p:(0,g.V9)()};g.r(vJ,g.o$);g.E=vJ.prototype; g.E.aC=function(k,p,t,J){var q=!1;this.policy.v0&&(q=t?this.P0===k.x8:this.NO===k.x8);if(this.S&&J&&!q){J=[];q=[];var F=[],d=void 0,S=0;p&&(J=p.T,q=p.Y,F=p.N,d=p.C,S=p.Ch,this.yT("sdai",{sq:k.x8,ssvicpns:J.join("."),ssvid:q.join(".")}));this.policy.v0&&(t?this.P0=k.x8:this.NO=k.x8);this.S.JS(k.x8,k.startTime,this.Y,J,q,F,t,S,d)}if(this.policy.v0){if(t||this.policy.Eo){this.Y===1&&nN(this,5,"noad");var U;k.x8!==((U=this.T)==null?void 0:U.x8)&&(mri(this,k,p,t),isNaN(k.startTime)||wc(this,k.x8,PJ(this, k.startTime,k.x8),!!p,this.S))}}else t&&mri(this,k,p)}; g.E.Vw=function(k,p,t){var J=this.videoTrack.T.index.WH()<=p;this.T={ut:k,x8:p,Hg:t};J&&cJ(this,k,p)}; g.E.Gu=function(){this.S&&this.S.Gu()}; g.E.yT=function(k,p,t){(k!=="sdai"||this.policy.qG||(t===void 0?0:t))&&this.Ey.yT(k,p)}; g.E.mK=function(k,p){var t=this.videoTrack.T.index.cN(k);if(t>=0){var J;var q=((J=p.Dx.q3(t,2))==null?void 0:J.Ol)||"";if(this.policy.X||q)return p.UH(k,t),i1(this.Ey,k,k,t),this.yT("sdai",{cmskpad:1,t:k.toFixed(3),sq:t}),!0}this.yT("sdai",{cmskpad:0,t:k.toFixed(3),sq:t});return!1};g.r(Rx,g.R);Rx.prototype.Z1=function(k,p,t){t=t===void 0?{}:t;this.policy.Ok=D9(k,t,this.C,p===void 0?!1:p)};ax.prototype.dM=function(k){var p=this;if(this.policy.AG){var t=new Set(k);t.size===this.j6.size&&[].concat(g.m(t)).every(function(J){return p.j6.has(J)})||(this.Ey.yT("lwnmow",{itagDenylist:[].concat(g.m(k)).join(",")}),this.Ey.xn(!!t.size),this.L=-1,this.j6=t,Me(this,this.T),this.RY=!0)}}; ax.prototype.Z1=function(k,p,t){t=t===void 0?{}:t;var J=this.policy.Ok;this.X.Z1(k,p===void 0?!1:p,t);if(J!==this.policy.Ok){Me(this,this.T);gc(this);var q,F;J>this.policy.Ok&&((q=this.N)==null?0:hD(q.info))&&((F=this.nextVideo)==null||!hD(F.info))&&(this.gy=!0)}};Od.prototype.NG=function(k){this.timestampOffset=k;this.flush()}; Od.prototype.flush=function(){if(this.T.pos>0){var k={a:this.track.B3(),u:this.T.zH(),pd:Math.round(this.C),ad:Math.round(this.N)},p=this.Y;if(p){var t=p.T.info;k.itag=t.itag;t.T&&(k.xtags=t.T);k.sq=p.x8;k.st=p.startTime;k.sd=p.duration;this.track.policy.YE&&(k.si=p.Aj());p.C&&(k.esl=p.Y+p.N);p.ZM()&&(k.eos=1)}isNaN(this.timestampOffset)||(k.to=this.timestampOffset);var J;if(p=(J=this.track.bG)==null?void 0:J.pE({})){for(var q in p)this.S[q]!==p[q]&&(k["sb_"+q]=p[q]);this.S=p}this.track.yT("sbu", k);this.T.reset();this.buffered=[];this.X=this.N=this.C=0;this.timestampOffset=this.Y=void 0}};HJ.prototype.dispose=function(){this.Y8=!0}; HJ.prototype.MO=function(){return this.Y8}; g.r(ok,Error);var CUh=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);$N.prototype.skip=function(k){this.offset+=k}; $N.prototype.I9=function(){return this.offset};g.E=Sm6.prototype;g.E.Hq=function(){return this.Y}; g.E.Fq=function(){return this.Y.length?this.Y[this.Y.length-1]:null}; g.E.Jt=function(){this.Y=[];fb(this);Sn(this)}; g.E.aW=function(k){this.IY=this.Y.shift().info;k.info.MR(this.IY)}; g.E.Sw=function(){return g.DR(this.Y,function(k){return k.info})}; g.E.B3=function(){return!!this.S.info.audio}; g.E.getDuration=function(){return this.S.index.kq()};g.r(w9,jl);g.E=w9.prototype;g.E.onStateChange=function(){this.MO()&&(mg(this.ra,this.formatId),this.T.dispose())}; g.E.PV=function(){var k=kbS(this.ra,this.formatId),p;var t=((p=this.ra.Zx.get(this.formatId))==null?void 0:p.bytesReceived)||0;var J;p=((J=this.ra.Zx.get(this.formatId))==null?void 0:J.XQ)||0;return{expected:k,received:t,bytesShifted:p,sliceLength:Ve(this.ra,this.formatId),isAnyMediaEndReceived:this.ra.yx(this.formatId)}}; g.E.R_=function(){return 0}; g.E.uj=function(){return!0}; g.E.gx=function(){return this.ra.gx(this.formatId)}; g.E.NL=function(){return[]}; g.E.gO=function(){return this.ra.gO(this.formatId)}; g.E.eE=function(){return this.lastError}; g.E.ac=function(){return 0};g.r(YN,g.R);g.E=YN.prototype;g.E.B3=function(){return!!this.T.info.audio}; g.E.Fq=function(){return this.C.Fq()}; g.E.aW=function(k){this.C.aW(k);var p;(p=this.B)!=null&&(p.X.add(k.info.x8),p.T=IsT(p,p.kI,p.rO,k,p.T),p.N=k,p.S=(0,g.V9)());this.Lp=Math.max(this.Lp,k.info.T.info.Lp||0)}; g.E.getDuration=function(){if(this.policy.Y){var k=this.Ey.dI();if(k)return K$(k)}return this.T.index.kq()}; g.E.Jt=function(){Qm(this);this.C.Jt()}; g.E.yD=function(){return this.C}; g.E.isRequestPending=function(k){return this.N.length?k===this.N[this.N.length-1].info.aY[0].x8:!1}; g.E.NG=function(k){var p;(p=this.B)==null||p.NG(k);var t;(t=this.L)==null||t.NG(k)}; g.E.yT=function(k,p){this.Ey.yT(k,p)}; g.E.Bb=function(){return this.Ey.Bb()}; g.E.dispose=function(){var k;(k=this.L)==null||k.flush();g.R.prototype.dispose.call(this)};g.r(ak,g.R);ak.prototype.N=function(){this.Y++>15||(this.T=!this.T,new psT(this.Ey,this.policy,this.gS,this.oO,this.T),this.delay.start())}; g.E=psT.prototype;g.E.ZL=function(){}; g.E.RW=function(){}; g.E.jF=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Z6()===this.size)this.Ey.yT("rqs",this.getInfo());else{var k="net.connect";this.xhr.status>200?k="net.badstatus":this.xhr.JV()&&(k="net.closed");this.onError(k)}}; g.E.onError=function(k){var p=this;this.Ey.handleError(k,this.getInfo());Ar("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(t){p.Ey.yT("pathprobe",t)},function(t){p.Ey.handleError(t.errorCode,t.details)})}; g.E.getInfo=function(){var k=this.timing.ZX();k.shost=TY(this.location.Bj);k.pb=this.size;return k};g.r(MX,g.R); MX.prototype.Z=function(k,p){if(k.Z){this.lh.isLive?(k=this.lh.P3&&this.lh.C?k.T.Kw(this.lh.P3,!1):k.T.U9(Infinity),k.PN=this.PN):k=k.T.Kw(0,!1);if(this.gy){var t=this.gy;k.PN===0&&(k.X=t.B)}else k.X=this.L;return k}t=k.Y;if(!t.T.Ox())return t.T.a9()?(k=WI(this.X,k.T.info.Lp,p.T.info.Lp,0),k=t.T.Pi(t,k)):k=t.T.FB(t),k;var J=t.m_-this.Ey.getCurrentTime(),q=!t.range||t.N===0&&t.Y===0?0:t.range.length-(t.Y+t.N),F=t.T;this.Ny(k,J)&&q===0&&(this.lh.isManifestless?F=k.T:(F=t.startTime+F9,t.N&&(F+=t.duration), I6(k,F),t=k.Y,F=t.T));F.a9()?(q=this.N,p=WI(this.X,F.info.Lp,p.T.info.Lp,J,q.C.length>0&&q.B===0&&this.Ey.AY),J=Pb(k),k=t.T.Pi(t,p),(p=k.N)&&k.aY.length>1&&(J||k.oO.Y||k.aY[0].T!==t.T?k=t.T.Pi(t,k.aY[0].N):(J=k.aY[k.aY.length-1],F=J.N/p,!J.C&&F<.4&&(k=t.T.Pi(t,p-J.N))))):(t.x8<0&&(p=wj(t),p.pr=""+k.N.length,this.Ey.isSeeking()&&(p.sk="1"),p.snss=t.X,this.Ey.yT("nosq",p)),k=F.FB(t));if(this.policy.P0)for(t=g.Z(k.aY),p=t.next();!p.done;p=t.next())p.value.type=6;return k}; MX.prototype.Ny=function(k,p){if(!Pb(k)||!k.T.Ox())return!1;var t=this.N.RY||XLj(k)||p<=this.policy.Rb||this.N.gy;this.logger.debug(function(){return"ready to adapt: "+t+", upgrade pending: "+XLj(k)+", health: "+p}); return t}; MX.prototype.Ap=function(){g.R.prototype.Ap.call(this)}; var F9=2/24;g.r(kq,g.R);kq.prototype.HP=function(k,p,t){var J;var q=((J=this.Y)==null?void 0:J.reason)==="m"?"m":this.Y&&ysq(this,this.Y)?this.Y.reason:"a";this.Ey.HP(new XJ(k,q,t));Kb(this.Ey,p,k,!0)}; kq.prototype.BK=function(k,p){for(var t=g.Z(this.P0),J=t.next();!J.done;J=t.next())if(J=J.value,J.id===k)return this.pT.FE||(this.N=[J]),this.S=this.lh.T[k],en(this.pT)&&(this.gy=!0),new XJ(this.S,p?"t":"m");this.N=[];return null}; kq.prototype.Z1=function(k,p,t){t=t===void 0?{}:t;this.T.Z1(k,p===void 0?!1:p,t)};Av.prototype.setData=function(k,p,t,J){var q=this;J=J===void 0?{}:J;if(t==null?0:t.aO)this.JJ=$r6(this,t,J),k.PL=this.oO.PL();if(this.EH())return!0;this.data=k;this.T=ViL(k,p,function(F,d){var S;(S=q.A5)==null||S.TA(F,d)},t==null?void 0:t.N); if(!this.T)return!1;this.Y=g.gK(this.T,rAL);return!0}; Av.prototype.EH=function(){return this.requestType===1}; Av.prototype.z_=function(){var k;return((k=this.A5)==null?void 0:k.z_())||0}; Av.prototype.isDecorated=function(){var k;return!((k=this.data)==null||!k.sS)};ml.prototype.encrypt=function(k){this.gf.exports.AES128CTRCipher_encrypt(this.cipher,k.byteOffset,k.byteLength);return k}; ml.prototype.MO=function(){return this.cipher===0}; ml.prototype.dispose=function(){this.gf.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};WD.prototype.encrypt=function(k,p){return Ju(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:p},this.key,k).catch(function(t){return Promise.reject(t.name+": "+t.message)}).then(function(t){return new Uint8Array(t)}))}; WD.prototype.MO=function(){return this.T}; WD.prototype.dispose=function(){this.T=!0}; ng.cW(WD,{encrypt:VJ("oan2")});Do.prototype.encrypt=function(k,p){N0(this.Y,p);return Ju(this.Y.encrypt(k))}; Do.prototype.MO=function(){return this.T}; Do.prototype.dispose=function(){this.T=!0}; ng.cW(Do,{encrypt:VJ("oap")});sF.prototype.encrypt=function(k,p){var t=this.gf.nh(p),J=this.T;J.gf.exports.AES128CTRCipher_setCounter(J.cipher,(t!=null?t:p).byteOffset);p=this.gf.nh(k);this.T.encrypt(p!=null?p:k);t&&this.gf.free(t.byteOffset);return p?Ju(this.gf.BC(p)):Ju(k)}; sF.prototype.MO=function(){return this.T.MO()}; sF.prototype.dispose=function(){this.T.dispose()}; ng.cW(sF,{encrypt:VJ("oalw")});L$.prototype.encrypt=function(k,p){var t=this,J=qm("");k.length<=this.T4&&this.T&&!this.C&&(J=EJ(J,function(){return t.T?t.T.encrypt(k,p):qm("wasm unavailable")})); k.length<=this.CC&&(this.T&&this.C&&(J=EJ(J,function(){return t.T?t.T.encrypt(k,p):qm("wasm unavailable")})),J=EJ(J,function(){return wsw(t,k,p)})); return EJ(EJ(J,function(){return ilw(t,k,p)}),function(){return wsw(t,k,p)})}; L$.prototype.MO=function(){return this.X}; L$.prototype.dispose=function(){this.X=!0;var k;(k=this.N)==null||dY(k,g.ER);g.ER(this.T);g.ER(this.Y)};vD.prototype.encrypt=function(k){(0,g.V9)();return(new ts(this.T.T)).encrypt(k,this.iv)}; vD.prototype.decrypt=function(k,p){(0,g.V9)();return(new ts(this.T.T)).decrypt(k,p)}; vD.prototype.MO=function(){return this.N}; vD.prototype.dispose=function(){this.N=!0;g.ER(this.Y)};g.r(cD,g.R);cD.prototype.N=function(k,p){if(p){p=p instanceof g.yb?p:n$(this,p);var t;((t=this.T.get(k))==null?void 0:TY(t.location))!==TY(p)&&this.T.set(k,new eei(p,k))}else this.T.delete(k)}; cD.prototype.load=function(){var k=this,p,t,J,q,F,d,S,U,f,b;return g.Q(function(N){switch(N.T){case 1:p=k.T.get(0);g.Aw(N,2);var y;if(y=p&&!k.Y)y=TY(p.location),y=k.Y===qe(y);if(y){N.oY(4);break}return g.n(N,il(k,k.Y?2:0),5);case 5:if(t=N.Y)k.N(0,t),ZN(t)&&k.N(1,CD(t));case 4:g.Vi(N,3);break;case 2:J=g.W9(N);g.wt(J);if(!k.Y){N.oY(3);break}k.Y=!1;return g.n(N,k.load(),7);case 7:return N.return();case 3:if(!k.ih.experiments.Gb("html5_onesie_probe_ec_hosts")){N.oY(0);break}g.Aw(N,9);q=k;F=q.N;d=3;return g.n(N, il(k,1),11);case 11:return F.call(q,d,N.Y),S=k,U=S.N,f=4,g.n(N,il(k,2),12);case 12:U.call(S,f,N.Y);g.Vi(N,0);break;case 9:b=g.W9(N),g.wt(b),g.CS(N)}})}; cD.prototype.Z=function(){var k=this,p,t;return g.Q(function(J){g.Oc(k.B);p=g.dU(k.ih.experiments,"html5_onesie_prewarm_max_lact_ms");if(VP()>=p)return J.return();(t=k.T.get(0))&&B7L(k,t);g.CS(J)})}; var Xs_={Bx6:0,qSy:1,TOy:2,SSG:3,dMp:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};QJ.prototype.decrypt=function(k){var p=this,t,J,q,F,d,S;return g.Q(function(U){switch(U.T){case 1:if(p.T.length&&!p.T[0].isEncrypted)return U.return();p.Y=!0;p.iL.yM("omd_s");t=new Uint8Array(16);TX()?J=new pl(k):q=new ts(k);case 2:if(!p.T.length||!p.T[0].isEncrypted){U.oY(4);break}F=p.T.shift();if(!J){d=q.decrypt(F.buffer.xN(),t);U.oY(5);break}return g.n(U,J.decrypt(F.buffer.xN(),t),6);case 6:d=U.Y;case 5:S=d;for(var f=0;f<t.length;f++)if(t[f]===255)t[f]=0;else{t[f]+=1;break}f=p.iL;var b=F.videoId, N=F.bB,y=F.formatId,Y=new NP([S]),T;(T=PD(f.KT,b))==null||DI(T,N,y,Y);U.oY(2);break;case 4:p.iL.yM("omd_c"),G6(p),p.Y=!1,p.iL.tA(),g.CS(U)}})}; QJ.prototype.enqueue=function(k,p,t,J,q){this.T.push({videoId:k,bB:p,formatId:t,buffer:J,isEncrypted:q});this.Y||G6(this)};var jrh=!!Uint8Array.prototype.copyWithin,I1=[],Xg=[],hei=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BD=[],R1=[],eT=[],z6=[];Mj.prototype.hH=function(k){return g.lZw(new g.hv(k))}; Mj.prototype.Vb=function(k){function p(d){if(!d.done)return F.append(d.value),q.read().then(function(S){return p(S)})} if(!("DecompressionStream"in window))return qm("native decompression unavailable");var t=new DecompressionStream("gzip"),J=t.writable.getWriter();J.write(k).then(function(){return J.close()}); var q=t.readable.getReader(),F=new NP([]);return EJ(dY(dY(Ju(q.read()),p),function(){return F.xN()}),function(d){return qm(d.message)})}; Mj.prototype.c8=function(k,p){var t=void 0,J=p.nh(k);J&&(t=J.byteOffset,k=J);J=p.exports.getInflatedSize(k.byteOffset,k.length);if(J===0)return qm("bad compressed input");var q=p.malloc(J);if(p.exports.inflateGzip(k.byteOffset,k.length,q))return p.free(q),qm("inflateGzip failed");t&&p.free(t);return Ju(new Uint8Array(p.exports.memory.buffer,q,J))}; ng.cW(Mj,{hH:function(k){return{profile:"gzjb",n5:Math.ceil(k.byteLength/16)}}, Vb:function(k){return{profile:"gznb",n5:Math.ceil(k.byteLength/16)}}, c8:function(k){return{profile:"gzwb",n5:Math.ceil(k.byteLength/16)}}});g.r(px_,T_);g.E=px_.prototype;g.E.tA=function(){this.KT.tA()}; g.E.M9=function(k,p){switch(k){case 10:var t=Xy(p,sfh);k=t.bZy;var J=!1;switch(k){case 0:this.N=!t.A9.kbp;this.iv=t.A9.iv;break;case 2:break;case 23:var q=this.KT;t=t.xWO;q.yM("omp_r");t.videoId&&(q.nR=t.videoId);q.nR!==q.videoData.videoId&&(q.videoData.Cq=q.nR,q.yT("ompp","vid."+q.nR));q.WC=!0;break;case 24:t=this.KT;t.yM("omp_c");t.WC=!1;t.h8=!1;var F=(q=t.PQ)==null?void 0:q.get(t.nR);t.notifySubscribers(t.nR);F!=null&&(F.T=!0);ll(t);break;default:J=!0}this.KT.Gd&&this.KT.yT("ombup","id.10;pt."+ k+";len."+p.getLength()+(J?";ignored.1":""));this.C=k;break;case 11:oLi(this,p);break;case 12:this.eD(p,!0);break;case 37:p=Xy(p,LC0);(p.bF||p.Mn)&&p.videoId&&this.KT.Mu.set(p.videoId,p);break;case 60:this.nW(p);break;case 47:this.D("html5_server_playback_start_policy")&&(p=Xy(p,whM),this.KT.playbackStartPolicy=p);break;case 35:this.dJ(p);break;case 45:this.zL(p);break;case 66:this.mp(p);break;default:this.KT.Gd&&this.KT.yT("ombup","id."+k+";len."+p.getLength()+";ignored.1")}}; g.E.mR=function(k){this.KT.mR(k)}; g.E.nW=function(k){k=Xy(k,uy);this.KT.nW(k)}; g.E.zL=function(k){k=Xy(k,ly);this.KT.zL(k)}; g.E.hA=function(k){var p=k.bB,t=k.Tv,J=k.sO,q=k.aq,F=k.On,d=k.startMs,S=k.durationMs,U=k.timeRange,f=k.kT,b=ZC(k),N=MtA.has(X5[""+k.itag]);t&&this.yM(N?"oais_r":"ovis_r");var y=this.T[b]!==void 0;this.KT.Gd&&this.KT.yT("ombup","id.20;hid."+p+";fid."+b);var Y=k.videoId||"";this.Y[p]=b;this.X[p]=Y;y||(this.T[b]={videoId:Y,Qb:!1,B3:N,headers:[]});this.T[b].headers.push(k);this.KT.X6(Y,b,N,{bB:p,Tv:!!t,sO:J!=null?J:-1,On:F!=null?F:-1,startMs:d!=null?d:-1,durationMs:S!=null?S:-1,kT:f!=null?f:0,aq:q,timeRange:U})}; g.E.eD=function(k,p){var t=k.getUint8(0);this.KT.Gd&&this.KT.yT("ombup","id."+(p?12:21)+";len."+k.getLength()+";hid."+t);if(k.getLength()!==1){k=k.split(1).EU;var J=this.Y[t]||null,q=this.X[t]||"";J&&(this.qR(this.T[J].B3?"oafs_r":"ovfs_r"),this.queue.enqueue(q,t,J,k,p))}}; g.E.HV=function(k){var p=k.getUint8(0);this.KT.Gd&&this.KT.yT("ombup","id.22;len."+k.getLength()+";hid."+p);k=this.Y[p]||null;var t=this.X[p]||"";if(k)if(this.D("html5_use_ump_request_slicer")){var J=this.queue;J.T.push({videoId:t,bB:p,formatId:k,isEncrypted:!1,N0:!0});J.Y||G6(J)}else this.KT.HV(t,p,k)}; g.E.n3=function(k){this.KT.n3(k)}; g.E.UL=function(k,p){var t=this,J,q,F,d,S,U,f,b,N,y;return g.Q(function(Y){switch(Y.T){case 1:t.KT.UL();J=k.xN();if(!p){F=J;Y.oY(2);break}return g.n(Y,yF9(t.KT,J,t.iv),3);case 3:F=Y.Y;case 2:q=F;if(!t.KT.enableCompression){Y.oY(4);break}S=(d=performance)==null?void 0:d.now();return g.n(Y,Ol6(q),5);case 5:q=Y.Y,t.KT.yT("decompression",{ds:"DecompressionStream"in window,rt:((U=performance)==null?NaN:U.now())-S});case 4:try{f=Xy(q,fMu)}catch(T){return b=T instanceof Error?{name:T.name,message:T.message}: {},b.webcrypto=""+ +!!TX(),b.enc=""+ +t.N,N=new AD("onesie.response.parse",b),Y.return(Promise.reject(N))}kIS(f);y=g.VV(f.body);return Y.return(y)}})}; g.E.dJ=function(k){this.D("html5_consume_onesie_next_request_policy_for_sabr")&&(k=Xy(k,cAM),this.KT.dJ(k))}; g.E.mp=function(k){k={rN:Pd(new LQ(k),1,PLT)};this.KT.mp(k)}; g.E.yM=function(k){this.KT.yM(k)}; g.E.qR=function(k){return this.KT.qR(k)}; g.E.D=function(k){return this.KT.D(k)};g.r(ul,g.R);g.E=ul.prototype;g.E.Ob=function(){return""}; g.E.cY=function(k){var p,t;return((t=(p=this.PQ)==null?void 0:p.get(k))==null?void 0:t.cY())||[]}; g.E.gO=function(k,p){var t;return!((t=PD(this,p))==null||!t.gO(k))}; g.E.gx=function(k,p){var t;return((t=PD(this,p))==null?void 0:t.gx(k))||[]}; g.E.Sw=function(k,p){var t;return((t=PD(this,p))==null?void 0:t.Sw(k))||[]}; g.E.cH=function(k){this.state=k;this.notifySubscribers()}; g.E.EH=function(){return!1}; g.E.xK=function(){return!1}; g.E.KN=function(){}; g.E.yM=function(k){this.Tb.yM(k)}; g.E.qR=function(k){return this.Tb.qR(k)}; g.E.xT=function(k,p,t,J){t||this.Tq.xT(J);return!1}; g.E.W4=function(k,p){this.iL.W4(k,p)}; g.E.xl=function(){this.yM("orfb");this.c$=!0;if(YKi(this)&&this.xhr){var k={rc:this.xhr.status,lb:this.xhr.Z6(),rt:(1E3*pEi(this.Tq)).toFixed(),shost:g.Iq(this.gg),trigger:"o1"};this.yT("pathprobe",CC(k))}}; g.E.UL=function(){this.yM("opr_r");this.O5=!0}; g.E.X6=function(k,p,t,J){if(this.PQ){if(!this.PQ.has(k)){var q=new ZI(this);this.PQ.set(k,q);g.z(this,q)}var F;(F=this.PQ.get(k))==null||F.X6(p,t,J);ll(this);t||(this.FS=J.On,this.vO=J.startMs)}else ll(this)}; g.E.mR=function(k){this.Q3=k;k.rM!=null&&this.Tb.Q9(k.rM)}; g.E.nW=function(k){this.gX=k}; g.E.dJ=function(k){k.videoId&&this.U4.set(k.videoId,k)}; g.E.tA=function(){if(this.PQ)for(var k=g.Z(this.PQ.keys()),p=k.next();!p.done;p=k.next()){var t=void 0;(t=this.PQ.get(p.value))==null||t.Rp()}}; g.E.zL=function(k){this.B6=k}; g.E.mp=function(k){if(k==null?0:k.rN)if(k=k.rN.SA){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())p=p.value,p.videoId&&this.Xm.set(p.videoId,p)}}; g.E.yT=function(k,p,t){this.Tb.yT(k,p,t===void 0?!1:t)}; g.E.HV=function(k,p,t){var J;(J=PD(this,k))==null||J.HV(p,t)}; g.E.n3=function(k){this.Iw.set(k.videoId,k)}; g.E.fetch=function(){var k=this,p,t,J,q,F,d,S,U,f,b,N,y,Y,T,A,V,D,v,w,X,B;return g.Q(function(O){switch(O.T){case 1:k.logger.debug("Onesie fetch started.");k.G2?k.Zq.start():k.A8.start();k.yM("or_i");p=k.ih.experiments.Gb("html5_onesie_verbose_timing");t={};J=(0,g.V9)();q=function(l){p&&(t[l]=(0,g.V9)()-J)}; q("loc_s");if(F=Foq(k.videoData,k.bK)){O.oY(2);break}q("loc_async");d=g.dU(k.ih.experiments,"html5_onesie_redirector_timeout_ms");return g.n(O,$2w(k.videoData,k.bK,d),3);case 3:F=O.Y;case 2:if(!F)return k.logger.info("Onesie URL creation failed."),S={url:"0"},U=new AD("onesie.unavailable.hotconfig",S),k.iy(U),O.return(k.CF);k.JJ=TY(F);q("loc_e");f=g.xH(k.ih,g.eJ(k.videoData));b=!!f.T;if(!b){N=f.getValue();O.oY(4);break}return g.n(O,f.T,5);case 5:N=O.Y;case 4:y=N;k.D("html5_log_onesie_empty_oauth")&& !y&&k.yT("no_token",{async:b});q("oauth");Y=ELe(k.playerRequest,k.ih,k.videoData,y,qe(k.JJ));g.Aw(O,6);if(!Nnw(k,Y)){q("or_s_sync");k.AJ=U2_(Y,k.td,k.ih,k.Tb,k.yz.onesieUstreamerConfig,(T=k.videoData.y0)==null?void 0:T.eF);O.oY(8);break}q("or_s_async");return g.n(O,bqM(Y,k.td,k.ih,k.Tb,k.yz.onesieUstreamerConfig,(A=k.videoData.y0)==null?void 0:A.eF),9);case 9:k.AJ=O.Y;case 8:g.Vi(O,7);break;case 6:return V=g.W9(O),k.logger.info("Failed to create OnesieRequestProto."),k.iy(V),O.return(k.CF);case 7:return q("or_e"), p&&k.yT("oreqvt",t),k.enableCompression=k.AJ.Uw.Qz,k.yM("osor"),D=K2M(),v=g.gK(k.AJ,lJh),w={method:"POST",body:v,headers:{"Content-Type":"text/plain",Referer:location.origin}},X=k.D("html5_onesie_media_capabilities"),d2e(F,k.videoData,rFS(k),X),k.logger.debug("Starting Onesie network request."),k.Gd&&k.yT("ombrs","1"),B=k.Tb.G().schedule,k.Tq=new Ml(k,{gS:B,DZ:k.Gd,eS:function(l,oi){k.Tb.lW(l,oi)}, Ih:!0}),F.set("rn",""+k.Tq.requestNumber),k.gg=F.b1(),a6(k.Tq,k.gg),k.yM("or_p"),k.xhr=HI(new Et(F),D,k.Tq,u_,w),k.dw.start(),O.return(k.CF)}})}; g.E.CA=function(){return 2}; g.E.ZL=function(){this.yM("orh_r")}; g.E.RW=function(){!this.c$&&this.xhr.Z6()&&this.xl();if(this.w5&&!this.G2){var k;(k=this.Ej)==null||k.start()}this.wx()}; g.E.jF=function(k){k=k===void 0?!1:k;this.logger.debug("onXhrDone");this.wx();if(!(this.MO()||this.state>=4)){var p=gM(this),t=this.xhr;p.rc=t.status;k&&(p.ab=!0);if(t.C$()){var J="onesie.net";p.msg=t.C$()}else t.status>=400?J="onesie.net.badstatus":t.NN()?this.O5||(J="onesie.response.noplayerresponse"):J=t.status===204?"onesie.net.nocontent":"onesie.net.connect";J?this.iy(new AD(J,p)):(this.yM("or_fs"),this.Tq.Ld((0,g.V9)(),t.Z6(),0),this.cH(4),this.Gd&&this.yT("rqs",p));this.Gd&&this.yT("ombre", "ok."+ +!J);this.h8=!1;ll(this);tai(this.iL);if(!this.G2){this.A8.stop();var q;(q=this.Ej)==null||q.stop()}var F;if(k=(F=this.bK)==null?void 0:zeq(F))for(F=0;F<k.length;F++)this.yT("pathprobe",k[F])}}; g.E.yq=function(){if(this.playerResponse&&this.xhr&&this.PQ)for(var k=g.Z(this.PQ.entries()),p=k.next();!p.done;p=k.next())if(p=g.Z(p.value),p.next(),p.next().value.Y){this.xhr.abort();this.jF(!0);break}}; g.E.G=function(){return this.ih}; g.E.D=function(k){return this.ih.D(k)}; g.E.SQh=function(){if(YKi(this)&&this.bK&&(!this.c$||this.D("html5_onesie_probe_ec_hosts"))){var k=this.bK;if(k.ih.experiments.Gb("html5_onesie_probe_ec_hosts")){var p,t=(p=k.T.get(3))==null?void 0:TY(p.location);t&&wM(k,t,"osc",this);var J;(t=(J=k.T.get(4))==null?void 0:TY(J.location))&&wM(k,t,"ocy",this)}else{var q;(J=(q=k.T.get(1))==null?void 0:TY(q.location))&&wM(k,J,"o2",this);(J=(t=k.T.get(2))==null?void 0:TY(t.location))&&wM(k,J,"o3",this)}}}; g.E.e2=function(){if(!this.MO()&&!this.isComplete()){if(this.w5){if((0,g.V9)()-this.Tq.Z>1E3){var k;(k=this.Tq)==null||k.IC((0,g.V9)());k=gM(this);if(this.ih.DB()&&this.xhr instanceof O6){var p=this.xhr;k.xrs=p.xhr.readyState;k.xpb=p.T.getLength();k.xdc=p.C}this.iy(new AD("net.timeout",k))}}else(0,g.V9)()-this.Tq.T>1E4&&((p=this.Tq)==null||p.IC((0,g.V9)()),this.nN());this.isComplete()||this.Zq.start()}}; g.E.nN=function(){this.logger.info("Onesie request timed out");this.h8=!1;if(!ll(this)){var k=gM(this);k.timeout="1";this.iy(new AD("onesie.request",k))}}; g.E.iy=function(k){var p=this;k=Vs(k);this.w5?this.Tb.Vn(k):(this.CF.reject(k),this.w5=!0);tai(this.iL);this.G2||this.A8.stop();this.yM("or_fe");var t,J;(t=this.bK)==null||(J=zeq(t))==null||J.forEach(function(q){p.yT("pathprobe",q)}); this.cH(5);this.dispose()}; g.E.isComplete=function(){return this.state>=3}; g.E.rB=function(){return this.state===4}; g.E.eJ=function(k){var p,t;return this.isComplete()||!!((p=this.PQ)==null?0:(t=p.get(k))==null?0:t.T)}; g.E.iP=function(){return!1}; g.E.kd=function(){return this.state===5}; g.E.notifySubscribers=function(k){for(var p=0;p<this.Mt.length;p++)k&&this.Mt[p].nZ()!==k||xq(this.Mt[p],this)}; g.E.Bq=function(){var k,p;return((k=this.AJ)==null?void 0:(p=k.eY)==null?void 0:p.OI)||0}; g.E.Ap=function(){this.playerResponse="";var k;(k=this.xhr)==null||k.abort();tai(this.iL);this.sU.dispose();var p;(p=this.Ej)==null||p.dispose();this.cH(-1);this.Mt=[];g.R.prototype.Ap.call(this)}; g.E.wx=function(){try{var k=this.xhr;k.Z6()>102400&&!this.aK&&(this.yM("or100k"),this.aK=!0);if(k.vn()){var p=k.IX(),t=p.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+t}); this.Gd&&this.yT("ombrss","len."+t);this.sU.feed(p)}if(this.PQ)for(var J=g.Z(this.PQ.keys()),q=J.next();!q.done;q=J.next()){var F=q.value;k=void 0;(k=this.PQ.get(F))==null||k.Rp();this.notifySubscribers(F)}}catch(d){this.iy(d)}}; g.E.Wh=function(){return this.Tq.requestNumber}; g.E.Nf=function(k){return this.Iw.get(k)}; g.E.Ub=function(){return{FS:this.FS,vO:this.vO,isDecorated:!1}};g.r(CbS,g.R);g.E=CbS.prototype;g.E.hY=function(k,p){this.Y8=void 0;zc6(this);XxS(this,k,p)}; g.E.AL=function(k){if(this.T.length===0)return!1;var p=this.T[0];return p instanceof ul?k===this.Ey.getCurrentTime()*1E3:!(p instanceof sd&&srh(p.info))&&Math.abs(p.Bq()-k)<50}; g.E.dJ=function(k){this.Y=k;this.Y8=(0,g.V9)()+(k.backoffTimeMs||0)}; g.E.Ti=function(k,p){if(k.action===void 0){var t=this.Tb.h7();t!==void 0&&this.Ey.oT(t)}else if(k.action!==0||!this.IY)switch(k.action===0&&this.policy.z8&&(k.action=2),t={},t.reason=k.p3h,t.action=k.action,t.rn=p,k.action){case 1:this.policy.X&&this.C&&this.C.Lt(void 0,void 0,t);break;case 0:this.IY=!0;this.videoData.u1()&&this.policy.X&&this.C&&this.C.Lt(void 0,void 0,t,!1);this.Ey.NU(t);break;case 2:this.Ey.handleError("sabr.config",t,1);break;case 5:Ucw(this.Tb,!0);break;case 6:Ucw(this.Tb,!1); break;case 3:this.policy.aO&&((k=this.lh.B)!=null&&(k.B=!0),this.Ey.handleError("sabr.hostfallback",t))}}; g.E.iJ=function(k,p,t,J){if(this.policy.Y){this.Ey.yT("ssap",{rn:J,v:p,tl:hcL(k)});var q=this.Ey.dI();k={Om:k,context:t,version:p};Rcw(this,t);q?Bnh(this,q,k):(this.Ey.yT("ssap",{cacheclips:1,rn:J,v:p}),this.B=k)}}; g.E.UC=function(k){this.Ey.yT("ssap",{onsbrctxt:k.type,dflt:k.sendByDefault});Rcw(this,k);this.Tb.UC(k)}; g.E.LC=function(){}; g.E.zL=function(k){if(k.iH!==void 0&&k.rL){var p=k.iH/k.rL;this.audioTrack.Z=!1;this.videoTrack.Z=!1;if(this.policy.Y8||this.policy.eb||this.policy.I7)this.Ey.BQ.Y=!1;this.Ey.pK(p,1);if(this.Tb.getCurrentTime()!==p){var t={XR:"sabr_seek",Nx:!0,n9:!0};k.seekSource&&(t.seekSource=k.seekSource);BI(this.Ey,p+.1,t)}}}; g.E.onSnackbarMessage=function(k){this.Tb.publish("onSnackbarMessage",k)}; g.E.mR=function(k){k.Bg&&k.bZ&&Z9(this.lh,k.Bg,k.bZ);this.policy.vt&&(k.dB&&k.zj&&(this.lh.LA=k.dB/k.zj),k.fv&&k.DE&&(this.lh.N_=k.fv/k.DE));k.rM!=null&&this.Tb.Q9(k.rM);this.policy.xY&&k.m1&&(k=((0,g.V9)()-k.m1)/1E3,this.Ey.XY.zk(1,k))}; g.E.fR=function(k){this.Ey.fR(k)}; g.E.A$=function(k){return this.Rt.has(k)}; g.E.iW=function(k,p,t){this.policy.N&&this.Ey.yT("sabrctxtplc",{start:k?k.join("_"):"",stop:p?p.join("_"):"",discard:t?t.join("_"):""});if(k){k=g.Z(k);for(var J=k.next();!J.done;J=k.next())this.Rt.add(J.value)}if(p)for(p=g.Z(p),k=p.next();!k.done;k=p.next())k=k.value,this.Rt.has(k)&&this.Rt.delete(k);if(t)for(t=g.Z(t),p=t.next();!p.done;p=t.next())p=p.value,this.videoData.sabrContextUpdates.has(p)&&(this.videoData.sabrContextUpdates.delete(p),p===3&&(this.videoData.pP=""))}; g.E.g2=function(){}; g.E.sW=function(k){this.S=k}; g.E.i$=function(k){this.qO=k}; g.E.yY=function(k,p){hP(this.policy,k,4,p)}; g.E.mp=function(k){if(k==null?0:k.rN)if(k=k.rN.SA){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())if(p=p.value,p.formatId){var t=this.lh.N.get(ZC(p.formatId));t&&t.info&&(t.info.debugInfo=p.debugInfo)}}}; g.E.J$=function(k){(k=k==null?void 0:k.reloadPlaybackParams)&&this.Tb.publish("reloadplayer",k)}; g.E.nZ=function(){return this.Tb.nZ()||""}; g.E.z_=function(){var k=vb(this.audioTrack,!0)*1E3,p=vb(this.videoTrack,!0)*1E3;return Math.min(k,p)}; g.E.TA=function(k,p){this.Ey.yT(k,p)}; g.E.g8=function(k){S5h(this.Ey,XkL(this.k8,k))}; g.E.Ap=function(){g.R.prototype.Ap.call(this);this.Y=void 0;XxS(this,!0,"i");this.T=[]};Ma0.prototype.SV=function(k,p){if(this.C)return Oqq(this,p);if(p=zA(k)){var t=p.Y;t&&t.N&&t.T&&(k=k.N.length?k.N[0]:null)&&k.state>=2&&!k.kd()&&k.info.PN===0&&(this.C=k,this.Z=t,this.Y=p.info,this.S=this.startTimeSecs=Date.now()/1E3,this.X=this.Y.startTime)}return NaN}; Ma0.prototype.clear=function(){this.Y=this.Z=this.C=null;this.T=this.X=this.S=this.startTimeSecs=NaN;this.N=!1};g.r(g.JX,g.R);g.E=g.JX.prototype;g.E.initialize=function(k,p,t){this.logger.debug(function(){return"Initialized, t="+k}); k=k||0;this.policy.T||(p=BjM(this.T),by9(this.Tb,new XJ(p.video,p.reason)),this.Tb.aV(new XJ(p.audio,p.reason)));this.lh.isManifestless&&Spi(this.X);this.Z&&uph(this.Z,this.videoTrack.T);p=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var J=!this.lh.isManifestless;this.policy.dc&&(J=J||this.lh.FA);this.policy.j6||(this.currentTime=J?k:p);this.policy.Y8&&this.seek(this.getCurrentTime(),{}).pU(function(){}); if(this.policy.T){var q;((q=this.gy)==null?0:Zqj(q,this.nZ()||""))&&peM(this)&&klL(this,this.videoTrack)&&klL(this,this.audioTrack)&&(eci(this.N,this.gy),this.policy.S&&x20(this))}else this.Y8&&(tJj(this,this.videoTrack),tJj(this,this.audioTrack),xBe(this.Y8),delete this.Y8);t?(this.policy.gp?(this.Fd=t,qb(this,t)):qb(this,!1),g.Oc(this.NF)):(t=this.getCurrentTime()===0,lm(this.X,this.videoTrack,this.videoTrack.T,t),lm(this.X,this.audioTrack,this.audioTrack.T,t),this.policy.T&&Vaq(this.N,!0),this.policy.Y8|| this.seek(this.getCurrentTime(),{}).pU(function(){}),this.timing.tick("gv")); (this.lh.P3||this.lh.Pj||this.lh.qO||this.lh.aO||this.lh.jW)&&this.Tb.bW(this.lh)}; g.E.resume=function(){if(this.isSuspended||this.AY){this.logger.debug("Resumed.");this.b9=this.AY=this.isSuspended=!1;try{this.SV()}catch(k){g.nV(k)}}}; g.E.vW=function(){return!this.policy.Fd}; g.E.Jk=function(k,p){k=k===void 0?!1:k;p=p===void 0?!1:p;this.logger.debug("detaching media source");Fmj(this);this.Tb.Uk()&&(this.S=NaN);k?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Oy&&this.yT("loader",{setsmb:1}),this.policy.P0=!0,this.Jt()):(this.policy.gp?qb(this,this.Fd):qb(this,!1),p||this.Jt())}; g.E.setAudioTrack=function(k,p,t){t=t===void 0?!1:t;if(!this.MO()){var J=!isNaN(p);t&&J&&(this.audioTrack.Y8=Date.now(),this.policy.fZ&&(this.v0=!0));if(this.policy.T){var q=this.Y.BK(k.id,J);this.logger.debug(function(){return"Logging new audio format: "+q.T.info.id}); this.Tb.aV(q)}else{var F=ICe(this.T,k.id,J);this.logger.debug(function(){return"Logging new audio format: "+F.audio.info.id}); this.Tb.aV(new XJ(F.audio,F.reason))}if(J&&(t=this.audioTrack.T.index.cN(p),this.yT("setAudio",{id:k.id,cmt:p,sq:t}),t>=0)){this.policy.T&&(this.Y.B=!0,this.hY(!0,"mosaic"));cb(this.audioTrack,t,NaN,NaN);!this.policy.Xn&&this.lh.isLive&&ri(this.lh,t,!1);return}this.Tb.MQ()}}; g.E.setPlaybackRate=function(k){k!==this.L.getPlaybackRate()&&this.L.setPlaybackRate(k)}; g.E.T2=function(k){var p=this.N.S;this.N.sW(k);this.yT("scfidc",{curr:ZC(p),"new":ZC(k)});k&&ZC(k)!==ZC(p)&&(this.hY(!1,"caption change"),this.SV())}; g.E.L1=function(k){this.N.i$(k)}; g.E.HP=function(k){var p=k.T.info.B3();this.logger.debug(function(){return"New "+(p?"audio":"video")+" format from SABR: "+xg(k.T.info)}); p?this.Tb.aV(k):by9(this.Tb,k)}; g.E.g8=function(k){vk(k.aY[k.aY.length-1])&&S5h(this,XkL(this.T,k.aY[0].T))}; g.E.qa=function(){return this.Tb.qa()}; g.E.AI=function(){return this.Tb.AI()}; g.E.fR=function(k){this.Tb.G().DB()&&this.yT("sps",{status:k.uX||""});if(k.uX===1)this.Tb.videoData.Vs=0;else if(k.uX===2||k.uX===3){var p=!1;if(k.uX===3){p=this.Tb.dZ();var t;this.yn=(t=k.gCp)!=null?t:Infinity;this.Tb.videoData.Vs=p+1;(p=Hb(this))&&this.Q8(!0)}this.Tb.Uv(!0,p)}}; g.E.Qy=function(){return this.Tb.Qy()}; g.E.XS=function(){return this.Tb.XS()}; g.E.Tm=function(k){this.Tb.Tm(k)}; g.E.Vy6=function(){var k,p=(k=this.Tb.QM())==null?void 0:k.getCurrentTime();p?this.Tb.yT("rms",{cta:p}):g.Oc(this.aO)}; g.E.SV=function(){EuS(this);if(this.Dr&&RU(this.Dr)&&!this.Dr.fU()&&(!this.policy.j6||isFinite(this.getCurrentTime()))){var k=rV(this.videoTrack);k=this.policy.rh&&k&&k.ZM();this.lh.isManifestless&&this.lh.C&&NY(this.lh)?(this.S=NY(this.lh),this.Dr.gP(this.S)):CR(this.lh)&&!k?isNaN(this.S)?(this.S=this.getCurrentTime()+3600,this.Dr.gP(this.S)):this.S<=this.getCurrentTime()+1800&&(this.S=Math.max(this.S+1800,this.getCurrentTime()+3600),this.Dr.gP(this.S)):this.Dr.isView||(k=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==k)&&k>0&&(this.Dr.gP(k),this.S=k))}if(!this.MO())if(b_(this.lh)&&this.lh.kd()){var p=this.lh;this.handleError("manifest.net.retryexhausted",p.v0?{rc:p.Zb}:{rc:p.Zb.toString()},1)}else if(this.policy.T)a:{try{PbM(this.N);this.lh.isManifestless&&this.policy.S&&XE(this.BQ);if(q5u(this)&&this.Dr&&!e6(this.Dr)&&this.videoTrack.RY&&this.audioTrack.RY){this.yT("ssap",{delaysb:1,v:this.videoTrack.T.info.id,vf:this.videoTrack.T.info.H0,a:this.audioTrack.T.info.id, af:this.audioTrack.T.info.H0});var t=this.Dr,J=this.videoTrack.T,q=this.audioTrack.T;!e6(t)&&q&&J&&(nM0(t,J.info,q.info,this.policy.lm),$Cw(this,t))}var F;((F=this.Dr)==null?0:e6(F))&&this.z0();this.policy.T||oy(this);Vaq(this.N)}catch(S){g.wt(S);p=S;if(p.message.includes("changeType")){this.yT("ssap",{exp:p.name,msg:p.message,s:p.stack});break a}this.handleError("fmt.unplayable",{exp:p.name,msg:p.message,s:p.stack},1)}weM(this);g.Oc(this.W0)}else if(!this.lh.Y||!zZi(this.videoTrack)&&!zZi(this.audioTrack)|| (this.videoTrack.X||this.audioTrack.X)&&this.policy.ez?t=!1:(this.Jt(),this.Tb.seekTo(Infinity,{XR:"checkLoaderTracksSync",pK:!0}),t=!0),!t){EuS(this);this.lh.isManifestless&&(eZS(this.videoTrack),eZS(this.audioTrack),XE(this.BQ),(t=zA(this.videoTrack))&&t.Y&&(t=t.Y.N&&!this.policy.qB,this.yT(t===this.policy.B.QN?"strm":"strmbug",{strm:t,sfmp4:this.policy.B.QN,dfs:this.policy.qB},!0)));if(this.Dr)this.z0();else if(this.policy.C){var d;t=!1;if(this.policy.nk)for(J=g.Z([this.videoTrack,this.audioTrack]), q=J.next();!q.done;q=J.next()){F=q.value;for(q=zA(F);q&&F.Fq()!==rV(F);q=zA(F))F.aW(q);t=t||!!q}else(p=zA(this.videoTrack))&&this.videoTrack.aW(p),(d=zA(this.audioTrack))&&this.audioTrack.aW(d);Wb(this.videoTrack)&&Wb(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(p||d||t)&&HD(this)}oy(this);lm(this.X,this.videoTrack,this.videoTrack.T,!1);lm(this.X,this.audioTrack,this.audioTrack.T,!1);this.policy.U8||faw(this,this.videoTrack,this.audioTrack);oH9(this.X,this.videoTrack, this.audioTrack);oH9(this.X,this.audioTrack,this.videoTrack);weM(this);this.Z&&(p=this.Z,p.C?(d=p.S+p.policy.Pt,p.N||(d=Math.min(d,p.startTimeSecs+p.policy.M_)),p=Math.max(0,d*1E3-Date.now())):p=NaN,isNaN(p)||g.Oc(this.jW,p));g.Oc(this.W0)}}; g.E.NU=function(k){this.Tb.NU(k)}; g.E.z0=function(){var k=this;if(this.Dr){var p=this.Dr.T,t=this.Dr.Y;Iah(this,this.audioTrack);Iah(this,this.videoTrack);var J=yxe(this);if(J){if(this.policy.SY){if(!p.ZA()){var q=zA(this.audioTrack);if(q){if(!tX(this,this.audioTrack,p,q.info))return;rxh(this,this.audioTrack,p,q)}}if(!t.ZA()&&(q=zA(this.videoTrack))){if(!tX(this,this.videoTrack,t,q.info))return;rxh(this,this.videoTrack,t,q)}}this.Jf||(this.Jf=(0,g.V9)(),this.logger.debug(function(){return"Appends pause start "+k.Jf+" reason "+J}), this.policy.N&&this.yT("apdps",{r:J}))}else if(this.Jf&&(NS6(this,this.Jf),this.Jf=0),Y59(this),q=!1,this.policy.Y&&Xc(this.videoTrack)||!VJ_(this,this.videoTrack,t)||(q=!0,b5S(this.timing),Tji(this.timing)),this.Dr&&!this.Dr.TH()&&(this.policy.Y&&Xc(this.audioTrack)||!VJ_(this,this.audioTrack,p)||(q=!0,NjS(this.timing),r_i(this.timing)),!this.MO()&&this.Dr)){if(!this.policy.Fd&&Wb(this.videoTrack)&&Wb(this.audioTrack)&&RU(this.Dr)&&!this.Dr.fU()){t=!1; t=rV(this.audioTrack);if(this.policy.Y){var F;p=(F=this.yF)==null?void 0:cI(F,t.M2*1E3);t=!(!p||p.clipId!==t.clipId);this.yT("ssap",{eos:t})}else F=t.T,t=F===this.lh.T[F.info.id];t&&(this.logger.debug("Setting EOS"),wA_(this.Dr),KRi(this.schedule))}q&&!this.Dr.isAsync()&&HD(this)}}}; g.E.B7=function(k){var p,t=k===((p=this.Dr)==null?void 0:p.T)?this.audioTrack:this.videoTrack,J;(J=t.j6)==null||J.stop();var q;if((q=zA(t))==null?0:q.isLocked){if(this.Tb.G().DB()){var F;this.yT("eosl",{ounlock:(F=zA(t))==null?void 0:F.info.Aj()})}var d;cx6(this,k===((d=this.Dr)==null?void 0:d.T))}var S;if(this.policy.fZ&&k===((S=this.Dr)==null?void 0:S.T)&&this.B0){p=this.B0-this.getCurrentTime();var U;this.Tb.yT("asl",{l:p,xtag:(U=rV(this.audioTrack))==null?void 0:U.T.info.T});this.v0=!1;this.B0= 0}k.Bh()&&k.Dl().length===0&&(k.Iz(),this.Dr&&!this.Dr.Bh()&&(this.Tb.G().DB()&&this.Tb.yT("rms",{ld:"seek"}),this.Dr.S=performance.now(),this.Tb.l8(),this.Tb.G().DB()&&g.Oc(this.aO)));var f;(f=t.L)!=null&&KN(f,0);this.policy.Jp&&this.policy.k0&&this.Dr&&(t=k.Re())&&t.ZM()&&!JN(k.Dl(),Math.min(t.M2+F9,t.m_))&&this.yT("sbunb",{st:t.M2,et:t.m_});this.policy.jW?Ou(this):this.SV()}; g.E.dWh=function(k){if(this.Dr){var p=rV(k===this.Dr.T?this.audioTrack:this.videoTrack);if(k=k.CN())for(var t=0;t<k.length;t++)this.yT("appendedbuffer",{i:t,b:g.Zn(k[t].subarray(0,4096),3)});k=void 0;p&&(k=wj(p),this.policy.Y&&this.yF&&this.yF.ZC()&&(k.ccid=this.yF.ZC()));this.handleError("fmt.unplayable",k,1)}}; g.E.RT=function(k){this.Tb.RT(k)}; g.E.aC=function(k,p,t){if(this.lh.isManifestless&&(k=!!k.info.video,ssi(this,p,t,k,!0),this.policy.UQ)){k=k?this.videoTrack:this.audioTrack;k.gy.push({FS:p.x8,KcG:t});k.gy.length>5&&k.gy.shift();p=p.x8;var J;this.policy.UQ&&((J=this.Tb.getVideoData())==null?0:J.enableServerStitchedDai)&&(J=js9(this.audioTrack,p),t=js9(this.videoTrack,p),J!==0&&t!==0&&J!==t&&this.handleError("ssdai.avsync",{sq:p,a:J,v:t},0))}}; g.E.Vw=function(k,p,t,J){k.info.video&&this.C.Vw(p,t,J)}; g.E.dM=function(k){this.T.dM(k)}; g.E.Vt=tw(19);g.E.nP=function(k){this.yF=k;var p;(p=this.audioTrack.B)!=null&&(p.Dx=k);(p=this.videoTrack.B)!=null&&(p.Dx=k);p=this.N;p.B&&(p.Ey.yT("ssap",{addcacheclips:1,v:p.B.version,tl:hcL(p.B.Om)}),Bnh(p,k,p.B),p.B=void 0)}; g.E.dI=function(){return this.yF}; g.E.sT=function(){return this.videoTrack.Z||this.audioTrack.Z}; g.E.seek=function(k,p){if(this.MO())return rv();if(this.sT())return rv("seeking to head");if(this.policy.Y8&&!isFinite(k))return ME0(this.BQ),g.Tq(Infinity);EuS(this);this.ew=(0,g.V9)();this.policy.T||oy(this,k);this.Dr&&this.Dr.T&&this.Dr.Y&&!this.Tb.getVideoData().dR&&(this.Dr.T.isLocked()||this.Dr.Y.isLocked())&&this.Tb.MQ({reattachOnLockedBuffer:1,vsb:""+this.Dr.Y.isLocked(),asb:""+this.Dr.T.isLocked()});var t=this.getCurrentTime(),J=this.BQ.seek(k,p);this.policy.j6||(this.currentTime=J);G_(this.C, k,t,this.policy.BF&&!p.Nx);HD(this);return g.Tq(J)}; g.E.AL=function(k){return this.policy.T&&this.N.AL(k)}; g.E.A$=function(k){return this.N.A$(k)}; g.E.hY=function(k,p){this.N.hY(k,p)}; g.E.getCurrentTime=function(){if(this.policy.j6){var k=this.Yx()||0;return this.Tb.getCurrentTime()-k}return this.currentTime}; g.E.dY=function(){return this.audioTrack.T.info}; g.E.Hb=function(){return this.videoTrack.T.info}; g.E.Fc=function(){return this.audioTrack.T.info.H0}; g.E.qE=function(){return this.videoTrack.T.info.H0}; g.E.Ap=function(){try{this.Jk(),Qm(this.audioTrack),Qm(this.videoTrack),GZ(this.audioTrack),GZ(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.R.prototype.Ap.call(this)}catch(k){g.nV(k)}}; g.E.handleError=function(k,p,t){t=t===void 0?0:t;var J=mO(t);k==="fmt.unplayable"&&this.lh.isLive&&(this.policy.SY=!1,Tj(this.lh));p=new AD(k,p,t);g.O0(this);CC(p.details);this.Tb.handleError(p);k!=="html5.invalidstate"&&p.errorCode!=="fmt.unplayable"&&k!=="fmt.unparseable"&&J&&this.dispose()}; g.E.pE=function(){var k=rV(this.audioTrack),p=rV(this.videoTrack);k={lct:this.getCurrentTime().toFixed(3),lsk:this.BQ.isSeeking(),lmf:this.T.T.isLocked(),lbw:YH(this.schedule).toFixed(3),lhd:Nu(this.schedule).toFixed(3),lst:((this.schedule.Z.L$()||0)*1E9).toFixed(3),laa:k?k.Aj():"",lva:p?p.Aj():"",lar:this.audioTrack.Y?this.audioTrack.Y.Aj():"",lvr:this.videoTrack.Y?this.videoTrack.Y.Aj():"",laq:""+DF(this.audioTrack),lvq:""+DF(this.videoTrack)};this.Dr&&!this.Dr.TH()&&this.Dr.T&&this.Dr.Y&&(k.lab= pr(this.Dr.T.Dl()),k.lvb=pr(this.Dr.Y.Dl()));this.Jf&&(k.lapt=((0,g.V9)()-this.Jf).toFixed(0),k.lapr=yxe(this));this.j6&&(k.lapmabht=((0,g.V9)()-this.j6).toFixed(0),k.lapmabh=GA(this,this.audioTrack).toFixed(0));this.qO&&(k.lapmvbht=((0,g.V9)()-this.qO).toFixed(0),k.lapmvbh=GA(this,this.videoTrack).toFixed(0));this.Oy&&(k.lapsdai=((0,g.V9)()-this.Oy).toFixed(0));return k}; g.E.Jt=function(){try{this.policy.T&&this.N.hY(!1,"pending"),this.audioTrack.Jt(),this.videoTrack.Jt()}catch(k){g.nV(k)}this.policy.C=""}; g.E.h4=function(){return Vm(this.L)}; g.E.yT=function(k,p,t){this.Tb.yT(k,p,t===void 0?!1:t)}; g.E.nZ=function(){return this.Tb.nZ()}; g.E.pK=function(k,p){k/=p;isNaN(this.timestampOffset)&&Xei(this,k-Math.min(k,this.policy.Z4));return(k-this.timestampOffset)*p}; g.E.Yx=function(){return this.timestampOffset}; g.E.isSeeking=function(){return this.BQ.isSeeking()}; g.E.Gu=function(){this.C.Gu()}; g.E.Z1=function(k,p,t){p=p===void 0?!1:p;t=t===void 0?{}:t;this.policy.T?this.Y.Z1(k,p,t):this.T.Z1(k,p,t)}; g.E.w2=function(k,p){if(!this.B)return!1;var t=this.videoTrack.T.index.cN(k);return this.B.w2(k,p,t)}; g.E.mK=function(k,p){if(this.B&&this.C.mK(k,this.B))return Xei(this,this.timestampOffset-p),HD(this),this.policy.X&&(Tj(this.lh),GZ(this.audioTrack),GZ(this.videoTrack),this.Jt()),!0;p=this.videoTrack.T.index.cN(k);this.handleError("ad.skipfailed",{dec:!!this.B,t:k.toFixed(3),sq:p});return!1}; g.E.getManifest=function(){return this.lh}; g.E.isOffline=function(){return!!this.Tb.getVideoData().cotn}; g.E.lW=function(k,p){this.Tb.lW(k,p)}; g.E.tb=function(k){if(this.policy.mu)this.policy.T&&this.N.hY(!0,"utc"),this.SV();else{var p=this.Tb.getVideoData().Oe;if(p){var t=this.X;t.DO=k;t.Oe=p;xN(this)}}}; g.E.oT=function(k){this.videoTrack.Z=!1;this.audioTrack.Z=!1;this.BQ.Y=!1;this.Tb.oT(k)}; g.E.QR=function(k){this.BQ.QR(k-this.Yx())}; g.E.lC=function(){this.Tb.lC()}; g.E.Q8=function(k){k!==this.policy.Jn&&((this.policy.Jn=k)||this.SV())}; g.E.f1=function(k,p){var t=this.audioTrack.bG,J=this.videoTrack.bG;t&&J&&(t.remove(k,p),J.remove(k,p))}; g.E.MQ=function(k){this.Tb.MQ(k)}; g.E.xn=function(k){this.Tb.xn(k)}; g.E.dZ=function(){return this.Tb.dZ()};g.E=g.$A.prototype;g.E.E3=function(k,p,t,J,q,F){return this.Dx.E3(k,p,t,J,q,F)}; g.E.Qp=function(k,p,t,J,q,F){return this.Dx.Qp(k,p,t,J,q,F)}; g.E.jJ=function(k){return this.Dx.jJ(k)}; g.E.SR=function(k){this.Dx.SR(k)}; g.E.Lt=function(k,p,t,J){return this.Dx.Lt(k,p,t,J)}; g.E.Gu=function(){this.Dx.Gu()}; g.E.w2=function(k,p,t){return this.Dx.w2(k,p,t)}; g.E.UH=function(k,p){this.Dx.UH(k,p)}; g.E.zm=function(){this.Dx.zm()}; g.E.SI=tw(47);g.E.mx=function(k,p,t){this.Dx.mx(k,p,t)}; g.E.AR=tw(50);g.E.JS=function(k,p,t,J,q,F,d,S,U){this.Dx.JS(k,p,t,J,q,F,d,S,U)}; g.E.Me=function(k){this.Dx.Me(k)}; g.E.xe=function(k){return this.Dx.xe(k)}; g.E.Pe=function(k){return this.Dx.Pe(k)};g.E=g.dJ.prototype;g.E.addCueRange=function(k){this.Tb.addCueRange(k)}; g.E.Fs=function(k,p){this.Tb.Fs(k,p)}; g.E.g3=function(){this.Tb.g3()}; g.E.RA=function(){return this.Tb.RA()}; g.E.D$=function(){return this.Tb.D$()}; g.E.Bi=function(){this.Tb.gZ()}; g.E.Cj=function(k,p){this.Tb.Cj(k,p)}; g.E.I$=function(k,p){return this.Tb.I$(k,p)}; g.E.ED=function(k){this.Tb.ED(k)}; g.E.eC=function(){return this.Tb.eC()}; g.E.getAudioTrack=function(){return this.Tb.getAudioTrack()}; g.E.getAvailableAudioTracks=function(){return this.Tb.getAvailableAudioTracks()}; g.E.Na=function(){return this.Tb.Na()}; g.E.DA=function(){return this.Tb.DA()}; g.E.XS=function(){return this.Tb.XS()}; g.E.Fc=function(){return this.Tb.Fc()}; g.E.Zw=function(){return this.Tb.Zw()}; g.E.getCurrentTime=function(){return this.Tb.getCurrentTime()}; g.E.qE=function(){return this.Tb.qE()}; g.E.Hb=function(){return this.Tb.Hb()}; g.E.pE=function(k){return this.Tb.pE(k)}; g.E.getDuration=function(k){return this.Tb.getDuration(k)}; g.E.nI=function(){return this.Tb.nI()}; g.E.Zl=function(){return this.Tb.Zl()}; g.E.Lj=function(){return this.Tb.Lj()}; g.E.ID=function(){return this.Tb.ID()}; g.E.jw=function(){return this.Tb.jw()}; g.E.zJ=tw(16);g.E.Bb=function(){return this.Tb.Bb()}; g.E.QV=function(){return this.Tb.QV()}; g.E.FO=function(k){return this.Tb.FO(k)}; g.E.QM=function(){return this.Tb.QM()}; g.E.D6=function(){return this.Tb.D6()}; g.E.xx=function(){return this.Tb.xx()}; g.E.Xc=function(){return this.Tb.Xc()}; g.E.iD=function(k,p,t){return this.Tb.iD(k,p,t)}; g.E.wZ=tw(21);g.E.getPlaybackQuality=function(){return this.Tb.getPlaybackQuality()}; g.E.getPlaybackRate=function(){return this.Tb.getPlaybackRate()}; g.E.getPlayerState=function(){return this.Tb.getPlayerState()}; g.E.getPlayerType=function(){return this.Tb.getPlayerType()}; g.E.getPlaylistSequenceForTime=function(k){return this.Tb.getPlaylistSequenceForTime(k)}; g.E.VX=function(k){return this.Tb.VX(k)}; g.E.qa=function(){return this.Tb.qa()}; g.E.getPreferredQuality=function(){return this.Tb.getPreferredQuality()}; g.E.cL=function(){return this.Tb.cL()}; g.E.getProximaLatencyPreference=function(){return this.Tb.getProximaLatencyPreference()}; g.E.QD=function(){return this.Tb.QD()}; g.E.Ee=function(){return this.getVideoData().Ee()}; g.E.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()}; g.E.getStreamTimeOffset=function(){return this.Tb.getStreamTimeOffset()}; g.E.h_=function(){return this.Tb.h_()}; g.E.Yx=function(){return this.Tb.Yx()}; g.E.Ie=function(){return this.Tb.Ie()}; g.E.getUserAudio51Preference=function(){return this.Tb.getUserAudio51Preference()}; g.E.getUserPlaybackQualityPreference=function(){return this.Tb.getUserPlaybackQualityPreference()}; g.E.getVideoData=function(){return this.Tb.getVideoData()}; g.E.vL=function(){return this.Tb.vL()}; g.E.nZ=function(){return this.Tb.nZ()}; g.E.getVideoLoadedFraction=function(){if(g.lE(this.getVideoData()))return 1;var k=this.Tb.QM();return k?k.e0():0}; g.E.kP=function(k){this.Tb.kP(k)}; g.E.handleError=function(k){this.Tb.handleError(k)}; g.E.M3=function(k){this.Tb.M3(k)}; g.E.fN=function(k){this.Tb.fN(k)}; g.E.Um=tw(42);g.E.cn=function(){return this.Tb.cn()}; g.E.hasSupportedAudio51Tracks=function(){return this.Tb.hasSupportedAudio51Tracks()}; g.E.iY=function(){return this.Tb.iY()}; g.E.QX=function(){return this.Tb.QX()}; g.E.isAtLiveHead=function(k,p){return this.Tb.isAtLiveHead(k,p)}; g.E.vW=function(){return this.Tb.vW()}; g.E.isGapless=function(){return this.Tb.isGapless()}; g.E.isHdr=function(){return this.Tb.isHdr()}; g.E.Nk=function(){return this.Tb.Nk()}; g.E.wR=function(){return this.Tb.wR()}; g.E.ET=function(){return this.Tb.ET()}; g.E.isProximaLatencyEligible=function(){return this.Tb.isProximaLatencyEligible()}; g.E.yN=function(){return this.Tb.yN()}; g.E.A$=function(k){var p;return!((p=this.Tb.Ey)==null||!p.A$(k))}; g.E.LV=function(){return this.Tb.LV()}; g.E.Xv=function(){this.Tb.Xv()}; g.E.Q8=function(k){this.Tb.Q8(k)}; g.E.OL=function(k){this.Tb.OL(k)}; g.E.rF=function(){this.Tb.rF()}; g.E.vI=function(){this.Tb.vI()}; g.E.nY=function(){this.Tb.nY()}; g.E.wM=function(){this.Tb.wM()}; g.E.SD=function(k){this.Tb.SD(k)}; g.E.PJ=tw(54);g.E.VG=tw(28);g.E.pW=function(){this.Tb.pW()}; g.E.pauseVideo=function(k){this.Tb.pauseVideo(k)}; g.E.T2=function(k){this.Tb.T2(k)}; g.E.L1=function(k){this.Tb.L1(k)}; g.E.playVideo=function(k,p){return this.Tb.playVideo(k,p)}; g.E.IW=function(k,p,t,J,q){this.Tb.IW(k,p,t,J,q)}; g.E.dj=tw(33);g.E.cj=tw(38);g.E.W9=function(k,p,t,J,q){this.Tb.W9(k,p,t,J,q)}; g.E.yT=function(k,p,t){this.Tb.yT(k,p,t)}; g.E.iO=function(k){this.Tb.iO(k)}; g.E.PF=function(k,p){this.Tb.ZB().PF(k,p)}; g.E.oX=function(k,p,t){this.Tb.oX(k,p,t)}; g.E.Vn=function(k){this.Tb.Vn(k)}; g.E.tJ=function(k,p,t){this.Tb.tJ(k,p,t)}; g.E.fn=function(k){this.Tb.fn(k)}; g.E.Da=function(k,p){this.Tb.Da(k,p)}; g.E.FX=function(k,p,t,J,q,F,d,S){this.Tb.FX(k,p,t,J,q,F,d,S)}; g.E.Za=function(k){this.Tb.Za(k)}; g.E.Td=function(k,p){this.Tb.Td(k,p)}; g.E.f1=function(k,p){this.Tb.f1(k,p)}; g.E.removeCueRange=function(k){this.Tb.removeCueRange(k)}; g.E.O0=function(k){this.Tb.O0(k)}; g.E.VM=function(k){return this.Tb.yA.VM(k)}; g.E.Wk=function(k){this.Tb.Wk(k)}; g.E.vj=function(k,p,t){this.Tb.vj(k,p,t)}; g.E.Bw=function(){this.Tb.Bw()}; g.E.tb=function(k,p){this.Tb.tb(k,p)}; g.E.Hw=function(){this.Tb.Hw()}; g.E.seekTo=function(k,p){this.Tb.seekTo(k,p)}; g.E.sendAbandonmentPing=function(){this.Tb.sendAbandonmentPing()}; g.E.sendVideoStatsEngageEvent=function(k,p){this.Tb.sendVideoStatsEngageEvent(k,p)}; g.E.XX=function(k,p){this.Tb.XX(k,p)}; g.E.setLoop=function(k){this.Tb.setLoop(k)}; g.E.C9=function(){this.Tb.C9()}; g.E.setMediaElement=function(k){this.Tb.setMediaElement(k)}; g.E.J8=function(k,p,t,J){this.Tb.J8(k,p,t,J)}; g.E.setPlaybackRate=function(k){this.Tb.setPlaybackRate(k)}; g.E.W3=function(k,p,t,J,q,F){this.Tb.W3(k,p,t,J,q,F)}; g.E.fP=function(k,p){this.Tb.fP(k,p)}; g.E.Fw=function(k){this.Tb.Fw(k)}; g.E.setProximaLatencyPreference=function(k){this.Tb.setProximaLatencyPreference(k)}; g.E.nP=function(k){this.Tb.nP(k)}; g.E.gm=function(){this.Tb.gm()}; g.E.FK=function(k){this.Tb.FK(k)}; g.E.setUserAudio51Preference=function(k,p){this.Tb.setUserAudio51Preference(k,p)}; g.E.EP=function(k,p,t){this.Tb.EP(k,p,t)}; g.E.Uk=function(){return this.Tb.Uk()}; g.E.E9=function(){this.Tb.E9()}; g.E.mK=function(){return this.Tb.mK()}; g.E.BO=function(k){this.Tb.BO(k)}; g.E.jM=function(){this.Tb.jM()}; g.E.QI=function(k){this.Tb.QI(k)}; g.E.stopVideo=function(){this.Tb.stopVideo()}; g.E.subscribe=function(k,p,t){return this.Tb.subscribe(k,p,t)}; g.E.bY=function(k,p){this.Tb.bY(k,p)}; g.E.togglePictureInPicture=function(){this.Tb.togglePictureInPicture()}; g.E.rZ=function(k,p){return this.Tb.yA.rZ(k,p)}; g.E.unsubscribe=function(k,p,t){return this.Tb.unsubscribe(k,p,t)}; g.E.aX=function(k,p){this.Tb.aX(k,p)}; g.E.sJ=function(k,p){return this.Tb.sJ(k,p)}; g.E.nK=function(){this.Tb.nK()}; g.E.T3=function(){this.Tb.T3()}; g.E.QW=function(k){this.Tb.QW(k)}; g.E.uc=function(){this.Tb.uc()};g.r(S2,g.o$);g.r(UO,S2);UO.prototype.S=function(k,p){if(k&&p){var t=Number(Mn(k,"cpi"))*1+1;isNaN(t)||t<=0||t<this.N?(this.C.stop(),this.Y.stop(),this.N=-1,this.T={}):(t>this.N&&(this.N=t,g.cQ(this.T)||(this.T={},this.C.stop(),this.Y.stop())),this.T[p]=k,g.Oc(this.Y))}}; UO.prototype.X=function(){for(var k=g.Z(Object.keys(this.T)),p=k.next();!p.done;p=k.next()){var t=p.value;p=this.publish;for(var J=this.N,q=this.T[t].match(Pt),F=[],d=g.Z(q[6].split("&")),S=d.next();!S.done;S=d.next())S=S.value,S.indexOf("cpi=")===0?F.push("cpi="+J.toString()):S.indexOf("ek=")===0?F.push("ek="+g.OZ(t)):F.push(S);q[6]="?"+F.join("&");t="skd://"+q.slice(2).join("");q=t.length*2;J=new Uint8Array(q+4);J[0]=q%256;J[1]=(q-J[0])/256;for(q=0;q<t.length;++q)J[q*2+4]=t.charCodeAt(q);p.call(this, "rotated_need_key_info_ready",new qX(J,"fairplay",!0))}this.T={}}; UO.prototype.Ap=function(){this.T={};S2.prototype.Ap.call(this)};g.r(fL,S2); fL.prototype.X=function(k){var p;a:{if((p=k.cryptoPeriodIndex)&&this.T.length>0)for(var t=g.Z(this.T),J=t.next();!J.done;J=t.next())if(p===J.value.info.cryptoPeriodIndex){p=!0;break a}p=!1}if(!p){p=(0,g.V9)();a:{t=k.cryptoPeriodIndex;if(!isNaN(t)){J=g.Z(this.N.values());for(var q=J.next();!q.done;q=J.next())if(Math.abs(q.value.cryptoPeriodIndex-t)<=1){t=!0;break a}}t=!1}t?(t=k.T,t=Math.max(0,Math.random()*((isNaN(t)?120:t)-30))*1E3):t=0;this.publish("log_qoe",{wvagt:"delay."+t,cpi:k.cryptoPeriodIndex,reqlen:this.T.length, ignore:this.C});t<=0?h_q(this,k):this.C||(this.T.push({time:p+t,info:k}),g.Oc(this.Y,t))}}; fL.prototype.Ap=function(){this.T=[];S2.prototype.Ap.call(this)};var YD={},laj=(YD.DRM_TRACK_TYPE_AUDIO="AUDIO",YD.DRM_TRACK_TYPE_SD="SD",YD.DRM_TRACK_TYPE_HD="HD",YD.DRM_TRACK_TYPE_UHD1="UHD1",YD);g.r(gui,g.R);g.r(Oy9,g.o$);g.E=Oy9.prototype;g.E.GL=function(k){var p=this;this.MO()||k.size<=0||(k.forEach(function(t,J){var q=cL(p.Y)?J:t;J=new Uint8Array(cL(p.Y)?t:J);cL(p.Y)&&rPe(J);t=g.Zn(J,4);rPe(J);J=g.Zn(J,4);p.T[t]?p.T[t].status=q:p.T[J]?p.T[J].status=q:p.T[t]={type:"",status:q}}),dEh(this,","),bn(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.E.error=function(k,p,t,J){this.MO()||(this.publish("licenseerror",k,p,t,J),k==="drm.provision"&&(k=(Date.now()-this.S)/1E3,this.S=NaN,this.publish("ctmp","provf",{et:k.toFixed(3)})));mO(p)&&this.dispose()}; g.E.shouldRetry=function(k,p){return!k&&this.requestNumber===p.requestNumber}; g.E.Ap=function(){this.T={};g.o$.prototype.Ap.call(this)}; g.E.pE=function(){var k={ctype:this.B.contentType||"",length:this.B.initData.length,requestedKeyIds:this.NO,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(k.keyStatuses=this.T);return k}; g.E.getInfo=function(){var k=this.C.join();if(Nb(this)){var p=new Set,t;for(t in this.T)this.T[t].status!=="usable"&&p.add(this.T[t].type);k+="/UKS."+Array.from(p)}return k+="/"+this.cryptoPeriodIndex}; g.E.b1=function(){return this.url};g.r(yT,g.R);g.E=yT.prototype;g.E.aJ=function(k){if(this.X){var p=k.messageType||"license-request";this.X(new Uint8Array(k.message),p)}}; g.E.GL=function(){this.Z&&this.Z(this.T.keyStatuses)}; g.E.onClosed=function(){this.MO()||g.RY("xboxone")&&this.N&&this.N("closed")}; g.E.X5=function(k){this.X&&this.X(k.message,"license-request")}; g.E.lU=function(k){if(this.N){if(this.Y){var p=this.Y.error.code;k=this.Y.error.systemCode}else p=k.errorCode,k=k.systemCode;this.N("t.prefixedKeyError;c."+p+";sc."+k,p,k)}}; g.E.bU=function(){this.S&&this.S()}; g.E.update=function(k){var p=this;if(this.T)return(MY.isActive()?MY.iX("emeupd",function(){return p.T.update(k)}):this.T.update(k)).then(null,Nm(function(t){Cm_(p,"t.update",t)})); this.Y?this.Y.update(k):this.element.addKey?this.element.addKey(this.B.keySystem,k,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.B.keySystem,k,this.initData,this.sessionId);return cw()}; g.E.Ap=function(){this.T&&(this.L?this.T.close().catch(g.wt):this.T.close());this.element=null;g.R.prototype.Ap.call(this)};g.r(YA,g.R);g.E=YA.prototype;g.E.Cs=function(){var k=this;if(this.T.keySystemAccess)return(MY.isActive()?MY.iX("emenew",function(){return k.T.keySystemAccess.createMediaKeys()}):this.T.keySystemAccess.createMediaKeys()).then(function(t){if(!k.MO())if(k.Y=t,MY.isActive())MY.iX("emeset",function(){return k.element.setMediaKeys(t)}); else{var J;(J=k.element)==null||J.setMediaKeys(t)}}); if(vL(this.T))this.N=new (LR())(this.T.keySystem);else if(nR(this.T)){this.N=new (LR())(this.T.keySystem);var p;(p=this.element)==null||p.webkitSetMediaKeys(this.N)}else MY.isActive()&&this.yT("emev",{v:"01b"}),Wz(this.X,this.element,["keymessage","webkitkeymessage"],this.pS),Wz(this.X,this.element,["keyerror","webkitkeyerror"],this.J0),Wz(this.X,this.element,["keyadded","webkitkeyadded"],this.Ua);return null}; g.E.setServerCertificate=function(){return this.Y.setServerCertificate?this.T.flavor==="widevine"&&this.T.Oo?this.Y.setServerCertificate(this.T.Oo):i_(this.T)&&this.T.v0?this.Y.setServerCertificate(this.T.v0):null:null}; g.E.createSession=function(k,p){var t=k.initData;if(this.T.keySystemAccess){p&&p("createsession");var J=this.Y.createSession();wi(this.T)?t=APh(t,this.T.v0):i_(this.T)&&(t=e_0(t)||new Uint8Array(0));p&&p("genreq");var q=MY.isActive()?MY.iX("emegen",function(){return J.generateRequest(k.contentType,t)}):J.generateRequest(k.contentType,t); var F=new yT(null,null,null,J,null,this.Z);q.then(function(){p&&p("genreqsuccess")},Nm(function(S){Cm_(F,"t.generateRequest",S)})); return F}if(vL(this.T))return Vn_(this,t);if(nR(this.T))return mXL(this,t);if((q=this.element)==null?0:q.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,t);else{var d;(d=this.element)==null||d.webkitGenerateKeyRequest(this.T.keySystem,t)}return this.C=new yT(this.element,this.T,t,null,null,this.Z)}; g.E.pS=function(k){var p=Wb6(this,k);p&&p.X5(k)}; g.E.J0=function(k){var p=Wb6(this,k);p&&p.lU(k)}; g.E.Ua=function(k){var p=Wb6(this,k);p&&p.bU(k)}; g.E.getMetrics=function(){if(this.Y&&this.Y.getMetrics)try{var k=this.Y.getMetrics()}catch(p){}return k}; g.E.Ap=function(){this.N=this.Y=null;var k;(k=this.C)==null||k.dispose();k=g.Z(Object.values(this.S));for(var p=k.next();!p.done;p=k.next())p.value.dispose();this.S={};g.R.prototype.Ap.call(this);delete this.element};g.E=TF.prototype;g.E.get=function(k){k=this.findIndex(k);return k!==-1?this.values[k]:null}; g.E.remove=function(k){k=this.findIndex(k);k!==-1&&(this.keys.splice(k,1),this.values.splice(k,1))}; g.E.removeAll=function(){this.keys=[];this.values=[]}; g.E.set=function(k,p){var t=this.findIndex(k);t!==-1?this.values[t]=p:(this.keys.push(k),this.values.push(p))}; g.E.findIndex=function(k){return g.OR(this.keys,function(p){return g.U$(k,p)})};g.r(Lb0,g.o$);g.E=Lb0.prototype;g.E.SFr=function(k){this.Sb({onecpt:1});k.initData&&nNh(this,new Uint8Array(k.initData),k.initDataType)}; g.E.dPh=function(k){this.Sb({onndky:1});nNh(this,k.initData,k.contentType)}; g.E.RT=function(k){this.Sb({onneedkeyinfo:1});this.ih.D("html5_eme_loader_sync")&&(this.Z.get(k.initData)||this.Z.set(k.initData,k));cPL(this,k)}; g.E.dC=function(k){this.N.push(k);rJ(this)}; g.E.createSession=function(k){var p=ibM(this)?qmi(k):g.Zn(k.initData);this.Y.get(p);this.P0=!0;k=new Oy9(this.videoData,this.ih,k,this.drmSessionId);this.Y.set(p,k);k.subscribe("ctmp",this.cP,this);k.subscribe("keystatuseschange",this.GL,this);k.subscribe("licenseerror",this.zM,this);k.subscribe("newlicense",this.Mq,this);k.subscribe("newsession",this.Op,this);k.subscribe("sessionready",this.eq,this);k.subscribe("fairplay_next_need_key_info",this.jq,this);this.ih.D("html5_enable_vp9_fairplay")&&k.subscribe("qualitychange", this.Fz,this);this.ih.D("html5_enable_sabr_drm_hd720p")&&k.subscribe("sabrlicenseconstraint",this.hKy,this);kBe(k,this.C)}; g.E.Mq=function(k){this.MO()||(this.Sb({onnelcswhb:1}),k&&!this.heartbeatParams&&(this.heartbeatParams=k,this.publish("heartbeatparams",k)))}; g.E.Op=function(){this.MO()||(this.Sb({newlcssn:1}),this.N.shift(),this.P0=!1,rJ(this))}; g.E.eq=function(){if(vL(this.T)&&(this.Sb({onsnrdy:1}),this.qO--,this.qO===0)){var k=this.gy,p,t;(p=k.element)==null||(t=p.msSetMediaKeys)==null||t.call(p,k.N)}}; g.E.GL=function(k){if(!this.MO()){!this.Oy&&this.videoData.D("html5_log_drm_metrics_on_key_statuses")&&(QkL(this),this.Oy=!0);this.Sb({onksch:1});var p=this.Fz;if(!Nb(k)&&g.ag&&k.Y.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var t="large";else{t=[];var J=!0;if(Nb(k))for(var q=g.Z(Object.keys(k.T)),F=q.next();!F.done;F=q.next())F=F.value,k.T[F].status==="usable"&&t.push(k.T[F].type),k.T[F].status!=="unknown"&&(J=!1);if(!Nb(k)||J)t=k.C;t=$ES(t)}p.call(this,t);this.publish("keystatuseschange", k)}}; g.E.cP=function(k,p){this.MO()||this.publish("ctmp",k,p)}; g.E.jq=function(k,p){this.MO()||this.publish("fairplay_next_need_key_info",k,p)}; g.E.zM=function(k,p,t,J){this.MO()||(this.videoData.D("html5_log_drm_metrics_on_error")&&QkL(this),this.publish("licenseerror",k,p,t,J))}; g.E.WL=function(){return this.B}; g.E.Fz=function(k){var p=g.Kj("auto",k,!1,"l");if(this.videoData.YN){if(this.B.MR(p))return}else if(OTL(this.B,k))return;this.B=p;this.publish("qualitychange");this.Sb({updtlq:k})}; g.E.hKy=function(k){this.videoData.sabrLicenseConstraint=k}; g.E.Ap=function(){this.T.keySystemAccess&&this.element&&(this.NO?this.element.setMediaKeys(null).catch(g.wt):this.element.setMediaKeys(null));this.element=null;this.N=[];for(var k=g.Z(this.Y.values()),p=k.next();!p.done;p=k.next())p=p.value,p.unsubscribe("ctmp",this.cP,this),p.unsubscribe("keystatuseschange",this.GL,this),p.unsubscribe("licenseerror",this.zM,this),p.unsubscribe("newlicense",this.Mq,this),p.unsubscribe("newsession",this.Op,this),p.unsubscribe("sessionready",this.eq,this),p.unsubscribe("fairplay_next_need_key_info", this.jq,this),this.ih.D("html5_enable_vp9_fairplay")&&p.unsubscribe("qualitychange",this.Fz,this),p.dispose();this.Y.clear();this.S.removeAll();this.Z.removeAll();this.heartbeatParams=null;g.o$.prototype.Ap.call(this)}; g.E.pE=function(){for(var k={systemInfo:this.T.pE(),sessions:[]},p=g.Z(this.Y.values()),t=p.next();!t.done;t=p.next())k.sessions.push(t.value.pE());return k}; g.E.getInfo=function(){return this.Y.size<=0?"no session":""+this.Y.values().next().value.getInfo()+(this.X?"/KR":"")}; g.E.Sb=function(k,p){p=p===void 0?!1:p;this.MO()||(CC(k),(this.ih.DB()||p)&&this.publish("ctmp","drmlog",k))};g.r(RPw,g.R);g.E=RPw.prototype;g.E.ZZ=function(){return!!this.qZ}; g.E.LV=function(){return this.Y}; g.E.handleError=function(k){var p=this;Mne(this,k);if((k.errorCode!=="html5.invalidstate"&&k.errorCode!=="fmt.unplayable"&&k.errorCode!=="fmt.unparseable"||!aFL(this,k.errorCode,k.details))&&!jke(this,k)){if(this.Cp.gy!=="yt"&&uci(this,k)&&this.videoData.mu&&(0,g.V9)()/1E3>this.videoData.mu&&this.Cp.gy==="hm"){var t=Object.assign({e:k.errorCode},k.details);t.stalesigexp="1";t.expire=this.videoData.mu;t.init=this.videoData.mP/1E3;t.now=(0,g.V9)()/1E3;t.systelapsed=((0,g.V9)()-this.videoData.mP)/1E3; k=new AD(k.errorCode,t,2);this.Tb.W3(k.errorCode,2,"SIGNATURE_EXPIRED",CC(k.details))}if(mO(k.severity)){var J;t=(J=this.Tb.Ey)==null?void 0:J.T.T;if(this.Cp.D("html5_use_network_error_code_enums"))if(gNT(k)&&t&&t.isLocked())var q="FORMAT_UNAVAILABLE";else if(this.Cp.S||k.errorCode!=="auth"||k.details.rc!==429)k.errorCode==="ump.spsrejectfailure"&&(q="HTML5_SPS_UMP_STATUS_REJECTED");else{q="TOO_MANY_REQUESTS";var F="6"}else gNT(k)&&t&&t.isLocked()?q="FORMAT_UNAVAILABLE":this.Cp.S||k.errorCode!=="auth"|| k.details.rc!=="429"?k.errorCode==="ump.spsrejectfailure"&&(q="HTML5_SPS_UMP_STATUS_REJECTED"):(q="TOO_MANY_REQUESTS",F="6");this.Tb.W3(k.errorCode,k.severity,q,CC(k.details),F)}else this.Tb.publish("nonfatalerror",k),J=/^pp/.test(this.videoData.clientPlaybackNonce),this.Vn(k.errorCode,k.details),J&&k.errorCode==="manifest.net.connect"&&(k="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.V9)(),Ar(k,"manifest",function(d){p.S=!0;p.yT("pathprobe",d)},function(d){p.Vn(d.errorCode, d.details)}))}}; g.E.yT=function(k,p){this.Tb.ZB().yT(k,p)}; g.E.Vn=function(k,p){p=CC(p);this.Tb.ZB().Vn(k,p)};Hbj.prototype.We=function(k,p){return(p===void 0?0:p)?{iI:k?AX(this,k):Xp,o1:k?$j9(this,k):Xp,yop:k?qF_(this,k):Xp,Ehh:k?b$i(this,k.videoData):Xp,eL:k?NMM(this,k.videoData,k):Xp,Aop:k?Jv9(this,k):Xp,CDy:pDi(this)}:{iI:k?AX(this,k):Xp}}; Hbj.prototype.D=function(k){return this.ih.D(k)};g.r(mQ,g.R);mQ.prototype.onError=function(k){if(k!=="player.fatalexception"||this.provider.D("html5_exception_to_health"))k==="sabr.fallback"&&(this.encounteredSabrFallback=!0),k.match(Ybn)?this.networkErrorCount++:this.nonNetworkErrorCount++}; mQ.prototype.send=function(){if(!(this.N||this.T<0)){TMi(this);var k=g.VT(this.provider)-this.T,p="PLAYER_PLAYBACK_STATE_UNKNOWN",t=this.playerState.JD;this.playerState.isError()?p=t&&t.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.u(this.playerState,2)?p="PLAYER_PLAYBACK_STATE_ENDED":g.u(this.playerState,64)?p="PLAYER_PLAYBACK_STATE_UNSTARTED":g.u(this.playerState,16)||g.u(this.playerState,32)?p="PLAYER_PLAYBACK_STATE_SEEKING":g.u(this.playerState,1)&&g.u(this.playerState, 4)?p="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.u(this.playerState,1)?p="PLAYER_PLAYBACK_STATE_BUFFERING":g.u(this.playerState,4)?p="PLAYER_PLAYBACK_STATE_PAUSED":g.u(this.playerState,8)&&(p="PLAYER_PLAYBACK_STATE_PLAYING");t=EBL[Tl(this.provider.videoData)];a:switch(this.provider.ih.playerCanaryState){case "canary":var J="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":J="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:J="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var q=rve(this.provider), F=this.Y<0?k:this.Y-this.T;k=this.provider.ih.fZ+36E5<(0,g.V9)();p={started:this.Y>=0,stateAtSend:p,joinLatencySecs:F,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:J,playerCanaryStage:q,isAd:this.provider.videoData.isAd(),liveMode:t,hasDrm:!!g.yR(this.provider.videoData),isGapless:this.provider.videoData.B,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:tx(this.provider.videoData)};k||g.qv("html5PlayerHealthEvent",p);this.N=!0;this.dispose()}}; mQ.prototype.Ap=function(){this.N||this.send();window.removeEventListener("error",this.f3);window.removeEventListener("unhandledrejection",this.f3);g.R.prototype.Ap.call(this)}; var Ybn=/\bnet\b/;g.r(Clu,g.R);Clu.prototype.Ap=function(){mjS(this);g.R.prototype.Ap.call(this)};var VTi=/[?&]cpn=/;g.r(Wm,g.R);Wm.prototype.flush=function(){var k={};this.Y&&(k.pe=this.Y);this.T.length>0&&(k.pt=this.T.join("."));this.T=[];return k}; Wm.prototype.stop=function(){var k=this,p,t,J;return g.Q(function(q){if(q.T==1)return g.Aw(q,2),g.n(q,(p=k.C)==null?void 0:p.stop(),4);if(q.T!=2)return(t=q.Y)&&k.logTrace(t),g.Vi(q,0);J=g.W9(q);k.Y=nq6(J.message);g.CS(q)})}; Wm.prototype.logTrace=function(k){this.encoder.reset();this.encoder.add(1);this.encoder.add(k.resources.length);for(var p=g.Z(k.resources),t=p.next();!t.done;t=p.next()){t=t.value.replace("https://www.youtube.com/s/","");this.encoder.add(t.length);for(var J=0;J<t.length;J++)this.encoder.add(t.charCodeAt(J))}this.encoder.add(k.frames.length);p=g.Z(k.frames);for(t=p.next();!t.done;t=p.next()){t=t.value;this.encoder.add(t.name.length);for(J=0;J<t.name.length;J++)this.encoder.add(t.name.charCodeAt(J)); Fo(this.encoder,t.resourceId);Fo(this.encoder,t.line);Fo(this.encoder,t.column)}this.encoder.add(k.samples.length);p=g.Z(k.samples);for(t=p.next();!t.done;t=p.next())t=t.value,this.encoder.add(Math.trunc(t.timestamp)),Fo(this.encoder,t.stackId);this.encoder.add(k.stacks.length);k=g.Z(k.stacks);for(p=k.next();!p.done;p=k.next())p=p.value,this.encoder.add(p.frameId),Fo(this.encoder,p.parentId);k=this.encoder.zH();this.N+=k.length;this.N<1E7&&this.T.push(k)}; Wm.prototype.Ap=function(){this.stop();g.R.prototype.Ap.call(this)};var i$j=[2,5,30];g.wJ=f9(function(){var k="";try{var p=g.kW("CANVAS").getContext("webgl");p&&(p.getExtension("WEBGL_debug_renderer_info"),k=p.getParameter(37446),k=k.replace(/[ :]/g,"_"))}catch(t){}return k});g.r(g.vm,g.R);g.E=g.vm.prototype;g.E.Chr=function(){var k=g.VT(this.provider);IoL(this,k)}; g.E.mH=function(){return this.jo}; g.E.cL=function(){return{Ut:this.Ut,Jd:this.Jd}}; g.E.fP=function(k,p){this.Ut=k;this.Jd=p}; g.E.Q9=function(k){if(!this.ez){this.ez=!0;var p="";switch(k){case 1:p="proximaui";break;case 2:p=lKT(this.provider.videoData)?"proximawpcc":this.provider.videoData.D("html5_enable_proxima")||this.provider.videoData.D("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:p="proximaauto"}p!==""&&nL(this,p)}}; g.E.bW=function(k){this.T.lwc=[[k.P3?k.P3.toFixed():"",k.Pj?k.Pj.toFixed():"",k.qO?(k.qO*1E3).toFixed():"",k.aO?(k.aO*1E3).toFixed():"",k.jW?(k.jW*1E3).toFixed():""].join(":")]}; g.E.reportStats=function(k){k=k===void 0?NaN:k;if(!this.MO()&&(k=k>=0?k:g.VT(this.provider),["PL","B","S"].indexOf(this.B1)>-1&&(!g.cQ(this.T)||k>=this.X+30)&&(g.LL(this,k,"vps",[this.B1]),this.X=k),!g.cQ(this.T))){this.sequenceNumber===7E3&&g.wt(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){cm(this,k);var p=this.provider.Tb.t4();p=g.Z(p);for(var t=p.next();!t.done;t=p.next())t=t.value,this.yT(t.key,t.value);p=k;t=this.provider.Tb.vg();var J=t.droppedVideoFrames||0,q=t.totalVideoFrames|| 0,F=J-this.Ut,d=q&&!this.Jd;J>t.totalVideoFrames||F>5E3?aoM(this,"html5.badframedropcount","df."+J+";tf."+t.totalVideoFrames):(F>0||d)&&g.LL(this,p,"df",[F]);this.Ut=J;this.Jd=q;this.L>0&&(g.LL(this,k,"glf",[this.L]),this.L=0);pp.isActive()&&(k=pp.Qf(),Object.keys(k).length>0&&this.yT("profile",k));this.qW&&nL(this,"lwnmow");this.provider.ih.DB()&&this.provider.D("html5_record_now")&&this.yT("now",{wt:(0,g.V9)()});k={};this.provider.videoData.Y&&(k.fmt=this.provider.videoData.Y.itag,(p=this.provider.videoData.C)&& p.itag!==k.fmt&&(k.afmt=p.itag));k.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(k.adcpn=this.adCpn);this.gy&&(k.addocid=this.gy);this.contentCpn&&(k.ccpn=this.contentCpn);this.NO&&(k.cdocid=this.NO);this.provider.videoData.cotn&&(k.cotn=this.provider.videoData.cotn);k.el=wS(this.provider.videoData);k.content_v=XO(this.provider.videoData);k.ns=this.provider.ih.gy;k.fexp=QW6(this.provider.ih.experiments).toString();k.cl=(731116954).toString();(p=this.provider.videoData.adFormat||this.adFormat)&& (k.adformat=p);(p=Tl(this.provider.videoData))&&(k.live=p);this.provider.videoData.CH()&&(k.drm=1,this.provider.videoData.X&&(k.drm_system=JHq[this.provider.videoData.X.flavor]||0),this.provider.videoData.gA&&(k.drm_product=this.provider.videoData.gA));q8()&&this.provider.videoData.S&&(k.ctt=this.provider.videoData.S,k.cttype=this.provider.videoData.Q$,this.provider.videoData.mdxEnvironment&&(k.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(k.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Nm&&(k.dai_fallback="1")):this.provider.videoData.GI?k.dai="cs":this.provider.videoData.mj&&(k.dai="disabled");k.seq=this.sequenceNumber++;if(this.provider.videoData.Dh){if(p=this.provider.videoData.Dh,k&&p)for(p.ns==="3pp"&&(k.ns="3pp"),this.UF.has(p.ns)&&nL(this,"hbps"),p.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=p.shbpslc),t=g.Z(Object.keys(p)),J=t.next();!J.done;J=t.next())J=J.value,this.kx.has(J)|| (k[J]=p[J])}else k.event="streamingstats",k.docid=this.provider.videoData.videoId,k.ei=this.provider.videoData.eventId;this.isEmbargoed&&(k.embargoed="1");Object.assign(k,this.provider.ih.T);if(p=k.seq)p={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+p,serializedWatchEndpointLoggingContext:this.provider.videoData.qH},this.serializedHouseBrandPlayerServiceLoggingContext&&(p.serializedHouseBrandPlayerServiceLoggingContext=Aj(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0), this.provider.videoData.playerResponseCpn&&(p.playerResponseCpn=this.provider.videoData.playerResponseCpn),sO.length&&(p.decoderInfo=sO),this.provider.Tb.dI()&&(p.transitionStitchType=4,this.P0&&(p.timestampOffsetMsecs=this.P0)),this.remoteControlMode&&(p.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(p.remoteConnectedDevices=this.remoteConnectedDevices),p=g.gK(p,AAj),p=g.Zn(p,4),this.T.qclc=[p];k=g.hM("//"+this.provider.ih.mE+"/api/stats/qoe",k);t=p="";J=g.Z(Object.keys(this.T)); for(q=J.next();!q.done;q=J.next())q=q.value,this.T[q]===null?g.wt(new g.hm("Stats report key has invalid value",q)):(q="&"+q+"="+this.T[q].join(","),q.length>100?t+=q:p+=q);BM9(this,k+p,t.replace(/ /g,"%20"))}this.T={}}}; g.E.xn=function(k){this.qW=k}; g.E.yL=function(){if(this.provider.videoData.X){var k=this.provider.videoData.X;nL(this,"eme-"+(k.keySystemAccess?"final":vL(k)?"ms":wi(k)?"ytfp":nR(k)?"safarifp":"nonfinal"))}}; g.E.e$=function(k){var p=g.VT(this.provider);if(!this.provider.ih.experiments.Gb("html5_refactor_sabr_video_format_selection_logging")||k.T.id!==this.IY){var t=[k.T.id,k.Y,this.IY,k.reason];k.token&&t.push(k.token);g.LL(this,p,"vfs",t);this.IY=k.T.id;t=this.provider.Tb.getPlayerSize();if(t.width>0&&t.height>0){t=[Math.round(t.width),Math.round(t.height)];var J=g.ar();J>1&&t.push(J);g.LL(this,p,"view",t)}this.B0||(this.provider.ih.DB()&&nL(this,"rqs2"),this.provider.videoData.T&&qB(this.provider.videoData.T)&& (this.T.preload=["1"]));this.N=this.B0=!0}k.reason==="m"&&++this.l1===100&&MTq(this,2);g.LL(this,p,"vps",[this.B1]);this.reportStats(p)}; g.E.bv=function(k){var p=g.VT(this.provider);if(this.provider.ih.experiments.Gb("html5_refactor_sabr_audio_format_selection_logging")){p=k.T;var t=[p.audio&&p.video?p.bQ?p.bQ:"":p.id];p.ws&&p.ws.id&&t.push(p.ws.id);p=t.join(";");p!==this.Z&&(t=[p,this.Z,k.reason],k.token&&t.push(k.token),g.LL(this,g.VT(this.provider),"afs",t),this.Z=p)}else k.T.id!==this.Z&&(t=[k.T.id,this.Z,k.reason],k.token&&t.push(k.token),g.LL(this,p,"afs",t),this.Z=k.T.id)}; g.E.PJ=tw(53);g.E.iO=function(k){this.isEmbargoed=k}; g.E.dj=tw(32);g.E.cj=tw(37);g.E.onPlaybackRateChange=function(k){var p=g.VT(this.provider);k&&k!==this.jW&&(g.LL(this,p,"rate",[k]),this.jW=k);this.reportStats(p)}; g.E.VG=tw(27);g.E.getPlayerState=function(k){if(g.u(k,128))return"ER";if(g.u(k,2048))return"B";if(g.u(k,512))return"SU";if(g.u(k,16)||g.u(k,32))return"S";if(k.isOrWillBePlaying()&&g.u(k,64))return"B";var p=TBJ[qw(k)];g.mq(this.provider.ih)&&p==="B"&&this.provider.Tb.getVisibilityState()===3&&(p="SU");p==="B"&&g.u(k,4)&&(p="PB");return p}; g.E.Ap=function(){g.R.prototype.Ap.call(this);g.yI(this.S);g.yI(this.nE)}; g.E.e8=function(k){this.isOffline=k;g.LL(this,g.VT(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.E.yT=function(k,p,t){var J=this.T.ctmp||[],q=this.Kb.indexOf(k)!==-1;q||this.Kb.push(k);if(!t||!q){var F=typeof p!=="string"?CC(p):p;F=gq9(F);if(!t&&!/^t[.]/.test(F)){var d=g.VT(this.provider)*1E3;F="t."+d.toFixed()+";"+F}J.push(k+":"+F);this.logger.debug(function(){return"ctmp "+k+" "+F}); this.T.ctmp=J;z0_(this);return d}}; g.E.oX=function(k,p,t){this.C={xRS:Number(this.yT("glrem",{nst:k.toFixed(),rem:p.toFixed(),ca:+t})),Lv:k,Yxy:p,isAd:t}}; g.E.IW=function(k,p,t){g.LL(this,g.VT(this.provider),"ad_playback",[k,p,t])}; g.E.PF=function(k,p){var t=g.VT(this.provider)*1E3,J=this.T.daism||[];J.push("t."+t.toFixed(0)+";smw."+(k*1E3).toFixed(0)+";smo."+(p*1E3).toFixed(0));this.T.daism=J}; g.E.resume=function(){var k=this;this.provider.ih.DB()&&this.yT("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.S)?e0i(this):this.S=g.b6(function(){k.reportStats()},1E4)}; var T8={},TBJ=(T8[5]="N",T8[-1]="N",T8[3]="B",T8[0]="EN",T8[2]="PA",T8[1]="PL",T8[-1E3]="ER",T8[1E3]="N",T8),sO=[];j1w.prototype.TE=function(){return this.T}; j1w.prototype.update=function(){if(this.Z){var k=this.provider.Tb.z9(this.provider.videoData.clientPlaybackNonce)||0,p=g.VT(this.provider);k>=this.provider.Tb.getDuration()-.1&&(this.previouslyEnded=!0);if(k!==this.T||H$e(this,k,p)){var t;if(!(t=k<this.T||k-this.T>p-this.tK+2||H$e(this,k,p))){t=this.provider.Tb.getVolume();var J=t!==this.L,q=this.provider.Tb.isMuted()?1:0;q!==this.B?(this.B=q,t=!0):(!J||this.C>=0||(this.L=t,this.C=p),t=p-this.C,this.C>=0&&t>2?(this.C=-1,t=!0):t=!1)}t&&(GF(this),this.N= k);this.tK=p;this.T=k}}};xji.prototype.send=function(k){var p=this;if(!this.k8){var t=pme(this),J=g.hM(this.uri,t);this.ih.D("vss_through_gel_double")&&t2e(J);this.NO&&!this.ih.D("html5_simplify_pings")?$b9(this,J):kF0(this,k).then(function(q){p.NO&&(q=q||{},q.method="POST",q.postParams={atr:p.attestationResponse});Llh(J,q,{token:p.gy,L9:p.Jp,mdxEnvironment:p.mdxEnvironment},p.ih,k,p.P0,p.isFinal&&p.fZ||p.j6||p.N&&p.Dw)}); this.k8=!0}}; xji.prototype.Y=function(k){k===void 0&&(k=NaN);return Number(k.toFixed(3)).toString()}; var rd={},qO_=(rd.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,rd.LIVING_ROOM_APP_MODE_MAIN=1,rd.LIVING_ROOM_APP_MODE_KIDS=2,rd.LIVING_ROOM_APP_MODE_MUSIC=3,rd.LIVING_ROOM_APP_MODE_UNPLUGGED=4,rd.LIVING_ROOM_APP_MODE_GAMING=5,rd),Z3={},oAS=(Z3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Z3.EMBEDDED_PLAYER_MODE_DEFAULT=1,Z3.EMBEDDED_PLAYER_MODE_PFP=2,Z3.EMBEDDED_PLAYER_MODE_PFL=3,Z3);g.r(X9,g.R);g.E=X9.prototype;g.E.eh=function(){this.T.update();yX6(this)&&(EAi(this),SOh(this),this.nK())}; g.E.Ap=function(){g.R.prototype.Ap.call(this);zF(this);O$_(this.T)}; g.E.pE=function(){return pme(Ry(this,"playback"))}; g.E.nK=function(){this.provider.videoData.Z.eventLabel=wS(this.provider.videoData);this.provider.videoData.Z.playerStyle=this.provider.ih.playerStyle;this.provider.videoData.Iq&&(this.provider.videoData.Z.feature="pyv");this.provider.videoData.Z.vid=this.provider.videoData.videoId;var k=this.provider.videoData.Z;var p=this.provider.videoData;p=p.isAd()||!!p.Iq;k.isAd=p}; g.E.VX=function(k){var p=Ry(this,"engage");p.Y8=k;return JXj(p,AXq(this.provider))};Cn_.prototype.isEmpty=function(){return this.endTime===this.startTime};hX.prototype.D=function(k){return this.ih.D(k)}; hX.prototype.getCurrentTime=function(k){if(this.D("html5_ssap_current_time_for_logging_refactor")){var p=this.Tb.dI();if(p&&(k=k||p.ZC()))return qA(p,k)}else if(g.hF(this.videoData)){var t=this.Tb.dI();if(t)return k=this.Tb.getCurrentTime(),t=(((p=cI(t,k*1E3))==null?void 0:p.aD)||0)/1E3,k-t}return this.Tb.getCurrentTime()}; hX.prototype.Zw=function(k){if(this.D("html5_ssap_current_time_for_logging_refactor")){var p=this.Tb.dI();if(p&&(k=k||p.ZC()))return qA(p,k)}else if(g.hF(this.videoData)){var t=this.Tb.dI();if(t)return k=this.Tb.Zw(),t=(((p=cI(t,k*1E3))==null?void 0:p.aD)||0)/1E3,k-t}return this.Tb.Zw()}; var mb6={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.r(g.ay,g.R);g.E=g.ay.prototype;g.E.eh=function(){if(this.provider.videoData.enableServerStitchedDai&&this.ax){var k;(k=this.N.get(this.ax))==null||k.eh()}else this.T&&this.T.eh()}; g.E.iO=function(k){this.qoe&&this.qoe.iO(k)}; g.E.dj=tw(31);g.E.cj=tw(36);g.E.PF=function(k,p){this.qoe&&this.qoe.PF(k,p)}; g.E.Bi=function(){if(this.provider.videoData.enableServerStitchedDai&&this.ax){var k;(k=this.N.get(this.ax))!=null&&GF(k.T)}else this.T&&GF(this.T.T)}; g.E.Vn=function(k,p){this.qoe&&aoM(this.qoe,k,p);if(this.Y)this.Y.onError(k)}; g.E.e$=function(k){this.qoe&&this.qoe.e$(k)}; g.E.bv=function(k){this.qoe&&this.qoe.bv(k)}; g.E.onPlaybackRateChange=function(k){if(this.qoe)this.qoe.onPlaybackRateChange(k);this.T&&GF(this.T.T)}; g.E.PJ=tw(52);g.E.yT=function(k,p,t){this.qoe&&this.qoe.yT(k,p,t)}; g.E.oX=function(k,p,t){this.qoe&&this.qoe.oX(k,p,t)}; g.E.Q9=function(k){var p;(p=this.qoe)==null||p.Q9(k)}; g.E.bW=function(k){var p;(p=this.qoe)==null||p.bW(k)}; g.E.xn=function(k){this.qoe&&this.qoe.xn(k)}; g.E.IW=function(k,p,t){this.qoe&&this.qoe.IW(k,p,t)}; g.E.VG=tw(26);g.E.mH=function(){if(this.qoe)return this.qoe.mH()}; g.E.pE=function(){if(this.provider.videoData.enableServerStitchedDai&&this.ax){var k,p;return(p=(k=this.N.get(this.ax))==null?void 0:k.pE())!=null?p:{}}return this.T?this.T.pE():{}}; g.E.cL=function(){var k;return(k=this.qoe)==null?void 0:k.cL()}; g.E.fP=function(k,p){var t;(t=this.qoe)==null||t.fP(k,p)}; g.E.VX=function(k){return this.T?this.T.VX(k):function(){}}; g.E.nK=function(){this.T&&this.T.nK()}; g.E.getVideoData=function(){return this.provider.videoData}; g.E.resume=function(){this.qoe&&this.qoe.resume()};g.r(gJ,g.R); gJ.prototype.F8=function(k,p,t){if(this.T.has(k)){var J=this.T.get(k);if(p.videoId&&!V2q(J))this.Y.yT("ssap",{rlc:k}),QyM(this,k);else return}if(!this.T.has(k)){J=new hX(p,this.ih,this.Tb);var q=Math.round(g.VT(this.Y.provider)*1E3);J=new g.ay(J,q);V2q(J)||this.Y.yT("nqv",{vv:p.videoId});q=this.Y.getVideoData();this.T.set(k,J);if(J.qoe){var F=J.qoe,d=q.videoId||"";F.contentCpn=q.clientPlaybackNonce;F.NO=d}WQu(J);t===2&&(this.ih.D("html5_log_ad_playback_docid")?(t=this.Y,t.qoe&&(t=t.qoe,J=p.UQ||"", q=p.breakType||0,p=p.videoId||"",F=this.ih.gy||"yt",g.LL(t,g.VT(t.provider),"ad_playback",[k,J,q,p,F]))):this.Y.IW(k,p.UQ||"",p.breakType||0))}}; gJ.prototype.pY=function(k,p,t,J,q,F,d,S){if(k!==p){var U=this.ZB(k),f=this.ZB(p),b,N=k===((b=U.getVideoData())==null?void 0:b.clientPlaybackNonce),y;b=p===((y=f.getVideoData())==null?void 0:y.clientPlaybackNonce);var Y;y=N?((Y=U.getVideoData())==null?void 0:Y.videoId)||"":"nvd";var T;Y=b?((T=f.getVideoData())==null?void 0:T.videoId)||"":"nvd";N&&(U=U.qoe)!=null&&(QT(U,4,F?4:q?2:0,p,Y,t),U.reportStats());b&&(Mb(f),(p=f.qoe)!=null&&(QT(p,4,F?5:q?3:1,k,y,J),p.reportStats()),LQh(f,new g.Ey(d,f.B1)), Dbi(f));S&&QyM(this,k)}}; gJ.prototype.ZB=function(k){k=k||this.ax;return this.T.get(k)||this.Y};g.r(g.un,g.R);g.E=g.un.prototype; g.E.Lb=function(k,p){this.sync();p&&this.T.array.length>=2E3&&this.I$("captions",1E4);p=this.T;if(k.length>1&&k.length>p.array.length)p.array=p.array.concat(k),p.array.sort(p.T);else for(var t=g.Z(k),J=t.next();!J.done;J=t.next())J=J.value,!p.array.length||p.T(J,p.array[p.array.length-1])>0?p.array.push(J):g.fh(p.array,J,p.T);k=g.Z(k);for(p=k.next();!p.done;p=k.next())p=p.value,p.namespace==="ad"&&this.C("ssap",{acrsid:p.getId(),acrsst:p.start,acrset:p.end,acrscpt:p.playerType});this.N=NaN;this.sync()}; g.E.Bl=function(k){k.length>1E4&&g.wt(new g.hm("Over 10k cueRanges removal occurs with a sample: ",k[0]));if(!this.MO()){for(var p=g.Z(k),t=p.next();!t.done;t=p.next())(t=t.value)&&t.namespace==="ad"&&this.C("ssap",{rcrid:t.getId(),rcst:t.start,rcet:t.end,rcpt:t.playerType});var J=new Set(k);this.Y=this.Y.filter(function(q){return!J.has(q)}); zsu(this.T,J);this.sync()}}; g.E.I$=function(k,p){var t=(isNaN(this.N)?g.u(this.S(),2)?0x8000000000000:this.L()*1E3:this.N)-p;p=this.XS().filter(function(J){return J.namespace===k&&J.end<t}); this.Bl(p);return p}; g.E.XS=function(){return this.MO()?[]:this.T.array}; g.E.reset=function(){this.started=!1;this.X.stop();this.T.array=[];this.Y=[];this.sync()}; g.E.VM=function(k){var p=this.XS().filter(function(t){return t.namespace===k}); this.Bl(p);return p}; g.E.Um=tw(41); g.E.rZ=function(k,p){var t=[],J=XmS(this.T,0x7ffffffffffff),q=[];this.C("ssap",{mecrs:J.length,cpn:p});J=g.Z(J);for(var F=J.next();!F.done;F=J.next())F=F.value,F.active&&(this.C("ssap",{acre:F.id,st:F.start,et:F.end,cpn:p,cpt:F.playerType,pt:k}),p&&p===F.N?(q.push(F),this.C("ssap",{acrec:F.id,st:F.start,et:F.end,pt:k})):F.playerType===k&&(q.push(F),this.C("ssap",{acret:F.id,st:F.start,et:F.end})));t=t.concat(this.tq(q));a5T(this,t);t=[];p=[];J=g.Z(this.Y);for(F=J.next();!F.done;F=J.next())F=F.value, F.active&&F.playerType===k&&F.start===0x7ffffffffffff&&p.push(F);t=t.concat(this.Vg(p));a5T(this,t);return q.length}; g.E.tq=function(k){var p=[];if(!k.length)return p;for(var t=0;t<k.length;t++){var J=k[t];J.active&&this.Y.indexOf(J)===-1&&(this.Y.push(J),p.push([1,J]))}return p}; g.E.Vg=function(k){var p=[];if(!k.length)return p;k.sort(g.kt);k=g.Z(k);for(var t=k.next();!t.done;t=k.next())t=t.value,this.Y.splice(this.Y.indexOf(t),1),p.push([2,t]);return p}; g.E.sync=function(){this.Z=!0;if(!this.B){for(var k=3;this.Z&&k;)this.Z=!1,this.B=!0,this.B8(),this.B=!1,k--;this.S().isPlaying()&&(k=BJS(this.T,this.N),!isNaN(k)&&k<0x7ffffffffffff&&(k=(k-this.N)/this.NO(),this.X.start(k)))}}; g.E.B8=function(){if(this.started&&!this.MO()){this.X.stop();var k=this.S();g.u(k,32)&&this.Y8.start();for(var p=g.u(this.S(),2)?0x8000000000000:this.L()*1E3,t=g.u(k,2),J=[],q=[],F=g.Z(this.Y),d=F.next();!d.done;d=F.next())d=d.value,d.active&&(t?d.end<0x8000000000000:!d.contains(p))&&q.push(d);J=J.concat(this.Vg(q));F=q=null;t?(k=XmS(this.T,0x7ffffffffffff),q=k.filter(function(S){return S.end<0x8000000000000}),F=Rsq(this.T)):k=this.N<=p&&oW(k)?I5h(this.T,this.N,p):XmS(this.T,p); J=J.concat(this.tq(k));q&&(J=J.concat(this.Vg(q)));F&&(J=J.concat(this.tq(F)));this.N=p;a5T(this,J)}}; g.E.Ap=function(){this.Y=[];this.T.array=[];g.R.prototype.Ap.call(this)}; g.Ro.tI(g.un,{Lb:"crmacr",tq:"crmncr",Vg:"crmxcr",B8:"crmis",Bl:"crmrcr"});j2.prototype.add=function(k){this.T=(this.T+1)%this.data.length;this.data[this.T]=k}; j2.prototype.forEach=function(k){for(var p=this.T+1;p<this.data.length;p++)k(this.data[p]||0);for(p=0;p<=this.T;p++)k(this.data[p]||0)}; j2.prototype.clear=function(){for(var k=this.data.length,p=0;p<k;p++)this.data[p]=0;this.Y=this.T=this.data.length-1};g.r(KL,g.o$);KL.prototype.nA=function(){return this.B}; KL.prototype.nI=function(){return this.policy.L&&this.videoData.T?this.videoData.T.N_:Math.max(this.S()-xA(this)*this.T,this.videoData.xx())};g.r(tl,g.R);tl.prototype.SV=function(){var k=this,p=this.Tb.QM(),t=this.Tb.getPlayerState();if(p&&!t.isError()){var J=p.getCurrentTime(),q=t.state===8&&J>this.T,F=g.u(t,8)&&g.u(t,16),d=this.Tb.D5().isBackground()||t.isSuspended();Jl(this,this.pp,F&&!d,q,"qoe.slowseek",function(){},"timeout"); var S=isFinite(this.T);S=F&&S&&RRT(p,this.T);var U=!J||Math.abs(J-this.T)>10,f=this.ih.D("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),b=J===0&&this.Y&&[11,10].includes(this.Y);Jl(this,this.Jp,S&&U&&!d&&(!f||!b),q,"qoe.slowseek",function(){p.seekTo(k.T)},"set_cmt"); U=S&&JN(p.p$(),this.T);var N=this.Tb.Ey;S=!N||N.vW();var y=function(){p.seekTo(k.T+.001)}; Jl(this,this.IY,U&&S&&!d,q,"qoe.slowseek",y,"jiggle_cmt");S=function(){return k.Tb.iD()}; Jl(this,this.k8,U&&!d,q,"qoe.slowseek",S,"new_elem");U=oW(t);f=t.isBuffering();var Y=p.p$(),T=tN(Y,J),A=T>=0&&Y.end(T)>J+5,V=U&&f&&A;b=this.Tb.getVideoData();Jl(this,this.W0,J<.002&&this.T<.002&&F&&g.mq(this.ih)&&g.iE(b)&&!d,q,"qoe.slowseek",S,"slow_seek_shorts");Jl(this,this.gy,b.n7()&&F&&!d&&!b.NO,q,"qoe.slowseek",S,"slow_seek_gapless_shorts");Jl(this,this.NO,V&&!d,U&&!f,"qoe.longrebuffer",y,"jiggle_cmt");Jl(this,this.P0,V&&!d,U&&!f,"qoe.longrebuffer",S,"new_elem_nnr");if(N){var D=N.getCurrentTime(); F=p.Vl();F=sZq(F,D);F=!N.isSeeking()&&J===F;Jl(this,this.nE,U&&f&&F&&!d,U&&!f&&!F,"qoe.longrebuffer",function(){p.seekTo(D)},"seek_to_loader")}F={}; y=tN(Y,Math.max(J-3.5,0));V=y>=0&&J>Y.end(y)-1.1;var v=y>=0&&y+1<Y.length?Y.start(y+1)-Y.end(y):9999;F.mindex=T;F.disIndex=y;F.isdisc=y>=0&&V&&v<11;F.close2edge=V;F.gapsize=v;F.buflen=Y.length;this.Y&&(F.seekSour=this.Y);if(y=this.Tb.dI()){V=y.ZC();v=V!==cI(y,J*1E3).clipId;var w=g.dU(this.ih.experiments,"html5_ssap_skip_seeking_offset_ms"),X=(vI(y,V)+w)/1E3;Jl(this,this.Oy,v&&U&&f&&!d,U&&!f,"qoe.longrebuffer",function(){p.seekTo(X)},"ssap_clip_not_match")}Jl(this,this.j6,U&&f&&!d,U&&!f,"qoe.longrebuffer", function(){},"timeout",F); F=t.isSuspended();F=this.Tb.iY()&&!F;Jl(this,this.Z,F,!F,"qoe.start15s",function(){k.Tb.Fw("ad")},"ads_preroll_timeout"); y=J-this.C<.5;var B;F=!((B=this.Tb.dI())==null||!B.b0());v=(V=b.isAd()||F&&this.ih.experiments.Gb("html5_ssap_skip_slow_ad"))&&U&&!f&&y;B=function(){var O=k.Tb,l=g.hF(O.videoData)&&O.yF,oi=O.fT.getVideoData();(oi&&O.videoData.isAd()&&oi.GI===O.getVideoData().GI||!O.videoData.Ur)&&!l?O.W3("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+O.videoData.videoId):FO(O.videoData,"html5_ssap_skip_slow_ad")&&l&&O.yF.b0()&&(O.Vn(new AD("ssap.transitionfailure",{cpn:cI(O.yF,O.Zw()).clipId,pcpn:O.yF.ZC(), cmt:O.Zw()})),O=O.yF,l=O.playback.Zw(),(l=i39(O,l))&&LVe(O,l.fH()/1E3))}; Jl(this,this.gs,v,!v,"ad.rebuftimeout",B,"skip_slow_ad");y=V&&f&&JN(p.p$(),J+5)&&y;Jl(this,this.qW,y&&!d,!y,"ad.rebuftimeout",B,"skip_slow_ad_buf");B=t.isOrWillBePlaying()&&g.u(t,64)&&!d;Jl(this,this.Fd,B,q,"qoe.start15s",function(){},"timeout"); B=!!N&&!N.Dr&&t.isOrWillBePlaying();Jl(this,this.qO,B,q,"qoe.start15s",S,"newElemMse");B=FN(Y,0);y=g.u(t,16)||g.u(t,32);y=!d&&t.isOrWillBePlaying()&&f&&!y&&(g.u(t,64)||J===0)&&B>5;Jl(this,this.B0,g.iE(b)&&y,U&&!f,"qoe.longrebuffer",function(){k.Tb.MQ()},"reset_media_source"); Jl(this,this.v0,g.iE(b)&&y,U&&!f,"qoe.longrebuffer",S,"reset_media_element");this.C===0&&(this.S=J);y=f&&this.T===0&&J>1&&J===this.S;Jl(this,this.RY,g.iE(b)&&y,U&&!f,"qoe.slowseek",function(){p.seekTo(0)},"reseek_after_time_jump"); d=t.isOrWillBePlaying()&&!d;A=this.Tb.FO()-J<6&&!A&&this.Tb.TZ();Jl(this,this.B,b.n7()&&d&&f&&A,U&&!f,"qoe.longrebuffer",function(){k.Tb.iD(!1,!0)},"handoff_end_long_buffer_reload"); N=(N==null?void 0:BSu(N))||NaN;N=Y.length>1||!isNaN(N)&&N-.1<=J;Jl(this,this.L,xL(b)&&d&&f&&N,U&&!f,"qoe.longrebuffer",S,"gapless_slice_append_stuck");N=T>=0&&Y.end(T)>=2;d=xL(b)&&this.Tb.mQ&&N&&!b.NO&&d&&(f||g.u(t,8)&&g.u(t,16));Jl(this,this.Y8,d,q,"qoe.start15s",S,"gapless_slow_start");t=!!(F&&B>5&&t.isPlaying()&&J<.1);Jl(this,this.ez,t,J>.5&&U,"qoe.longrebuffer",S,"ssap_stuck_in_ad_beginning");this.C=J;this.X.start()}}; tl.prototype.Vn=function(k,p,t){p=this.pE(p);p.wn=t;p.wdup=this.N[k]?"1":"0";this.Tb.Vn(new AD(k,p));this.N[k]=!0}; tl.prototype.pE=function(k){k=Object.assign(this.Tb.pE(!0),k.pE());this.T&&(k.stt=this.T.toFixed(3));this.Tb.getVideoData().isLivePlayback&&(k.ct=this.Tb.getCurrentTime().toFixed(3),k.to=this.Tb.Yx().toFixed(3));delete k.uga;delete k.euri;delete k.referrer;delete k.fexp;delete k.vm;return k}; kd.prototype.reset=function(){this.T=this.Y=this.N=this.startTimestamp=0;this.C=!1}; kd.prototype.test=function(k){if(!this.X||this.Y)return!1;if(!k)return this.reset(),!1;k=(0,g.V9)();if(!this.startTimestamp)this.startTimestamp=k,this.N=0;else if(this.N>=this.X)return this.Y=k,!0;this.N+=1;return!1}; kd.prototype.pE=function(){var k={},p=(0,g.V9)();this.startTimestamp&&(k.wsd=(p-this.startTimestamp).toFixed());this.Y&&(k.wtd=(p-this.Y).toFixed());this.T&&(k.wssd=(p-this.T).toFixed());return k};g.r($Fh,g.R);g.E=$Fh.prototype;g.E.setMediaElement=function(k){(this.mediaElement=k)?(this.mediaElement&&(this.X||this.C||!this.mediaElement.wg()||this.seekTo(.01,{XR:"seektimeline_setupMediaElement"})),oz(this)):FM(this)}; g.E.getCurrentTime=function(){if(qF(this.Tb)){if(!isNaN(this.Y))return this.Y}else if(!isNaN(this.Y)&&isFinite(this.Y))return this.Y;return this.mediaElement&&CBj(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0}; g.E.h7=function(){return this.v0}; g.E.Zw=function(){return this.getCurrentTime()-this.Yx()}; g.E.nI=function(){return this.T?this.T.nI():Infinity}; g.E.isAtLiveHead=function(k){if(!this.T)return!1;k===void 0&&(k=this.getCurrentTime());return Hm(this.T,k)}; g.E.nA=function(){return!!this.T&&this.T.nA()}; g.E.seekTo=function(k,p){var t=p===void 0?{}:p;p=t.VI===void 0?!1:t.VI;var J=t.EJ===void 0?0:t.EJ;var q=t.ij===void 0?!1:t.ij;var F=t.i4===void 0?0:t.i4;var d=t.XR===void 0?"":t.XR;var S=t.seekSource===void 0?void 0:t.seekSource;var U=t.pK===void 0?!1:t.pK;var f=t.Nx===void 0?!1:t.Nx;t=t.n9===void 0?!1:t.n9;U&&(k+=this.Yx());tx(this.videoData)&&this.D("html5_sabr_enable_utc_seek_requests")&&S===29&&(this.v0=void 0);U=k<this.qO&&!!this.Ey;var b=tx(this.videoData)&&f;if(U&&!b&&(this.Tb.yT("sdai",{sk2bk:k.toFixed(3), mt:(k-this.timestampOffset).toFixed(3),lstadj:this.qO.toFixed(3)}),this.qO=NaN,this.timestampOffset-=1E3,(b=this.Ey)!=null)){Xei(b,b.timestampOffset-1E3);var N=b.lh,y=new Set;for(A in N.T){var Y=N.T[A].index,T=Y.IU();T&&!y.has(T)&&(T.startTime+=1E3,T.endTime=T.startTime+T.duration,y.add(T));Y.segments.length&&(T=Y.segments[Y.segments.length-1],Y.segments=[],Y.segments.push(T))}b.B&&b.B.zm();G_(b.C,0,0,!0)}var A=k;(b=tx(this.videoData))&&f?A=!0:(N=this.D("html5_always_allow_sqless_sync")&&this.videoData.m2(), (b||N)&&d==="chunkSelectorSynchronize"?A=!0:(b=!isFinite(A)||(this.T?Hm(this.T,A):A>=this.jV())||!g.VR(this.videoData),b||(A={st:A,mst:this.jV()},this.T&&this.D("html5_high_res_seek_logging")&&(A.ht=this.T.nI(),A.adft=kr9(this.T)),this.Tb.yT("seeknotallowed",A)),A=b));if(!A)return this.N&&(this.N=null,rlh(this)),g.Tq(this.getCurrentTime());A=.005;f&&this.D("html5_sabr_seek_no_shift_tolerance")&&(A=0);if(Math.abs(k-this.Y)<=A&&this.Y8)return this.X;d&&(A=k,(this.ih.DB()||this.D("html5_log_seek_reasons"))&& this.Tb.yT("seekreason",{reason:d,tgt:A}));S&&(this.P0.Y=S);this.Y8&&FM(this);this.X||(this.X=new Mi);k&&!isFinite(k)&&UFe(this,!1);(d=t||U)||(d=k,d=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.T&&!(this.mediaElement&&this.mediaElement.Pn()>0&&uV(this.mediaElement)>0)||dS(this.videoData)&&this.xx()===this.jV(!1)?0:isFinite(d)||!dS(this.videoData)));d||(k=dF(this,k,q));k&&!isFinite(k)&&UFe(this,!1);this.C=k;this.IY=F;this.Y=k;this.L=0;this.T&&(q=this.T,F=k,pui(q,F,!1),te9(q, F));q=this.Tb;F=k;d={VI:p,seekSource:S};q.SW.C=F;t=q.Sp;t.mediaTime=F;t.T=!0;d.VI&&q.QI(d);d=F>q.videoData.endSeconds&&F>q.videoData.limitedPlaybackDurationInSeconds;q.kY&&d&&isFinite(F)&&xFq(q);F<q.jV()-.01&&(d=pW(q.playerState,2),g.u(d,8)&&(d=pW(d,4)),q.CT(d));q.publish("SEEK_TO",q,F);this.X&&(p?J&&this.W0.start(J):(p={Nx:f,seekSource:S},this.Y8=!0,FW9(this,p)));(p=this.Tb.kY)&&k>p.start&&xFq(this.Tb);return this.X}; g.E.jV=function(k){if(!this.videoData.isLivePlayback)return sGw(this.Tb);var p;return O5(this.videoData)&&((p=this.mediaElement)==null?0:p.isPaused())&&this.videoData.T?(k=this.getCurrentTime(),Zxi(this.Zl(k)*1E3)+k):this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&tx(this.videoData)&&this.videoData.T?k?this.videoData.T.Y8||0:this.videoData.T.N_||0:dS(this.videoData)&&this.videoData.Oy&&this.videoData.T?this.videoData.T.jV()+this.timestampOffset:this.videoData.N&&this.videoData.N.T?!k&& this.T?this.T.nI():sGw(this.Tb)+this.timestampOffset:this.mediaElement?eN()?Zxi(this.mediaElement.DN().getTime()):uV(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.E.xx=function(){if(g.hF(this.videoData)){var k=this.Tb;g.hF(k.videoData);var p,t;return(t=(p=k.yF)==null?void 0:p.xx())!=null?t:k.videoData.xx()}if(this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&tx(this.videoData)){var J;return((J=this.videoData.T)==null?void 0:J.LA)||0}p=this.videoData?this.videoData.xx()+this.timestampOffset:this.timestampOffset;return O5(this.videoData)&&this.videoData.T&&(t=Number((k=this.videoData.progressBarStartPosition)==null?void 0:k.utcTimeMillis)/1E3,k= this.getCurrentTime(),k=this.Zl(k)-k,!isNaN(t)&&!isNaN(k))?Math.max(p,t-k):p}; g.E.l8=function(){this.X||this.seekTo(this.C,{XR:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.E.sT=function(){return this.Y8&&!isFinite(this.Y)}; g.E.Ap=function(){fh9(this,null);this.P0.dispose();g.R.prototype.Ap.call(this)}; g.E.pE=function(){var k={};this.Ey&&Object.assign(k,this.Ey.pE());this.mediaElement&&Object.assign(k,this.mediaElement.pE());return k}; g.E.rg=function(k){this.timestampOffset=k}; g.E.getStreamTimeOffset=function(){return dS(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.E.Yx=function(){return this.timestampOffset}; g.E.Zl=function(k){return this.videoData&&this.videoData.T?this.videoData.T.Zl(k-this.timestampOffset):NaN}; g.E.e0=function(){if(!this.mediaElement)return 0;if(We(this.videoData)){var k=this.mediaElement,p=k.p$();k=(qi(p)>0&&k.getDuration()?p.end(p.length-1):0)+this.timestampOffset-this.xx();p=this.jV()-this.xx();return Math.max(0,Math.min(1,k/p))}return this.mediaElement.e0()}; g.E.aV=function(k){this.S&&(this.S.T=k)}; g.E.tb=function(k,p){this.Tb.yT("requestUtcSeek",{time:k});tx(this.videoData)&&this.D("html5_sabr_enable_utc_seek_requests")&&(this.v0=k);var t;(t=this.Ey)==null||t.tb(k);p&&(this.NO=p)}; g.E.oT=function(k){tx(this.videoData)&&this.D("html5_sabr_enable_utc_seek_requests")&&(this.v0=void 0);if(this.NO)this.Tb.yT("utcSeekingFallback",{source:"streamTime",timeSeconds:this.NO}),this.Tb.seekTo(this.NO,{XR:"utcSeekingFallback_streamTime"}),this.NO=0;else{var p=this.getCurrentTime();isNaN(p)||(k=this.Zl(p)-k,p-=k,this.Tb.yT("utcSeekingFallback",{source:"estimate",timeSeconds:p}),this.Tb.seekTo(p,{XR:"utcSeekingFallback_estimate"}))}}; g.E.lC=function(){this.NO=0}; g.E.D=function(k){return this.ih&&this.ih.D(k)};g.r(Eg,g.R);Eg.prototype.start=function(){this.Y.start()}; Eg.prototype.stop=function(){this.Y.stop()}; Eg.prototype.clear=function(){for(var k=g.Z(this.T.values()),p=k.next();!p.done;p=k.next())p.value.clear()}; Eg.prototype.sample=function(){for(var k=g.Z(this.N),p=k.next();!p.done;p=k.next()){var t=g.Z(p.value);p=t.next().value;t=t.next().value;this.T.has(p)||this.T.set(p,new szj(rHC.has(p)));this.T.get(p).update(t())}this.Y.start()}; var rHC=new Set(["networkactivity"]);szj.prototype.update=function(k){this.T?(this.buffer.add(k-this.rX||0),this.rX=k):this.buffer.add(k)}; szj.prototype.clear=function(){this.buffer.clear();this.rX=0};ft.prototype.ER=function(){return this.started}; ft.prototype.start=function(){this.started=!0}; ft.prototype.reset=function(){this.finished=this.started=!1};var wuq=!1;g.r(g.Yd,g.o$);g.E=g.Yd.prototype;g.E.Ap=function(){this.logger.debug("dispose");g.yI(this.q$);Xbe(this.y7);this.visibility.unsubscribe("visibilitystatechange",this.y7);MeM(this);Zh(this);g.B8.KU(this.AQ);this.vj();this.YC=null;g.ER(this.videoData);g.ER(this.l2);g.ER(this.Pz);g.ER(this.ol);g.S9(this.tzp);this.kY=null;g.o$.prototype.Ap.call(this)}; g.E.IW=function(k,p,t,J,q){if(this.ih.D("html5_log_ad_playback_docid")){var F=this.ZB();if(F.qoe){F=F.qoe;var d=this.ih.gy||"yt";g.LL(F,g.VT(F.provider),"ad_playback",[k,p,t,q,d])}}else this.ZB().IW(k,p,t);this.D("html5_log_media_perf_info")&&this.yT("adloudness",{ld:J.toFixed(3),cpn:k})}; g.E.Fc=function(){var k;return(k=this.Ey)==null?void 0:k.Fc()}; g.E.qE=function(){var k;return(k=this.Ey)==null?void 0:k.qE()}; g.E.Hb=function(){var k;return(k=this.Ey)==null?void 0:k.Hb()}; g.E.dY=function(){var k;return(k=this.Ey)==null?void 0:k.dY()}; g.E.CH=function(){return this.videoData.CH()}; g.E.Uk=function(){return this.D("html5_not_reset_media_source")&&!this.CH()&&!this.videoData.isLivePlayback&&g.iE(this.videoData)&&!this.ih.supportsGaplessShorts()}; g.E.gm=function(){if(this.videoData.B){var k;if(!(k=this.videoData.In)){var p;k=(p=this.fT.tp())==null?void 0:p.Fc()}this.videoData.In=k;if(!(k=this.videoData.Wt)){var t;k=(t=this.fT.tp())==null?void 0:t.qE()}this.videoData.Wt=k}if(Eew(this.videoData)||!jJ(this.videoData))t=this.videoData.errorDetail,this.W3(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),t,t,this.videoData.cS||void 0);this.D("html5_generate_content_po_token")&&this.V6();this.D("html5_enable_d6de4")&&this.kH(); if(this.D("html5_ssap_cleanup_player_switch_ad_player")||this.D("html5_ssap_cleanup_ad_player_on_new_data"))if(t=this.fT.hj())this.JT=t.clientPlaybackNonce}; g.E.PW=function(){return this.uv}; g.E.F8=function(){!this.Ad||this.Ad.MO();this.Ad=new g.ay(new hX(this.videoData,this.ih,this));this.uv=new gJ(this.ih,this,this.Ad)}; g.E.getVideoData=function(){return this.videoData}; g.E.G=function(){return this.ih}; g.E.We=function(k){return this.wA.We(this.YC,k===void 0?!1:k)}; g.E.ZB=function(k){if(k)a:{for(var p=this.uv,t=g.Z(p.T.values()),J=t.next();!J.done;J=t.next())if(J=J.value,J.getVideoData().videoId===k){k=J;break a}k=p.Y}else k=this.uv.ZB();return k}; g.E.D5=function(){return this.visibility}; g.E.vL=function(){return this.mediaElement&&this.mediaElement.ZR()?this.mediaElement.KE():null}; g.E.QM=function(){return this.mediaElement}; g.E.D$=function(){if(this.D("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.G().S&&this.G().houseBrandUserStatus&&this.yT("hbut",{status:this.G().houseBrandUserStatus});if(this.videoData.IG())return!0;this.W3("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.E.BO=function(k){(k=k===void 0?!1:k)||g.hF(this.videoData)||Mb(this.ZB());this.yk=k;!this.D$()||this.Xy.ER()?g.mq(this.ih)&&this.videoData.isLivePlayback&&this.Xy.ER()&&!this.Xy.finished&&!this.yk&&this.Il():(this.Xy.start(),k=this.ZB(),g.VT(k.provider),k.qoe&&e0i(k.qoe),this.Il())}; g.E.Il=function(){if(this.videoData.isLoaded()){var k=this.l2;g.dU(k.Cp.experiments,"html5_player_min_build_cl")>0&&g.dU(k.Cp.experiments,"html5_player_min_build_cl")>731116954&&lFi(k,"oldplayer");jz9(this)}else this.videoData.gp||this.videoData.du?this.yk&&g.mq(this.ih)&&this.videoData.isLivePlayback||(this.videoData.gp?uFh(this.videoData):(k=this.ZB(),k.qoe&&(k=k.qoe,nL(k,"protected"),k.provider.videoData.X?k.yL():k.provider.videoData.subscribe("dataloaded",k.yL,k)),eru(this.videoData))):!this.videoData.loading&& this.Z2&&gdS(this)}; g.E.FK=function(k){this.Dx=k;this.Ey&&(Q7h(this.Ey,new g.$A(k)),this.yT("sdai",{sdsstm:1}))}; g.E.nP=function(k){this.yF=k;this.Ey&&this.Ey.nP(k)}; g.E.zJ=tw(15);g.E.isFullscreen=function(){return this.visibility.isFullscreen()}; g.E.isBackground=function(){return this.visibility.isBackground()}; g.E.uc=function(){var k=this;this.logger.debug("Updating for format change");Tr(this).then(function(){return yS(k)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.E.jM=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.BO();this.D$()&&!g.u(this.playerState,128)&&(this.fM.ER()||(this.fM.start(),this.videoData.AP?this.CT(kr(this.playerState,4)):this.CT(kr(kr(this.playerState,8),1))),uM9(this))}; g.E.wR=function(){return this.Xy.finished}; g.E.sendAbandonmentPing=function(){g.u(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.p4(!0),MeM(this),g.B8.KU(this.AQ))}; g.E.XX=function(k,p){k=k===void 0?!0:k;(p===void 0||p)&&this.mediaElement&&this.mediaElement.pause();this.CT(k?new g.Kr(14):new g.Kr)}; g.E.gZ=function(){this.ZB().Bi()}; g.E.W3=function(k,p,t,J,q,F){this.logger.debug(function(){return"set player error: ec="+k+", detail="+q}); var d,S;g.LE(nkq,t)?d=t:t?S=t:d="GENERIC_WITHOUT_LINK";J=(J||"")+(";a6s."+Fy());if(k==="auth"||k==="drm.auth"||k==="heartbeat.stop")t&&(J+=";r."+t.replaceAll(" ","_")),F&&(J+="sr."+F.replaceAll(" ","_"));p={errorCode:k,errorDetail:q,errorMessage:S||g.uU[d]||"",SC:d,cS:F||"",Zh:J,rq:p,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=k;rF(this,"dataloaderror");this.CT(xS(this.playerState,128,p));g.B8.KU(this.AQ);Zh(this);this.Td()}; g.E.Fw=function(k){this.a7=this.a7.filter(function(p){return k!==p}); this.logger.debug(function(){return"set preroll ready for "+k}); g.hF(this.videoData)&&!this.cn()&&this.Sz.qR("pl_pr");this.fM.ER()&&uM9(this)}; g.E.cn=function(){var k;(k=!!this.a7.length)||(k=this.yA.T.array[0],k=!!k&&k.start<=-0x8000000000000);return k}; g.E.nA=function(){return this.SW.nA()}; g.E.isPlaying=function(){return this.playerState.isPlaying()}; g.E.Nk=function(){return this.playerState.Nk()&&this.videoData.AP}; g.E.getPlayerState=function(){return this.playerState}; g.E.T2=function(k){var p;(p=this.Ey)==null||p.T2(k)}; g.E.L1=function(k){var p;(p=this.Ey)==null||p.L1(k)}; g.E.getPlayerType=function(){return this.playerType}; g.E.getPreferredQuality=function(){if(this.YC){var k=this.YC;k=k.videoData.Pt.compose(k.videoData.B9);k=pD(k)}else k="auto";return k}; g.E.wZ=tw(20);g.E.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.E.setMediaElement=function(k){this.logger.debug("set media element");if(this.mediaElement&&k.KE()===this.mediaElement.KE()&&(k.isView()||this.mediaElement.isView())){if(k.isView()||!this.mediaElement.isView())g.Df(this.w0),this.mediaElement=k,this.mediaElement.Tb=this,fD0(this),this.SW.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.vj();if(!this.playerState.isError()){var p=pW(this.playerState,512);g.u(p,8)&&!g.u(p,2)&&(p=kr(p,1));k.isView()&&(p=pW(p,64));this.CT(p)}this.mediaElement= k;this.mediaElement.Tb=this;!g.mq(this.ih)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);fD0(this);this.SW.setMediaElement(this.mediaElement);this.D("html5_prewarm_media_source")&&!this.l2.ZZ()&&PSh(this.mediaElement)}}; g.E.vj=function(k,p,t){k=k===void 0?!1:k;p=p===void 0?!1:p;t=t===void 0?!1:t;this.logger.debug("remove media element");if(this.mediaElement){var J=this.getCurrentTime();J>0&&(this.SW.C=J);this.SW.setMediaElement(null);!k&&this.Uk()?Fh_(this):this.Wk(t);this.Ey&&(HD(this.Ey),VS(this,p));this.RV.stop();if(this.mediaElement&&(!this.fM.ER()&&!this.iY()||this.playerState.isError()||g.u(this.playerState,2)||this.CT(kr(this.playerState,512)),this.mediaElement)){g.Df(this.w0);if(k||!this.mediaElement.isView())this.Sz.LR("mesv_s"), this.mediaElement.stopVideo(),Wu(this);this.mediaElement=this.mediaElement.Tb=null}}}; g.E.playVideo=function(k,p){k=k===void 0?!1:k;p=p===void 0?!1:p;var t=this,J,q,F,d,S,U;return g.Q(function(f){if(f.T==1){t.logger.debug("start play video");var b=window.google_image_requests;b&&b.length>10&&(window.google_image_requests=b.slice(-10));if(g.u(t.playerState,128))return f.return();if(t.l2.LV())return t.publish("signatureexpired"),f.return();t.mediaElement&&Mb(t.ZB());t.jM();(g.u(t.playerState,64)||k)&&t.CT(kr(t.playerState,8));return t.fM.finished&&t.mediaElement?t.YC||!t.uW?f.oY(2): g.n(f,t.uW,3):f.return()}if(f.T!=2&&g.u(t.playerState,128))return f.return();if(!t.videoData.N)return t.videoData.isLivePlayback&&!g.HL(t.ih.X,!0)?(J="html5.unsupportedlive",q=2):(J=t.videoData.CH()?"fmt.unplayable":"fmt.noneavailable",q=1),g.wt(Error("selectableFormats")),t.W3(J,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),f.return();if(t.QX()&&t.videoData.N.T)return t.logger.debug("rebuild playbackData for airplay"),f.return(Tr(t));if(qF(t))b=t.SW,$u(b.videoData)?!b.isAtLiveHead(b.getCurrentTime())&& b.nA()&&b.Tb.seekTo(Infinity,{XR:"seektimeline_peggedToLive",seekSource:34}):g.hF(b.videoData)&&b.getCurrentTime()<b.xx()&&b.Tb.seekTo(b.xx(),{XR:"seektimeline_outOfWindow"});else if($u(t.videoData)){if(F=t.getCurrentTime()<t.xx()-15,d=g.VR(t.videoData)&&t.playerState.isPaused(),S=g.u(t.playerState,1024),b=t.SW,b.videoData.m2()&&uE(b.videoData)||S||!F&&!d||(d?(t.logger.debug("seek to head for live because of live-only"),t.seekTo(Infinity,{XR:"videoplayer_unpauseLiveOnly",seekSource:102})):(t.logger.debug("seek to min seekable for live because of out of window"), t.seekTo(t.xx(),{XR:"videoplayer_outOfWindow",seekSource:102}))),!t.isAtLiveHead(void 0,!0)&&t.nA()&&(t.logger.debug("seek to head for live because pegged to live"),U={XR:"videoplayer_peggedToLive",seekSource:34},t.seekTo(Infinity,U)),g.u(t.playerState,256)&&t.videoData.NO&&t.SW.sT())return t.CT(tZ(t.playerState,8,4)),f.return()}else g.hF(t.videoData)&&t.getCurrentTime()<t.xx()-0&&t.seekTo(t.xx(),{XR:"videoplayer_outOfWindow"});g.u(t.playerState,4)&&g.u(t.playerState,16)&&t.CT(tZ(t.playerState,9, 4));if(yS(t,p))return rRw(t),f.return();T_i(t);g.CS(f)})}; g.E.MQ=function(k){this.logger.debug("reset media source");k&&this.Vn(new AD("qoe.restart",k));this.CT(kr(this.playerState,2048));this.Wk();k=this.videoData.T&&dC(this.videoData.T);var p=this.mediaElement&&this.mediaElement.isView();k||p?(this.Ey&&ouh(this.Ey),this.iD()):(yS(this),this.playerState.isOrWillBePlaying()&&this.playVideo())}; g.E.Na=function(){if(!this.YC)return[];var k=k60(this.wA,this.YC,this.WL());return this.YC.T.Na(k)}; g.E.DA=function(){if(!this.YC)return[];var k=k60(this.wA,this.YC,this.WL());return this.YC.T.DA(k)}; g.E.WL=function(){var k=this.df?this.df.WL():Hx(this.videoData)&&this.videoData.T&&dC(this.videoData.T)?this.videoData.YN?Xp:DXh:Xp;this.JO&&(k=k.compose(xKA));return k}; g.E.QD=function(){return this.YC?k60(this.wA,this.YC,this.WL()):Xp}; g.E.Jq=function(){var k=this.nZ(),p=this.fT.hj().videoId;return this.fT.Qk.Jq(k)||this.fT.Qk.Jq(p)}; g.E.EP=function(k,p,t){var J;if((J=this.ZB().qoe)!=null){var q=k.T,F=g.VT(J.provider);g.LL(J,F,"vfi",[q===0?"":""+q,q===0?"A":"M"])}this.videoData.Pt=k;if(this.YC&&p&&(p=this.wA,J=this.YC,J.T.T)){var d=J.T.videoInfos[0].video.T;q=d!==0&&k.T===d;F=wY()>d;d=p.D("html5_dont_save_under_1080")&&d<1080;if(!q||!F&&!d){var S;q=tT0(p,(S=J.T)==null?void 0:S.videoInfos);S=p.Tb.getPlaybackRate();S>1&&q&&(S=X66(p.ih.X,J.T.videoInfos,S),k.T!==0&&S<k.T&&p.Tb.setPlaybackRate(1));var U,f;k=g.Qs[pD(k)];S=((U=J.videoData.Y)== null?void 0:(f=U.video)==null?void 0:f.T)||0;g.cz("yt-player-quality",{quality:k,previousQuality:S},31104E3);p.ih.schedule.policy.C=wY()>=480;if(p.D("html5_exponential_memory_for_sticky")){U=p.ih.Q4;f=1;var b=b===void 0?!1:b;tHe(U,"sticky-lifetime");U.values["sticky-lifetime"]&&U.LF["sticky-lifetime"]||(U.values["sticky-lifetime"]=0,U.LF["sticky-lifetime"]=0);b&&ZZ(U,"sticky-lifetime")>.0625&&(f=U.LF["sticky-lifetime"]*2);U.values["sticky-lifetime"]+=1*Math.pow(2,U.T/f);U.LF["sticky-lifetime"]=f; U.C.start()}if(p.D("html5_perf_cap_override_sticky")){b=p.N;U=p.D("html5_perserve_av1_perf_cap");U=U===void 0?!1:U;if(U===void 0?0:U){f=Qp();p=g.Z(Object.keys(f));for(k=p.next();!k.done;k=p.next())k=k.value,k.indexOf("1")!==0&&delete f[k];g.cz("yt-player-performance-cap",f,2592E3)}else g.wu("yt-player-performance-cap");Rbq(U);if(U){U=g.Z(Vq.keys());for(f=U.next();!f.done;f=U.next())f=f.value,f.startsWith("1")||Vq.delete(f);U=g.Z(CL.values());for(f=U.next();!f.done;f=U.next())f=f.value,f.startsWith("1")|| CL.delete(f);U=g.Z(b.keys());for(f=U.next();!f.done;f=U.next())f=f.value,f.startsWith("1")||b.delete(f)}else Vq.clear(),CL.clear(),b.clear()}}}this.Ey&&(b=this.Ey,t=t||"",b.policy.T?eQ(b.Y.T,t):eQ(b.T.X,t));this.T3()}; g.E.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.T?pD(this.videoData.Pt):kw[wY()]}; g.E.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.E.setUserAudio51Preference=function(k,p){this.getUserAudio51Preference()!==k&&(this.yT("toggle51",{pref:k}),g.cz("yt-player-audio51",k,p?31536E3:2592E3),this.uc())}; g.E.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.E.setProximaLatencyPreference=function(k){var p=this.getProximaLatencyPreference();this.yT("proxima",{pref:k});g.cz("yt-player-proxima-pref",k,31536E3);p!==k&&(k=this.SW,k.B0=!0,k.Tb.seekTo(Infinity,{XR:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.E.getProximaLatencyPreference=function(){var k;return(k=iy())!=null?k:0}; g.E.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.E.V6=function(){this.videoData.videoId?this.fT.V6(this.videoData):this.yT("povid",{})}; g.E.kH=function(){this.videoData.videoId?this.fT.kH(this.videoData):this.yT("piavid",{})}; g.E.T3=function(){if(!this.MO()&&!g.u(this.playerState,128)&&this.videoData.N){if(this.videoData.N.T)NF(this);else{var k=mW(this),p=this.videoData;a:{var t=this.videoData.UF;if(k.T){for(var J=g.Z(t),q=J.next();!q.done;q=J.next()){q=q.value;var F=q.getInfo(),d=g.Qs[F.video.quality];if((!k.N||F.video.quality!=="auto")&&d<=k.T){t=q;break a}}t=t[t.length-1]}else t=t[0]}p.Jp=t;kHT(this,k.reason,yRu(this,this.videoData.Jp))}if(this.D("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.SW.Z= !1,this.playVideo()}}; g.E.sJ=function(k,p){if(this.MO()||g.u(this.playerState,128))return!1;var t,J=!((t=this.videoData.N)==null||!t.T);t=J&&p?this.getCurrentTime()-this.Yx():NaN;if(this.ih.experiments.Gb("html5_record_audio_format_intent")){var q=this.ZB();if(q.qoe){q=q.qoe;var F=[k.ws.id,isNaN(t)?"m":"t"];g.LL(q,g.VT(q.provider),"afi",F)}}if(J)return p&&(J=NFM(this.SW),this.yT("aswh",{id:k.id,xtags:k.xtags,bh:J.toFixed(3)})),this.Ey.setAudioTrack(k,t,p),!0;if(tf_(this)){a:{p=this.mediaElement.audioTracks();for(J=0;J< p.length;++J)if(t=p[J],t.label===k.ws.getName()){if(t.enabled){p=!1;break a}p=t.enabled=!0;break a}p=void 0}p&&this.yT("hlsaudio",{id:k.id})}else{a:if(p=this.videoData,p.C&&!uG(p.C)||k===p.QK||!p.UF||p.UF.length<=0)p=!1;else{J=g.Z(p.UF);for(t=J.next();!t.done;t=J.next()){t=t.value;if(!(t instanceof q2)){p=!1;break a}q=k.ws.getId();t.Y&&(Dk9(t.Y,q),t.oO=null)}p.QK=k;p=!0}p&&yS(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.yT("hlsaudio",{id:k.id}))}return!0}; g.E.getAvailableAudioTracks=function(){return g.hF(this.videoData)&&this.yF?GxS(this.yF).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.E.getAudioTrack=function(){if(tf_(this)){var k=oQh(this);if(k)return k}return this.videoData.getAudioTrack()}; g.E.vI=function(){if(this.videoData.D("html5_trigger_loader_when_idle_network")&&!this.videoData.m2()&&tx(this.videoData)){var k;(k=this.Ey)!=null&&k.SV()}}; g.E.rF=function(){if(xL(this.videoData)&&this.videoData.D("html5_gapless_append_early")){var k;(k=this.Ey)!=null&&k.SV()}}; g.E.Jk=function(k){k=k===void 0?!1:k;if(this.Ey){var p=this.Ey,t=p.Jk;var J=this.videoData;J=J.D("html5_ssdai_use_post_for_media")&&J.enableServerStitchedDai?!1:dS(J)&&J.Ur&&!J.isAd();t.call(p,J,k)}}; g.E.Wk=function(k){k=k===void 0?!1:k;this.Dr&&(this.logger.debug("remove media source"),QZe(this.Dr),this.Jk(k),this.Dr.dispose(),this.Dr=null)}; g.E.D6=function(){return this.Dr}; g.E.J8=function(k,p,t,J){function q(d){try{S2L(F,d,p,t)}catch(S){g.wt(S),F.handleError(new AD("fmt.unplayable",{msi:"1",ename:S&&typeof S==="object"&&"name"in S?String(S.name):void 0},1))}} var F=this;p=p===void 0?!1:p;t=t===void 0?!1:t;dcS(this,J===void 0?!1:J);this.Dr=k;this.Uk()&&hN(this.Dr)==="open"?q(this.Dr):vMj(this.Dr,q)}; g.E.RT=function(k){this.logger.debug("onNeedKeyInfo");this.wX.set(k.initData,k);this.df&&(this.df.RT(k),this.D("html5_eme_loader_sync")||this.wX.remove(k.initData))}; g.E.Tm=function(k){this.videoData.jG=g.Kj("auto",k,!1,"u");NF(this)}; g.E.aV=function(k){var p=k.reason,t=k.T.info,J=k.token,q=k.videoId,F=this.ZB(q),d=g.hF(this.videoData)?F.getVideoData():this.videoData;if(t!==d.C){var S=!d.C;d.C=t;p!=="m"&&p!=="t"&&(p=S?"i":"a");var U=p==="m"||p==="t";this.ih.experiments.Gb("html5_refactor_sabr_audio_format_selection_logging")?this.oA=new Kb0(d,t,p,"",J,q):F.bv(new Kb0(d,t,p,"",J));this.publish("internalaudioformatchange",d,!S&&U)}this.SW.aV(k.T.index)}; g.E.BP=function(k){this.publish("localmediachange",k)}; g.E.Z1=function(k){k=k===void 0?{}:k;var p;(p=this.Ey)==null||p.Z1(this.ih,py(this.videoData),k)}; g.E.LV=function(){return this.l2.LV()}; g.E.Za=function(k){this.Vn(new AD("staleconfig",{reason:k}))}; g.E.handleError=function(k){this.l2.handleError(k)}; g.E.ZZ=function(){return this.l2.ZZ()}; g.E.oT=function(k){this.SW.oT(k)}; g.E.iD=function(k,p,t){k=k===void 0?!1:k;p=p===void 0?!1:p;t=t===void 0?!1:t;var J=this,q,F,d;return g.Q(function(S){if(S.T==1){J.Ey&&J.Ey.Gu();J.Ey&&J.Ey.MO()&&Zh(J);if(J.D("html5_enable_vp9_fairplay")&&J.CH()&&(q=J.videoData.T)!=null)for(var U in q.T)q.T.hasOwnProperty(U)&&(q.T[U].T=null,q.T[U].N=!1);J.CT(kr(J.playerState,2048));J.D("html5_ssap_keep_media_on_finish_segment")&&g.hF(J.videoData)?J.publish("newelementrequired",t):J.publish("newelementrequired");return k?g.n(S,Tr(J),2):S.oY(2)}J.videoData.m2()&& ((F=J.Ey)==null?0:F.NO)&&!qF(J)&&((d=J.isAtLiveHead())&&$u(J.videoData)?J.seekTo(Infinity,{XR:"videoPlayer_getNewElement"}):J.videoData.FA&&J.Ey&&(U=J.Ey,U.lh.m2&&(U.lh.FA||U.lh.C||U.lh.isPremiere?(U.seek(0,{XR:"loader_resetSqless"}),U.videoTrack.Z=!0,U.audioTrack.Z=!0,U.videoTrack.X=!0,U.audioTrack.X=!0):CR(U.lh)&&xN(U))));p&&J.seekTo(0,{seekSource:105});g.u(J.playerState,8)&&(J.D("html5_ssap_keep_media_on_finish_segment")&&g.hF(J.videoData)?J.playVideo(!1,t):J.playVideo());g.CS(S)})}; g.E.M3=function(k){this.yT("hgte",{ne:+k});this.videoData.B=!1;k&&this.iD();this.Ey&&ouh(this.Ey)}; g.E.fN=function(k){this.yT("newelem",{r:k});this.iD()}; g.E.pauseVideo=function(k){k=k===void 0?!1:k;if((g.u(this.playerState,64)||g.u(this.playerState,2))&&!k)if(g.u(this.playerState,8))this.CT(tZ(this.playerState,4,8));else if(this.Nk())yS(this);else return;g.u(this.playerState,128)||(k?this.CT(kr(this.playerState,256)):this.CT(tZ(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.VR(this.videoData)&&this.Ey&&VS(this,!1)}; g.E.stopVideo=function(){this.pauseVideo();this.Ey&&(VS(this,!1),this.Ey.Jt())}; g.E.Td=function(k,p){k=k===void 0?!1:k;p=p===void 0?!1:p;if(this.Uk()&&p){var t;(t=this.mediaElement)==null||t.Td()}else{var J;(J=this.mediaElement)==null||J.stopVideo()}Wu(this);Zh(this);g.u(this.playerState,128)||(k?this.CT(pW(pW(kr(this.playerState,4),8),16)):this.CT(xS(this.playerState)));this.videoData.videoId&&this.ih.Oy.remove(this.videoData.videoId)}; g.E.seekTo=function(k,p){p=p===void 0?{}:p;this.logger.debug(function(){return"SeekTo "+k+", "+JSON.stringify(p)}); g.u(this.playerState,2)&&yS(this);p.ItO&&this.CT(kr(this.playerState,2048));p.seekSource!==58&&p.seekSource!==60||!this.D("html5_update_vss_during_gapless_seeking")||syT(this.ZB(),p.seekSource);this.SW.seekTo(k,p);this.yA.sync()}; g.E.QI=function(k){this.Sz.C.N9();g.u(this.playerState,32)||(this.CT(kr(this.playerState,32,k==null?void 0:k.seekSource)),g.u(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.OF()}; g.E.ED=function(k){k=k==null?void 0:k.seekSource;g.u(this.playerState,32)?(this.CT(tZ(this.playerState,16,32,k)),this.publish("endseeking",this)):g.u(this.playerState,2)||this.CT(kr(this.playerState,16,k));this.Sz.C.F2(this.videoData,this.playerState.isPaused())}; g.E.aM=function(k){this.ED(k)}; g.E.Br=function(){this.publish("SEEK_COMPLETE")}; g.E.yw=function(){this.publish("onAbnormalityDetected")}; g.E.UC=function(k){var p=this.fT,t=this.videoData.clientPlaybackNonce,J=this.playerType;if(k.scope===4){var q=k.type;if(q){var F=p.iG(),d=F.getVideoData().clientPlaybackNonce;J===1&&(d=t);(p=S4i(p,d))?(t=p.getVideoData())&&(k.writePolicy===2&&t.sabrContextUpdates.has(q)||t.sabrContextUpdates.set(q,k)):F.yT("scuset",{ncpf:"1",ccpn:d,crcpn:t})}else g.wt(Error("b/380308491: contextUpdateType is undefined"))}}; g.E.G_=function(){if(this.playerType===2)return this.fT.G_("")}; g.E.getCurrentTime=function(){return this.SW.getCurrentTime()}; g.E.h7=function(){return this.SW.h7()}; g.E.Zw=function(){return this.SW.Zw()}; g.E.z9=function(k){return this.yF&&(k=k||this.yF.ZC())?qA(this.yF,k):this.Zw()}; g.E.nI=function(){return this.SW.nI()}; g.E.getPlaylistSequenceForTime=function(k){return this.videoData.getPlaylistSequenceForTime(k-this.Yx())}; g.E.jw=function(){var k=NaN;this.mediaElement&&(k=this.mediaElement.jw());return k>=0?k:this.getCurrentTime()}; g.E.Zl=function(){var k;return((k=this.videoData.T)==null?0:k.Zl)?this.videoData.T.Zl(this.getCurrentTime()-this.Yx()):this.mediaElement&&(k=this.mediaElement.DN())&&(k=k.getTime(),!isNaN(k))?k/1E3+this.getCurrentTime():NaN}; g.E.getDuration=function(k){return g.hF(this.videoData)&&this.yF?k?Pe6(this.yF,k):K$(this.yF):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Yx():this.jV()?this.jV():0}; g.E.Wg=function(){var k=new iLq;if(this.Ey){var p=this.ih.schedule,t=this.ih.DB();t=t===void 0?!1:t;k.i_=p.NO;k.T5=p.IY;k.bandwidthEstimate=TG(p);if(t){t=(p.B.L$()*1E3).toFixed();var J=(p.j6.L$()*1E3).toFixed(),q=Nu(p).toFixed(2),F=((p.Z.L$()||0)*1E9).toFixed(2),d=p.N.L$().toFixed(0),S=p.Oy.L$().toFixed(0),U=p.L.percentile(.5).toFixed(2),f=p.L.percentile(.92).toFixed(2),b=p.L.percentile(.96).toFixed(2),N=p.L.percentile(.98).toFixed(2);p.T?p.T.reset():p.T=new qu;p.T.add(p.P0);p.T.add(p.interruptions.length); for(var y=0,Y=p.interruptions.length-1;Y>=0;Y--){var T=p.interruptions[Y];p.T.add(T-y);y=T}y=0;for(Y=p.C.length-1;Y>=0;Y--){T=p.C[Y];var A=T.stamp/36E5;p.T.add(A-y);y=A;p.T.add(T.net/1E3);p.T.add(T.max)}p=p.T.zH();k.T={ttr:t,ttm:J,d:q,st:F,bw:d,abw:S,v50:U,v92:f,v96:b,v98:N,"int":p}}iy_(this.Ey,k)}else this.mediaElement&&(k.Nb=lV(this.mediaElement));k.i_=this.i_;k.T5=this.T5;k.N=this.isAtLiveHead()&&this.isPlaying()?hHj(this):NaN;return k}; g.E.lW=function(k,p){this.T5+=k;this.i_+=p}; g.E.e0=function(){return this.mediaElement?g.VR(this.videoData)?1:We(this.videoData)?this.isAtLiveHead()||this.nA()?1:this.SW.e0():this.mediaElement.e0():0}; g.E.Ie=function(){var k=this.getCurrentTime();if(this.df){var p="IT/"+(this.df.T.getInfo()+"/"+pD(this.WL()));p+="/"+this.df.getInfo()}else p="";var t=this.isGapless(),J=this.yN(),q=this.mH(),F=g.Al(this),d=this.getPlayerState(),S=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var U=0;var f="";if(this.Dx){if(this.Dx.bO){f="D,";break a}U=this.Dx.He();f=this.Dx.ZC().substring(0,4)}else this.yF&&(U=this.yF.He(),f=this.yF.ZC().substring(0,4));U>0?(U="AD"+U+", ",f&&(U+=f+", "),f=U):f=""}return{currentTime:k, X8:p,isGapless:t,yN:J,jo:q,OZT:F,playerState:d,hwy:S,Njp:this.H_,kB:f,ytG:this.vg()}}; g.E.pE=function(k){var p={};if(k===void 0?0:k){Object.assign(p,this.ZB().pE());this.mediaElement&&(Object.assign(p,this.mediaElement.pE()),Object.assign(p,this.vg()));this.Ey&&Object.assign(p,this.Ey.pE());this.df&&(p.drm=JSON.stringify(this.df.pE()));p.state=this.playerState.state.toString(16);g.u(this.playerState,128)&&(p.debug_error=JSON.stringify(this.playerState.JD));this.cn()&&(p.prerolls=this.a7.join(","));this.videoData.Kb&&(p.ismb=this.videoData.Kb);this.videoData.latencyClass!=="UNKNOWN"&& (p.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(p.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)p.is_mosaic=1;this.videoData.cotn&&(p.is_offline=1,p.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(p.playerResponseCpn=this.videoData.playerResponseCpn);this.fT.isOrchestrationLeader()&&(p.leader=1);this.videoData.isLivePlayback&&(this.videoData.T&& Ym(this.videoData.T)&&(p.segduration=Ym(this.videoData.T)),k=this.SW,p.lat=k.S?l5M(k.S.C):0,p.liveutcstart=this.videoData.liveUtcStartSeconds);p.relative_loudness=this.videoData.wd.toFixed(3);if(k=g.Al(this))p.optimal_format=k.video.qualityLabel;p.user_qual=wY();p.release_version="youtube.player.web_20250225_01_RC00";g.hF(this.videoData)&&this.yF&&(p.ssap=C$(this.yF))}p.debug_videoId=this.videoData.videoId;return p}; g.E.addCueRange=function(k){this.Fs([k])}; g.E.removeCueRange=function(k){this.yA.Bl([k])}; g.E.wM=function(){this.yA.sync()}; g.E.I$=function(k,p){return this.yA.I$(k,p)}; g.E.Fs=function(k,p){this.yA.Lb(k,p)}; g.E.O0=function(k){this.yA.Bl(k)}; g.E.OL=function(k){var p=this.yA;k.length<=0||p.MO()||(k=p.T,k.array.sort(k.T))}; g.E.XS=function(){return this.yA.XS()||[]}; g.E.Lj=function(){return this.Tc}; g.E.QX=function(){return this.visibility.QX()}; g.E.E9=function(){this.mediaElement&&this.mediaElement.E9()}; g.E.oW8=function(){rF(this)}; g.E.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.E.g_=function(k){var p=k.target.Yh();if(this.mediaElement&&this.mediaElement.Yh()&&this.mediaElement.Yh()===p){Vfw(this,k.type);switch(k.type){case "error":var t=OI(this.mediaElement)||"",J=this.mediaElement.C$();if(t==="capability.changed"){this.D("html5_restart_on_capability_change")?(this.yT("capchg",{msg:J}),this.iD(!0)):Tr(this);return}if(this.mediaElement.hasError()&&(aFL(this.l2,t,{msg:J})||g.hF(this.videoData)&&this.yF&&(J=this.playerState.JD,this.yF.handleError(t,J==null?void 0:J.rq))))return; if(this.isBackground()&&this.mediaElement.eE()===4){this.Td();Ct(this,"unplayable");return}break;case "durationchange":t=this.mediaElement.getDuration();isFinite(t)&&(!this.Dr||t>0)&&t!==1&&this.gP(t);break;case "ratechange":this.Ey&&this.Ey.setPlaybackRate(this.mediaElement.getPlaybackRate());esi(this.yA);this.ZB().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Dcu(this);this.publish("onLoadedMetadata");N_e(this);t=this.Zl();this.videoData.Fx&&(this.videoData.Fx=t);break; case "loadstart":N_e(this);break;case "progress":case "suspend":this.OF();this.publish("onLoadProgress",this,this.e0());break;case "playing":this.Sz.LR("plev");this.TG&&!qF(this)&&(this.TG=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{XR:"videoplayer_onPlaying"})));break;case "timeupdate":t=this.mediaElement&&!this.mediaElement.getCurrentTime();J=this.mediaElement&&this.mediaElement.Pn()===0;if(t&&(!this.D9||J))return;this.D9=this.D9||!!this.mediaElement.getCurrentTime(); bg_(this);this.OF();if(!this.mediaElement||this.mediaElement.Yh()!==p)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.Vl().length>0&&this.mediaElement.p$().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.Ey)return;this.D("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Pn()>2||!this.mediaElement.isSeeking()&&JN(this.mediaElement.p$(),this.mediaElement.getCurrentTime()))&& (t=this.mediaElement.pE(),t.bh=lV(this.mediaElement).toFixed(3),this.yT("uwe",t));g.hF(this.videoData)&&this.yF&&LVe(this.yF,this.mediaElement.getCurrentTime());break;case "resize":Dcu(this);this.videoData.Y&&this.videoData.Y.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.yS&&g.u(this.playerState,8)&&!g.u(this.playerState,1024)&&this.getCurrentTime()===0&&g.y9){Ct(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Yh()=== p){Ve0(this.SW,k,this.yF||void 0);this.publish("videoelementevent",k);p=this.playerState;J=this.Sp;var q=this.mediaElement;t=this.videoData.clientPlaybackNonce;var F=g.hF(this.videoData)&&this.yF?K$(this.yF):void 0;if(!g.u(p,128)){var d=p.state;q=q?q:k.target;var S=q.getCurrentTime();if(!g.u(p,64)||k.type!=="ended"&&k.type!=="pause"){F=F||q.getDuration();F=q.isEnded()||S>1&&Math.abs(S-F)<1.1;var U=k.type==="pause"&&q.isEnded();S=k.type==="ended"||k.type==="waiting"||k.type==="timeupdate"&&!g.u(p, 4)&&!ln(J,S);if(U||F&&S)q.gR()>0&&q.Yh()&&(d=14);else switch(k.type){case "error":OI(q)&&(d|=128);break;case "pause":g.u(p,256)?(d^=256)||(d=64):g.u(p,32)||g.u(p,2)||g.u(p,4)||(d=4,g.u(p,1)&&g.u(p,8)&&(d|=1));break;case "playing":S=d;d=(d|8)&-1093;S&4?(d|=1,Ho(J,q,!0)):ln(J,q.getCurrentTime())&&(d&=-2);g.u(p,1)&&Ho(J,q)&&(d|=1);break;case "seeking":d|=16;g.u(p,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;Ho(J,q,!0);break;case "waiting":g.u(p,2)||(d|=1);Ho(J,q);break;case "timeupdate":S=g.u(p,16),F= g.u(p,4),(g.u(p,8)||S)&&!F&&ln(J,q.getCurrentTime())&&(d=8),Ho(J,q)&&(d|=1)}}J=d;d=null;J&128&&(d=k.target,q=OI(d),S=1,q?(q==="capability.changed"&&(S=2),F="GENERIC_WITHOUT_LINK",U=d.pE(),U.mediaElem="1",/AUDIO_RENDERER/.test(d.C$())&&(F="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:q,errorMessage:g.uU[F]||"",SC:F,Zh:CC(U),rq:S,cpn:p.JD?p.JD.cpn:""}):d=null,d&&(d.cpn=t));p=xS(p,J,d)}!g.u(this.playerState,1)&&g.u(p,1)&&mcT(this,"evt"+k.type);this.CT(p)}}}; g.E.kAy=function(k){k=k.T.availability==="available";k!==this.Tc&&(this.Tc=k,this.publish("airplayavailabilitychange"))}; g.E.wpr=function(){var k=(0,g.V9)(),p=this.mediaElement.QX();this.yT("airplay",{ia:p});!p&&!isNaN(this.B$)&&k-this.B$<2E3||(this.B$=k,p!==this.QX()&&(k=this.visibility,k.T!==p&&(k.T=p,k.y7()),this.yT("airplay",{rbld:p}),this.uc()),this.publish("airplayactivechange"))}; g.E.kP=function(k){if(this.Ey){var p=this.Ey,t=p.C,J=p.getCurrentTime(),q=Date.now()-t.L;t.L=NaN;t.yT("sdai",{adfetchdone:k,d:q});k&&!isNaN(t.Z)&&t.Y!==3&&i1(t.Ey,J,t.Z,t.X);t.policy.X?t.N=NaN:t.C=NaN;nN(t,4,t.Y===3?"adfps":"adf");HD(p)}}; g.E.nY=function(){g.yI(this.q$);this.RV.stop();this.videoData.NO=!0;this.ih.Gv=!0;this.ih.nE=0;var k=this.l2;if(k.videoData.Y){var p=k.Cp.X,t=k.videoData.Y.H0;p.Y.has(t)&&(p.Y.delete(t),xm(p))}k.T.stop();this.g3();g.u(this.playerState,8)&&this.CT(pW(this.playerState,65));this.yk=!1;Dbi(this.ZB());g.Oc(this.Pz);this.publish("playbackstarted");(k=g.hw("yt.scheduler.instance.clearPriorityThreshold"))?k():Hz(0,0)}; g.E.g3=function(){var k=this.fT.hj(),p={},t={};!RF("pbs",this.Sz.timerName)&&WF.measure&&WF.getEntriesByName&&(WF.getEntriesByName("mark_nr")[0]?FYi("mark_nr"):FYi());k.videoId&&(p.videoId=k.videoId);k.clientPlaybackNonce&&!this.D("web_player_early_cpn")&&(p.clientPlaybackNonce=k.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(t.isPausedOnLoad=!0);t.itag=k.Y?Number(k.Y.itag):-1;k.kx&&(t.preloadType=String(this.m4?2:1));p.liveStreamMode=EBL[Tl(k)];p.playerInfo=t;this.Sz.infoGel(p); if(this.Ey){k=this.Ey.timing;window&&window.performance&&window.performance.getEntriesByName&&(k.N&&(p=window.performance.getEntriesByName(k.N),p.length&&(p=p[0],k.tick("vri",p.fetchStart),k.tick("vdns",p.domainLookupEnd),k.tick("vreq",p.requestStart),k.tick("vrc",p.responseEnd))),k.Y&&(p=window.performance.getEntriesByName(k.Y),p.length&&(p=p[0],k.tick("ari",p.fetchStart),k.tick("adns",p.domainLookupEnd),k.tick("areq",p.requestStart),k.tick("arc",p.responseEnd))));k=k.ticks;for(var J in k)k.hasOwnProperty(J)&& this.Sz.tick(J,k[J])}}; g.E.tJ=function(k,p,t){k=(k+(this.Mg===3?.3:0))/p;p=Math.floor(k*4);p>this.Mg&&(this.yT("vpq",{q:p,cpn:t||this.videoData.clientPlaybackNonce,ratio:k.toFixed(3)}),this.Mg=p)}; g.E.Hw=function(){this.Mg=-1}; g.E.OF=function(k){var p=this;k=k===void 0?!1:k;if(this.mediaElement&&this.videoData){ylw(this.SW,this.isPlaying());var t=this.getCurrentTime();!this.Ey||g.u(this.playerState,4)&&g.VR(this.videoData)||g.u(this.playerState,32)&&tx(this.videoData)||PES(this.Ey,t);this.D("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.tJ(t,this.videoData.lengthSeconds);t>5&&(this.SW.C=t);var J=g.KG();J?g.B8.KU(this.AQ):g.N8(this.AQ);var q=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!q||O5(this.videoData))&& !g.u(this.playerState,128)){var F=function(){if(p.mediaElement&&!g.u(p.playerState,128)){p.ih.DB()&&Vfw(p,"pfx");var d=p.getCurrentTime();p.D("html5_buffer_underrun_transition_fix")&&(d-=p.Yx());var S=lV(p.mediaElement),U=g.u(p.playerState,8),f=ln(p.Sp,d),b=zRh(p.Sp,d,(0,g.V9)(),S);U&&f?p.CT(pW(p.playerState,1)):U&&b?(U=p.getDuration(),f=$u(p.videoData),U&&Math.abs(U-d)<1.1?(p.yT("setended",{ct:d,bh:S,dur:U,live:f}),p.mediaElement.QV()?(p.logger.debug("seek to 0 because of looping"),p.seekTo(0,{XR:"videoplayer_loop", seekSource:37})):p.XX()):(p.playerState.isBuffering()||mcT(p,"progress_fix"),p.CT(kr(p.playerState,1)))):(U&&!f&&!b&&d>0&&(U=(Date.now()-p.qZ)/1E3,f=p.getDuration(),d>f-1&&p.yT("misspg",{t:d.toFixed(2),d:f.toFixed(2),r:U.toFixed(2),bh:S.toFixed(2)})),p.playerState.isPaused()&&p.playerState.isBuffering()&&lV(p.mediaElement)>5&&p.CT(pW(p.playerState,1)));p.OF()}}; this.mediaElement.Vl().length===0?this.AQ=J?g.B8.Hj(F,100):g.fY(F,100):this.AQ=J?g.B8.Hj(F,500):g.fY(F,500)}this.videoData.W0=t;this.yF&&this.yF.Jb();!k&&this.isPlaying()&&Y2j(this);fow(this.wA,this.YC,this.QM(),this.isBackground())&&NF(this);this.publish("progresssync",this,k);q&&O5(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.E.L_=function(){this.W3("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.E.mH=function(){return this.ZB().mH()}; g.E.h4=function(){return this.Ey?this.Ey.h4():TG(this.ih.schedule,!0)}; g.E.CT=function(k){if(!g.JZ(this.playerState,k)){this.logger.debug(function(){return"Setting state "+k.toString()}); var p=new g.Ey(k,this.playerState);this.playerState=k;Wh9(this);var t=!this.Oj.length;this.Oj.push(p);var J=this.mediaElement&&this.mediaElement.isSeeking();J=p.oldState.state===8&&!J;g.Uy(p,1)&&J&&g.u(this.playerState,8)&&!g.u(this.playerState,64)&&this.Ey&&(JxL(this.Ey),this.mediaElement&&lV(this.mediaElement)>=5&&SFu(this.wA,this.YC)&&NF(this));(J=g.dU(this.ih.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.u(k,1)&&(g.u(k,8)||g.u(k,16))?this.UN.start(J):this.UN.stop();(SV(p,8)<0|| g.Uy(p,1024))&&this.RV.stop();!g.Uy(p,8)||this.videoData.NO||g.u(p.state,1024)||this.RV.start();g.u(p.state,8)&&SV(p,16)<0&&!g.u(p.state,32)&&!g.u(p.state,2)&&this.playVideo();g.u(p.state,2)&&We(this.videoData)&&(this.gP(this.getCurrentTime()),this.OF(!0));g.Uy(p,2)&&(this.p4(!0),this.ih.DB()&&this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&tx(this.videoData)&&this.videoData.T&&(J={minst:""+this.videoData.T.LA,cminst:""+(this.videoData.T.xx()+this.Yx()),maxst:""+this.videoData.T.N_, hts:""+this.videoData.T.Y8,cmaxst:""+(this.videoData.T.jV()+this.Yx())},this.yT("sabrSeekableBoundaries",J)));g.Uy(p,128)&&this.Td();this.videoData.T&&this.videoData.isLivePlayback&&!this.Pf&&(SV(p,8)<0?dwS(this.videoData.T):g.Uy(p,8)&&this.videoData.T.resume());btj(this.SW,p);LQh(this.ZB(),p);if(t&&!this.MO())try{for(var q=g.Z(this.Oj),F=q.next();!F.done;F=q.next()){var d=F.value;hs0(this.yA,d);this.publish("statechange",d)}}finally{this.Oj.length=0}}}; g.E.dF=function(){this.Sz.tick("qoes")}; g.E.l8=function(){this.SW.l8()}; g.E.zM=function(k,p,t,J){a:{var q=this.l2;J=J===void 0?"LICENSE":J;t=t.substring(0,256);var F=mO(p);k==="drm.keyerror"&&this.df&&this.df.Y.keys.length>1&&q.C<96&&(k="drm.sessionlimitexhausted",F=!1);if(F)if(q.videoData.Y&&q.videoData.Y.video.isHdr())Obu(q,k);else{if(q.Tb.W3(k,p,J,t),zPM(q,{detail:t}))break a}else q.Vn(k,{detail:t});k==="drm.sessionlimitexhausted"&&(q.yT("retrydrm",{sessionLimitExhausted:1}),q.C++,AR6(q.Tb))}}; g.E.ZT6=function(){var k=this,p=g.dU(this.ih.experiments,"html5_license_constraint_delay"),t=KY();p&&t?(p=new g.jF(function(){k.T3();rF(k)},p),g.z(this,p),p.start()):(this.T3(),rF(this))}; g.E.Bm=function(k){this.publish("heartbeatparams",k)}; g.E.GL=function(k){this.yT("keystatuses",ERj(k));var p="auto",t=!1;this.videoData.Y&&(p=this.videoData.Y.video.quality,t=this.videoData.Y.video.isHdr());if(this.D("html5_drm_check_all_key_error_states")){var J=SSe(p,t);J=Nb(k)?UE0(k,J):k.C.includes(J)}else{a:{p=SSe(p,t);for(J in k.T)if(k.T[J].status==="output-restricted"){var q=k.T[J].type;if(p===""||q==="AUDIO"||p===q){J=!0;break a}}J=!1}J=!J}if(this.D("html5_enable_vp9_fairplay")){if(t)if(k.Z){var F;if((F=this.df)==null?0:i_(F.T))if((t=this.df)== null)t=0;else{p=F=void 0;q=g.Z(t.Y.values());for(var d=q.next();!d.done;d=q.next())d=d.value,F||(F=fBM(d,"SD")),p||(p=fBM(d,"AUDIO"));t.Sb({sd:F,audio:p});t=F==="output-restricted"||p==="output-restricted"}else t=!J;if(t){this.yT("drm",{dshdr:1});Obu(this.l2);return}}else{this.videoData.yc||(this.videoData.yc=!0,this.yT("drm",{dphdr:1}),this.iD(!0));return}var S;if((S=this.df)==null?0:i_(S.T))return}else if(S=k.Z&&J,t&&!S){Obu(this.l2);return}J||UE0(k,"AUDIO")&&UE0(k,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), k=ERj(k),this.JO?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.D("html5_report_fatal_drm_restricted_error_killswitch")||this.W3("drm.keyerror",2,void 0,"info."+k)):(this.JO=!0,this.Vn(new AD("qoe.restart",Object.assign({},{retrydrm:1},k))),NF(this),AR6(this)))}; g.E.Ix8=function(){if(!this.videoData.NO&&this.mediaElement&&!this.isBackground()){var k="0";this.mediaElement.Pn()>0&&lV(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.T&&(this.CT(kr(this.playerState,1)),mcT(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),k="1");Wh9(this);var p=this.videoData.N;k={restartmsg:k,mfmt:!Hx(this.videoData),mdrm:!(!(p&&p.videoInfos&&p.videoInfos.length&&p.videoInfos[0].xf)||this.df),mfmtinfo:!this.videoData.Y,prerolls:this.cn()?this.a7.join(","): "0"};if(this.df){p=this.df;if(p.Y.size<=0){var t="ns;";p.L||(t+="nr;");p=t+="ql."+p.N.length}else p=ERj(p.Y.values().next().value),p=CC(p);k.drmp=p}var J;Object.assign(k,((J=this.Ey)==null?void 0:J.pE())||{});var q;Object.assign(k,((q=this.mediaElement)==null?void 0:q.pE())||{});this.ZB().Vn("qoe.start15s",CC(k));this.publish("loadsofttimeout")}}; g.E.gP=function(k){this.videoData.lengthSeconds!==k&&(this.videoData.lengthSeconds=k,rF(this))}; g.E.p4=function(k,p){var t=this;k=k===void 0?!1:k;if(!this.Bu)if(RF("att_s","player_att")||zg("att_s",void 0,"player_att"),this.D("use_rta_for_player"))(function(){var q,F,d,S;return g.Q(function(U){switch(U.T){case 1:if(!(q=k)){U.oY(2);break}return g.n(U,g.P70(),3);case 3:q=!U.Y;case 2:if(q)return U.return();g.Aw(U,4);F=nAq(t.ZB());if(!F)throw Error();d={};return g.n(U,g.QNi((d.cpn=t.videoData.clientPlaybackNonce,d.encryptedVideoId=t.videoData.videoId||"",d),3E4),6);case 6:S=U.Y;if(t.Bu)throw Error(); if(!S.challenge)throw g.wt(Error("Not sending attestation ping; no attestation challenge string")),Error();t.Bu=!0;var f=[S.challenge];S.error?f.push("r1c="+S.error):S.webResponse&&f.push("r1a="+S.webResponse);var b;((b=S.adblockReporting)==null?void 0:b.reportingStatus)!==void 0&&f.push("r6a="+S.adblockReporting.reportingStatus);var N;((N=S.adblockReporting)==null?void 0:N.broadSpectrumDetectionResult)!==void 0&&f.push("r6b="+S.adblockReporting.broadSpectrumDetectionResult);F(f.join("&"));zg("att_f", void 0,"player_att");g.Vi(U,0);break;case 4:g.W9(U),zg("att_e",void 0,"player_att"),g.CS(U)}})})().then(function(){p==null||p()}); else{var J=new g.QcL(this.videoData);if("c1a"in J.OU&&!g.sJ.isInitialized()){zg("att_wb",void 0,"player_att");this.Ks===2&&Math.random()<.01&&g.wt(Error("Botguard not available after 2 attempts"));if(k)return;if(this.Ks<5){g.Oc(this.ol);this.Ks++;return}}(J=g.PYM(J))?(zg("att_f",void 0,"player_att"),cXi(this.ZB(),J),this.Bu=!0):zg("att_e",void 0,"player_att")}}; g.E.FO=function(k){k=k===void 0?!1:k;if($u(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.nA()||g.VR(this.videoData)))k=this.getCurrentTime();else if(g.hF(this.videoData)&&this.yF){k=this.yF;var p=this.getCurrentTime();k=(k=wqq(k,p*1E3))?(k.fH()-k.qh())/1E3:0}else k=this.jV(k);return k}; g.E.Xc=function(){return g.hF(this.videoData)?this.videoData.xx():this.xx()}; g.E.jV=function(k){return this.SW.jV(k===void 0?!1:k)}; g.E.xx=function(){return this.SW.xx()}; g.E.Yx=function(){return this.SW?this.SW.Yx():0}; g.E.getStreamTimeOffset=function(){return this.SW?this.SW.getStreamTimeOffset():0}; g.E.h_=function(){var k=0;this.ih.D("web_player_ss_media_time_offset")&&(k=this.getStreamTimeOffset()===0?this.Yx():this.getStreamTimeOffset());return k}; g.E.setPlaybackRate=function(k){var p;this.playbackRate!==k&&tT0(this.wA,(p=this.videoData.N)==null?void 0:p.videoInfos)&&(this.playbackRate=k,NF(this));this.playbackRate=k;this.mediaElement&&this.mediaElement.setPlaybackRate(k)}; g.E.getPlaybackRate=function(){return this.playbackRate}; g.E.getPlaybackQuality=function(){var k="unknown";if(this.videoData.Y&&(k=this.videoData.Y.video.quality,k==="auto"&&this.mediaElement)){var p=this.vL();p&&p.videoHeight>0&&(k=iG(p.videoWidth,p.videoHeight))}return k}; g.E.isHdr=function(){return!!(this.videoData.Y&&this.videoData.Y.video&&this.videoData.Y.video.isHdr())}; g.E.nK=function(){this.ZB().nK()}; g.E.sendVideoStatsEngageEvent=function(k,p){var t=this.ZB();t.T?(t=Ry(t.T,"engage"),t.Y8=k,t.send(p)):p&&p()}; g.E.VX=function(k){return this.ZB().VX(k)}; g.E.isAtLiveHead=function(k,p){p=p===void 0?!1:p;return $u(this.videoData)&&(this.oK||p)?this.SW.isAtLiveHead(k):!1}; g.E.ID=function(){var k=this.jV(),p=this.getCurrentTime(),t;(t=!$u(this.videoData))||(t=this.SW,t=!(t.T&&t.T.N));return t||this.nA()||isNaN(k)||isNaN(p)?0:Math.max(0,k-p)}; g.E.QW=function(k){(this.oK=k)||this.RV.stop();this.videoData.T&&(k?this.videoData.T.resume():dwS(this.videoData.T));if(this.Ey){var p=this.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&this.iY()&&this.videoData.isLivePlayback;k&&!p?this.Ey.resume():VS(this,!0)}g.u(this.playerState,2)||k?g.u(this.playerState,512)&&k&&this.CT(pW(this.playerState,512)):this.CT(kr(this.playerState,512));p=this.ZB();p.qoe&&(p=p.qoe,g.LL(p,g.VT(p.provider),"stream",[k?"A":"I"]))}; g.E.SD=function(k){k={n:k.name,m:k.message};this.ZB().Vn("player.exception",CC(k))}; g.E.VG=tw(25);g.E.PJ=tw(51);g.E.iO=function(k){this.ZB().iO(k)}; g.E.Q9=function(k){this.ZB().Q9(k)}; g.E.xn=function(k){this.ZB().xn(k)}; g.E.dj=tw(30);g.E.cj=tw(35);g.E.bW=function(k){this.ZB().bW(k)}; g.E.Xv=function(){this.yT("hidden",{},!0)}; g.E.vg=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.E.vW=function(){return this.Ey?this.Ey.vW():!0}; g.E.setLoop=function(k){this.loop=k;this.mediaElement&&!g.mq(this.ih)&&this.mediaElement.setLoop(k);this.Ey&&this.D("html5_loop_skip_set_end_of_stream")&&(k?this.Ey.policy.Fd=!0:ouh(this.Ey))}; g.E.QV=function(){return this.mediaElement&&!g.mq(this.ih)?this.mediaElement.QV():this.loop}; g.E.rg=function(k){this.yT("timestamp",{o:k.toString()});this.SW.rg(k)}; g.E.yM=function(k){this.Sz.tick(k)}; g.E.qR=function(k){return this.Sz.qR(k)}; g.E.LR=function(k){this.Sz.LR(k)}; g.E.yT=function(k,p,t){t=t===void 0?!1:t;this.ZB().yT(k,p,t)}; g.E.KP=function(k,p,t){t=t===void 0?!1:t;this.ZB().yT(k,p,t)}; g.E.Vn=function(k){this.ZB().Vn(k.errorCode,CC(k.details));k=k.errorCode;if(this.videoData.isLivePlayback&&(k==="qoe.longrebuffer"||k==="qoe.slowseek")||k==="qoe.restart"){k=this.Ey?chw(this.Ey.videoTrack):{};var p,t;this.yT("lasoe",Object.assign(this.Ey?chw(this.Ey.audioTrack):{},(p=this.Dr)==null?void 0:(t=p.T)==null?void 0:t.rR()));var J,q;this.yT("lvsoe",Object.assign(k,(J=this.Dr)==null?void 0:(q=J.Y)==null?void 0:q.rR()))}}; g.E.oX=function(k,p,t){this.ZB().oX(k,p,t)}; g.E.FX=function(k,p,t,J,q,F,d,S){var U;if((U=this.videoData.T)!=null&&U.isLive){var f=p.playerType===2?p:k,b=k.videoData.videoId,N=p.videoData.videoId;if(b&&N){U=this.ZB();if(U.qoe){var y=U.qoe,Y=k.cpn,T=p.cpn,A=f.videoData.UQ,V=y.provider.videoData.clientPlaybackNonce,D=y.provider.videoData.videoId,v=T!==V&&N!==D;V=Y!==V&&b!==D;y.reportStats();y.adCpn&&y.adCpn!==Y||(y.adCpn=V?Y:"",y.gy=V?b:"",y.adFormat=V?A:void 0,QT(y,2,F?4:q?2:0,T,N,J),y.reportStats(),y.adCpn=v?T:"",y.gy=v?N:"",y.adFormat=v?A: void 0,QT(y,2,F?5:q?3:1,Y,b,t),y.reportStats())}t=k.cpn;if(U.N.has(t)){if(q=U.N.get(t),e2(q,!0).send(),zF(q),t!==U.provider.videoData.clientPlaybackNonce){TJL(q);var w;(w=U.T)==null||f5q(w);U.N.delete(t)}}else U.ax=U.provider.videoData.clientPlaybackNonce,U.ax&&U.T&&(U.N.set(U.ax,U.T),e2(U.T).send(),zF(U.T));w=p.cpn;f=f.videoData;J-=this.h_();if(U.N.has(w)){J=U.N.get(w);var X=J.N&&isNaN(J.X)?Bm(J):NaN;J=YOq(J,!1);isNaN(X)||(J.Z=X);J.send()}else J=wmT(U,U.provider,f,J),U.N.set(w,J),rXi(J,new g.Ey(kr(new g.Kr, 8),new g.Kr)),Ubj(J),(X=U.T)==null||zF(X);U.ax=w;this.D("html5_unify_csi_server_stitched_transition_logging")?NIi(k.cpn,p.cpn,this.videoData.clientPlaybackNonce,p.videoData,d,void 0,S):(X=this.videoData.clientPlaybackNonce,U=p.videoData,k=(k.cpn===X?"video":"ad")+"_to_"+(p.cpn===X?"video":"ad"),X={},U.S&&(X.cttAuthInfo={token:U.S,videoId:U.videoId}),d&&(X.startTime=d),Xu(k,X),g.IF({targetVideoId:U.videoId,targetCpn:p.cpn,isSsdai:!0},k),Gg("pbs",S!=null?S:(0,g.V9)(),k))}}else this.logger.T(360717806, "SSTEvent for nonSS")}; g.E.t4=function(){var k=this.fT,p=k.E1;k.E1=[];return p}; g.E.NU=function(k){this.videoData.Eq=!0;this.Vn(new AD("sabr.fallback",k));this.iD(!0)}; g.E.Cj=function(k,p){this.videoData.Nm=!0;if(p===void 0||p)this.Vn(new AD("qoe.restart",k)),this.iD(!0);this.videoData.u1()&&this.D("html5_reload_caption_on_ssdai_fallback")&&this.fT.MN()}; g.E.fn=function(k){this.yT("sdai",{aftimeout:k});this.Vn(new AD("ad.fetchtimeout",{timeout:k}))}; g.E.Da=function(k,p){this.yT("timelineerror",k);k=new AD("dai.timelineerror",k);p?this.W3("dai.timelineerror",1,"RETRYABLE_ERROR",CC(k.details)):this.Vn(k)}; g.E.Bb=function(){return g.VT(this.ZB().provider)}; g.E.getPlayerSize=function(){return this.OO.getPlayerSize()}; g.E.At=function(){return this.OO.At()}; g.E.WN=function(){return this.Sz}; g.E.JN=function(){return this.fT.JN()}; g.E.getVolume=function(){return this.fT.getVolume()}; g.E.fA=function(){return this.fT.fA()}; g.E.isMuted=function(){return this.fT.isMuted()}; g.E.Y1=function(){return this.fT.Y1()}; g.E.C9=function(){this.Pf=!0}; g.E.D=function(k){return this.ih.D(k)}; g.E.W9=function(k,p,t,J,q){this.yT("xvt",{m:k,g:p?1:0,tt:t?1:0,np:J?1:0,c:q})}; g.E.Bw=function(){var k;(k=this.Ey)==null||k.resume()}; g.E.iY=function(){return g.Kc(this.a7,"ad")}; g.E.mK=function(){var k=this.getCurrentTime(),p=k-this.Yx();var t=this.mediaElement?qi(this.mediaElement.p$()):0;t=Math.floor(Math.max(t-p,0))+100;var J;if(!this.D("html5_ssdai_disable_seek_to_skip")&&((J=this.Ey)==null?0:J.w2(p,this.jV())))return this.yT("sdai",{skipad:1,ct:p.toFixed(3),adj:0}),!0;var q;return((q=this.Ey)==null?0:q.mK(p,t))?(this.yT("sdai",{skipad:1,ct:p.toFixed(3),adj:t.toFixed(3)}),tx(this.videoData)&&this.Ey.seek(p+t,{seekSource:89,XR:"videoplayer_skipServerStitchedAd"}),DFq(this.SW, k),!0):!1}; g.E.DB=function(){return this.ih.DB()}; g.E.qa=function(){if(this.D("html5_generate_content_po_token"))return this.videoData.xZ||"";this.fT.o2();return this.ih.V4||""}; g.E.AI=function(){if(this.videoData.videoId)return this.videoData.U8}; g.E.nZ=function(){return this.videoData.videoId}; g.E.Qy=function(){return this.fT.T7}; g.E.ET=function(){return this.yk}; g.E.TZ=function(){return this.fT.TZ()}; g.E.tb=function(k,p){this.SW.tb(k,p)}; g.E.lC=function(){this.SW.lC()}; g.E.Uv=function(k,p){var t=this.D("html5_generate_content_po_token")?this.videoData:void 0;this.fT.Uv(k,p,t)}; g.E.f1=function(k,p){var t;(t=this.Ey)==null||t.f1(k,p)}; g.E.RA=function(){var k=this.D6();return!!k&&k.RA()}; g.E.dI=function(){return this.yF}; g.E.fP=function(k,p){this.ZB().fP(k,p)}; g.E.cL=function(){return this.ZB().cL()}; g.E.dZ=function(){return this.videoData.Vs}; g.E.yN=function(){return this.fT.yN()}; g.E.sf=function(){return this.fT.sf(this)}; g.E.pW=function(){this.mQ=!0}; g.E.eC=function(){return this.JT}; g.E.Q8=function(k){var p;(p=this.Ey)==null||p.Q8(k)};g.r(LhS,ME);g.r(vQi,ME);g.E=vQi.prototype;g.E.seekToChapterWithAnimation=function(k){var p=this;if(g.US(this.api)&&!(k<0)){var t=this.api.getVideoData(),J=t.rK;if(J&&k<J.length){J=g.Z(J);for(var q=J.next();!q.done;q=J.next())if(q=q.value,q.index===k){cRL(this,q.startTime,q.title);return}}this.D("web_key_moments_markers")&&(t=t.qp)&&k<t.length&&t.forEach(function(F,d){d===k&&cRL(p,F.timeRangeStartMillis,F.title)})}}; g.E.seekToTimeWithAnimation=function(k,p){g.US(this.api)&&cRL(this,k,p)}; g.E.setMacroMarkers=function(k,p){p={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:p}}}}}};k=k.getVideoData();k.getWatchNextResponse();k&&k.getWatchNextResponse()==null&&(zI(k,{raw_watch_next_response:p}),k.publish("dataupdated"))}; g.E.changeMarkerVisibility=function(k,p,t){var J=this.api.getVideoData();if(J){var q=!1;if(k)for(k=g.Z(p),p=k.next();!p.done;p=k.next()){p=p.value;var F=J.gs;if(F&&!F.includes(p))switch(t){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":wrj(p,J)||(q=!0,F=void 0,(F=J.gs)==null||F.push(p));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":F.length===0&&(q=!0,F=void 0,(F=J.gs)==null||F.push(p));break;default:q=!0,F=void 0,(F=J.gs)==null||F.push(p)}}else for(t= g.Z(p),k=t.next();!k.done;k=t.next())k=k.value,J.visibleOnLoadKeys.includes(k)||g.xn(J.gs,k)&&(q=!0);q&&this.api.publish("updatemarkervisibility")}}; g.E.isSameMarkerTypeVisible=function(k){var p=this.api.getVideoData();return p?wrj(k,p):!1};g.r(Dh,ME); Dh.prototype.updateMetadata=function(){var k=this,p=this.api.getVideoData();if(p!=null&&p.IG()){var t=this.api.G(),J=[],q="";if(!t.Y8){var F=PUw(this);g.Qj(t)&&F?(J=GHS(F.thumbnailDetails),F.album&&(q=by(F.album))):J=[{src:p.KL("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var d;((d=this.api.getVideoData())==null?0:d.B)&&IDe(this);igS(this);QG9(this);navigator.mediaSession.metadata=new MediaMetadata({title:p.title,artist:p.author,artwork:J,album:q});t=p=null;g.DB(this.api)&&(p=function(){k.api.nextVideo()}, t=function(){k.api.previousVideo()}); sg("nexttrack",p);sg("previoustrack",t)}}; Dh.prototype.Ap=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var k=g.Z("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),p=k.next();!p.done;p=k.next())sg(p.value,null);var t;((t=this.api.getVideoData())==null?0:t.B)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});ME.prototype.Ap.call(this)};g.r(Lt,ME);Lt.prototype.C=function(k){return k.compositeEmbargo!==void 0}; Lt.prototype.Ap=function(){ME.prototype.Ap.call(this);this.Y.clear()};g.r(eX9,ME);g.E=eX9.prototype;g.E.queueOfflineAction=function(k,p,t,J){var q=this,F,d;return g.Q(function(S){return S.T==1?(F=XX(q.api.EQ()))?g.n(S,F.MI([k],p,t,J),3):S.oY(2):S.T!=2&&(d=S.Y,d.length)?S.return(d[0]):S.return(Promise.reject())})}; g.E.updateDownloadState=function(k,p){var t=XX(this.api.EQ());return t?t.updateDownloadState(k,p):Promise.reject()}; g.E.pauseVideoDownload=function(k){var p=XX(this.api.EQ());p&&p.Pw(k)}; g.E.resumeVideoDownload=function(k){var p=this,t;return g.Q(function(J){return(t=XX(p.api.EQ()))?J.return(t.VY(k)):J.return(Promise.reject())})}; g.E.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()}; g.E.refreshAllStaleEntities=function(k){k===void 0&&(k=14400);var p=XX(this.api.EQ());return p?p.refreshAllStaleEntities(k):Promise.reject()}; g.E.setUpPositionSyncInterval=function(k){var p=XX(this.api.EQ());p&&p.setUpPositionSyncInterval(k)};g.r(vu,ME);vu.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}}; vu.prototype.getAvailableQualityData=function(){var k=this.api.getVideoData();if(!k)return[];var p=[],t,J,q=(t=k.getPlayerResponse())==null?void 0:(J=t.playabilityStatus)==null?void 0:J.paygatedQualitiesMetadata;J=(q==null?void 0:q.qualityDetails)||[];t=new Map;t=g.lq(J)&&!Array.isArray(J)?new Map(Object.entries(J)):new Map(J.map(function(d){return[d.key,d.value]})); if(J=q==null?void 0:q.restrictedAdaptiveFormats){q=[];J=g.Z(J);for(var F=J.next();!F.done;F=J.next())F=F.value,F=H$(F.mimeType,F.quality,F.itag.toString(),F.width.toString(),F.height.toString(),F.qualityLabel),q.push(F);k=g.Jx(k);S8(q);J=[];q=g.Z(q);for(F=q.next();!F.done;F=q.next())F=F.value,$w(k,F,this.api.G().X)===!0&&J.push(F);p=p.concat(hX0(J,!1,t))}k=this.api.DA();p=p.concat(hX0(k,!0,t));t=[];if(this.api.D("web_player_enable_premium_hbr_in_h5_api"))return p=Mf_(p),aDM(p),p;k={};p=g.Z(p);for(q= p.next();!q.done;q=p.next())q=q.value,J=q.quality,k[J]||(q.formatId=void 0,t.push(q),k[J]=!0);return t};var Cp={},ZXS=(Cp["internal-error"]=-1,Cp["non-recoverable-error"]=-2,Cp["api-disabled-by-application"]=-3,Cp["invalid-argument"]=-4,Cp["token-provider-invalid"]=-5,Cp);g.r(cu,ME);cu.prototype.kH=function(k){var p=this;if(uXL())if(!this.Y&&this.T){Ogh(this,k);try{this.T.then(function(){jG9(p,k)},function(t){nt(t,"player_update"); p.handleError(t,k)})}catch(t){nt(t,"player_update_catch"),this.handleError(t,k)}}else this.Y?jG9(this,k):this.api.yT("pf",{m:this.Y?1:0, p:this.T?1:0})}; cu.prototype.handleError=function(k,p){g.wt(k);if(this.api.D("html5_enable_d6de4_cold_start_and_error")){var t=0;k.mediaIntegrityErrorName?t||(t=ZXS[k.mediaIntegrityErrorName]):k.code&&(t=k.code());p.U8={Dhh:{code:t}}}};g.r(wF,g.M);wF.prototype.Zr=function(k){k=k?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":k,title:k});this.api.Tk()}; wF.prototype.onClick=function(){this.api.togglePictureInPicture()};g.r(iB,ME);iB.prototype.createButton=function(){var k=this;this.button=new wF(this.api);g.z(this,this.button);this.api.MY(this.button);this.events.V(this.api,"videodatachange",function(){Khh(k)}); Khh(this)}; iB.prototype.setDocumentPictureInPicture=function(k){this.api.D5().ke(k);k=this.api.Z5();var p=J3w(this.api.EQ());p&&(k?p.load():p.unload());this.api.publish("documentpictureinpicturechange")};g.r(Hg9,ME);g.r(Gr,g.M);g.E=Gr.prototype;g.E.wN=function(){}; g.E.OR=function(){}; g.E.WF=function(){return!0}; g.E.ssY=function(){if(this.expanded){this.B0.show();var k=this.N.element.scrollWidth}else k=this.N.element.scrollWidth,this.B0.hide();this.UQ=this.IY+k;g.$E(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.IY:this.UQ)+"px";this.v0.start()}; g.E.I1=function(){this.badge.element.style.width=(this.expanded?this.UQ:this.IY)+"px";this.pp.start()}; g.E.CY=function(){this.C&&this.j.logVisibility(this.badge.element,this.WF());this.gy&&this.j.logVisibility(this.dismissButton.element,this.WF()&&this.PA())}; g.E.vP=function(k){this.NO=k;Pu(this);QS(this);this.uO()}; g.E.zg8=function(){g.$E(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.E.PA=function(){return this.Y8||this.NO||!this.B}; g.E.uO=function(){this.WF()?this.L.show():this.L.hide();this.CY()}; g.E.Gg=function(){this.enabled=!1;this.uO()}; g.E.ZV=function(k){k?this.gy&&this.j.logClick(this.dismissButton.element):this.C&&this.j.logClick(this.badge.element)}; g.E.dAG=function(){this.uO()}; g.E.rjT=function(k){this.Fd=k===1;this.uO();g.$E(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.E.mP8=function(){g.$E(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.j.isFullscreen());this.uO()};g.r(Iz,g.EY);Iz.prototype.CQ=function(){this.publish("size-change")}; Iz.prototype.focus=function(){this.content.focus()}; Iz.prototype.Yy=function(){this.publish("back")};g.r(g.XM,Iz);g.E=g.XM.prototype;g.E.Ru=function(k,p){if(p===void 0?0:p)this.items.push(k),this.menuItems.element.appendChild(k.element);else{p=g.dH(this.items,k,kdM);if(p>=0)return;p=~p;g.FY(this.items,p,0,k);on(this.menuItems.element,k.element,p)}k.subscribe("size-change",this.vr,this);this.menuItems.publish("size-change")}; g.E.fL=function(k){k.unsubscribe("size-change",this.vr,this);this.MO()||(g.xn(this.items,k),this.menuItems.element.removeChild(k.element),this.menuItems.publish("size-change"))}; g.E.vr=function(){this.menuItems.publish("size-change")}; g.E.focus=function(){for(var k=0,p=0;p<this.items.length;p++){var t=this.items[p].element;if(t.getAttribute("role")==="menuitemradio"){if(t.getAttribute("aria-checked")==="true"){k=p;break}}else break}this.items[k].focus()}; g.E.o7=function(){return this.items.length};g.r(g.Bu,g.GB);g.E=g.Bu.prototype;g.E.show=function(){g.GB.prototype.show.call(this);this.cG()}; g.E.hide=function(){g.GB.prototype.hide.call(this);this.T.length>1&&g.ee(this)}; g.E.cG=function(){JpM(this);this.NW&&(pa6(this),g.CZ(this.element,this.size))}; g.E.AM=function(){var k=this.T.pop();tjM(this,k,this.T[this.T.length-1],!0)}; g.E.LS=function(k){if(!k.defaultPrevented)switch(k.keyCode){case 27:this.xI();k.preventDefault();break;case 37:this.T.length>1&&this.AM();k.preventDefault();break;case 39:k.preventDefault()}}; g.E.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.E.Ap=function(){g.GB.prototype.Ap.call(this);this.S&&this.S.dispose();this.Z&&this.Z.dispose()};g.r(hl,g.Bu);hl.prototype.open=function(k,p){this.initialize(k.items)&&this.Iu(p,!!p)}; hl.prototype.initialize=function(k){g.Rz(this.gI);if(k===void 0||k.length===0)return!1;var p=k.length;k=g.Z(k);for(var t=k.next();!t.done;t=k.next())this.Ru(t.value,p--);return!0}; hl.prototype.Ru=function(k,p){k.menuNavigationItemRenderer?FLM(this,k.menuNavigationItemRenderer,p):k.menuServiceItemRenderer&&$he(this,k.menuServiceItemRenderer,p)};g.r(az,Gr);g.E=az.prototype;g.E.wN=function(k){k.target!==this.dismissButton.element&&k.target!==this.overflowButton.element&&(this.ZV(),this.onClickCommand&&this.j.zb("innertubeCommand",this.onClickCommand))}; g.E.OR=function(){this.enabled=!1;this.L.hide()}; g.E.WF=function(){return!!this.T&&this.enabled}; g.E.onVideoDataChange=function(k,p){this.Lc(p);if(this.T){this.TX();a:if(!this.isCounterfactual){var t,J,q;this.banner.update({title:(t=this.T)==null?void 0:t.title,subtitle:(J=this.T)==null?void 0:J.subtitle,metadata:(q=this.T)==null?void 0:q.metadataText});var F;this.onClickCommand=g.e((F=this.T)==null?void 0:F.onTap,Qt);var d;if(k=g.e((d=this.T)==null?void 0:d.onOverflow,Qt))this.Z=g.e(k,THA);var S;if((S=this.T)==null?0:S.thumbnailImage){var U,f;d=((U=this.T)==null?void 0:(f=U.thumbnailImage)== null?void 0:f.sources)||[];if(d.length===0)break a;this.thumbnailImage.update({url:d[0].url})}else{var b;if((b=this.T)==null?0:b.thumbnailIconName){var N;this.thumbnailIcon.update({icon:(N=this.T)==null?void 0:N.thumbnailIconName})}}var y;this.shouldShowOverflowButton=!((y=this.T)==null||!y.shouldShowOverflowButton);var Y;this.shouldHideDismissButton=!((Y=this.T)==null||!Y.shouldHideDismissButton)}var T;this.banner.element.setAttribute("aria-label",((T=this.T)==null?void 0:T.a11yLabel)||"");var A; this.W0=(A=this.T)==null?void 0:A.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;E1i(this)}}; g.E.MWy=function(){this.isVisible=!0;E1i(this)}; g.E.xP8=function(){this.isVisible=!1;E1i(this)}; g.E.CY=function(){Gr.prototype.CY.call(this);this.Y&&this.j.logVisibility(this.banner.element,this.isVisible)}; g.E.ZV=function(){Gr.prototype.ZV.call(this,!1);this.Y&&this.j.logClick(this.banner.element)}; g.E.iS=function(k){this.S||(this.S=new hl(this.j),g.z(this,this.S));var p,t;if((p=this.Z)==null?0:(t=p.menu)==null?0:t.menuRenderer)this.S.open(this.Z.menu.menuRenderer,k.target),k.preventDefault()}; g.E.Lc=function(){}; g.E.TX=function(){}; g.E.Ap=function(){this.j.VM("suggested_action_view_model");Gr.prototype.Ap.call(this)};g.r(MF,az); MF.prototype.Lc=function(k){var p,t,J;this.productUpsellSuggestedActionViewModel=g.e((p=k.getWatchNextResponse())==null?void 0:(t=p.playerOverlays)==null?void 0:(J=t.playerOverlayRenderer)==null?void 0:J.suggestedActionViewModel,PPA);var q;if((q=this.productUpsellSuggestedActionViewModel)==null?0:q.content){var F;this.T=g.e((F=this.productUpsellSuggestedActionViewModel)==null?void 0:F.content,NHL)}var d,S;if(this.Y=!!((d=this.productUpsellSuggestedActionViewModel)==null?0:(S=d.loggingDirectives)==null? 0:S.trackingParams)){var U,f;this.j.setTrackingParams(this.banner.element,((U=this.productUpsellSuggestedActionViewModel)==null?void 0:(f=U.loggingDirectives)==null?void 0:f.trackingParams)||null)}var b;this.isCounterfactual=!((b=this.productUpsellSuggestedActionViewModel)==null||!b.isCounterfactualServing)}; MF.prototype.TX=function(){var k=[],p,t=g.Z(((p=this.productUpsellSuggestedActionViewModel)==null?void 0:p.ranges)||[]);for(p=t.next();!p.done;p=t.next()){var J=p.value;J&&(p=Number(J.startTimeMilliseconds),J=Number(J.endTimeMilliseconds),isNaN(p)||isNaN(J)||k.push(new g.xf(p,J,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.j.Lb(k)};g.r(Sv9,ME);g.r(gF,ME);gF.prototype.onVideoDataChange=function(k,p){var t=this;if(!a7(p)&&(k==="newdata"&&fxe(this),this.Y&&k==="dataloaded")){var J;dY(kL(this.api.G(),(J=this.api.getVideoData())==null?void 0:g.eJ(J)),function(q){var F=Tr0(q);F&&(F=bAi(t,t.T||F))&&t.api.setAudioTrack(F,!0);t.N&&(t.N=!1,ZAe(t,q))})}}; gF.prototype.DM=function(){var k=this;if(g.mq(this.api.G())){var p,t=g.xH(this.api.G(),(p=this.api.getVideoData())==null?void 0:g.eJ(p));return dY(Ju(t),function(J){var q=Ql();PO(q,J);return k.api.DM(q)})}return Ju(this.api.DM())};g.r(g.lB,g.zB);g.E=g.lB.prototype;g.E.open=function(){g.zr(this.Pp,this.Y)}; g.E.mF=function(k){Csi(this);var p=this.options[k];p&&(p.element.setAttribute("aria-checked","true"),this.HH(this.oD(k)),this.N=k)}; g.E.jt=function(k){g.Rz(this.Y);for(var p={},t=!1,J=0;J<k.length;J++){var q=k[J],F=this.options[q],d=q===this.N;d&&(t=!0);F&&F.priority===-J?(g.BO(this.options[q],this.oD(q,!0)),delete this.options[q]):F=this.lM(q,-J,d);p[q]=F;this.Y.Ru(F,!0)}t||(this.N=null);k=g.Z(Object.keys(this.options));for(t=k.next();!t.done;t=k.next())this.options[t.value].dispose();this.options=p}; g.E.lM=function(k,p,t,J){var q=this;t={K:"div",S6:["ytp-menuitem",J?"ytp-menuitem-with-footer":""],J:{tabindex:"0",role:"menuitemradio","aria-checked":t?"true":"false"},U:[{K:"div",S6:["ytp-menuitem-label"],sy:"{{label}}"}]};J&&(J={K:"div",W:"ytp-menuitem-footer",U:[J]},t.U?t.U.push(J):t.U=[J]);p=new g.zB(t,p,this.oD(k,!0));p.listen("click",function(){q.Dn(k)}); return p}; g.E.enable=function(k){this.B?k||(this.B=!1,this.jU(!1)):k&&(this.B=!0,this.jU(!0))}; g.E.jU=function(k){k?this.Pp.Ru(this):this.Pp.fL(this)}; g.E.s7=function(k){this.publish("select",k)}; g.E.Dn=function(k){this.s7(k)}; g.E.oD=function(k){return k.toString()}; g.E.rQ=function(k){k.defaultPrevented||k.keyCode!==39||(this.open(),k.preventDefault())}; g.E.Ap=function(){this.B&&this.Pp.fL(this);g.zB.prototype.Ap.call(this);for(var k=g.Z(Object.keys(this.options)),p=k.next();!p.done;p=k.next())this.options[p.value].dispose()};g.r(Api,g.lB);g.E=Api.prototype;g.E.Zr=function(){var k=this.uK("Off");this.j.getPresentingPlayerType()!==2?(mh0(this),this.mF(this.S),this.T&&(this.S===k?this.T="":this.setSleepTimerTimeLeft(this.T)),this.Z&&this.setVideoTimeLeft(this.Z),this.enable(!0)):(this.jt([]),this.enable(!1))}; g.E.s7=function(k){VjS(this,k);this.Pp.AM()}; g.E.uK=function(k){switch(k){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(k.toString()+" Minutes").toLowerCase()}}; g.E.onVideoDataChange=function(k){k==="dataloaded"&&mh0(this)}; g.E.d2G=function(k){this.j.logVisibility(this.element,k)}; g.E.onClick=function(){this.j.logClick(this.element)}; g.E.resetSleepTimerMenuSettings=function(){VjS(this,this.uK("Off"))}; g.E.setSleepTimerTimeLeft=function(k){this.T=k;this.HH(k)}; g.E.setVideoTimeLeft=function(k){this.Z=k;this.C.HH(k)};g.r(je,ME);je.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; je.prototype.setSleepTimerTimeLeft=function(k){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(k)}; je.prototype.setVideoTimeLeft=function(k){this.menuItem&&this.menuItem.setVideoTimeLeft(k)};g.r(WLT,ME);g.r(g.Kt,g.o$);g.E=g.Kt.prototype;g.E.V=function(k,p){this.C.V(this.B,k,p,void 0,!this.T)}; g.E.cancel=function(){this.N&&(this.N=!1,this.publish("dragend",0,0,null));this.Y&&(this.Y=!1,this.publish("hoverend",0,0,null),Hu(this),Og(this))}; g.E.tS=function(k){Hu(this);this.V(xd("move"),this.H2);this.V(xd("out"),this.MF);this.V("touchstart",this.Iy);this.T&&this.V(xd("down"),this.Zn);var p=k.target;k=new g.NL(k.pageX,k.pageY);this.Y=!0;this.publish("hoverstart",k.x,k.y,p);this.publish("hovermove",k.x,k.y,p)}; g.E.H2=function(k){var p=k.target;k=new g.NL(k.pageX,k.pageY);if(this.X){var t=this.X;this.X=null;if(t.relatedTarget===p&&yx(new g.NL(t.pageX,t.pageY),k))return}this.publish("hovermove",k.x,k.y,p)}; g.E.MF=function(k){var p=new g.NL(k.pageX,k.pageY),t=k.relatedTarget;try{if(t&&g.FI(this.target,t)){this.X=k;this.publish("hovermove",p.x,p.y,t);return}}catch(J){}Hu(this);Og(this);this.Y=!1;this.publish("hoverend",p.x,p.y,t)}; g.E.DWb=function(k){this.tS(k);this.Zn(k)}; g.E.Zn=function(k){if(typeof k.button!=="number"||k.button===0){Hu(this);this.C.V(kQ(k.target),xd("move"),this.fB6);this.C.V(kQ(k.target),xd("up"),this.TU);var p=k.target;if(g.Ok)this.V("dragstart",this.SL);else if(k.preventDefault(),(g.l$||UH)&&p)a:{for(var t=p;t;){if(Usj(t)||t.getAttribute("tabindex")==="-1"){t.focus();break a}t=t.parentElement}kQ(p).activeElement.blur()}this.N=!0;k=new g.NL(k.pageX,k.pageY);this.publish("dragstart",k.x,k.y,p);this.publish("dragmove",k.x,k.y,p)}}; g.E.SL=function(k){k.preventDefault()}; g.E.fB6=function(k){var p=k.target;p===kQ(k.target)&&(p=null);k=new g.NL(k.pageX,k.pageY);this.publish("hovermove",k.x,k.y,p);this.publish("dragmove",k.x,k.y,p)}; g.E.TU=function(k){Hu(this);this.N=!1;var p=Am(k),t=k.target;k=new g.NL(k.pageX,k.pageY);p&&g.FI(this.target,p)?(this.V(xd("move"),this.H2),this.V(xd("out"),this.MF),this.V(xd("down"),this.Zn),this.V("touchstart",this.Iy),this.publish("dragend",k.x,k.y,t)):(Og(this),this.Y=!1,this.publish("dragend",k.x,k.y,t),this.publish("hoverend",k.x,k.y,t))}; g.E.Iy=function(k){var p=k.changedTouches[0];p&&(Hu(this),this.L||(this.V("touchmove",this.ZLy),this.V("touchend",this.dH),this.V("touchcancel",this.dH),this.S=p.identifier,k=k.target,this.Y||(this.Y=!0,this.publish("hoverstart",p.pageX,p.pageY,k)),this.publish("hovermove",p.pageX,p.pageY,k),this.T&&(this.N=!0,this.publish("dragstart",p.pageX,p.pageY,k),this.publish("dragmove",p.pageX,p.pageY,k))))}; g.E.ZLy=function(k){var p=Dhq(this,k);p&&(this.T&&k.preventDefault(),k=k.target,this.publish("hovermove",p.pageX,p.pageY,k),this.T&&this.publish("dragmove",p.pageX,p.pageY,k))}; g.E.dH=function(k){var p=Dhq(this,k);if(p){Hu(this);Og(this);this.Y=!1;var t=k.target;this.T&&(this.Z||k.preventDefault(),this.N=!1,this.publish("dragend",p.pageX,p.pageY,t));this.publish("hoverend",p.pageX,p.pageY,t)}}; g.E.Ap=function(){this.T&&(g.Ok&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");Hu(this);g.o$.prototype.Ap.call(this)}; var sS0=!1;g.r(LLh,g.M);LLh.prototype.u6=function(){g.S4(this.element,"display","none");this.j.logVisibility(this.T,!1)};g.r(tR,ME);tR.prototype.Y8=function(k,p){this.MO()||(this.B=[k,p],this.T.subscribe("dragmove",this.S,this),this.T.subscribe("dragend",this.X,this),this.N||g.Oc(this.delay))}; tR.prototype.j6=function(){if(this.C){this.N=!0;this.P0=this.api.getPlaybackRate();this.Oy=this.api.getPlayerStateObject().isPaused();var k=this.speedmasterUserEdu;g.S4(k.element,"display","");k.j.logVisibility(k.T,!0);this.api.setPlaybackRate(this.qO);this.api.hideControls();this.api.playVideo();this.Z&&(this.Z.Im=!0);this.gy&&(this.gy.nD=!0)}}; tR.prototype.S=function(k,p){if(!this.N){k=[k,p];var t=this.B;t&&k&&t.length===2&&k.length===2?(p=Math.abs(t[0]-k[0]),t=Math.abs(t[1]-k[1]),p=Math.sqrt(p*p+t*t)):p=-1;p<this.NO?this.B=k:JR(this)}}; tR.prototype.X=function(){JR(this)};g.r(cpS,ME);cpS.prototype.onVideoDataChange=function(k){k==="newdata"&&this.api.EQ().createSubtitlesModuleIfNeeded()};g.r(oG,g.Q3);oG.prototype.preventDefault=function(){g.Q3.prototype.preventDefault.call(this);this.T&&this.T.preventDefault()}; oG.prototype.stopPropagation=function(){g.Q3.prototype.stopPropagation.call(this);this.T&&this.T.stopPropagation()};g.r(g.qc,g0);g.E=g.qc.prototype;g.E.ZR=function(){return!0}; g.E.isView=function(){return!1}; g.E.wg=function(){return!1}; g.E.KE=function(){return this.T}; g.E.Yh=function(){return this.T.src}; g.E.YZ=function(k){var p=this.getPlaybackRate();this.T.src=k;this.setPlaybackRate(p)}; g.E.c9=function(){this.T.removeAttribute("src")}; g.E.getPlaybackRate=function(){try{return this.T.playbackRate>=0?this.T.playbackRate:1}catch(k){return 1}}; g.E.setPlaybackRate=function(k){this.getPlaybackRate()!==k&&(this.T.playbackRate=k);return k}; g.E.QV=function(){return this.T.loop}; g.E.setLoop=function(k){this.T.loop=k}; g.E.canPlayType=function(k,p){return this.T.canPlayType(k,p)}; g.E.isPaused=function(){return this.T.paused}; g.E.isSeeking=function(){return this.T.seeking}; g.E.isEnded=function(){return this.T.ended}; g.E.yp=function(){return this.T.muted}; g.E.Ca=function(k){c$();this.T.muted=k}; g.E.Vl=function(){return this.T.played||kS([],[])}; g.E.p$=function(){try{var k=this.T.buffered}catch(p){}return k||kS([],[])}; g.E.F1=function(){return this.T.seekable||kS([],[])}; g.E.DN=function(){var k=this.T;return k.getStartDate?k.getStartDate():null}; g.E.getCurrentTime=function(){return this.T.currentTime}; g.E.setCurrentTime=function(k){this.T.currentTime=k}; g.E.getDuration=function(){return this.T.duration}; g.E.load=function(){var k=this.T.playbackRate;try{this.T.load()}catch(p){}this.T.playbackRate=k}; g.E.pause=function(){this.T.pause()}; g.E.play=function(){var k=this.T.play();if(!k||!k.then)return null;k.then(void 0,function(){}); return k}; g.E.Pn=function(){return this.T.readyState}; g.E.gR=function(){return this.T.networkState}; g.E.eE=function(){return this.T.error?this.T.error.code:null}; g.E.C$=function(){return this.T.error?this.T.error.message:""}; g.E.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var k=this.T,p=k.webkitDroppedFrameCount;if(k=k.webkitDecodedFrameCount)return{droppedVideoFrames:p||0,totalVideoFrames:k}}return{}}; g.E.QX=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.E.E9=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.E.togglePictureInPicture=function(){var k=this.T,p=window.document;window.document.pictureInPictureEnabled?this.T!==p.pictureInPictureElement?k.requestPictureInPicture():p.exitPictureInPicture():v$()&&k.webkitSetPresentationMode(k.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.E.G3=function(){var k=this.T;return new g.NL(k.offsetLeft,k.offsetTop)}; g.E.getSize=function(){return g.AK(this.T)}; g.E.setSize=function(k){g.CZ(this.T,k)}; g.E.getVolume=function(){return this.T.volume}; g.E.setVolume=function(k){c$();this.T.volume=k}; g.E.qU=function(k){this.X[k]||(this.T.addEventListener(k,this.listener),this.X[k]=this.listener)}; g.E.setAttribute=function(k,p){this.T.setAttribute(k,p)}; g.E.removeAttribute=function(k){this.T.removeAttribute(k)}; g.E.hasAttribute=function(k){return this.T.hasAttribute(k)}; g.E.PD=tw(56);g.E.xH=tw(58);g.E.m0=tw(60);g.E.Wi=tw(62);g.E.Tf=function(){return yB(this.T)}; g.E.QZ=function(k){g.JB(this.T,k)}; g.E.eI=function(k){return g.fZ(this.T,k)}; g.E.TT=function(){return g.FI(document.body,this.T)}; g.E.audioTracks=function(){var k=this.T;if("audioTracks"in k)return k.audioTracks}; g.E.Ap=function(){for(var k=g.Z(Object.keys(this.X)),p=k.next();!p.done;p=k.next())p=p.value,this.T.removeEventListener(p,this.X[p]);g0.prototype.Ap.call(this)}; g.E.uH=function(k){this.T.disableRemotePlayback=k};g.r(FX,g.M);g.r(d_,g.M);d_.prototype.show=function(){g.M.prototype.show.call(this);this.Zr();this.fp.D("html5_enable_moving_s4n_window")&&g.mq(this.fp.G())&&this.B()}; d_.prototype.hide=function(){g.M.prototype.hide.call(this);this.delay.stop();this.C.stop()}; d_.prototype.Zr=function(){var k=(0,g.V9)(),p=waj(this.fp);$Q(this.T,p.bandwidth_samples);$Q(this.Z,p.network_activity_samples);$Q(this.N,p.live_latency_samples);$Q(this.Y,p.buffer_health_samples);var t={};p=g.Z(Object.entries(p));for(var J=p.next();!J.done;J=p.next()){var q=g.Z(J.value);J=q.next().value;q=q.next().value;this.L[J]!==q&&(t[J]=" "+String(q));this.L[J]=q}this.update(t);k=(0,g.V9)()-k>25?5E3:500;this.delay.start(k)}; d_.prototype.B=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.C.start(2E4)};g.r(Ps6,ME);g.r(E2,g.R);E2.prototype.T=function(){var k=(0,g.V9)()-this.startTime;k=k<this.duration?k/this.duration:1;this.Y(Zq(C4R,k));k<1&&this.delay.start()}; var C4R=new rQ(0,0,.4,0,.2,1,1,1),zMh=/[0-9.-]+|[^0-9.-]+/g;g.r(Sf,g.M);Sf.prototype.onClick=function(){var k=this.api.app;var p=k.D("web_log_theater_mode_visibility")?!k.XU():!k.PC;k.fp.zb("SIZE_CLICKED",p);this.api.logClick(this.element)}; Sf.prototype.Zr=function(){this.rS(this.api.Cd()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.NW){var k=this.api.XU();this.XU!==k&&this.Q6(k)}this.api.logVisibility(this.element,this.NW)}; Sf.prototype.Q6=function(k){var p=k?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.XU==null?this.updateValue("icon",p):Bre(this.transition,this.element, p);this.XU=k;p=g.CK(this.api,"Default view","t");var t=g.CK(this.api,"Theater mode","t");this.updateValue("title",k?p:t);this.update({"data-title-no-tooltip":k?"Default view":"Theater mode"});this.api.Tk()};g.r(eMT,ME);g.r(Mj9,ME);g.E=Mj9.prototype;g.E.onVideoDataChange=function(k){this.Bl();this.videoId=k.videoId;this.Y=this.T=void 0;this.timelyActions=axi(k);g1u(this);this.clearTimeout();this.Lb()}; g.E.o3=function(k){var p=k.oldState,t=k.state,J=t.seekSource;!g.u(p,16)&&g.u(t,16)?this.aM(J!=null?J:void 0):g.u(p,16)&&!g.u(t,16)&&this.Br();k=k.state;k=!k.isCued()&&!g.u(k,1024);this.N.rS(k)}; g.E.Lb=function(){var k=this.XS();k&&this.api.Lb(k)}; g.E.Bl=function(){this.api.VM("timelyAction",1);if(this.T!==void 0)this.onCueRangeExit(this.T)}; g.E.XS=function(){if(this.timelyActions){for(var k=[],p=g.Z(this.timelyActions),t=p.next();!t.done;t=p.next())t=t.value,t=t.startTimeMilliseconds!=null&&t.endTimeMilliseconds!=null&&t.cueRangeId!=null?new g.xf(Number(t.startTimeMilliseconds),Number(t.endTimeMilliseconds),{id:t.cueRangeId,namespace:"timelyAction"}):void 0,t&&k.push(t);return k}}; g.E.onCueRangeEnter=function(k){var p=U2(this,k);p&&this.C[k]!==void 0&&(p.maxShowCount===void 0||(p==null?void 0:p.maxShowCount)>this.C[k])&&(this.T=k,lxi(this))}; g.E.onCueRangeExit=function(k){var p=u0S(this,k);p&&this.T===k&&this.api.zb("innertubeCommand",p);this.clearTimeout();this.T=void 0}; g.E.onTimeout=function(k){this.T!==void 0&&(k==null?void 0:k.cueRangeId)===this.T&&(k=u0S(this,this.T))&&this.api.zb("innertubeCommand",k)}; g.E.aM=function(k){this.Y=k}; g.E.Br=function(){lxi(this);this.Y=void 0}; g.E.setTimeout=function(k){var p=this,t=Number(k==null?void 0:k.maxVisibleDurationMilliseconds);t&&(this.clearTimeout(),this.X=setTimeout(function(){p.onTimeout(k)},t))}; g.E.clearTimeout=function(){this.X&&clearTimeout(this.X);this.X=void 0}; g.E.Ap=function(){this.timelyActions=this.Y=this.T=this.videoId=void 0;this.C={};this.Bl();this.clearTimeout();ME.prototype.Ap.call(this)};g.r(KL9,ME);var Ag={},dfh=(Ag[1]="pot_ss",Ag[2]="pot_sf",Ag[3]="pot_se",Ag[4]="pot_xs",Ag[5]="pot_xf",Ag[6]="pot_xe",Ag),E7i=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.r(Nc,ME);Nc.prototype.Ap=function(){this.S&&(g.yI(this.S),this.S=void 0);ME.prototype.Ap.call(this)}; Nc.prototype.o2=function(){(this.T?!this.T.isReady():this.Y)&&YQ(this)}; Nc.prototype.eP=function(k,p,t){var J=this;if(xhL(k)){var q=t||"",F;if((F=this.T)==null?0:F.isReady())p=TH(this,q),k4h(k,p);else{var d=new g.yM;p.push(d.promise);this.C.promise.then(function(){var S=TH(J,q);k4h(k,S);d.resolve()})}}}; Nc.prototype.V6=function(k){var p=this;if(this.T||this.Y)k.xZ=TH(this,k.videoId),this.T&&!this.T.isReady()&&(this.N=new Mi,this.C.promise.then(function(){p.Sz.qR("pot_if");k.xZ=TH(p,k.videoId)}))};g.r(Uf9,ME);g.r(r_,g.R);r_.prototype.T=function(){for(var k=g.Z(g.nS.apply(0,arguments)),p=k.next();!p.done;p=k.next())(p=p.value)&&this.features.push(p)}; r_.prototype.Ap=function(){for(var k=this.features.length-1;k>=0;k--)this.features[k].dispose();this.features.length=0;g.R.prototype.Ap.call(this)};ZD.prototype.N9=function(){this.Y=(0,g.V9)()}; ZD.prototype.reset=function(){this.T=this.Y=NaN}; ZD.prototype.F2=function(k,p){if(k.clientPlaybackNonce&&!isNaN(this.T)){if(Math.random()<.01){p=p?"pbp":"pbs";var t={startTime:this.T};k.S&&(t.cttAuthInfo={token:k.S,videoId:k.videoId});Xu("seek",t);g.IF({clientPlaybackNonce:k.clientPlaybackNonce},"seek");isNaN(this.Y)||Gg("pl_ss",this.Y,"seek");Gg(p,(0,g.V9)(),"seek")}this.reset()}};g.E=fwi.prototype;g.E.reset=function(){iF(this.timerName)}; g.E.tick=function(k,p){Gg(k,p,this.timerName)}; g.E.qR=function(k){return BF(k,this.timerName)}; g.E.LR=function(k){CW(k,void 0,this.timerName)}; g.E.infoGel=function(k){g.IF(k,this.timerName)};g.r(YWi,g.o$);g.E=YWi.prototype;g.E.Vr=function(k){return this.loop||!!k||this.index+1<this.length}; g.E.xo=function(k){return this.loop||!!k||this.index-1>=0}; g.E.setShuffle=function(k){this.shuffle=k;k=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var p=0;p<this.items.length;p++)this.order.push(p);this.index=k;this.Y++;if(this.shuffle){k=this.order[this.index];for(p=1;p<this.order.length;p++){var t=Math.floor(Math.random()*(p+1)),J=this.order[p];this.order[p]=this.order[t];this.order[t]=J}for(p=0;p<this.order.length;p++)this.order[p]===k&&(this.index=p);this.Y++}this.publish("shuffle")}; g.E.KL=function(k){k=k||"hqdefault.jpg";var p=this.L[k];if(p||this.Cp.Y8||k==="sddefault.jpg"||k==="hq720.jpg"||k==="maxresdefault.jpg")return p;if(this.N.length)return zG(this.Cp,this.N[0],k)}; g.E.getLength=function(){return this.length}; g.E.findIndex=function(k){if(k&&(k=k.videoId,!this.items[this.index]||this.items[this.index].video_id!==k))for(var p=0;p<this.items.length;p++)if(this.items[p].video_id===k){this.index=p;break}}; g.E.onReady=function(k){this.T=k;this.loaded&&g.fY(this.T,0)}; g.E.getPlaylistId=function(){return this.listId?this.listId.toString():null}; g.E.tP=function(){return this.Cp.getVideoUrl(g.AR(this).videoId,this.getPlaylistId())}; g.E.Ap=function(){this.T=null;g.S9(this.items);g.o$.prototype.Ap.call(this)};var mh=new Map;g.r(g.Wr,g.o$);g.E=g.Wr.prototype;g.E.create=function(){}; g.E.load=function(){this.loaded=!0}; g.E.unload=function(){this.loaded=!1}; g.E.rp=function(){}; g.E.C5=function(){return!0}; g.E.Ap=function(){this.loaded&&this.unload();g.o$.prototype.Ap.call(this)}; g.E.pE=function(){return{}}; g.E.getOptions=function(){return[]};g.r(g.s2,g.R);g.E=g.s2.prototype;g.E.CM=tw(65);g.E.bj=function(){}; g.E.D1=function(){}; g.E.z3=function(){return""}; g.E.mZ=tw(66);g.E.eP=function(k,p){var t=this;if(this.fp.G().D("html5_dispatch_tracklist_loaded_event")){this.C&&(this.C.reject(),this.C=null);var J=[];this.fp.publish("trackListLoaded",this.Y,J,p);J.length?(p=new g.yM,p.promise.then(k.eP,function(){}),this.C=p,Promise.all(J).then(p.resolve,p.reject).finally(function(){t.C=null})):k.eP()}else k.eP()}; g.E.MN=function(){}; g.E.Ap=function(){this.C&&(this.C.reject(),this.C=null);this.D1();g.R.prototype.Ap.call(this)};g.r(g.Lg,g.s2);g.Lg.prototype.CM=tw(64);g.Lg.prototype.bj=function(k){if(this.audioTrack)for(var p=g.Z(this.audioTrack.captionTracks),t=p.next();!t.done;t=p.next())g.DD(this.Y,t.value);this.eP(k,this.videoData.videoId)}; g.Lg.prototype.z3=function(k,p){var t=k.b1(),J={fmt:p};if(p==="srv3"||p==="3"||p==="json3")g.zQ()?Object.assign(J,{xorb:2,xobt:1,xovt:1}):Object.assign(J,{xorb:2,xobt:3,xovt:3});k.translationLanguage&&(J.tlang=g.UK(k));this.N&&(J.xosf="1");Object.assign(J,this.fp.G().T);return te(t,J)}; g.Lg.prototype.D1=function(){this.T&&this.T.abort()};g.AH4=new Map;g.r(g.cr,g.s2);g.cr.prototype.CM=tw(63); g.cr.prototype.bj=function(k){var p=this,t=this.N,J={type:"list",tlangs:1,v:this.videoId,vssids:1};this.eO&&(J.asrs=1);t=te(t,J);this.D1();this.T=g.mG(t,{format:"RAW",onSuccess:function(q){p.T=null;if((q=q.responseXML)&&q.firstChild){for(var F=q.getElementsByTagName("track"),d=0;d<F.length;d++){var S=F[d],U=S.getAttribute("lang_code"),f=S.getAttribute("lang_translated"),b=S.getAttribute("name"),N=S.getAttribute("kind"),y=S.getAttribute("id"),Y=S.getAttribute("lang_default")==="true",T=S.getAttribute("cantran")=== "true";S=S.getAttribute("vss_id");g.DD(p.Y,new g.dn({languageCode:U,languageName:f,name:b,kind:N,id:y,is_servable:!0,is_translateable:T,vss_id:S,is_default:Y}))}q=q.getElementsByTagName("target");F=q.length;for(d=0;d<F;d++)U={languageCode:q[d].getAttribute("lang_code"),languageName:q[d].getAttribute("lang_translated"),languageOriginal:q[d].getAttribute("lang_original"),id:q[d].getAttribute("id"),isDefault:q[d].getAttribute("lang_default")==="true"},p.S[U.languageCode]=U.languageName,p.X.push(U)}p.eP(k, p.videoId)}, withCredentials:!0})}; g.cr.prototype.z3=function(k,p){var t=this.N;p={v:this.videoId,type:"track",lang:k.languageCode,name:k.getName(),kind:k.kind,fmt:p};var J=this.fp.G();J.D("captions_url_add_ei")&&(p.ei=this.eventId);k.translationLanguage&&(p.tlang=g.UK(k));Object.assign(p,J.T);return t=te(t,p)}; g.cr.prototype.D1=function(){this.T&&this.T.abort()};v7M.prototype.N=function(){for(var k=g.nS.apply(0,arguments),p=this,t=qm("empty"),J=[],q={nV:0};q.nV<this.Y.length&&t.currentState!=="done";q={vS:void 0,nV:q.nV},q.nV++)q.vS=this.Y[q.nV],q.vS.condition.apply(q.vS,g.m(k))&&(t=EJ(EJ(t,function(F){return function(){if(!F.vS.condition.apply(F.vS,g.m(k)))throw"condition failed";var d=F.vS.lE.apply(F.vS,g.m(k));return p.T===void 0||p.T===null?d:dY(Ju(d),function(S){if(!p.T.apply(p,[S].concat(g.m(k))))throw"verification failed";return S})}}(q)),function(F){return function(d){d!== "empty"&&d!=="condition failed"&&d!=="verification failed"&&d!=="error"&&(F.vS.onFailure&&F.vS.onFailure.apply(F.vS,[d].concat(g.m(k))),p.onFailure&&p.onFailure.apply(p,[d, F.nV,F.vS].concat(g.m(k))),J.push(d));throw"error";}}(q))); return EJ(t,function(){return qm(J)})};w_.prototype.preload=function(k){k=k?cL_(this.capabilities,k):this.capabilities;return k.gf?dY(imT(this,k),function(){}):Ju()}; w_.prototype.compile=function(k){return EJ(this.X.N(k),function(p){throw Error("wasm module compile failure: "+p.map(function(t){return t.message}).join(", "),{cause:p}); })}; w_.prototype.instantiate=function(k,p){return EJ(this.S.N(k,p),function(t){throw Error("wasm module instantiation failure: "+t.map(function(J){return J.message}).join(", "),{cause:t}); })};Iwq.prototype.emscripten_notify_memory_growth=function(){};var Qo6;g.E=RTe.prototype;g.E.malloc=function(k){return this.T.malloc(k)}; g.E.free=function(k){this.T.free(k)}; g.E.realloc=function(k,p){return this.T.realloc(k,p)}; g.E.nh=function(k){if(k.buffer!==this.exports.memory.buffer){var p=this.malloc(k.byteLength);p=new Uint8Array(this.exports.memory.buffer,p,k.byteLength);p.set(k);return p}}; g.E.BC=function(k){if(k.buffer===this.exports.memory.buffer){var p=k.slice();this.free(k.byteOffset);return p}}; var TWh="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);ng.cW(RTe,{nh:function(k){return{profile:"copyj2w",n5:k===void 0?0:Math.ceil(k.byteLength/16)}}, BC:function(k){return{profile:"copyw2j",n5:k===void 0?0:Math.ceil(k.byteLength/16)}}});g.r(eTe,g.R);g.E=eTe.prototype;g.E.createSubtitlesModuleIfNeeded=function(){g7q(this)&&Qc(this,"captions");return!!g.iU(this)}; g.E.RI=function(){return g.hF(this.j.getVideoData())&&!this.j.AC().N}; g.E.EK=function(){return this.j.getVideoData().EK()}; g.E.x3=function(){return this.j.getVideoData().x3()}; g.E.eZ=function(){var k=this.TC.get("heartbeat");Qc(this,"heartbeat",!1,!0,this.eZ);!k&&this.TC.has("heartbeat")&&this.j.publish("offlineslatestatechange")}; g.E.Qg=function(){Qc(this,"annotations_module",!0,void 0,this.Qg);var k=this.TC.get("annotations_module");if(k)for(var p in this.N)if(this.N.hasOwnProperty(p)){var t=p;k.subscribe(t,this.N[t])}}; g.E.Uu=function(){if(!this.TC.get("ad"))try{hTj(this)?Qc(this,"ad",!1,!0,this.Uu):this.j.Fw("ad")}catch(k){this.j.Fw("ad"),g.nV(k)}}; g.E.WN=function(){return this.Y}; g.E.JN=function(){var k={},p=g.iU(this);p&&Object.assign(k,p.JN());return k}; g.E.Et=function(k,p){Object.assign(this.Y,k||null);Object.assign(this.qg,p||null)}; g.E.onVideoDataChange=function(){var k=this.j.getVideoData();this.j.D("enable_wn_infocards")&&g.ce(k)&&!g.RG(this)&&this.Qg()}; g.E.Ap=function(){g.R.prototype.Ap.call(this);Pr(this,1,!0);for(var k=g.Z(Object.entries(Fn9)),p=k.next();!p.done;p=k.next()){var t=g.Z(p.value);p=t.next().value;t=t.next().value;this.C.has(t)&&mh.delete(p)}this.C.clear()}; var m7={},Fn9=(m7.ad="ad.js",m7.annotations_module="annotations_module.js",m7.asmjs="asmjs.js",m7.creatorendscreen="annotations_module.js",m7.embed="embed.js",m7.endscreen="endscreen.js",m7.heartbeat="heartbeat.js",m7.kids="kids.js",m7.remote="remote.js",m7.miniplayer="miniplayer.js",m7.offline="offline.js",m7.captions="captions.js",m7.unplugged="unplugged.js",m7.ux="ux.js",m7.webgl="webgl.js",m7.ypc="ypc.js",m7.ypc_clickwrap="ypc_clickwrap.js",m7.yto="yto.js",m7),pGu="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.r(dAe,g.o$);g.E=dAe.prototype;g.E.y5=function(k){k=new g.NL(k.pageX,k.pageY);if(!yx(k,this.C)){var p=2;this.S&&(p|=8);this.C=k;zH(this,p,!0)}}; g.E.ZEr=function(){this.S&&zH(this,8,!0);zH(this,2,!1)}; g.E.tS=function(k){var p=new g.NL(k.pageX,k.pageY);yx(p,this.C)||(this.C=p,(k=k.target)&&this.u9(k)&&(zH(this,4,!0),this.T.qP(this.N),this.N=this.T.V(this.target,"mouseover",this.MF),this.Z=this.T.V(this.target,"mouseout",this.MF)))}; g.E.MF=function(k){k=k.relatedTarget;k&&this.u9(k)||(this.C=new g.NL(NaN,NaN),ECq(this))}; g.E.arh=function(){zH(this,1,!0)}; g.E.Eh=function(k){k=k.target;k instanceof Element&&!(k.tabIndex>0)||zH(this,1,!0)}; g.E.zg=function(){this.S=!0;this.T.qP(this.X);this.X=this.T.V(document,"mouseup",this.gQ)}; g.E.gQ=function(){this.S=!1;zH(this,8,!1);this.T.qP(this.X);this.X=this.T.V(this.target,"mousedown",this.zg)}; g.E.B2=function(k){if(k=(k=k.changedTouches)&&k[0])this.NO=k.identifier,this.T.qP(this.B),this.B=this.T.V(this.target,"touchend",this.Yz,void 0,!0),zH(this,1024,!0)}; g.E.Yz=function(k){if(k=k.changedTouches)for(var p=0;p<k.length;p++){var t=k[p];if(t.identifier===this.NO){var J=t;break}}J&&(this.T.qP(this.B),this.B=this.T.V(this.target,"touchstart",this.B2,void 0,!0),zH(this,1024,!1))}; g.E.yQ=function(){zH(this,2,!0)}; g.E.resize=function(){g.sD&&ECq(this)}; g.E.toString=function(){return g.o$.prototype.toString.call(this)};g.r(g.hR,g.M);g.E=g.hR.prototype;g.E.HLy=function(){this.Zr()}; g.E.Zr=function(){var k=this.api.getVideoData(),p=this.api.G(),t=!!this.api.isEmbedsShortsMode();g.$E(this.element,"ytp-shorts-mode",t);t?p=[{K:"svg",J:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},U:[{K:"path",J:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z", fill:"#f00","fill-rule":"evenodd"}},{K:"path",J:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.Ky(k)?p=[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{K:"path",W:"ytp-dni-large-play-button-bg",J:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",J:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:k.JB&&k.AK?p=[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{K:"path",W:"ytp-dni-large-play-button-bg", J:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{K:"path",J:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:p.S?(g.$E(this.element,"ytp-touch-device",p.Y),p=[p.S?{K:"svg",J:{height:"100%",version:"1.1", viewBox:"0 0 60 60",width:"100%"},U:[{K:"path",W:"ytp-large-play-button-bg",J:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",J:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{K:"path",W:"ytp-large-play-button-bg",J:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill:"#212121","fill-opacity":"0.8"}},{K:"path",J:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):p=[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{K:"path",W:"ytp-large-play-button-bg",J:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill:"#f03"}},{K:"path",J:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",p);k.JB&&k.AK&&this.Kp("ytp-dni-large-play-button-bg").setAttribute("fill",k.AK?k.AK:"#1f1f1f")}; g.E.show=function(){g.M.prototype.show.call(this);this.api.G().D("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)}; g.E.ipy=function(){this.api.getVideoData().mutedAutoplay||(this.api.C3(),this.api.playVideo())}; g.E.HZG=function(k){this.api.getVideoData().mutedAutoplay||k.preventDefault()};g.r(g.aG,g.M);g.E=g.aG.prototype;g.E.show=function(){var k=this;this.NW||(this.C.V(this.api,"videodatachange",function(){g.Oc(k.T)}),this.C.V(this.api,"videoplayerreset",function(){g.Oc(k.T)})); g.M.prototype.show.call(this)}; g.E.hide=function(){this.C&&g.Df(this.C);g.M.prototype.hide.call(this)}; g.E.zA=function(){g.Oc(this.T)}; g.E.onStateChange=function(){g.Oc(this.T)}; g.E.Myh=function(){g.Oc(this.T)}; g.E.onReset=function(){this.Y.stop();this.hide();g.Oc(this.T)}; g.E.Zr=function(){var k=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(k.isPlaying()||k.isPaused()))var p=!0;else(p=this.api.EQ().TC.get("ypc"))&&p.N$?p=!0:(p=this.api.G(),p=g.u(k,2)&&g.mK(this.api)&&p.v3?!0:!1);p?(p=!0,this.N.hide()):this.api.D("web_player_show_frame_zero_when_cued")&&SMj(this)?(p=!0,this.N.hide()):(this.N.show(),p=k.isCued()&&this.api.getPresentingPlayerType()!==2||g.u(k,2)&&!g.mK(this.api)&&!this.api.jI()||g.u(k,1024)?!0:!1);var t=this.api.getVideoData(); p&&!t.Ro?(this.Y.show(),this.Jor(this.api.getPlaylist(),t)):(this.Y.hide(),g.u(k,1)||this.Y.stop())}; g.E.Jor=function(){var k=g.nS.apply(0,arguments),p=this.api.G(),t,J=(t=this.api.getVideoData())==null?void 0:t.videoId;if(p.D("web_player_show_frame_zero_when_cued")&&J&&SMj(this))var q="https://i.ytimg.com/vi/"+J+"/frame0.jpg";else for(k=g.Z(k),t=k.next();!t.done;t=k.next())if(t=t.value,!(!t||t instanceof g.Rj&&!t.videoId)){q=this.api.Uy().getPlayerSize();var F=g.ar();J=q.width*F;F*=q.height;if(J>1280||F>720)if(q=t.KL("maxresdefault.jpg"))break;if(J>640||F>480)if(q=t.KL("maxresdefault.jpg"))break; if(J>320||F>180)if(q=t.KL("sddefault.jpg")||t.KL("hqdefault.jpg")||t.KL("mqdefault.jpg"))break;if(q=t.KL("default.jpg"))break}g.u$(p)&&(p=new Image,p.addEventListener("load",function(){U1_()}),p.src=q?q:"",this.api.WN().tick("ftr")); this.S.style.backgroundImage=q?"url("+q+")":""};g.r(g.Mc,g.M);g.Mc.prototype.resize=function(){}; g.Mc.prototype.Y=function(k){var p=this;this.N=!1;b_i(this);var t=k.SC,J=this.api.G();t!=="GENERIC_WITHOUT_LINK"||J.S?t==="TOO_MANY_REQUESTS"?(J=this.api.getVideoData(),this.HH(lU(this,"TOO_MANY_REQUESTS_WITH_LINK",J.tP(),void 0,void 0,void 0,!1))):t!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||J.S?this.api.G().D("html5_enable_bandaid_error_screen")&&t==="HTML5_SPS_UMP_STATUS_REJECTED"&&!J.S?(J=J.hostLanguage,k="//support.google.com/youtube?p=videoError",J&&(k=g.hM(k,{hl:J})),this.HH(lU(this,"HTML5_SPS_UMP_STATUS_REJECTED", k))):this.api.G().D("enable_adb_handling_in_sabr")&&t==="BROWSER_OR_EXTENSION_ERROR"&&!J.S?(J=J.hostLanguage,k="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",J&&(k=g.hM(k,{hl:J})),this.HH(lU(this,"BROWSER_OR_EXTENSION_ERROR",k))):this.HH(g.g_(k.errorMessage)):this.HH(lU(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(k=J.hostLanguage,t="//support.google.com/youtube/?p=player_error1",k&&(t=g.hM(t, {hl:k})),this.HH(lU(this,"GENERIC_WITH_LINK_AND_CPN",t,!0)),J.yn&&!J.C&&fmq(this,function(F){if(g.kO(F,p.api,!ei(p.api.G()))){F={as3:!1,html5:!0,player:!0,cpn:p.api.getVideoData().clientPlaybackNonce};var d=p.api;d.dS("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:F});d.isFullscreen()&&d.toggleFullscreen()}})); if(this.N){var q=this.Kp("ytp-error-link");q&&(this.api.createClientVe(q,this,216104),this.api.logVisibility(q,!0),fmq(this,function(){p.api.logClick(q)}))}}; var UAe=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.r(NG0,g.M);g.E=NG0.prototype;g.E.onClick=function(k){this.innertubeCommand?(this.j.zb("innertubeCommand",this.innertubeCommand),k.preventDefault()):g.kO(k,this.j,!0);this.j.logClick(this.element)}; g.E.onVideoDataChange=function(k,p){YMq(this,p);this.B1&&TGe(this,this.B1)}; g.E.EE=function(k){var p=this.j.getVideoData();this.videoId!==p.videoId&&YMq(this,p);this.T&&TGe(this,k.state);this.B1=k.state}; g.E.Iu=function(){this.C.show();this.j.publish("paidcontentoverlayvisibilitychange",!0);this.j.logVisibility(this.element,!0)}; g.E.xI=function(){this.C.hide();this.j.publish("paidcontentoverlayvisibilitychange",!1);this.j.logVisibility(this.element,!1)};g.r(jf,g.M);jf.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.M.prototype.hide.call(this)}; jf.prototype.onStateChange=function(k){this.cH(k.state)}; jf.prototype.cH=function(k){(g.u(k,128)||this.api.ET()?0:g.u(k,16)||g.u(k,1))?this.T.start():this.hide()}; jf.prototype.Y=function(){this.message.style.display="block"};g.r(O2,g.GB);O2.prototype.onMutedAutoplayChange=function(k){this.N&&(k?(r39(this),this.Iu()):(this.T&&this.logClick(),this.xI()))}; O2.prototype.o3=function(k){this.api.isMutedByMutedAutoplay()&&g.Uy(k,2)&&this.xI()}; O2.prototype.onClick=function(){this.api.unMute();this.logClick()}; O2.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.r(g.Kg,g.nC);g.E=g.Kg.prototype;g.E.init=function(){var k=this.api,p=k.getPlayerStateObject();this.W$=k.getPlayerSize();this.CT(p);this.q8();this.zA();this.api.publish("basechromeinitialized",this);this.Ft()&&this.api.publish("standardControlsInitialized")}; g.E.onVideoDataChange=function(k,p){var t=this.F_!==p.videoId;if(t||k==="newdata"){k=this.api;k.isFullscreen()||(this.W$=k.getPlayerSize());var J;((J=this.api.getVideoData(1))==null?0:g.hF(J))&&this.Fp()}t&&(this.F_=p.videoId,t=this.HQ,t.P0=3E3,zH(t,512,!0),this.q8());this.api.D("web_render_jump_buttons")&&p.showSeekingControls&&(this.Fg=572)}; g.E.TfY=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.E.Ms=function(){var k=this.api.NB()&&this.api.LK(),p=this.api.d5();return this.Bz||k||this.VD||p}; g.E.Fp=function(){var k=!this.Ms();g.$E(this.api.getRootNode(),"ytp-menu-shown",!k);var p;((p=this.api.getVideoData(1))==null?0:g.hF(p))&&g.$E(this.api.getRootNode(),"ytp-hide-controls",!k)}; g.E.u9=function(k){try{if(!g.FI(this.api.getRootNode(),k))return!1}catch(p){return!1}for(;k&&!Usj(k);)k=k===this.api.getRootNode()?null:k.parentElement||null;return!!k}; g.E.XH=function(k){var p=this.api.getRootNode();g.$E(p,"ytp-autohide",k);g.$E(p,"ytp-autohide-active",!0);this.rU.start(k?250:100);k&&(this.Dc=!1,g.qN(p,"ytp-touch-mode"));this.al=!k;this.api.Tn(!k)}; g.E.AA=function(){var k=this.api.getRootNode();g.$E(k,"ytp-autohide-active",!1)}; g.E.Wg8=function(){this.TY=!0}; g.E.IlT=function(k){if(this.api.G().D("player_doubletap_to_seek")||this.api.G().B)this.TY=!1,this.yW&&this.qP(this.yW),this.Vu===0&&xQ(this,k)?(this.vy(),this.l9.start(),this.yW=this.V(this.api.Uy(),"touchmove",this.Wg8,void 0,!0)):this.l9.stop();mAj(this)&&xQ(this,k)&&!this.api.G().B&&CHe(this);var p=this.Ag.l0();if(!g.V0(this.api.G())&&Cl&&VBi(this,k))p&&k.preventDefault();else if(this.Dc=!0,g.JB(this.api.getRootNode(),"ytp-touch-mode"),this.HQ.yQ(),this.api.G().D("player_doubletap_to_seek")||this.api.G().B)if(p= this.api.getPlayerStateObject(),!(!this.api.qA()||g.u(p,2)&&g.mK(this.api)||g.u(p,64))){p=Date.now()-this.uP;this.Vu+=1;if(p<=350){this.HD=!0;p=this.api.getPlayerSize().width/3;var t=this.api.getRootNode().getBoundingClientRect(),J=k.targetTouches[0].clientX-t.left;t=k.targetTouches[0].clientY-t.top;var q=(this.Vu-1)*10;J>0&&J<p?(this.Zz(-1,J,t,q),this.api.seekBy(-10*this.api.getPlaybackRate())):J>p*2&&J<p*3&&(this.Zz(1,J,t,q),this.api.seekBy(10*this.api.getPlaybackRate()));k.preventDefault()}else ef&& this.api.G().B&&xQ(this,k)&&k.preventDefault();this.uP=Date.now();this.e1.start()}}; g.E.nfh=function(){this.xj.Im=!1;this.api.publish("rootnodemousedown",this.xj)}; g.E.X1O=function(k){if(this.api.G().D("web_fix_fine_scrubbing_false_play")){if(VBi(this,k)||this.xj.Im)return}else if(this.xj.Im||VBi(this,k))return;mAj(this)||!xQ(this,k)||this.l9.isActive()||(CHe(this),k.preventDefault());this.HD&&(this.HD=!1)}; g.E.vy=function(){}; g.E.Ac=function(){}; g.E.Zz=function(){}; g.E.renderChapterSeekingAnimation=function(){}; g.E.LM=function(){var k=this.api.getPlayerStateObject();g.u(k,2)&&g.mK(this.api)||(k.isOrWillBePlaying()?this.api.pauseVideo():(this.eB&&(k.isCued()||g.u(k,1024))&&!this.api.G().D("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.eB.N.element),this.api.C3(),this.api.playVideo(),this.eB&&document.activeElement===this.eB.N.element&&((k=this.Ft())==null?k=0:k.playButton?(k.playButton.focus(),k=!0):k=!1,k||this.api.getRootNode().focus())))}; g.E.flT=function(k){var p=this,t=this.api.getPresentingPlayerType();if(!A3i(this,Am(k)))if(k=this.api.G(),(this.api.G().D("player_doubletap_to_seek")||this.api.G().B)&&this.HD)this.HD=!1;else if(k.Fd&&t!==3)try{this.api.toggleFullscreen().catch(function(J){p.wq(J)}),this.api.D("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.Uy().element)}catch(J){this.wq(J)}}; g.E.wq=function(k){String(k).includes("fullscreen error")?g.wt(k):g.nV(k)}; g.E.D20=function(k){Wn0(this,.3,k.scale);k.preventDefault()}; g.E.ZbG=function(k){Wn0(this,.1,k.scale)}; g.E.zA=function(){var k=this.api.Uy().getPlayerSize(),p=this.api.getRootNode(),t=k.width>=650;this.HQ.resize();g.$E(p,"ytp-fullscreen",this.api.isFullscreen());g.$E(p,"ytp-large-width-mode",t);g.$E(p,"ytp-small-mode",this.yX());g.$E(p,"ytp-tiny-mode",this.Gp());g.$E(p,"ytp-big-mode",this.wj());this.f$&&this.f$.resize(k)}; g.E.o3=function(k){this.CT(k.state);this.q8()}; g.E.PG=tw(5);g.E.pj=function(){var k=!!this.F_&&!this.api.a8()&&!this.N4,p=this.api.getPresentingPlayerType()===2,t=this.api.G();if(p){if(d_S&&t.D("enable_visit_advertiser_support_on_ipad_mweb"))return!1;p=GH(this.api.EQ());k&&(p&&p.player?k=(k=p.player.getVideoData(2))?k.isListed&&!g.Ck(p.player.G()):!1:(d3("showInfoBarDuringAd: this is null"),k=!1));return k}return k&&(t.qG||this.api.isFullscreen()||t.p7)}; g.E.q8=function(){var k=this.pj();this.L5!==k&&(this.L5=k,g.$E(this.api.getRootNode(),"ytp-hide-info-bar",!k))}; g.E.CT=function(k){var p=k.isCued()||this.api.cn()&&this.api.getPresentingPlayerType()!==3;p!==this.isCued&&(this.isCued=p,this.gb&&this.qP(this.gb),this.gb=this.V(this.api.Uy(),"touchstart",this.IlT,void 0,p));var t=this.HQ,J=k.isPlaying()&&!g.u(k,32)||this.api.Yc();zH(t,128,!J);t=this.HQ;J=this.api.getPresentingPlayerType()===3;zH(t,256,J);t=this.api.getRootNode();g.u(k,2)?J=[aX.ENDED]:(J=[],g.u(k,8)?J.push(aX.PLAYING):g.u(k,4)&&J.push(aX.PAUSED),g.u(k,1)&&!g.u(k,32)&&J.push(aX.BUFFERING),g.u(k, 32)&&J.push(aX.SEEKING),g.u(k,64)&&J.push(aX.UNSTARTED));g.U$(this.BT,J)||(g.Fz(t,this.BT),this.BT=J,g.ob(t,J));J=this.api.G();var q=g.u(k,2);a:{var F=this.api.G();var d=F.controlsType;switch(d){case "2":case "0":F=!1;break a}F=d==="3"&&!g.u(k,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Mk6(GH(this.api.EQ())))||this.api.d5()||g.V0(F)&&this.api.getPresentingPlayerType()===2?!1:!0}g.$E(t,"ytp-hide-controls",!F);g.$E(t,"ytp-native-controls",J.controlsType==="3"&&!p&&!q&&!this.VD);g.u(k, 128)&&!g.V0(J)?(this.f$||(this.f$=new g.Mc(this.api),g.z(this,this.f$),g.cO(this.api,this.f$.element,4)),this.f$.Y(k.JD),this.f$.show()):this.f$&&(this.f$.dispose(),this.f$=null)}; g.E.wP=function(){return this.api.NB()&&this.api.LK()?(this.api.Ns(!1,!1),!0):this.api.a8()?(g.Vl(this.api,!0),!0):!1}; g.E.onMutedAutoplayChange=function(k){this.VD=k;this.Fp()}; g.E.wj=function(){return!1}; g.E.yX=function(){return!this.wj()&&(this.api.getPlayerSize().width<this.Fg||this.api.getPlayerSize().height<290)}; g.E.Gp=function(){return this.yX()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)}; g.E.UU=function(){return this.Dc}; g.E.t_=function(){return null}; g.E.xm=function(){return null}; g.E.kL=function(){var k=this.api.Uy().getPlayerSize();return new g.qJ(0,0,k.width,k.height)}; g.E.handleGlobalKeyDown=function(){return!1}; g.E.handleGlobalKeyUp=function(){return!1}; g.E.Yn=function(){}; g.E.showControls=function(k){k!==void 0&&this.api.Uy().Tn(k)}; g.E.yQ=function(){}; g.E.Ft=function(){return null};g.r(k1,g.o$);g.E=k1.prototype;g.E.BU=function(){return 1E3*this.api.getDuration(this.WJ,!1)}; g.E.stop=function(){this.T&&this.Jj.qP(this.T)}; g.E.OF=function(){var k=this.api.getProgressState(this.WJ);this.Y={seekableStart:k.seekableStart,seekableEnd:k.seekableEnd,current:this.api.getCurrentTime(this.WJ,!1)};this.publish("h")}; g.E.getProgressState=function(){return this.Y}; g.E.Aa=function(k){g.Uy(k,2)&&this.publish("g")};g.r(g.pA,g.M);g.pA.prototype.show=function(){g.M.prototype.show.call(this);g.Oc(this.T)}; g.pA.prototype.hide=function(){this.Y.stop();g.M.prototype.hide.call(this)}; g.pA.prototype.Ac=function(k){k?g.u(this.j.getPlayerStateObject(),64)||tp(this,mi(),"Play"):(k=this.j.getVideoData(),k.isLivePlayback&&!k.allowLiveDvr?tp(this,zNL(),"Stop live playback"):tp(this,I4j(),"Pause"))};g.r(Ln_,g.M);g.E=Ln_.prototype;g.E.yI=function(k){k?this.T=ZB(this.j,this.element,null):(this.T=this.T,this.T(),this.T=null)}; g.E.Iu=function(){this.j.G().D("player_new_info_card_format")&&g.tB(this.j.getRootNode(),"ytp-cards-teaser-shown")&&!g.V0(this.j.G())||(this.Y.show(),g.oN("iv-button-shown"))}; g.E.xI=function(){g.oN("iv-button-hidden");this.Y.hide()}; g.E.l0=function(){return this.NW&&this.Y.state!==4}; g.E.Ap=function(){this.T&&this.T();g.M.prototype.Ap.call(this)}; g.E.fxG=function(){g.oN("iv-button-mouseover")}; g.E.onClicked=function(k){this.j.NB();var p=g.tB(this.j.getRootNode(),"ytp-cards-teaser-shown");g.oN("iv-teaser-clicked",p);var t;if((t=this.j.getVideoData())==null?0:g.ve(t)){var J;k=(J=this.j.getVideoData())==null?void 0:g.ce(J);(k==null?0:k.onIconTapCommand)&&this.j.zb("innertubeCommand",k.onIconTapCommand)}else J=k.screenX===0&&k.screenY===0,this.j.Ns(!this.j.LK(),J,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.r(vCj,g.M);g.E=vCj.prototype;g.E.Nr=function(){this.j.NB()&&this.j.LK()&&this.l0()&&this.xI()}; g.E.B_=function(){this.xI();!this.j.NB()&&this.j.G().D("enable_error_corrections_infocards_icon_web")&&this.CL.xI();g.oN("iv-teaser-clicked",this.T!=null);if(this.onClickCommand)this.j.zb("innertubeCommand",this.onClickCommand);else{var k;((k=this.j.getVideoData())==null?0:g.ve(k))||this.j.Ns(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.E.uS=function(){g.oN("iv-teaser-mouseover");this.T&&this.T.stop()}; g.E.yBT=function(k){this.j.G().D("player_new_info_card_format")&&!g.V0(this.j.G())?this.CL.xI():this.j.G().D("enable_error_corrections_infocards_icon_web")&&this.CL.Iu();this.T||!k||this.j.LK()||this.Y&&this.Y.isActive()||(this.Iu(k),g.oN("iv-teaser-shown"))}; g.E.Iu=function(k){this.onClickCommand=k.onClickCommand;this.updateValue("text",k.teaserText);this.element.setAttribute("dir",g.bu(k.teaserText));this.C.show();this.Y=new g.jF(function(){g.JB(this.j.getRootNode(),"ytp-cards-teaser-shown");this.j.D("player_new_info_card_format")&&!g.V0(this.j.G())&&this.CL.xI();this.tv()},0,this); this.Y.start();this.CL.yI(!1);this.T=new g.jF(this.xI,580+k.durationMs,this);this.T.start();this.S.push(this.listen("mouseover",this.J6,this));this.S.push(this.listen("mouseout",this.Uz,this))}; g.E.tv=function(){if(!this.j.G().D("player_new_info_card_format")&&g.V0(this.j.G())&&this.NW){var k=this.CL.element.offsetLeft,p=g.lh("ytp-cards-button-icon"),t=this.j.isFullscreen()?54:36;if(p){var J=k+p.offsetLeft;this.element.style.marginRight=this.CL.element.offsetParent.offsetWidth-k-p.offsetLeft-t+"px";this.element.style.marginLeft=J+"px"}}}; g.E.VE=function(){g.V0(this.j.G())&&this.j.yX()&&this.NW&&this.L.start()}; g.E.J6=function(){this.Z.stop();this.T&&this.T.isActive()&&this.B.start()}; g.E.Uz=function(){this.B.stop();this.T&&!this.T.isActive()&&this.Z.start()}; g.E.wHY=function(){this.T&&this.T.stop()}; g.E.kIp=function(){this.xI()}; g.E.sE=function(){this.xI()}; g.E.xI=function(){!this.T||this.N&&this.N.isActive()||(g.oN("iv-teaser-hidden"),this.C.hide(),g.qN(this.j.getRootNode(),"ytp-cards-teaser-shown"),this.N=new g.jF(function(){for(var k=g.Z(this.S),p=k.next();!p.done;p=k.next())this.qP(p.value);this.S=[];this.T&&(this.T.dispose(),this.T=null);this.CL.yI(!0);!this.j.NB()&&this.j.G().D("enable_error_corrections_infocards_icon_web")&&this.CL.xI()},330,this),this.N.start())}; g.E.l0=function(){return this.NW&&this.C.state!==4}; g.E.Ap=function(){var k=this.j.getRootNode();k&&g.qN(k,"ytp-cards-teaser-shown");g.S9(this.Y,this.N,this.T);g.M.prototype.Ap.call(this)};var VN={},oS=(VN.BUTTON="ytp-button",VN.TITLE_NOTIFICATIONS="ytp-title-notifications",VN.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",VN.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",VN.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",VN);g.r(c3e,g.M);c3e.prototype.onClick=function(){this.api.logClick(this.element);var k=!this.T;this.updateValue("label",k?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",k);nC0(this,k)};g.eM("yt.pubsub.publish",g.oN);g.r(g.qh,g.M);g.qh.prototype.C=function(){window.location.reload()}; g.qh.prototype.T=function(){g.JB(this.element,"ytp-sb-subscribed")}; g.qh.prototype.Y=function(){g.qN(this.element,"ytp-sb-subscribed")};g.r(Gi6,g.M);g.E=Gi6.prototype;g.E.gxp=function(k){this.api.logClick(this.Y);var p=this.api.G();p.Y||p.IY?BG6(this)&&(this.isExpanded()?this.vz():this.OG()):g.R_(window,PHi(this));k.preventDefault()}; g.E.Gm=function(){Rfi(this);this.channel.classList.remove("ytp-title-expanded")}; g.E.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.E.OG=function(){if(BG6(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.N&&this.N.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var k=this.api.getVideoData();this.T&&k.FE&&k.subscribed&&(this.T.show(), this.api.logVisibility(this.T.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.E.vz=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.N&&this.N.start()}; g.E.Zr=function(){var k=this.api.G();this.rS(!this.api.isEmbedsShortsMode());var p=this.api.getVideoData(),t=this.api.G(),J=this.api.getVideoData();this.C=!1;var q=!!J.videoId&&!!J.Fd&&!!J.profilePicture;this.api.getPresentingPlayerType()===2?this.C=q&&!!J.isListed&&!!J.author:g.V0(t)&&(this.C=q&&!g.Ky(J)&&!t.N&&!(t.B&&this.api.getPlayerSize().width<200));t=p.profilePicture;k=g.V0(k)?p.expandedTitle:p.author;t=t===void 0?"":t;k=k===void 0?"":k;this.C?(this.Z!==t&&(this.Y.style.backgroundImage="url("+ t+")",this.Z=t),this.updateValue("channelLogoLabel",g.fT("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:k})),g.JB(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.qN(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Y,this.C&&this.X);this.subscribeButton&&(this.subscribeButton.channelId=p.Nc);this.updateValue("expandedTitle",p.expandedTitle);this.updateValue("expandedSubtitle",p.expandedSubtitle)}; g.E.Wp=function(k){g.M.prototype.Wp.call(this,k);this.api.logVisibility(this.Y,this.C&&k)};g.r(F0,g.zB);F0.prototype.T=function(k){k.defaultPrevented||k.keyCode!==39||(this.element.click(),k.preventDefault())};g.r(zfw,g.M);g.E=zfw.prototype;g.E.show=function(){g.M.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}; g.E.hide=function(){g.M.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}; g.E.No=function(k){var p=Am(k),t=g.FI(this.closeButton.element,p),J=g.FI(this.element,p);k=this.T&&g.FI(this.T,p)&&g.A5(k);p&&(J||k)&&!t||this.hide()}; g.E.C8=function(){i_L(g.Bs(this.fp.G()),"user_info_panel",function(){window.location.reload()})}; g.E.Zr=function(){var k=this.fp.G(),p={USER_NAME:k.userDisplayName,USER_EMAIL:k.Gt};this.updateValue("icon",X7j());this.updateValue("watchingAsUsername",g.fT("Watching as $USER_NAME",p));k.Gt?this.updateValue("watchingAsEmail",g.fT("($USER_EMAIL)",p)):this.updateValue("watchingAsEmail","")};g.r(hfi,g.XM);g.E=hfi.prototype;g.E.wG=function(){this.Pp.xI()}; g.E.uRy=function(){Jr(this.Hi.element)}; g.E.Rcp=function(){dr(this,this.j.getDebugText(!0))&&tp(this.XA,Nq())}; g.E.bTy=function(){dr(this,this.j.getVideoEmbedCode())&&tp(this.XA,vpi());this.j.logClick(this.GS.element);PA("EMBED",this.j.getVideoData().videoId,this.j.getPlaylistId()||"")}; g.E.lxT=function(){dr(this,this.j.getVideoUrl(!0,!0))&&tp(this.XA,rP());this.j.logClick(this.getVideoUrl.element);PA("COPY_PASTE",this.j.getVideoData().videoId,this.j.getPlaylistId()||"")}; g.E.XHy=function(){dr(this,this.j.getVideoUrl(!1,!0))&&tp(this.XA,rP());this.j.logClick(this.BS.element);PA("COPY_PASTE",this.j.getVideoData().videoId,this.j.getPlaylistId()||"")}; g.E.onLoopChange=function(k){var p;(p=this.Hn)==null||xR(p,k)}; g.E.ecT=function(){this.j.setLoopVideo(this.Hn.getValue());this.Pp.xI();this.j.logClick(this.Hn.element)}; g.E.m2O=function(k){this.j.reportPlaybackIssue();if(g.kO(k,this.j,!ei(this.j.G()))){k=this.j;var p=k.app.getFeedbackProductData();k.dS("onFeedbackStartRequest",p);k.isFullscreen()&&k.toggleFullscreen()}this.Pp.xI()}; g.E.Bf8=function(){g.F4(this.j,"isVideoInfoVisible",[])?g.F4(this.j,"hideVideoInfo",[]):g.F4(this.j,"showVideoInfo",[]);this.Pp.xI()}; g.E.zKb=function(){this.YL&&(this.z2||(this.z2=new zfw(this.j,this.YL.element),g.z(this,this.z2),g.cO(this.j,this.z2.element,4)),this.z2.show(),this.Pp.xI(),this.j.logClick(this.YL.element))}; g.E.onVideoDataChange=function(k,p){this.AX(p)}; g.E.AX=function(k){var p=this.j.G(),t=this.j.getPresentingPlayerType()===2,J=!t||k.isListed;J=!p.Y8&&!!k.videoId&&J;p.playerStyle!=="play"?p="https://support.google.com/youtube/?p=report_playback":(p={contact_type:"playbackissue",html5:1,ei:k.eventId,v:k.videoId,p:"movies_playback"},k.Y&&(p.fmt=k.Y.itag),k.clientPlaybackNonce&&(p.cpn=k.clientPlaybackNonce),k.partnerId&&(p.partnerid=k.partnerId),p=g.hM("//support.google.com/googleplay/",p));this.GS.rS(J&&k.allowEmbed);this.getVideoUrl.rS(J);this.BS.rS(J&& !k.isLivePlayback);this.n1.HH(p,"href");var q;(q=this.Hn)==null||q.rS(!k.isLivePlayback&&!t);var F;(F=this.YL)==null||F.rS(!t)}; g.E.Wp=function(k){g.XM.prototype.Wp.call(this,k);this.j.logVisibility(this.GS.element,k);this.j.logVisibility(this.getVideoUrl.element,k);this.j.logVisibility(this.BS.element,k);this.Hn&&this.j.logVisibility(this.Hn.element,k);this.YL&&this.j.logVisibility(this.YL.element,k)};g.r(gCw,g.Bu);g.E=gCw.prototype;g.E.Pc=function(k){var p=Am(k);if(!(p&&(EP(p,"a")||EP(p,null,"ytp-no-contextmenu"))||this.NW)){var t;this.NO=(k=(t=k.touches)==null?void 0:t.item(0))?new g.NL(k.clientX,k.clientY):new g.NL(0,0);this.Y8.start()}}; g.E.ww=function(){this.Y8.stop()}; g.E.un6=function(){this.open(this.NO)}; g.E.FT=function(){if(this.N&&amT(this.N)){var k=amT(this.N).element;k.tabIndex=-1;k.focus()}else this.element.tabIndex=-1,this.element.focus()}; g.E.show=function(){this.N||(this.N=new hfi(this.j,this,this.XA),g.z(this,this.N),g.zr(this,this.N));this.N.onLoopChange(this.j.getLoopVideo());g.Bu.prototype.show.call(this);this.j.logVisibility(this.element,!0);this.N.Wp(!0)}; g.E.hide=function(){MB0(this);g.Bu.prototype.hide.call(this);this.j.logVisibility(this.element,!1);this.N&&this.N.Wp(!1)}; g.E.Ajh=function(k){var p=Am(k);this.NW||p&&(EP(p,"a")||EP(p,null,"ytp-no-contextmenu"))||(k.preventDefault(),this.open(new g.NL(k.pageX,k.pageY)))}; g.E.Iu=function(k){if(k){var p=k.getBoundingClientRect();this.open(new g.NL(p.x,p.y))}g.Bu.prototype.Iu.call(this,k)}; g.E.open=function(k){uw6(this);var p=this.j.getVideoData();g.$E(this.element,"ytp-dni",p.JB);this.element.style.left="";this.element.style.top="";k.x++;k.y++;g.Bu.prototype.Iu.call(this);var t=IB(this).body;p=new H0(0,Infinity,Infinity,0);var J=zJ(t);for(var q=J.T.body,F=J.T.documentElement,d=$si(J.T);t=vzq(t);)if((!g.Ok||t.clientHeight!=0||t!=q)&&t!=q&&t!=F&&NJ(t,"overflow")!="visible"){var S=g.r5(t),U=new g.NL(t.clientLeft,t.clientTop);S.x+=U.x;S.y+=U.y;p.top=Math.max(p.top,S.y);p.right=Math.min(p.right, S.x+t.clientWidth);p.bottom=Math.min(p.bottom,S.y+t.clientHeight);p.left=Math.max(p.left,S.x)}q=d.scrollLeft;d=d.scrollTop;p.left=Math.max(p.left,q);p.top=Math.max(p.top,d);J=Fvq(J.T.defaultView||window);p.right=Math.min(p.right,q+J.width);p.bottom=Math.min(p.bottom,d+J.height);J=p.top>=0&&p.left>=0&&p.bottom>p.top&&p.right>p.left?p:null;p=this.size;k=k.clone();p=p.clone();J&&(d=p,q=5,(q&65)==65&&(k.x<J.left||k.x>=J.right)&&(q&=-2),(q&132)==132&&(k.y<J.top||k.y>=J.bottom)&&(q&=-5),k.x<J.left&&q&1&& (k.x=J.left),q&16&&(F=k.x,k.x<J.left&&(k.x=J.left),k.x+d.width>J.right&&(d.width=Math.min(J.right-k.x,F+d.width-J.left),d.width=Math.max(d.width,0))),k.x+d.width>J.right&&q&1&&(k.x=Math.max(J.right-d.width,J.left)),k.y<J.top&&q&4&&(k.y=J.top),q&32&&(F=k.y,k.y<J.top&&(k.y=J.top),k.y+d.height>J.bottom&&(d.height=Math.min(J.bottom-k.y,F+d.height-J.top),d.height=Math.max(d.height,0))),k.y+d.height>J.bottom&&q&4&&(k.y=Math.max(J.bottom-d.height,J.top)));J=new g.qJ(0,0,0,0);J.left=k.x;J.top=k.y;J.width= p.width;J.height=p.height;g.Yc(this.element,new g.NL(J.left,J.top));g.Df(this.C);this.C.V(IB(this),"contextmenu",this.juS);this.C.V(this.j,"fullscreentoggled",this.onFullscreenToggled);this.C.V(this.j,"pageTransition",this.K8)}; g.E.juS=function(k){if(!k.defaultPrevented){var p=Am(k);g.FI(this.element,p)||this.xI();this.j.G().disableNativeContextMenu&&k.preventDefault()}}; g.E.onFullscreenToggled=function(){this.xI();uw6(this)}; g.E.K8=function(){this.xI()};g.r(Ev,g.M);Ev.prototype.onClick=function(){var k=this,p,t,J,q;return g.Q(function(F){if(F.T==1)return p=k.api.G(),t=k.api.getVideoData(),J=k.api.getPlaylistId(),q=p.getVideoUrl(t.videoId,J,void 0,!0),g.n(F,O_T(k,q),2);F.Y&&jDh(k);k.api.logClick(k.element);g.CS(F)})}; Ev.prototype.Zr=function(){this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=lmM(this);g.$E(this.element,"ytp-copylink-button-visible",this.visible); this.rS(this.visible);this.tooltip.Tk();this.api.logVisibility(this.element,this.visible&&this.X)}; Ev.prototype.Wp=function(k){g.M.prototype.Wp.call(this,k);this.api.logVisibility(this.element,this.visible&&k)}; Ev.prototype.Ap=function(){g.M.prototype.Ap.call(this);g.qN(this.element,"ytp-copylink-button-visible")};g.r(Sj,g.M);Sj.prototype.show=function(){g.M.prototype.show.call(this);g.Oc(this.Y)}; Sj.prototype.hide=function(){this.C.stop();this.N=0;this.Kp("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.qN(this.element,"ytp-chapter-seek");g.qN(this.element,"ytp-time-seeking");g.M.prototype.hide.call(this)}; Sj.prototype.Zz=function(k,p,t,J){this.N=k===this.Z?this.N+J:J;this.Z=k;var q=k===-1?this.L:this.B;q&&this.j.logClick(q);this.S?this.Y.stop():g.H8(this.Y);this.C.start();this.element.setAttribute("data-side",k===-1?"back":"forward");var F=3*this.j.Uy().getPlayerSize().height;q=this.j.Uy().getPlayerSize();q=q.width/3-3*q.height;this.T.style.width=F+"px";this.T.style.height=F+"px";k===1?(this.T.style.left="",this.T.style.right=q+"px"):k===-1&&(this.T.style.right="",this.T.style.left=q+"px");var d=F* 2.5;F=d/2;var S=this.Kp("ytp-doubletap-ripple");S.style.width=d+"px";S.style.height=d+"px";k===1?(k=this.j.Uy().getPlayerSize().width-p+Math.abs(q),S.style.left="",S.style.right=k-F+"px"):k===-1&&(k=Math.abs(q)+p,S.style.right="",S.style.left=k-F+"px");S.style.top="calc((33% + "+Math.round(t)+"px) - "+F+"px)";if(t=this.Kp("ytp-doubletap-ripple"))t.classList.remove("ytp-doubletap-ripple"),t.classList.add("ytp-doubletap-ripple");KnS(this,this.S?this.N:J)};g.r(xAw,Gr);g.E=xAw.prototype;g.E.o0=function(k){this.qO||(this.qO=new hl(this.j),g.z(this,this.qO));var p,t;if((p=this.gs)==null?0:(t=p.menu)==null?0:t.menuRenderer)this.qO.open(this.gs.menu.menuRenderer,k.target),k.preventDefault()}; g.E.WF=function(){return!!this.T}; g.E.PA=function(){return!!this.T}; g.E.wN=function(k){k.target===this.overflowButton.element?k.preventDefault():(this.yn&&this.j.zb("innertubeCommand",this.yn),this.ZV(!1))}; g.E.OR=function(){this.ZV(!0);var k,p;((k=this.T)==null?0:(p=k.bannerData)==null?0:p.dismissedStatusKey)&&this.nE.push(this.T.bannerData.dismissedStatusKey);this.Dz()}; g.E.Gg=function(){this.Dz();Nh(this)}; g.E.vCS=function(k){var p=this,t;if(k.id!==((t=this.T)==null?void 0:t.identifier)){this.Dz();t=g.Z(this.P0);for(var J=t.next();!J.done;J=t.next()){var q=J.value,F=void 0,d=void 0;if((J=(F=q)==null?void 0:(d=F.bannerData)==null?void 0:d.itemData)&&q.identifier===k.id){d=F=void 0;var S=((F=q)==null?void 0:(d=F.bannerData)==null?void 0:d.dismissedStatusKey)||"";if(this.nE.includes(S))break;this.T=q;this.banner.element.setAttribute("aria-label",J.accessibilityLabel||"");J.trackingParams&&(this.C=!0,this.j.setTrackingParams(this.badge.element, J.trackingParams));this.L.show();Pu(this);this.j6.rS(!J.stayInApp);UVi(this);pfi(this);bs(this);this.yn=g.e(J.onTapCommand,Qt);if(q=g.e(J.menuOnTap,Qt))this.gs=g.e(q,THA);q=void 0;this.banner.update({thumbnail:(q=(J.thumbnailSources||[])[0])==null?void 0:q.url,title:J.productTitle,price:J.priceReplacementText?J.priceReplacementText:J.price,salesOriginalPrice:oj0(this),priceDropReferencePrice:qe_(this),promotionText:Jaw(this),priceA11yText:FIu(this),affiliateDisclaimer:J.affiliateDisclaimer,vendor:$V6(this)}); S=d=F=q=void 0;((q=J)==null?0:(F=q.hiddenProductOptions)==null?0:F.showDropCountdown)&&((d=J)==null?0:(S=d.hiddenProductOptions)==null?0:S.dropTimestampMs)&&(this.ez=new g.jF(function(){Seu(p)},1E3),this.j6.hide(),this.countdownTimer.show(),Seu(this)); this.j.D("web_player_enable_featured_product_banner_exclusives_on_desktop")&&k$L(this)&&(this.aO=new g.jF(function(){tb9(p)},1E3),tb9(this))}}}}; g.E.Dz=function(){this.T&&(this.T=void 0,this.uO())}; g.E.onVideoDataChange=function(k,p){var t=this;k==="dataloaded"&&Nh(this);var J,q,F;k=g.e((J=p.getWatchNextResponse())==null?void 0:(q=J.playerOverlays)==null?void 0:(F=q.playerOverlayRenderer)==null?void 0:F.productsInVideoOverlayRenderer,yja);this.overflowButton.show();this.dismissButton.hide();var d=k==null?void 0:k.featuredProductsEntityKey;this.trendingOfferEntityKey=k==null?void 0:k.trendingOfferEntityKey;this.P0.length||(Ej9(this,d),bs(this));var S;(S=this.jW)==null||S.call(this);this.jW=g.Kq.subscribe(function(){Ej9(t, d);bs(t)})}; g.E.Ap=function(){Nh(this);UVi(this);pfi(this);Gr.prototype.Ap.call(this)};g.r(Yew,g.M);Yew.prototype.onClick=function(){this.j.logClick(this.element,this.Y)};g.r(Ty0,g.GB);g.E=Ty0.prototype;g.E.show=function(){g.GB.prototype.show.call(this);this.j.publish("infopaneldetailvisibilitychange",!0);this.j.logVisibility(this.element,!0);raM(this,!0)}; g.E.hide=function(){g.GB.prototype.hide.call(this);this.j.publish("infopaneldetailvisibilitychange",!1);this.j.logVisibility(this.element,!1);raM(this,!1)}; g.E.getId=function(){return this.C}; g.E.o7=function(){return this.itemData.length}; g.E.onVideoDataChange=function(k,p){if(p){var t,J,q,F;this.update({title:((t=p.Yd)==null?void 0:(J=t.title)==null?void 0:J.content)||"",body:((q=p.Yd)==null?void 0:(F=q.bodyText)==null?void 0:F.content)||""});var d;k=((d=p.Yd)==null?void 0:d.trackingParams)||null;this.j.setTrackingParams(this.element,k);d=g.Z(this.itemData);for(k=d.next();!k.done;k=d.next())k.value.dispose();this.itemData=[];var S;if((S=p.Yd)==null?0:S.ctaButtons)for(p=g.Z(p.Yd.ctaButtons),S=p.next();!S.done;S=p.next())if(S=g.e(S.value, E29))S=new Yew(this.j,S,this.T),S.IG&&(this.itemData.push(S),S.QT(this.items))}}; g.E.Ap=function(){this.hide();g.GB.prototype.Ap.call(this)};g.r(Aah,g.M);g.E=Aah.prototype;g.E.onVideoDataChange=function(k,p){CXe(this,p);this.B1&&Vbe(this,this.B1)}; g.E.Ff=function(k){var p=this.j.getVideoData();this.videoId!==p.videoId&&CXe(this,p);Vbe(this,k.state);this.B1=k.state}; g.E.KQ=function(k){(this.C=k)?this.hide():this.T&&this.show()}; g.E.Q5=function(){this.Y||this.Iu();this.showControls=!0}; g.E.jQ=function(){this.Y||this.xI();this.showControls=!1}; g.E.Iu=function(){var k;if((k=this.j)==null?0:k.D("embeds_web_enable_info_panel_sizing_fix")){var p;k=(p=this.j)==null?void 0:p.getPlayerSize();p=k.width<380;var t;k=k.height<(((t=this.j)==null?0:t.isEmbedsShortsMode())?400:280);var J,q;if((((J=this.j)==null?0:J.getPlayerStateObject().isCued())||((q=this.j)==null?0:g.u(q.getPlayerStateObject(),1024)))&&p&&k)return}this.T&&!this.C&&(this.N.show(),this.j.publish("infopanelpreviewvisibilitychange",!0),this.j.logVisibility(this.element,!0))}; g.E.xI=function(){this.T&&!this.C&&(this.N.hide(),this.j.publish("infopanelpreviewvisibilitychange",!1),this.j.logVisibility(this.element,!1))}; g.E.zk6=function(){this.Y=!1;this.showControls||this.xI()};var msW={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(msW).reduce(function(k,p){k[msW[p]]=p;return k},{}); var VU4={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(VU4).reduce(function(k,p){k[VU4[p]]=p;return k},{}); var Wvq={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Wvq).reduce(function(k,p){k[Wvq[p]]=p;return k},{});var Dsa,s8q;Dsa=[{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"}];s8q=[{option:0,text:y$(0)},{option:.25,text:y$(.25)},{option:.5,text:y$(.5)},{option:.75,text:y$(.75)},{option:1,text:y$(1)}]; g.Zx=[{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:Dsa},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:y$(.5)},{option:-1,text:y$(.75)},{option:0,text:y$(1)},{option:1,text:y$(1.5)},{option:2, text:y$(2)},{option:3,text:y$(3)},{option:4,text:y$(4)}]},{option:"background",text:"Background color",options:Dsa},{option:"backgroundOpacity",text:"Background opacity",options:s8q},{option:"windowColor",text:"Window color",options:Dsa},{option:"windowOpacity",text:"Window opacity",options:s8q},{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:y$(.25)},{option:.5,text:y$(.5)},{option:.75,text:y$(.75)},{option:1,text:y$(1)}]}];var LvS=[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.r(caS,g.nC);g.E=caS.prototype; g.E.Nl=function(k){k.repeat||(this.N.nD=!1);var p=!1,t=k.keyCode,J=Am(k),q=!k.altKey&&!k.ctrlKey&&!k.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||LvS.includes(t)),F=!1,d=!1,S=this.api.G();k.defaultPrevented?(q=!1,d=!0):S.l1&&!this.api.isMutedByEmbedsMutedAutoplay()&&(q=!1);if(t===9)p=!0;else{if(J)switch(t){case 32:case 13:if(J.tagName==="BUTTON"||J.tagName==="A"||J.tagName==="INPUT")p=!0,q=!1;else if(q){var U=J.getAttribute("role");!U||U!=="option"&&U!=="button"&&U.indexOf("menuitem")!==0|| (p=!0,J.click(),F=!0)}break;case 37:case 39:case 36:case 35:p=J.getAttribute("role")==="slider";break;case 38:case 40:U=J.getAttribute("role"),J=t===38?J.previousSibling:J.nextSibling,U==="slider"?p=!0:q&&(U==="option"?(J&&J.getAttribute("role")==="option"&&J.focus(),F=p=!0):U&&U.indexOf("menuitem")===0&&(J&&J.hasAttribute("role")&&J.getAttribute("role").indexOf("menuitem")===0&&J.focus(),F=p=!0))}if(q&&!F)switch(t){case 38:F=Math.min(this.api.getVolume()+5,100);Jp(this.XA,F,!1);this.api.setVolume(F); d=F=!0;break;case 40:F=Math.max(this.api.getVolume()-5,0);Jp(this.XA,F,!0);this.api.setVolume(F);d=F=!0;break;case 36:this.api.qA()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),d=F=!0);break;case 35:this.api.qA()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),d=F=!0)}}p&&Td(this,!0);(p||d)&&this.HQ.yQ();(F||q&&this.handleGlobalKeyDown(t,k.shiftKey,k.ctrlKey,k.altKey,k.metaKey,k.key,k.code,k.repeat))&&k.preventDefault();S.Z&&(k={keyCode:k.keyCode, altKey:k.altKey,ctrlKey:k.ctrlKey,metaKey:k.metaKey,shiftKey:k.shiftKey,handled:k.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.xW("onKeyPress",k))}; g.E.C6=function(k){var p=k.keyCode;(!this.api.D("web_player_spacebar_control_bugfix")||this.api.D("web_player_spacebar_control_bugfix")&&!this.C)&&this.handleGlobalKeyUp(p,k.shiftKey,k.ctrlKey,k.altKey,k.metaKey,k.key,k.code)&&k.preventDefault()}; g.E.handleGlobalKeyUp=function(k,p,t,J,q,F,d){this.api.publish("keyboardserviceglobalkeyup",{keyCode:k,shiftKey:p,ctrlKey:t,altKey:J,metaKey:q,key:F,code:d});p=!1;if(this.N.nD)return p;(t=g.LK(this.api.EQ()))&&(t=t.zZ)&&t.NW&&(t.E5(k),p=!0);switch(k){case 9:Td(this,!0);p=!0;break;case 32:if(this.api.D("web_speedmaster_spacebar_control")&&(!this.api.D("web_player_spacebar_control_bugfix")&&!this.C||this.api.D("web_player_spacebar_control_bugfix"))&&!this.api.G().l1){var S,U;k=(S=this.progressBar)== null?void 0:(U=S.Y)==null?void 0:U.isEnabled;p=this.LM(k)}}return p}; g.E.handleGlobalKeyDown=function(k,p,t,J,q,F,d,S){S||(this.N.nD=!1);var U=!1,f=this.api.G();if(f.l1&&!this.api.isMutedByEmbedsMutedAutoplay())return U;var b=g.LK(this.api.EQ());if(b&&(b=b.zZ)&&b.NW)switch(k){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:U=b.YX(k)}f.S||U||(U=F||String.fromCharCode(k).toLowerCase(),this.Y+=U,"awesome".indexOf(this.Y)===0?(U=!0,7===this.Y.length&&zkM(this.api.getRootNode(),"ytp-color-party")):(this.Y=U,U="awesome".indexOf(this.Y)===0));if(!U&&(!this.api.isMutedByEmbedsMutedAutoplay()|| LvS.includes(k))){var N=this.api.getVideoData(),y,Y;b=(y=this.progressBar)==null?void 0:(Y=y.Y)==null?void 0:Y.isEnabled;y=N?N.rK:[];Y=jQ?J:t;switch(k){case 80:p&&!f.qO&&(tp(this.XA,B6e(),"Previous"),this.api.previousVideo(),U=!0);break;case 78:p&&!f.qO&&(tp(this.XA,Zv(),"Next"),this.api.nextVideo(),U=!0);break;case 74:this.api.qA()&&(this.api.startSeekCsiAction(),this.T?this.api.D("enable_key_press_seek_logging")?(U=rr(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),Uv(this.T, -1,10,U)):Uv(this.T,-1,10):tp(this.XA,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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),U=!0);break;case 76:this.api.qA()&&(this.api.startSeekCsiAction(),this.T?this.api.D("enable_key_press_seek_logging")?(U=rr(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),Uv(this.T,1,10,U)):Uv(this.T,1,10):tp(this.XA,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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),U=!0);break;case 37:this.api.qA()&&(this.api.startSeekCsiAction(),Y?(Y=sMh(y,this.api.getCurrentTime()*1E3),Y!==-1&&this.T!=null&&(H_M(this.T,-1,y[Y].title),this.api.seekTo(y[Y].startTime/1E3,void 0,void 0,void 0,53),U=!0)):(this.T?this.api.D("enable_key_press_seek_logging")?(U=rr(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),Uv(this.T,-1,5,U)):Uv(this.T,-1,5):tp(this.XA,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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),U=!0));break;case 39:this.api.qA()&&(this.api.startSeekCsiAction(),Y?(Y=DV_(y,this.api.getCurrentTime()*1E3),Y!==-1&&this.T!=null&&(H_M(this.T,1,y[Y].title),this.api.seekTo(y[Y].startTime/1E3,void 0,void 0,void 0,52),U=!0)):(this.T!=null?this.api.D("enable_key_press_seek_logging")?(U=rr(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),Uv(this.T,1,5,U)):Uv(this.T,1,5):tp(this.XA,{K:"svg",J:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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),U=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Jp(this.XA,this.api.getVolume(),!1)):(this.api.mute(),Jp(this.XA,0,!0));U=!0;break;case 32:U=this.api.D("web_speedmaster_spacebar_control")?!this.api.G().qO:this.LM(b);break;case 75:U=this.LM(b);break;case 190:p?f.enableSpeedOptions&&wfh(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U+.25,!0),DAu(this.XA,!1),U=!0):this.api.qA()&&(this.step(1),U=!0);break;case 188:p? f.enableSpeedOptions&&wfh(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U-.25,!0),DAu(this.XA,!0),U=!0):this.api.qA()&&(this.step(-1),U=!0);break;case 70:SJ9(this.api)&&(this.api.toggleFullscreen().catch(function(){}),U=!0); break;case 27:b?(this.progressBar.bE(),U=!0):this.S()&&(U=!0)}if(f.controlsType!=="3")switch(k){case 67:g.iU(this.api.EQ())&&(f=this.api.getOption("captions","track"),this.api.toggleSubtitles(),sDw(this.XA,!f||f&&!f.displayName),U=!0);break;case 79:CA(this,"textOpacity");break;case 87:CA(this,"windowOpacity");break;case 187:case 61:CA(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:CA(this,"fontSizeIncrement",!0,!0)}var T;p||t||J||(k>=48&&k<=57?T=k-48:k>=96&&k<=105&&(T=k-96));T!=null&&this.api.qA()&& (this.api.startSeekCsiAction(),f=this.api.getProgressState(),this.api.seekTo(T/10*(f.seekableEnd-f.seekableStart)+f.seekableStart,void 0,void 0,void 0,81),U=!0);U&&this.HQ.yQ()}this.C||this.api.publish("keyboardserviceglobalkeydown",{keyCode:k,shiftKey:p,ctrlKey:t,altKey:J,metaKey:q,key:F,code:d,repeat:S},this.N);return U}; g.E.step=function(k){this.api.qA();if(this.api.getPlayerStateObject().isPaused()){var p=this.api.getVideoData().Y;p&&(p=p.video)&&this.api.seekBy(k/(p.fps||30),void 0,void 0,k>0?77:78)}}; g.E.LM=function(k){if(!this.api.G().qO){var p;var t,J=(p=this.api.getVideoData())==null?void 0:(t=p.getPlayerResponse())==null?void 0:t.playabilityStatus;if(J){var q;p=((q=g.e(J.miniplayer,W8q))==null?void 0:q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else p=!1;p&&this.api.zb("onExpandMiniplayer");k?this.progressBar.Rf():(k=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XA.Ac(k),k?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.E.Ap=function(){g.H8(this.X);g.nC.prototype.Ap.call(this)};g.r(g.Ap,g.M);g.Ap.prototype.Hk=tw(11); g.Ap.prototype.Zr=function(){var k=this.j.G(),p=k.N||this.j.D("web_player_hide_overflow_button_if_empty_menu")&&this.jP.isEmpty();k=g.V0(k)&&g.DB(this.j)&&g.u(this.j.getPlayerStateObject(),128);var t=this.j.getPlayerSize();this.visible=this.j.yX()&&!k&&t.width>=240&&!g.Ky(this.j.getVideoData())&&!p&&!this.T&&!this.j.isEmbedsShortsMode();g.$E(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.j.Tk();this.j.logVisibility(this.element,this.visible&&this.X)}; g.Ap.prototype.Wp=function(k){g.M.prototype.Wp.call(this,k);this.j.logVisibility(this.element,this.visible&&k)}; g.Ap.prototype.Ap=function(){g.M.prototype.Ap.call(this);g.qN(this.element,"ytp-overflow-button-visible")};g.r(iUS,g.GB);g.E=iUS.prototype;g.E.qo=function(k){k=Am(k);g.FI(this.element,k)&&(g.FI(this.T,k)||g.FI(this.closeButton,k)||X4(this))}; g.E.xI=function(){g.GB.prototype.xI.call(this);this.j.Mc(this.element)}; g.E.show=function(){this.NW&&this.j.publish("OVERFLOW_PANEL_OPENED");g.GB.prototype.show.call(this);this.element.setAttribute("aria-modal","true");PX0(this,!0)}; g.E.hide=function(){g.GB.prototype.hide.call(this);this.element.removeAttribute("aria-modal");PX0(this,!1)}; g.E.onFullscreenToggled=function(k){!k&&this.l0()&&X4(this)}; g.E.isEmpty=function(){return this.actionButtons.length===0}; g.E.focus=function(){for(var k=g.Z(this.actionButtons),p=k.next();!p.done;p=k.next())if(p=p.value,p.NW){p.focus();break}};g.r(G$i,g.M);G$i.prototype.onClick=function(k){g.kO(k,this.api)&&this.api.playVideoAt(this.index)};g.r(Ikh,g.GB);g.E=Ikh.prototype;g.E.show=function(){g.GB.prototype.show.call(this);this.T.V(this.api,"videodatachange",this.hv);this.T.V(this.api,"onPlaylistUpdate",this.hv);this.hv()}; g.E.hide=function(){g.GB.prototype.hide.call(this);g.Df(this.T);this.updatePlaylist(null)}; g.E.hv=function(){this.updatePlaylist(this.api.getPlaylist());this.api.G().N&&(this.Kp("ytp-playlist-menu-title-name").removeAttribute("href"),this.N&&(this.qP(this.N),this.N=null))}; g.E.H9=function(){var k=this.playlist,p=k.author,t=p?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",J={CURRENT_POSITION:String(k.index+1),PLAYLIST_LENGTH:String(k.getLength())};p&&(J.AUTHOR=p);this.update({title:k.title,subtitle:g.fT(t,J),playlisturl:this.api.getVideoUrl(!0)});p=k.Y;if(p===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[k.index];else{t=g.Z(this.playlistData);for(J=t.next();!J.done;J=t.next())J.value.dispose(); t=k.getLength();this.playlistData=[];for(J=0;J<t;J++){var q=new G$i(this.api,k,J);this.playlistData.push(q);q.QT(this.items)}this.selected=this.playlistData[k.index];this.C=p}this.selected&&this.selected.element.setAttribute("aria-checked","true")}; g.E.ABb=function(k){var p=this.api.getVideoUrl(!0);g.pP(p,this.api,k)}; g.E.updatePlaylist=function(k){this.playlist!==k?(this.playlist&&this.playlist.unsubscribe("shuffle",this.H9,this),this.playlist=k,this.C=null,k?(k.subscribe("shuffle",this.H9,this),this.H9()):this.NW&&this.hide()):this.playlist&&this.H9()}; g.E.focus=function(){this.selected.focus()}; g.E.Ap=function(){this.hide();g.GB.prototype.Ap.call(this)};g.r(mL,g.M);mL.prototype.hide=function(){g.M.prototype.hide.call(this);this.Wp(!1);this.api.Tk()}; mL.prototype.Zr=function(){var k=g.V0(this.api.G());g.$E(this.element,"ytp-playlist-menu-button-tiny",this.api.Uy().getPlayerSize().width<400&&!k);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.fT("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.fT("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.NW||(this.show(), this.api.Tk()),this.visible=!0,this.Wp(!0)):this.NW&&this.hide()}; mL.prototype.Wp=function(k){g.M.prototype.Wp.call(this,k);this.api.logVisibility(this.element,this.visible&&k)}; mL.prototype.T=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Zr,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Zr,this);this.Zr()};g.r(Xfj,g.M);g.E=Xfj.prototype;g.E.Mo=function(){this.C?eli(this):zlT(this)}; g.E.SQ=function(){this.C?(V$(this),this.Z=!0):zlT(this)}; g.E.hAO=function(){this.S=!0;this.BM(1);this.j.publish("promotooltipacceptbuttonclicked",this.acceptButton);V$(this);this.Y&&this.j.logClick(this.acceptButton)}; g.E.oxG=function(){this.S=!0;this.BM(2);V$(this);this.Y&&this.j.logClick(this.dismissButton)}; g.E.OE=function(k){if(this.j.getPresentingPlayerType()===1||this.j.getPresentingPlayerType()===2&&this.B){var p=!0,t=g.lh("ytp-ad-overlay-ad-info-dialog-container"),J=g.lh("ytp-ad-player-overlay-layout"),q=Am(k);if(this.N&&q&&g.FI(this.N,q))this.N=null;else{this.j.getPresentingPlayerType()===1&&q&&Array.from(q.classList).forEach(function(U){if(U.startsWith("ytp-ad")||U.startsWith("ytp-skip-ad"))p=!1}); var F=hlw(this.tooltipRenderer),d;if(((d=this.tooltipRenderer.dismissStrategy)==null?void 0:d.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")F&&(p=p&&!g.FI(this.element,q));else{var S;((S=this.tooltipRenderer.dismissStrategy)==null?void 0:S.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(p=F?!1:p&&g.FI(this.element,q))}this.T&&this.NW&&!t&&!J&&(!q||p&&g.A5(k))&&(this.S=!0,V$(this))}}}; g.E.BM=function(k){var p=this.tooltipRenderer.promoConfig;if(p){switch(k){case 0:var t;if((t=p.impressionEndpoints)==null?0:t.length)var J=p.impressionEndpoints[0];break;case 1:J=p.acceptCommand;break;case 2:J=p.dismissCommand}var q;k=(q=g.e(J,dWS))==null?void 0:q.feedbackToken;J&&k&&(q={feedbackTokens:[k]},k=this.j.DM(),(k==null?0:cy9(J,k.Fm))&&aF(k,J,q))}}; g.E.zA=function(){this.Z||(this.T||(this.T=Rlw(this)),eli(this))}; var Byw={"ytp-settings-button":g.WR()};g.r(Wa,g.M);Wa.prototype.onStateChange=function(k){this.cH(k.state)}; Wa.prototype.cH=function(k){this.rS(g.u(k,2))}; Wa.prototype.onClick=function(){this.j.getPlayerStateObject().isOrWillBePlaying();this.j.playVideo()};g.r(Dx,g.M);Dx.prototype.onClick=function(k){this.api.logClick(this.element);var p=g.hM(this.api.G().NA,{focusSearch:"true"}),t={};g.F4(this.api,"addEmbedsConversionTrackingParams",[t]);p=g.hM(p,t);var J;(t=(J=this.api.getVideoData().Fh)==null?void 0:J.params)&&(p=g.hM(p,{bp:t}));g.R_(window,p);k.preventDefault()}; Dx.prototype.T=function(){if(this.api.D("embeds_web_enable_search_button")){var k=this.api.G();var p=this.api.getVideoData(),t=this.api.Uy().getPlayerSize().width;k=g.V0(k)&&t>=this.Y&&!k.N&&!p.isAd()&&!this.api.isEmbedsShortsMode()}else k=!1;this.visible=k;this.rS(this.visible);g.$E(this.element,"ytp-search-button-visible",this.visible);g.$E(this.element,"ytp-show-search-title",!this.api.yX());this.api.logVisibility(this.element,this.visible&&this.X)}; Dx.prototype.Wp=function(k){g.M.prototype.Wp.call(this,k);this.api.logVisibility(this.element,this.visible&&k)};g.r(g.LA,g.M);g.E=g.LA.prototype;g.E.d4=tw(8);g.E.onClick=function(){var k=this,p=this.api.G(),t=this.api.getVideoData(this.api.getPresentingPlayerType()),J=this.api.getPlaylistId();p=this.api.D("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):p.getVideoUrl(t.videoId,J,void 0,!0);if(navigator.share)try{var q=navigator.share({title:t.title,url:p});q instanceof Promise&&q.catch(function(F){MbM(k,F)})}catch(F){F instanceof Error&&MbM(this,F)}else this.T.wP(),X4(this.N,this.element,!1); this.api.logClick(this.element)}; g.E.Zr=function(){var k=this.api.G(),p=this.api.isEmbedsShortsMode();g.$E(this.element,"ytp-show-share-title",g.V0(k)&&!p);this.T.wj()&&p?(k=(this.api.Uy().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.S4(this.element,"right",k+"px")):p&&g.S4(this.element,"right","0px");this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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=akT(this);g.$E(this.element,"ytp-share-button-visible",this.visible);this.rS(this.visible);this.tooltip.Tk();this.api.logVisibility(this.element,akT(this)&&this.X)}; g.E.Wp=function(k){g.M.prototype.Wp.call(this,k);this.api.logVisibility(this.element,this.visible&&k)}; g.E.Ap=function(){g.M.prototype.Ap.call(this);g.qN(this.element,"ytp-share-button-visible")};g.r(uli,g.GB);g.E=uli.prototype;g.E.xz=function(k){k=Am(k);g.FI(this.S,k)||g.FI(this.closeButton,k)||X4(this)}; g.E.xI=function(){g.GB.prototype.xI.call(this);this.tooltip.Mc(this.element);this.api.logVisibility(this.T,!1);for(var k=g.Z(this.N),p=k.next();!p.done;p=k.next())p=p.value,this.api.hasVe(p.element)&&this.api.logVisibility(p.element,!1)}; g.E.show=function(){var k=this.NW;g.GB.prototype.show.call(this);this.Zr();k||this.api.zb("onSharePanelOpened")}; g.E.CGb=function(){this.NW&&this.Zr()}; g.E.Zr=function(){var k=this;g.JB(this.element,"ytp-share-panel-loading");g.qN(this.element,"ytp-share-panel-fail");var p=this.api.getVideoData(),t=this.api.getPlaylistId()&&this.C.checked;p.getSharePanelCommand&&aF(this.api.DM(),p.getSharePanelCommand,{includeListId:t}).then(function(J){k.MO()||(g.qN(k.element,"ytp-share-panel-loading"),jMe(k,J))}); p=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",p);this.updateValue("linkText",p);this.updateValue("shareLinkWithUrl",g.fT("Share link $URL",{URL:p}));Jr(this.T);this.api.logVisibility(this.T,!0)}; g.E.onFullscreenToggled=function(k){!k&&this.l0()&&X4(this)}; g.E.focus=function(){this.T.focus()}; g.E.Ap=function(){g.GB.prototype.Ap.call(this);lkh(this)};g.r(HUw,Gr);g.E=HUw.prototype;g.E.Ap=function(){JW_(this);Gr.prototype.Ap.call(this)}; g.E.wN=function(k){k.target!==this.dismissButton.element&&(this.ZV(!1),this.j.zb("innertubeCommand",this.onClickCommand))}; g.E.OR=function(){this.k8=!0;this.ZV(!0);this.uO()}; g.E.gf0=function(k){this.Z=k;this.uO()}; g.E.onVideoDataChange=function(k,p){if(k=!!p.videoId&&this.videoId!==p.videoId)this.videoId=p.videoId,this.k8=!1,this.NO=!0,this.B=this.Y8=!1,JW_(this),to9(this,!1),this.Y=this.T=!1,ca(this),xVw(this);if(k||!p.videoId)this.gy=this.C=!1;var t,J;if(p==null?0:(t=p.getPlayerResponse())==null?0:(J=t.videoDetails)==null?0:J.isLiveContent)this.y7(!1);else{var q,F,d;p=g.e((q=p.getWatchNextResponse())==null?void 0:(F=q.playerOverlays)==null?void 0:(d=F.playerOverlayRenderer)==null?void 0:d.productsInVideoOverlayRenderer, yja);this.Z=this.enabled=!1;if(p){if(q=p==null?void 0:p.featuredProductsEntityKey){F=g.Kq.getState().entities;var S;if((S=FG(F,"featuredProductsEntity",q))==null?0:S.productsData){this.y7(!1);return}}this.enabled=!0;if(!this.C){var U;S=(U=p.badgeInteractionLogging)==null?void 0:U.trackingParams;(this.C=!!S)&&this.j.setTrackingParams(this.badge.element,S||null)}if(!this.gy){var f;if(this.gy=!((f=p.dismissButton)==null||!f.trackingParams)){var b;this.j.setTrackingParams(this.dismissButton.element,((b= p.dismissButton)==null?void 0:b.trackingParams)||null)}}p.isContentForward&&(U=p.productsData,to9(this,!0),xVw(this),U=pyS(this,U),f=[],U.length>0&&f.push(U[0]),U.length>1&&(b=new g.M({K:"div",W:"ytp-suggested-action-more-products-icon"}),g.z(this,b),f.push(b),f.push.apply(f,g.m(U.slice(1)))),this.S=new g.M({K:"div",U:f,W:"ytp-suggested-action-content-forward-container"}),g.z(this,this.S),this.Oy.element.append(this.S.element));this.text=g.f1(p.text);var N;if(U=(N=p.dismissButton)==null?void 0:N.a11yLabel)this.W0= g.f1(U);this.onClickCommand=p.onClickCommand;this.timing=p.timing;this.Lb()}xcL(this);Pu(this);this.uO()}}; g.E.WF=function(){return!this.Z&&this.enabled&&!this.k8&&!this.j.yX()&&!this.Fd&&(this.B||this.NO)}; g.E.vP=function(k){Gr.prototype.vP.call(this,k);if(this.T||this.Y)this.timing&&va(this.timing.preview)&&(this.T=!1,ca(this),this.Y=!1,ca(this),this.j.VM("shopping_overlay_preview_collapsed"),this.j.VM("shopping_overlay_preview_expanded"),k=nA(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),va(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.j.VM("shopping_overlay_expanded"),k.end=this.timing.expanded.endSec*1E3),this.j.Lb([k])), this.Y8=!0,Pu(this);ca(this)}; g.E.y7=function(k){(this.B=k)?(QS(this),Pu(this,!1)):(JW_(this),this.RY.start());this.uO()}; g.E.Lb=function(k){var p=this.timing;k=(k===void 0?0:k)+this.j.getCurrentTime();var t=[],J=p.visible,q=p.preview;p=p.expanded;va(J)&&(OUe(J,k),t.push(nA(J.startSec,J.endSec,"shopping_overlay_visible")));va(q)&&(OUe(q,k),J=q.startSec+1,t.push(nA(q.startSec,J,"shopping_overlay_preview_collapsed")),t.push(nA(J,q.endSec,"shopping_overlay_preview_expanded")));va(p)&&(OUe(p,k),t.push(nA(p.startSec,p.endSec,"shopping_overlay_expanded")));this.j.Lb(t)};g.r(Fse,g.M); Fse.prototype.Zr=function(){var k=this.api.G();this.rS(g.V0(k)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.NW);var p=this.api.getVideoData(),t=!1;this.api.getPresentingPlayerType()===2?t=!!p.videoId&&!!p.isListed&&!!p.author&&!!p.Fd&&!!p.profilePicture:g.V0(k)&&(t=!!p.videoId&&!!p.Fd&&!!p.profilePicture&&!g.Ky(p)&&!k.N&&!(k.B&&this.api.getPlayerSize().width<200));var J=p.profilePicture;k=g.V0(k)?p.expandedTitle:p.author;J=J===void 0? "":J;k=k===void 0?"":k;t?(this.Y!==J&&(this.T.style.backgroundImage="url("+J+")",this.Y=J),this.updateValue("channelLogoLabel",g.fT("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:k})),g.JB(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.qN(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,t&&this.X);this.api.logVisibility(this.channelName,t&&this.X);this.subscribeButton&&(this.subscribeButton.channelId=p.Nc);this.updateValue("expandedTitle",p.expandedTitle)};g.r(wr,g.GB);wr.prototype.show=function(){g.GB.prototype.show.call(this);this.T.start()}; wr.prototype.hide=function(){g.GB.prototype.hide.call(this);this.T.stop()}; wr.prototype.hP=function(k,p){k==="dataloaded"&&((this.Xo=p.Xo,this.V4=p.V4,isNaN(this.Xo)||isNaN(this.V4))?this.N&&(this.j.VM("intro"),this.j.removeEventListener(g.pT("intro"),this.Z),this.j.removeEventListener(g.tA("intro"),this.S),this.j.removeEventListener("onShowControls",this.C),this.hide(),this.N=!1):(this.j.addEventListener(g.pT("intro"),this.Z),this.j.addEventListener(g.tA("intro"),this.S),this.j.addEventListener("onShowControls",this.C),k=new g.xf(this.Xo,this.V4,{priority:9,namespace:"intro"}), this.j.Lb([k]),this.N=!0))};g.r(is,g.M);is.prototype.onClick=function(){this.j.E9()}; is.prototype.Zr=function(){var k=!0;g.V0(this.j.G())&&(k=k&&this.j.Uy().getPlayerSize().width>=480);this.rS(k);this.updateValue("icon",this.j.QX()?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{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"}}]}: {K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.r(dHi,g.M);dHi.prototype.Ap=function(){this.T=null;g.M.prototype.Ap.call(this)};g.r(Q$,g.M);Q$.prototype.onClick=function(){this.j.zb("innertubeCommand",this.Y)}; Q$.prototype.L=function(k){k!==this.S&&(this.update({title:k,ariaLabel:k}),this.S=k);k?this.show():this.hide()}; Q$.prototype.B=function(){this.T.disabled=this.Y==null;g.$E(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.OF()};g.r(Pa,Q$);Pa.prototype.onClickCommand=function(k){g.e(k,OK)&&this.OF()}; Pa.prototype.updateVideoData=function(k,p){var t,J,q;k=g.e((t=p.getWatchNextResponse())==null?void 0:(J=t.playerOverlays)==null?void 0:(q=J.playerOverlayRenderer)==null?void 0:q.decoratedPlayerBarRenderer,Cq);t=g.e(k==null?void 0:k.playerBarActionButton,g.vT);this.j.D("web_player_updated_entrypoint")&&(this.Z=by(t==null?void 0:t.text));this.Y=t==null?void 0:t.command;Q$.prototype.B.call(this)}; Pa.prototype.OF=function(){var k=this.j.D("web_player_updated_entrypoint")?this.Z:"",p=this.C.T,t,J=((t=this.j.getLoopRange())==null?void 0:t.type)==="clips";if(p.length>1&&!J){k=this.j.getProgressState().current*1E3;t=Y1(p,k);k=p[t].title||"Chapters";if(t!==this.currentIndex||this.N)this.j.zb("innertubeCommand",p[t].onActiveCommand),this.currentIndex=t;this.N=!1}else this.N=!0;Q$.prototype.L.call(this,k)};g.r(Gd,g.M);Gd.prototype.S=function(k){g.u(k.state,32)?SVu(this,this.api.Ee()):this.NW&&(g.u(k.state,16)||g.u(k.state,1))||this.T.hide()}; Gd.prototype.eh=function(){var k=this.api.getPlayerStateObject();(g.u(k,32)||g.u(k,16))&&UH6(this)}; Gd.prototype.Z=function(){this.N=NaN;UH6(this)}; Gd.prototype.hide=function(){this.Y&&SVu(this,null);g.M.prototype.hide.call(this)};g.r(fOh,g.M);g.E=fOh.prototype;g.E.onClick=function(){var k=this;if(this.j.G().Fd||this.j.G().B){this.j.logClick(this.element);try{this.j.toggleFullscreen().catch(function(p){k.wq(p)})}catch(p){this.wq(p)}}else X4(this.message,this.element,!0)}; g.E.wq=function(k){String(k).includes("fullscreen error")?g.wt(k):g.nV(k);this.fW()}; g.E.fW=function(){this.disable();this.message.Iu(this.element,!0)}; g.E.BI=function(){NI()===this.j.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())}; g.E.WX=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var k=window.screen.width*.9,p=window.screen.height*.9,t=Math.max(window.outerWidth,window.innerWidth),J=Math.max(window.outerHeight,window.innerHeight);if(t>J!==k>p){var q=t;t=J;J=q}k>t&&p>J&&this.fW()}}; g.E.disable=function(){var k=this;if(!this.message){var p=(UA(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.GB(this.j,{K:"div",S6:["ytp-popup","ytp-generic-popup"],J:{role:"alert",tabindex:"0"},U:[p[0],{K:"a",J:{href:"https://support.google.com/youtube/answer/6276924", target:this.j.G().L},sy:p[2]},p[4]]},100,!0);this.message.hide();g.z(this,this.message);this.message.subscribe("show",function(t){k.Y.aA(k.message,t)}); g.cO(this.j,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.E.Zr=function(){var k=SJ9(this.j),p=this.j.G().B&&this.j.getPlayerSize().width<250;this.rS(k&&!p);var t;((t=this.j.G())==null?0:t.D("embeds_use_parent_visibility_in_ve_logging"))?this.j.logVisibility(this.element,this.NW&&this.X):this.j.logVisibility(this.element,this.NW)}; g.E.ye=function(k){if(k){var p={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"g",W:"ytp-fullscreen-button-corner-2",U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",W:"ytp-fullscreen-button-corner-3",U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",W:"ytp-fullscreen-button-corner-0",U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g", W:"ytp-fullscreen-button-corner-1",U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};k=g.CK(this.j,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.j.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(t){g.wt(t)})}else p={K:"svg", J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"g",W:"ytp-fullscreen-button-corner-0",U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{K:"g",W:"ytp-fullscreen-button-corner-1",U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",W:"ytp-fullscreen-button-corner-2",U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",W:"ytp-fullscreen-button-corner-3", U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},k=g.CK(this.j,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});k=this.message?null:k;this.update({title:k,icon:p});this.Y.AB().Tk()}; g.E.Ap=function(){this.message||((0,this.T)(),this.T=null);g.M.prototype.Ap.call(this)}; g.E.Wp=function(k){g.M.prototype.Wp.call(this,k);var p;((p=this.j.G())==null?0:p.D("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.NW&&k)};g.r(IS,g.M);IS.prototype.onClick=function(){this.j.logClick(this.element);this.j.seekBy(this.T,!0);var k=this.T>0?1:-1,p=Math.abs(this.T),t=this.j.l6().xP;t&&Uv(t,k,p);this.Y.isActive()?this.N=!0:(k=["ytp-jump-spin"],this.T<0&&k.push("backwards"),this.element.classList.add.apply(this.element.classList,g.m(k)),g.Oc(this.Y))};g.r(X0,Q$);X0.prototype.onClickCommand=function(k){g.e(k,bhA)&&this.OF()}; X0.prototype.updateVideoData=function(){var k,p;this.Y=(k=NbL(this))==null?void 0:(p=k.onTap)==null?void 0:p.innertubeCommand;Q$.prototype.B.call(this)}; X0.prototype.OF=function(){var k="",p=this.C.Z,t,J=(t=NbL(this))==null?void 0:t.headerTitle;t=J?g.f1(J):"";var q;J=((q=this.j.getLoopRange())==null?void 0:q.type)==="clips";p.length>1&&!J&&(k=this.j.getProgressState().current*1E3,q=WI6(p,k),k=q!=null?p[q].title:t,q!=null&&q!==this.currentIndex&&(this.j.zb("innertubeCommand",p[q].onActiveCommand),this.currentIndex=q));Q$.prototype.L.call(this,k)};g.r(RS,g.M);RS.prototype.onClick=function(){this.j.zb("onCollapseMiniplayer");this.j.logClick(this.element)}; RS.prototype.Zr=function(){this.visible=!this.j.isFullscreen();this.rS(this.visible);this.j.logVisibility(this.element,this.visible&&this.X)}; RS.prototype.Wp=function(k){g.M.prototype.Wp.call(this,k);this.j.logVisibility(this.element,this.visible&&k)};g.r(Ba,g.M);g.E=Ba.prototype;g.E.pm=function(k){this.visible=k.width>=300||this.j6;this.rS(this.visible);this.j.logVisibility(this.element,this.visible&&this.X)}; g.E.GIY=function(){this.j.G().RY?this.j.isMuted()?this.j.unMute():this.j.mute():X4(this.message,this.element,!0);this.j.logClick(this.element)}; g.E.onVolumeChange=function(k){this.setVolume(k.volume,k.muted)}; g.E.setVolume=function(k,p){var t=this,J=p?0:k/100,q=this.j.G();k=J===0?1:k>50?1:0;if(this.S!==k){var F=this.Y8;isNaN(F)?Tb_(this,k):Xaj(this.P0,function(S){Tb_(t,F+(t.S-F)*S)},250); this.S=k}J=J===0?1:0;if(this.C!==J){var d=this.L;isNaN(d)?rWj(this,J):Xaj(this.gy,function(S){rWj(t,d+(t.C-d)*S)},250); this.C=J}q.RY&&(q=g.CK(this.j,"Mute","m"),J=g.CK(this.j,"Unmute","m"),this.updateValue("title",p?J:q),this.update({"data-title-no-tooltip":p?"Unmute":"Mute"}),this.tooltip.Tk())}; g.E.Wp=function(k){g.M.prototype.Wp.call(this,k);this.j.logVisibility(this.element,this.visible&&k)}; var yW6=["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"],YVj=["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.r(g.zd,g.M);g.E=g.zd.prototype;g.E.onStateChange=function(k){this.cH(k.state);var p;((p=this.j.G())==null?0:p.D("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.NW&&this.X)}; g.E.cH=function(k){var p=g.VR(this.j.getVideoData()),t=!1;k.isOrWillBePlaying()?k=p?4:2:g.u(k,2)?(k=3,t=p):k=1;this.element.disabled=t;if(this.T!==k){p=null;switch(k){case 2:p=g.CK(this.j,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:p="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:p=g.CK(this.j,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:p="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}k=== 3?this.update({title:p,icon:Zn_(k)}):(this.update({title:p}),(p=Zn_(k))&&this.T&&this.T!==3?Bre(this.transition,this.element,p):this.updateValue("icon",p));this.tooltip.Tk();this.T=k}}; g.E.onVideoDataChange=function(){g.$E(this.element,"ytp-play-button-playlist",g.DB(this.j))}; g.E.LM=function(k){this.j.logClick(this.element);if(this.j.getPlayerStateObject().isOrWillBePlaying())this.j.pauseVideo();else{if(this.j.isMinimized()&&this.j.getPlayerStateObject().isCued()){var p={},t;if((t=this.j.getVideoData())==null?0:t.S)p.cttAuthInfo={token:this.j.getVideoData().S,videoId:this.j.getVideoData().videoId};Xu("direct_playback",p);this.j.WN().timerName="direct_playback"}else this.T!==3||this.j.G().D("html5_no_csi_on_replay")||Cg(this.j.WN());this.j.playVideo()}this.j.isMinimized()&& (k==null?void 0:k.type)==="click"&&this.element.blur()}; g.E.Wp=function(k){g.M.prototype.Wp.call(this,k);var p;((p=this.j.G())==null?0:p.D("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.NW&&k)};g.r(g.ej,g.M);g.E=g.ej.prototype;g.E.onVideoDataChange=function(){AWe(this);this.C&&(this.qP(this.C),this.C=null);this.videoData=this.j.getVideoData(1);if(this.playlist=this.j.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.V(this.j,"progresssync",this.mU);this.N=mHu(this);Cx6(this);this.VC(this.j.Uy().getPlayerSize())}; g.E.VC=function(k){k=k===void 0?this.j.Uy().getPlayerSize():k;var p,t=((p=this.j.getLoopRange())==null?void 0:p.type)==="clips";k=(g.DB(this.j)||this.T&&g.nK(this.j)&&!this.j.D("web_hide_next_button")||Voj(this))&&!t&&(this.T||k.width>=400);this.rS(k);this.j.logVisibility(this.element,k)}; g.E.onClick=function(k){this.j.logClick(this.element);var p=!0;this.Z?p=g.kO(k,this.j):k.preventDefault();p&&(this.T&&this.j.getPresentingPlayerType()===5?this.j.publish("ytoprerollinternstitialnext"):this.T?(Cg(this.j.WN()),this.j.publish("playlistnextbuttonclicked",this.element),this.j.nextVideo(!0)):this.N?this.j.seekTo(0):(Cg(this.j.WN()),this.j.publish("playlistprevbuttonclicked",this.element),this.j.previousVideo(!0)))}; g.E.mU=function(){var k=mHu(this);k!==this.N&&(this.N=k,Cx6(this))}; g.E.Ap=function(){this.Y&&(this.Y(),this.Y=null);AWe(this);g.M.prototype.Ap.call(this)};g.r(DHS,g.M);g.E=DHS.prototype;g.E.bS=function(k){this.vT(k.pageX);this.cT(k.pageX+k.deltaX);sX0(this)}; g.E.vT=function(k){this.gy=k-this.qO}; g.E.cT=function(k){k-=this.qO;!isNaN(this.gy)&&this.thumbnails.length>0&&(this.L=k-this.gy,this.thumbnails.length>0&&this.L!==0&&(this.N=this.B+this.L,k=wye(this,this.N),this.N<=this.T/2&&this.N>=nbq(this)?(this.api.seekTo(k,!1,void 0,void 0,25),g.S4(this.NO,"transform","translateX("+(this.N-this.T/2)+"px)"),Wsj(this,k)):this.N=this.B))}; g.E.R0=function(){this.Y8&&(this.Y8.Im=!0);var k=(0,g.V9)()-this.IY<300;if(Math.abs(this.L)<5&&!k){this.IY=(0,g.V9)();k=this.gy+this.L;var p=this.T/2-k;this.vT(k);this.cT(k+p);sX0(this);this.api.logClick(this.S)}sX0(this)}; g.E.Ip=function(){hp(this,this.api.getCurrentTime())}; g.E.play=function(k){this.api.seekTo(wye(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();k&&this.api.logClick(this.playButton)}; g.E.onExit=function(k){this.api.seekTo(this.RY,void 0,void 0,void 0,63);this.api.playVideo();k&&this.api.logClick(this.dismissButton)}; g.E.zA=function(k,p){this.qO=k;this.T=p;hp(this,this.api.getCurrentTime())}; g.E.enable=function(){this.isEnabled||(this.isEnabled=!0,this.RY=this.api.getCurrentTime(),Wsj(this,this.RY),g.$E(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Oy=this.V(this.element,"wheel",this.bS),this.logVisibility(this.isEnabled))}; g.E.disable=function(){this.isEnabled=!1;this.hide();g.$E(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Oy&&this.qP(this.Oy);this.logVisibility(this.isEnabled)}; g.E.reset=function(){this.disable();this.C=[];this.j6=!1}; g.E.logVisibility=function(k){this.api.logVisibility(this.element,k);this.api.logVisibility(this.S,k);this.api.logVisibility(this.dismissButton,k);this.api.logVisibility(this.playButton,k)}; g.E.Ap=function(){for(;this.Y.length;){var k=void 0;(k=this.Y.pop())==null||k.dispose()}g.M.prototype.Ap.call(this)}; g.r(Lse,g.M);g.r(vbw,g.M);g.r(in0,g.M);g.r(aS,g.M);aS.prototype.KE=function(k){return k==="PLAY_PROGRESS"?this.B:k==="LOAD_PROGRESS"?this.Z:k==="LIVE_BUFFER"?this.S:this.N};G5e.prototype.update=function(k,p,t,J){t=t===void 0?0:t;this.width=p;this.C=t;this.T=p-t-(J===void 0?0:J);this.position=g.Ek(k,t,t+this.T);this.N=this.position-t;this.Y=this.N/this.T};g.r(IO0,g.M);g.r(g.us,g.EY);g.E=g.us.prototype; g.E.KO=function(){var k=!1,p=this.api.getVideoData();if(!p)return k;this.api.VM("timedMarkerCueRange");Bbe(this);for(var t=g.Z(p.gs),J=t.next();!J.done;J=t.next()){J=J.value;var q=void 0,F=(q=this.RY[J])==null?void 0:q.markerType;q=void 0;var d=(q=this.RY[J])==null?void 0:q.markers;if(!d)break;if(F==="MARKER_TYPE_TIMESTAMPS"){k=g.Z(d);for(F=k.next();!F.done;F=k.next()){q=F.value;F=new IO0;d=void 0;F.title=((d=q.title)==null?void 0:d.simpleText)||"";F.timeRangeStartMillis=Number(q.startMillis);F.T= Number(q.durationMillis);var S=d=void 0;F.onActiveCommand=(S=(d=q.onActive)==null?void 0:d.innertubeCommand)!=null?S:void 0;gbM(this,F)}uhe(this,this.Z);k=this.Z;F=this.Xn;q=[];d=null;for(S=0;S<k.length;S++){var U=k[S].timeRangeStartMillis;if(!isNaN(U)&&k[S].onActiveCommand){var f=void 0,b=(f=k[S].T)!=null?f:1E4;d&&d.end>U&&(d.end=U);U=LIi(U,U+b);q.push(U);d=U;F[U.id]=k[S].onActiveCommand}}this.api.Lb(q);this.V4=this.RY[J];k=!0}else if(F==="MARKER_TYPE_HEATMAP"){J=this.RY[J];b=f=q=U=S=d=void 0;if(J&& J.markers){F=(q=(b=J.markersMetadata)==null?void 0:(f=b.heatmapMetadata)==null?void 0:f.minHeightDp)!=null?q:0;q=(d=(U=J.markersMetadata)==null?void 0:(S=U.heatmapMetadata)==null?void 0:S.maxHeightDp)!=null?d:60;d=this.T.length;S=null;for(U=0;U<d;U++){b=this.T[U].startTime;var N=U===d-1?Infinity:this.T[U+1].startTime;U===this.C.length&&RpM(this);f=[];S&&f.push(S);for(var y=g.Z(J.markers),Y=y.next();!Y.done;Y=y.next()){Y=Y.value;var T=Number(Y.startMillis);T>=b&&T<=N&&f.push(Y)}q>0&&(this.Y8.style.height= q+"px");b=this.C[U];N=f;Y=F;var A=q,V=U===0;V=V===void 0?!1:V;QXj(b,A);y=N;T=b.Y;V=V===void 0?!1:V;var D=1E3/y.length,v=[];v.push({x:0,y:100});for(var w=0;w<y.length;w++){var X=(w+.5)*D,B=100-g.Ek((y[w].intensityScoreNormalized||0)*100,Y/T*100,A/T*100);w!==0||V||v.push({x:0,y:B});v.push({x:X,y:B});w===y.length-1&&v.push({x:1E3,y:B})}v.push({x:1E3,y:100});y=v;N=N.length===0?"":EKi(y);b.api.D("delhi_modern_web_player")?b.N.setAttribute("d",N):b.S.setAttribute("d",N);b.IG=N!=="";g.$E(b.api.getRootNode(), "ytp-heat-map",b.IG);b.api.D("delhi_modern_web_player")&&(b.N.style.display="block",b.C.style.display="none",b.T.style.display="none");f.length>0&&(S=f[f.length-1])}g.ls(this)}q=void 0;F=[];if(J=(q=J.markersDecoration)==null?void 0:q.timedMarkerDecorations)for(J=g.Z(J),q=J.next();!q.done;q=J.next())q=q.value,U=S=d=void 0,F.push({visibleTimeRangeStartMillis:(d=q.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(S=q.visibleTimeRangeEndMillis)!=null?S:-1,decorationTimeMillis:(U=q.decorationTimeMillis)!= null?U:NaN,label:q.label?g.f1(q.label):""});J=F;this.heatMarkersDecorations=J}}p.qp=this.Z;g.$E(this.element,"ytp-timed-markers-enabled",k);return k}; g.E.zA=function(){g.ls(this);KA(this);uhe(this,this.Z);if(this.Y){var k=g.r5(this.element).x||0;this.Y.zA(k,this.S)}}; g.E.onClickCommand=function(k){if(k=g.e(k,OK)){var p=k.key;k.isVisible&&p&&KsL(this,p)}}; g.E.EW0=function(k){this.api.zb("innertubeCommand",this.Xn[k.id])}; g.E.OF=function(){KA(this);var k=this.api.getCurrentTime();(k<this.clipStart||k>this.clipEnd)&&this.VP()}; g.E.lS=function(k){if(!k.defaultPrevented){var p=!1;switch(k.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);p=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);p=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);p=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);p=!0;break;case 38:this.api.D("enable_key_press_seek_logging")&&JL(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);p=!0;break;case 40:this.api.D("enable_key_press_seek_logging")&&JL(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),p=!0}p&&k.preventDefault()}}; g.E.hP=function(k,p){this.updateVideoData(p,k==="newdata")}; g.E.sY6=function(){this.hP("newdata",this.api.getVideoData())}; g.E.updateVideoData=function(k,p){p=p===void 0?!1:p;var t=!!k&&k.IG();if(t&&(O5(k)||tGS(this)?this.fZ=!1:this.fZ=k.allowLiveDvr,g.$E(this.api.getRootNode(),"ytp-enable-live-buffer",!(k==null||!O5(k))),this.api.D("enable_custom_playhead_parsing"))){var J,q,F,d=g.e((J=k.getWatchNextResponse())==null?void 0:(q=J.playerOverlays)==null?void 0:(F=q.playerOverlayRenderer)==null?void 0:F.decoratedPlayerBarRenderer,Cq);if(d==null?0:d.progressColor)for(J=0;J<this.T.length;J++)this.T[J].KE("PLAY_PROGRESS").style.background= g.GU(d.progressColor);d=g.e(d==null?void 0:d.playhead,QTS);var S,U;J=(d==null?void 0:(S=d.playheadImage)==null?void 0:S.thumbnails)&&(d==null?void 0:(U=d.playheadImage)==null?void 0:U.thumbnails[0].url);g.$E(this.gp,"ytp-decorated-scrubber-container",!!J);var f;if(d==null?0:(f=d.loggingDirectives)==null?0:f.trackingParams){var b;this.api.setTrackingParams(this.mW,d==null?void 0:(b=d.loggingDirectives)==null?void 0:b.trackingParams);this.api.createServerVe(this.mW,this)}J&&(this.mW.src=J)}Ndj(this, this.api.qA());if(p){if(t){p=k.clipEnd;this.clipStart=k.clipStart;this.clipEnd=p;oo(this);for(k7(this,this.L,this.pp);this.C.length>0;)this.C.pop().dispose();this.heatMarkersDecorations=[];this.gs={};var N;(N=this.Y)==null||N.reset();EW(this);g.$E(this.api.getRootNode(),"ytp-fine-scrubbing-exp",gr(this))}else this.VP();this.u6()}if(k){var y;N=((y=this.QF)==null?void 0:y.type)==="clips";if(y=!k.isLivePlayback){y=this.api.getVideoData();p=g.AF(y);t=ep9(y);var Y;y=p!=null||t!=null&&t.length>0||((Y=y.Qx)== null?void 0:Y.length)>0}if(y&&!N){Y=this.api.getVideoData();N=g.AF(Y);y=!1;if(N==null?0:N.markersMap){y=this.api.getVideoData();var T;y.z5=((T=N.visibleOnLoad)==null?void 0:T.key)||y.z5;T=g.Z(N.markersMap);for(N=T.next();!N.done;N=T.next())N=N.value,N.key&&N.value&&(this.gs[N.key]=N.value,N.value.onChapterRepeat&&(y.Qi=N.value.onChapterRepeat));y.z5!=null&&KsL(this,y.z5);y=!0}var A;if(((A=Y.Qx)==null?void 0:A.length)>0){A=g.Kq.getState().entities;T=g.Z(Y.Qx);for(N=T.next();!N.done;N=T.next())if(N= N.value,t=void 0,p=(t=FG(A,"macroMarkersListEntity",N))==null?void 0:t.markersList,S=t=void 0,((t=p)==null?void 0:t.markerType)==="MARKER_TYPE_TIMESTAMPS"||((S=p)==null?void 0:S.markerType)==="MARKER_TYPE_HEATMAP")this.RY[N]=p;y=this.KO()||y}!y&&(A=ep9(Y))&&(aOu(this,A),Y.rK=this.T,hpj(this));Jg0(this,null);k.qm&&this.C.length===0&&(k=k.qm,A=k.key,k.isVisible&&A&&KsL(this,A))}else XyM(this),Bbe(this)}KA(this)}; g.E.uGb=function(k){this.B&&!g.u(k.state,32)&&this.api.getPresentingPlayerType()!==3&&this.B.cancel();var p;((p=this.Y)==null?0:p.isEnabled)&&g.u(k.state,8)&&this.api.pauseVideo();k=this.api.getPresentingPlayerType()===2||!this.api.qA()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.$E(this.Q4,"ytp-hide-scrubber-button",k)}; g.E.Lm=function(k){var p=!!this.QF!==!!k,t=this.QF;this.QF=k;Jg0(this,t);(k==null?void 0:k.type)!=="clips"&&k||(k?(this.updateValue("clipstarticon",GEh()),this.updateValue("clipendicon",GEh()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",LD9()),this.updateValue("clipendicon",sg0()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),p&&(this.updateVideoData(this.api.getVideoData(), !0),g.ls(this)),oo(this));k7(this,this.L,this.pp)}; g.E.Aiy=function(k,p,t){var J=g.r5(this.element),q=Ov(this).T,F=t?t.getAttribute("data-tooltip"):void 0,d=t?t.getAttribute("data-position"):void 0,S=t?t.getAttribute("data-offset-y"):void 0;S=S?Number(S):0;d&&(k=na(this.N,Number(t.getAttribute("data-position")),0)*q+g.r5(this.progressBar).x);this.B0.x=k-J.x;this.B0.y=p-J.y;k=Ov(this);t=tL(this,k);p=0;var U;if((U=this.api.getVideoData())==null?0:O5(U))(U=this.api.getProgressState().seekableEnd)&&t>U&&(t=U,k.position=na(this.N,U)*Ov(this).T),p=this.N.Y; tGS(this)&&(p=this.N.Y);U=F||g.Ca(this.fZ?t-this.N.T:t-p);p=k.position+this.Gt;t-=this.api.Yx();var f;if((f=this.Y)==null||!f.isEnabled)if(this.api.Ee()){if(this.T.length>1){f=pm(this,this.B0.x,!0);if(!this.QF)for(J=0;J<this.T.length;)g.$E(this.T[J].T,"ytp-exp-chapter-hover-effect",J===f),J++;if(this.C.length>1)for(J=0;J<this.T.length;J++)g.$E(this.C[J].element,"ytp-heatmap-hover",J===f)}if(this.Z.length>0)for(f=this.B0.x,J=g.Z(this.Z),q=J.next();!q.done;q=J.next())q=q.value,d=jj(this,q.timeRangeStartMillis/ (this.N.T*1E3),Ov(this)),g.$E(q.element,"ytp-timed-marker-hover",d<=f&&d+6>=f);J=this.tooltip.scale;S=(isNaN(S)?0:S)-45*J;this.api.D("web_key_moments_markers")?this.V4?(f=WI6(this.Z,t*1E3),f=f!=null?this.Z[f].title:""):(f=Y1(this.T,t*1E3),f=this.T[f].title):(f=Y1(this.T,t*1E3),f=this.T[f].title);f||(S+=16*J);this.tooltip.scale===.6&&(g.Mu(this.api.G())?(S=this.api.Uy().getPlayerSize().height-225,S=f?S+110:S+110+16):S=f?110:126);J=Y1(this.T,t*1E3);this.NO=oDL(this,t,J)?J:oDL(this,t,J+1)?J+1:-1;g.$E(this.api.getRootNode(), "ytp-progress-bar-snap",this.NO!==-1&&this.T.length>1);J=!1;q=g.Z(this.heatMarkersDecorations);for(d=q.next();!d.done;d=q.next()){d=d.value;var b=t*1E3;b>=d.visibleTimeRangeStartMillis&&b<=d.visibleTimeRangeEndMillis&&(f=d.label,U=g.Ca(d.decorationTimeMillis/1E3),J=!0)}this.UF!==J&&(this.UF=J,this.api.logVisibility(this.Kb,this.UF));g.$E(this.api.getRootNode(),"ytp-progress-bar-decoration",J);J=160*this.tooltip.scale*2;q=f.length*(this.gy?8.55:5.7);q=q<=J?q:J;d=q<160*this.tooltip.scale;J=3;!d&&q/ 2>k.position&&(J=1);!d&&q/2>this.S-k.position&&(J=2);this.api.G().B&&(S-=10);this.C.length&&this.C[0].IG&&(S-=14*(this.gy?2:1),this.Oy||(this.Oy=!0,this.api.logVisibility(this.Y8,this.Oy)));var N;if(gr(this)&&(((N=this.Y)==null?0:N.isEnabled)||this.W0>0)){var y;S-=((y=this.Y)==null?0:y.isEnabled)?F8(this):this.W0}N=void 0;gr(this)&&!this.api.D("web_player_hide_fine_scrubbing_edu")&&(N="Pull up for precise seeking",this.j6||(this.j6=!0,this.api.logVisibility(this.nT,this.j6)));this.tooltip.Fi(p,t, U,!!F,S,f,J,N)}else this.tooltip.Fi(p,t,U,!!F,S);g.JB(this.api.getRootNode(),"ytp-progress-bar-hover");pcT(this)}; g.E.Efy=function(){this.u6();g.qN(this.api.getRootNode(),"ytp-progress-bar-hover");this.Oy&&(this.Oy=!1,this.api.logVisibility(this.Y8,this.Oy));this.j6&&(this.j6=!1,this.api.logVisibility(this.nT,this.j6))}; g.E.YXh=function(k,p){gr(this)&&this.Y&&(this.Y.j6?hp(this.Y,this.api.getCurrentTime()):cWi(this.Y),this.Y.show(),g.$E(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.Y.isEnabled));this.Ji&&(this.Ji.dispose(),this.Ji=null);this.nL=p;this.hB=this.api.getCurrentTime();this.T.length>1&&this.NO!==-1?this.api.seekTo(this.T[this.NO].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(tL(this,Ov(this)),!1,void 0,void 0,7);g.JB(this.element,"ytp-drag");(this.Dw=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.E.sGp=function(){if(gr(this)&&this.Y){var k=F8(this);this.W0>=k*.5?(this.Y.enable(),hp(this.Y,this.api.getCurrentTime()),bp6(this,k)):EW(this)}if(g.u(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var p;if((p=this.Y)==null?0:p.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.NO!==-1)this.api.D("html5_enable_progress_bar_slide_seek_logging")&&JL(this,this.hB,this.T[this.NO].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.NO].startTime/1E3,void 0,void 0,void 0,7);else{k=tL(this,Ov(this));this.api.D("html5_enable_progress_bar_slide_seek_logging")&&JL(this,this.hB,k,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(k,void 0,void 0,void 0,7);p=g.Z(this.heatMarkersDecorations);for(var t=p.next();!t.done;t=p.next())t=t.value,k*1E3>=t.visibleTimeRangeStartMillis&&k*1E3<=t.visibleTimeRangeEndMillis&& this.api.logClick(this.Kb)}g.qN(this.element,"ytp-drag");this.Dw&&!g.u(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.E.uAp=function(k,p){k=Ov(this);k=tL(this,k);this.api.seekTo(k,!1,void 0,void 0,7);var t;gr(this)&&((t=this.Y)==null?0:t.j6)&&(hp(this.Y,k),this.Y.isEnabled||(t=F8(this),this.W0=g.Ek(this.nL-p-10,0,t),bp6(this,this.W0)))}; g.E.u6=function(){this.tooltip.kF()}; g.E.uU=function(){this.QF||(this.updateValue("clipstarticon",Dvw()),this.updateValue("clipendicon",Dvw()),g.JB(this.element,"ytp-clip-hover"))}; g.E.Ah=function(){this.QF||(this.updateValue("clipstarticon",LD9()),this.updateValue("clipendicon",sg0()),g.qN(this.element,"ytp-clip-hover"))}; g.E.VP=function(){this.clipStart=0;this.clipEnd=Infinity;oo(this);k7(this,this.L,this.pp)}; g.E.aOr=function(k){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())if(p=p.value,p.visible){var t=p.getId();if(!this.qO[t]){var J=g.kW("DIV");p.tooltip&&J.setAttribute("data-tooltip",p.tooltip);this.qO[t]=p;this.nE[t]=J;g.pv(J,p.style);qCT(this,t);this.api.G().D("disable_ad_markers_on_content_progress_bar")||this.T[0].C.appendChild(J)}}else f30(this,p)}; g.E.Nab=function(k){k=g.Z(k);for(var p=k.next();!p.done;p=k.next())f30(this,p.value)}; g.E.bE=function(k){this.Y&&(this.Y.onExit(k!=null),EW(this))}; g.E.Rf=function(k){this.Y&&(this.Y.play(k!=null),EW(this))}; g.E.UAG=function(){Ndj(this,this.api.qA())}; g.E.Ap=function(){Ndj(this,!1);g.EY.prototype.Ap.call(this)};g.r(SX,g.M);SX.prototype.isActive=function(){return!!this.j.getOption("remote","casting")}; SX.prototype.Zr=function(){var k=!1;this.j.getOptions().includes("remote")&&(k=this.j.getOption("remote","receivers").length>1);this.rS(k&&this.j.Uy().getPlayerSize().width>=400);this.j.logVisibility(this.element,this.NW);var p=1;k&&this.isActive()&&(p=2);if(this.T!==p){this.T=p;switch(p){case 1:this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",sF:!0,J:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.WDi())}g.$E(this.element,"ytp-remote-button-active",this.isActive())}}; SX.prototype.Y=function(){if(this.j.getOption("remote","quickCast"))this.j.setOption("remote","quickCast",!0);else{var k=this.Pp,p=this.element;if(k.l0())k.xI();else{k.initialize();a:{var t=g.Z(k.gI.items);for(var J=t.next();!J.done;J=t.next())if(J=J.value,J.priority===1){t=J;break a}t=null}t&&(t.open(),k.Iu(p));k.Iu(p)}}this.j.logClick(this.element)};g.r(UW,g.M);UW.prototype.T=function(k){var p=this.j.G(),t=400;this.j.D("web_player_small_hbp_settings_menu")&&p.S?t=300:p.B&&(t=200);k=this.Y&&k.width>=t;this.rS(k);this.j.D("embeds_use_parent_visibility_in_ve_logging")?this.j.logVisibility(this.element,k&&this.X):this.j.logVisibility(this.element,k)}; UW.prototype.N=function(){if(this.Pp.NW)this.Pp.xI();else{var k=g.iU(this.j.EQ());k&&!k.loaded&&(k.rp("tracklist",{includeAsr:!0}).length||k.load());this.j.logClick(this.element);this.Pp.Iu(this.element)}}; UW.prototype.updateBadge=function(){var k=this.j.isHdr(),p=this.j.getPresentingPlayerType(),t=p!==2&&p!==3,J=g.vO(this.j),q=t&&!!g.LK(this.j.EQ());p=q&&J.displayMode===1;J=q&&J.displayMode===2;t=(q=p||J)||!t?null:this.j.getPlaybackQuality();g.$E(this.element,"ytp-hdr-quality-badge",k);g.$E(this.element,"ytp-hd-quality-badge",!k&&(t==="hd1080"||t==="hd1440"));g.$E(this.element,"ytp-4k-quality-badge",!k&&t==="hd2160");g.$E(this.element,"ytp-5k-quality-badge",!k&&t==="hd2880");g.$E(this.element,"ytp-8k-quality-badge", !k&&t==="highres");g.$E(this.element,"ytp-3d-badge-grey",!k&&q&&p);g.$E(this.element,"ytp-3d-badge",!k&&q&&J)};g.r(fm,HO);fm.prototype.isLoaded=function(){var k=g.RG(this.j.EQ());return k!==void 0&&k.loaded}; fm.prototype.Zr=function(){g.RG(this.j.EQ())!==void 0&&this.j.getPresentingPlayerType()!==3?this.T||(this.Pp.Ru(this),this.T=!0):this.T&&(this.Pp.fL(this),this.T=!1);xR(this,this.isLoaded())}; fm.prototype.onSelect=function(k){this.isLoaded();k?this.j.loadModule("annotations_module"):this.j.unloadModule("annotations_module");this.j.publish("annotationvisibility",k)}; fm.prototype.Ap=function(){this.T&&this.Pp.fL(this);HO.prototype.Ap.call(this)};g.r(bW,g.lB);bW.prototype.Zr=function(){var k=this.j.getAvailableAudioTracks();k.length>1?(this.jt(g.DR(k,this.T)),this.tracks=g.Y2(k,this.T,this),this.countLabel.HH(k.length?" ("+k.length+")":""),this.publish("size-change"),this.mF(this.T(this.j.getAudioTrack())),this.enable(!0)):this.enable(!1)}; bW.prototype.s7=function(k){g.lB.prototype.s7.call(this,k);this.j.setAudioTrack(this.tracks[k]);this.Pp.AM()}; bW.prototype.T=function(k){return k.toString()};g.r(Nf,HO); Nf.prototype.Y=function(){var k=this.j.getPresentingPlayerType();if(k!==2&&k!==3&&g.nK(this.j))this.T||(this.Pp.Ru(this),this.T=!0,this.N.push(this.V(this.j,"videodatachange",this.Y)),this.N.push(this.V(this.j,"videoplayerreset",this.Y)),this.N.push(this.V(this.j,"onPlaylistUpdate",this.Y)),this.N.push(this.V(this.j,"autonavchange",this.C)),k=this.j.getVideoData(),this.C(k.autonavState),this.j.logVisibility(this.element,this.T));else if(this.T){this.Pp.fL(this);this.T=!1;k=g.Z(this.N);for(var p=k.next();!p.done;p= k.next())this.qP(p.value)}}; Nf.prototype.C=function(k){xR(this,k!==1)}; Nf.prototype.onSelect=function(k){this.j.w_(k?2:1);this.T&&(this.j.logVisibility(this.element,this.T),this.j.logClick(this.element))}; Nf.prototype.Ap=function(){this.T&&this.Pp.fL(this);HO.prototype.Ap.call(this)};g.r(YC0,g.zB);YC0.prototype.onClick=function(k){k.preventDefault();var p,t;(p=g.US(this.j))==null||(t=p.t_())==null||t.xI();var J,q;(J=g.US(this.j))==null||(q=J.xm())==null||q.Iu(k.target)};g.r(Tdi,g.lB);g.E=Tdi.prototype; g.E.MC=function(){var k=this.j.getPresentingPlayerType();if(k!==2&&k!==3){this.NO=this.j.Na();k=this.j.getAvailableQualityLevels();if(this.T){this.C={};var p=g.F4(this.j,"getAvailableQualityData",[]);p=g.Z(p);for(var t=p.next();!t.done;t=p.next())t=t.value,this.C[t.qualityLabel]=t;p=Object.keys(this.C);k[k.length-1]==="auto"&&p.push("auto");this.P0=new Set(k)}else if(this.S){t=g.F4(this.j,"getAvailableQualityData",[]);p=[];t=g.Z(t);for(var J=t.next();!J.done;J=t.next())J=J.value,this.L[J.quality]= J,J.quality&&p.push(J.quality);k[k.length-1]==="auto"&&p.push("auto")}else p=k;g.OxL(this.j)&&this.j.HL()&&p.unshift("missing-qualities");KHj(this.j)&&p.unshift("inline-survey");this.jt(p);k=this.j.getVideoData().cotn?!0:!1;t=this.Y8.FI();t=!g.Mu(this.j.G())||!(k===void 0?0:k)||!(t===void 0||t);k=this.Y;t=t===void 0?!1:t;k.SO&&g.$E(k.Kp("ytp-panel-footer"),"ytp-panel-hide-footer",t===void 0?!1:t);if(p.length){this.iR();this.enable(!0);return}}this.enable(!1)}; g.E.iR=function(){if(this.T){var k=this.j.getPreferredQuality();this.P0.has(k)&&(this.Z=this.j.getPlaybackQuality(),this.gy=this.j.getPlaybackQualityLabel(),k==="auto"?(this.mF(k),this.HH(this.oD(k))):this.mF(this.gy))}else k=this.j.getPreferredQuality(),this.options[k]&&(this.Z=this.j.getPlaybackQuality(),this.mF(k),k==="auto"&&this.HH(this.oD(k)))}; g.E.s7=function(k){if(k!=="missing-qualities"){g.lB.prototype.s7.call(this,k);var p=this.T?this.C[k]:this.L[k];var t=p==null?void 0:p.quality,J=p==null?void 0:p.formatId,q=p==null?void 0:p.paygatedQualityDetails;p=q==null?void 0:q.endpoint;if(q){var F;q=(F=this.options[k])==null?void 0:F.element;this.j.logClick(q)}if(this.T){var d,S;if((d=g.e(p,g.$WA))==null?0:(S=d.popup)==null?0:S.notificationActionRenderer)this.j.zb("innertubeCommand",p);else if(p){this.j.zb("innertubeCommand",p);return}J?this.j.setPlaybackQuality(t, J):this.j.setPlaybackQuality(t)}else{if(this.S){var U,f;if((U=g.e(p,g.$WA))==null?0:(f=U.popup)==null?0:f.notificationActionRenderer)this.j.zb("innertubeCommand",p);else if(p){this.j.zb("innertubeCommand",p);return}}this.j.setPlaybackQuality(k)}this.Pp.xI();this.MC()}}; g.E.open=function(){for(var k=g.Z(Object.values(this.options)),p=k.next();!p.done;p=k.next()){p=p.value;var t=void 0;this.j.hasVe((t=p)==null?void 0:t.element)&&(t=void 0,this.j.logVisibility((t=p)==null?void 0:t.element,!0))}g.lB.prototype.open.call(this);this.j.logClick(this.element)}; g.E.lM=function(k,p,t){var J=this;if(k==="missing-qualities")return new g.zB({K:"a",S6:["ytp-menuitem"],J:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.j.G().L,tabindex:"0",role:"menuitemradio"},U:[{K:"div",S6:["ytp-menuitem-label"],sy:"{{label}}"}]},p,this.oD(k));if(k!=="inline-survey"){var q,F=(q=this.T?this.C[k]:this.L[k])==null?void 0:q.paygatedQualityDetails;q=F==null?void 0:F.veType;F=F==null?void 0:F.trackingParams;p=g.lB.prototype.lM.call(this,k,p,t);F?(this.j.createServerVe(p.element, this,!0),this.j.setTrackingParams(p.element,F)):q&&this.j.createClientVe(p.element,this,q,!0);return p}k=[{K:"span",sy:"Looks good?"}];t=g.Z([!0,!1]);F=t.next();for(q={};!F.done;q={GE:void 0},F=t.next())q.GE=F.value,F=new g.M({K:"span",W:"ytp-menuitem-inline-survey-response",U:[q.GE?Prw():cO0()],J:{tabindex:"0",role:"button"}}),F.listen("click",function(d){return function(){var S=J.j.app.tp();S&&(S.yT("iqsr",{tu:d.GE}),S.getVideoData().oR=!0);J.Pp.xI();J.MC()}}(q)),k.push(F); return new g.zB({K:"div",W:"ytp-menuitem",J:{"aria-disabled":"true"},U:[{K:"div",S6:["ytp-menuitem-label"],U:k}]},p)}; g.E.oD=function(k,p){p=p===void 0?!1:p;if(k==="missing-qualities")return{K:"div",sy:"Missing options?"};if(k==="inline-survey")return"";var t=this.S||this.T?[Cz9(this,k,p,!1)]:[ZpS(this,k)];var J=this.j.getPreferredQuality();p||J!=="auto"||k!=="auto"||(t.push(" "),this.T?t.push(Cz9(this,this.gy,p,!0,["ytp-menu-label-secondary"])):this.S?t.push(Cz9(this,this.Z,p,!0,["ytp-menu-label-secondary"])):t.push(ZpS(this,this.Z,["ytp-menu-label-secondary"])));return{K:"div",U:t}};g.r(yK,g.M);yK.prototype.init=function(){this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.C);this.updateValue("stepvalue",this.S);this.updateValue("slidervalue",this.Y);Agi(this,this.Y)}; yK.prototype.Z=function(){m5i(this,Number(this.T.value));this.T.focus()};g.r(Y7,yK);Y7.prototype.Z=function(){yK.prototype.Z.call(this);this.B&&VGe(this)}; Y7.prototype.NO=function(){this.L()}; Y7.prototype.Y8=function(){this.j.setPlaybackRate(this.Y,!0)}; Y7.prototype.gy=function(k){if(!k.defaultPrevented){switch(k.code){case "ArrowDown":var p=-this.S;break;case "ArrowUp":p=this.S;break;default:return}m5i(this,Math.min(this.C,Math.max(Number((this.Y+p).toFixed(2)),this.N)));this.L();VGe(this);k.preventDefault()}};g.r(T4,g.M);g.E=T4.prototype;g.E.init=function(){this.ZJ(this.T);this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.N)}; g.E.Dv=function(k){if(!k.defaultPrevented){switch(k.keyCode){case 37:case 40:var p=-this.B;break;case 39:case 38:p=this.B;break;default:return}this.ZJ(this.T+p);k.preventDefault()}}; g.E.Xf=function(k){var p=this.T;p+=(k.deltaX||-k.deltaY)<0?-this.L:this.L;this.ZJ(p);k.preventDefault()}; g.E.f8=function(k){k=(k-g.r5(this.C).x)/this.gy*this.range+this.Y;this.ZJ(k)}; g.E.ZJ=function(k,p){p=p===void 0?"":p;k=g.Ek(k,this.Y,this.N);p===""&&(p=k.toString());this.updateValue("valuenow",k);this.updateValue("valuetext",p);this.Y8.style.left=(k-this.Y)/this.range*(this.gy-this.j6)+"px";this.T=k}; g.E.focus=function(){this.Oy.focus()};g.r(rI,T4);rI.prototype.NO=function(){this.j.setPlaybackRate(this.T,!0)}; rI.prototype.ZJ=function(k){T4.prototype.ZJ.call(this,k,D5M(this,k).toString());this.S&&(W7M(this),this.P0())}; rI.prototype.updateValues=function(){var k=this.j.getPlaybackRate();D5M(this,this.T)!==k&&(this.ZJ(k),W7M(this))};g.r(sPh,g.EY);sPh.prototype.focus=function(){this.T.focus()};g.r(L7w,Iz);g.r(vDu,g.lB);g.E=vDu.prototype;g.E.oD=function(k){return k==="1"?"Normal":k.toLocaleString()}; g.E.Zr=function(){var k,p=(k=this.j.getVideoData())==null?void 0:k.u1();k=this.j.getPresentingPlayerType(p);this.enable(k!==2&&k!==3);ipT(this)}; g.E.jt=function(k){g.lB.prototype.jt.call(this,k);this.Z&&this.Z.T.focus()}; g.E.jU=function(k){g.lB.prototype.jU.call(this,k);k?(this.gy=this.V(this.j,"onPlaybackRateChange",this.onPlaybackRateChange),ipT(this),nDi(this,this.j.getPlaybackRate())):(this.qP(this.gy),this.gy=null)}; g.E.onPlaybackRateChange=function(k){var p=this.j.getPlaybackRate();!this.S&&this.L.includes(p)||wci(this,p);nDi(this,k)}; g.E.lM=function(k,p,t){return k===this.T&&QPj(this.j)?g.lB.prototype.lM.call(this,k,p,t,{K:"div",W:"ytp-speed-slider-menu-footer",U:[this.Z]}):g.lB.prototype.lM.call(this,k,p,t)}; g.E.s7=function(k){g.lB.prototype.s7.call(this,k);k===this.T?this.j.setPlaybackRate(this.C,!0):this.j.setPlaybackRate(Number(k),!0);QPj(this.j)&&k===this.T||this.Pp.AM()}; g.E.Dn=function(k){var p=k===this.T;this.S=!1;p&&Zw(this.j)&&!QPj(this.j)?(k=new L7w(this.j),g.zr(this.Pp,k)):g.lB.prototype.Dn.call(this,k)};g.r(G8e,g.lB);g.E=G8e.prototype;g.E.mF=function(k){g.lB.prototype.mF.call(this,k)}; g.E.rC=function(k){return k.option.toString()}; g.E.getOption=function(k){return this.settings[k]}; g.E.oD=function(k){return this.getOption(k).text||""}; g.E.s7=function(k){g.lB.prototype.s7.call(this,k);this.publish("settingChange",this.setting,this.settings[k].option)};g.r(Cm,g.XM);Cm.prototype.SP=function(k){for(var p=g.Z(Object.keys(k)),t=p.next();!t.done;t=p.next()){var J=t.value;if(t=this.F6[J]){var q=k[J].toString();J=!!k[J+"Override"];t.options[q]&&(t.mF(q),t.C.element.setAttribute("aria-checked",String(!J)),t.T.element.setAttribute("aria-checked",String(J)))}}}; Cm.prototype.vl=function(k,p){this.publish("settingChange",k,p)};g.r(AL,g.lB);AL.prototype.T=function(k){return k.languageCode}; AL.prototype.oD=function(k){return this.languages[k].languageName||""}; AL.prototype.s7=function(k){this.publish("select",k);this.j.logClick(this.element);g.ee(this.Pp)};g.r(R19,g.lB);g.E=R19.prototype;g.E.O8=function(k){return g.cQ(k)?"__off__":k.displayName}; g.E.oD=function(k){return k==="__off__"?"Off":k==="__translate__"?"Auto-translate":k==="__contribute__"?"Add subtitles/CC":k==="__correction__"?"Suggest caption corrections":(k==="__off__"?{}:this.tracks[k]).displayName}; g.E.s7=function(k){if(k==="__translate__")this.T.open();else if(k==="__contribute__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();var p=g.cP(this.j.G(),this.j.getVideoData());g.BA(p)}else if(k==="__correction__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();var t=BdS(this);m0(this,t);g.lB.prototype.s7.call(this,this.O8(t));var J,q;t=(p=this.j.getVideoData().getPlayerResponse())==null?void 0:(J=p.captions)==null?void 0:(q=J.playerCaptionsTracklistRenderer)== null?void 0:q.openTranscriptCommand;this.j.zb("innertubeCommand",t);this.Pp.AM();this.C&&this.j.logClick(this.C)}else{if(k==="__correction__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();p=BdS(this);m0(this,p);g.lB.prototype.s7.call(this,this.O8(p));var F,d;p=(t=this.j.getVideoData().getPlayerResponse())==null?void 0:(F=t.captions)==null?void 0:(d=F.playerCaptionsTracklistRenderer)==null?void 0:d.openTranscriptCommand;this.j.zb("innertubeCommand",p)}else this.j.logClick(this.element), m0(this,k==="__off__"?{}:this.tracks[k]),g.lB.prototype.s7.call(this,k);this.Pp.AM()}}; g.E.Zr=function(){var k=this.j.getOptions();k=k&&k.indexOf("captions")!==-1;var p=this.j.getVideoData(),t=p&&p.wc,J,q=!((J=this.j.getVideoData())==null||!g.lE(J));J={};if(k||t){var F;if(k){var d=this.j.getOption("captions","track");J=this.j.getOption("captions","tracklist",{includeAsr:!0});var S=q?[]:this.j.getOption("captions","translationLanguages");this.tracks=g.Y2(J,this.O8,this);q=g.DR(J,this.O8);var U,f;BdS(this)&&((F=p.getPlayerResponse())==null?0:(U=F.captions)==null?0:(f=U.playerCaptionsTracklistRenderer)== null?0:f.openTranscriptCommand)&&q.push("__correction__");if(S.length&&!g.cQ(d)){if((F=d.translationLanguage)&&F.languageName){var b=F.languageName;F=S.findIndex(function(N){return N.languageName===b}); onT(S,F)}I3T(this.T,S);q.push("__translate__")}F=this.O8(d)}else this.tracks={},q=[],F="__off__";q.unshift("__off__");this.tracks.__off__={};t&&q.unshift("__contribute__");this.tracks[F]||(this.tracks[F]=d,q.push(F));this.jt(q);this.mF(F);d&&d.translationLanguage?this.T.mF(this.T.T(d.translationLanguage)):Csi(this.T);k&&this.S.SP(this.j.getSubtitlesUserSettings());this.countLabel.HH(J&&J.length?" ("+J.length+")":"");this.publish("size-change");this.j.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.E.Zv=function(k){var p=this.j.getOption("captions","track");p=g.ih(p);p.translationLanguage=this.T.languages[k];m0(this,p)}; g.E.vl=function(k,p){if(k==="reset")this.j.resetSubtitlesUserSettings();else{var t={};t[k]=p;this.j.updateSubtitlesUserSettings(t)}Xc6(this,!0);this.Z.start();this.S.SP(this.j.getSubtitlesUserSettings())}; g.E.HbS=function(k){k||g.H8(this.Z)}; g.E.Ap=function(){g.H8(this.Z);g.lB.prototype.Ap.call(this)}; g.E.open=function(){g.lB.prototype.open.call(this);this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.j.createClientVe(this.C,this,167341),this.j.logVisibility(this.C,!0))};g.r(z1S,g.Bu);g.E=z1S.prototype; g.E.initialize=function(){if(!this.isInitialized){var k=this.j.G();this.isInitialized=!0;try{this.X9=new Tdi(this.j,this)}catch(t){g.wt(Error("QualityMenuItem creation failed"))}g.z(this,this.X9);var p=new R19(this.j,this);g.z(this,p);k.N||(p=new fm(this.j,this),g.z(this,p));k.enableSpeedOptions&&(p=new vDu(this.j,this),g.z(this,p));(g.V0(k)||k.S)&&(k.Y||k.IY)&&(p=new YC0(this.j,this),g.z(this,p));k.UF&&!k.D("web_player_move_autonav_toggle")&&(k=new Nf(this.j,this),g.z(this,k));k=new bW(this.j,this); g.z(this,k);this.j.publish("settingsMenuInitialized");yg0(this.settingsButton,this.gI.o7())}}; g.E.Ru=function(k){this.initialize();this.gI.Ru(k);yg0(this.settingsButton,this.gI.o7())}; g.E.fL=function(k){this.NW&&this.gI.o7()<=1&&this.hide();this.gI.fL(k);yg0(this.settingsButton,this.gI.o7())}; g.E.Iu=function(k){this.initialize();this.gI.o7()>0&&g.Bu.prototype.Iu.call(this,k)}; g.E.xI=function(){this.C4?this.C4=!1:g.Bu.prototype.xI.call(this)}; g.E.show=function(){g.Bu.prototype.show.call(this);g.JB(this.j.getRootNode(),"ytp-settings-shown")}; g.E.hide=function(){g.Bu.prototype.hide.call(this);g.qN(this.j.getRootNode(),"ytp-settings-shown")}; g.E.y7=function(k){this.j.logVisibility(this.element,k);this.j.publish("settingsMenuVisibilityChanged",k)};g.r(h1q,g.M);g.E=h1q.prototype;g.E.onClick=function(){if(a30(this)&&(this.j.toggleSubtitles(),this.j.logClick(this.element),!this.isEnabled())){var k=!1,p=g.Xa(g.Iu(),65);g.Mu(this.j.G())&&p!=null&&(k=!p);k&&this.j.G().D("web_player_nitrate_promo_tooltip")&&this.j.publish("showpromotooltip",this.element)}}; g.E.s8y=function(k){var p,t;(p=g.US(this.j))==null||(t=p.t_())==null||t.Iu(k)}; g.E.isEnabled=function(){return!!this.j.getOption("captions","track").displayName}; g.E.Zr=function(){var k=a30(this),p=300;this.j.G().B&&(p=480);if(this.j.G().S){this.updateValue("title",g.CK(this.j,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var t=k}else{if(k)(t=this.Kp("ytp-subtitles-button-icon"))==null||t.setAttribute("fill-opacity","1"),this.updateValue("title",g.CK(this.j,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var J;(J=this.Kp("ytp-subtitles-button-icon"))== null||J.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}t=!0}this.tooltip.Tk();t=t&&this.j.Uy().getPlayerSize().width>=p;this.rS(t);this.j.D("embeds_use_parent_visibility_in_ve_logging")?this.j.logVisibility(this.element,t&&this.X):this.j.logVisibility(this.element,t);k?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.E.Wp=function(k){g.M.prototype.Wp.call(this,k);this.j.G().D("embeds_use_parent_visibility_in_ve_logging")&&this.j.logVisibility(this.element,this.NW&&k)};g.r(g.VK,g.M);g.E=g.VK.prototype; g.E.OF=function(){var k=this.api.Uy().getPlayerSize().width,p=this.L;this.api.G().B&&(p=400);p=k>=p&&(!W5(this)||!g.u(this.api.getPlayerStateObject(),64));this.rS(p);g.$E(this.element,"ytp-time-display-allow-autohide",p&&k<400);k=this.api.getProgressState();if(p){p=this.api.getPresentingPlayerType();var t=this.api.getCurrentTime(p,!1);this.Y&&(t-=k.airingStart);Dw(this)&&(t-=this.QF.startTimeMs/1E3);Dw(this)||W5(this)||!this.N||(t=this.api.getDuration(p,!1)-t);t=g.Ca(t);this.C!==t&&(this.updateValue("currenttime", t),this.C=t);p=Dw(this)?g.Ca((this.QF.endTimeMs-this.QF.startTimeMs)/1E3):g.Ca(this.api.getDuration(p,!1));this.S!==p&&(this.updateValue("duration",p),this.S=p)}MGj(this,k.isAtLiveHead);gDq(this,this.api.getLoopRange())}; g.E.onLoopRangeChange=function(k){var p=this.QF!==k;this.QF=k;p&&(this.OF(),uxi(this))}; g.E.Q8h=function(){this.api.setLoopRange(null)}; g.E.NSh=function(){this.N=!this.N;this.OF()}; g.E.onVideoDataChange=function(k,p,t){this.updateVideoData((this.api.G().D("enable_topsoil_wta_for_halftime")||this.api.G().D("enable_topsoil_wta_for_halftime_live_infra"))&&t===2?this.api.getVideoData(1):p);this.OF();uxi(this)}; g.E.updateVideoData=function(k){this.gN=k.isLivePlayback&&!k.B0;this.Y=O5(k);this.isPremiere=k.isPremiere;g.$E(this.element,"ytp-live",W5(this))}; g.E.onClick=function(k){k.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.E.Ap=function(){this.T&&this.T();g.M.prototype.Ap.call(this)};g.r(jPi,g.M);g.E=jPi.prototype;g.E.BI=function(){var k=this.api.wj();this.N!==k&&(this.N=k,l3h(this,this.api.getVolume(),this.api.isMuted()))}; g.E.To=function(k){this.rS(k.width>=350)}; g.E.Wc=function(k){if(!k.defaultPrevented){var p=k.keyCode,t=null;p===37?t=this.volume-5:p===39?t=this.volume+5:p===36?t=0:p===35&&(t=100);t!==null&&(t=g.Ek(t,0,100),t===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(t)),k.preventDefault())}}; g.E.n8=function(k){var p=k.deltaX||-k.deltaY;k.deltaMode?this.api.setVolume(this.volume+(p<0?-10:10)):this.api.setVolume(this.volume+g.Ek(p/10,-10,10));k.preventDefault()}; g.E.Ji0=function(){sW(this,this.T,!0,this.Y,this.api.UU());this.L=this.volume;this.api.isMuted()&&this.api.unMute()}; g.E.I0=function(k){var p=this.N?78:52,t=this.N?18:12;k-=g.r5(this.B).x;this.api.setVolume(g.Ek((k-t/2)/(p-t),0,1)*100)}; g.E.U2O=function(){sW(this,this.T,!1,this.Y,this.api.UU());this.volume===0&&(this.api.mute(),this.api.setVolume(this.L))}; g.E.onVolumeChange=function(k){l3h(this,k.volume,k.muted)}; g.E.Og=function(){sW(this,this.T,this.isDragging,this.Y,this.api.UU())}; g.E.Ap=function(){g.M.prototype.Ap.call(this);g.qN(this.Z,"ytp-volume-slider-active")};g.r(Lm,g.M); Lm.prototype.onVideoDataChange=function(){var k=this.api.G();this.zA();this.visible=!!this.api.getVideoData().videoId&&!g.Ky(this.api.getVideoData(1));this.rS(this.visible);this.api.logVisibility(this.element,this.visible&&this.X);if(this.visible){var p=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",p)}k.N&&(this.T&&(this.qP(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.JB(this.element,"no-link")); p=this.api.G();k=this.api.getVideoData();var t="";p.N||(p=g.Bs(p),p.indexOf("www.")===0&&(p=p.substring(4)),t=g.xu(k)?"Watch on YouTube Music":p==="youtube.com"?"Watch on YouTube":g.fT("Watch on $WEBSITE",{WEBSITE:p}));this.updateValue("title",t)}; Lm.prototype.onClick=function(k){this.api.D("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var p=this.api.G(),t=this.api.getVideoUrl(!g.A5(k),!1,!0,!0);if(g.V0(p)){var J={};g.V0(p)&&g.F4(this.api,"addEmbedsConversionTrackingParams",[J]);t=g.hM(t,J)}g.pP(t,this.api,k);this.api.D("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Lm.prototype.zA=function(){var k={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{K:"path",sF:!0,W:"ytp-svg-fill",J:{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 "}}]}, p=28666,t=this.api.getVideoData();this.api.isEmbedsShortsMode()?k={K:"svg",J:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},U:[{K:"path",J:{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.xu(t)&&(k={K:"svg",J:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},U:[{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{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"}},{K:"path",J:{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"}}]},p=216163);g.xu(t)?g.JB(this.element,"ytp-youtube-music-button"):g.qN(this.element,"ytp-youtube-music-button");k.J=Object.assign({},k.J,{"aria-hidden":"true"});this.updateValue("logoSvg",k);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,p,!0)}; Lm.prototype.Wp=function(k){g.M.prototype.Wp.call(this,k);this.api.logVisibility(this.element,this.visible&&k)};g.r(K7_,g.nC);g.E=K7_.prototype;g.E.eh=function(){if(this.j.D("web_player_max_seekable_on_ended")||!g.u(this.j.getPlayerStateObject(),2))this.progressBar.OF(),this.j6.OF()}; g.E.XH=function(){this.jg();this.HQ.Y?this.eh():this.progressBar.u6()}; g.E.eQ=function(){this.eh();this.B.start()}; g.E.jg=function(){var k;if(k=!this.j.G().Y){k=this.progressBar;var p=2*g.ar()*k.S;k=k.N.getLength()*1E3/k.api.getPlaybackRate()/p<300}k=k&&this.j.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;p=!k;this.HQ.Y||(k=p=!1);p?this.Y8||(this.Y8=this.V(this.j,"progresssync",this.eh)):this.Y8&&(this.qP(this.Y8),this.Y8=null);k?this.B.isActive()||this.B.start():this.B.stop()}; g.E.zA=function(){var k=this.j.wj(),p=this.j.Uy().getPlayerSize(),t=x5T(this),J=Math.max(p.width-t*2,100);if(this.Jp!==p.width||this.pp!==k){this.Jp=p.width;this.pp=k;var q=kuq(this);this.C.element.style.width=q+"px";this.C.element.style.left=t+"px";g.U59(this.progressBar,t,q,k);this.j.AB().yv=q}t=this.N;J=Math.min(570*(k?1.5:1),J);k=Math.min(413*(k?1.5:1),Math.round((p.height-pKT(this))*.82));t.maxWidth=J;t.maxHeight=k;t.cG();this.jg();this.j.G().D("html5_player_dynamic_bottom_gradient")&&$HS(this.B0, p.height)}; g.E.onVideoDataChange=function(){var k=this.j.getVideoData();this.IY.style.background=k.JB?k.AK:"";this.gy&&bnh(this.gy,k.showSeekingControls);this.L&&bnh(this.L,k.showSeekingControls)}; g.E.KE=function(){return this.C.element};g.r(tzS,Gr);g.E=tzS.prototype;g.E.wN=function(k){k.target!==this.dismissButton.element&&(this.onClickCommand&&this.j.zb("innertubeCommand",this.onClickCommand),this.OR())}; g.E.OR=function(){this.enabled=!1;this.L.hide()}; g.E.onVideoDataChange=function(k,p){k==="dataloaded"&&JV0(this);k=[];var t,J,q,F;if(p=(F=g.e((t=p.getWatchNextResponse())==null?void 0:(J=t.playerOverlays)==null?void 0:(q=J.playerOverlayRenderer)==null?void 0:q.suggestedActionsRenderer,InL))==null?void 0:F.suggestedActions)for(t=g.Z(p),J=t.next();!J.done;J=t.next())(J=g.e(J.value,X4W))&&g.e(J.trigger,Gen)&&k.push(J);if(k.length!==0){t=[];k=g.Z(k);for(J=k.next();!J.done;J=k.next())if(J=J.value,q=g.e(J.trigger,Gen))F=(F=J.title)?g.f1(F):"View Chapters", p=q.timeRangeStartMillis,q=q.timeRangeEndMillis,p!=null&&q!=null&&J.tapCommand&&(t.push(new g.xf(p,q,{priority:9,namespace:"suggested_action_button_visible",id:F})),this.suggestedActions[F]=J.tapCommand);this.j.Lb(t)}}; g.E.WF=function(){return this.enabled}; g.E.y7=function(){this.enabled?this.RY.start():QS(this);this.uO()}; g.E.Ap=function(){JV0(this);Gr.prototype.Ap.call(this)};var Wc={},nm=(Wc.CHANNEL_NAME="ytp-title-channel-name",Wc.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Wc.LINK="ytp-title-link",Wc.SESSIONLINK="yt-uix-sessionlink",Wc.SUBTEXT="ytp-title-subtext",Wc.TEXT="ytp-title-text",Wc.TITLE="ytp-title",Wc);g.r(wI,g.M);wI.prototype.onClick=function(k){this.api.logClick(this.element);var p=this.api.G(),t=this.api.getVideoUrl(!g.A5(k),!1,!0);g.V0(p)&&(p={},g.F4(this.api,"addEmbedsConversionTrackingParams",[p]),t=g.hM(t,p));g.pP(t,this.api,k)}; wI.prototype.Zr=function(){var k=this.api.getVideoData(),p=this.api.G();this.updateValue("title",k.title);var t={K:"a",W:nm.CHANNEL_NAME,J:{href:"{{channelLink}}",target:"_blank"},sy:"{{channelName}}"};this.api.G().N&&(t={K:"span",W:nm.CHANNEL_NAME,sy:"{{channelName}}",J:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",t);oxe(this);this.api.getPresentingPlayerType()===2&&(t=this.api.getVideoData(),t.videoId&&t.isListed&&t.author&&t.Fd&&t.profilePicture?(this.updateValue("channelLink", t.Fd),this.updateValue("channelName",t.author),this.updateValue("channelTitleFocusable","0")):oxe(this));t=p.externalFullscreen||!this.api.isFullscreen()&&p.p7;g.$E(this.link,nm.FULLERSCREEN_LINK,t);p.Y8||!k.videoId||t||g.Ky(k)||p.N?this.T&&(this.updateValue("url",null),this.qP(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.V(this.link,"click",this.onClick)));p.N&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.V0(p)?k.expandedTitle: k.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.r(g.iW,g.M);g.E=g.iW.prototype;g.E.setEnabled=function(k){if(this.type!=null)if(k)switch(this.type){case 3:case 2:Fte(this);this.Z.show();break;default:this.Z.show()}else this.Z.hide();this.B=k}; g.E.Fi=function(k,p,t,J,q,F,d,S){if(!this.j6||this.env.B){this.type===3&&this.u6();this.type!==1&&(g.pv(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.B&&this.Z.show(),this.Y&&this.Y.dispose(),(this.Y=this.api.Ee())&&this.Y.subscribe("l",this.Qq,this));if(S){var U=g.AK(this.bg).height||141;this.Oy.style.bottom=U+2+"px"}this.update({text:t,title:F!=null?F:"",eduText:S!=null?S:""});g.$E(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!F);this.api.isInline()&&g.JB(this.bottomText, "ytp-modern-tooltip-text");g.$E(this.element,"ytp-text-detail",!!J);t=-1;this.Y&&(t=nq(this.Y,243*this.scale),this.env.D("web_l3_storyboard")&&this.Y.levels.length===4&&(t=this.Y.levels.length-1),t=mge(this.Y,t,p));d4e(this,t);if(d)switch(p=g.AK(this.element).width,d){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=p+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=p/2+"px",this.title.style.textAlign="center"}$4_(this, !!J,k,q)}}; g.E.kF=function(){this.type===1&&this.u6()}; g.E.sK=function(k,p){if(this.type)if(this.type===3)this.u6();else return;qsM(this,k,3,p)}; g.E.Tk=function(){this.T&&!this.L&&this.T.hasAttribute("title")&&(this.N=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.B&&Fte(this))}; g.E.Qq=function(k,p){k<=this.C&&this.C<=p&&(k=this.C,this.C=NaN,d4e(this,k))}; g.E.iEY=function(){C9q(this.Y,this.C,243*this.scale)}; g.E.u6=function(){switch(this.type){case 2:var k=this.T;k.removeEventListener("mouseout",this.gy);k.addEventListener("mouseover",this.S);k.removeEventListener("blur",this.gy);k.addEventListener("focus",this.S);Exw(this);break;case 3:Exw(this);break;case 1:this.Y&&(this.Y.unsubscribe("l",this.Qq,this),this.Y=null),this.api.removeEventListener("videoready",this.Y8),this.NO.stop()}this.type=null;this.B&&this.Z.hide()}; g.E.Mc=function(){if(this.T)for(var k=0;k<arguments.length;k++)g.FI(arguments[k],this.T)&&this.u6()}; g.E.Ap=function(){this.type!=null&&this.u6();this.Y&&this.Y.dispose();g.M.prototype.Ap.call(this)};g.r(U4q,g.M);g.E=U4q.prototype;g.E.xE=function(){this.visible=fcS(this);this.rS(this.visible);this.icon&&Nwi(this,this.icon);this.j.logVisibility(this.element,this.visible&&this.X)}; g.E.nZ=function(){return this.j.getVideoData().videoId}; g.E.onClick=function(){this.j.logClick(this.element);var k=this.j.G(),p=this.nZ();k.NO?Ss9(this):b7_(this,p)}; g.E.onReset=function(){this.isRequestPending=this.T=!1;this.Zr(2);this.xE()}; g.E.Zr=function(k,p){var t=this.j.G();Nwi(this,k);p?this.update({title:p,image:null}):t.userDisplayName?(k={USER_NAME:t.userDisplayName},this.update({title:this.T?g.fT("Added as $USER_NAME",k):g.fT("Watch later as $USER_NAME",k),image:Kl(t)})):this.update({title:"Watch later",image:null});this.j.Tk()}; g.E.Wp=function(k){g.M.prototype.Wp.call(this,k);this.j.logVisibility(this.element,this.visible&&k)};g.r(g.QK,g.Kg);g.E=g.QK.prototype; g.E.init=function(){var k=this;this.XA=new g.pA(this.api);this.xP=new Sj(this.api);this.MX=new g.M({K:"div",W:"ytp-chrome-top"});this.tooltip=new g.iW(this.api,this);this.channelAvatar=new Gi6(this.api);this.title=new wI(this.api);this.E7=new g.FK({K:"div",W:"ytp-chrome-top-buttons"});this.CL=new Ln_(this.api,this.MX.element);this.hD=this.api.G().controlsType==="1"?new K7_(this.api,this,this.HQ):null;this.contextMenu=new gCw(this.api,this.XA);this.Cu=new g.M({K:"div",J:{tabindex:"0"}});this.NE=new g.M({K:"div", J:{tabindex:"0"}});var p=this.api.Uy(),t=this.api.G(),J=this.api.getVideoData();this.g4&&(g.JB(this.api.getRootNode(),"ytp-embed"),g.JB(this.api.getRootNode(),"ytp-embed-playlist"),this.Vp&&(g.JB(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.JB(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.Wz=60,this.ek=89);this.api.G().N&&g.JB(this.api.getRootNode(),"ytp-embed-pfl");this.api.G().Y&&(g.JB(this.api.getRootNode(),"ytp-mobile"),this.api.G().B&&g.JB(this.api.getRootNode(),"ytp-embed-mobile")); J&&J.videoId&&(this.b6=J&&J.getEmbeddedPlayerResponse());g.z(this,this.XA);g.cO(this.api,this.XA.element,4);g.z(this,this.xP);g.cO(this.api,this.xP.element,4);J=new g.M({K:"div",W:"ytp-gradient-top"});g.z(this,J);g.cO(this.api,J.element,1);this.Xi=new g.K1(J,250,!0,100);g.z(this,this.Xi);g.z(this,this.MX);g.cO(this.api,this.MX.element,1);this.Rg=new g.K1(this.MX,250,!0,100);g.z(this,this.Rg);g.z(this,this.tooltip);g.cO(this.api,this.tooltip.element,4);var q=new Ikh(this.api);g.z(this,q);g.cO(this.api, q.element,5);q.subscribe("show",function(U){k.r5(q,U)}); this.Wo.push(q);this.dX=new mL(this.api,q);g.z(this,this.dX);!this.g4&&this.dX.QT(this.MX.element);g.z(this,this.channelAvatar);this.channelAvatar.QT(this.MX.element);g.z(this,this.title);this.title.QT(this.MX.element);this.g4&&(J=new Fse(this.api),g.z(this,J),J.QT(this.MX.element));g.z(this,this.E7);this.E7.QT(this.MX.element);var F=new uli(this.api,this);g.z(this,F);g.cO(this.api,F.element,5);F.subscribe("show",function(U){k.r5(F,U)}); this.Wo.push(F);this.searchButton=new Dx(this.api);g.z(this,this.searchButton);this.searchButton.QT(this.E7.element);this.tf=new U4q(this.api);g.z(this,this.tf);this.tf.QT(this.E7.element);this.shareButton=new g.LA(this.api,this,F);g.z(this,this.shareButton);this.shareButton.QT(this.E7.element);this.copyLinkButton=new Ev(this.api,this);g.z(this,this.copyLinkButton);this.copyLinkButton.QT(this.E7.element);this.g4&&this.dX.QT(this.E7.element);g.z(this,this.CL);this.CL.QT(this.E7.element);t.mL&&(J=new wr(this.api), g.z(this,J),g.cO(this.api,J.element,4));t.N||(J=new vCj(this.api,this.CL),g.z(this,J),J.QT(this.E7.element));this.jP=new iUS(this.api);g.z(this,this.jP);g.cO(this.api,this.jP.element,5);this.jP.subscribe("show",function(){k.r5(k.jP,k.jP.l0())}); this.Wo.push(this.jP);this.overflowButton=new g.Ap(this.api,this.jP);g.z(this,this.overflowButton);this.overflowButton.QT(this.E7.element);this.hD&&g.z(this,this.hD);t.controlsType==="3"&&(J=new Wa(this.api),g.z(this,J),g.cO(this.api,J.element,9));g.z(this,this.contextMenu);this.contextMenu.subscribe("show",this.FW,this);this.api.D("show_preskip_progress_bar_for_skippable_ads")||(J=new w3(this.api,new k1(this.api)),g.z(this,J),g.cO(this.api,J.element,4));this.Cu.listen("focus",this.Au,this);g.z(this, this.Cu);this.NE.listen("focus",this.uw,this);g.z(this,this.NE);var d;(this.FN=t.EZ?null:new caS(this.api,p,this.contextMenu,this.HQ,this.XA,this.xP,function(){return k.wP()},(d=this.hD)==null?void 0:d.progressBar))&&g.z(this,this.FN); this.g4||(this.CB=new xAw(this.api),g.z(this,this.CB),g.cO(this.api,this.CB.element,4),this.KG=new HUw(this.api),g.z(this,this.KG),g.cO(this.api,this.KG.element,4));this.DH=new tzS(this.api);g.z(this,this.DH);g.cO(this.api,this.DH.element,4);if(this.g4){var S=new Ty0(this.api,this.api.G().IY);g.z(this,S);g.cO(this.api,S.element,5);S.subscribe("show",function(U){k.r5(S,U)}); p=new Aah(this.api,S);g.z(this,p);g.cO(this.api,p.element,4)}this.h$.push(this.XA.element);this.V(this.api,"fullscreentoggled",this.BI);this.V(this.api,"offlineslatestatechange",function(){k.api.Yc()&&zH(k.HQ,128,!1)}); this.V(this.api,"cardstatechange",function(){k.Fp()}); this.V(this.api,"resize",this.suY);this.V(this.api,"videoplayerreset",this.onReset);this.V(this.api,"showpromotooltip",this.hcb);g.Kg.prototype.init.call(this)}; g.E.AB=function(){return this.tooltip}; g.E.Ft=function(){return this.hD}; g.E.r5=function(k,p){p?this.tG=k:this.tG=null;this.Fp()}; g.E.aA=function(k,p){if(p)this.SS.push(k);else for(p=this.SS.length;p>=0;p--)if(this.SS[p]===k){this.SS.splice(p,1);break}zH(this.HQ,64,this.SS.length>0)}; g.E.Ms=function(){this.api.NB()&&this.api.LK();return!!this.tG||yVS(this)||g.Kg.prototype.Ms.call(this)}; g.E.Ka=tw(3);g.E.d4=tw(7);g.E.Hk=tw(10); g.E.Fp=function(){var k=!this.Ms(),p=k&&this.api.NB()&&!g.u(this.api.getPlayerStateObject(),2)&&!g.Ky(this.api.getVideoData())&&!this.api.G().N&&!this.api.isEmbedsShortsMode(),t=this.g4&&g.DB(this.api)&&g.u(this.api.getPlayerStateObject(),128);k||t?(this.Rg.show(),this.Xi.show()):(this.Rg.hide(),this.Xi.hide(),this.api.Mc(this.MX.element));p?this.CL.Iu():this.CL.xI();this.hD&&Hpw(this.hD,this.uJ||!k);this.api.D("web_player_hide_overflow_button_if_empty_menu")&&Ys6(this);g.Kg.prototype.Fp.call(this)}; g.E.Yn=function(k,p,t,J,q){k.style.left="";k.style.top="";k.style.bottom="";var F=g.AK(k),d=J||this.hD&&g.FI(this.hD.KE(),p),S=J=null;t!=null&&d||(J=g.AK(p),S=g.Z0(p,this.api.getRootNode()),t==null&&(t=S.x+J.width/2));t-=F.width/2;d?(p=this.hD,J=x5T(p),S=kuq(p),d=this.api.Uy().getPlayerSize().height,t=g.Ek(t,J,J+S-F.width),F=d-pKT(p)-F.height):g.FI(this.MX.element,p)?(p=this.api.Uy().getPlayerSize().width,t=g.Ek(t,12,p-F.width-12),F=this.wj()?this.ek:this.Wz,this.api.G().playerStyle==="gvn"&&(F+= 20),this.g4&&(F-=this.wj()?26:18)):(p=this.api.Uy().getPlayerSize(),t=g.Ek(t,12,p.width-F.width-12),F=S.y>(p.height-J.height)/2?S.y-F.height-12:S.y+J.height+12);k.style.top=F+(q||0)+"px";k.style.left=t+"px"}; g.E.XH=function(k){k&&(this.api.Mc(this.MX.element),this.hD&&this.api.Mc(this.hD.KE()));this.Vp&&(g.$E(this.contextMenu.element,"ytp-autohide",k),g.$E(this.contextMenu.element,"ytp-autohide-active",!0));g.Kg.prototype.XH.call(this,k)}; g.E.AA=function(){g.Kg.prototype.AA.call(this);this.Vp&&(g.$E(this.contextMenu.element,"ytp-autohide-active",!1),this.Vp&&(this.contextMenu.hide(),this.jP&&this.jP.hide()))}; g.E.kL=function(k,p){var t=this.api.Uy().getPlayerSize();t=new g.qJ(0,0,t.width,t.height);if(k||this.HQ.Y&&!this.Ms()){if(this.api.G().qG||p)k=this.wj()?this.ek:this.Wz,t.top+=k,t.height-=k;this.hD&&(t.height-=pKT(this.hD))}return t}; g.E.BI=function(k){var p=this.api.getRootNode();k?p.parentElement?(p.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.G().externalFullscreen||(p.parentElement.insertBefore(this.Cu.element,p),p.parentElement.insertBefore(this.NE.element,p.nextSibling))):g.nV(Error("Player not in DOM.")):(p.setAttribute("aria-label","YouTube Video Player"),this.Cu.detach(),this.NE.detach());this.zA();this.q8()}; g.E.wj=function(){var k=this.api.G();return this.api.isFullscreen()&&!k.B||!1}; g.E.showControls=function(k){this.Bz=!k;this.Fp()}; g.E.zA=function(){var k=this.wj();this.tooltip.scale=k?1.5:1;this.contextMenu&&g.$E(this.contextMenu.element,"ytp-big-mode",k);this.Fp();this.api.D("web_player_hide_overflow_button_if_empty_menu")||Ys6(this);this.q8();var p=this.api.isEmbedsShortsMode();p&&k?(k=(this.api.Uy().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.S4(this.MX.element,"padding-left",k+"px"),g.S4(this.MX.element,"padding-right",k+"px")):p&&(g.S4(this.MX.element,"padding-left",""),g.S4(this.MX.element,"padding-right", ""));g.Kg.prototype.zA.call(this)}; g.E.pj=function(){if(yVS(this)&&!g.DB(this.api))return!1;var k=this.api.getVideoData();return!g.V0(this.api.G())||this.api.getPresentingPlayerType()===2||!this.b6||((k=this.b6||k.b6)?(k=k.embedPreview)?(k=k.thumbnailPreviewRenderer,k=k.videoDetails&&g.e(k.videoDetails,FH0)||null):k=null:k=null,k&&k.collapsedRenderer&&k.expandedRenderer)?g.Kg.prototype.pj.call(this):!1}; g.E.q8=function(){g.Kg.prototype.q8.call(this);this.api.logVisibility(this.title.element,!!this.L5);this.dX&&this.dX.Wp(!!this.L5);this.channelAvatar.Wp(!!this.L5);this.overflowButton&&this.overflowButton.Wp(this.yX()&&!!this.L5);this.shareButton&&this.shareButton.Wp(!this.yX()&&!!this.L5);this.tf&&this.tf.Wp(!this.yX()&&!!this.L5);this.searchButton&&this.searchButton.Wp(!this.yX()&&!!this.L5);this.copyLinkButton&&this.copyLinkButton.Wp(!this.yX()&&!!this.L5);if(!this.L5){this.api.Mc(this.MX.element); for(var k=0;k<this.Wo.length;k++){var p=this.Wo[k];p.l0()&&p.xI()}}}; g.E.CT=function(k){this.hD&&Hpw(this.hD,this.Ms());this.Fp();g.Kg.prototype.CT.call(this,k)}; g.E.handleGlobalKeyDown=function(k,p,t,J,q,F,d,S){return this.FN?this.FN.handleGlobalKeyDown(k,p,t,J,q,F,d,S):!1}; g.E.handleGlobalKeyUp=function(k,p,t,J,q,F,d){return this.FN?this.FN.handleGlobalKeyUp(k,p,t,J,q,F,d):!1}; g.E.wP=function(){if(this.contextMenu.NW)return this.contextMenu.xI(),!0;if(this.SS.length)return this.SS[this.SS.length-1].xI(),!0;if(this.tG)return this.tG.xI(),!0;this.hD&&this.api.Mc(this.hD.KE());this.E7&&this.api.Mc(this.E7.element);return g.Kg.prototype.wP.call(this)}; g.E.K9=function(k,p){this.eX=p;this.aA(k,p);this.FW()}; g.E.FW=function(){var k=this.eX||this.contextMenu.l0();this.jk!==k&&(this.jk=k,this.api.zb("onAutonavPauseRequest",this.jk))}; g.E.Au=function(){Tw_(this,this.api.getRootNode(),!0).focus()}; g.E.uw=function(){Tw_(this,this.api.getRootNode(),!1).focus()}; g.E.t_=function(){return this.hD&&this.hD.N}; g.E.yQ=function(){this.HQ.yQ()}; g.E.vy=function(){this.XA.hide()}; g.E.Ac=function(k){this.XA.Ac(!k.isOrWillBePlaying())}; g.E.Zz=function(k,p,t,J){this.xP.Zz(k,p,t,J)}; g.E.renderChapterSeekingAnimation=function(k,p,t){H_M(this.xP,k,p,t)}; g.E.suY=function(){rV0(this,!0)}; g.E.onReset=function(){Ys6(this)}; g.E.hcb=function(k){rV0(this,!1,k)}; g.E.xm=function(){return this.contextMenu}; g.E.MY=function(k,p){var t;if((t=this.hD)!=null){var J=Number(k.element.getAttribute("data-priority"))||0,q=0,F=t.Y.element;p&&t.j.D("delhi_modern_web_player")&&(F=t.Y.Kp(v5[p]));p=g.Z(F.children);for(t=p.next();!(t.done||J<(Number(t.value.getAttribute("data-priority"))||0));t=p.next())q++;k.QT(F,q)}}; g.E.bE=function(){var k,p=(k=this.hD)==null?void 0:k.progressBar;if(p){var t;((t=p.Y)==null?0:t.isEnabled)&&p.bE()}};g.r(g.P5,g.Wr);g.P5.prototype.C5=function(){return!1}; g.P5.prototype.create=function(){var k=this.player.G();g.Qj(k)&&k.Y||k.disableOrganicUi?this.chrome=new g.Kg(this.player):this.chrome=new g.QK(this.player);g.z(this,this.chrome);this.chrome.init();this.player.Fw("ux")}; g.P5.prototype.l6=function(){return this.chrome};var G4=[],NWe=!1;g.r(Io,g.R);Io.prototype.Z=function(){this.T!=null&&this.app.getVideoData()!==this.T&&Bx(this.T)&&gv0(this.app,this.T,void 0,void 0,this.N)}; Io.prototype.S=function(){if(this.T!=null&&this.app.getVideoData()!==this.T&&this.Y!=null&&this.C!=null&&this.X!=null&&Bx(this.T)){var k=AVL(this.Y,this.C,this.X);k==null?gv0(this.app,this.T,void 0,void 0,this.N):(this.Y.yT("sgap",k),this.Y.getVideoData().B&&this.Y.M3(!1))}}; Io.prototype.B=function(k){var p=this.app.tp();if(p){var t=this.app.getCurrentTime();Math.abs(t-k.end/1E3)>5&&p.yT("glrs",{cmt:t});p.seekTo(0,{seekSource:58});p.yT("glrre",{cmt:t})}}; Io.prototype.Ap=function(){this.T=null;g.R.prototype.Ap.call(this)};g.r(g.X8,g0);g.E=g.X8.prototype;g.E.isView=function(){return!0}; g.E.wg=function(){var k=this.mediaElement.getCurrentTime();if(k<this.start)try{var p=this.mediaElement.p$(),t=oU(p,k);return!(this.start<t)}catch(J){}return!1}; g.E.Vl=function(){return $S(this.mediaElement.Vl(),this.start,this.end)}; g.E.p$=function(){return $S(this.mediaElement.p$(),this.start,this.end)}; g.E.F1=function(){return $S(this.mediaElement.F1(),this.start,this.end)}; g.E.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start}; g.E.setCurrentTime=function(k){this.mediaElement.setCurrentTime(k+this.start)}; g.E.getDuration=function(){return isFinite(this.end)&&!this.T?this.end-this.start:this.mediaElement.getDuration()-this.start}; g.E.play=function(){if(this.wg()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(k){}}return this.mediaElement.play()}; g.E.pE=function(){var k=g0.prototype.pE.call(this);k.view=this.start+"-"+this.end;return k}; g.E.addEventListener=function(k,p){this.mediaElement.addEventListener(k,p)}; g.E.removeEventListener=function(k,p){this.mediaElement.removeEventListener(k,p)}; g.E.Xa=function(){return this.mediaElement.Xa()}; g.E.activate=function(k){this.mediaElement.activate(k)}; g.E.D6=function(){return this.mediaElement.D6()}; g.E.playVideo=function(){return this.mediaElement.playVideo()}; g.E.jC=function(){this.mediaElement.jC()}; g.E.u8=function(){this.mediaElement.u8()}; g.E.ZR=function(){return this.mediaElement.ZR()}; g.E.KE=function(){return this.mediaElement.KE()}; g.E.Yh=function(){return this.mediaElement.Yh()}; g.E.YZ=function(k){this.mediaElement.YZ(k)}; g.E.c9=function(){this.mediaElement.c9()}; g.E.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()}; g.E.setPlaybackRate=function(k){return this.mediaElement.setPlaybackRate(k)}; g.E.QV=function(){return this.mediaElement.QV()}; g.E.setLoop=function(k){this.mediaElement.setLoop(k)}; g.E.canPlayType=function(k,p){return this.mediaElement.canPlayType(k,p)}; g.E.isPaused=function(){return this.mediaElement.isPaused()}; g.E.isSeeking=function(){return this.mediaElement.isSeeking()}; g.E.isEnded=function(){return this.mediaElement.isEnded()}; g.E.yp=function(){return this.mediaElement.yp()}; g.E.Ca=function(k){this.mediaElement.Ca(k)}; g.E.DN=function(){return this.mediaElement.DN()}; g.E.load=function(){this.mediaElement.load()}; g.E.pause=function(){this.mediaElement.pause()}; g.E.Pn=function(){return this.mediaElement.Pn()}; g.E.gR=function(){return this.mediaElement.gR()}; g.E.eE=function(){return this.mediaElement.eE()}; g.E.C$=function(){return this.mediaElement.C$()}; g.E.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()}; g.E.QX=function(){return this.mediaElement.QX()}; g.E.E9=function(){return this.mediaElement.E9()}; g.E.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()}; g.E.G3=function(){return this.mediaElement.G3()}; g.E.getSize=function(){return this.mediaElement.getSize()}; g.E.setSize=function(k){this.mediaElement.setSize(k)}; g.E.getVolume=function(){return this.mediaElement.getVolume()}; g.E.setVolume=function(k){this.mediaElement.setVolume(k)}; g.E.setAttribute=function(k,p){this.mediaElement.setAttribute(k,p)}; g.E.removeAttribute=function(k){this.mediaElement.removeAttribute(k)}; g.E.hasAttribute=function(k){return this.mediaElement.hasAttribute(k)}; g.E.PD=tw(55);g.E.xH=tw(57);g.E.m0=tw(59);g.E.Wi=tw(61);g.E.Tf=function(){return this.mediaElement.Tf()}; g.E.QZ=function(k){this.mediaElement.QZ(k)}; g.E.eI=function(k){return this.mediaElement.eI(k)}; g.E.TT=function(){return this.mediaElement.TT()}; g.E.stopVideo=function(){this.mediaElement.stopVideo()}; g.E.qU=function(k){this.mediaElement.qU(k)}; g.E.audioTracks=function(){return this.mediaElement.audioTracks()}; g.E.uH=function(k){this.mediaElement.uH(k)};g.r(WtT,g.R);g.E=WtT.prototype;g.E.getStatus=function(){return this.status}; g.E.Z0=function(){var k=this.T.getVideoData(),p=this.Y.getVideoData(),t;if((t=k.N)&&!(t=!k.T)){t=k.T;for(var J=!1,q=!1,F=g.Z(Object.values(t.T)),d=F.next();!d.done;d=F.next())d=d.value,d.info.audio&&d.index.isLoaded()&&(J=!0),d.info.video&&d.index.isLoaded()&&(q=!0);t.T["0"]&&(q=!0);t=J&&q}if(t)if(this.T.QM()){F=CMq(this.policy,this.T,this.Y,this.oh);d=D4w(this);t=d.NS;q=d.JZ;J=d.cB;d=d.a4;if(!this.Z){var S=this.Y.Zw()*1E3,U=this.T.Zw();U=(J-t-U)*1E3;F&&F.msg==="in-the-past"&&(U=0);k=k.isAd();this.Y.oX(S, U,k);this.Z=!0}F?(p="cannot_apply"+F.msg,delete F.msg,this.Yi(p,F)):this.status.status===2?wKi(this):(k=this.T.D6())&&e6(k)&&(!RU(k)&&g.zQ()?this.Yi("mse_closed"):p.T&&dC(p.T)&&k.Y&&!k.Y.iZ()?this.Yi("encr_upgrade"):(p=this.T.QM(),p.isEnded()?this.Yi("elem_ended"):q<0?this.Yi("next_player_future"):(this.S=J,this.currentVideoDuration=J-t,this.N=iaT(k,t,J,!0),this.C=iaT(k,q,d,!1),k=this.Y.getVideoData().clientPlaybackNonce,this.T.yT("gaplessPrep",{cpn:k}),this.T.J8(this.N,!1,vxq(this),this.fT.G().D("html5_shorts_gapless_keep_pending_requests")&& xL(this.T.getVideoData())),this.T.setMediaElement(s9i(p,t,J,!this.T.getVideoData().isAd())),B5(this,2),wKi(this))))}else this.Yi("no-elem")}; g.E.Qm=function(k){var p=k===nx_(this).O1,t=p?this.N.T:this.N.Y;p=p?this.C.T:this.C.Y;if(t.isActive&&!p.isActive){var J=this.S,q=this.fT.G().D("html5_gapless_disable_on_discontinuous_buffer")&&this.X!==0&&t.Dl().length>1;JN(k.Dl(),J-.01)&&!q&&(B5(this,4),t.isActive=!1,t.Ly=t.Ly||t.isActive,(this.X===1?this.T:this.Y).yT("sbh",{}),p.isActive=!0,p.Ly=p.Ly||p.isActive,this.X!==0&&(this.T.getVideoData().dR=!0));k=this.C.Y;if(this.C.T.isActive&&k.isActive&&(B5(this,5),this.X!==0)){k=this.Y.Hb();t=this.T.Hb(); this.T.yT("sbs",{citag:t==null?void 0:t.itag,nitag:k==null?void 0:k.itag});this.Y.yT("gitags",{pitag:t==null?void 0:t.itag,citag:k==null?void 0:k.itag});var F;(F=this.Y)==null||F.rF()}}}; g.E.qq=function(){this.TZ()&&this.Yi("player-reload-after-handoff")}; g.E.Yi=function(k,p){p=p===void 0?{}:p;if(!this.MO()&&this.status.status!==6){var t=this.status.status>=4&&k!=="player-reload-after-handoff";this.status={status:Infinity,error:k};if(this.T&&this.Y){var J=this.Y.getVideoData().clientPlaybackNonce;this.T.Vn(new AD("dai.transitionfailure",Object.assign(p,{cpn:J,transitionTimeMs:this.oh,msg:k})));this.T.M3(t)}this.CF.reject(k);this.dispose()}}; g.E.TZ=function(){return this.status.status>=4&&this.status.status<6}; g.E.Ap=function(){cVT(this);this.T.unsubscribe("newelementrequired",this.qq,this);if(this.N){var k=this.N.Y;this.N.T.BH.unsubscribe("updateend",this.Qm,this);k.BH.unsubscribe("updateend",this.Qm,this)}g.R.prototype.Ap.call(this)}; g.E.gC=function(k){g.Uy(k,128)&&this.Yi("player-error-event")};g.r(z4,g.R);z4.prototype.clearQueue=function(k,p){k=k===void 0?!1:k;p=p===void 0?!1:p;this.C&&this.C.reject("Queue cleared");this.app.G().D("html5_gapless_fallback_on_qoe_restart_v2")||p&&this.Y&&this.Y.M3(!1);eX(this,k)}; z4.prototype.yN=function(){return!this.T}; z4.prototype.TZ=function(){var k;return((k=this.N)==null?void 0:k.TZ())||!1}; z4.prototype.Ap=function(){eX(this);g.R.prototype.Ap.call(this)};g.r(Icw,g.o$);g.E=Icw.prototype;g.E.getVisibilityState=function(k,p,t,J,q,F,d,S){return k?4:PmM()?3:p?2:t?1:J?5:q?7:F?8:d?9:S?10:0}; g.E.ye=function(k){this.fullscreen!==k&&(this.fullscreen=k,this.y7())}; g.E.setMinimized=function(k){this.Y!==k&&(this.Y=k,this.y7())}; g.E.setInline=function(k){this.inline!==k&&(this.inline=k,this.y7())}; g.E.ke=function(k){this.pictureInPicture!==k&&(this.pictureInPicture=k,this.y7())}; g.E.setSqueezeback=function(k){this.N!==k&&(this.N=k,this.y7())}; g.E.Q6=function(k){this.C!==k&&(this.C=k,this.y7())}; g.E.QX=function(){return this.T}; g.E.fA=function(){return this.fullscreen!==0}; g.E.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.E.xr=function(){return this.fullscreen}; g.E.isMinimized=function(){return this.Y}; g.E.isInline=function(){return this.inline}; g.E.isBackground=function(){return PmM()}; g.E.Z5=function(){return this.pictureInPicture}; g.E.G1=function(){return!1}; g.E.pV=function(){return this.N}; g.E.XU=function(){return this.C}; g.E.y7=function(){this.publish("visibilitychange");var k=this.getVisibilityState(this.QX(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Z5(),this.G1(),this.pV(),this.XU());k!==this.S&&this.publish("visibilitystatechange");this.S=k}; g.E.Ap=function(){Xbe(this.X);g.o$.prototype.Ap.call(this)};g.E=XKh.prototype;g.E.getCurrentTime=function(){return 0}; g.E.getDuration=function(){return 0}; g.E.Zl=function(){return 0}; g.E.ID=function(){return 0}; g.E.jw=function(){return 0}; g.E.FO=function(){return 0}; g.E.Xc=function(){return 0}; g.E.Ee=function(){return null}; g.E.getStoryboardFormat=function(){return null}; g.E.getVideoLoadedFraction=function(){return 0}; g.E.isAtLiveHead=function(){return!1}; g.E.pauseVideo=function(){}; g.E.playVideo=function(){return g.Q(function(k){return k.return()})};g.r(RJi,g.R);g.E=RJi.prototype;g.E.iG=function(){return this.X}; g.E.rV=function(k){this.X=k}; g.E.tp=function(){return this.C}; g.E.zR=function(k){this.C=k}; g.E.t5=function(k){return this.N[k]||null}; g.E.Ap=function(){for(var k=g.Z(Object.values(this.N)),p=k.next();!p.done;p=k.next())EO(p.value);g.R.prototype.Ap.call(this)};g.r(hL,g.R);g.E=hL.prototype;g.E.enqueue=function(k,p){if(k.C!==this)return!1;if(this.segments.length===0||(p===void 0?0:p))this.T=k;this.segments.push(k);return!0}; g.E.qh=function(){return this.fE||0}; g.E.fH=function(){return this.C||0}; g.E.removeAll=function(){for(;this.segments.length;){var k=void 0;(k=this.segments.pop())==null||k.dispose()}this.Y.clear();this.N=void 0}; g.E.Ap=function(){this.removeAll();g.R.prototype.Ap.call(this)}; g.r(j9i,g.R);g.E=j9i.prototype;g.E.qh=function(){return this.fE}; g.E.fH=function(){return this.N}; g.E.getType=function(){return this.type}; g.E.getVideoData=function(){return this.videoData}; g.E.AX=function(k){Cy(k);this.videoData=k}; g.E.Ap=function(){O7u(this);g.R.prototype.Ap.call(this)};g.uW.prototype.q3=function(k,p){if(p===1)return this.T.get(k);if(p===2)return this.N.get(k);if(p===3)return this.Y.get(k)}; g.uW.prototype.AR=tw(49);g.uW.prototype.JS=function(k,p,t,J){t={Ol:J,Ch:t};p?this.N.set(k,t):this.T.set(k,t)}; g.uW.prototype.clearAll=function(){this.T.clear();this.N.clear();this.Y.clear()}; g.r(g.lW,g.R);g.E=g.lW.prototype;g.E.IA=function(k,p,t){return new g.xf(k,p,{id:t,namespace:"serverstitchedcuerange",priority:9})}; g.E.lI=function(k){var p=k.lL?k.lL*1E3:k.fE,t=this.Y.get(k.cpn);t&&this.playback.removeCueRange(t);this.Y.delete(k.cpn);this.N.delete(k.cpn);t=this.X.indexOf(k);t>=0&&this.X.splice(t,1);t=[];for(var J=g.Z(this.S),q=J.next();!q.done;q=J.next())q=q.value,q.end<=p?this.playback.removeCueRange(q):t.push(q);this.S=t;b36(this,0,p+k.durationMs)}; g.E.onCueRangeEnter=function(k){this.RY.push(k);var p=k.getId();this.TA({oncueEnter:1,cpn:p,start:k.start,end:k.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Zw()||0).toFixed(3)});var t=p==="";this.k8.add(k.Y);var J=this.N.get(p);if(t){var q;if(this.playback.getVideoData().u1()&&((q=this.T)==null?0:q.j2)&&this.C){this.by=0;this.T=void 0;this.B0&&(this.events.qP(this.B0),this.B0=null);this.C="";this.IY=!0;return}}else if(this.TA({enterAdCueRange:1}),this.playback.getVideoData().u1()&& (J==null?0:J.U3))return;if(this.IY&&!this.T)this.IY=!1,!t&&J&&(t=this.playback.getCurrentTime(),kC(this,{Ai:k,isAd:!0,ZP:!0,ZO:t,adCpn:p},{isAd:!1,ZP:!1,ZO:t}),this.CE=J.cpn,H5(this,J),k=Km(this,"midab",J),this.TA(k),this.by=1),this.gy=!1;else if(this.T){if(this.T.ZP)this.TA({a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.ZO,cpn:p,currentTime:this.playback.getCurrentTime()}),J=this.playback.getCurrentTime(),k={Ai:k,isAd:!t,ZP:!0,ZO:J,adCpn:p},p={Ai:this.T.Ai,isAd:this.T.isAd, ZP:!1,ZO:J,adCpn:this.T.adCpn},this.T.Ai&&this.k8.delete(this.T.Ai.Y),kC(this,k,p);else{if(this.T.Ai===k){this.TA({same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.ZO,cpn:p,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:k.start,cueRangeEndTime:k.end});this.T=void 0;return}if(this.T.adCpn===p){p&&this.TA({dchtsc:p});this.T=void 0;return}k={Ai:k,isAd:!t,ZP:!0,ZO:this.playback.getCurrentTime(),adCpn:p};kC(this,k,this.T)}this.T=void 0;this.gy=!1}else this.T={Ai:k,isAd:!t, ZP:!0,ZO:this.playback.getCurrentTime(),adCpn:p}}; g.E.onCueRangeExit=function(k){var p=k.getId();this.TA({oncueExit:1,cpn:p,start:k.start,end:k.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Zw()||0).toFixed(3)});var t=p==="",J=this.N.get(p);if(this.playback.getVideoData().u1()&&!t&&J){if(J.U3)return;J.U3=!0;this.B.clear();if(this.ih.D("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.RA()){var q=J.fE;this.playback.f1(q/1E3,(q+J.durationMs)/1E3)}else this.playback.yT("lifa",{remove:0})}if(this.k8.has(k.Y))if(this.k8.delete(k.Y), this.RY=this.RY.filter(function(F){return F!==k}),this.IY&&(this.gy=this.IY=!1,this.TA({cref:1})),this.T){if(this.T.ZP){if(this.T.Ai===k){this.TA({same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.ZO,cpn:p,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:k.start,cueRangeEndTime:k.end});this.T=void 0;return}if(this.T.adCpn===p){p&&this.TA({dchtsc:p});this.T=void 0;return}p={Ai:k,isAd:!t,ZP:!1,ZO:this.playback.getCurrentTime(),adCpn:p};kC(this,this.T,p)}else if(this.TA({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.ZO,upcomingCpn:p,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.T.adCpn===p)return;this.T=void 0;this.gy=!1}else this.T={Ai:k,isAd:!t,ZP:!1,ZO:this.playback.getCurrentTime(),adCpn:p};else this.TA({ignore_single_exit:1})}; g.E.KA=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,fE:0,playerType:1,LT:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.E.b0=function(){if(this.bO)return!1;var k=void 0;this.CE&&(k=this.N.get(this.CE));return this.playback.getVideoData().u1()?!!k&&!k.U3:!!k}; g.E.seekTo=function(k,p,t,J){k=k===void 0?0:k;p=p===void 0?{}:p;t=t===void 0?!1:t;J=J===void 0?null:J;if(this.playback.getVideoData().u1()&&k<=this.P0/1E3)this.playback.pauseVideo(),this.P0=0,this.gy=!0,this.playback.iD(),this.playback.seekTo(k),this.playback.playVideo();else if(this.gy=!0,t)H7i(this,k,p);else{t=this.app.tp();var q=t===this.W0?this.qW:null;t3(this,!1);this.nE=k;this.ez=p;J!=null&&this.Fd.start(J);t&&(this.qW=q||t.getPlayerState(),t.QI(),this.W0=t)}}; g.E.Ap=function(){t3(this,!1);FVM(this);$yj(this);g.R.prototype.Ap.call(this)}; g.E.Me=function(k){this.yn=k;this.TA({swebm:k})}; g.E.mx=function(k,p,t){if(t&&p){var J=this.B.get(k);if(J){J.locations||(J.locations=new Map);var q=Number(p.split(";")[0]);t=new g.yb(t);this.TA({hdlredir:1,itag:p,seg:k,hostport:TY(t)});J.locations.set(q,t)}}}; g.E.Qp=function(k,p,t,J,q,F){var d=J===3,S=EVL(this,k,p,J,t,F);if(!S){oD(this,p,d);var U=g.dy_(this,p)?"undec":"ncp";this.TA({gvprp:U,mt:k,seg:p,tt:J,itag:t,ce:F});return null}d||this.B.set(p,S);F=S.mX;var f;J=((f=this.q3(p-1,J,q))==null?void 0:f.Ol)||"";J===""&&this.TA({eds:1});f=UyL(this,S.ssdaiAdsConfig);q=this.playback.getVideoData();var b;d=((b=q.Y)==null?void 0:b.containerType)||0;b=q.z8[d];S=S.AN&&p>=S.AN?S.AN:void 0;b={SU:F?Yz_(this,F):[],zo:f,Ol:J,e9:S,mm:pE(b.split(";")[0]),RL:b.split(";")[1]|| ""};S={sS:b};this.Jp&&(k={gvprpro:"v",sq:p,mt:k.toFixed(3),itag:t,acpns:((U=b.SU)==null?void 0:U.join("_"))||"none",abid:F},this.TA(k));return S}; g.E.jJ=function(k){a:{if(!this.bO){var p=Sz6(this,k);if(!(this.playback.getVideoData().u1()&&(p==null?0:p.U3)))break a}p=void 0}var t=p;if(!t)return this.TA({gvprp:"ncp",mt:k}),null;p=t.mX;var J=UyL(this,t.ssdaiAdsConfig);t=t.AN&&t.q6&&k>=t.q6?t.AN:void 0;var q=this.playback.getVideoData(),F,d=((F=q.Y)==null?void 0:F.containerType)||0;F=q.z8[d];F={SU:p?Yz_(this,p):[],zo:J,e9:t,mm:pE(F.split(";")[0]),RL:F.split(";")[1]||""};var S;k={gvprpro:"v",mt:k.toFixed(3),acpns:((S=F.SU)==null?void 0:S.join("_"))|| "none",abid:p};this.TA(k);return F}; g.E.E3=function(k,p,t,J,q,F){var d=Number(t.split(";")[0]),S=J===3;k=EVL(this,k,p,J,t,F);this.TA({gdu:1,seg:p,itag:d,pb:""+!!k});if(!k)return oD(this,p,S),null;k.locations||(k.locations=new Map);if(!k.locations.has(d)){var U,f;F=(U=k.videoData.getPlayerResponse())==null?void 0:(f=U.streamingData)==null?void 0:f.adaptiveFormats;if(!F)return this.TA({gdu:"noadpfmts",seg:p,itag:d}),oD(this,p,S),null;U=F.find(function(y){return y.itag===d}); if(!U||!U.url){var b=k.videoData.videoId;k=[];var N=g.Z(F);for(J=N.next();!J.done;J=N.next())k.push(J.value.itag);this.TA({gdu:"nofmt",seg:p,vid:b,itag:d,fullitag:t,itags:k.join(",")});oD(this,p,S);return null}k.locations.set(d,new g.yb(U.url,!0))}F=k.locations.get(d);if(!F)return this.TA({gdu:"nourl",seg:p,itag:d}),oD(this,p,S),null;F=new Et(F);this.yn&&(F.get("dvc")?this.TA({dvc:F.get("dvc")||""}):F.set("dvc","webm"));(J=(N=this.q3(p-1,J,q))==null?void 0:N.Ol)&&F.set("daistate",J);k.AN&&p>=k.AN&& F.set("skipsq",""+k.AN);(N=this.playback.getVideoData().clientPlaybackNonce)&&F.set("cpn",N);N=[];k.mX&&(N=Yz_(this,k.mX),N.length>0&&F.set("acpns",N.join(",")));S||this.B.set(p,k);S=null;S=F.get("aids");J=F.b1();(J==null?void 0:J.length)>2048&&this.TA({urltoolong:1,sq:p,itag:d,len:J.length});this.Jp&&(J&&(F=k.cpn,q=k.mX,Z3w(this,F,q),q&&!this.Kb.has(q)&&(F=Tfi(this,F,q),U=r8S(this,q),this.TA({iofa:F}),this.TA({noawnzd:U-F}),this.TA({acpns:N.join("."),aids:(b=S)==null?void 0:b.replace(/,/g,".")}), this.Kb.add(q))),this.TA({gdu:"v",seg:p,itag:t,ast:k.fE.toFixed(3),alen:k.durationMs.toFixed(3),acpn:k.cpn,avid:k.videoData.videoId}));return J}; g.E.w2=function(k,p,t){var J=J3(this,k,t);return(J=J?(J.fE+J.durationMs)/1E3:0)&&p>J?(this.UH(k,t,!0),this.playback.seekTo(J),!0):!1}; g.E.UH=function(k,p,t){t=t===void 0?!1:t;var J=J3(this,k,p);if(J){var q=void 0,F=J.mX;if(F){this.TA({skipadonsq:p,sts:t,abid:F,acpn:J.cpn,avid:J.videoData.videoId});t=this.Z.get(F);if(!t)return;t=g.Z(t);for(F=t.next();!F.done;F=t.next())F=F.value,F.AN=p,F.q6=k,F.fE>J.fE&&(q=F)}this.C=J.cpn;f7q(this);k=this.playback.getCurrentTime();x7(this,J,q,k,k,!1,!0)}}; g.E.zm=function(){for(var k=g.Z(this.X),p=k.next();!p.done;p=k.next())p=p.value,p.AN=NaN,p.q6=NaN;f7q(this);this.TA({rsac:"resetSkipAd",sac:this.C});this.C=""}; g.E.q3=function(k,p,t){return this.Oy.q3(k,p,t)}; g.E.AR=tw(48); g.E.JS=function(k,p,t,J,q,F,d,S,U){J.length>0&&this.TA({onssinfo:1,sq:k,start:p.toFixed(3),cpns:J.join(","),ds:q.join(","),isVideo:d?1:0});U&&this.Oy.JS(k,d,S,U);U=tx(this.playback.getVideoData())&&this.ih.D("html5_process_all_cuepoints");if(d||U){if(J.length&&q.length)for(this.C&&this.C===J[0]&&this.TA({skipfail:1,sq:k,acpn:this.C}),k=p+this.h_(),d=0;d<J.length;d++){var f=J[d];U=k;k=U+q[d];if(f=this.N.get(f))U-=F[d],f.lL=f.lL!=null?Math.min(f.lL,U):U}if(J.length&&q.length)for(p=(p+this.h_())*1E3, t=0;t<J.length;t++)if(k=J[t],d=q[t]*1E3,k===this.playback.getVideoData().clientPlaybackNonce)Nfw(this,p,p+d,!1),p+=d;else{this.v0.has(k)||(this.TA({adCpnFromEmsg:1}),this.v0.add(k));U=0;t<F.length&&(U=F[t]*1E3);f=this.Y.get(k);var b=!1;f?(f.start=p-U,f.end=p+d,t===J.length-1&&(f.end+=y80(this,k,S)),this.playback.wM()):(f=this.IA(p-U,p+d,k),this.Y.set(k,f),this.TA({newAdCR:1,cpn:k,startTime:f.start,endTime:f.end}),b=!0,t===J.length-1&&(f.end+=y80(this,k,S)));p=f.end;Nfw(this,f.start,f.end,!0);if(b)for(this.playback.addCueRange(f), k=this.playback.I$("serverstitchedcuerange",36E5),k=g.Z(k),d=k.next();!d.done;d=k.next())this.Y.delete(d.value.getId())}else t!==5&&t!==4||Nfw(this,(p+this.h_())*1E3,(p+this.h_())*1E3+5E3,!1)}}; g.E.SI=tw(46);g.E.h_=function(){return this.playback.h_()}; g.E.Y4=function(k){this.playback.yT("timelineerror",{e:k})}; g.E.kP=function(k){this.j6&&this.Y8&&this.qO.push(this.Y8);k&&this.Y8&&this.UQ.push(this.Y8);this.Y8=null;this.playback.kP(k)}; g.E.SR=function(k){if(this.bO||k.identifier&&this.UF.has(k.identifier))this.TA({startnoad:k.identifier}),OW(this);else if(cC(this.qO,function(t){return t.identifier===k.identifier}))this.TA({timedoutcp:1}),this.NO.start(0); else if(cC(this.UQ,function(t){return t.identifier===k.identifier}))this.TA({fetchedcp:1}),OW(this); else if(this.NO.isActive()){var p;this.TA({racingcp:((p=this.Y8)==null?void 0:p.identifier)+"_"+k.identifier})}else this.jW=(new Date).getTime()/1E3,this.TA({adf:1}),(p=5E3,k.event==="predictStart")&&(p-=k.T),this.gs=Math.max(p,15E3),this.j6=!1,this.NO.start(this.gs),this.Y8=k,this.Oy.clearAll(),this.pp=[]}; g.E.Lt=function(k,p,t,J){t=t||{reason:"disablessdai"};if(k&&p){if(!J3(this,k,p))return!1;t.sq=p}if(this.bO)return!1;this.bO=!0;this.by>0&&(this.by=0,this.CE="",this.api.publish("serverstitchedvideochange"));this.playback.Cj(t,J);return!0}; g.E.Gu=function(){this.TA({rstdaist:1});this.Oy.clearAll()}; g.E.bV=function(k){var p;if(k!==((p=this.Y8)==null?void 0:p.identifier))this.TA({ignorenoad:k});else{this.UF.add(k);var t;((t=this.Y8)==null?void 0:t.identifier)===k&&OW(this)}}; g.E.He=function(){return this.by}; g.E.ZC=function(){return this.CE}; g.E.xe=function(k){if(this.bO)return this.TA({dai_disabled:k.event}),!1;if(this.playback.getVideoData().u1()&&(this.ih.D("html5_lifa_no_gab_on_predict_start")&&k.event==="predictStart"||k.event==="continue"||k.event==="stop"))return this.TA({cuepoint_skipped:k.event}),!1;var p=GH(this.api.EQ());if(p=p?p.xe(k):!1)this.L={TK:k.identifier,vu:k.startSecs};else if(this.L&&this.L.TK===k.identifier&&k.startSecs>this.L.vu+1){this.TA({cueStChg:k.identifier,oldSt:this.L.vu.toFixed(3),newSt:k.startSecs.toFixed(3), abid:this.L.VJ});if(this.L.VJ){var t=k.startSecs-this.L.vu,J=this.Z.get(this.L.VJ);if(J){J=g.Z(J);for(var q=J.next();!q.done;q=J.next())q=q.value,q.fE>=0&&(q.fE+=t*1E3,this.ih.D("html5_ssdai_update_timeline_on_start_time_change")&&(q.LT+=t*1E3),this.TA({newApEt:q.fE,newApPrt:q.LT,acpn:q.cpn}))}}this.L.vu=k.startSecs}return p}; g.E.Pe=function(k){return this.bO?!1:!!Sz6(this,k)}; g.E.W_=function(k){var p=this;this.playback.pauseVideo();var t=this.playback.getCurrentTime(),J=this.N.get(this.CE),q=this.Y.get(this.CE);if(J){this.C=this.CE;this.gy=!1;J.U3=!0;var F=this.playback.getCurrentTime();this.T={Ai:q,isAd:!0,ZP:!1,ZO:F,adCpn:this.CE,j2:J,DVO:k};this.playback.getVideoData().u1()&&this.playback.FX(J,this.KA(),F,this.playback.getCurrentTime(),!1,!0,k,(0,g.V9)());if(q==null?0:q.start)this.P0=F*1E3-q.start;this.B.clear();this.playback.iD();this.CE=this.KA().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(t,{seekSource:89,XR:"lifa_skip"});this.playback.playVideo();this.B0||(this.B0=this.events.V(this.api,"progresssync",function(){p.lI(J)})); return!0}this.TA({skipFail:t},!0);return!1}; g.E.TA=function(k,p){((p===void 0?0:p)||this.Jp||this.playback.getVideoData().u1())&&this.playback.yT("sdai",k)}; var tyh=0;g.r(CeM,g.lW);g.E=CeM.prototype;g.E.lI=function(k){var p=this.Y.get(k.cpn);p&&this.playback.removeCueRange(p);this.Y.delete(k.cpn);this.N.delete(k.cpn);k=this.X.indexOf(k);k>=0&&this.X.splice(k,1)}; g.E.onCueRangeEnter=function(k){var p=k.getId();this.playback.yT("sdai",{oncueEnter:1,cpn:p,start:k.start,end:k.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Zw()||0).toFixed(3)});p=this.N.get(p);this.playback.yT("sdai",{enterAdCueRange:1});var t=this.CE||this.KA().cpn,J;t=(J=this.N.get(t))!=null?J:this.KA();p&&(k={Ai:k,Nu:t,yf:p,Ym:this.playback.getCurrentTime()},this.pY(k))}; g.E.onCueRangeExit=function(k){for(var p=this.playback.getCurrentTime()*1E3,t=k.getId(),J=g.Z(this.Y.values()),q=J.next();!q.done;q=J.next())if(q=q.value,q.getId()!==t&&p>=q.start&&p<=q.end)return;if(p=this.N.get(t))k={Ai:k,Nu:p,yf:this.KA(),Ym:this.playback.getCurrentTime()},this.pY(k)}; g.E.pY=function(k){this.C||this.gy||this.Jb(this.CE);var p=k.Nu,t=k.yf;if(t.cpn===this.CE)this.playback.yT("sdai",{igtranssame:1,enter:t.cpn,exit:p.cpn});else{var J=this.gy,q=!!this.C;this.C="";k=k.Ym;var F=p.playerType===2?p.fE/1E3+p.videoData.W0:this.KA().videoData.W0;if(p.playerType===2&&t.playerType===2)q?this.playback.yT("sdai",{igtransskip:1,enter:t.cpn,exit:p.cpn,seek:J,skip:this.C}):x7(this,p,t,F,k,J,q);else{this.CE=t.cpn;if(p.playerType===1&&t.playerType===2){this.P0=0;H5(this,t);var d=Km(this, "c2a",t);this.playback.yT("sdai",d);this.by++}else if(p.playerType===2&&t.playerType===1){d=p.videoData.W0;this.api.publish("serverstitchedvideochange");var S=Km(this,"a2c");this.playback.yT("sdai",S);this.by=0;this.P0=d}this.playback.FX(p,t,F,k,J,q)}this.C="";this.gy=!1}}; g.E.seekTo=function(k,p,t,J){k=k===void 0?0:k;p=p===void 0?{}:p;t=t===void 0?!1:t;J=J===void 0?null:J;this.Jb(this.CE);g.lW.prototype.seekTo.call(this,k,p,t,J)}; g.E.UH=function(k,p,t){t=t===void 0?!1:t;var J=J3(this,k,p);if(J){var q=void 0,F=J.mX;if(F){this.playback.yT("sdai",{skipadonsq:p,sts:t,abid:F,acpn:J.cpn,avid:J.videoData.videoId});t=this.Z.get(F);if(!t)return;t=g.Z(t);for(F=t.next();!F.done;F=t.next())F=F.value,F.AN=p,F.q6=k,F.fE>J.fE&&(q=F)}this.Jb(this.CE);this.C=J.cpn;f7q(this);k=this.playback.getCurrentTime();x7(this,J,q,k,k,!1,!0)}}; g.E.JS=function(k,p,t,J,q,F,d,S,U){J.length>0&&this.playback.yT("sdai",{onssinfo:1,sq:k,start:p.toFixed(3),cpns:J.join(","),ds:q.join(","),isVideo:d?1:0});U&&this.Oy.JS(k,d,S,U);t=tx(this.playback.getVideoData())&&this.ih.D("html5_process_all_cuepoints");if(d||t){if(J.length&&q.length)for(this.C&&this.C===J[0]&&this.playback.yT("sdai",{skipfail:1,sq:k,acpn:this.C}),k=p+this.h_(),d=0;d<J.length;d++)if(S=J[d],t=k,k=t+q[d],S=this.N.get(S))t-=F[d],S.lL=S.lL!=null?Math.min(S.lL,t):t;if(J.length&&q.length)for(d= (p+this.h_())*1E3,p=0;p<J.length;p++)if(t=J[p],S=q[p]*1E3,t!==this.playback.getVideoData().clientPlaybackNonce){this.v0.has(t)||(this.playback.yT("sdai",{adCpnFromEmsg:1}),this.v0.add(t));U=0;p<F.length&&(U=F[p]*1E3);if(k=this.Y.get(t))k.start=d-U,k.end=d+S,this.playback.wM();else for(k=this.IA(d-U,d+S,t),this.Y.set(t,k),this.playback.yT("sdai",{newAdCR:1,cpn:t,startTime:k.start,endTime:k.end}),this.playback.addCueRange(k),d=this.playback.I$("serverstitchedcuerange",36E5),d=g.Z(d),t=d.next();!t.done;t= d.next())this.Y.delete(t.value.getId());d=k.end}}}; g.E.Jb=function(k){var p=k||this.CE,t=this.N.get(p);if(t){k=t.videoData;var J,q;p=t.lL||((q=(J=this.Y.get(p))==null?void 0:J.start)!=null?q:0)/1E3;J=this.playback.getCurrentTime()-p;k.W0=J>0?J:0}else this.KA().videoData.W0=this.playback.getCurrentTime()};g.r(WVT,g.R);g.E=WVT.prototype; g.E.g$=function(k,p){p=p===void 0?"":p;if(this.timeline.N===p)return!0;var t=this.timeline.T,J=t==null?void 0:t.getVideoData();if(!t||!J)return this.api.yT("ssap",{htsm:t?0:1}),!1;if(this.api.D("html5_ssap_clear_timeline_before_update")){var q=this.timeline,F;(F=q.T)==null||O7u(F);q.Y.clear()}q=ao(t);var d=!1;F=[];var S=new Map;t=[];var U=[],f=0,b=0,N=0,y=[];k=g.Z(k);for(var Y=k.next();!Y.done;Y=k.next())a:{var T=void 0,A=void 0,V=Y.value,D=V.clipId;if(D){if(V.yZ){N=V.yZ.O4||0;Y=V.yZ.xg||1;var v= Number(((V.yZ.s_||0)/(V.yZ.uI||1)*1E3).toFixed(0));N=Y=v+Number((N/Y*1E3).toFixed(0))}else Y=v=N,this.Nt.has(D)||this.Wl.add(D);var w=(A=S.get(D))!=null?A:0,X=this.timeline.N;A=!1;if(X&&this.api.D("html5_ssap_clear_timeline_before_update")){if(X=this.jm.get(D))X.start=v,X.end=Y,A=!0}else{if(X){var B=D;X=v;var O=Y,l=w,oi=kA(this.timeline,B);if(oi!=null&&oi.length){l<oi.length&&(oi[l].fE=X,oi[l].N=O);if(B=this.jm.get(B))B.start=X,B.end=O;X=!0}else X=!1}if(X){S.set(D,w+1);d=!0;break a}}y.push(D);!A&& V.yZ&&(y=this.IA(v,Y,y.join(",")),this.jm.set(D,y),t.push(y),y=[]);if(((T=V.yZ)==null?void 0:T.Vd)===J.videoId){A=T=void 0;V=D;D=J;V!==D.clientPlaybackNonce&&this.api.yT("ssap",{cnm:1,cid:V,cpn:D.clientPlaybackNonce});if(this.api.D("html5_ssap_clear_timeline_before_update"))D.l1=v,V=gI(this.timeline,1,v,Y-v,D),F.push(V),v=Mf(this.timeline,v,Y,[V]),d=d||v;else if(X=[],D&&(D.l1=v,X=(A=kA(this.timeline,V))!=null?A:[]),!this.timeline.N&&X.length&&w===0){d=X[0];d.fE=v;d.N=Y;D=(T=this.timeline.T)==null? void 0:T.T;if((T=D==null?void 0:D.get(0))&&D)for(A=0;A<T.length;A++)if(X=T[A],X.qh()!==X.fH()){X.fE=v;X.C=Y;T.splice(A,1);D.has(v)?D.get(v).push(X):D.set(v,[X]);break}F.push(d);S.set(V,w+1);d=!0}else V=gI(this.timeline,1,v,Y-v,D),F.push(V),v=Mf(this.timeline,v,Y,[V]),d=d||v;U.length&&(U=Dyw(this,f||0,b,U),d=d||U);b=f=Y;U=[]}else w=void 0,T=this.WS.get(D),A=T!=null?T:new g.Rj(this.api.G(),{cpn:D}),A.YO=!0,this.Wl.has(D)&&this.WS.set(D,A),f=Math.min(v,f),b=Math.max(Y,b),this.api.yT("ssap",{e:v,d:Y- v,c:D,p:T?1:0}),A.l1=v,Y=gI(this.timeline,2,v,Y-v,A,(w=V.JL)==null?void 0:w.sL),U.push(Y)}else this.api.yT("ssap",{cm:1})}U.length&&(J=Dyw(this,f||0,b,U),d=d||J);q&&F.length&&(lcT(this.timeline,q,F),this.api.D("html5_ssap_clear_timeline_before_update")&&(J=F[F.length-1].fH(),(q=this.timeline.T)!=null&&(q.N=J)));t.length&&this.playback.Fs(t);if(d){this.timeline.N=p;J=this.playback.XS();p=[];J=g.Z(J);for(t=J.next();!t.done;t=J.next()){t=t.value;if(t.N){if(this.api.D("html5_ssap_fix_ad_completion_cue_range")&& t.start===0x7ffffffffffff)continue;q=vI(this,t.N);if(q===t.aD)continue;t.start=t.start-t.aD+q;t.end=t.end-t.aD+q;t.aD=q;p.push(t)}this.api.D("html5_ssap_fix_cue_range_updates")||this.playback.OL(p)}this.api.D("html5_ssap_fix_cue_range_updates")&&this.playback.OL(p);this.api.yT("ssap",{tu:C$(this)});p=GH(this.api.EQ());this.api.yT("ssap",{am:p?1:0})}else this.api.yT("ssap",{tnu:1});return!0}; g.E.addPlayerResponseForAssociation=function(k){var p=new g.Rj(this.api.G(),k.playerVars);p.playerResponseCpn?p.clientPlaybackNonce=p.playerResponseCpn:this.api.yT("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});p.YO=!0;if(k=k.ST)p.ST=k,p.clientPlaybackNonce=k.cpn;k=p.clientPlaybackNonce;this.api.yT("ssap",{aprfa:k+"_"+p.videoId});if(k){this.WS.set(k,p);var t=kA(this.timeline,k),J=!1;if(t==null?0:t.length){t=g.Z(t);for(var q=t.next();!q.done;q=t.next())q=q.value,p.l1=q.qh(),q.AX(p), q.Y&&(J=!0)}else J=!p.videoId;if(!J){if(!V2q(this.playback.Tb.ZB(p.videoId))){var F;this.api.yT("ssap",{nlc:k,nlcc:(F=this.timeline.T)==null?void 0:ao(F)})}this.playback.Tb.PW().F8(k,p,2)}}}; g.E.aB=function(){this.Ef=!0;this.api.D("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.CE,im(this),5)}; g.E.o3=function(k){if(g.Uy(k,128)){var p;k=(p=k.state.JD)==null?void 0:p.errorCode;this.finishSegmentByCpn(this.CE,im(this),7,k)}}; g.E.finishSegmentByCpn=function(k,p,t,J){if(this.CE===p)return[];this.Ef&&(t=5,this.Ef=!1);this.api.yT("ssap",{fsbc:k+";"+p,fsbcr:t,fsbct:this.api.getCurrentTime().toFixed(),fsbce:J!=null?J:""});if(this.api.D("html5_ssap_timeline_handle_error_and_abandon")&&(t===5||t===7))return nVT(this,k,p,t),[];this.tQ=p;var q=!1;if(this.Wl.has(k)&&(q=A8M(this,t),!q))return[k];var F=kA(this.timeline,p);if(F){F.sort(function(U,f){return U.qh()-f.qh()}); var d=g.Z(F);for(F=d.next();!F.done;F=d.next()){F=F.value;var S=this.playback.getCurrentTime()*1E3;if(F.qh()>=S){this.WG.set(k,t);vVh(this,k,p);this.Ig.set(k,(0,g.V9)());if(t=this.jm.get(p))for(t=t.getId().split(","),t=g.Z(t),d=t.next();!d.done;d=t.next())d=d.value,d!==p&&this.Wl.has(d)&&(this.Wl.delete(d),this.Nt.add(d));this.Jb();p=F.qh()/1E3;F=void 0;t=(F=g.dU(this.api.G().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?F:0;this.api.D("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(p+ t/1E3,{Nx:!0}):this.playback.seekTo(p+t/1E3);this.SK?(this.api.yT("ssap",{gpfreload:this.CE}),VyM(this)||(this.SK=!1),this.playback.iD(!1,!1,this.api.D("html5_ssap_keep_media_on_finish_segment"))):J&&this.playback.iD(!1,!1,this.api.D("html5_ssap_keep_media_on_finish_segment"));q&&this.api.playVideo(1,this.api.D("html5_ssap_keep_media_on_finish_segment"));return[k]}}}return[]}; g.E.TE=function(){var k=this.timeline.T;if(!k)return 0;var p=k.fH();k=g.Z(k.T.values());for(var t=k.next();!t.done;t=k.next()){t=g.Z(t.value);for(var J=t.next();!J.done;J=t.next())J=J.value,J.fH()>p&&(p=J.fH())}return p/1E3}; g.E.xx=function(){var k=this.playback.getCurrentTime()*1E3;var p=i39(this,k);if(!p){var t=kA(this.timeline,this.CE);if(t){t=g.Z(t);for(var J=t.next();!J.done;J=t.next())J=J.value,J.qh()>k&&(p=J)}}return p&&p.getType()===1?p.qh()/1E3:0}; g.E.getVideoData=function(k){if(k===2&&!this.b0()){if(this.pD&&this.WS.has(this.pD))return this.WS.get(this.pD);this.api.yT("ssap",{lpanf:""+im(this)});return null}return GxS(this)}; g.E.b0=function(){var k=kA(this.timeline,this.CE);return(k==null?0:k.length)?k[0].getType()===2:!1}; g.E.d5=function(){var k=kA(this.timeline,this.CE);return(k==null?0:k.length)?k[0].Y:!1}; g.E.seekTo=function(k,p){p=p===void 0?{}:p;var t=QR6(this,this.playback.getCurrentTime());this.playback.seekTo(k+t/1E3,p)}; g.E.IA=function(k,p,t){return new g.xf(k,p,{id:t,namespace:"ssap",priority:9})}; g.E.onCueRangeEnter=function(k){if(!this.S8.has(k.getId())){this.api.yT("ssap",{oce:1,cpn:k.getId(),st:k.start,et:k.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Zw()||0).toFixed(3)});for(var p=k.getId().split(","),t=0;t<p.length&&this.tQ&&p[t]!==this.tQ;){var J=p[t];this.Wl.has(J)&&(this.Wl.delete(J),this.Nt.add(J));t++}if(p.length>t+1)for(J=t+1;J<p.length;J++)this.C1.push(p[J]);p=p[t];this.Wl.has(p)&&I7h(this,p);this.Nt.has(p)||c8j(this,p);p=g.Z(this.jm.values());for(t= p.next();!t.done;t=p.next())t=t.value,t.start<=k.start&&!this.S8.has(k.getId())&&this.S8.add(t.getId())}}; g.E.He=function(){return this.by}; g.E.ZC=function(){return this.CE}; g.E.handleError=function(k,p){p=p===void 0?0:p;if(k!=="fmt.decode"&&k!=="fmt.unplayable"||!this.b0()||this.E4===this.CE)return!1;this.E4=this.CE;if(this.api.D("html5_enable_ssap_gapful_switch"))this.SK=!0,this.api.yT("ssap",{gpfonerr:k}),this.playback.iD();else{this.playback.yT("ssap",{skiperr:k,acpn:this.CE});var t=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.CE,t,p===1||p===2?7:6,k)}return!0}; g.E.Jb=function(k){var p=k||this.CE;if(k=this.WS.get(p)||this.playback.getVideoData())p=this.playback.getCurrentTime()-vI(this,p)/1E3,k.W0=p>0?p:0}; g.E.j88=function(k){var p=this.WS.get(this.CE);p&&this.playback.tJ(k-p.l1/1E3,p.lengthSeconds,this.CE)}; g.E.Ap=function(){this.api.G().DB()&&this.api.yT("ssap",{di:""+this.CE,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.WS.clear();this.Wl.clear();this.S8.clear();this.WG.clear();this.Ig.clear();this.Nt.clear();this.C1=[];my6(this);this.tQ="";g.Df(this.events);g.R.prototype.Ap.call(this)};g.r(Bfh,g.R);g.E=Bfh.prototype;g.E.onCueRangeEnter=function(k){if(this.T===this.app.tp()){var p=this.X.get(k);p?gVe(this,p.target,p.oh,k):this.Vn("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:k.toString()})}else if(p=this.Y.find(function(q){return q.nw.Ai===k})){var t=p.nw,J=t.target; t=t.oh;J?gVe(this,J,t,k):Myq(this,p.LT,t,k)}}; g.E.onQueuedVideoLoaded=function(){var k=this.Z;EM(this);if(k){if(!dG(this,k)){var p=this.app.tp();this.Vn("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:p==null?void 0:p.getVideoData().clientPlaybackNonce,ccpn:""+k.playerVars.cpn})}this.app.tp().addCueRange(k.nw.Ai)}}; g.E.seekTo=function(k,p,t,J){k=k===void 0?0:k;p=p===void 0?{}:p;J=J===void 0?null:J;if(t===void 0?0:t)RGM(this,k,p);else{t=this.app.tp()||null;var q=t===this.C?this.S:null;SB(this,!1);this.gy=k;this.L=p;J!=null&&this.B.start(J);t&&(this.S=q||t.getPlayerState(),t.QI(),this.C=t)}}; g.E.o3=function(k){g.Uy(k,128)&&KVi(this)}; g.E.isManifestless=function(){return dS(this.T.getVideoData())}; g.E.Ap=function(){SB(this,!1);xyi(this);g.R.prototype.Ap.call(this)}; g.E.Vn=function(k,p){this.T.Vn(new AD(k,p))}; var zG9=0;var kVe="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.r(bH,g.R);g.E=bH.prototype;g.E.get=function(k){UM(this);var p=this.data.find(function(t){return t.key===k}); return p?p.value:null}; g.E.set=function(k,p,t){this.remove(k,!0);UM(this);k={key:k,value:p,expire:Infinity};t&&isFinite(t)&&(t*=1E3,k.expire=(0,g.V9)()+t);for(this.data.push(k);this.data.length>this.N;)(t=this.data.shift())&&NA(this,t,!0);f_(this)}; g.E.remove=function(k,p){p=p===void 0?!1:p;var t=this.data.find(function(J){return J.key===k}); t&&(NA(this,t,p),g.k2(this.data,function(J){return J.key===k}),f_(this))}; g.E.removeAll=function(k){if(k=k===void 0?!1:k)for(var p=g.Z(this.data),t=p.next();!t.done;t=p.next())NA(this,t.value,k);this.data=[];f_(this)}; g.E.Ap=function(){var k=this;g.R.prototype.Ap.call(this);this.data.forEach(function(p){NA(k,p,!0)}); this.data=[]};g.r(yZ,g.R);yZ.prototype.Jq=function(k){if(k)return this.Y.get(k)}; yZ.prototype.Ap=function(){this.T.removeAll();this.Y.removeAll();g.R.prototype.Ap.call(this)};g.vBn=f9(function(){var k=window.AudioContext||window.webkitAudioContext;try{return new k}catch(p){return p.name}});g.r(Fd9,g.M);g.E=Fd9.prototype;g.E.QZ=function(){g.ob(this.element,g.nS.apply(0,arguments))}; g.E.vj=function(){this.TI&&(this.TI.removeEventListener("focus",this.RM),g.qa(this.TI),this.TI=null)}; g.E.A4=function(){this.MO();var k=this.app.G();k.OS||this.QZ("tag-pool-enabled");k.S&&this.QZ(g.Xf.HOUSE_BRAND);k.playerStyle==="gvn"&&(this.QZ("ytp-gvn"),this.element.style.backgroundColor="transparent");k.yn&&(this.d$=g.tn("yt-dom-content-change",this.resize,this));this.V(window,"orientationchange",this.resize,this);this.V(window,"resize",this.resize,this)}; g.E.Tn=function(k){g.vs(this.app.G());this.fD=!k;YC(this)}; g.E.resize=function(){if(this.TI){var k=this.At();if(!k.isEmpty()){var p=!g.TJ(k,this.B4.getSize()),t=Ut6(this);p&&(this.B4.width=k.width,this.B4.height=k.height);k=this.app.G();(t||p||k.yn)&&this.app.fp.publish("resize",this.getPlayerSize())}}}; g.E.hP=function(k,p){this.updateVideoData(p)}; g.E.updateVideoData=function(k){if(this.TI){var p=this.app.G();hO&&(this.TI.setAttribute("x-webkit-airplay","allow"),k.title?this.TI.setAttribute("title",k.title):this.TI.removeAttribute("title"));this.TI.setAttribute("controlslist","nodownload");p.k0&&k.videoId&&(this.TI.poster=k.KL("default.jpg"))}p=g.rS(k,"yt:bgcolor");this.GN.style.backgroundColor=p?p:"";this.hL=Jm(g.rS(k,"yt:stretch"));this.VU=Jm(g.rS(k,"yt:crop"),!0);g.$E(this.element,"ytp-dni",k.JB);this.resize()}; g.E.setGlobalCrop=function(k){this.Ow=Jm(k,!0);this.resize()}; g.E.setCenterCrop=function(k){this.FM=k;this.resize()}; g.E.ye=function(){}; g.E.getPlayerSize=function(){var k=this.app.G(),p=this.app.fp.isFullscreen(),t=k.externalFullscreen&&g.V0(k);if(p&&Bw()&&!t)return new g.YY(window.outerWidth,window.outerHeight);t=!isNaN(this.sD.width)&&!isNaN(this.sD.height);var J=this.app.G().D("kevlar_player_enable_squeezeback_fullscreen_sizing");if(p&&!t&&J)return new g.YY(this.element.clientWidth,this.element.clientHeight);if(p||k.WV){if(window.matchMedia){k="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.X_&&this.X_.media=== k||(this.X_=window.matchMedia(k));var q=this.X_&&this.X_.matches}if(q)return new g.YY(window.innerWidth,window.innerHeight)}else if(t)return this.sD.clone();return new g.YY(this.element.clientWidth,this.element.clientHeight)}; g.E.At=function(){var k=this.app.G().D("enable_desktop_player_underlay"),p=this.getPlayerSize(),t=g.dU(this.app.G().experiments,"player_underlay_min_player_width");return k&&this.x9&&p.width>t?(k=g.dU(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.YY(Math.min(p.height*this.getVideoAspectRatio(),p.width*k),Math.min(p.height,p.width*k/this.getVideoAspectRatio()))):p}; g.E.getVideoAspectRatio=function(){return isNaN(this.hL)?dtu(this):this.hL}; g.E.getVideoContentRect=function(k){var p=this.At();k=Evi(this,p,this.getVideoAspectRatio(),k);return new g.qJ((p.width-k.width)/2,(p.height-k.height)/2,k.width,k.height)}; g.E.YY=function(k){this.x9=k;this.resize()}; g.E.BW=function(){return this.xV}; g.E.onMutedAutoplayChange=function(){YC(this)}; g.E.setInternalSize=function(k){g.TJ(this.sD,k)||(this.sD=k,this.resize())}; g.E.Ap=function(){this.d$&&g.Jn(this.d$);this.vj();g.M.prototype.Ap.call(this)};g.E=fg9.prototype;g.E.click=function(k,p){this.elements.has(k);this.T.has(k);var t=g.mP();t&&k.visualElement&&g.p1(t,k.visualElement,p)}; g.E.createClientVe=function(k,p,t,J){var q=this;J=J===void 0?!1:J;this.elements.has(k);this.elements.add(k);t=iGi(t);k.visualElement=t;var F=g.mP(),d=g.Az();F&&d&&(g.TQ("combine_ve_grafts")?Au(Zs(),t,d):g.j5(g.al)(void 0,F,d,t));p.addOnDisposeCallback(function(){q.elements.has(k)&&q.destroyVe(k)}); J&&this.Y.add(k)}; g.E.createServerVe=function(k,p,t){var J=this;t=t===void 0?!1:t;this.elements.has(k);this.elements.add(k);p.addOnDisposeCallback(function(){J.destroyVe(k)}); t&&this.Y.add(k)}; g.E.destroyVe=function(k){this.elements.has(k);this.elements.delete(k);this.N.delete(k);this.T.delete(k);this.Y.delete(k)}; g.E.hF=function(k,p){this.clientPlaybackNonce!==p&&(this.clientPlaybackNonce=p,Cj(Zs(),k),biM(this))}; g.E.setTrackingParams=function(k,p){this.elements.has(k);p&&(k.visualElement=g.Ze(p))}; g.E.rS=function(k,p,t){this.elements.has(k);p?this.T.add(k):this.T.delete(k);var J=g.mP(),q=k.visualElement;this.Y.has(k)?J&&q&&(p?g.xK(J,[q]):g.k3(J,[q])):p&&!this.N.has(k)&&(J&&q&&g.HB(J,q,void 0,t),this.N.add(k))}; g.E.hasVe=function(k){return this.elements.has(k)};g.r(g.rG,g.R);g.rG.create=function(k,p,t,J){try{var q=typeof k==="string"?k:"player"+g.O0(k),F=D3[q];if(F){try{F.dispose()}catch(S){g.nV(S)}D3[q]=null}var d=new g.rG(k,p,t,J);d.addOnDisposeCallback(function(){D3[q]=null;d.EV&&d.EV()}); return D3[q]=d}catch(S){throw g.nV(S),(S&&S instanceof Error?S:Error(String(S))).stack;}}; g.E=g.rG.prototype;g.E.D5=function(){return this.visibility}; g.E.rV=function(k){var p=this.iG();if(k!==p){k.getVideoData().autonavState=p.getVideoData().autonavState;p.aX(this.N7,this);var t=p.getPlaybackRate();EO(p);this.rf.rV(k);k.setPlaybackRate(t);k.bY(this.N7,this);C8L(this)}}; g.E.DM=function(){this.JC||(this.JC=g.tc(Ql(),mU0()));return this.JC}; g.E.vj=function(k){if(this.mediaElement){this.HG&&(this.events.qP(this.HG),this.HG=null);g.Df(this.jS);var p=this.tp();p&&p.vj(!0,!1,k);this.template.vj();try{this.D("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.c9()}catch(t){g.wt(t)}this.mediaElement=null}}; g.E.zR=function(k,p){if(k!==this.tp()){this.logger.debug(function(){return"start set presenting player, type "+k.getPlayerType()+", vid "+k.getVideoData().videoId}); var t=null,J=this.tp();J&&(t=J.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Pr(this.q2,3),BG(this,"cuerangesremoved",J.XS()),this.T6&&!k.isGapless()&&J.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),J=k.Uk()&&J.Uk(),this.Sz.LR("iv_s"),nvh(this,J));k.getPlayerType()===1&&this.rV(k);cUL(this,k);this.rf.zR(k);this.mediaElement&&k.setMediaElement(this.mediaElement);k.bY(this.PK,this);k.LV()?Fpe(this,"setPresenting",!1):(this.hP("newdata",k,k.getVideoData()), t&&!g.JZ(t,k.getPlayerState())&&this.H6(new g.Ey(k.getPlayerState(),t)),p=p&&this.D("html5_player_preload_ad_fix")&&k.getPlayerType()===1,k.wR()&&!p&&this.hP("dataloaded",k,k.getVideoData()),(p=(p=k.getVideoData().Y)&&p.video)&&this.fp.xW("onPlaybackQualityChange",p.quality),BG(this,"cuerangesadded",k.XS()),p=k.getPlayerState(),g.u(p,2)?vvw(this):g.u(p,8)?k.playVideo():k.Nk()&&k.pauseVideo(),p=this.iG(),k.getPlayerType()===2&&(k.getVideoData().aR=p.getVideoData().clientPlaybackNonce),k.getPlayerType()!== 2||this.Ur()||(t=k.getVideoData(),p.IW(t.clientPlaybackNonce,t.UQ||"",t.breakType||0,t.wd,t.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.E.Sa=function(){if(this.iG()!==this.tp()){var k=this.tp();this.logger.debug(function(){return"release presenting player, type "+(k==null?void 0:k.getPlayerType())+", vid "+(k==null?void 0:k.getVideoData().videoId)}); this.zR(this.iG())}}; g.E.t5=function(k){if(k)if(k===1)k=this.iG();else if(this.getVideoData().enableServerStitchedDai&&k===2)k=this.getVideoData().enablePreroll?this.rf.t5(2)||this.tp():this.tp();else if(g.hF(this.getVideoData())&&k===2){if(k=this.D("html5_ssap_return_content_player_during_preroll"))if(k=this.yF)k=this.yF,k=k.CE===""?!0:k.b0();k=k?this.tp():this.rf.t5(2)||this.tp()}else k=this.rf.t5(k)||null;else k=this.tp();return k}; g.E.iG=function(){return this.rf.iG()}; g.E.tp=function(){return this.rf.tp()}; g.E.WD=tw(44);g.E.zA8=function(){WG(this)||(this.logger.debug("application playback ready"),this.yK(5))}; g.E.rib=function(k){if(!WG(this)){this.logger.debug("playback ready");ts6(this);var p=k.getPlayerState();k.Nk()?this.pauseVideo():p.isOrWillBePlaying()&&this.playVideo()}}; g.E.canPlayType=function(k){return Dl(k)}; g.E.G=function(){return this.ih}; g.E.getVideoData=function(){return this.tp().getVideoData()}; g.E.Vt=tw(18);g.E.hj=function(){return this.iG().getVideoData()}; g.E.getVideoLoadedFraction=function(k){return(k=this.t5(k))?k.getVideoLoadedFraction():this.rf.T.getVideoLoadedFraction()}; g.E.Uy=function(){return this.template}; g.E.EQ=function(){return this.q2}; g.E.WN=function(){return this.Sz}; g.E.o5=function(k){var p=this.t5(1);p&&p.XX(k)}; g.E.JN=function(){var k=this.q2.JN();this.fp.publish("videoStatsPingCreated",k);return k}; g.E.getVolume=function(){return Math.round(this.fp.getVolume())}; g.E.isMuted=function(){return this.fp.isMuted()}; g.E.Y1=function(){if(this.iG()===this.tp()&&this.QF)return this.QF.postId}; g.E.rD0=function(){var k=this;this.D("use_rta_for_player")||(g.mq(this.ih)?g.xH(this.ih,g.eJ(this.getVideoData())).then(function(p){PO(Ql(),p);PA6(k.getVideoData(),k.ih,k.DM())}):PA6(this.getVideoData(),this.ih,this.DM()))}; g.E.V6=function(k){this.fp.publish("poTokenVideoBindingChange",k)}; g.E.kH=function(k){this.fp.publish("d6de4videobindingchange",k)}; g.E.o2=function(){this.NI&&this.NI.o2()}; g.E.oI=function(k){this.NI=k}; g.E.OY=function(k){if(k===1){this.Sz.tick("vr");var p=this.tp();p.g3();bme(this.Sz,p.getVideoData(),pj9(this));ki0(this.q2)}p=this.ih;(Op(p)&&p.Z||g.nl(p))&&(this.Ur()||this.fp.xW("onAdStateChange",k))}; g.E.setLoopVideo=function(k){var p=this.tp();p===this.iG()&&p.QV()!==k&&(p.setLoop(k),this.fp.zb("onLoopChange",k))}; g.E.getLoopVideo=function(){return this.tp().QV()}; g.E.setLoopRange=function(k){var p=!1;!!this.QF!==!!k?p=!0:this.QF&&k&&(p=this.QF.startTimeMs!==k.startTimeMs||this.QF.endTimeMs!==k.endTimeMs||this.QF.postId!==k.postId||this.QF.type!==k.type);if(p){(p=this.tp())&&xL(p.getVideoData())&&p.yT("slr",{et:(k==null?void 0:k.endTimeMs)||-1});p=this.iG();p.VM("applooprange");if(k){var t=new g.xf(k.startTimeMs,k.endTimeMs,{id:"looprange",namespace:"applooprange"});p.addCueRange(t)}else{this.hj().clipConfig=void 0;var J;((t=this.QF)==null?void 0:t.type)!== "repeatChapter"||isNaN(Number((J=this.QF)==null?void 0:J.loopCount))||(t={loopCount:String(this.QF.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.qv("repeatChapterLoopEvent",t))}this.QF=k;this.fp.zb("onLoopRangeChange",k||void 0);this.iG()===this.tp()&&(this.Uj(),p.Bi())}}; g.E.getLoopRange=function(){return this.QF}; g.E.Uj=function(){var k="",p=this.iG();this.QF?p!==this.tp()?k="pnea":RF6(this,p.getCurrentTime())&&(this.QF.loopCount=0,k="ilr"):k="nlr";var t=this.tp();if(t&&xL(t.getVideoData()))if(this.D("html5_gapless_log_loop_range_info")){var J,q;t.yT("slrre",{rej:k,ct:p.getCurrentTime(),lst:(J=this.QF)==null?void 0:J.startTimeMs,let:(q=this.QF)==null?void 0:q.endTimeMs})}else t.yT("slrre",{});k||hFi(this)}; g.E.setPlaybackRate=function(k,p){if(!isNaN(k)){k=Wdw(this,k);var t=this.iG();t.getPlaybackRate()!==k&&(t.setPlaybackRate(k),p&&!this.ih.C&&g.cz("yt-player-playback-rate",k),this.fp.xW("onPlaybackRateChange",k))}}; g.E.getCurrentTime=function(k,p,t){p=p===void 0?!0:p;if(this.getPresentingPlayerType()===3)return WO(this.q2).getCurrentTime();var J=k===2&&this.getVideoData().enableServerStitchedDai,q=g.hF(this.getVideoData());k=J||q?this.tp():this.t5(k);if(!k)return this.rf.T.getCurrentTime();if(q&&this.yF)return p=this.yF,k=k.getCurrentTime(),t?t=qA(p,t):(t=QR6(p,k),t=k-t/1E3),t;if(p){if(J&&this.v1&&(t=this.v1.P0/1E3,t!==0))return t;t=VZ(this,k);return iH(this,t.getCurrentTime(),t)}J&&this.v1?(t=this.v1,k=k.getCurrentTime(), t=(t=oVh(t,k*1E3))?k-t.start/1E3:k):t=k.getCurrentTime();return t}; g.E.jw=function(){var k=this.t5();if(!k)return this.rf.T.jw();k=VZ(this,k);return iH(this,k.jw(),k)}; g.E.getDuration=function(k,p){p=p===void 0?!0:p;var t=this.getVideoData(),J=k===2&&t.enableServerStitchedDai,q=g.hF(t);var F=J||q?this.tp():this.t5(k);if(!F)return this.rf.T.getDuration();if(t.hasProgressBarBoundaries()&&!J&&!q){var d,S=Number((d=t.progressBarStartPosition)==null?void 0:d.utcTimeMillis),U;t=Number((U=t.progressBarEndPosition)==null?void 0:U.utcTimeMillis);if(!isNaN(S)&&!isNaN(t))return(t-S)/1E3}if(q&&this.yF)return p=Pe6(this.yF,this.yF.ZC()),k===1&&p===0?F.getDuration():p;if(p)return F= mn(this,F),iH(this,F.getDuration(),F);J&&this.v1?(k=this.v1,F=F.getCurrentTime(),F=(F=qze(k,F*1E3))?F.durationMs/1E3:0):F=F.getDuration();return F}; g.E.Zl=function(k){var p=this.t5(k);return p?this.Ur(p)?(p=mn(this,p),p.Zl()-p.getCurrentTime()+this.getCurrentTime(k)):p.Zl():this.rf.T.Zl()}; g.E.AC=function(){return this.Ui}; g.E.addPlayerResponseForAssociation=function(k){this.yF&&this.yF.addPlayerResponseForAssociation(k)}; g.E.finishSegmentByCpn=function(k,p,t){return this.yF?this.yF.finishSegmentByCpn(k,p,t):[]}; g.E.A4=function(){this.template.A4();var k=this.fp;k.state.element=this.template.element;var p=k.state.element,t;for(t in k.state.T)k.state.T.hasOwnProperty(t)&&(p[t]=k.state.T[t]);(k=jt_(this.template.element))&&this.events.V(this.template,k,this.onFullscreenChange);this.events.V(window,"resize",this.bb0)}; g.E.getDebugText=function(k){var p=this.iG().pE(k),t=this.tp(),J=this.iG();if(t&&t!==J){t=t.pE(k);J=g.Z(Object.keys(t));for(var q=J.next();!q.done;q=J.next())q=q.value,p["ad"+q]=t[q];if(k){t=p;J={};if(q=eO(document,"movie_player"))J.bounds=q.getBoundingClientRect(),J["class"]=q.className;q={};var F=g.lh("video-ads");F?(EGi(F,q),q.html=F.outerHTML):q.missing=1;F={};var d=g.lh("videoAdUiSkipContainer"),S=g.lh("ytp-ad-skip-button-container"),U=g.lh("ytp-skip-ad-button"),f=d||S||U;f?(EGi(f,F),F.ima=d? 1:0,F.bulleit=S?1:0,F.component=U?1:0):F.missing=1;J=JSON.stringify({player:J,videoAds:q,skipButton:F});t.ad_skipBtnDbgInfo=J}}k&&this.mediaElement&&(p["0sz"]=""+(+r8(this.mediaElement.getSize())===0),p.op=this.mediaElement.eI("opacity"),t=this.mediaElement.G3().y+this.mediaElement.getSize().height,p.yof=""+(+t<=0),p.dis=this.mediaElement.eI("display"));k&&((k=(0,g.wJ)())&&(p.gpu=k),(k=this.ih.playerStyle)&&(p.ps=k),this.ih.IY&&(p.webview=1));p.debug_playbackQuality=this.fp.getPlaybackQuality(1); p.debug_date=(new Date).toString();p.origin=window.origin;p.timestamp=Date.now();delete p.uga;delete p.q;return JSON.stringify(p,null,2)}; g.E.getFeedbackProductData=function(){var k={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250225_01_RC00"},p=this.getPlayerStateObject().JD;p&&(k.player_error_code=p.errorCode,k.player_error_details=JSON.stringify(p.errorDetail));return k}; g.E.getPresentingPlayerType=function(k){if(this.appState===1)return 1;if(WG(this))return 3;var p;if(k&&((p=this.v1)==null?0:p.b0(this.getCurrentTime())))return 2;var t;return g.hF(this.getVideoData())&&((t=this.yF)==null?0:t.b0())?2:this.tp().getPlayerType()}; g.E.d5=function(){return g.hF(this.getVideoData())&&this.yF?this.yF.d5():!1}; g.E.getPlayerStateObject=function(k){return this.getPresentingPlayerType()===3?WO(this.q2).B1:this.t5(k).getPlayerState()}; g.E.getAppState=function(){return this.appState}; g.E.g_=function(k){switch(k.type){case "loadedmetadata":this.d_.start();k=g.Z(this.EO);for(var p=k.next();!p.done;p=k.next())p=p.value,xt6(this,p.id,p.Tpb,p.rt6,void 0,!1);this.EO=[];break;case "loadstart":this.Sz.LR("gv");break;case "progress":case "timeupdate":qi(k.target.p$())>=2&&this.Sz.LR("l2s");break;case "playing":g.l$&&this.d_.start();if(g.mq(this.ih))k=!1;else{var t=this.tp();p=g.LK(this.EQ());k=this.mediaElement.eI("display")==="none"||r8(this.mediaElement.getSize())===0;var J=Ti(this.template), q=t.getVideoData();t=g.Qj(this.ih);q=ku(q);p=!J||p||t||q||this.ih.Jp;k=k&&!p}k&&(k=this.tp(),k.Xv(),this.getVideoData().yn||(this.getVideoData().yn=1,this.Sq(),k.playVideo()))}}; g.E.onLoadProgress=function(k,p){this.fp.dS("onLoadProgress",p)}; g.E.iZh=function(){this.fp.publish("playbackstalledatstart")}; g.E.lV=function(k,p){this.fp.publish("sabrCaptionsDataLoaded",k,p)}; g.E.tVh=function(k){var p;(p=this.tp())==null||p.T2(k)}; g.E.eKh=function(k){var p;(p=this.tp())==null||p.L1(k)}; g.E.onVideoProgress=function(k,p){k=VZ(this,k.Ei);p=iH(this,k.getCurrentTime(),k);this.fp.xW("onVideoProgress",p);this.ih.St&&jdq(this,this.visibility.Z5())&&this.pauseVideo()}; g.E.onAutoplayBlocked=function(){this.fp.xW("onAutoplayBlocked");var k,p=(k=this.tp())==null?void 0:k.getVideoData();p&&(p.QH=!0);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.V0(this.ih)&&(k={autoplayBrowserPolicy:R5(),autoplayIntended:BP(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.qv("embedsAutoplayStatusChanged",k))}; g.E.C10=function(){this.fp.publish("progresssync")}; g.E.ib6=function(){this.fp.dS("onPlaybackPauseAtStart")}; g.E.aBS=function(k){if(this.getPresentingPlayerType()===1){g.Uy(k,1)&&!g.u(k.state,64)&&this.hj().isLivePlayback&&this.iG().isAtLiveHead()&&this.fp.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Uy(k,2)){if(this.QF&&this.QF.endTimeMs>=(this.getDuration()-1)*1E3){hFi(this);return}vvw(this)}if(g.u(k.state,128)){var p=k.state;this.cancelPlayback(5);p=p.JD;JSON.stringify({errorData:p,debugInfo:this.getDebugText(!0)});this.fp.xW("onError",uAS(p.errorCode));this.fp.dS("onDetailedError",{errorCode:p.errorCode, errorDetail:p.errorDetail,message:p.errorMessage,messageKey:p.SC,cpn:p.cpn});(0,g.V9)()-this.ih.fZ>6048E5&&this.fp.dS("onReloadRequired")}p={};if(k.state.isPlaying()&&!k.state.isBuffering()&&!RF("pbresume","ad_to_video")&&RF("_start","ad_to_video")){var t=this.getVideoData();p.clientPlaybackNonce=t.clientPlaybackNonce;t.videoId&&(p.videoId=t.videoId);g.IF(p,"ad_to_video");Gg("pbresume",void 0,"ad_to_video");ki0(this.q2)}this.fp.publish("applicationplayerstatechange",k)}}; g.E.H6=function(k){this.getPresentingPlayerType()!==3&&this.fp.publish("presentingplayerstatechange",k)}; g.E.o3=function(k){A3(this,qw(k.state));g.u(k.state,1024)&&this.fp.isMutedByMutedAutoplay()&&(n_(this,{muted:!1,volume:this.wp.volume},!1),wG(this,!1))}; g.E.Ev=function(k,p,t){k==="newdata"&&C8L(this);this.fp.publish("applicationvideodatachange",k,t)}; g.E.bv=function(k,p){this.fp.dS("onPlaybackAudioChange",this.fp.getAudioTrack().ws.name);this.fp.publish("internalaudioformatchange",this.fp.getAudioTrack().ws.id,p)}; g.E.e$=function(k){var p=this.tp().getVideoData();k===p&&this.fp.xW("onPlaybackQualityChange",k.Y.video.quality)}; g.E.Z$=function(){var k=this.rf.t5(2);if(k){var p=k.getVideoData();k=k.eC();var t;(t=this.tp())==null||t.yT("ssdai",{cleanaply:1,acpn:p==null?void 0:p.clientPlaybackNonce,avid:p.videoId,ccpn:k,sccpn:this.hj().clientPlaybackNonce===k?1:0,isDai:this.hj().enableServerStitchedDai?1:0});delete this.rf.N[2]}}; g.E.onVideoDataChange=function(k,p,t){this.hP(k,p.Ei,t)}; g.E.hP=function(k,p,t){this.logger.debug(function(){return"on video data change "+k+", player type "+p.getPlayerType()+", vid "+t.videoId}); this.ih.DB()&&p.yT("vdc",{type:k,vid:t.videoId||"",cpn:t.clientPlaybackNonce||""});p===this.iG()&&(this.ih.Iq=t.oauthToken);if(p===this.iG()){this.getVideoData().enableServerStitchedDai&&!this.v1?(this.iG().yT("sdai",{initSstm:1}),this.v1=this.D("html5_enable_ssdai_transition_with_only_enter_cuerange")?new CeM(this.fp,this.ih,this.iG(),this):new g.lW(this.fp,this.ih,this.iG(),this)):!this.getVideoData().enableServerStitchedDai&&this.v1&&(this.v1.dispose(),this.v1=null);var J,q;!g.hF(this.getVideoData())|| k!=="newdata"&&k!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((J=this.Ui.T)==null?void 0:(q=J.getVideoData())==null?void 0:q.clientPlaybackNonce)?!g.hF(this.getVideoData())&&this.yF&&(this.yF.dispose(),this.yF=null):(ubw(this.Ui),this.D("html5_ssap_cleanup_ad_player_on_new_data")&&this.Z$(),J=gI(this.Ui,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.Ui.enqueue(J,!0),Mf(this.Ui,0,this.getDuration(1)*1E3,[J]),lcT(this.Ui,this.getVideoData().clientPlaybackNonce,[J]),this.yF&&(this.yF.dispose(), this.yF=null),this.yF=new WVT(this.fp,this.Ui,this.iG()),this.rf.iG().nP(this.yF))}if(k==="newdata")this.logger.debug("new video data, destroy modules"),Pr(this.q2,2),this.fp.publish("videoplayerreset",p);else{if(!this.mediaElement)return;k==="dataloaded"&&(this.iG()===this.tp()?(GG(t.Cp,t.Xj),P80(this)):iiq(this));p.getPlayerType()===1&&(this.ih.RY&&d$j(this),this.getVideoData().isLivePlayback&&!this.ih.cJ&&this.Yi("html5.unsupportedlive",2,"DEVICE_FALLBACK"),t.isLoaded()&&((oeS(t)||this.getVideoData().tR)&& this.fp.publish("legacyadtrackingpingchange",this.getVideoData()),t.hasProgressBarBoundaries()&&MZu(this)));this.fp.publish("videodatachange",k,t,p.getPlayerType())}this.fp.xW("onVideoDataChange",{type:k,playertype:p.getPlayerType()});this.Uj();(J=t.cM)?this.yj.hF(J,t.clientPlaybackNonce):biM(this.yj)}; g.E.VB=function(){sM(this,null);this.fp.dS("onPlaylistUpdate")}; g.E.Nfp=function(k){delete this.f4[k.getId()];this.iG().removeCueRange(k);a:{k=this.getVideoData();var p,t,J,q,F,d,S,U,f,b,N=((p=k.RY)==null?void 0:(t=p.contents)==null?void 0:(J=t.singleColumnWatchNextResults)==null?void 0:(q=J.autoplay)==null?void 0:(F=q.autoplay)==null?void 0:F.sets)||((d=k.RY)==null?void 0:(S=d.contents)==null?void 0:(U=S.twoColumnWatchNextResults)==null?void 0:(f=U.autoplay)==null?void 0:(b=f.autoplay)==null?void 0:b.sets);if(N)for(p=g.Z(N),t=p.next();!t.done;t=p.next())if(t= t.value,q=J=void 0,t=t.autoplayVideo||((J=t.autoplayVideoRenderer)==null?void 0:(q=J.autoplayEndpointRenderer)==null?void 0:q.endpoint),J=g.e(t,g.ub),F=q=void 0,t!=null&&((q=J)==null?void 0:q.videoId)===k.videoId&&((F=J)==null?0:F.continuePlayback)){k=t;break a}k=null}(p=g.e(k,g.ub))&&this.fp.zb("onPlayVideo",{sessionData:{autonav:"1",itct:k==null?void 0:k.clickTrackingParams},videoId:p.videoId,watchEndpoint:p})}; g.E.yK=function(k){var p=this;k!==this.appState&&(this.logger.debug(function(){return"app state change "+p.appState+" -> "+k}),k===2&&this.getPresentingPlayerType()===1&&(A3(this,-1),A3(this,5)),this.appState=k,this.fp.publish("appstatechange",k))}; g.E.Yi=function(k,p,t,J,q){this.iG().W3(k,p,t,J,q)}; g.E.Bk=function(k,p){this.iG().handleError(new AD(k,p))}; g.E.isAtLiveHead=function(k,p){p=p===void 0?!1:p;var t=this.t5(k);if(!t)return this.rf.T.isAtLiveHead();k=mn(this,t);t=VZ(this,t);return k!==t?k.isAtLiveHead(iH(this,t.getCurrentTime(),t),!0):k.isAtLiveHead(void 0,p)}; g.E.ID=function(){var k=this.t5();return k?mn(this,k).ID():this.rf.T.ID()}; g.E.seekTo=function(k,p,t,J,q){p=p!==!1;if(J=this.t5(J))this.appState===2&&vG(this),this.Ur(J)?QZ(this)?this.v1.seekTo(k,{seekSource:q},p,t):this.Dx.seekTo(k,{seekSource:q},p,t):g.hF(this.getVideoData())&&this.yF?this.yF.seekTo(k,{VI:!p,EJ:t,XR:"application",seekSource:q}):J.seekTo(k,{VI:!p,EJ:t,XR:"application",seekSource:q})}; g.E.seekBy=function(k,p,t,J){this.seekTo(this.getCurrentTime()+k,p,t,J)}; g.E.Ip=function(){this.fp.xW("SEEK_COMPLETE")}; g.E.yw=function(){this.fp.zb("onAbnormalityDetected")}; g.E.onSnackbarMessage=function(k){this.fp.zb("onSnackbarMessage",k)}; g.E.kqh=function(k,p){k=k.Ei;var t=k.getVideoData();if(this.appState===1||this.appState===2)t.startSeconds=p;this.appState===2?g.u(k.getPlayerState(),512)||vG(this):this.fp.xW("SEEK_TO",p)}; g.E.onAirPlayActiveChange=function(){this.fp.publish("airplayactivechange");this.ih.D("html5_external_airplay_events")&&this.fp.dS("onAirPlayActiveChange",this.fp.QX())}; g.E.onAirPlayAvailabilityChange=function(){this.fp.publish("airplayavailabilitychange");this.ih.D("html5_external_airplay_events")&&this.fp.dS("onAirPlayAvailabilityChange",this.fp.Tc())}; g.E.showAirplayPicker=function(){var k;(k=this.tp())==null||k.E9()}; g.E.N9=function(){this.fp.publish("beginseeking")}; g.E.F2=function(){this.fp.publish("endseeking")}; g.E.getStoryboardFormat=function(k){return(k=this.t5(k))?mn(this,k).getStoryboardFormat():this.rf.T.getStoryboardFormat()}; g.E.Ee=function(k){return(k=this.t5(k))?mn(this,k).getVideoData().Ee():this.rf.T.Ee()}; g.E.Ur=function(k){k=k||this.tp();var p=!1;if(k){k=k.getVideoData();if(QZ(this))k=k===this.v1.playback.getVideoData();else a:if(p=this.Dx,k===p.T.getVideoData()&&p.Y.length)k=!0;else{p=g.Z(p.Y);for(var t=p.next();!t.done;t=p.next())if(k.GI===t.value.GI){k=!0;break a}k=!1}p=k}return p}; g.E.Kh=function(k,p,t,J,q,F,d){this.logger.debug(function(){return"Adding video to timeline id="+k.video_id+"\n lengthMs="+J+" enterTimeMs="+q}); var S="",U=QZ(this),f;(f=this.tp())==null||f.yT("appattl",{sstm:this.v1?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:U});S=U?J8i(this.v1,k,p,t,J,q,F,d):a7S(this.Dx,k,t,J,q,F);this.logger.debug(function(){return"Video added to timeline id="+k.video_id+" timelinePlaybackId="+S}); return S}; g.E.pu=function(k,p,t,J,q,F,d){if(QZ(this)){var S=J8i(this.v1,k,p,t,J,q,F,d);this.logger.debug(function(){return"Remaining video added to timeline id="+k.video_id+" timelinePlaybackId="+S})}return""}; g.E.bV=function(k){var p;(p=this.v1)==null||p.bV(k)}; g.E.nt=function(k,p){k=k===void 0?-1:k;p=p===void 0?Infinity:p;QZ(this)||xyi(this.Dx,k,p)}; g.E.wm=function(k,p,t){if(QZ(this)){var J=this.v1,q=J.aO.get(k);q?(t===void 0&&(t=q.LT),q.durationMs=p,q.LT=t):J.Y4("Invalid_timelinePlaybackId_"+k+"_specified")}else{J=this.Dx;q=null;for(var F=g.Z(J.Y),d=F.next();!d.done;d=F.next())if(d=d.value,d.GI===k){q=d;break}q?(t===void 0&&(t=q.LT),H3i(J,q,p,t)):Fw(J,"InvalidTimelinePlaybackId timelinePlaybackId="+k)}}; g.E.enqueueVideoByPlayerVars=function(k,p,t,J){t=t===void 0?Infinity:t;J=J===void 0?"":J;this.Ur();k=new g.Rj(this.ih,k);J&&(k.GI=J);gv0(this,k,p,t)}; g.E.queueNextVideo=function(k,p,t,J,q){t=t===void 0?NaN:t;t=this.preloadVideoByPlayerVars(k,p===void 0?1:p,t,J===void 0?"":J,q===void 0?"":q);k=this.tp();t&&k&&(p=t.Ei,this.D("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&k.getVideoData().B&&(t=this.BA,J=this.T6.Z,t.C!==p&&(t.Y=k,t.C=p,t.N=1,t.T=p.getVideoData(),t.X=J,t.T.isLoaded()?t.S():t.T.subscribe("dataloaded",t.S,t))):(p=AVL(k,p,this.T6.Z),p!=null?(k.yT("sgap",p),k.getVideoData().B&&k.M3(!1)):(k=t.getVideoData(),p=this.BA, p.T!==k&&(p.T=k,p.N=1,k.isLoaded()?p.Z():p.T.subscribe("dataloaded",p.Z,p)))))}; g.E.WU=function(k,p,t,J){var q=this;t=t===void 0?0:t;J=J===void 0?0:J;var F=this.tp();F&&mn(this,F).C9();Q9L(this.T6,k,p,t,J).then(function(){q.fp.dS("onQueuedVideoLoaded")},function(){})}; g.E.yN=function(){return this.T6.yN()}; g.E.sf=function(k){return this.T6.T===k.Ei}; g.E.clearQueue=function(k,p){k=k===void 0?!1:k;p=p===void 0?!1:p;this.logger.debug("Clearing queue");this.T6.clearQueue(k,p)}; g.E.loadVideoByPlayerVars=function(k,p,t,J,q,F){p=p===void 0?1:p;var d=this.iG();if(p===2&&this.hj().enableServerStitchedDai&&d&&!d.iY())return d.yT("lvonss",{vid:(k==null?void 0:k.videoId)||"",ptype:p}),!1;var S=!1;d=new g.Rj(this.ih,k);d.reloadPlaybackParams=F;g.u$(this.ih)&&!d.VA&&Cg(this.Sz);var U;F=this.Sz;var f=(U=d.IY)!=null?U:"";F.timerName=f;this.Sz.qR("pl_i");this.D("web_player_early_cpn")&&d.clientPlaybackNonce&&this.Sz.infoGel({clientPlaybackNonce:d.clientPlaybackNonce});if(nej(d).supportsVp9Encoding=== !1){var b;(b=this.tp())==null||b.yT("noVp9",{})}if(this.G().supportsGaplessShorts()){U=Gu9(this.T6,d,p);if(U==null){A3(this,-1);k=this.T6;k.app.G().D("html5_gapless_new_slr")?zFw(k.app,"gaplessshortslooprange"):k.app.setLoopRange(null);k.app.getVideoData().Yk=!0;var N;(N=k.T)==null||N.Bw();var y;(y=k.T)!=null&&Mb(y.Tb.ZB());t={XR:"gapless_to_next_video",seekSource:60};var Y;(Y=k.app.tp())==null||Y.seekTo(PMi(k),t);if(!k.app.getPlayerStateObject(p).isPlaying()){var T;(T=k.app.tp())==null||T.playVideo(!0)}k.S(); return!0}Y=this.D("html5_shorts_gapless_preload_fallback");T=this.T6.T;Y&&T&&!T.Tb.MO()&&(N=T.getVideoData(),N=this.ih.D("html5_autonav_autoplay_in_preload_key")?Gi(this,p,N):ID(this,p,N.videoId,N.GI),this.rf.Y.set(N,T,3600));this.T6.clearQueue(Y);var A;(A=this.tp())==null||A.yT("sgap",{f:U})}if(q){for(;d.po.length&&d.po[0].isExpired();)d.po.shift();S=d.po.length-1;S=S>0&&q.Y(d.po[S])&&q.Y(d.po[S-1]);d.po.push(q)}t||(k&&TIe(k)?(ei(this.ih)&&!this.ly&&(k.fetch=0),sM(this,k)):this.playlist&&sM(this, null),k&&(this.ly=xX(!1,k.external_list)));this.fp.publish("loadvideo");p=this.KR(d,p,J);S&&this.Yi("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+d.po.join()).replace(/[;:,]/g,"_"));return p}; g.E.preloadVideoByPlayerVars=function(k,p,t,J,q){p=p===void 0?1:p;t=t===void 0?NaN:t;J=J===void 0?"":J;q=q===void 0?"":q;var F="";if(this.ih.D("html5_autonav_autoplay_in_preload_key"))F=lgL(this,p,k,q);else{var d=ou(k);F=ID(this,p,d,q)}if(this.rf.Y.get(F))return this.logger.debug(function(){return"already preloaded "+F}),null; k=new g.Rj(this.ih,k);q&&(k.GI=q);return uii(this,k,p,t,J)}; g.E.setMinimized=function(k){this.visibility.setMinimized(k);(k=J3w(this.q2))&&(this.isMinimized()?k.load():k.unload());this.fp.publish("minimized")}; g.E.setInline=function(k){this.visibility.setInline(k)}; g.E.setInlinePreview=function(k){this.visibility.setInline(k)}; g.E.ke=function(k){Oiq(this,k)||this.visibility.ke(k)}; g.E.setSqueezeback=function(k){this.visibility.setSqueezeback(k)}; g.E.PB=function(){var k,p=(k=this.mediaElement)==null?void 0:k.KE();p&&(this.ih.xY&&document.exitFullscreen().catch(function(){}),yB(p).catch(function(t){g.wt(t)}))}; g.E.VVG=function(){this.mediaElement.KE();this.mediaElement.KE().webkitPresentationMode==="picture-in-picture"?this.ke(!0):this.ke(!1)}; g.E.togglePictureInPicture=function(){var k=this.tp();k&&k.togglePictureInPicture()}; g.E.KR=function(k,p,t){p=p===void 0?1:p;this.logger.debug(function(){return"start load video, id "+k.videoId+", type "+p}); RF("_start",this.Sz.timerName)||g.j5(vF)(void 0,this.Sz.timerName);var J=!1,q=XNw(this,p,k,!1);q?(J=!0,k.dispose()):(q=wNh(this,p,k,t).Ei,(this.D("html5_onesie")||this.D("html5_load_before_stop"))&&q.D$()&&q.BO(),this.d_.stop(),p===1&&p!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,p),this.zR(q));q===this.iG()&&(this.ih.Iq=k.oauthToken);if(!q.D$())return!1;if(q===this.iG())return this.yK(1),t=vG(this),J&&this.D("html5_player_preload_ad_fix")&&q.getPlayerType()===1&& q.wR()&&this.hP("dataloaded",q,q.getVideoData()),t;q.jM();return!0}; g.E.cueVideoByPlayerVars=function(k,p){var t=this;p=p===void 0?1:p;var J=this.iG();if(this.hj().enableServerStitchedDai&&J&&!J.iY()&&k&&Object.keys(k).length>0)J.yT("qvonss",{vid:(k==null?void 0:k.videoId)||"",ptype:p});else if(k&&TIe(k))if(this.CX=!0,sM(this,k),(k=g.AR(this.playlist))&&k.IG())RD(this,k,p);else this.playlist.onReady(function(){L_(t)}); else{p||(p=this.getPresentingPlayerType());p===1&&this.VB();J=new g.Rj(this.ih,k);var q=g.V0(this.ih)&&!this.ih.Y8&&p===1&&!J.isAd()&&!J.UQ;this.fp.publish("cuevideo");q?(this.tp().getVideoData().loading=!0,W0u(J,k?k:{}).then(function(F){RD(t,F,p)}),J.dispose()):RD(this,J,p)}}; g.E.hf=function(k,p,t,J,q,F,d){if(!k&&!t)throw Error("Playback source is invalid");if(DZ(this.ih)||g.Ck(this.ih))return p=p||{},p.lact=VP(),p.vis=this.fp.getVisibilityState(),this.fp.zb("onPlayVideo",{videoId:k,watchEndpoint:F,sessionData:p,listId:t}),!1;yLu(this.Sz);this.Sz.reset();k={video_id:k};J&&(k.autoplay="1");J&&(k.autonav="1");F&&(k.player_params=F.playerParams);d&&(k.oauth_token=d);t?(k.list=t,this.loadPlaylist(k)):this.loadVideoByPlayerVars(k,1);return!0}; g.E.cuePlaylist=function(k,p,t,J){this.CX=!0;Kdh(this,k,p,t,J)}; g.E.loadPlaylist=function(k,p,t,J){this.CX=!1;Kdh(this,k,p,t,J)}; g.E.jI=function(){return this.fp.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Vr())}; g.E.VZ=tw(13); g.E.nextVideo=function(k,p){var t=g.lb(this.iG().getVideoData());g.nK(this.fp)&&t?this.hf(t.videoId,p?t.ph:t.sessionData,t.playlistId,p,void 0,t.TW||void 0):this.ly?this.fp.dS("onPlaylistNext"):this.getPresentingPlayerType()===3?WO(this.q2).nextVideo():!this.playlist||ei(this.ih)&&!this.fp.isFullscreen()||(this.playlist.Vr(k)&&CWw(this.playlist,rL0(this.playlist)),this.playlist.loaded?(k=p&&this.ih.D("html5_player_autonav_logging"),p&&this.fp.publish("playlistautonextvideo"),this.KR(g.AR(this.playlist,void 0, p,k),1)):this.CX=!1)}; g.E.previousVideo=function(k){this.ly?this.fp.dS("onPlaylistPrevious"):this.getPresentingPlayerType()===3?WO(this.q2).RH():!this.playlist||ei(this.ih)&&!this.fp.isFullscreen()||(this.playlist.xo(k)&&CWw(this.playlist,Zme(this.playlist)),this.playlist.loaded?this.KR(g.AR(this.playlist),1):this.CX=!1)}; g.E.playVideoAt=function(k){this.ly?this.fp.dS("onPlaylistIndex",k):this.playlist&&(this.playlist.loaded?this.KR(g.AR(this.playlist,k),1):this.CX=!1,CWw(this.playlist,k))}; g.E.getPlaylist=function(){return this.playlist}; g.E.fu=tw(23);g.E.GAS=function(k){this.fp.xW("onCueRangeEnter",k.getId())}; g.E.HET=function(k){this.fp.xW("onCueRangeExit",k.getId())}; g.E.MN=function(){var k=g.iU(this.EQ());k&&k.MN()}; g.E.Fs=function(k,p,t){var J=this.t5(p);if(J){var q=this.hj();if(g.hF(q)){if(this.yF)if(this.D("html5_ssap_enable_cpn_triggered_media_end")&&J.getPlayerType()===2&&this.yF.b0()&&(J=this.iG()),p===1)for(var F=vI(this.yF,q.clientPlaybackNonce),d=g.Z(k),S=d.next();!S.done;S=d.next())S=S.value,S.start+=F,S.end+=F,S.aD=F,S.N=q.clientPlaybackNonce;else if(this.D("html5_ssap_enable_cpn_triggered_media_end")&&p===2)for(this.getPresentingPlayerType(),q=g.Z(k),F=q.next();!F.done;F=q.next())F.value.N=this.yF.ZC(); q=g.Z(k);for(F=q.next();!F.done;F=q.next())d=void 0,F.value.playerType=(d=p)!=null?d:1}J.Fs(k,t);p&&this.getPresentingPlayerType()!==p||BG(this,"cuerangesadded",k)}}; g.E.O0=function(k,p){var t=this.t5(p);t&&(t.O0(k),p&&this.getPresentingPlayerType()!==p||BG(this,"cuerangesremoved",k))}; g.E.rZ=function(k){var p=this.tp()||this.iG(),t=this.getPresentingPlayerType();return this.D("html5_ssap_enable_cpn_triggered_media_end")?p.rZ(t,k):p.rZ(t)}; g.E.Bsp=function(){function k(){var J=p.screenLayer||(p.isMinimized()?3:0),q=g.mP(J);if(q&&q!=="UNDEFINED_CSN"){var F=p.ih.D("web_player_attach_player_response_ve"),d=p.ih.D("web_playback_associated_ve");J={cpn:p.getVideoData().clientPlaybackNonce,csn:q};p.getVideoData().j6&&(F||d)&&(F=g.Ze(p.getVideoData().j6),g.HB(q,F),d&&(J.playbackVe=F.getAsJson()));p.getVideoData().queueInfo&&(J.queueInfo=p.getVideoData().queueInfo);q={};p.D("web_playback_associated_log_ctt")&&p.getVideoData().S&&(q.cttAuthInfo= {token:p.getVideoData().S,videoId:p.getVideoData().videoId});g.qv("playbackAssociated",J,q)}else g.wt(new g.hm("CSN Missing or undefined during playback association"))} var p=this,t=this.tp();this.getPresentingPlayerType();bme(this.Sz,t.getVideoData(),pj9(this));Dm(this)&&this.ih.C&&wS(this.hj())==="embedded"&&this.mw&&Math.random()<.01&&g.qv("autoplayTriggered",{intentional:this.intentionalPlayback});this.mw=!1;ki0(this.q2);this.D("web_player_defer_ad")&&Qdj(this);this.fp.dS("onPlaybackStartExternal");(this.ih.D("mweb_client_log_screen_associated"),Ir(this.ih))||k();t={};this.getVideoData().S&&(t.cttAuthInfo={token:this.getVideoData().S,videoId:this.getVideoData().videoId}); t.sampleRate=20;Xu("player_att",t);if(this.getVideoData().botguardData||this.D("fetch_att_independently"))g.Mu(this.ih)||gi(this.ih)==="MWEB"?g.lk(g.OA(),function(){cG(p)}):cG(this); this.Uj();eFM(this);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.V0(this.ih)&&(t={autoplayBrowserPolicy:R5(),autoplayIntended:BP(this.getVideoData()),autoplayStatus:aJ0(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.qv("embedsAutoplayStatusChanged",t))}; g.E.aB=function(){this.fp.publish("internalAbandon");PG(this)}; g.E.onApiChange=function(){var k=this.tp();this.ih.Z&&k?this.fp.xW("onApiChange",k.getPlayerType()):this.fp.xW("onApiChange")}; g.E.vxh=function(){var k=this.mediaElement;k={volume:g.Ek(Math.floor(k.getVolume()*100),0,100),muted:k.yp()};k.muted||wG(this,!1);this.wp=g.ih(k);this.fp.xW("onVolumeChange",k)}; g.E.mutedAutoplay=function(k){var p=this.getVideoData().videoId;isNaN(this.aE)&&(this.aE=this.getVideoData().startSeconds);if((k==null?0:k.videoId)||p)this.loadVideoByPlayerVars({video_id:(k==null?0:k.videoId)?k==null?void 0:k.videoId:p,playmuted:!0,start:this.aE,muted_autoplay_duration_mode:k==null?void 0:k.durationMode}),this.fp.dS("onMutedAutoplayStarts")}; g.E.onFullscreenChange=function(){var k=JQu(this);this.ye(k?1:0);q4T(this,!!k)}; g.E.ye=function(k){var p=!!k,t=!!this.xr()!==p;this.visibility.ye(k);this.template.ye(p);this.D("html5_media_fullscreen")&&!p&&this.mediaElement&&JQu(this)===this.mediaElement.KE()&&this.mediaElement.Tf();this.template.resize();t&&this.Sz.tick("fsc");t&&(this.fp.publish("fullscreentoggled",p),k=this.hj(),p={fullscreen:p,videoId:k.E6||k.videoId,time:this.getCurrentTime()},this.fp.getPlaylistId()&&(p.listId=this.fp.getPlaylistId()),this.fp.xW("onFullscreenChange",p))}; g.E.fA=function(){return this.visibility.fA()}; g.E.isFullscreen=function(){return this.visibility.isFullscreen()}; g.E.xr=function(){return this.visibility.xr()}; g.E.bb0=function(){if(this.tp()){var k=this.xr();k!==0&&k!==1||this.ye(JQu(this)?1:0);k=window.screen.width*window.screen.height;var p=window.outerHeight*window.outerWidth;this.ih.mu?(this.fd=Math.max(this.fd,k,p),k=p/this.fd<.33,this.visibility.ke(k),this.ih.q_&&Oiq(this,k)):this.mediaElement&&jdq(this,p/k<.33)&&this.mediaElement.Tf()}}; g.E.nxO=function(k){this.getPresentingPlayerType()!==3&&this.fp.publish("liveviewshift",k)}; g.E.playVideo=function(k,p){this.logger.debug(function(){return"play video, player type "+k}); var t=this.t5(k);t?this.appState===2?(g.u$(this.ih)&&Cg(this.Sz),vG(this)):g.u(t.getPlayerState(),2)?(p=36,this.getVideoData().n7()&&(p=37),this.seekTo(0,void 0,void 0,void 0,p)):t.playVideo(!1,p):this.rf.T.playVideo(!1,p)}; g.E.pauseVideo=function(k,p){(k=this.t5(k))?k.pauseVideo(p):this.rf.T.pauseVideo(p)}; g.E.stopVideo=function(k){k=k===void 0?!1:k;this.logger.debug(function(){return"stop video"}); var p=this.iG().getVideoData(),t=new g.Rj(this.ih,{video_id:p.E6||p.videoId,oauth_token:p.oauthToken});t.L=g.ih(p.L);var J;!k||(J=this.webPlayerContextConfig)!=null&&J.disableStaleness||(t.Ro=!0);this.cancelPlayback(6);RD(this,t,1)}; g.E.cancelPlayback=function(k,p){var t=this;this.logger.debug(function(){return"start cancel playback, type "+p}); var J=this.t5(p);J?p===2&&J.getPlayerType()===1&&(gS(this.hj())||g.hF(this.getVideoData()))?J.yT("canclpb",{r:"no_adpb_ssdai"}):(this.ih.DB()&&J.yT("canclpb",{r:k}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+t.appState}):(J===this.tp()&&(this.logger.debug("cancel playback, destroy modules"),Pr(this.q2,k)),p===1&&(J.stopVideo(),PG(this)),J.Td(void 0,k!==6),BG(this,"cuerangesremoved",J.XS()),J.Tb.yA.reset(),this.T6&&J.isGapless()&& (J.vj(!0),J.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.E.sendVideoStatsEngageEvent=function(k,p,t){(p=this.t5(p))&&Yl0(this.ih,k)?p.sendVideoStatsEngageEvent(k,t):t&&t()}; g.E.VX=function(k){var p=this.t5();return p&&Yl0(this.ih,k)?p.VX(k):null}; g.E.updatePlaylist=function(){!ei(this.ih)&&g.V0(this.ih)&&GV_(this);this.fp.dS("onPlaylistUpdate")}; g.E.setSizeStyle=function(k,p){this.QL=k;this.D("web_log_theater_mode_visibility")?this.Q6(p):this.PC=p;this.fp.publish("sizestylechange",k,p);this.template.resize()}; g.E.Q6=function(k){this.visibility.Q6(k)}; g.E.XU=function(){return this.D("web_log_theater_mode_visibility")?this.visibility.XU():this.PC}; g.E.isMinimized=function(){return this.visibility.isMinimized()}; g.E.isInline=function(){return this.visibility.isInline()}; g.E.Z5=function(){return this.visibility.Z5()}; g.E.G1=function(){return this.visibility.G1()}; g.E.pV=function(){return this.visibility.pV()}; g.E.Cd=function(){return this.QL}; g.E.getAdState=function(){if(this.getPresentingPlayerType()===3)return WO(this.q2).getAdState();if(!this.Ur()){var k=GH(this.EQ());if(k)return k.getAdState()}return-1}; g.E.RKy=function(k){var p=this.template.getVideoContentRect();$c(this.Cv,p)||(this.Cv=p,(p=this.tp())&&p.T3(),(p=this.iG())&&p===this.tp()&&p.T3(),this.xr()===1&&this.sY&&q4T(this,!0));this.My&&g.TJ(this.My,k)||(this.fp.publish("appresize",k),this.My=k)}; g.E.qA=function(){return this.fp.qA()}; g.E.alh=function(){this.getPresentingPlayerType()===2&&this.Dx.isManifestless()?KVi(this.Dx):(this.v1&&(FVM(this.v1),PG(this)),Fpe(this,"signature"))}; g.E.MVG=function(k){k&&Fpe(this,"reloadPlayerEvent",void 0,k)}; g.E.Sq=function(k){this.vj(k);C_(this)}; g.E.zch=function(k){if(k.errorCode==="manifest.net.badstatus"){var p=this.ih.experiments.Gb("html5_use_network_error_code_enums")?401:"401";k.details.rc===p&&this.fp.zb("onPlayerRequestAuthFailed")}}; g.E.Bm=function(k){this.fp.publish("heartbeatparams",k)}; g.E.w_=function(k){this.fp.zb("onAutonavChangeRequest",k!==1)}; g.E.QM=function(){return this.mediaElement}; g.E.setBlackout=function(k){if(this.ih.Jp!==k){this.ih.Jp=k;var p=this.tp();p&&(p.Bi(),this.ih.RY&&d$j(this),p.iO(k))}}; g.E.axT=function(){var k=this.tp();if(k){var p=!this.fp.Yc();k.QW(p)}}; g.E.onLoadedMetadata=function(){this.fp.dS("onLoadedMetadata")}; g.E.onDrmOutputRestricted=function(){this.fp.dS("onDrmOutputRestricted")}; g.E.C3=function(){this.intentionalPlayback=!0}; g.E.Ap=function(){this.q2.dispose();this.TF.dispose();this.Dx.dispose();this.v1&&this.v1.dispose();this.Ui.removeAll();this.Ui.dispose();this.yF&&this.yF.dispose();EO(this.iG());this.vj();this.rf.dispose();g.S9(this.playlist);g.R.prototype.Ap.call(this)}; g.E.D=function(k){return this.ih.D(k)}; g.E.setScreenLayer=function(k){this.screenLayer=k}; g.E.getInternalApi=function(){return this.fp.getInternalApi()}; g.E.createSubtitlesModuleIfNeeded=function(){return this.q2.createSubtitlesModuleIfNeeded()}; g.E.isOrchestrationLeader=function(){var k=XX(this.q2);return k?k.isOrchestrationLeader():!1}; g.E.getVideoUrl=function(k,p,t,J,q){if(this.QF&&this.QF.postId)return k=this.ih.getVideoUrl(k),k=gv(k,"v"),k.replace("/watch","/clip/"+this.QF.postId);var F=this.fp.isEmbedsShortsMode()||this.ih.j6==="shortspage",d=g.xu(this.getVideoData());return this.ih.getVideoUrl(k,p,t,J,q,F,d)}; g.E.TZ=function(){return this.T6.TZ()}; g.E.Uv=function(k,p,t){this.fp.publish("spsumpreject",k,p,t)}; g.E.vI=function(){try{for(var k=g.Z(Object.values(this.rf.N)),p=k.next();!p.done;p=k.next()){var t=p.value;t.Tb.MO()||t.vI()}if(this.D("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var J=g.Z(tZ6(this.rf.Y)),q=J.next();!q.done;q=J.next()){var F=q.value;F.Tb.MO()||F.vI()}this.iG().vI()}catch(d){g.wt(d)}}; g.E.W_=function(){if(this.v1){var k=(0,g.V9)();return this.v1.W_(k)}return!1}; g.E.G_=function(k){var p=this.iG();k&&(p=S4i(this,k));if(p){var t=p.getVideoData();k=new Map;t=g.Z(t.sabrContextUpdates);for(var J=t.next();!J.done;J=t.next()){var q=g.Z(J.value);J=q.next().value;q=q.next().value;var F=void 0;q.scope===4&&((F=p)==null?0:F.A$(J))&&k.set(J,q)}return k}this.iG().yT("scuget",{ncpf:"1",ccpn:k})}; var D3={};var cHa={jn:[{oW:/Unable to load player module/,weight:20},{oW:/Failed to fetch/,weight:500},{oW:/XHR API fetch failed/,weight:10},{oW:/JSON parsing failed after XHR fetch/,weight:10},{oW:/Retrying OnePlatform request/,weight:10},{oW:/CSN Missing or undefined during playback association/,weight:100},{oW:/Non-recoverable error. Do not retry./,weight:0},{oW:/Internal Error. Retry with an exponential backoff./,weight:0},{oW:/API disabled by application./,weight:0}],Wb:[{callback:U$M,weight:500}]};var Wpq=/[&\?]action_proxy=1/,Vsi=/[&\?]token=([\w-]*)/,D$T=/[&\?]video_id=([\w-]*)/,sJe=/[&\?]index=([\d-]*)/,Lpi=/[&\?]m_pos_ms=([\d-]*)/,cQe=/[&\?]vvt=([\w-]*)/,yQu="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),vGM="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),rQM={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"},ZMi={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},AQw={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};h3.prototype.Et=function(k){this.player.WN().tick(k)}; h3.prototype.fetch=function(k,p){var t=this;if(!k.match(/\[BISCOTTI_ID\]/g))return this.Y(k,p);var J=this.T===1;J&&this.Et("a_bid_s");var q=bMT();if(q!==null)return J&&this.Et("a_bid_f"),this.Y(k,p,q);q=NaL();J&&C9(q,function(){t.Et("a_bid_f")}); return q.then(function(F){return t.Y(k,p,F)})}; h3.prototype.Y=function(k,p,t){var J=this,q=p===void 0?{}:p;p=q.S0;var F=q.Ai;var d=q.cueProcessedMs;t=t===void 0?"":t;var S=this.player.getVideoData(1);q=this.player.G().eb;var U=0;if(d&&F&&!p){var f=F.end-F.start;f>0&&(U=Math.floor(f/1E3))}U=p?p.NR:U;var b={AD_BLOCK:this.T++,AD_BREAK_LENGTH:U,AUTONAV_STATE:eB(this.player.G()),CA_TYPE:"image",CPN:S.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.ID()*1E3,LACT:VP(),LIVE_INDEX:p?this.N++:1,LIVE_TARGETING_CONTEXT:p&&p.context?p.context:"",MIDROLL_POS:F? Math.round(F.start/1E3):0,MIDROLL_POS_MS:F?Math.round(F.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Uy().At().height,P_W:this.player.Uy().At().width,YT_REMOTE:q?q.join(","):""},N=dh($X);Object.keys(N).forEach(function(Y){N[Y]!=null&&(b[Y.toUpperCase()]=N[Y].toString())}); t!==""&&(b.BISCOTTI_ID=t);t={};Fd(k)&&(t.sts="20145",(p=this.player.G().forcedExperiments)&&(t.forced_experiments=p));var y=Je(g.c8(k,b),t);return y.split("?").length!==2?rv(Error("Invalid AdBreakInfo URL")):g.xH(this.player.G(),S==null?void 0:S.oauthToken).then(function(Y){if(Y&&q8()){var T=Ql();PO(T,Y)}Y=J.player.DM(T);T=nGj(J,y,b,S.isMdxPlayback,d);return g.MT(Y,T,"/youtubei/v1/player/ad_break").then(function(A){return A})})}; h3.prototype.reset=function(){this.N=this.T=1};g.r(wj6,h3); wj6.prototype.Y=function(k,p,t){p=p===void 0?{}:p;var J=p.S0;var q=p.Ai;var F=p.cueProcessedMs;t=t===void 0?"":t;p=this.T;this.T++;var d=this.player.G().D("h5_disable_macro_substitution_in_get_ad_break")?k:iMq(this,k,{S0:J,Ai:q,cueProcessedMs:F},t,p);if(d.split("?").length!==2)return Math.random()<.1&&g.wt(Error("Invalid AdBreakInfo URL")),rv(Error("Invalid AdBreakInfo URL"));var S=this.player.getVideoData(1).isMdxPlayback,U=t;t=Vsi.exec(d);t=t!=null&&t.length>=2?t[1]:"";k=Wpq.test(d);var f=D$T.exec(d); f=f!=null&&f.length>=2?f[1]:"";var b=sJe.exec(d);b=b!=null&&b.length>=2&&!Number.isNaN(Number(b[1]))?Number(b[1]):1;var N=Lpi.exec(d);N=N!=null&&N.length>=2?N[1]:"0";var y=Ps(this.player.G().NA),Y=g.uS(this.player.getVideoData(1).j6,!0);Taq(this,Y,d,U===""?"":U,this.player.G(),this.player.getVideoData(1));U={splay:!1,lactMilliseconds:String(VP()),playerHeightPixels:Math.trunc(this.player.Uy().At().height),playerWidthPixels:Math.trunc(this.player.Uy().At().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20145,autonavState:eB(this.player.G())};if(S){S={};var T=this.player.G().eb;CI9(S,T?T.join(","):"")&&(U.mdxContext=S)}if(S=vGM.includes(y)?void 0:g.QI("PREF")){T=S.split(RegExp("[:&]"));for(var A=0,V=T.length;A<V;A++){var D=T[A].split("=");if((D[0].toUpperCase()==="SML"||D[0].toUpperCase()==="GSML")&&D.length>1&&D[1].toUpperCase()==="TRUE"){Y.user.lockedSafetyMode=!0;break}}U.autoCaptionsDefaultOn=m$j(S)}d=cQe.exec(d);(d=d!=null&&d.length>=2?d[1]:"")&&f&&(Y.user.credentialTransferTokens= [{token:d,scope:"VIDEO"}]);d={contentPlaybackContext:U};U=this.player.getVideoData(1).getGetAdBreakContext();S=this.player.getVideoData(1).clientPlaybackNonce;T=F!==void 0?Math.round(F).toString():void 0;A=(J==null?0:J.context)?J.context:void 0;V=0;F&&q&&!J&&(q=q.end-q.start,q>0&&(V=Math.floor(q/1E3)));J=(J=Math.trunc((J?J.NR:V)*1E3))?String(J):void 0;q=this.player.ID()*1E3;q=Number.isNaN(q)?0:Math.trunc(q);p={adBlock:p,params:t,breakIndex:b,breakPositionMs:N,clientPlaybackNonce:S,topLevelDomain:y, isProxyAdTagRequest:k,context:Y,overridePlaybackContext:d,cueProcessedMs:T,videoId:f?f:void 0,liveTargetingParams:A,breakLengthMs:J,driftFromHeadMs:q?String(q):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:U?U:void 0};return QJ0(this,p)};var nBL={AnT:"replaceUrlMacros",l6Y:"onAboutThisAdPopupClosed",xBG:"executeCommand"};PIi.prototype.dP=function(){return"adPingingEndpoint"}; PIi.prototype.BY=function(k,p,t){NzT(this.mS.get(),k,p,t)};GaM.prototype.dP=function(){return"changeEngagementPanelVisibilityAction"}; GaM.prototype.BY=function(k){this.j.zb("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:k})};Ipi.prototype.dP=function(){return"loggingUrls"}; Ipi.prototype.BY=function(k,p,t){k=g.Z(k);for(var J=k.next();!J.done;J=k.next())J=J.value,NzT(this.mS.get(),J.baseUrl,p,t,J.attributionSrcMode)};g.r(RAj,g.R);g.r(MA,g.R);g.E=MA.prototype;g.E.addListener=function(k){this.listeners.push(k)}; g.E.removeListener=function(k){this.listeners=this.listeners.filter(function(p){return p!==k})}; g.E.hM=function(k,p,t,J,q,F,d,S){if(k==="")d3("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(k!==this.T||t){this.T=k;this.FG.get().hM(k,p,t,J,q,F,d,S);this.XG.get().hM(k,p,t,J,q,F,d,S);var U;(U=this.H1)==null||U.get().hM(k,p,t,J,q,F,d,S);this.Y.hM(k,p,t,J,q,F,d,S);U=g.Z(this.listeners);for(var f=U.next();!f.done;f=U.next())f.value.hM(k,p,t,J,q,F,d,S)}else d3("Duplicate content video loaded signal")}; g.E.aB=function(){this.T&&this.Lo(this.T)}; g.E.Lo=function(k){this.T=void 0;for(var p=g.Z(this.listeners),t=p.next();!t.done;t=p.next())t.value.Lo(k)};gG.prototype.Jz=function(k,p,t,J,q){Ba_(this);this.X=!p&&t===0;var F=this.j.getVideoData(1),d=this.j.getVideoData(2);F&&(this.contentCpn=F.clientPlaybackNonce,this.videoId=F.videoId,this.T=F.S);d&&(this.adCpn=d.clientPlaybackNonce,this.adVideoId=d.videoId,this.adFormat=d.adFormat);this.C=k;J<=0?(Ba_(this),this.X=!p&&t===0):(this.actionType=this.X?p?"unknown_type":"video_to_ad":p?"ad_to_video":"ad_to_ad",this.videoStreamType=q?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.N=!0,RF("_start",this.actionType)&&hA_(this)))}; gG.prototype.reset=function(){return new gG(this.j)};g.r(uH,g.R);uH.prototype.addCueRange=function(k,p,t,J,q,F,d){F=F===void 0?3:F;d=d===void 0?1:d;this.T.has(k)?d3("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:k}):(k=new apq(k,p,t,J,F),this.T.set(k.id,{Ai:k,listener:q,WJ:d}),this.j.Lb([k],d))}; uH.prototype.removeCueRange=function(k){var p=this.T.get(k);p?(this.j.Bl([p.Ai],p.WJ),this.T.delete(p.Ai.id)):d3("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:k})}; uH.prototype.onCueRangeEnter=function(k){if(this.T.has(k.id))this.T.get(k.id).listener.onCueRangeEnter(k.id)}; uH.prototype.onCueRangeExit=function(k){if(this.T.has(k.id))this.T.get(k.id).listener.onCueRangeExit(k.id)}; g.r(apq,g.xf);lH.prototype.OY=function(k){this.j.OY(k)}; lH.prototype.Dt=function(k){var p=g.nS.apply(1,arguments);k==="onAdStart"||k==="onAdEnd"?this.j.xW.apply(this.j,[k].concat(g.m(p))):this.j.zb.apply(this.j,[k].concat(g.m(p)))};jB.prototype.jy=function(k){return k&&OM(this)};var x$9=null;g.r(HMS,g.o$);HMS.prototype.UG=function(k){return this.T.hasOwnProperty(k)?this.T[k].UG():{}}; g.eM("ytads.bulleit.getVideoMetadata",function(k){return K_().UG(k)}); g.eM("ytads.bulleit.triggerExternalActivityEvent",function(k,p,t){var J=K_();t=Kpw(t);t!==null&&J.publish(t,{queryId:k,viewabilityString:p})});g.E=HG.prototype;g.E.U7=function(k,p){if(!this.T.has(k))return{};if(p==="seek"){p=!1;p=p===void 0?!1:p;var t=v0(A0).jR(k,{});t?Af(t):p&&(k=v0(A0).XV(null,ut(),!1,k),k.nU=3,p0L([k]));return{}}p=p_T(p);if(p===null)return{};var J=this.j.vL();if(!J)return{};var q=this.j.getPresentingPlayerType(!0);if((t=this.j.getVideoData(q))==null||!t.isAd())return{};t={opt_adElement:J,opt_fullscreen:this.FG.get().isFullscreen()};return pCL(p,k,t)}; g.E.sA=function(k,p,t,J,q){this.T.has(k)&&(J<=0||q<=0||v0(A0).sA(k,p,t,J,q))}; g.E.HI=function(k){var p;(p=this.T.get(k.queryId))==null||p.HI()}; g.E.GO=function(k){var p;(p=this.T.get(k.queryId))==null||p.GO()}; g.E.dD=function(k){var p;(p=this.T.get(k.queryId))==null||p.dD()}; g.E.kp=function(k){var p;(p=this.T.get(k.queryId))==null||p.kp()}; g.E.wD=function(k){var p;(p=this.T.get(k.queryId))==null||p.wD()};E4L.prototype.send=function(k,p,t,J){try{SjM(this,k,p,t,J===void 0?!1:J)}catch(q){}};g.r(U3S,E4L);fGj.prototype.send=function(k,p,t,J){var q=!1;try{if(J==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||J==="ATTRIBUTION_SRC_MODE_XHR_OPTION")q=!0,k=AeS(k);J=q;var F=k.match(Pt);if(F[1]==="https")var d=k;else F[1]="https",d=n9("https",F[2],F[3],F[4],F[5],F[6],F[7]);var S=yKi(d);F=[];var U=FE9(d)&&this.uh.get().j.G().experiments.Gb("add_auth_headers_to_remarketing_google_dot_com_ping");if(Fd(d)||U)F.push({headerType:"USER_AUTH"}),F.push({headerType:"PLUS_PAGE_ID"}),F.push({headerType:"VISITOR_ID"}),F.push({headerType:"EOM_VISITOR_ID"}), F.push({headerType:"AUTH_USER"}),F.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:d,scrubReferrer:S,headers:F},p,t,J)}catch(f){}};Ja.prototype.VX=function(){return this.j.VX(1)};g.r(oM,g.R);g.E=oM.prototype;g.E.DC=function(){return this.j.getVideoData(1).clientPlaybackNonce}; g.E.addListener=function(k){this.listeners.push(k)}; g.E.removeListener=function(k){this.listeners=this.listeners.filter(function(p){return p!==k})}; g.E.hM=function(){this.yB.clear();this.RE=null;this.JY.get().clear()}; g.E.Lo=function(){}; g.E.Pm6=function(k,p,t,J,q){p.videoId==="nPpU29QrbiU"&&this.j.yT("ads_ssm_vdc_s",{pt:t,dvt:k});yf(this.uh.get())&&k!=="dataloaded"||AE_(this,p,t);if(OM(this.uh.get())&&k==="newdata"&&q!==void 0){k=this.DC();var F=p.clientPlaybackNonce,d={};Yg(this,"rte",(d.ec=F,d.xc=J==null?void 0:J.clientPlaybackNonce,d.tr=q,d.pt=t,d.ia=F!==k,d.ctp=ys(F),d));p=p.clientPlaybackNonce;J=J==null?void 0:J.clientPlaybackNonce;q=m30(q);if(q!==1)if(J!==void 0)for(t=g.Z(this.listeners),k=t.next();!k.done;k=t.next())k.value.dN(J, p,q);else d3("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:p,transitionReason:String(q)});q=g.Z(this.listeners);for(J=q.next();!J.done;J=q.next())J.value.Hm(p)}}; g.E.w1S=function(k,p){k!==void 0&&(this.RE=k,p===void 0?d3("Expected ad video start time on SS video changed"):this.yB.set(k,p));var t=this.j.getPresentingPlayerType(!0),J=this.j.getVideoData(t);this.j.getVideoData(1).yT("ads_ssvc",{pt:t,cpn:J==null?void 0:J.clientPlaybackNonce,crtt:this.j.getCurrentTime(1,!1),atlh:this.j.isAtLiveHead(),adstt:p});J?AE_(this,J,t):d3("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.j.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:k})}; g.E.Lx=function(k,p){var t=k.author,J=k.clientPlaybackNonce,q=k.isListed,F=k.GI,d=k.title,S=k.C7,U=k.HR,f=k.isMdxPlayback,b=k.Q$,N=k.mdxEnvironment,y=k.isAutonav,Y=k.x0,T=k.VA,A=k.iB,V=k.videoId||"",D=k.profilePicture||"",v=k.Nc||"",w=k.n7()||!1,X=k.u1()||!1;k=k.Fb||void 0;F=this.JY.get().T.get(F)||{layoutId:null,slotId:null};var B=this.j.getVideoData(1),O=B.m2();B=B.getPlayerResponse();p=1E3*this.j.getDuration(p);var l=1E3*this.j.getDuration(1),oi,$h,kh=(B==null?void 0:(oi=B.playerConfig)==null? void 0:($h=oi.daiConfig)==null?void 0:$h.enableDai)||!1,h,x;oi=(B==null?void 0:(h=B.playerConfig)==null?void 0:(x=h.daiConfig)==null?void 0:x.enablePreroll)||!1;return Object.assign({},F,{videoId:V,author:t,clientPlaybackNonce:J,yO:p,Rq:l,daiEnabled:kh,vB:oi,isListed:q,m2:O,profilePicture:D,title:d,Nc:v,C7:S,HR:U,Fb:k,isMdxPlayback:f,Q$:b,mdxEnvironment:N,isAutonav:y,x0:Y,VA:T,iB:A,n7:w,u1:X})}; g.E.Ap=function(){this.listeners.length=0;this.Mb=null;g.R.prototype.Ap.call(this)};g.r(qV,g.R);g.E=qV.prototype;g.E.hM=function(){var k=this;OM(this.uh.get())||(this.T=bg(function(){k.j.MO()||k.j.Fw("ad",1)}))}; g.E.Lo=function(){}; g.E.addListener=function(k){this.listeners.push(k)}; g.E.removeListener=function(k){this.listeners=this.listeners.filter(function(p){return p!==k})}; g.E.oM=function(){}; g.E.playVideo=function(){this.j.playVideo()}; g.E.pauseVideo=function(){this.j.pauseVideo()}; g.E.resumeVideo=function(k){this.En(k)&&this.j.playVideo()}; g.E.En=function(k){return this.j.getPlayerState(k)===2}; g.E.getCurrentTimeSec=function(k,p,t){var J=this.XG.get().RE;if(k===2&&!p&&J!==null)return WAL(this,J);ac(this.uh.get(),"html5_ssap_use_cpn_to_get_time")||(t=void 0);return t!==void 0?this.j.getCurrentTime(k,p,t):this.j.getCurrentTime(k,p)}; g.E.getVolume=function(){return this.j.getVolume()}; g.E.isMuted=function(){return this.j.isMuted()}; g.E.getPresentingPlayerType=function(){return this.j.getPresentingPlayerType(!0)}; g.E.getPlayerState=function(k){return this.j.getPlayerState(k)}; g.E.isFullscreen=function(){return this.j.isFullscreen()}; g.E.isAtLiveHead=function(){return this.j.isAtLiveHead()}; g.E.YY=function(k){this.j.YY(k)}; g.E.Kgh=function(){var k=this.j.getPresentingPlayerType(!0),p=this.getCurrentTimeSec(k,!1);if(k===2){k=g.Z(this.listeners);for(var t=k.next();!t.done;t=k.next())t.value.I3(p)}else if(k===1)for(k=g.Z(this.Ze),t=k.next();!t.done;t=k.next())t.value.oM(p)}; g.E.yip=function(k){for(var p=g.Z(this.listeners),t=p.next();!t.done;t=p.next())t.value.WQ(k,this.getPresentingPlayerType())}; g.E.onFullscreenToggled=function(k){for(var p=g.Z(this.listeners),t=p.next();!t.done;t=p.next())t.value.onFullscreenToggled(k)}; g.E.onVolumeChange=function(){for(var k=g.Z(this.listeners),p=k.next();!p.done;p=k.next())p.value.onVolumeChange()}; g.E.MA=function(){for(var k=this.j.isMinimized(),p=g.Z(this.listeners),t=p.next();!t.done;t=p.next())t.value.MA(k)}; g.E.VN=function(k){for(var p=g.Z(this.listeners),t=p.next();!t.done;t=p.next())t.value.VN(k)}; g.E.zA=function(){for(var k=this.j.Uy().At(),p=g.Z(this.listeners),t=p.next();!t.done;t=p.next())t.value.Ek(k)}; g.E.tM=function(k){for(var p=g.Z(this.listeners),t=p.next();!t.done;t=p.next())t.value.tM(k)}; g.E.vR=function(){for(var k=g.Z(this.listeners),p=k.next();!p.done;p=k.next())p.value.vR()};g.r(LA9,g.R);g.r(Ue,g.R);Ue.prototype.Ap=function(){this.NQ.MO()||this.NQ.get().removeListener(this);g.R.prototype.Ap.call(this)};fU.prototype.fetch=function(k){var p=k.gY;return this.T.fetch(k.qn,{S0:k.S0===void 0?void 0:k.S0,Ai:p,cueProcessedMs:k.cueProcessedMs===void 0?0:k.cueProcessedMs}).then(function(t){return v4q(t,p)})};g.r(bX,g.R);g.E=bX.prototype;g.E.addListener=function(k){this.listeners.push(k)}; g.E.removeListener=function(k){this.listeners=this.listeners.filter(function(p){return p!==k})}; g.E.Q_=function(k){cET(this,k,1)}; g.E.onAdUxClicked=function(k,p){NV(this,function(t){t.K$(k,p)})}; g.E.Yl=function(k){NV(this,function(p){p.RN(k)})}; g.E.gF=function(k){NV(this,function(p){p.mN(k)})}; g.E.vIb=function(k){NV(this,function(p){p.Mp(k)})};yh.prototype.reduce=function(k){switch(k.event){case "unknown":return}var p=k.identifier;var t=this.T[p];t?p=t:(t={hG:null,PE:-Infinity},p=this.T[p]=t);t=k.startSecs+k.T/1E3;if(!(t<p.PE))if(p.PE=t,p.hG){if(t<p.hG.end){a:{t=p.hG;switch(k.event){case "start":case "continue":case "stop":break;default:k=null;break a}k=t.start+k.NR;k=t.end<=k?null:k}if(k!==null)for(p.hG.end=k,p=this.Y,g.fh(p.N.T,k*1E3),p=g.Z(p.listeners),t=p.next();!t.done;t=p.next())t.value.jD(k)}}else if(k=n4S(k,this.N))t=k.hhb,p.hG= k.g9,idS(this.Y,t)}; yh.prototype.updateTime=function(){};g.r(Yj,g.R);g.E=Yj.prototype; g.E.hM=function(){this.X=new yh(this,gGT(this.uh.get()));this.N=new w_6;var k=this.j.getVideoData(1);if(!k.enableServerStitchedDai){var p=this.j.getVideoData(1),t;((t=this.Y)==null?void 0:t.clientPlaybackNonce)!==p.clientPlaybackNonce&&(this.Y!=null&&this.Y.unsubscribe("cuepointupdated",this.Qw,this),p.subscribe("cuepointupdated",this.Qw,this),this.Y=p)}this.eK.length=0;var J;p=((J=k.T)==null?void 0:k1w(J,0))||[];J=g.Z(p);for(p=J.next();!p.done;p=J.next())p=p.value,this.xe(p)&&(OMi(this.uh.get())&& OE(this.mS.get(),"ocvl","cpi."+p.identifier+";cpe."+p.event+";cps."+p.startSecs),d3("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:p.identifier,cuePointEvent:p.event,contentCpn:k.clientPlaybackNonce}))}; g.E.Lo=function(){}; g.E.addListener=function(k){this.listeners.push(k)}; g.E.removeListener=function(k){this.listeners=this.listeners.filter(function(p){return p!==k})}; g.E.xe=function(k){PjM(this,k);this.X.reduce(k);k=this.C;this.C=!1;return k}; g.E.Qw=function(k){var p=this.j.getVideoData(1).isDaiEnabled();if(p||!g.Ck(this.j.G())){k=g.Z(k);for(var t=k.next();!t.done;t=k.next())if(t=t.value,PjM(this,t),p)this.X.reduce(t);else if(this.j.getCurrentTime(1)!==0&&t.event==="start")if(this.uh.get().j.G().experiments.Gb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.T==null||this.uh.get().j.G().experiments.Gb("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.T.identifier!==t.identifier?0:t.startSecs+t.NR>=this.T.startSecs&& t.startSecs<=this.T.startSecs+this.T.NR)){var J=void 0;if(OMi(this.uh.get())&&t.identifier!==((J=this.T)==null?void 0:J.identifier)){var q=J=void 0,F=void 0,d=void 0;OE(this.mS.get(),"ocud","ccpi."+t.identifier+";ccpe."+t.event+";ccps."+t.startSecs+";\n ccpd."+t.NR+";pcpi."+((J=this.T)==null?void 0:J.identifier)+";pcpe."+((q=this.T)==null?void 0:q.event)+";\n pcps."+((F=this.T)==null?void 0:F.startSecs)+";pcpd."+((d=this.T)==null?void 0:d.NR)+";")}J=void 0;t.identifier!== ((J=this.T)==null?void 0:J.identifier)&&d3("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=t,idS(this,t)}}; g.E.Ap=function(){this.Y!=null&&(this.Y.unsubscribe("cuepointupdated",this.Qw,this),this.Y=null);this.listeners.length=0;this.eK.length=0;g.R.prototype.Ap.call(this)};T$.prototype.addPlayerResponseForAssociation=function(k){this.j.addPlayerResponseForAssociation(k)};g.E=Zk.prototype;g.E.Kh=function(k,p,t,J,q,F,d){return this.j.Kh(k,p,t,J,q,F,d)}; g.E.nt=function(k,p){this.j.nt(k,p)}; g.E.wm=function(k,p,t){this.j.wm(k,p,t)}; g.E.bV=function(k){this.j.bV(k)}; g.E.pu=function(k,p,t,J,q,F,d){this.j.pu(k,p,t,J,q,F,d)}; g.E.mK=function(k){return this.j.mK(k)}; g.E.finishSegmentByCpn=function(k,p,t){t=IG0(t);this.j.finishSegmentByCpn(k,p,t)};g.r(Rnw,g.R);g.r(Bzw,g.R);g.r(znS,g.R);g.r(enw,g.R);g.r(hnM,g.R);g.r(MS6,g.R);MS6.prototype.N=function(){return this.Y};g.r(g4i,BR); g4i.prototype.C=function(k){var p=k.content;if(p.componentType==="shopping-companion")switch(k.actionType){case 1:case 2:k=this.T.getVideoData(1);this.T.zb("updateKevlarOrC3Companion",{contentVideoId:k&&k.videoId,shoppingCompanionCarouselRenderer:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.T,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:this.T.zb("updateKevlarOrC3Companion",{})}else if(p.componentType==="action-companion")switch(k.actionType){case 1:case 2:k=this.T.getVideoData(1); this.T.zb("updateKevlarOrC3Companion",{contentVideoId:k&&k.videoId,actionCompanionAdRenderer:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.T,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p.renderer&&(p=this.T.getVideoData(1),this.T.zb("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId})),this.T.zb("updateKevlarOrC3Companion",{})}else if(p.componentType==="image-companion")switch(k.actionType){case 1:case 2:k=this.T.getVideoData(1);this.T.zb("updateKevlarOrC3Companion", {contentVideoId:k&&k.videoId,imageCompanionAdRenderer:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.T,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p=this.T.getVideoData(1),this.T.zb("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId}),this.T.zb("updateKevlarOrC3Companion",{})}else if(p.componentType==="top-banner-image-text-icon-buttoned")switch(k.actionType){case 1:case 2:k=this.T.getVideoData(1);this.T.zb("updateKevlarOrC3Companion", {contentVideoId:k&&k.videoId,topBannerImageTextIconButtonedLayoutViewModel:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.T,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p.renderer&&(p=this.T.getVideoData(1),this.T.zb("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId})),this.T.zb("updateKevlarOrC3Companion",{})}else if(p.componentType==="banner-image")switch(k.actionType){case 1:case 2:k=this.T.getVideoData(1);this.T.zb("updateKevlarOrC3Companion", {contentVideoId:k&&k.videoId,bannerImageLayoutViewModel:p.renderer,layoutId:p.layoutId,macros:p.macros,onLayoutVisibleCallback:p.T,interactionLoggingClientData:p.interactionLoggingClientData});break;case 3:p=this.T.getVideoData(1),this.T.zb("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId}),this.T.zb("updateKevlarOrC3Companion",{})}else if(p.componentType==="ads-engagement-panel")switch(p=p.renderer,k.actionType){case 1:case 2:this.T.zb("updateEngagementPanelAction",p.addAction);this.T.zb("changeEngagementPanelVisibility", p.expandAction);break;case 3:this.T.zb("changeEngagementPanelVisibility",p.hideAction),this.T.zb("updateEngagementPanelAction",p.removeAction)}else if(p.componentType==="ads-engagement-panel-layout"){var t=p.renderer;switch(k.actionType){case 1:case 2:this.T.zb("updateEngagementPanelAction",{action:GD(t.addAction),layoutId:p.layoutId,onLayoutVisibleCallback:p.T,interactionLoggingClientData:p.interactionLoggingClientData});this.T.zb("changeEngagementPanelVisibility",GD(t.expandAction));break;case 3:this.T.zb("changeEngagementPanelVisibility", GD(t.hideAction)),this.T.zb("updateEngagementPanelAction",{action:GD(t.removeAction)})}}};g.r(uWT,l3);g.E=uWT.prototype;g.E.init=function(k,p,t){l3.prototype.init.call(this,k,p,t);g.S4(this.N,"stroke-dasharray","0 "+this.Y);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.C.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){OY(this);l3.prototype.hide.call(this)}; g.E.show=function(){jA(this);l3.prototype.show.call(this)}; g.E.Yb=function(){this.hide()}; g.E.pI=function(){if(this.T){var k=this.T.getProgressState();k!=null&&k.current!=null&&g.S4(this.N,"stroke-dasharray",k.current/k.seekableEnd*this.Y+" "+this.Y)}};g.r(lG0,SA);g.E=lG0.prototype; g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);if(p.image&&p.image.thumbnail)if(p.headline)if(p.description)if(p.backgroundImage&&p.backgroundImage.thumbnail)if(p.actionButton&&g.e(p.actionButton,g.vT))if(k=p.durationMilliseconds||0,typeof k!=="number"||k<=0)g.nV(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+k));else if(p.navigationEndpoint){var J=this.api.getVideoData(2);if(J!=null){var q=p.image.thumbnail.thumbnails;q!=null&& q.length>0&&g.WW(g.xT(q[0].url))&&(q[0].url=J.profilePicture,g.WW(g.xT(J.profilePicture))&&fNh("VideoPlayer",239976093,"Expected non-empty profile picture."));q=p.backgroundImage.thumbnail.thumbnails;q!=null&&q.length>0&&g.WW(g.xT(q[0].url))&&(q[0].url=J.KL());q=p.headline;q!=null&&g.WW(g.xT(q.text))&&(q.text=J.author)}this.L.init(tt("ad-image"),p.image,t);this.S.init(tt("ad-text"),p.headline,t);this.N.init(tt("ad-text"),p.description,t);this.W0.init(tt("ad-image"),p.backgroundImage,t);J=["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.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");J.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().Y&&(J.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),J.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().D("enable_unified_action_endcap_on_web")&& !this.api.G().Y&&(J.push("ytp-ad-action-interstitial-action-button-unified"),this.v0.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.B0.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.kW.classList.add("ytp-ad-action-interstitial-card-unified"),this.Y8.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.j6.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.qO.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.RY.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,J);g.z(this,this.actionButton);this.actionButton.QT(this.v0); this.actionButton.init(tt("button"),g.e(p.actionButton,g.vT),t);eF(this.actionButton.element);J=Md(this.actionButton.element);at(this.actionButton.element,J+" This link opens in new tab");this.navigationEndpoint=p.navigationEndpoint;this.C.V(this.qO,"click",this.MU,this);this.C.V(this.Y8,"click",this.MU,this);!this.api.G().D("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.G().Y||this.C.V(this.j6,"click",this.MU,this);this.T=this.XK?new r3(this.api,k):new Zy(k);g.z(this,this.T);if(p.skipButton){(k= g.e(p.skipButton,M9K))&&this.T&&(this.skipButton=new fa(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.T,this.Ke),g.z(this,this.skipButton),this.skipButton.QT(this.element),this.skipButton.init(tt("skip-button"),k,t));t=this.api.D("disable_ad_preview_for_instream_ads");if(k=p.adBadgeRenderer)if(k=g.e(k,aAR))J=new YM(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,!0,t),J.QT(this.RY),J.init(tt("simple-ad-badge"),k,this.macros),g.z(this,J);if(k=p.adInfoRenderer)if(k= g.e(k,sx))t=new Mq(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.element,void 0,t),t.QT(this.RY),t.init(tt("ad-info-hover-text-button"),k,this.macros),g.z(this,t)}else p.nonskippableOverlayRenderer&&(k=g.e(p.nonskippableOverlayRenderer,LJ))&&this.T&&(this.Y=new x3(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.T,!1),g.z(this,this.Y),this.Y.QT(this.element),this.Y.init(tt("ad-preview"),k,t));p.countdownRenderer&&(p=p.countdownRenderer,g.e(p,gnW)&&this.T&& (t=new uWT(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.T),g.z(this,t),t.QT(this.element),t.init(tt("timed-pie-countdown"),g.e(p,gnW),this.macros)));this.show();this.element.focus()}else g.nV(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.nV(Error("AdActionInterstitialRenderer has no button."));else g.nV(Error("AdActionInterstitialRenderer has no background AdImage."));else g.nV(Error("AdActionInterstitialRenderer has no description AdText."));else g.nV(Error("AdActionInterstitialRenderer has no headline AdText.")); else g.nV(Error("AdActionInterstitialRenderer has no image."))}; g.E.clear=function(){g.Df(this.C);this.hide()}; g.E.show=function(){jES(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.Y&&this.Y.show();SA.prototype.show.call(this)}; g.E.hide=function(){jES(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.Y&&this.Y.hide();SA.prototype.hide.call(this)}; g.E.MU=function(){this.navigationEndpoint&&(this.layoutId?this.VT.executeCommand(this.navigationEndpoint,this.layoutId):g.nV(Error("Missing layoutId for ad action interstitial.")))};var kmi={iconType:"CLOSE"},Vh=new g.YY(320,63);g.r(x3L,SA);g.E=x3L.prototype; g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);this.C=p;this.L=g.tj(this.C.onClickCommands||[]);this.RY=this.C.onErrorCommand||null;if(k=this.C.contentSupportedRenderer)k=this.C.contentSupportedRenderer,p=this.C.adInfoRenderer||null,g.e(k,zSn)?(this.S=g.lh("ytp-ad-overlay-ad-info-button-container",this.N.element),pY9(this,p),k=JIL(this,g.e(k,zSn))):g.e(k,eSa)?(this.S=g.lh("ytp-ad-overlay-ad-info-button-container",this.Y.element),pY9(this,p),k=o$M(this,g.e(k,eSa))):g.e(k,hSA)?(this.S= g.lh("ytp-ad-overlay-ad-info-button-container",this.T.element),pY9(this,p),k=q9u(this,g.e(k,hSA))):(g.nV(Error("InvideoOverlayAdRenderer content could not be initialized.")),k=!1);k&&(this.show(),F9M(this,!0))}; g.E.clear=function(){F9M(this,!1);this.qO.reset();this.Y8=0;this.N.hide();this.logVisibility(this.N.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.E.gWp=function(){this.v0&&(this.layoutId?this.VT.executeCommand(this.v0,this.layoutId):g.nV(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.E.kJ=function(){a:{if(this.C&&this.C.closeButton&&this.C.closeButton.buttonRenderer){var k=this.C.closeButton.buttonRenderer;if(k.serviceEndpoint){k=[k.serviceEndpoint];break a}}k=[]}k=g.Z(k);for(var p=k.next();!p.done;p=k.next())p=p.value,this.layoutId?this.VT.executeCommand(p,this.layoutId):g.nV(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.E.VzS=function(){this.W0||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.E.wF=function(){this.W0||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.wF("invideo-overlay")}; g.E.c50=function(k){k.target===this.S&&g.lh("ytp-ad-button",this.B0.element).click()};g.r($xe,l3);g.E=$xe.prototype;g.E.init=function(k,p,t){l3.prototype.init.call(this,k,p,t);k=p.durationMs;this.N=k==null||k===0?0:k+this.T.getProgressState().current*1E3;if(p.text)var J=p.text.templatedAdText;else p.staticMessage&&(J=p.staticMessage);this.messageText.init(tt("ad-text"),J,t);this.messageText.QT(this.Y.element);this.C.show(100);this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){dx_(this,!1);l3.prototype.hide.call(this);this.Y.hide();this.messageText.hide();OY(this)}; g.E.show=function(){dx_(this,!0);l3.prototype.show.call(this);jA(this);this.Y.show();this.messageText.show()}; g.E.Yb=function(){this.hide()}; g.E.pI=function(){if(this.T!=null){var k=this.T.getProgressState();k!=null&&k.current!=null&&(k=1E3*k.current,!this.Y8&&k>=this.N?(this.C.hide(),this.Y8=!0):this.messageText&&this.messageText.isTemplated()&&(k=Math.max(0,Math.ceil((this.N-k)/1E3)),k!==this.S&&(u3(this.messageText,{TIME_REMAINING:String(k)}),this.S=k)))}};g.r(E$6,SA);g.E=E$6.prototype; g.E.init=function(k,p,t){SA.prototype.init.call(this,k,p,{});p.image&&p.image.thumbnail?p.headline?p.description?p.actionButton&&g.e(p.actionButton,g.vT)?(this.N.init(tt("ad-image"),p.image,t),this.Y.init(tt("ad-text"),p.headline,t),this.C.init(tt("ad-text"),p.description,t),k=["ytp-ad-underlay-action-button"],this.api.G().D("use_blue_buttons_for_desktop_player_underlay")&&k.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT, k),p.backgroundColor&&g.S4(this.element,"background-color",g.GU(p.backgroundColor)),g.z(this,this.actionButton),this.actionButton.QT(this.S),this.actionButton.init(tt("button"),g.e(p.actionButton,g.vT),t),p=g.dU(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().D("place_shrunken_video_on_left_of_player")?(t=this.T,g.qN(t,"ytp-ad-underlay-left-container"),g.JB(t,"ytp-ad-underlay-right-container"),g.S4(this.T,"margin-left",Math.round((p+.02)*100)+"%")):(t=this.T,g.qN(t,"ytp-ad-underlay-right-container"), g.JB(t,"ytp-ad-underlay-left-container")),g.S4(this.T,"width",Math.round((1-p-.04)*100)+"%"),this.api.BW()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Es.bind(this)),this.api.addEventListener("resize",this.Y7.bind(this))):g.nV(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.nV(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.nV(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.nV(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.E.show=function(){S9L(!0);this.actionButton&&this.actionButton.show();SA.prototype.show.call(this)}; g.E.hide=function(){S9L(!1);this.actionButton&&this.actionButton.hide();SA.prototype.hide.call(this)}; g.E.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Es.bind(this));this.api.removeEventListener("resize",this.Y7.bind(this));this.hide()}; g.E.onClick=function(k){SA.prototype.onClick.call(this,k);this.actionButton&&g.FI(this.actionButton.element,k.target)&&this.api.pauseVideo()}; g.E.Es=function(k){k==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):k==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):k==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.E.Y7=function(k){k.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):k.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.S4(this.Y.element,"font-size",k.width/40+"px")};g.r(Wf,SA); Wf.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);p.toggledLoggingParams&&(this.toggledLoggingParams=p.toggledLoggingParams);p.answer&&g.e(p.answer,g.vT)?(k=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),k.QT(this.answer),k.init(tt("ytp-ad-survey-answer-button"),g.e(p.answer,g.vT),t),k.show()):p.answer&&g.e(p.answer,Cn)&&(this.T=new XK(this.api,this.layoutId,this.interactionLoggingClientData,this.VT, ["ytp-ad-survey-answer-toggle-button"]),this.T.QT(this.answer),g.z(this,this.T),this.T.init(tt("survey-answer-button"),g.e(p.answer,Cn),t));this.show()}; Wf.prototype.vM=function(k){this.layoutId?zk(this.VT,k,this.layoutId,this.macros):g.nV(new g.hm("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Wf.prototype.onClick=function(k){SA.prototype.onClick.call(this,k);if(this.api.G().D("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Wf.prototype.clear=function(){this.hide()};g.r(Uxi,SA);Uxi.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);p.answer&&g.e(p.answer,Cn)&&(this.button=new XK(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.QT(this.T),this.button.init(tt("survey-none-of-the-above-button"),g.e(p.answer,Cn),t));this.show()};g.r(Dk,vR);Dk.prototype.init=function(k,p,t){vR.prototype.init.call(this,k,p,t);k=!1;p.text&&(p=g.f1(p.text),k=!g.WW(p));k||g.wt(Error("No submit text was present in the renderer."))}; Dk.prototype.onClick=function(k){this.publish("l");vR.prototype.onClick.call(this,k)};g.r(se,SA); se.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);if(k=p.skipOrPreviewRenderer)g.e(k,ka)?(k=g.e(k,ka),t=new NO(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.C,!0),t.QT(this.skipOrPreview),t.init(tt("skip-button"),k,this.macros),g.z(this,t),this.T=t):g.e(k,LJ)&&(k=g.e(k,LJ),t=new x3(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.C,!1),t.QT(this.skipOrPreview),t.init(tt("ad-preview"),k,this.macros),kM(t),g.z(this,t),this.T=t);this.T== null&&g.nV(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(p)));p.submitButton&&(k=p.submitButton,g.e(k,g.vT)&&(k=g.e(k,g.vT),t=new Dk(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),t.QT(this.submitButton),t.init(tt("survey-submit"),k,this.macros),g.z(this,t),this.Y=t));k=this.api.D("disable_ad_preview_for_instream_ads");if(t=p.adBadgeRenderer){t=g.e(t,aAR);var J=new YM(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,!0, k,!0);J.QT(this.N);J.init(tt("simple-ad-badge"),t,this.macros);this.adBadge=J.element;g.z(this,J)}if(t=p.adDurationRemaining)t=g.e(t,XWa),J=new mM(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.C,void 0,k),J.QT(this.N),J.init(tt("ad-duration-remaining"),t,this.macros),g.z(this,J);(p=p.adInfoRenderer)&&g.e(p,sx)&&(t=new Mq(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.element,void 0,k),g.z(this,t),k&&this.adBadge!==void 0?this.N.insertBefore(t.element, this.adBadge.nextSibling):t.QT(this.N),t.init(tt("ad-info-hover-text-button"),g.e(p,sx),this.macros));this.show()}; se.prototype.clear=function(){this.hide()};g.r(LU,SA);LU.prototype.init=function(k,p,t){SA.prototype.init.call(this,k,p,t);Y9j(this)}; LU.prototype.show=function(){this.N=Date.now();SA.prototype.show.call(this)}; LU.prototype.bI=function(){};g.r(TsS,LU);g.E=TsS.prototype;g.E.init=function(k,p,t){var J=this;LU.prototype.init.call(this,k,p,t);p.questionText&&fQe(this,p.questionText);p.answers&&p.answers.forEach(function(q,F){g.e(q,rb)&&bsS(J,g.e(q,rb),t,F)}); this.S=new Set(this.Y.map(function(q){return q.T.T})); (k=p.noneOfTheAbove)&&(k=g.e(k,Bqq))&&rIu(this,k,t);p.surveyAdQuestionCommon&&yIT(this,p.surveyAdQuestionCommon);p.submitEndpoints&&(this.submitEndpoints=p.submitEndpoints);this.V(this.element,"change",this.onChange);this.show()}; g.E.bI=function(){ZsT(this,!1);this.C.Y.subscribe("l",this.TIG,this)}; g.E.onChange=function(k){k.target===this.noneOfTheAbove.button.T?C0q(this):this.S.has(k.target)&&(this.noneOfTheAbove.button.toggleButton(!1),ZsT(this,!0))}; g.E.TIG=function(){var k=[],p=this.Y.reduce(function(q,F,d){var S=F.toggledLoggingParams;F.T&&F.T.isToggled()&&S&&(q.push(S),k.push(d));return q},[]).join("&"),t=this.submitEndpoints.map(function(q){if(!q.loggingUrls)return q; q=g.Qx(q);q.loggingUrls=q.loggingUrls.map(function(F){F.baseUrl&&(F.baseUrl=aq(F.baseUrl,p));return F}); return q}); if(t){t=g.Z(t);for(var J=t.next();!J.done;J=t.next())J=J.value,this.layoutId?zk(this.VT,J,this.layoutId,this.macros):g.nV(Error("Missing layoutId for multi_select_question."))}this.api.G().D("supports_multi_step_on_desktop")&&this.Y8(k)}; g.E.clear=function(){this.api.G().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(vf,LU);vf.prototype.init=function(k,p,t){var J=this;LU.prototype.init.call(this,k,p,t);p.questionText&&fQe(this,p.questionText);p.answers&&p.answers.forEach(function(q,F){g.e(q,rb)&&bsS(J,g.e(q,rb),t,F)}); p.surveyAdQuestionCommon?yIT(this,p.surveyAdQuestionCommon):g.nV(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(p)));this.show()}; vf.prototype.clear=function(){this.api.G().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(cf,SA);cf.prototype.init=function(k,p,t){var J=this;SA.prototype.init.call(this,k,p,t);if(this.api.G().D("supports_multi_step_on_desktop")){var q;this.conditioningRules=(q=p.conditioningRules)!=null?q:[];var F;this.Y=(F=p.questions)!=null?F:[];var d;((d=p.questions)==null?0:d.length)&&W99(this,0)}else(p.questions||[]).forEach(function(S){g.e(S,WT)?mxi(J,g.e(S,WT),t):g.e(S,Vk)&&Vk0(J,g.e(S,Vk),t)}); this.show()}; cf.prototype.clear=function(){this.api.G().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; cf.prototype.C=function(k){var p=this;if(this.api.G().D("supports_multi_step_on_desktop")){var t;if((t=this.conditioningRules)==null?0:t.length){var J;if(k.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(q){return q.questionIndex===p.T})==null)g.nV(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(q){if(q.questionIndex===p.T)switch(q.condition){case "CONDITION_ALL_OF":var F;if((F=q.answerIndices)==null?0:F.every(function(S){return k.includes(S)}))J=q.nextQuestionIndex; break;case "CONDITION_ANY_OF":var d;if((d=q.answerIndices)==null?0:d.some(function(S){return k.includes(S)}))J=q.nextQuestionIndex; break;default:g.nV(Error("Expected specified condition in survey conditioning rules."))}}),J!=null)W99(this,J); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.nV(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.r(nU,SA); nU.prototype.init=function(k,p,t){var J=this;SA.prototype.init.call(this,k,p,t);k=p.timeoutSeconds||0;if(typeof k!=="number"||k<0)g.nV(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+k));else if(p.timeoutCommands)if(p.text)if(p.ctaButton&&g.e(p.ctaButton,g.vT))if(p.brandImage)if(p.backgroundImage&&g.e(p.backgroundImage,cT)&&g.e(p.backgroundImage,cT).landscape){this.layoutId||g.nV(Error("Missing layoutId for survey interstitial."));Dxj(this.interstitial,g.e(p.backgroundImage, cT).landscape);Dxj(this.logoImage,p.brandImage);g.$W(this.text,g.f1(p.text));var q=["ytp-ad-survey-interstitial-action-button"];q.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new vR(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,q);g.z(this,this.actionButton);this.actionButton.QT(this.Y);this.actionButton.init(tt("button"),g.e(p.ctaButton,g.vT),t);this.actionButton.show();this.T=new r3(this.api,k*1E3);this.T.subscribe("g",function(){J.transition.hide()}); g.z(this,this.T);this.V(this.element,"click",function(F){var d=F.target===J.interstitial;F=J.actionButton.element.contains(F.target);if(d||F)if(J.transition.hide(),d)J.api.onAdUxClicked(J.componentType,J.layoutId)}); this.transition.show(100)}else g.nV(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.nV(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.nV(Error("SurveyTextInterstitialRenderer has no button."));else g.nV(Error("SurveyTextInterstitialRenderer has no text."));else g.nV(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; nU.prototype.clear=function(){this.hide()}; nU.prototype.show=function(){sCe(!0);SA.prototype.show.call(this)}; nU.prototype.hide=function(){sCe(!1);SA.prototype.hide.call(this)};g.r(wy,l3);g.E=wy.prototype; g.E.init=function(k,p){l3.prototype.init.call(this,k,p,{});if(p.durationMilliseconds){if(p.durationMilliseconds<0){g.nV(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+p.durationMilliseconds));return}this.Y=p.durationMilliseconds}else this.Y=this.T.BU();var t;if((t=p.previewText)==null||!t.text||g.WW(p.previewText.text))g.nV(Error("No text is returned for AdPreview."));else{this.S=p.previewText;p.previewText.isTemplated||g.$W(this.N,p.previewText.text);var J; if(((J=this.api.getVideoData(1))==null?0:J.CI)&&p.previewImage){var q,F;(k=((F=mX(((q=p.previewImage)==null?void 0:q.sources)||[],52,!1))==null?void 0:F.url)||"")&&k.length?(this.previewImage=new g.EY({K:"img",W:"ytp-preview-ad__image",J:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",k),g.z(this,this.previewImage),this.previewImage.QT(this.element)):g.nV(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}}; g.E.clear=function(){this.hide()}; g.E.hide=function(){OY(this);l3.prototype.hide.call(this)}; g.E.show=function(){jA(this);l3.prototype.show.call(this)}; g.E.Yb=function(){this.hide()}; g.E.pI=function(){if(this.T){var k=this.T.getProgressState();if(k!=null&&k.current)if(k=1E3*k.current,k>=this.Y)this.transition.hide();else{var p;if((p=this.S)==null?0:p.isTemplated)if(p=Math.max(0,Math.ceil((this.Y-k)/1E3)),p!==this.C){var t,J;(k=(t=this.S)==null?void 0:(J=t.text)==null?void 0:J.replace("{TIME_REMAINING}",String(p)))&&g.$W(this.N,k);this.C=p}}}};g.r(iX,SA); iX.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});var t,J;if((k=((J=mX(((t=p.image)==null?void 0:t.sources)||[],L9q(p),!0))==null?void 0:J.url)||"")&&k.length){t=this.Kp("ytp-ad-avatar");t.src=k;var q,F;if(J=(q=p.interaction)==null?void 0:(F=q.accessibility)==null?void 0:F.label)t.alt=J;switch(p.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(p.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.nV(Error("Failed to get imageUrl in AdAvatar."))}; iX.prototype.clear=function(){this.hide()}; iX.prototype.onClick=function(k){SA.prototype.onClick.call(this,k)};g.r(Qh,SA); Qh.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});var t;k=(t=p.label)==null?void 0:t.content;if((t=k!=null&&!g.WW(k))||p.iconImage){t&&(this.buttonText=new g.EY({K:"span",W:"ytp-ad-button-vm__text",sy:k}),g.z(this,this.buttonText),this.buttonText.QT(this.element));var J,q,F=((J=p.interaction)==null?0:(q=J.accessibility)==null?0:q.label)||t?k:"";F&&at(this.element,F+" This link opens in new tab");eF(this.element);if(p.iconImage){J=void 0;if(p.iconImage){a:{q=p.iconImage;if(q.sources)for(q= g.Z(q.sources),k=q.next();!k.done;k=q.next())if(k=k.value,F=void 0,(F=k.clientResource)==null?0:F.imageName){q=k;break a}q=void 0}if(q){var d;J={iconType:(d=q.clientResource)==null?void 0:d.imageName}}}d=L1(J,!1,this.Y);d!=null&&(this.buttonIcon=new g.EY({K:"span",W:"ytp-ad-button-vm__icon",U:[d]}),g.z(this,this.buttonIcon),p.iconLeading?(on(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):t?(this.buttonIcon.QT(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.QT(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(p.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.T?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(p.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.wt(Error("AdButton does not have label or an icon."))}; Qh.prototype.clear=function(){this.hide()}; Qh.prototype.onClick=function(k){SA.prototype.onClick.call(this,k)};g.r(v$e,l3);g.E=v$e.prototype; g.E.init=function(k,p){l3.prototype.init.call(this,k,p,{});this.api.G().D("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Kp("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),on(this.Kp("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(k=g.e(p.avatar,ha)){var t=p.headline;if(t){var J=p.description;if(J){var q=g.e(p.button,MV);q?(this.adAvatar.init(tt("ad-avatar"),k),this.headline.init(tt("ad-simple-attributed-string"),new WA(t)),this.description.init(tt("ad-simple-attributed-string"),new WA(J)),t.content&&t.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(tt("ad-button"),q),this.startMilliseconds=p.startMs||0,this.api.BW()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.AT.bind(this)),jA(this)):g.nV(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nV(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nV(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nV(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.E.pI=function(){if(this.T){var k=this.T.getProgressState();k&&k.current&&1E3*k.current>=this.startMilliseconds&&(OY(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.E.Yb=function(){this.clear()}; g.E.onClick=function(k){this.api.pauseVideo();l3.prototype.onClick.call(this,k)}; g.E.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.AT.bind(this))}; g.E.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();l3.prototype.show.call(this)}; g.E.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();l3.prototype.hide.call(this)}; g.E.AT=function(k){k==="hidden"?this.show():this.hide()};g.r(Pf,SA);g.E=Pf.prototype; g.E.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(!p.label||g.WW(p.label))g.nV(Error("No label is returned for SkipAdButton."));else if(g.$W(this.C,p.label),k=L1({iconType:"SKIP_NEXT_NEW"}),k==null)g.nV(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.EY({K:"span",W:"ytp-skip-ad-button__icon",U:[k]}),g.z(this,this.N),this.N.QT(this.element),this.api.G().experiments.Gb("enable_skip_to_next_messaging")&&(p=g.xT(p.targetId)))this.Y=!0,this.element.setAttribute("data-tooltip-target-id",p), this.element.setAttribute("data-tooltip-target-fixed","")}; g.E.onClick=function(k){k&&k.preventDefault();var p,t;dDL(k,{contentCpn:(t=(p=this.api.getVideoData(1))==null?void 0:p.clientPlaybackNonce)!=null?t:""})===0?this.api.zb("onAbnormalityDetected"):(SA.prototype.onClick.call(this,k),this.api.zb("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.E.clear=function(){this.T.reset();this.hide()}; g.E.hide=function(){SA.prototype.hide.call(this)}; g.E.show=function(){this.T.start();SA.prototype.show.call(this);this.Y&&this.api.G().experiments.Gb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.r(cIi,l3);g.E=cIi.prototype; g.E.init=function(k,p){l3.prototype.init.call(this,k,p,{});k=g.e(p.preskipState,xQR);if(this.C||!this.api.G().experiments.Gb("disable_ad_preview_for_instream_ads")){if(!k){g.nV(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var t;(t=this.Y)==null||t.init(tt("preview-ad"),k);(t=this.Y)!=null&&(t.transition.show(100),t.show())}(t=g.e(p.skippableState,p4C))?(p.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=p.skipOffsetMilliseconds:(g.wt(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.N.init(tt("skip-button"),t),this.show()):g.nV(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.E.show=function(){jA(this);l3.prototype.show.call(this)}; g.E.hide=function(){!this.isSkippable&&this.Y?this.Y.hide():this.N&&this.N.hide();OY(this);l3.prototype.hide.call(this)}; g.E.clear=function(){var k;(k=this.Y)==null||k.clear();this.N&&this.N.clear();OY(this);l3.prototype.hide.call(this)}; g.E.Yb=function(){this.hide()}; g.E.pI=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var k;(k=this.Y)!=null&&k.transition.hide();(k=this.N)!=null&&(k.transition.show(),k.show())}};g.r(G$,SA); G$.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(p.label){var t;((t=p.label)==null?0:t.content)&&!g.WW(p.label.content)&&(this.linkText=new g.EY({K:"span",W:"ytp-visit-advertiser-link__text",sy:p.label.content}),g.z(this,this.linkText),this.linkText.QT(this.element));var J,q;if((J=p.interaction)==null?0:(q=J.accessibility)==null?0:q.label)at(this.element,p.interaction.accessibility.label+" This link opens in new tab");else{var F;((F=p.label)==null?0:F.content)&&!g.WW(p.label.content)&&at(this.element, p.label.content+" This link opens in new tab")}eF(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.nV(Error("No label found in VisitAdvertiserLink."))}; G$.prototype.onClick=function(k){SA.prototype.onClick.call(this,k);this.api.onAdUxClicked(this.componentType,this.layoutId)}; G$.prototype.clear=function(){this.hide()};g.r(IM,SA); IM.prototype.init=function(k,p,t,J){SA.prototype.init.call(this,k,p,{});if(p.skipOrPreview){t=p.skipOrPreview;k=g.e(t,tDS);t=g.e(t,xQR);var q,F=this.api.G().D("clean_player_style_fix_on_web")&&((q=this.api.getVideoData())==null?void 0:q.isDaiEnabled());k?(this.UH=new cIi(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.Y),g.z(this,this.UH),this.UH.QT(this.L),this.UH.init(tt("skip-ad"),k)):!t||this.api.G().experiments.Gb("disable_ad_preview_for_instream_ads")&&!F||(this.C=new wy(this.api, this.layoutId,this.interactionLoggingClientData,this.VT,this.Y,1),g.z(this,this.C),this.C.QT(this.L),this.C.init(tt("ad-preview"),t),q=this.C,q.transition.show(100),q.show());if(q=g.e(p.skipOrPreview,tDS))var d=q.skipOffsetMilliseconds}p.playerAdCard&&(q=g.e(p.playerAdCard,keJ))&&(this.playerAdCard=new v$e(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.Y),g.z(this,this.playerAdCard),this.playerAdCard.QT(this.j6),this.playerAdCard.init(tt("ad-avatar-lockup-card"),q));q=this.api.G().D("disable_ad_duration_remaining_for_instream_video_ads")|| p.adPodIndex!==void 0;p.adBadgeRenderer&&((k=g.e(p.adBadgeRenderer,aM))?(this.N=new sy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,q),g.z(this,this.N),this.N.QT(this.T),this.N.init(tt("ad-badge"),k)):g.nV(Error("AdBadgeViewModel is not found in player overlay layout.")));p.adPodIndex&&(k=g.e(p.adPodIndex,jLa))&&(this.adPodIndex=new La(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,g.e(p.skipOrPreview,tDS)===void 0),g.z(this,this.adPodIndex),this.adPodIndex.QT(this.T), this.adPodIndex.init(tt("ad-pod-index"),k));p.adInfoRenderer&&(k=g.e(p.adInfoRenderer,sx))&&(this.adInfoButton=new Mq(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.element,void 0,q),g.z(this,this.adInfoButton),this.api.G().D("enable_ad_pod_index_autohide")&&this.N!==void 0?this.T.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.QT(this.T),this.adInfoButton.init(tt("ad-info-hover-text-button"),k,this.macros));var S;k=this.api.G().D("clean_player_style_fix_on_web")&& ((S=this.api.getVideoData())==null?void 0:S.isDaiEnabled());p.adDurationRemaining&&(!q||k)&&(S=g.e(p.adDurationRemaining,XWa))&&(this.adDurationRemaining=new mM(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.Y,J.videoAdDurationSeconds,q),g.z(this,this.adDurationRemaining),q&&this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?q?this.T.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.T.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.QT(this.T),this.adDurationRemaining.init(tt("ad-duration-remaining"),S,this.macros),q&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));p.visitAdvertiserLink&&(J=g.e(p.visitAdvertiserLink,o2a))&&(this.visitAdvertiserLink=new G$(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.QT(this.T), this.visitAdvertiserLink.init(tt("visit-advertiser-link"),J));p.adDisclosureBanner&&(p=g.e(p.adDisclosureBanner,lAc))&&(this.adDisclosureBanner=new vA(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.adDisclosureBanner),this.adDisclosureBanner.QT(this.Y8),this.adDisclosureBanner.init(tt("ad-disclosure-banner"),p));this.api.G().D("show_preskip_progress_bar_for_skippable_ads")&&(this.S=new w3(this.api,this.Y,d,q),g.z(this,this.S),g.cO(this.api,this.S.element,4));this.show()}; IM.prototype.clear=function(){this.hide()};g.r(n$6,SA);g.E=n$6.prototype; g.E.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(p!=null&&p.title)if(k=p.title)if(this.headline.init(tt("ad-simple-attributed-string"),new WA(k)),k=g.e(p.moreInfoButton,MV)){if(this.moreInfoButton.init(tt("ad-button"),k),p.descriptions)p.descriptions.length>0&&(k=p.descriptions[0])&&(this.T=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.T),this.T.QT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(tt("ad-simple-attributed-string"), new WA(k))),p.descriptions.length>1&&(p=p.descriptions[1])&&(this.Y=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.Y),this.Y.QT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.Y.init(tt("ad-simple-attributed-string"),new WA(p)))}else g.nV(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.nV(Error("No headline found in AdGridCardText."));else g.nV(Error("No headline found in AdGridCardText."))}; g.E.onClick=function(k){SA.prototype.onClick.call(this,k);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.E.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var k;(k=this.T)==null||k.clear();var p;(p=this.Y)==null||p.clear()}; g.E.hide=function(){this.headline.hide();this.moreInfoButton.hide();var k;(k=this.T)==null||k.hide();var p;(p=this.Y)==null||p.hide();SA.prototype.hide.call(this)}; g.E.show=function(){SA.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var k;(k=this.T)==null||k.show();var p;(p=this.Y)==null||p.show()};g.r(Xl,SA);Xl.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(p!=null&&p.gridCards)if(p.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.nV(Error("Only single column style is currently supported in AdGridCardCollection."));else for(k=g.Z(p.gridCards),p=k.next();!p.done;p=k.next()){if(p=g.e(p.value,Hcc)){var t=new n$6(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,t);t.QT(this.element);t.init(tt("ad-grid-card-text"),p);this.T.push(t)}}else g.nV(Error("No grid cards found in AdGridCardCollection."))}; Xl.prototype.show=function(){for(var k=g.Z(this.T),p=k.next();!p.done;p=k.next())p.value.show();SA.prototype.show.call(this)}; Xl.prototype.clear=function(){this.hide();for(var k=g.Z(this.T),p=k.next();!p.done;p=k.next())p.value.clear()}; Xl.prototype.hide=function(){for(var k=g.Z(this.T),p=k.next();!p.done;p=k.next())p.value.hide();SA.prototype.hide.call(this)};g.r(RM,l3);g.E=RM.prototype;g.E.init=function(k,p,t,J,q){q=q===void 0?0:q;l3.prototype.init.call(this,k,p,t,J);this.playerProgressOffsetMs=q;jA(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.K6.bind(this));this.api.addEventListener("resize",this.uR.bind(this));this.api.BW()?(this.Y=!0,this.api.YY(!0),this.show()):this.hide()}; g.E.pI=function(){if(this.T){var k=this.T.getProgressState();k&&k.current&&!this.Y&&1E3*k.current>=this.playerProgressOffsetMs&&(this.Y=!0,this.api.YY(!0),this.show())}}; g.E.Yb=function(){this.Y&&this.api.YY(!1);this.hide()}; g.E.clear=function(){this.api.YY(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.K6.bind(this));this.api.removeEventListener("resize",this.uR.bind(this));OY(this);this.hide()}; g.E.hide=function(){wY9(!1);l3.prototype.hide.call(this)}; g.E.show=function(){wY9(!0);l3.prototype.show.call(this)};g.r(is9,RM);g.E=is9.prototype; g.E.init=function(k,p,t,J){if(p!=null&&p.adGridCardCollection)if(p!=null&&p.adButton){var q=Number(p.playerProgressOffsetMs||"0");isNaN(q)?RM.prototype.init.call(this,k,p,t,J):RM.prototype.init.call(this,k,p,t,J,q);k=p.headline;t=g.e(p.adAvatar,ha);k&&t?(this.headline=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.headline),this.headline.QT(this.Kp("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(tt("ad-simple-attributed-string"),new WA(k)), this.adAvatar=new iX(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.adAvatar),this.adAvatar.QT(this.Kp("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(tt("ad-avatar"),t)):this.C.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");k=g.e(p.adGridCardCollection,K4C);this.adGridCardCollection.init(tt("ad-grid-card-collection"),k);p=g.e(p.adButton,MV);this.adButton.init(tt("ad-button"),p); this.hide()}else g.nV(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.nV(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.E.onClick=function(k){(this.adButton&&g.FI(this.adButton.element,k.target)||this.adAvatar&&g.FI(this.adAvatar.element,k.target))&&this.api.pauseVideo();RM.prototype.onClick.call(this,k);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.E.uR=function(){}; g.E.clear=function(){this.hide();var k;(k=this.headline)==null||k.clear();var p;(p=this.adAvatar)==null||p.clear();this.adGridCardCollection.clear();this.adButton.clear();RM.prototype.clear.call(this)}; g.E.show=function(){var k;(k=this.headline)==null||k.show();var p;(p=this.adAvatar)==null||p.show();this.adGridCardCollection.show();this.adButton.show();RM.prototype.show.call(this)}; g.E.hide=function(){var k;(k=this.headline)==null||k.hide();var p;(p=this.adAvatar)==null||p.hide();this.adGridCardCollection.hide();this.adButton.hide();RM.prototype.hide.call(this)}; g.E.K6=function(k){k==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):k==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):k==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.r(Bf,SA); Bf.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(p.attributes===void 0)g.nV(Error("No attributes found in AdDetailsLineViewModel."));else if(p.style===void 0)g.nV(Error("No style found in AdDetailsLineViewModel."));else{k=g.Z(p.attributes);for(var t=k.next();!t.done;t=k.next())if(t=t.value,t.text!==void 0){t=t.text;var J=p.style,q=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,q);q.QT(this.element);a:switch(J){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":J="ytp-ad-details-line__text--style-responsive"; break a;default:J="ytp-ad-details-line__text--style-standard"}q.element.classList.add(J);q.init(tt("ad-simple-attributed-string"),new WA(t));this.T.push(q)}this.show()}}; Bf.prototype.show=function(){this.T.forEach(function(k){k.show()}); SA.prototype.show.call(this)}; Bf.prototype.clear=function(){this.hide()}; Bf.prototype.hide=function(){this.T.forEach(function(k){k.hide()}); SA.prototype.hide.call(this)};g.r(z$,SA);z$.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});var t,J;(k=((J=mX(((t=p.image)==null?void 0:t.sources)||[]))==null?void 0:J.url)||"")&&k.length?(t=this.Kp("ytp-image-background-image"),g.S4(t,"backgroundImage","url("+k+")"),p.blurLevel!==void 0&&g.S4(t,"filter","blur("+p.blurLevel+"px)"),p.gradient!==void 0&&(p=new g.M({K:"div",S6:["ytp-image-background--gradient-vertical"]}),g.z(this,p),p.QT(this.element)),this.show()):g.nV(Error("Failed to get imageUrl in ImageBackground."))}; z$.prototype.clear=function(){this.hide()};g.r(QC_,l3);g.E=QC_.prototype;g.E.init=function(k,p){l3.prototype.init.call(this,k,p,{});g.S4(this.N,"stroke-dasharray","0 "+this.Y);this.show()}; g.E.clear=function(){this.hide()}; g.E.hide=function(){OY(this);l3.prototype.hide.call(this)}; g.E.show=function(){jA(this);l3.prototype.show.call(this)}; g.E.Yb=function(){this.hide()}; g.E.pI=function(){if(this.T){var k=this.T.getProgressState();k!=null&&k.current!=null&&g.S4(this.N,"stroke-dasharray",k.current/k.seekableEnd*this.Y+" "+this.Y)}};g.r(eb,SA); eb.prototype.init=function(k,p){SA.prototype.init.call(this,k,p,{});if(Gmi(p)){this.adAvatar=new iX(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.adAvatar);this.adAvatar.QT(this.Kp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(tt("ad-avatar"),g.e(p.adAvatar,ha));this.headline=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT);g.z(this,this.headline);this.headline.QT(this.Kp("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(tt("ad-simple-attributed-string"),new WA(p.headline));if(k=g.e(p.adDetailsLine,uSc))this.detailsLine=new Bf(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.detailsLine),this.detailsLine.QT(this.Kp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(tt("ad-details-line"),k);this.adButton=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,!0);g.z(this,this.adButton); this.adButton.QT(this.Kp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(tt("ad-button"),g.e(p.adButton,MV));k=this.api.D("disable_ad_preview_for_instream_ads");this.adBadge=new sy(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,k);g.z(this,this.adBadge);this.adBadge.QT(this.C);this.adBadge.init(tt("ad-badge"),g.e(p.adBadge,aM));this.adInfoButton=new Mq(this.api,this.layoutId,this.interactionLoggingClientData,this.VT,this.element, void 0,k);g.z(this,this.adInfoButton);this.adInfoButton.QT(this.C);this.adInfoButton.init(tt("ad-info-hover-text-button"),g.e(p.adInfoRenderer,sx),this.macros);if(k=g.e(p.skipAdButton,p4C))this.skipAdButton=new Pf(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.skipAdButton),this.skipAdButton.QT(this.element),this.skipAdButton.init(tt("skip-button"),k);this.Y=new Zy(p.durationMilliseconds);g.z(this,this.Y);if(k=g.e(p.countdownViewModel,Jjn))this.T=new QC_(this.api, this.layoutId,this.interactionLoggingClientData,this.VT,this.Y),g.z(this,this.T),this.T.QT(this.Kp("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(tt("timed-pie-countdown"),k);if(p=g.e(p.imageBackground,OcK))this.imageBackground=new z$(this.api,this.layoutId,this.interactionLoggingClientData,this.VT),g.z(this,this.imageBackground),this.imageBackground.QT(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(tt("image-background"),p);this.show();this.element.focus()}}; eb.prototype.clear=function(){g.Df(this.N);this.hide()}; eb.prototype.show=function(){P0S(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();SA.prototype.show.call(this)}; eb.prototype.hide=function(){P0S(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();SA.prototype.hide.call(this)};var wnn="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.r(gy,BR); gy.prototype.C=function(k){var p=k.id,t=k.content,J=t.componentType;if(!wnn.includes(J))switch(k.actionType){case 1:k=this.api;var q=this.VT,F=t.layoutId,d=t.interactionLoggingClientData,S=t instanceof af?t.XK:!1,U=t instanceof af||t instanceof TU?t.Ke:!1;d=d===void 0?{}:d;S=S===void 0?!1:S;U=U===void 0?!1:U;switch(J){case "invideo-overlay":k=new x3L(k,F,d,q);break;case "player-overlay":k=new iS(k,F,d,q,new k1(k),U);break;case "player-overlay-layout":k=new IM(k,F,d,q,new k1(k));break;case "survey":k= new cf(k,F,d,q);break;case "ad-action-interstitial":k=new lG0(k,F,d,q,S,U);break;case "video-interstitial-buttoned-centered":k=new eb(k,F,d,q);break;case "survey-interstitial":k=new nU(k,F,d,q);break;case "ad-message":k=new $xe(k,F,d,q,new k1(k,1));break;case "player-underlay":k=new E$6(k,F,d,q);break;case "display-underlay-text-grid-cards":k=new is9(k,F,d,q,new k1(k));break;default:k=null}if(!k){g.wt(Error("No UI component returned from ComponentFactory for type: "+J));break}g.sk(this.Y,p)?g.wt(Error("Ad UI component already registered: "+ p)):this.Y[p]=k;k.bind(t);t instanceof e0?this.N?this.N.append(k.pn):g.wt(Error("Underlay view was not created but UnderlayRenderer was created")):this.X.append(k.pn);break;case 2:p=IQu(this,k);if(p==null)break;p.bind(t);break;case 3:t=IQu(this,k),t!=null&&(g.ER(t),g.sk(this.Y,p)?(t=this.Y,p in t&&delete t[p]):g.wt(Error("Ad UI component does not exist: "+p)))}}; gy.prototype.Ap=function(){g.S9(Object.values(this.Y));this.Y={};BR.prototype.Ap.call(this)};g.r(XYe,g.Wr);g.E=XYe.prototype;g.E.create=function(){try{Rw_(this),this.load(),this.created=!0,Rw_(this)}catch(k){d3(k instanceof Error?k:String(k))}}; g.E.load=function(){try{ewS(this)}finally{OM(Aa(this.T).XE)&&this.player.Fw("ad",1)}}; g.E.destroy=function(){var k=this.player.getVideoData(1);this.T.T.zO.Lo(k&&k.clientPlaybackNonce||"");this.unload();this.created=!1}; g.E.unload=function(){g.Wr.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(p){d3(p instanceof Error?p:String(p))}if(this.Y!=null){var k=this.Y;this.Y=null;k.dispose()}this.N.reset()}; g.E.C5=function(){return!1}; g.E.getAdState=function(){return-1}; g.E.getOptions=function(){return Object.values(nBL)}; g.E.rp=function(k,p){p=p===void 0?{}:p;switch(k){case "replaceUrlMacros":return k=p,k.url?(p=qje(this.player),Object.assign(p,k.ooh),k=g.c8(k.url,p)):k=null,k;case "onAboutThisAdPopupClosed":this.wJ(p);break;case "executeCommand":k=p;k.command&&k.layoutId&&this.executeCommand(k);break;default:return null}}; g.E.xe=function(k){var p;return!((p=this.T.T.H1)==null||!p.get().xe(k))}; g.E.wJ=function(k){k.isMuted&&ZVw(Aa(this.T).Ga,Aa(this.T).KK,k.layoutId);this.PY&&this.PY.wJ()}; g.E.executeCommand=function(k){Aa(this.T).VT.executeCommand(k.command,k.layoutId)};g.eM("yt.player.Application.create",g.rG.create);g.eM("yt.player.Application.createAlternate",g.rG.create);juj(sN(),cHa);var iX4=g.hw("ytcsi.tick");iX4&&iX4("pe");g.Vc("ad",XYe);g.r(g.jb,g.R);g.jb.prototype.start=function(k,p,t){this.config={from:k,KF:p,duration:t,startTime:(0,g.V9)()};this.next()}; g.jb.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.jb.prototype.next=function(){if(this.config){var k=this.config,p=k.from,t=k.KF,J=k.duration;k=k.startTime;var q=(0,g.V9)()-k;k=this.T;J=JfL(k,q/J);if(J==0)k=k.Z;else if(J==1)k=k.B;else{q=bh(k.Z,k.X,J);var F=bh(k.X,k.S,J);k=bh(k.S,k.B,J);q=bh(q,F,J);F=bh(F,k,J);k=bh(q,F,J)}k=g.Ek(k,0,1);this.callback(p+(t-p)*k);k<1&&this.delay.start()}};g.r(g.Oe,g.M);g.E=g.Oe.prototype;g.E.hasSuggestions=function(){return this.suggestionData.length>0}; g.E.OM=function(){this.Y&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.E.show=function(){g.M.prototype.show.call(this);lQe(this)}; g.E.xG=function(){this.Y&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.E.BI=function(){this.zA(this.api.Uy().getPlayerSize())}; g.E.zA=function(k){var p=this.api.isEmbedsShortsMode()?.5625:16/9,t=this.api.wj();k=k.width-(t?112:58);t=Math.ceil(k/(t?320:192));var J=(k-t*8)/t;p=Math.floor(J/p);for(var q=g.Z(this.T),F=q.next();!F.done;F=q.next())F=F.value.Kp("ytp-suggestion-image"),F.style.width=J+"px",F.style.height=p+"px";this.suggestions.element.style.height=p+"px";this.C=J;this.B=p;this.containerWidth=k;this.columns=t;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.KU(this)}; g.E.onVideoDataChange=function(){var k=this.api.G(),p=this.api.getVideoData();this.S=p.JB?!1:k.C;this.suggestionData=p.suggestions?g.dZ(p.suggestions,function(t){return t&&!t.playlistId}):[]; Osw(this);p.JB?this.title.update({title:g.fT("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:p.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.E.scrollTo=function(k){k=g.Ek(k,this.containerWidth-this.suggestionData.length*(this.C+8),0);this.Z.start(this.scrollPosition,k,1E3);this.scrollPosition=k;g.KU(this);lQe(this)};})(_yt_player); ";s:5:"error";s:0:"";s:4:"info";O:13:"Curl\CurlInfo":1:{s:7:"