ÿØÿà 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:2536773:"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 bk,JJa,b3v,K3,IaC,wao,AJJ,MzJ,gY,qmz,mo,ik,z_,vCo,aak,ev3,G_,Pa,Koz,pav,gCJ,m4a,T_,Sz,sm,YC,$C,C3,yJo,X7,Om,oG,zvC,NYC,lao,Je,bW,uW,faJ,Wo7,ab,em,g5,ECk,jGa,G_Y,Vzo,PkG,BY4,TYJ,rJ_,iW,Smv,zV,sGJ,Xao,N8,QGa,Rva,Wk,D4J,jm,VU,s1,YL,$L,Cz,k_J,O3v,Xb,DH,Rb,oCC,hvY,cJa,U4k,kL,x4z,O1,ob,he,nCm,tz3,U1,H3G,Loo,uV,FR4,qL,Jea,bz3,ML,IHJ,ubJ,wk3,yI,MmG,q1z,gLa,lV,pk7,aHz,yeJ,ztk,lH7,WW,dy,jJ,VI,Gw,WRk,EL7,PW,BW,Tw,sX,YK,B5o,$K,Cf,XP,De,T5z,kK,OX,hL,UX,nf,Y1z,Lf,J_,IF,$8k,bv,CWJ,Xk_,uv,Fe,wU, Mu,Qbm,A_,v3,D8C,aF,e2,KI,OzJ,lv,oLG,htJ,ce_,kV7,Nu,yg,gU,U8a,x8z,tmv,HzJ,LRC,W3,dU,EF,FF4,JLm,Ga,wWz,qXo,bfk,ALG,MJ4,uPY,Iem,vK_,ae7,emo,Vg,pWv,B3,KFY,mLC,sF,S2,yLa,zmY,Yp,$p,Xe,CI,RF,Qg,c3,Dz,OF,oF,Nya,xp,leo,nI,t_,FW,Jx,bP,Zz,LI,H3,uP,w4,MX,fe_,w5,Ax,vo,kp,h_,aM,dLJ,eD,Ae,KG,pG,g4,mC,yH,iP,zb,EKG,NX,jy_,fG,Gwz,d4,Wo,Eq,jD,Gb,VH,Po,VJ4,ByJ,Tb,Tym,rLm,r4,SD,$4,syY,CG,YXv,XW,CVa,QH,Qyz,RM,Dw,k4,Rmz,Oq,DL_,oM,kwm,Of3,hx,oK4,co,Uq,nG,tx,cL4,LG,nK4,hmo,Fv,bw,I0,Zfm,uw,M9,Hfk,FLz,J_C,AQ,q9,v9,a0,ep,K5, p5,Iz_,ueG,w34,M2o,g3,A_Y,qF4,mk,yG,iw,zy,vpz,p3v,gpm,y_Y,muG,iI3,NUz,W9,d3,EQ,jp,Gy,P9,B9,duk,r3,sQ,Y_,$_,Xv,QG,Epv,R0,Di,OQ,Gaz,V2k,o0,c9,UQ,n5,tQ,H9,L5,$u7,Cvk,X3o,QFm,Fl,JD,RWY,Du7,kaJ,be,If,ue,wl,MD,v1,p$,yj,ND,OIz,opz,Go,hW_,YM,$M,xu4,LLC,ZIa,Jx_,Qj,Rf,Ua,uWY,MDz,woY,n$,Z8,Axz,tD,bB,Xl,v4k,qqa,A6,MI,C$,qI,vz,aD,awo,eX,KCa,gK,po4,yx,iB,zE,NI,g4z,mX_,yx7,fb,iGz,zlY,N47,jX,lwa,fwz,WCa,E4_,dXv,EP,GE,Vx,jM7,GbJ,VDv,PPa,Pz,B4z,Bz,eWm,azG,TE,rK,sP,Ye,Sqv,$e,Cb,Qx,sMC,Yqz,RD,RlJ,xe,CPm,QMz,OP,ke,Hz, Lb,DXC,Ic,kb3,u5,wb,OGk,hlJ,vj,UXa,eP,Ku,xXG,n43,mI,i5,LCm,JQa,b53,Nf,Ii_,zq,AQJ,pu,ZGa,Mqv,MpG,uvv,w9z,ADG,w1o,l5,Fkz,db,vMo,a8C,e64,KDa,p14,jP,gMk,VX,mD7,z6m,Nl7,Pj,Bj,Tq,XQ,f8G,QX,Rc,DL,WDG,dD_,oc,EMv,hz,cj,Vqv,Bla,rDa,TlJ,Sav,xV,ZL,Jv,I6,u3,w8,M6,Av,$Da,Cez,q6,X14,vR,a6,b3,eW,K2,p2,M8,g8,Qfa,y3,koY,i3,z5,N6,O$4,oM7,h6k,cDm,l3,f2,WR,d8,tq3,nMm,Z$J,H$7,LDa,EU,Fb_,UDC,jW,J6Y,bba,G5,u9z,wzY,MXo,A6z,qP4,BR,ve4,ark,eh4,Kbm,mI_,pz7,T5,r8,SW,sU,Y9,$9,C2,X5,ibz,DF,R6,k9,zhJ,OU,NKk,lrC,frG,Wbv,o6,cR,jDC, hv,GEC,UU,x9,VXC,n2,tv,ZF,HR,L2,FB,SPv,PBo,uF,r6m,wR,TKm,I2,JN,BKG,bF,AN,YPv,vt,ql,gR,mj,iF,Xz7,yu,lF,QDo,fM,$Iv,kEJ,Oba,oe3,E4,jh,Gm,hh_,Vu,Pt,Bt,Tm,c6a,rR,Sh,CM,UIa,xIa,XB,neo,Lbm,FIa,Hbo,JzG,buz,IL4,tXz,wjv,Qu,R2,DV,MPm,O4,ko,Azo,qsz,vVC,U4,aLo,xo,nM,eB3,tN,pja,ZV,KIa,gV7,mfo,yz_,Ht,LM,FV,Jh,bT,II,uT,iu_,wf,M5,Ah,zB3,lL7,fLv,vY,ew,aI,p_,gf,mx,dfC,EV_,yF,iT,zi,Gqv,VPz,Tb4,P5k,rzm,$fJ,N5,Ysv,Ssa,lT,f_,C5Y,WY,Xjk,df,RB_,Qc_,Dfo,kqv,VF,PY,OuY,oVC,hBo,BY,Ti,czk,rf,Ufa,xfo,tPz,F67,Sw,Jva,b2J,IFm,u53, wRv,$I,MWm,Avz,qUk,OG,kI,DA,v9C,aF_,eP4,oI,hh,cY,pR3,ZA,HY,L_,Fw,JW,bu,m6m,yvo,i27,IN,qB,vc,pL,gj,iu,N8a,fF4,lFz,W63,d6Y,dj,E9_,j6k,Pc,G57,VWk,P3a,B84,Su,Tv,sN,Yg,$g,T87,rv7,SUG,CL,Xw,s6C,Qf,YUz,$67,C3Y,RN,XRo,DG,kg,Q6o,RPJ,D6k,k5a,O23,o9z,ON,oN,hW,UN,U6G,xg,nL,x6m,cv7,cc,n9m,tW,ZG,Hc,FL,LL,tWm,Z2m,H2Y,JS,Fjz,bR,bMY,IVm,uBJ,wt_,MhG,ANG,q4Y,voz,w2,MN,AS,e$k,aVv,Kj4,ptC,v2,go7,a8,ml4,yNz,e7,Kq,pq,iMk,g2,ma,z$o,yC,iR,zZ,NN,lR,fq,W2,d2,NRa,lVm,fVv,Wja,E0,dla,j2a,Eo4,GZ,VC,Vhz,Gmz,TR3,s2m,S4G,P2,Y4G,$lz, CFa,Q2J,Xtz,R$G,B2,Dlz,kmz,r2,OMz,ook,h$o,cN_,S7,UlG,s0,xlv,YR,$R,thv,Cq,ZMz,XL,QC,HM3,Ljz,R8,kR,JhY,O0,Fxa,b_G,IA7,uVY,Mw7,o8,Ahz,U0,xR,vI_,aAm,pYa,gIC,nq,tS,ZS,H2,Lq,F0,Jy,bo,IE,uo,wi,Mw,Ay,zAC,i__,NfJ,fA3,lA3,d5m,yhJ,Wx7,m5z,qw,vQ,jIz,Giv,Vwv,p8,gi,mU,aE,BfC,yP,EIm,rhv,SGa,TfG,io,zM,Nw,lo,sIv,PTk,YGC,f8,$5Y,CTm,XY7,QIo,RAo,O_Y,oIk,hA4,chJ,EY,x5Y,nIz,Z_G,H_z,PQ,F2a,BQ,VP,bLo,JW4,wcG,qNa,ri,sY,vgm,aGa,eY4,K2z,gga,C8,$Q,mB_,pcY,iLk,Nj3,Eg_,RE,jNz,QP,kQ,Gvz,OY,hy,cQ,Vu_,PuG,Bjz,Jn,TjG,rWo,a3,SNk,YNa, eM,$BJ,Cum,kvv,Xcv,m5,yN,iG,Nr,lG,UB_,f6,WV,dD,ng7,G8,tua,ZLY,VN,L2v,BV,T8,rD,SM,Fav,sJ,$d,C6,X4,QN,JSY,DC,kd,OJ,o3,hn,cV,bqz,ISC,uLC,w2C,M73,ASk,UJ,q0_,F$,vRm,aSv,e8m,JE,Ip,uJ,wF,qj,vT,ap,p2z,pX,gF,mM,gR_,mNY,y9,yS7,iq3,zT,j8C,GZk,V7o,Nj,PR_,B2z,S0m,fX,Y0z,s8Y,dF,CRJ,X2Y,Q8k,j4,GT,R8G,V9,PT,BT,TT,rF,S4,sk,YD,$D,Q9,Rp,Dk,kD,Ok,DNa,kZz,Oqk,hE,Uk,oR3,Zk,HT,LX,FF,JR,IR,ui,xN3,w$,Mk,AR,t7o,nR3,h8v,aR,vx,FUz,eN,fl,zk,Wx,d$,b8_,wQY,jN,qYo,Mf4,Aya,a_z,mwY,ebY,pQz,gQm,Vt,Gk,yyk,Bx,Tk,r$,i8z,XF,zbY,Qt,RR, k6,Nio,oR,hR,l_a,cx,U6,WUa,tR,Hx,Ll,Ft,JC,b8,Ig,u8,wm,M1,EQv,AC,ag,vK,GM3,TiC,Po7,BiY,ryG,SYm,YYY,$wz,sEa,XQk,pw,gm,i8,QEm,Rbk,ye,zD,kMv,O8v,Uw_,cya,WK,dm,Ey,j9,GD,PK,nQm,tf4,Z8a,$q,Cw,H8Y,LUY,F5J,kq,Oy,og,Jno,b6a,u4_,MMY,xq,Anz,Zv,nw,Fs,JY,Ie,qJC,ae,eR,KD,pD,mH,yb,zl,pVv,gd3,la,mrz,ynY,W$,i67,z4m,dZ,El,NDo,lCz,W5a,P$,EdJ,j3Y,Gl,G87,VMk,BDz,PGk,SR,drv,rnm,SJa,Qb,CD,s33,YJ_,Re,DZ,$rv,CG_,oe,XVa,Q3a,R44,Dra,nD,k84,O6k,oda,h4z,cnC,Urm,xr3,ndv,ZZ,tM7,LD,H63,L5o,FMm,JE_,bX3,Fp,MK,u$Y,AE4,AB,qkY,akY,IkC, ezm,KMm,pT7,wTk,M4o,JB,bC,wL,vDa,uC,IK,gDk,mj3,yEC,iXo,zzJ,NFz,EDz,lkC,e6,KA,gL,V44,TFY,BF3,pA,fA,rEo,EZ,Sk3,Yko,Br,spz,oD_,$ja,OXC,sZ,hzz,xjz,YP,S6,cEY,Ujm,nDz,CA,ZX7,HXC,LMm,F1m,JRa,bla,I$m,t4v,wxa,MN4,ARv,v6o,q6k,eyz,DD,K1z,kP,OZ,oK,px4,g6z,UZ,xP,yRa,mk7,nA,ilJ,N$m,f$Y,l$z,W1J,jRa,dk3,Mq,vB,qq,Gk4,AA,gP,mA,yv,VNa,Pia,zf,T$_,fJ,l0,dP,Ew,jZ,rRJ,Gf,PB,S6z,Tf,SZ,YB,sRz,Y6C,$k_,Ci_,$B,XT,Xx3,Qv,Ru,Dn,RyJ,kB,Ow,Dka,hA,xB,Uw,cB,nJ,tA,o6m,tNz,HlG,n67,xk3,ZlJ,LJ,b$,bwG,L1_,Fuv,JC7,Olv,efJ,KO,ava,gqa,vq3, HB,pO,MY,aO,Kuz,u$,cR_,hyJ,UkY,Jk,qyz,i$,lvm,zd,Wua,d1C,Eq7,l$,jg7,GD_,V9J,Bmz,TmY,dQ,SyY,ET,sgm,Yy4,C8_,XKC,Gd,Qg4,D13,V7,kD4,P8,B8,MP,U14,Hw_,$W,FHm,IZ_,Xn,w$_,MR3,AYk,ql7,nO,vuv,UT,PJv,hk,xW,c8,Q7,I4,bA,wV,Ar,eUz,qc,a4,e0,KHo,p$z,gV,mPC,yYa,iDo,zU7,NZJ,lZJ,fZ_,WHo,dPk,Eu3,zh,jek,Nc,fr,Gl3,VRz,Pak,Wi,BZ7,TZz,Gh,Vr,Pi,rYY,Bi,Slv,rV,Ylm,sea,sj,YS,$S,Cr,$PY,XX,Qr,Caz,X$C,R4,DU,kl_,Qe4,DPa,RUJ,kS,Oj,o4,ODk,ouC,hU4,hr,UPa,tR_,nua,ci,Uj,xS,nr,tr,Hi,Lr,FY,J5,bD,IJ,uD,ZDv,HD7,LHY,wJ,M_,A5,q_,aJ,K0,bAG, JB3,gJ,ID7,mN,ym,iD,zg,N_,WL,dJ,EV,j1,Gg,Vm,PL,BL,Tg,rJ,S1,M6z,Yy,C0,AB_,XY,vPz,aDz,eoa,prz,mKv,oJ,yBz,cL,h5,NL3,lDk,fDm,n0,t5,dK_,HL,L0,FH,Kp,jKa,pp,mK,yk,GSm,iq,EPG,zp,NG,PCC,V6Y,lq,fp,Wf,da,jl,TLm,rBY,Vk,Pf,Tp,ra,SZm,Bf,$KC,CCv,XrG,QKk,Roo,DKz,kSz,sz,Sl,YZa,ho_,Yk,UKk,xKa,Rr,nPz,Cp,XH,t6G,Dj,HA3,FAm,kk,Oz,JAm,or,InG,ho,vBC,AAo,uTJ,MZa,wBk,Uz,xk,np,to,Zj,Hf,Lp,J3,ew3,gBY,uH,Lx4,wE,mqC,iJG,A3,et,qJ,aW,vA,ln3,NPC,zwv,fnz,KQ,WA_,Gfz,pQ,m_,P03,yK,iH,zc,NJ,BPo,lH,TPz,rA_,WA,Gc,VK,PA,BA,Tc,rE,St,YF,$F, CQ,XS,QK,RW,Sw7,suG,Dy,kF,Ov,oW,h3,cA,Yw4,$qz,Uv,A$,Quz,Rw4,qs,vP,mT,yo,kfm,Ns,WP,OJC,hwm,oBY,cAz,UqJ,xqJ,nBG,tZv,ZJ4,LAa,HJa,Fiz,I4o,w8G,bOG,EH,jk,Akv,MQm,GI,Vo,PP,vWa,BP,TI,r0,ei3,Kiz,Sk,a4z,sH,mYm,YG,$G,Cg,XU,Qo,R1,D5,kG,OH,o1,h$,cP,UH,xG,ng,t$,Z5,HP,Lg,FA,Jp,bQ,Id,uQ,wT,MR,Ap,qR,vM,ad,eK,KK,pK,gT,ms,yD,iQ,zu,NR,lQ,fK,WM,dT,Et,jK,Gu,VD,PM,BM,Tu,rT,SK,YY,$Y,CK,XA,QD,Rd,Dt,kY,Ot,od,hp,cM,Ut,xY,nK,tp,Zt,HM,Fu,Jj,iOa,bL,Z,Ii,LK,uL,wX,Me,NQJ,qe,f4C,Aj,Wia,ai,dYv,KT,vq,pT,gX,mO,iL,jOJ,Gda,VQa,P$G,G0, VS,Wq,Pq,TQv,rkz,STY,sOv,EWa,YTz,yS,$Yz,C$m,T0,$X,rX,Ne,X8C,z0,Bq,SB,CT,Riz,lL,fT,YX,sn,DYY,Xu,QS,Ri,DY,kdz,kX,On,oi,hj,cq,OO3,oWC,ckz,UY7,nT,tj,ZY,Hq,HOY,Fh4,brv,IUm,FK,wiC,M0a,MC,Ar_,As,qC,v7,aV,er,Kd,qj7,aUv,eeG,vS3,KhC,pia,yp,i6,NC,fd,W7,dq,Eh,gSm,jr,Gs,zs,B7,Ts,rq,Sr,mcY,P7,irz,sh,zek,NVa,Y5,lUY,$5,Cd,fU_,Wha,XK,dc3,ESz,Qp,j4a,Gh4,V0z,PAv,RV,DQ,BVz,TV7,k5,Oh,oV,rra,hs,c7,Uh,x5,Sjz,nd,ts,s43,ZQ,Yja,H7,$ck,CA_,XiJ,Q4Y,Re7,Dca,Ld,kho,Ork,oS7,Fk,heG,J1,cr7,bO,UcJ,IT,xc_,nSY,uO,v4,t0o,aT,eg,KF,pF, Zro,gk,mY,yZ,Hrz,Lh3,zj,NM,J5_,lO,b0k,II_,FNk,uYk,wLz,M1_,W4,A5k,dk,E5,jg,Gj,qVa,VZ,P4,Tj,vyv,rk,Sg,aIa,Yz,Xk,$z,kz,O5,eE4,oT,KN3,c4,U5,xz,pLz,t1,Zf,gya,LF,F8,RT,JG,b1,Il,m_J,u1,wu,Mt,y53,AG,qt,ve,al,es,X8,Qh,Rl,DO,i0_,zE_,NJJ,lI_,hG,kn,ce,Uo,fI3,WNz,d_v,xn,nB,tG,EyC,jJa,ol,Ggv,V1z,ZO,PD4,He,LB,JV,bp,IY,up,wM,AV,qO,aY,eY,Kx,px,v5,r5k,SVa,mS,yL,ip,sJ7,NO,$_v,lp,fx,CDY,W5,dM,ER,GA,XLo,jY,VL,P5,B5,QJm,SY,D_m,kg_,O0J,sR,YO,oy7,hEo,c5a,$O,x_G,zA,U_k,nym,Cx,t1z,XC,Z0m,QL,H0J,LNG,FKG,Joa,bpv,RY,uHv,IjJ, D0,oY,wfC,hV,Ml7,c5,Ao3,qz7,UR,vkm,ajv,eJ7,KK3,xO,pfG,nx,mGa,Z0,H5,ipY,yo3,zJ_,Na_,lj7,Fq,Jb,bg,fj7,WKm,dG3,Ek3,jrC,Gp_,Vlz,Pq7,Ba4,Tak,ug,wI,roY,Szv,Mh,Ab,srC,qh,vS,ej,Yz4,Ki,pi,gI,$Ga,mq,Cq7,yc,Xfo,ig,Qr7,RJG,zJ,DGo,kp4,Op4,Nh,lg,fi,WS,dI,okC,hJ3,EC,jj,GJ,coa,Vc,PS,BS,TJ,rI,UGG,xGz,Sj,sC,nkY,YA,$A,Ci,Xq,hiY,tla,Zp3,Qc,HpJ,LKz,F_z,RS,DM,kA,OC,oS,cS,UC,xA,ni,tb,ZM,J3J,bQ4,uM,wc,Iym,ME,NE,qE,vFv,mJ_,aya,y3Y,zMC,NEY,iQC,lyC,fyz,W_G,S5,jWo,Vt4,BE_,TEC,r3a,$8,CU,sW_,Yv3,QWv,Xj,RM_,$JJ,QB,Rk,Dp,k8,kc7, hM4,OQG,xJ_,J$z,FT3,nFo,bg4,ok,ZQ3,ttm,wPa,qHa,A$4,KT4,vGz,hI,cF,ig3,nU,zcv,j1J,EGG,dsz,WT7,l5z,Pxo,Vkm,f5k,s1Y,SH4,YH4,FZ,XPJ,$sG,Cxv,N0o,Q1m,RcJ,tI,HF,T0z,B0z,r$k,Dsz,Zp,GIG,OgC,hc_,Uso,nGo,Hga,LT_,Jpz,bKa,uA3,It4,vYz,MKz,wMo,at3,pMk,gYa,mRY,yp_,ey,GcG,NT3,iKz,gw,Wso,y6,EYa,jdk,dRz,iS,Gua,z2,N0,pd,lS,EF_,fm,WN,dw,VKY,PQY,Ep,BT3,TTY,rp3,jy,G2,V6,PN,BN,T2,rw,Sy,sp,Stv,sdJ,Yf,YtY,$f,OR,Cm,XZ,CQG,$RJ,Q6,XMJ,Qdo,Rn,DX,Rxz,kf,DRa,kuk,PHz,fta,OK3,Op,gq,xX,Jc,oYv,hxm,hc,y$z,Ux,cp3,Km,pm,In,bS,Ox,ww,tka, Fs7,uS,pPz,exk,URa,I5C,HQm,cN,lt_,Y8,nYG,xRo,DJm,Zgv,tKv,Ks_,vN,gGY,msa,Mkv,xs7,c$3,UJ4,oFa,XAv,CH7,Sva,kI3,L_4,Apz,a5Y,ecz,Ac,q0,M0,qt_,oGm,HKJ,ZKa,Up,xf,nm,tc,ZX,Fa,Ix,uf,wB,A8,q7,HN,Lm,M7,FO3,Ls7,vX,ev,JjC,bTm,Ka,pa,gB,mB,yA,zR,N7,lf,MBm,WX,fa,Ajv,uu_,wqk,qnJ,dB,Er,vXz,aYk,jv,eKv,wZ,pq3,KOa,mez,iTk,zK_,yjz,NX7,WOv,rB,Sv,dek,EX7,sr,$T,jiz,G0z,VBz,PLY,Xa,Rx,Do,TXv,rjz,Ynv,CL4,XqC,$ez,ox,cX,h8,QiC,RKm,kT,De_,k0z,OT_,oX7,Or,xeY,nXG,tBY,Uez,cjk,hKY,ZTz,HTa,Snz,LOz,siY,F8z,Jsz,w7Y,bdz,IQa,uKJ,qho,Mr4, Asz,v54,aQo,xT,p7C,epa,g57,K8m,mC4,ysk,id3,zpJ,NqG,lQ7,fQ7,W8Y,dCG,E5z,jVa,Gsz,na,P6o,BqY,Tqa,Vro,rsm,Shz,$CJ,Zo,Fh,b9,C6z,It,u9,w_,DC7,Oda,ks4,hpo,L8C,pk,At,o5m,Rpz,QV7,X7o,Kk,qv,ea,zK,Nv,bFz,l9,fk,i9,Mgv,Ifz,uk7,A1a,Wd,d_,vzk,GK,VJ,Pd,Bd,TK,r_,Sa,af3,eZ3,sS,YZ,Ck,p4J,gzv,$Z,Xh,iFz,zZz,QJ,Nko,kZ,lfC,OS,ht,ffz,ot,cd,WY7,xZ,EzJ,jTo,tt,ZT,bU,Vg4,Lk,IA,wG,PO3,AM,JM,uU,Bkm,qx,Tkm,v6,r1Y,Hd,Fz,Gja,Mx,aA,S5C,sT_,eo,Y5a,Ko,po,gG,mc,$M_,iU,y4,zC,Nx,COz,X4a,lU,fo,W6,dG,EL,QT7,jo,GC,RZ7,DMY,V4,P6,B6,OFG,kjv, TC,ozv,hZY,c1G,rG,UMm,xMz,nz_,tg7,ZF3,So,sL,Ym,$m,HFa,LYC,Xz,F4_,Q4,RA,JGk,bBk,Dc,IOm,u8_,qoC,vnv,wez,MsG,AG7,OL,oA,hM,c6,aOa,ega,UL,K4J,gna,pez,Zc,tM,yGG,iBo,zgC,NuG,H6,lOv,F1,Jg,fOC,dta,EnC,IZ,Ag,P1k,ZdY,vd,Tua,rGC,Soo,slC,YoG,Mv,uI,$tv,aZ,e$,Qlm,Rgz,DtG,KW,hgo,knY,OBv,Utv,xtv,pW,nna,cGv,tsv,gd,mt,yy,ZBz,HBm,iI,zF,L4a,NQ,FSC,lI,qQ,ED,JVm,Hdk,csY,j$,GF,PG,BG,TF,rd,S$,Vy,CW,I0z,RZ,uCo,w5o,MYv,AV_,qRY,D1,a0m,kj,KSa,OD,gOG,mO3,p5m,eRa,yV3,ixY,zRC,xj,NMz,l07,WSG,nW,J1a,Z1,EO7,GAo,g_,VYk,Ppa,LW,TMG,at, BMa,UC3,n5z,trG,dOz,F_,JP,bb,rVm,SR3,Iw,sYz,wN,Mn,AP,qn,vu,YRm,aw,e8,$Oa,Cpv,KH,pH,gN,m$,yi,ib,QYv,X57,zB,RRY,kAY,Nn,Ox_,DO4,X_,$2,Qi,D7,k2,cG,oOk,Zxz,En,CH,cu,Jbk,IMC,j8,tP,E7,Z7,FR,Y2,Ji,qCY,br,IH,vAz,aMz,eaz,KqY,ur,pSo,gA4,w7,mhm,lMz,NIz,ybm,zaJ,iik,MF,fMa,Ai,Wqk,dha,jSa,GJ4,Vj3,SCz,KC,pC,$h7,g7,mZ,Cg3,Rao,Dhk,kJ4,Oik,yE,oA3,cba,Uhz,PC,bUz,Zik,Him,ujk,BC,wFa,AIv,M54,qx7,r7,Y$,v8a,Tt,$$,CC,apk,KeG,mEm,k$,U9,HC,Jw,PMz,Bca,wS,uE,qb,vE,TcJ,skm,Sx4,YxY,ei,aU,CMk,XF3,Qk_,DEk,$E3,gS,RSG,kXa,OU7,iE,ze, hSa,DR,pY,m7,lpC,eSz,E8_,EW,Aw,$s,LC,QR,RU,Dh,uZ_,IXa,Fc,OW,oU,Myk,hw,Aca,qpG,bE,cE,rIa,xs,t54,Mb,vf3,iU3,yIY,pFJ,nY,Zh,Nwz,zGa,fXC,Wz_,Ja,Ij,uy,by,MZ,Aa,d0_,qZ,jnY,vp,Vyz,KE,G2a,pE,gO,rcC,md,Ypm,$0_,zP,CSz,Qn7,TP,SV,sf,$J,RGz,CE,XE,kJ,Of,oj,ha,D0Y,cp,Uf,hGm,xJ,nE,cca,U0a,ta,x0G,nfk,tyC,Zm7,Zd,Hp,Hmo,FBz,JH,bX,we,MV,J8z,AH,qV,vl,aa,ed,bao,Io_,Kc,uaz,wXv,pc,A8z,Mvo,qrm,ge,aoz,vTa,mg,e2k,y5,iX,KBv,gTG,m7G,z9,NV,lX,y8m,fc,z2v,de,NB7,loz,Wl,Ee,jd,G9,ETz,GRG,foJ,jxo,Vv3,WBz,d7k,PfC,BB3,Bl,TBk,Sro,$74, XX7,Cfa,Xy,Cc,Dm,R2m,k7,Oe,oa,kRo,hH,Oa3,D74,cl,c8o,Ue,x7,U7o,nc,x73,tjz,JI_,tvJ,nTm,Hak,ZaY,LBz,Zm,Fp7,Jtz,bkJ,wda,Fx,J9,bh,Atv,aTC,wg,M$,A9,KpJ,edo,Ih,pdm,gZY,mvz,ika,q$,GK3,Kv,pv,SS7,re,YS_,$va,C9k,XdC,Qt_,mw,Rd_,y8,ih,zL,DvJ,fv,kKk,Okz,Ws,dg,oZ7,hda,cta,UvC,xvz,Ed,lh,nZ7,jI,Zk_,HkG,Lpz,GL,Fc_,JMC,bo7,IcJ,uzk,w63,Mov,AMk,qLm,vmJ,V8,euC,Ps,Kc7,TL,gmC,sd,acG,Bs,Yi,$i,Cv,Xx,Q8,Rh,mxz,Dq,yMo,Od,fc3,Emk,jAo,GCC,Voo,cs,PUJ,dx4,lcY,BGv,oh,TG7,SLz,ki,h9,zuk,NGm,Ud,sAa,YLz,WcY,iov,$x7,nv,CUC,t9,Zq,X6v, Hs,Dxo,QAz,Ru3,Lv,kCk,Fo,Ju,b2,Io,OoG,omv,hum,u2,Uxz,xxz,w9,nm7,Md,Au,toa,Zo7,Hoo,Lc3,Ft7,Jgm,M$a,I1J,sxY,v0,qDo,vjm,u1Y,wGa,bWa,K7,gja,e3,ao,AgG,ygm,pGa,Ktk,e0G,a1z,g9,iWo,T9,mV,yO,i2,z04,z1,Ndo,Nd,l1C,Ra,f1o,l2,se,$7,r83,d9,j3,Eja,jZz,G1,P0,EE,W0,T1,f7,WtY,dQa,r9,GFG,V$z,SI,p6v,Sd,S3,PIG,VO,Bd3,Tdz,rgz,SDo,sE,Ya,$a,YDa,$Qk,CIa,XGz,QZ7,rMa,Xo,QO,Ro,C7,DQv,oTz,h2o,D6,kFm,OW3,ojm,h0a,ka,cg7,OE,UQ4,nja,oo,t$_,ZWo,c0,HW3,hu,gC,JPv,F$k,u_3,I7C,wuk,M8m,bHJ,my,Ltm,APC,y1,q7_,e1G,v2G,a73,z6,taG,K$z,puz, g2z,mn7,yPz,NU,lz,fS,iHJ,Wv,dC,z13,E_,NNm,l7Y,jS,f7k,W$z,dno,E2z,G6,vZv,V1,V8o,Pv,GB_,Bv,Pbz,qSm,uh,BN_,T6,SS,S7z,rP7,DJ,O_,kb,Y74,hf,$n_,Cb3,cv,U_,Dnv,Qw4,kB7,OHm,o2z,h1k,cP_,xnz,n2m,t87,Un7,nS,rC,HH_,Xuz,L$C,R1a,tf,Jia,ZH_,xb,bC4,IRa,MEm,aRo,AiY,eCz,v$7,KZm,uRY,ZJ,pC_,wCJ,JX,iCY,N7o,zCm,lRG,fRC,WZv,yi3,dFz,E$v,Hv,jHJ,Gt4,VEC,PrJ,ri_,T7_,B7_,Im,S9_,Y9o,$FC,Cr_,XCo,MS,AX,rg,QH7,RCz,DFk,o$z,OCv,ktz,hCk,UF7,xFk,ciz,FJ,UE,tEk,ZCm,HCC,wEv,Jw4,bYY,Iho,Mi4,qWz,mQo,um,F74,LZ_,Awz,Q5,ucG,qd,Y7,q9a,pEG,K74, gso,mbv,ywo,iYa,sH7,tu,xa,ahC,zLa,eL7,NSv,xQm,lhY,mFY,g$o,vsz,n7,am,eA,W7z,Kj,dbo,Esa,jUz,GeC,Vi_,BSa,TSm,YWG,rwG,sUo,$ba,gr,RL3,XE_,QUa,OYz,osJ,hLa,cwa,Ubo,pj,xbz,kek,CEv,mQ,ns_,SW7,tio,yT,HYk,L7J,Fda,ZYG,im,I6a,bEa,M3k,w0_,uoa,Auo,qEk,z$,vaC,a6m,KVz,p0_,eN3,gaC,N9G,yuJ,i7G,zN_,l6G,f67,WVY,Ea3,ddo,joJ,G1o,V3z,B9_,T9m,SEm,ru4,so_,P23,YEz,C2a,X03,RN_,k1J,Qov,fj,O7a,oa3,$dC,hN3,Ddo,Wg,cuk,UdG,xd7,naz,t3G,Z7z,H7z,Fy7,bSo,IJz,uda,wv7,MSv,Ei,Afo,jA,vbJ,aJm,KyY,Bg,gbz,mUm,yf3,iSJ,NC3,zHJ,Wyz,dUY,T$,SA, lJC,fJz,EbC,YU,G6C,j7z,VS7,Pzo,BCa,S_a,TCY,$Uv,$U,rfk,Cza,Cj,DUJ,QT,Rm,k6m,XJ,OSm,DW,cfG,hHo,Q7C,RHJ,UU_,xUz,nbk,Xvv,tSC,kU,ZS_,obk,pv4,si,LyJ,om,FQ_,JXo,bjY,IWa,uJY,wgv,MAv,AXk,qik,vUa,hX,aWY,era,pgG,gUY,mS4,KQC,yXv,ijG,zr7,Nr7,lW3,xU,fWv,nj,TJ_,WQa,dS3,tX,EUo,jm7,Hg,Pmz,Br7,Lj,rXG,Si7,Trm,VAo,FI,ZW,G$z,IX,bt,smk,ut,JZ,Xg7,DS4,OjJ,oUz,cXG,$SG,k$_,US7,Cm4,xSz,nUm,vO,wo,Zj7,tAG,AZ,FPa,JZY,RrJ,Qmv,LQC,b1_,hrC,Yiz,aX,eL,K1,IxC,p1,vco,ML_,axz,AZa,wOa,eOY,uI7,mg7,KPm,go,yZ7,zOm,lxz,fx7,WPG,jXG,zx,Gx3, dgm,qg,Bo3,ToJ,E$,FZa,mP,rZ7,S$7,Y$G,sXm,$gG,Pto,lt,Ctz,XO_,QXo,DgG,ROa,n$v,kx7,Ng,O1J,hO3,ocz,UgC,cZo,NoG,ncz,xga,f1,yM,tLk,Gx,H1G,LPa,FXC,J2m,bV4,jL,mdm,Ecv,Iga,fha,Mg,uN_,wUv,Mn7,A2Y,qO4,VM,PO,agC,eT7,KXa,v0a,pUz,BO,iVC,maz,y2_,zTz,Tx,NAC,lg_,fga,ro,WX7,E07,jsa,GN7,SL,da3,s$,Yc,Vn4,Pda,XI,$c,C1,BAz,QM,TAa,r2k,SOC,YOk,ssG,hZ,Cdz,XUo,$aY,Qso,cO,RT7,U$,DaY,xc,kNz,OVk,Ua7,c2z,tnY,o0J,xaJ,n1,hTo,n0k,ZVJ,HVk,LXY,FGk,Zx,Jqa,FN,HO,bnC,J2,bd,uG_,ud,wA,wmY,Is,McG,Ma,qbG,Aqa,qa,vU,as,eqa,vro,abo,en,KG3,yqa, grG,pm7,mHa,KV,zqm,fbm,WGJ,pV,dHz,ErJ,Ns_,lbo,Vca,P_J,Bs3,Ts3,rqa,Sba,yl,C_a,id,YbC,$H3,DH3,mX,zN,Na,s9G,Xm3,k4C,ld,fV,On3,orY,hq7,WU,cqk,UHv,xHv,nrG,tcJ,Zn4,HnY,Jd_,LGa,b9C,IB4,wy7,MO4,sO,K9Y,q3a,v3J,py3,g3z,eQz,Adz,m24,i9k,yd_,zQo,E33,$0,VOY,T1a,B1C,P7m,W9a,d27,N1_,lBY,jQ_,CV,XN,S3a,dO,PSC,sQv,Rs,k0,$2J,Y3G,GUa,Xyz,QQJ,RQz,OO,D2a,t2,O9z,o3_,hQk,U24,cdk,x2m,Zg,HU,n3C,H9G,L9k,Jq,Z9o,FWa,JUv,tOa,b_,ws,beY,IuG,u_,ufv,whz,Mez,AUC,vN3,qKm,KWz,ph3,auz,mpz,yU_,eXa,qH,vm,ie4,Nha,a9,zX7,lua,WWY,fuC,dpz,ec, ENk,jza,G3G,Kn,pn,PKC,Vem,Bh7,ThJ,SKG,rUk,szo,YKz,$pk,CKz,Xho,RXY,mG,gs,y$,Dp_,k3Y,Qza,Upa,xpm,nNC,Hez,Zem,tea,LWC,FJm,i_,z4,J74,bRm,IPC,um3,MU4,A7k,l_,qgm,NH,Wm,wnC,vvJ,aPJ,eD_,KJk,pnk,Eb,gvm,mia,zDa,jc,N6m,iRa,G4,V$,lPG,fPv,diz,jLz,WJo,EvG,Bm,G7z,PYz,B67,r77,SgC,T4,rs,sL_,VUo,CYJ,$ik,Ygz,Sc,sb,QLJ,XnG,Yr,$r,RDz,Cn,Dik,k7Y,ORz,XG,ov3,Q$,hDa,R9,Db,xiv,nvC,tU7,HRY,LJv,F0v,ZRk,b43,JFa,INo,Mbz,o9,quz,AFa,u6o,wIa,vE7,aNa,hq,cm,enJ,K0Y,pIC,gEm,mmz,yFa,zn3,Ntv,Vb7,W0a,dm7,lNk,Bt4,Hm,Fi,sBk,IQ,u7,Yu7,TtJ, Zb,Ad,M2,Jd,CjC,q2,QBY,DmG,RnJ,vy,b7,tq,XIa,w1,rF3,$ma,O4G,Ub,aQ,oEJ,hnz,Ln,Suk,eO,K9,cFa,p9,g1,m9,Umk,xmC,tba,Z4k,nEm,yw,L0J,H43,i7,FfG,zU,N2,J0G,bto,IsY,u2a,w_v,A0z,vlY,qcz,M_m,l7,asa,Kfv,e7_,f9,Wy,p_Y,myv,y07,d1,gl7,itk,z7z,NHG,ls3,fsm,Wfo,dy4,jO,GU,jqa,ElJ,Gz7,Vw,Py,V_C,Psv,THa,BH7,r0C,TU,Sc3,sqz,SO,Yca,$yo,CsG,X_o,Qqv,R7z,kzJ,Ot4,olm,DyJ,h7C,c0_,Uy_,xyG,nla,t_7,Zta,Htz,Xi,Lfk,Fna,JKz,u3k,qMv,Mxo,I3Y,DB,wZG,bZm,AKY,k3,a3m,vxk,O3,e93,Kn3,pZm,NS,gx3,Npz,l3C,f3m,oQ,Wnm,cy,bm,dTk,U3,ExJ,hd,jC7,GQ_, SMo,Hy,L9,JU,bK,YMk,sC7,Vx_,Iz,$T_,CNk,QC4,uK,R93,DTC,kQm,Ff,ox7,OZz,wh,Tp_,td,h9C,cKv,UTm,xTY,PNz,Bp3,ZB,nx4,Ln4,Frv,bs3,HZ7,wbo,V5,Pl,LS,qA3,vtG,Ala,aKz,JlG,MFk,txz,eI3,urz,Kr_,IKC,B0,sZk,HjJ,Mp,iz,ZZY,gtz,zI4,qp,NnJ,lKY,ylJ,az,fK4,Wr7,pbv,d3z,isa,Etz,ee,vh,j54,VFo,GYa,AU,BnC,gh,Tn4,Ke,mW,pe,yd,VLv,rlC,YAa,s5z,CZ7,Xb7,$3k,z3,iK,RIv,D3a,kYz,ZsY,U33,x3_,hIk,Fvk,ot3,fe,Ilz,JOm,uMa,wHG,MGo,dh,EK,vh_,qIm,AOv,G3,tFk,T3,e3Y,Bh,je,pHY,yOa,ihG,Lra,gha,sK,z33,ntC,alk,Vd,Nxk,Wh,llY,flz,WvY,Ce,Xf,Kvk,dzJ,Ehv, Qd,Rz,j_z,Ph,bha,GO_,VG7,Pl_,mz_,Bxz,rh,Tx3,Se,eV,rO7,s_C,Du,kN,YIa,$zC,Cla,$N,YN,XHm,SAa,Q_a,R3_,Dza,kO4,OhY,OK,oz,cOm,nhz,Zh3,h3z,wD4,MHa,ATa,q8G,vwv,aEm,eVz,pDz,KlJ,hU,ch,UK,gwz,mAo,yTC,kO,iNk,xN,zV4,ne,tU,fF,Zu,Un,Nva,mz,zxo,lE_,x8,fEo,TA,rM,on,Wl3,dA7,Ew_,jvv,GH3,Hh,P4v,Bv3,Le,J7,bY,Tvk,svC,Y8C,IL,$A3,rTz,S84,C4m,XD4,QvJ,RVo,DAa,uY,ONz,yr7,l6,tV,owz,hVG,Lx,kHY,Vp,cTC,UA7,xAJ,w6,gM,tH7,ZNz,Mi,A7,HNa,qi,LlC,Fm,Fmo,J4Y,REJ,vn,aL,bya,eU,KR,I2a,pR,uOC,g6,mJ,wwo,MC_,gkv,ya,A4k,vH_,q2G,iY,a2C,z7,Ni, ejm,Kma,pwG,gH3,moG,y4C,iy4,NW7,fR,zja,l2z,f2z,Wmo,do_,VCC,EH7,j$k,GW_,BWz,r4C,S2_,s$C,TWC,Wn,Y2o,$o3,Cn4,Xwz,Q$C,Eg,Rjz,jU,G7,Va,DoC,kWa,oHa,hj3,c4z,Uo4,nHk,xoo,tC7,Pn,Bn,Lmv,Zyo,Hyz,T7,F3_,Jmk,r6,SU,bPo,sg,I9C,Yv,uDk,$v,CR,wJk,Xm,Qa,MTk,Am3,RL,DP,qBJ,kv,v1o,a9Y,cn,e_m,K3z,pJ_,ym4,mWz,Ug,iPo,z_3,NzY,dJz,g1a,f9J,W3a,E1z,Fok,aG;bk=function(F){return function(){return Fok[F].apply(this,arguments)}}; g.IG=function(F,J){return Fok[F]=J}; JJa=function(F){var J=0;return function(){return J<F.length?{done:!1,value:F[J++]}:{done:!0}}}; b3v=function(F){F=["object"==typeof globalThis&&globalThis,F,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var J=0;J<F.length;++J){var b=F[J];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");}; K3=function(F,J){if(J)a:{var b=g.q4;F=F.split(".");for(var I=0;I<F.length-1;I++){var u=F[I];if(!(u in b))break a;b=b[u]}F=F[F.length-1];I=b[F];J=J(I);J!=I&&J!=null&&aG(b,F,{configurable:!0,writable:!0,value:J})}}; IaC=function(F){F={next:F};F[Symbol.iterator]=function(){return this}; return F}; g.z=function(F,J){F.prototype=u73(J.prototype);F.prototype.constructor=F;if(p3)p3(F,J);else for(var b in J)if(b!="prototype")if(Object.defineProperties){var I=Object.getOwnPropertyDescriptor(J,b);I&&Object.defineProperty(F,b,I)}else F[b]=J[b];F.k7=J.prototype}; g.N=function(F){var J=typeof Symbol!="undefined"&&Symbol.iterator&&F[Symbol.iterator];if(J)return J.call(F);if(typeof F.length=="number")return{next:JJa(F)};throw Error(String(F)+" is not an iterable or ArrayLike");}; wao=function(F){for(var J,b=[];!(J=F.next()).done;)b.push(J.value);return b}; g.W=function(F){return F instanceof Array?F:wao(g.N(F))}; AJJ=function(F){return MzJ(F,F)}; MzJ=function(F,J){F.raw=J;Object.freeze&&(Object.freeze(F),Object.freeze(J));return F}; gY=function(F,J){return Object.prototype.hasOwnProperty.call(F,J)}; qmz=function(F){if(!(F instanceof Object))throw new TypeError("Iterator result "+F+" is not an object");}; mo=function(){this.V=!1;this.Z=null;this.U=void 0;this.C=1;this.D=this.W=0;this.N=this.T=null}; ik=function(F){if(F.V)throw new TypeError("Generator is already running");F.V=!0}; z_=function(F,J){F.T={uO:J,I_:!0};F.C=F.W||F.D}; g.T=function(F,J,b){F.C=b;return{value:J}}; vCo=function(F,J,b){J=g.N(J);var I=J.next();qmz(I);if(I.done)F.U=I.value,F.C=b;else return F.Z=J,g.T(F,I.value,b)}; g.N4=function(F){F.C=0}; g.lk=function(F,J,b){F.W=J;b!=void 0&&(F.D=b)}; g.f3=function(F,J){F.W=0;F.D=J||0}; g.Wa=function(F,J,b){F.C=J;F.W=b||0}; g.dY=function(F,J){F.W=J||0;J=F.T.uO;F.T=null;return J}; g.Em=function(F,J,b,I){I?F.N[I]=F.T:F.N=[F.T];F.W=J||0;F.D=b||0}; g.jz=function(F,J,b){b=F.N.splice(b||0)[0];(b=F.T=F.T||b)?b.I_?F.C=F.W||F.D:b.gD!=void 0&&F.D<b.gD?(F.C=b.gD,F.T=null):F.C=F.D:F.C=J}; aak=function(F){this.C=new mo;this.U=F}; ev3=function(F,J){ik(F.C);var b=F.C.Z;if(b)return G_(F,"return"in b?b["return"]:function(I){return{value:I,done:!0}},J,F.C.return); F.C.return(J);return Pa(F)}; G_=function(F,J,b,I){try{var u=J.call(F.C.Z,b);qmz(u);if(!u.done)return F.C.V=!1,u;var w=u.value}catch(M){return F.C.Z=null,z_(F.C,M),Pa(F)}F.C.Z=null;I.call(F.C,w);return Pa(F)}; Pa=function(F){for(;F.C.C;)try{var J=F.U(F.C);if(J)return F.C.V=!1,{value:J.value,done:!1}}catch(b){F.C.U=void 0,z_(F.C,b)}F.C.V=!1;if(F.C.T){J=F.C.T;F.C.T=null;if(J.I_)throw J.uO;return{value:J.return,done:!0}}return{value:void 0,done:!0}}; Koz=function(F){this.next=function(J){ik(F.C);F.C.Z?J=G_(F,F.C.Z.next,J,F.C.Y):(F.C.Y(J),J=Pa(F));return J}; this.throw=function(J){ik(F.C);F.C.Z?J=G_(F,F.C.Z["throw"],J,F.C.Y):(z_(F.C,J),J=Pa(F));return J}; this.return=function(J){return ev3(F,J)}; this[Symbol.iterator]=function(){return this}}; pav=function(F,J){J=new Koz(new aak(J));p3&&F.prototype&&p3(J,F.prototype);return J}; gCJ=function(F){function J(I){return F.next(I)} function b(I){return F.throw(I)} return new Promise(function(I,u){function w(M){M.done?I(M.value):Promise.resolve(M.value).then(J,b).then(w,u)} w(F.next())})}; g.S=function(F){return gCJ(new Koz(new aak(F)))}; g.Ba=function(){for(var F=Number(this),J=[],b=F;b<arguments.length;b++)J[b-F]=arguments[b];return J}; m4a=function(F,J,b){F instanceof String&&(F=String(F));for(var I=F.length,u=0;u<I;u++){var w=F[u];if(J.call(b,w,u,F))return{zy:u,mZ:w}}return{zy:-1,mZ:void 0}}; T_=function(F,J,b){if(F==null)throw new TypeError("The 'this' value for String.prototype."+b+" must not be null or undefined");if(J instanceof RegExp)throw new TypeError("First argument to String.prototype."+b+" must not be a regular expression");return F+""}; Sz=function(F,J){F instanceof String&&(F+="");var b=0,I=!1,u={next:function(){if(!I&&b<F.length){var w=b++;return{value:J(w,F[w]),done:!1}}I=!0;return{done:!0,value:void 0}}}; u[Symbol.iterator]=function(){return u}; return u}; sm=function(F){return F?F:Array.prototype.fill}; YC=function(F){return F?F:Array.prototype.copyWithin}; $C=function(F){F=Math.trunc(F)||0;F<0&&(F+=this.length);if(!(F<0||F>=this.length))return this[F]}; C3=function(F){return F?F:$C}; yJo=function(F,J,b){F instanceof String&&(F=String(F));for(var I=F.length-1;I>=0;I--){var u=F[I];if(J.call(b,u,I,F))return{zy:I,mZ:u}}return{zy:-1,mZ:void 0}}; X7=function(F){return F?F:function(J,b){return yJo(this,J,b).zy}}; g.RG=function(F,J,b){F=F.split(".");b=b||g.Qz;for(var I;F.length&&(I=F.shift());)F.length||J===void 0?b[I]&&b[I]!==Object.prototype[I]?b=b[I]:b=b[I]={}:b[I]=J}; Om=function(F,J){var b=g.kC("CLOSURE_FLAGS");F=b&&b[F];return F!=null?F:J}; g.kC=function(F,J){F=F.split(".");J=J||g.Qz;for(var b=0;b<F.length;b++)if(J=J[F[b]],J==null)return null;return J}; oG=function(F){var J=typeof F;return J!="object"?J:F?Array.isArray(F)?"array":J:"null"}; g.ca=function(F){var J=oG(F);return J=="array"||J=="object"&&typeof F.length=="number"}; g.Um=function(F){var J=typeof F;return J=="object"&&F!=null||J=="function"}; g.n3=function(F){return Object.prototype.hasOwnProperty.call(F,xC)&&F[xC]||(F[xC]=++i3a)}; zvC=function(F,J,b){return F.call.apply(F.bind,arguments)}; NYC=function(F,J,b){if(!F)throw Error();if(arguments.length>2){var I=Array.prototype.slice.call(arguments,2);return function(){var u=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(u,I);return F.apply(J,u)}}return function(){return F.apply(J,arguments)}}; g.tJ=function(F,J,b){g.tJ=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?zvC:NYC;return g.tJ.apply(null,arguments)}; g.Ha=function(F,J){var b=Array.prototype.slice.call(arguments,1);return function(){var I=b.slice();I.push.apply(I,arguments);return F.apply(this,I)}}; g.L3=function(){return Date.now()}; lao=function(F){return F}; g.Fb=function(F,J){function b(){} b.prototype=J.prototype;F.k7=J.prototype;F.prototype=new b;F.prototype.constructor=F;F.XY=function(I,u,w){for(var M=Array(arguments.length-2),q=2;q<arguments.length;q++)M[q-2]=arguments[q];return J.prototype[u].apply(I,M)}}; Je=function(F,J){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw new TypeError("Object expected.");if(b===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var b=J[Symbol.dispose]}if(typeof b!=="function")throw new TypeError("Object not disposable.");F.stack.push({value:J,dispose:b,async:!1})}return J}; bW=function(F){function J(w){F.error=F.hasError?new SuppressedError(w,F.error,"An error was suppressed during disposal."):w;F.hasError=!0} function b(){for(;I=F.stack.pop();)try{if(!I.async&&u===1)return u=0,F.stack.push(I),Promise.resolve().then(b);if(I.dispose){var w=I.dispose.call(I.value);if(I.async)return u|=2,Promise.resolve(w).then(b,function(M){J(M);return b()})}else u|=1}catch(M){J(M)}if(u===1)return F.hasError?Promise.reject(F.error):Promise.resolve(); if(F.hasError)throw F.error;} var I,u=0;b()}; uW=function(F,J,b){b=b===void 0?Error():b;var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.code=F;J+=":";b instanceof Error?(this.message=J+b.message,this.stack=b.stack||""):(this.message=J+String(b),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; faJ=function(F){var J=J===void 0?46:J;var b=[];w5(F,M8,6).forEach(function(I){Ae(I,2)<=J&&b.push(Ae(I,1))}); return b}; Wo7=function(F){var J=J===void 0?46:J;var b=[];w5(F,M8,6).forEach(function(I){Ae(I,2)>J&&b.push(Ae(I,1))}); return b}; g.q8=function(F){F&&typeof F.dispose=="function"&&F.dispose()}; g.vk=function(F){for(var J=0,b=arguments.length;J<b;++J){var I=arguments[J];g.ca(I)?g.vk.apply(null,I):g.q8(I)}}; g.R=function(){this.iJ=this.iJ;this.In=this.In}; g.k=function(F,J){F.addOnDisposeCallback(g.Ha(g.q8,J))}; ab=function(F){F.then(function(){},function(){})}; em=function(){g.R.apply(this,arguments);this.Z=1;this[d47]=this.dispose}; g5=function(F){return{fieldType:2,fieldName:F}}; g.mR=function(F){return{fieldType:3,fieldName:F}}; ECk=function(F){this.C=F;F.w4("/client_streamz/bg/frs",g.mR("ke"))}; jGa=function(F){this.C=F;F.w4("/client_streamz/bg/wrl",g.mR("mn"),g5("ac"),g5("sc"),g.mR("rk"),g.mR("mk"))}; G_Y=function(F){this.U=F;F.Qx("/client_streamz/bg/ec",g.mR("en"),g.mR("mk"))}; Vzo=function(F){this.C=F;F.w4("/client_streamz/bg/el",g.mR("en"),g.mR("rk"),g.mR("mk"))}; PkG=function(F){this.U=F;F.Qx("/client_streamz/bg/cec",g5("ec"),g.mR("rk"),g.mR("mk"))}; BY4=function(F){this.U=F;F.Qx("/client_streamz/bg/po/csc",g5("cs"),g.mR("rk"),g.mR("mk"))}; TYJ=function(F){this.U=F;F.Qx("/client_streamz/bg/po/ctav",g.mR("av"),g.mR("rk"),g.mR("mk"))}; rJ_=function(F){this.U=F;F.Qx("/client_streamz/bg/po/cwsc",g.mR("su"),g.mR("rk"),g.mR("mk"))}; iW=function(F,J){if(Error.captureStackTrace)Error.captureStackTrace(this,iW);else{var b=Error().stack;b&&(this.stack=b)}F&&(this.message=String(F));J!==void 0&&(this.cause=J)}; Smv=function(){}; zV=function(){throw Error("Invalid UTF8");}; sGJ=function(F,J){J=String.fromCharCode.apply(null,J);return F==null?J:F+J}; Xao=function(F){var J=!1;J=J===void 0?!1:J;if(YmG){if(J&&($44?!F.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(F)))throw Error("Found an unpaired surrogate");F=(Ckk||(Ckk=new TextEncoder)).encode(F)}else{for(var b=0,I=new Uint8Array(3*F.length),u=0;u<F.length;u++){var w=F.charCodeAt(u);if(w<128)I[b++]=w;else{if(w<2048)I[b++]=w>>6|192;else{if(w>=55296&&w<=57343){if(w<=56319&&u<F.length){var M=F.charCodeAt(++u);if(M>=56320&&M<=57343){w=(w-55296)*1024+ M-56320+65536;I[b++]=w>>18|240;I[b++]=w>>12&63|128;I[b++]=w>>6&63|128;I[b++]=w&63|128;continue}else u--}if(J)throw Error("Found an unpaired surrogate");w=65533}I[b++]=w>>12|224;I[b++]=w>>6&63|128}I[b++]=w&63|128}}F=b===I.length?I:I.subarray(0,b)}return F}; N8=function(F){g.Qz.setTimeout(function(){throw F;},0)}; QGa=function(F){return Array.prototype.map.call(F,function(J){J=J.toString(16);return J.length>1?J:"0"+J}).join("")}; Rva=function(F){for(var J=[],b=0;b<F.length;b+=2)J.push(parseInt(F.substring(b,b+2),16));return J}; g.lW=function(F){for(var J=[],b=0,I=0;I<F.length;I++){var u=F.charCodeAt(I);u<128?J[b++]=u:(u<2048?J[b++]=u>>6|192:((u&64512)==55296&&I+1<F.length&&(F.charCodeAt(I+1)&64512)==56320?(u=65536+((u&1023)<<10)+(F.charCodeAt(++I)&1023),J[b++]=u>>18|240,J[b++]=u>>12&63|128):J[b++]=u>>12|224,J[b++]=u>>6&63|128),J[b++]=u&63|128)}return J}; Wk=function(F,J){return F.lastIndexOf(J,0)==0}; D4J=function(F,J){var b=F.length-J.length;return b>=0&&F.indexOf(J,b)==b}; g.d5=function(F){return/^[\s\xa0]*$/.test(F)}; g.E1=function(F,J){return F.indexOf(J)!=-1}; jm=function(F,J){return g.E1(F.toLowerCase(),J.toLowerCase())}; g.Pk=function(F,J){var b=0;F=GV(String(F)).split(".");J=GV(String(J)).split(".");for(var I=Math.max(F.length,J.length),u=0;b==0&&u<I;u++){var w=F[u]||"",M=J[u]||"";do{w=/(\d*)(\D*)(.*)/.exec(w)||["","","",""];M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];if(w[0].length==0&&M[0].length==0)break;b=VU(w[1].length==0?0:parseInt(w[1],10),M[1].length==0?0:parseInt(M[1],10))||VU(w[2].length==0,M[2].length==0)||VU(w[2],M[2]);w=w[3];M=M[3]}while(b==0)}return b}; VU=function(F,J){return F<J?-1:F>J?1:0}; g.Bk=function(){var F=g.Qz.navigator;return F&&(F=F.userAgent)?F:""}; s1=function(F){return TV||r5?Sm?Sm.brands.some(function(J){return(J=J.brand)&&g.E1(J,F)}):!1:!1}; YL=function(F){return g.E1(g.Bk(),F)}; $L=function(){return TV||r5?!!Sm&&Sm.brands.length>0:!1}; Cz=function(){return $L()?!1:YL("Opera")}; k_J=function(){return $L()?!1:YL("Trident")||YL("MSIE")}; O3v=function(){return $L()?s1("Microsoft Edge"):YL("Edg/")}; Xb=function(){return YL("Firefox")||YL("FxiOS")}; DH=function(){return YL("Safari")&&!(Rb()||($L()?0:YL("Coast"))||Cz()||($L()?0:YL("Edge"))||O3v()||($L()?s1("Opera"):YL("OPR"))||Xb()||YL("Silk")||YL("Android"))}; Rb=function(){return $L()?s1("Chromium"):(YL("Chrome")||YL("CriOS"))&&!($L()?0:YL("Edge"))||YL("Silk")}; oCC=function(){return YL("Android")&&!(Rb()||Xb()||Cz()||YL("Silk"))}; hvY=function(F){var J={};F.forEach(function(b){J[b[0]]=b[1]}); return function(b){return J[b.find(function(I){return I in J})]||""}}; cJa=function(F){var J=g.Bk();if(F==="Internet Explorer"){if(k_J())if((F=/rv: *([\d\.]*)/.exec(J))&&F[1])J=F[1];else{F="";var b=/MSIE +([\d\.]+)/.exec(J);if(b&&b[1])if(J=/Trident\/(\d.\d)/.exec(J),b[1]=="7.0")if(J&&J[1])switch(J[1]){case "4.0":F="8.0";break;case "5.0":F="9.0";break;case "6.0":F="10.0";break;case "7.0":F="11.0"}else F="7.0";else F=b[1];J=F}else J="";return J}var I=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");b=[];for(var u;u=I.exec(J);)b.push([u[1],u[2],u[3]||void 0]); J=hvY(b);switch(F){case "Opera":if(Cz())return J(["Version","Opera"]);if($L()?s1("Opera"):YL("OPR"))return J(["OPR"]);break;case "Microsoft Edge":if($L()?0:YL("Edge"))return J(["Edge"]);if(O3v())return J(["Edg"]);break;case "Chromium":if(Rb())return J(["Chrome","CriOS","HeadlessChrome"])}return F==="Firefox"&&Xb()||F==="Safari"&&DH()||F==="Android Browser"&&oCC()||F==="Silk"&&YL("Silk")?(J=b[2])&&J[1]||"":""}; U4k=function(F){if($L()&&F!=="Silk"){var J=Sm.brands.find(function(b){return b.brand===F}); if(!J||!J.version)return NaN;J=J.version.split(".")}else{J=cJa(F);if(J==="")return NaN;J=J.split(".")}return J.length===0?NaN:Number(J[0])}; kL=function(){return TV||r5?!!Sm&&!!Sm.platform:!1}; x4z=function(){return kL()?Sm.platform==="Android":YL("Android")}; O1=function(){return YL("iPhone")&&!YL("iPod")&&!YL("iPad")}; ob=function(){return O1()||YL("iPad")||YL("iPod")}; he=function(){return kL()?Sm.platform==="macOS":YL("Macintosh")}; nCm=function(){return kL()?Sm.platform==="Windows":YL("Windows")}; g.ck=function(F){return F[F.length-1]}; tz3=function(F,J){var b=F.length,I=typeof F==="string"?F.split(""):F;for(--b;b>=0;--b)b in I&&J.call(void 0,I[b],b,F)}; g.xL=function(F,J,b){J=U1(F,J,b);return J<0?null:typeof F==="string"?F.charAt(J):F[J]}; U1=function(F,J,b){for(var I=F.length,u=typeof F==="string"?F.split(""):F,w=0;w<I;w++)if(w in u&&J.call(b,u[w],w,F))return w;return-1}; g.nz=function(F,J,b){var I=F.length,u=typeof F==="string"?F.split(""):F;for(--I;I>=0;I--)if(I in u&&J.call(b,u[I],I,F))return I;return-1}; g.te=function(F,J){return Z3J(F,J)>=0}; H3G=function(F){if(!Array.isArray(F))for(var J=F.length-1;J>=0;J--)delete F[J];F.length=0}; g.Hk=function(F,J){J=Z3J(F,J);var b;(b=J>=0)&&g.ZH(F,J);return b}; g.ZH=function(F,J){return Array.prototype.splice.call(F,J,1).length==1}; g.Lz=function(F,J){J=U1(F,J);J>=0&&g.ZH(F,J)}; Loo=function(F,J){var b=0;tz3(F,function(I,u){J.call(void 0,I,u,F)&&g.ZH(F,u)&&b++})}; g.FP=function(F){return Array.prototype.concat.apply([],arguments)}; g.JL=function(F){var J=F.length;if(J>0){for(var b=Array(J),I=0;I<J;I++)b[I]=F[I];return b}return[]}; g.bV=function(F,J){for(var b=1;b<arguments.length;b++){var I=arguments[b];if(g.ca(I)){var u=F.length||0,w=I.length||0;F.length=u+w;for(var M=0;M<w;M++)F[u+M]=I[M]}else F.push(I)}}; g.wy=function(F,J,b,I){Array.prototype.splice.apply(F,uV(arguments,1))}; uV=function(F,J,b){return arguments.length<=2?Array.prototype.slice.call(F,J):Array.prototype.slice.call(F,J,b)}; FR4=function(F){for(var J=0,b=0,I={};b<F.length;){var u=F[b++],w=g.Um(u)?"o"+g.n3(u):(typeof u).charAt(0)+u;Object.prototype.hasOwnProperty.call(I,w)||(I[w]=!0,F[J++]=u)}F.length=J}; g.AL=function(F,J,b){return Jea(F,b||ML,!1,J)}; qL=function(F,J){return Jea(F,J,!0)}; Jea=function(F,J,b,I){for(var u=0,w=F.length,M;u<w;){var q=u+(w-u>>>1),v=void 0;b?v=J.call(void 0,F[q],q,F):v=J(I,F[q]);v>0?u=q+1:(w=q,M=!v)}return M?u:-u-1}; g.vW=function(F,J){F.sort(J||ML)}; bz3=function(F,J){var b=ML;g.vW(F,function(I,u){return b(J(I),J(u))})}; g.ay=function(F,J,b){if(!g.ca(F)||!g.ca(J)||F.length!=J.length)return!1;var I=F.length;b=b||IHJ;for(var u=0;u<I;u++)if(!b(F[u],J[u]))return!1;return!0}; ML=function(F,J){return F>J?1:F<J?-1:0}; IHJ=function(F,J){return F===J}; g.eJ=function(F,J,b){b=g.AL(F,J,b);b<0&&g.wy(F,-(b+1),0,J)}; g.mF=function(F,J,b){var I={};(0,g.gy)(F,function(u,w){I[J.call(b,u,w,F)]=u}); return I}; ubJ=function(F){for(var J=[],b=0;b<F;b++)J[b]="";return J}; wk3=function(F,J){J=Array.prototype.splice.call(F,J,1);Array.prototype.splice.call(F,0,0,J[0])}; yI=function(F){yI[" "](F);return F}; MmG=function(F,J){try{return yI(F[J]),!0}catch(b){}return!1}; q1z=function(F,J){var b=Ae3;return Object.prototype.hasOwnProperty.call(b,F)?b[F]:b[F]=J(F)}; g.iV=function(F){return q1z(F,function(){return g.Pk(vLo,F)>=0})}; g.zw=function(F,J){J===void 0&&(J=0);aHz();J=etC[J];for(var b=Array(Math.floor(F.length/3)),I=J[64]||"",u=0,w=0;u<F.length-2;u+=3){var M=F[u],q=F[u+1],v=F[u+2],a=J[M>>2];M=J[(M&3)<<4|q>>4];q=J[(q&15)<<2|v>>6];v=J[v&63];b[w++]=""+a+M+q+v}a=0;v=I;switch(F.length-u){case 2:a=F[u+1],v=J[(a&15)<<2]||I;case 1:F=F[u],b[w]=""+J[F>>2]+J[(F&3)<<4|a>>4]+v+I}return b.join("")}; g.NL=function(F,J){if(KRG&&!J)F=g.Qz.btoa(F);else{for(var b=[],I=0,u=0;u<F.length;u++){var w=F.charCodeAt(u);w>255&&(b[I++]=w&255,w>>=8);b[I++]=w}F=g.zw(b,J)}return F}; gLa=function(F){var J=[];pk7(F,function(b){J.push(b)}); return J}; lV=function(F){var J=F.length,b=J*3/4;b%3?b=Math.floor(b):g.E1("=.",F[J-1])&&(b=g.E1("=.",F[J-2])?b-2:b-1);var I=new Uint8Array(b),u=0;pk7(F,function(w){I[u++]=w}); return u!==b?I.subarray(0,u):I}; pk7=function(F,J){function b(v){for(;I<F.length;){var a=F.charAt(I++),e=ff[a];if(e!=null)return e;if(!g.d5(a))throw Error("Unknown base64 encoding at char: "+a);}return v} aHz();for(var I=0;;){var u=b(-1),w=b(0),M=b(64),q=b(64);if(q===64&&u===-1)break;J(u<<2|w>>4);M!=64&&(J(w<<4&240|M>>2),q!=64&&J(M<<6&192|q))}}; aHz=function(){if(!ff){ff={};for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),J=["+/=","+/","-_=","-_.","-_"],b=0;b<5;b++){var I=F.concat(J[b].split(""));etC[b]=I;for(var u=0;u<I.length;u++){var w=I[u];ff[w]===void 0&&(ff[w]=u)}}}}; yeJ=function(F){if(!m83)return g.zw(F);for(var J="",b=0,I=F.length-10240;b<I;)J+=String.fromCharCode.apply(null,F.subarray(b,b+=10240));J+=String.fromCharCode.apply(null,b?F.subarray(b):F);return btoa(J)}; ztk=function(F){return izo[F]||""}; lH7=function(F){if(!m83)return lV(F);N5G.test(F)&&(F=F.replace(N5G,ztk));F=atob(F);for(var J=new Uint8Array(F.length),b=0;b<F.length;b++)J[b]=F.charCodeAt(b);return J}; WW=function(F){return fH_&&F!=null&&F instanceof Uint8Array}; dy=function(F,J){WRk(J);this.C=F;if(F!=null&&F.length===0)throw Error("ByteString should be constructed with non-empty values");}; jJ=function(){return d8J||(d8J=new dy(null,EX))}; VI=function(F){return new Uint8Array(Gw(F)||0)}; Gw=function(F){WRk(EX);var J=F.C;J=J==null||WW(J)?J:typeof J==="string"?lH7(J):null;return J==null?J:F.C=J}; WRk=function(F){if(F!==EX)throw Error("illegal external caller");}; EL7=function(F,J){F.__closure__error__context__984382||(F.__closure__error__context__984382={});F.__closure__error__context__984382.severity=J}; PW=function(F){F=Error(F);EL7(F,"warning");return F}; BW=function(F){if(F!=null){var J;var b=(J=jbC)!=null?J:jbC={};J=b[F]||0;J>=5||(b[F]=J+1,F=Error(),EL7(F,"incident"),N8(F))}}; Tw=function(F,J,b,I){b=b===void 0?!1:b;F=typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&F?Symbol.for(F):F!=null?Symbol(F):Symbol():J;b&&GV4.add(F);return F}; sX=function(F,J){ry||SJ in F||Vm3(F,PWa);F[SJ]|=J}; YK=function(F,J){ry||SJ in F||Vm3(F,PWa);F[SJ]=J}; B5o=function(F,J){YK(J,(F|0)&-30975)}; $K=function(F,J){YK(J,(F|34)&-30941)}; Cf=function(){return typeof BigInt==="function"}; XP=function(F){return Array.prototype.slice.call(F)}; De=function(F){return F!==null&&typeof F==="object"&&!Array.isArray(F)&&F.constructor===Object}; T5z=function(F,J){if(F!=null)if(typeof F==="string")F=F?new dy(F,EX):jJ();else if(F.constructor!==dy)if(WW(F))F=F.length?new dy(new Uint8Array(F),EX):jJ();else{if(!J)throw Error();F=void 0}return F}; kK=function(F){if(F&2)throw Error();}; OX=function(F,J){if(typeof J!=="number"||J<0||J>=F.length)throw Error();}; hL=function(F){var J=lao(oy);return J?F[J]:void 0}; UX=function(F){F.kzz=!0;return F}; nf=function(F){var J=F;if(reo(J)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(J))throw Error(String(J));}else if(S1v(J)&&!Number.isSafeInteger(J))throw Error(String(J));return xK?BigInt(F):F=sbY(F)?F?"1":"0":reo(F)?F.trim()||"0":String(F)}; Y1z=function(F,J){if(F.length>J.length)return!1;if(F.length<J.length||F===J)return!0;for(var b=0;b<F.length;b++){var I=F[b],u=J[b];if(I>u)return!1;if(I<u)return!0}}; Lf=function(F){var J=F>>>0;tL=J;Ze=(F-J)/4294967296>>>0}; J_=function(F){if(F<0){Lf(0-F);var J=g.N(Fe(tL,Ze));F=J.next().value;J=J.next().value;tL=F>>>0;Ze=J>>>0}else Lf(F)}; IF=function(F,J){var b=J*4294967296+(F>>>0);return Number.isSafeInteger(b)?b:bv(F,J)}; $8k=function(F,J){var b=J&2147483648;b&&(F=~F+1>>>0,J=~J>>>0,F==0&&(J=J+1>>>0));F=IF(F,J);return typeof F==="number"?b?-F:F:b?"-"+F:F}; bv=function(F,J){J>>>=0;F>>>=0;if(J<=2097151)var b=""+(4294967296*J+F);else Cf()?b=""+(BigInt(J)<<BigInt(32)|BigInt(F)):(b=(F>>>24|J<<8)&16777215,J=J>>16&65535,F=(F&16777215)+b*6777216+J*6710656,b+=J*8147497,J*=2,F>=1E7&&(b+=F/1E7>>>0,F%=1E7),b>=1E7&&(J+=b/1E7>>>0,b%=1E7),b=J+CWJ(b)+CWJ(F));return b}; CWJ=function(F){F=String(F);return"0000000".slice(F.length)+F}; Xk_=function(){var F=tL,J=Ze;J&2147483648?Cf()?F=""+(BigInt(J|0)<<BigInt(32)|BigInt(F>>>0)):(J=g.N(Fe(F,J)),F=J.next().value,J=J.next().value,F="-"+bv(F,J)):F=bv(F,J);return F}; uv=function(F){if(F.length<16)J_(Number(F));else if(Cf())F=BigInt(F),tL=Number(F&BigInt(4294967295))>>>0,Ze=Number(F>>BigInt(32)&BigInt(4294967295));else{var J=+(F[0]==="-");Ze=tL=0;for(var b=F.length,I=0+J,u=(b-J)%6+J;u<=b;I=u,u+=6)I=Number(F.slice(I,u)),Ze*=1E6,tL=tL*1E6+I,tL>=4294967296&&(Ze+=Math.trunc(tL/4294967296),Ze>>>=0,tL>>>=0);J&&(J=g.N(Fe(tL,Ze)),F=J.next().value,J=J.next().value,tL=F,Ze=J)}}; Fe=function(F,J){J=~J;F?F=~F+1:J+=1;return[F,J]}; wU=function(F,J){throw Error(J===void 0?"unexpected value "+F+"!":J);}; Mu=function(F){if(F!=null&&typeof F!=="number")throw Error("Value of float/double field must be a number, found "+typeof F+": "+F);return F}; Qbm=function(F){return F.displayName||F.name||"unknown type name"}; A_=function(F){if(F!=null&&typeof F!=="boolean")throw Error("Expected boolean but got "+oG(F)+": "+F);return F}; v3=function(F){switch(typeof F){case "bigint":return!0;case "number":return qu(F);case "string":return Rt7.test(F);default:return!1}}; D8C=function(F){if(typeof F!=="number")throw PW("int32");if(!qu(F))throw PW("int32");return F|0}; aF=function(F){return F==null?F:D8C(F)}; e2=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return qu(F)?F|0:void 0}; KI=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return qu(F)?F>>>0:void 0}; OzJ=function(F){var J=0;J=J===void 0?0:J;if(!v3(F))throw PW("int64");var b=typeof F;switch(J){case 4096:switch(b){case "string":return gU(F);case "bigint":return String(mL(64,F));default:return yg(F)}case 8192:switch(b){case "string":return J=iv(Number(F)),za(J)?F=nf(J):(J=F.indexOf("."),J!==-1&&(F=F.substring(0,J)),F=Cf()?nf(mL(64,BigInt(F))):nf(kV7(F))),F;case "bigint":return nf(mL(64,F));default:return za(F)?nf(Nu(F)):nf(yg(F))}case 0:switch(b){case "string":return gU(F);case "bigint":return nf(mL(64, F));default:return Nu(F)}default:return wU(J,"Unknown format requested type for int64")}}; lv=function(F){return F==null?F:OzJ(F)}; oLG=function(F){if(F[0]==="-")return!1;var J=F.length;return J<20?!0:J===20&&Number(F.substring(0,6))<184467}; htJ=function(F){var J=F.length;return F[0]==="-"?J<20?!0:J===20&&Number(F.substring(0,7))>-922337:J<19?!0:J===19&&Number(F.substring(0,6))<922337}; ce_=function(F){if(F<0){J_(F);var J=bv(tL,Ze);F=Number(J);return za(F)?F:J}J=String(F);if(oLG(J))return J;J_(F);return IF(tL,Ze)}; kV7=function(F){if(htJ(F))return F;uv(F);return Xk_()}; Nu=function(F){v3(F);F=iv(F);za(F)||(J_(F),F=$8k(tL,Ze));return F}; yg=function(F){v3(F);F=iv(F);if(za(F))F=String(F);else{var J=String(F);htJ(J)?F=J:(J_(F),F=Xk_())}return F}; gU=function(F){v3(F);var J=iv(Number(F));if(za(J))return String(J);J=F.indexOf(".");J!==-1&&(F=F.substring(0,J));return kV7(F)}; U8a=function(F){if(F==null)return F;if(typeof F==="bigint")return fI(F)?F=Number(F):(F=mL(64,F),F=fI(F)?Number(F):String(F)),F;if(v3(F))return typeof F==="number"?Nu(F):gU(F)}; x8z=function(F){if(F==null)return F;var J=typeof F;if(J==="bigint")return String(mL(64,F));if(v3(F)){if(J==="string")return gU(F);if(J==="number")return Nu(F)}}; tmv=function(F){if(F==null)return F;var J=typeof F;if(J==="bigint")return String(nLJ(64,F));if(v3(F)){if(J==="string")return v3(F),J=iv(Number(F)),za(J)&&J>=0?F=String(J):(J=F.indexOf("."),J!==-1&&(F=F.substring(0,J)),oLG(F)||(uv(F),F=bv(tL,Ze))),F;if(J==="number")return v3(F),F=iv(F),F>=0&&za(F)?F:ce_(F)}}; HzJ=function(F){if(F==null||typeof F=="string"||F instanceof dy)return F;if(WW(F))return WW(F)&&BW(Zz4),F}; LRC=function(F){if(typeof F!=="string")throw Error();return F}; W3=function(F){if(F!=null&&typeof F!=="string")throw Error();return F}; dU=function(F){return F==null||typeof F==="string"?F:void 0}; EF=function(F,J){if(!(F instanceof J))throw Error("Expected instanceof "+Qbm(J)+" but got "+(F&&Qbm(F.constructor)));return F}; FF4=function(F,J,b){if(F!=null&&typeof F==="object"&&F.DM===j2)return F;if(Array.isArray(F)){var I=F[SJ]|0,u=I;u===0&&(u|=b&32);u|=b&2;u!==I&&YK(F,u);return new J(F)}}; JLm=function(F){return F}; Ga=function(F){return F}; wWz=function(F,J,b,I){return bfk(F,J,b,I,Iem,uPY)}; qXo=function(F,J,b,I){return bfk(F,J,b,I,MJ4,ALG)}; bfk=function(F,J,b,I,u,w){if(!b.length&&!I)return 0;for(var M=0,q=0,v=0,a=0,e=0,K=b.length-1;K>=0;K--){var p=b[K];I&&K===b.length-1&&p===I||(a++,p!=null&&v++)}if(I)for(var m in I)K=+m,isNaN(K)||(e+=vK_(K),q++,K>M&&(M=K));a=u(a,v)+w(q,M,e);m=v;K=q;p=M;for(var y=e,f=b.length-1;f>=0;f--){var d=b[f];if(!(d==null||I&&f===b.length-1&&d===I)){d=f-J;var G=u(d,m)+w(K,p,y);G<a&&(F=1+d,a=G);K++;m--;y+=vK_(d);p=Math.max(p,d)}}J=u(0,0)+w(K,p,y);J<a&&(F=0,a=J);if(I){K=q;p=M;y=e;m=v;for(var P in I)I=+P,isNaN(I)|| I>=1024||(K--,m++,y-=P.length,M=u(I,m)+w(K,p,y),M<a&&(F=1+I,a=M))}return F}; ALG=function(F,J,b){return b+F*3+(F>1?F-1:0)}; MJ4=function(F,J){return(F>1?F-1:0)+(F-J)*4}; uPY=function(F,J){return F==0?0:9*Math.max(1<<32-Math.clz32(F+F/2-1),4)<=J?F==0?0:F<4?100+(F-1)*16:F<6?148+(F-4)*16:F<12?244+(F-6)*16:F<22?436+(F-12)*19:F<44?820+(F-22)*17:52+32*F:40+4*J}; Iem=function(F){return 40+4*F}; vK_=function(F){return F>=100?F>=1E4?Math.ceil(Math.log10(1+F)):F<1E3?3:4:F<10?1:2}; ae7=function(F,J,b){var I=XP(F),u=I.length,w=J&256?I[u-1]:void 0;u+=w?-1:0;for(J=J&512?1:0;J<u;J++)I[J]=b(I[J]);if(w){J=I[J]={};for(var M in w)J[M]=b(w[M])}(F=hL(F))&&(I[oy]=XP(F));return I}; emo=function(F,J,b,I,u){if(F!=null){if(Array.isArray(F)){var w=F[SJ]|0;return F.length===0&&w&1?void 0:u&&w&2?F:Vg(F,J,b,I!==void 0,u)}return J(F,I)}}; Vg=function(F,J,b,I,u){var w=I||b?F[SJ]|0:0,M=I?!!(w&32):void 0;I=XP(F);for(var q=0,v=I.length,a=0;a<v;a++){var e=I[a];if(a===v-1&&De(e)){var K=void 0;var p=J,m=b,y=M,f=u,d=void 0;for(K in e){var G=emo(e[K],p,m,y,f);if(G!=null){var P=void 0;((P=d)!=null?P:d={})[K]=G}}K=d}else K=emo(I[a],J,b,M,u);I[a]=K;K!=null&&(q=a+1)}q<v&&(I.length=q);b&&((F=hL(F))&&(I[oy]=XP(F)),b(w,I));return I}; pWv=function(F){switch(typeof F){case "number":return Number.isFinite(F)?F:""+F;case "bigint":return fI(F)?Number(F):""+F;case "boolean":return F?1:0;case "object":if(WW(F))return WW(F)&&BW(Zz4),yeJ(F);if(F.DM===j2)return KFY(F);if(F instanceof dy){var J=F.C;return J==null?"":typeof J==="string"?J:F.C=yeJ(J)}return}return F}; B3=function(F,J){J&&(P3=J===Ga||J!==JLm&&J!==wWz&&J!==qXo?Ga:J);try{return KFY(F)}finally{P3=void 0}}; KFY=function(F){var J=F.Z7;F=Vg(J,pWv,void 0,void 0,!1);var b=J[SJ]|0;if((J=F.length)&&!(b&512)){var I=F[J-1],u=!1;De(I)?(J--,u=!0):I=void 0;var w,M=(w=P3)!=null?w:Ga;w=b&512?0:-1;b=J-w;M=M(b,w,F,I);I&&(F[J]=void 0);if(b<M&&I){b=!0;for(var q in I){var v=+q;v<=M?(u=v+w,F[u]=I[q],J=Math.max(u+1,J),u=!1,delete I[q]):b=!1}b&&(I=void 0)}for(b=J-1;J>0;b=J-1)if(q=F[b],q==null)J--,u=!0;else if(b-=w,b>=M)u=void 0,((u=I)!=null?u:I={})[b]=q,J--,u=!0;else break;u&&(F.length=J);I&&F.push(I)}return F}; mLC=function(F){switch(typeof F){case "boolean":return Ta||(Ta=[0,void 0,!0]);case "number":return F>0?void 0:F===0?gK3||(gK3=[0,void 0]):[-F,void 0];case "string":return[0,F];case "object":return F}}; sF=function(F,J,b){F=S2(F,J[0],J[1],b?1:2);J!==Ta&&b&&sX(F,16384);return F}; S2=function(F,J,b,I){if(F==null){var u=96;b?(F=[b],u|=512):F=[];J&&(u=u&-33521665|(J&1023)<<15)}else{if(!Array.isArray(F))throw Error("narr");u=F[SJ]|0;16384&u||!(64&u)||2&u||yLa();if(u&2048)throw Error("farr");if(u&64)return F;I===1||I===2||(u|=64);if(b&&(u|=512,b!==F[0]))throw Error("mid");a:{b=F;var w=b.length;if(w){var M=w-1;I=b[M];if(De(I)){u|=256;J=u&512?0:-1;M-=J;if(M>=1024)throw Error("pvtlmt");for(var q in I)w=+q,w<M&&(b[w+J]=I[q],delete I[q]);u=u&-33521665|(M&1023)<<15;break a}}if(J){q= Math.max(J,w-(u&512?0:-1));if(q>1024)throw Error("spvt");u=u&-33521665|(q&1023)<<15}}}YK(F,u);return F}; yLa=function(){BW(ifG)}; zmY=function(F,J,b){b=b===void 0?$K:b;if(F!=null){if(fH_&&F instanceof Uint8Array)return J?F:new Uint8Array(F);if(Array.isArray(F)){var I=F[SJ]|0;if(I&2)return F;J&&(J=I===0||!!(I&32)&&!(I&64||!(I&16)));return J?(YK(F,I|34),I&4&&Object.freeze(F),F):Vg(F,zmY,I&4?$K:b,!0,!0)}F.DM===j2&&(b=F.Z7,I=b[SJ]|0,F=I&2?F:new F.constructor(Yp(b,I,!0)));return F}}; Yp=function(F,J,b){var I=b||J&2?$K:B5o,u=!!(J&32);F=ae7(F,J,function(w){return zmY(w,u,I)}); sX(F,32|(b?2:0));return F}; $p=function(F){var J=F.Z7,b=J[SJ]|0;return b&2?new F.constructor(Yp(J,b,!1)):F}; Xe=function(F,J){F=F.Z7;return CI(F,F[SJ]|0,J)}; CI=function(F,J,b){if(b===-1)return null;var I=b+(J&512?0:-1),u=F.length-1;if(I>=u&&J&256)return F[u][b];if(I<=u)return F[I]}; RF=function(F,J,b){var I=F.Z7,u=I[SJ]|0;kK(u);Qg(I,u,J,b);return F}; Qg=function(F,J,b,I){var u=J&512?0:-1,w=b+u,M=F.length-1;if(w>=M&&J&256)return F[M][b]=I,J;if(w<=M)return F[w]=I,J;I!==void 0&&(M=J>>15&1023||536870912,b>=M?I!=null&&(w={},F[M+u]=(w[b]=I,w),J|=256,YK(F,J)):F[w]=I);return J}; c3=function(F,J,b,I,u){var w=F.Z7;F=w[SJ]|0;var M=2&F?1:I;u=!!u;I=Dz(w,F,J);var q=I[SJ]|0;if(!(4&q)){4&q&&(I=XP(I),q=kp(q,F),F=Qg(w,F,J,I));for(var v=0,a=0;v<I.length;v++){var e=b(I[v]);e!=null&&(I[a++]=e)}a<v&&(I.length=a);q=OF(q,F);b=(q|20)&-4097;q=b&=-8193;YK(I,q);2&q&&Object.freeze(I)}M===1||M===4&&32&q?oF(q)||(u=q,q|=2,q!==u&&YK(I,q),Object.freeze(I)):(M===2&&oF(q)&&(I=XP(I),q=kp(q,F),q=h_(q,F,u),YK(I,q),F=Qg(w,F,J,I)),oF(q)||(J=q,q=h_(q,F,u),q!==J&&YK(I,q)));return I}; Dz=function(F,J,b){F=CI(F,J,b);return Array.isArray(F)?F:UF}; OF=function(F,J){F===0&&(F=kp(F,J));return F|1}; oF=function(F){return!!(2&F)&&!!(4&F)||!!(2048&F)}; Nya=function(F){return T5z(F,!0)}; xp=function(F,J){F=F.Z7;var b=F[SJ]|0,I=CI(F,b,J),u=Nya(I);u!=null&&u!==I&&Qg(F,b,J,u);return u==null?jJ():u}; leo=function(F,J,b){var I=F.Z7,u=I[SJ]|0;kK(u);if(J==null)return Qg(I,u,3),F;if(!Array.isArray(J))throw PW();var w=J[SJ]|0,M=w,q=oF(w),v=q||Object.isFrozen(J);q||(w=0);v||(J=XP(J),M=0,w=kp(w,u),w=h_(w,u,!0),v=!1);w|=21;q=4&w?4096&w?4096:8192&w?8192:0:void 0;q=q!=null?q:0;for(var a=0;a<J.length;a++){var e=J[a],K=b(e,q);Object.is(e,K)||(v&&(J=XP(J),M=0,w=kp(w,u),w=h_(w,u,!0),v=!1),J[a]=K)}w!==M&&(v&&(J=XP(J),w=kp(w,u),w=h_(w,u,!0)),YK(J,w));Qg(I,u,3,J);return F}; nI=function(F,J,b,I){var u=F.Z7,w=u[SJ]|0;kK(w);Qg(u,w,J,(I==="0"?Number(b)===0:b===I)?void 0:b);return F}; t_=function(F,J,b,I){kK(J);var u=Dz(F,J,b),w=u!==UF;if(64&J||!(16384&J)||!w){var M=w?u[SJ]|0:0,q=M;if(!w||2&q||oF(q)||4&q&&!(32&q))u=XP(u),q=kp(q,J),J=Qg(F,J,b,u);q=OF(q,J)&-13;q=h_(I?q&-17:q|16,J,!0);q!==M&&YK(u,q)}return u}; FW=function(F,J,b,I){var u=F.Z7,w=u[SJ]|0;kK(w);if(I==null){var M=Zz(u);if(H3(M,u,w,b)===J)M.set(b,0);else return F}else w=LI(u,w,b,J);Qg(u,w,J,I);return F}; Jx=function(F,J,b,I){var u=F[SJ]|0;u=LI(F,u,b,J);Qg(F,u,J,I)}; bP=function(F,J){F=F.Z7;return H3(Zz(F),F,F[SJ]|0,J)}; Zz=function(F){if(ry){var J;return(J=F[IM])!=null?J:F[IM]=new Map}if(IM in F)return F[IM];J=new Map;Object.defineProperty(F,IM,{value:J});return J}; LI=function(F,J,b,I){b.includes(I);var u=Zz(F),w=H3(u,F,J,b);w!==I&&(w&&(J=Qg(F,J,w)),u.set(b,I));return J}; H3=function(F,J,b,I){var u=F.get(I);if(u!=null)return u;for(var w=u=0;w<I.length;w++){var M=I[w];CI(J,b,M)!=null&&(u!==0&&(b=Qg(J,b,u)),u=M)}F.set(I,u);return u}; uP=function(F,J,b){var I=F[SJ]|0,u=CI(F,I,b),w;if(u!=null&&u.DM===j2)return J=$p(u),J!==u&&Qg(F,I,b,J),J.Z7;if(Array.isArray(u)){var M=u[SJ]|0;M&2?w=sF(Yp(u,M,!1),J,!0):M&64?w=u:w=sF(w,J,!0)}else w=sF(void 0,J,!0);w!==u&&Qg(F,I,b,w);return w}; w4=function(F,J,b){F=F.Z7;var I=F[SJ]|0,u=CI(F,I,b);J=FF4(u,J,I);J!==u&&J!=null&&Qg(F,I,b,J);return J}; MX=function(F,J,b){J=w4(F,J,b);if(J==null)return J;F=F.Z7;var I=F[SJ]|0;if(!(I&2)){var u=$p(J);u!==J&&(J=u,Qg(F,I,b,J))}return J}; fe_=function(F,J,b,I,u,w,M){F=F.Z7;var q=!!(2&J),v=q?1:u;w=!!w;M&&(M=!q);u=Dz(F,J,I);var a=u[SJ]|0;q=!!(4&a);if(!q){a=OF(a,J);var e=u,K=J,p=!!(2&a);p&&(K|=2);for(var m=!p,y=!0,f=0,d=0;f<e.length;f++){var G=FF4(e[f],b,K);if(G instanceof b){if(!p){var P=!!((G.Z7[SJ]|0)&2);m&&(m=!P);y&&(y=P)}e[d++]=G}}d<f&&(e.length=d);a|=4;a=y?a|16:a&-17;a=m?a|8:a&-9;YK(e,a);p&&Object.freeze(e)}if(M&&!(8&a||!u.length&&(v===1||v===4&&32&a))){oF(a)&&(u=XP(u),a=kp(a,J),J=Qg(F,J,I,u));b=u;M=a;for(e=0;e<b.length;e++)a=b[e], K=$p(a),a!==K&&(b[e]=K);M|=8;M=b.length?M&-17:M|16;YK(b,M);a=M}v===1||v===4&&32&a?oF(a)||(J=a,a|=!u.length||16&a&&(!q||32&a)?2:2048,a!==J&&YK(u,a),Object.freeze(u)):(v===2&&oF(a)&&(u=XP(u),a=kp(a,J),a=h_(a,J,w),YK(u,a),J=Qg(F,J,I,u)),oF(a)||(I=a,a=h_(a,J,w),a!==I&&YK(u,a)));return u}; w5=function(F,J,b){var I=F.Z7[SJ]|0;return fe_(F,I,J,b,void 0===WFo?2:4,!1,!(2&I))}; Ax=function(F,J,b,I){I!=null?EF(I,J):I=void 0;return RF(F,b,I)}; vo=function(F,J,b,I){var u=F.Z7,w=u[SJ]|0;kK(w);if(I==null)return Qg(u,w,b),F;if(!Array.isArray(I))throw PW();for(var M=I[SJ]|0,q=M,v=oF(M),a=v||Object.isFrozen(I),e=!0,K=!0,p=0;p<I.length;p++){var m=I[p];EF(m,J);v||(m=!!((m.Z7[SJ]|0)&2),e&&(e=!m),K&&(K=m))}v||(M=e?13:5,M=K?M|16:M&-17);a&&M===q||(I=XP(I),q=0,M=kp(M,w),M=h_(M,w,!0));M!==q&&YK(I,M);Qg(u,w,b,I);return F}; kp=function(F,J){F=(2&J?F|2:F&-3)|32;return F&=-2049}; h_=function(F,J,b){32&J&&b||(F&=-33);return F}; aM=function(F,J,b,I){var u=F.Z7[SJ]|0;kK(u);F=fe_(F,u,b,J,2,!0);I=I!=null?EF(I,b):new b;F.push(I);F[SJ]=(I.Z7[SJ]|0)&2?F[SJ]&-9:F[SJ]&-17}; dLJ=function(F){F=Xe(F,1);var J=J===void 0?!1:J;var b=typeof F;J=F==null?F:b==="bigint"?String(mL(64,F)):v3(F)?b==="string"?gU(F):J?yg(F):Nu(F):void 0;return J}; eD=function(F,J){return dU(Xe(F,J))}; Ae=function(F,J,b){b=b===void 0?0:b;var I;return(I=e2(Xe(F,J)))!=null?I:b}; KG=function(F,J){var b=b===void 0?0:b;var I;return(I=KI(Xe(F,J)))!=null?I:b}; pG=function(F,J){var b;return(b=eD(F,J))!=null?b:""}; g4=function(F,J){var b=b===void 0?0:b;F=Xe(F,J);F=F==null?F:qu(F)?F|0:void 0;return F!=null?F:b}; mC=function(F,J,b){return RF(F,J,lv(b))}; yH=function(F,J,b){return RF(F,J,W3(b))}; iP=function(F,J,b){return nI(F,J,W3(b),"")}; zb=function(F,J,b){if(b!=null){if(!qu(b))throw PW("enum");b|=0}return RF(F,J,b)}; EKG=function(F,J){return Error("Invalid wire type: "+F+" (at position "+J+")")}; NX=function(){return Error("Failed to read varint, encoding is invalid.")}; jy_=function(F,J){return Error("Tried to read past the end of the data "+J+" > "+F)}; fG=function(F){if(typeof F==="string")return{buffer:lH7(F),gk:!1};if(Array.isArray(F))return{buffer:new Uint8Array(F),gk:!1};if(F.constructor===Uint8Array)return{buffer:F,gk:!1};if(F.constructor===ArrayBuffer)return{buffer:new Uint8Array(F),gk:!1};if(F.constructor===dy)return{buffer:Gw(F)||new Uint8Array(0),gk:!0};if(F instanceof Uint8Array)return{buffer:new Uint8Array(F.buffer,F.byteOffset,F.byteLength),gk:!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"); }; Gwz=function(F,J){this.U=null;this.D=!1;this.C=this.T=this.Z=0;this.init(F,void 0,void 0,J)}; d4=function(F){var J=0,b=0,I=0,u=F.U,w=F.C;do{var M=u[w++];J|=(M&127)<<I;I+=7}while(I<32&&M&128);I>32&&(b|=(M&127)>>4);for(I=3;I<32&&M&128;I+=7)M=u[w++],b|=(M&127)<<I;Wo(F,w);if(M<128)return $8k(J>>>0,b>>>0);throw NX();}; Wo=function(F,J){F.C=J;if(J>F.T)throw jy_(F.T,J);}; Eq=function(F){var J=F.U,b=F.C,I=J[b++],u=I&127;if(I&128&&(I=J[b++],u|=(I&127)<<7,I&128&&(I=J[b++],u|=(I&127)<<14,I&128&&(I=J[b++],u|=(I&127)<<21,I&128&&(I=J[b++],u|=I<<28,I&128&&J[b++]&128&&J[b++]&128&&J[b++]&128&&J[b++]&128&&J[b++]&128)))))throw NX();Wo(F,b);return u}; jD=function(F){var J=F.U,b=F.C,I=J[b+0],u=J[b+1],w=J[b+2];J=J[b+3];Wo(F,F.C+4);return(I<<0|u<<8|w<<16|J<<24)>>>0}; Gb=function(F){var J=jD(F);F=jD(F);return IF(J,F)}; VH=function(F){var J=jD(F),b=jD(F);F=(b>>31)*2+1;var I=b>>>20&2047;J=4294967296*(b&1048575)+J;return I==2047?J?NaN:F*Infinity:I==0?F*4.9E-324*J:F*Math.pow(2,I-1075)*(J+4503599627370496)}; Po=function(F){for(var J=0,b=F.C,I=b+10,u=F.U;b<I;){var w=u[b++];J|=w;if((w&128)===0)return Wo(F,b),!!(J&127)}throw NX();}; VJ4=function(F,J){if(J<0)throw Error("Tried to read a negative byte length: "+J);var b=F.C,I=b+J;if(I>F.T)throw jy_(J,F.T-b);F.C=I;return b}; ByJ=function(F,J){if(J==0)return jJ();var b=VJ4(F,J);F.FJ&&F.D?b=F.U.subarray(b,b+J):(F=F.U,J=b+J,b=b===J?new Uint8Array(0):PVm?F.slice(b,J):new Uint8Array(F.subarray(b,J)));return b.length==0?jJ():new dy(b,EX)}; Tb=function(F,J){if(Bo.length){var b=Bo.pop();b.init(F,void 0,void 0,J);F=b}else F=new Gwz(F,J);this.C=F;this.T=this.C.C;this.U=this.Z=-1;Tym(this,J)}; Tym=function(F,J){J=J===void 0?{}:J;F.u6=J.u6===void 0?!1:J.u6}; rLm=function(F){var J=F.C;if(J.C==J.T)return!1;F.T=F.C.C;var b=Eq(F.C)>>>0;J=b>>>3;b&=7;if(!(b>=0&&b<=5))throw EKG(b,F.T);if(J<1)throw Error("Invalid field number: "+J+" (at position "+F.T+")");F.Z=J;F.U=b;return!0}; r4=function(F){switch(F.U){case 0:F.U!=0?r4(F):Po(F.C);break;case 1:F=F.C;Wo(F,F.C+8);break;case 2:if(F.U!=2)r4(F);else{var J=Eq(F.C)>>>0;F=F.C;Wo(F,F.C+J)}break;case 5:F=F.C;Wo(F,F.C+4);break;case 3:J=F.Z;do{if(!rLm(F))throw Error("Unmatched start-group tag: stream EOF");if(F.U==4){if(F.Z!=J)throw Error("Unmatched end-group tag");break}r4(F)}while(1);break;default:throw EKG(F.U,F.T);}}; SD=function(F,J,b){var I=F.C.T,u=Eq(F.C)>>>0,w=F.C.C+u,M=w-I;M<=0&&(F.C.T=w,b(J,F,void 0,void 0,void 0),M=w-F.C.C);if(M)throw Error("Message parsing ended unexpectedly. Expected to read "+(u+" bytes, instead read "+(u-M)+" bytes, either the data ended unexpectedly or the message misreported its own length"));F.C.C=w;F.C.T=I}; $4=function(F){var J=Eq(F.C)>>>0;F=F.C;var b=VJ4(F,J);F=F.U;if(SXm){var I=F,u;(u=sq)||(u=sq=new TextDecoder("utf-8",{fatal:!0}));J=b+J;I=b===0&&J===I.length?I:I.subarray(b,J);try{var w=u.decode(I)}catch(a){if(Y4===void 0){try{u.decode(new Uint8Array([128]))}catch(e){}try{u.decode(new Uint8Array([97])),Y4=!0}catch(e){Y4=!1}}!Y4&&(sq=void 0);throw a;}}else{w=b;J=w+J;b=[];for(var M=null,q,v;w<J;)q=F[w++],q<128?b.push(q):q<224?w>=J?zV():(v=F[w++],q<194||(v&192)!==128?(w--,zV()):b.push((q&31)<<6|v&63)): q<240?w>=J-1?zV():(v=F[w++],(v&192)!==128||q===224&&v<160||q===237&&v>=160||((u=F[w++])&192)!==128?(w--,zV()):b.push((q&15)<<12|(v&63)<<6|u&63)):q<=244?w>=J-2?zV():(v=F[w++],(v&192)!==128||(q<<28)+(v-144)>>30!==0||((u=F[w++])&192)!==128||((I=F[w++])&192)!==128?(w--,zV()):(q=(q&7)<<18|(v&63)<<12|(u&63)<<6|I&63,q-=65536,b.push((q>>10&1023)+55296,(q&1023)+56320))):zV(),b.length>=8192&&(M=sGJ(M,b),b.length=0);w=sGJ(M,b)}return w}; syY=function(F){var J=Eq(F.C)>>>0;return ByJ(F.C,J)}; CG=function(F,J,b){this.Z7=S2(F,J,b)}; YXv=function(F,J){if(J==null||J=="")return new F;J=JSON.parse(J);if(!Array.isArray(J))throw Error("dnarr");sX(J,32);return new F(J)}; XW=function(F,J){this.U=F>>>0;this.C=J>>>0}; CVa=function(F){if(!F)return $LG||($LG=new XW(0,0));if(!/^\d+$/.test(F))return null;uv(F);return new XW(tL,Ze)}; QH=function(F,J){this.U=F>>>0;this.C=J>>>0}; Qyz=function(F){if(!F)return XWz||(XWz=new QH(0,0));if(!/^-?\d+$/.test(F))return null;uv(F);return new QH(tL,Ze)}; RM=function(){this.C=[]}; Dw=function(F,J,b){for(;b>0||J>127;)F.C.push(J&127|128),J=(J>>>7|b<<25)>>>0,b>>>=7;F.C.push(J)}; k4=function(F,J){for(;J>127;)F.C.push(J&127|128),J>>>=7;F.C.push(J)}; Rmz=function(F,J){if(J>=0)k4(F,J);else{for(var b=0;b<9;b++)F.C.push(J&127|128),J>>=7;F.C.push(1)}}; Oq=function(F,J){F.C.push(J>>>0&255);F.C.push(J>>>8&255);F.C.push(J>>>16&255);F.C.push(J>>>24&255)}; DL_=function(){this.T=[];this.U=0;this.C=new RM}; oM=function(F,J){J.length!==0&&(F.T.push(J),F.U+=J.length)}; kwm=function(F,J){hx(F,J,2);J=F.C.end();oM(F,J);J.push(F.U);return J}; Of3=function(F,J){var b=J.pop();for(b=F.U+F.C.length()-b;b>127;)J.push(b&127|128),b>>>=7,F.U++;J.push(b);F.U++}; hx=function(F,J,b){k4(F.C,J*8+b)}; oK4=function(F,J,b){if(b!=null){switch(typeof b){case "string":CVa(b)}hx(F,J,1);switch(typeof b){case "number":F=F.C;Lf(b);Oq(F,tL);Oq(F,Ze);break;case "bigint":b=BigInt.asUintN(64,b);b=new XW(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));F=F.C;J=b.C;Oq(F,b.U);Oq(F,J);break;default:b=CVa(b),F=F.C,J=b.C,Oq(F,b.U),Oq(F,J)}}}; co=function(F,J,b){hx(F,J,2);k4(F.C,b.length);oM(F,F.C.end());oM(F,b)}; Uq=function(){function F(){throw Error();} Object.setPrototypeOf(F,F.prototype);return F}; nG=function(F,J,b){this.e8=F;this.ZH=J;F=lao(x4);this.C=!!F&&b===F||!1}; tx=function(F,J){var b=b===void 0?x4:b;return new nG(F,J,b)}; cL4=function(F,J,b,I,u){J=hmo(J,I);J!=null&&(b=kwm(F,b),u(J,F),Of3(F,b))}; LG=function(F,J,b,I){var u=I[F];if(u)return u;u={};u.RzQ=I;u.q8=mLC(I[0]);var w=I[1],M=1;w&&w.constructor===Object&&(u.extensions=w,w=I[++M],typeof w==="function"&&(u.ri=!0,Zw!=null||(Zw=w),Ho!=null||(Ho=I[M+1]),w=I[M+=2]));for(var q={};w&&Array.isArray(w)&&w.length&&typeof w[0]==="number"&&w[0]>0;){for(var v=0;v<w.length;v++)q[w[v]]=w;w=I[++M]}for(v=1;w!==void 0;){typeof w==="number"&&(v+=w,w=I[++M]);var a=void 0;if(w instanceof nG)var e=w;else e=ULC,M--;w=void 0;if((w=e)==null?0:w.C){w=I[++M];a= I;var K=M;typeof w==="function"&&(w=w(),a[K]=w);a=w}w=I[++M];K=v+1;typeof w==="number"&&w<0&&(K-=w,w=I[++M]);for(;v<K;v++){var p=q[v];a?b(u,v,e,a,p):J(u,v,e,p)}}return I[F]=u}; nK4=function(F){return Array.isArray(F)?F[0]instanceof nG?F:[xL3,F]:[F,void 0]}; hmo=function(F,J){if(F instanceof CG)return F.Z7;if(Array.isArray(F))return sF(F,J,!1)}; Fv=function(F,J,b,I){var u=b.e8;F[J]=I?function(w,M,q){return u(w,M,q,I)}:u}; bw=function(F,J,b,I,u){var w=b.e8,M,q;F[J]=function(v,a,e){return w(v,a,e,q||(q=LG(JQ,Fv,bw,I).q8),M||(M=I0(I)),u)}}; I0=function(F){var J=F[tJo];if(J!=null)return J;var b=LG(JQ,Fv,bw,F);J=b.ri?function(I,u){return Zw(I,u,b)}:function(I,u){for(var w=I[SJ]|0;rLm(u)&&u.U!=4;){var M=u.Z,q=b[M]; if(q==null){var v=b.extensions;v&&(v=v[M])&&(v=Zfm(v),v!=null&&(q=b[M]=v))}q!=null&&q(u,I,M)||(q=u,M=q.T,r4(q),q.u6?q=void 0:(v=q.C.C-M,q.C.C=M,q=ByJ(q.C,v)),M=I,q&&((v=M[oy])?v.push(q):M[oy]=[q]))}w&16384&&sX(I,34);return!0}; return F[tJo]=J}; Zfm=function(F){F=nK4(F);var J=F[0].e8;if(F=F[1]){var b=I0(F),I=LG(JQ,Fv,bw,F).q8;return function(u,w,M){return J(u,w,M,I,b)}}return J}; uw=function(F,J,b){F[J]=b.ZH}; M9=function(F,J,b,I){var u,w,M=b.ZH;F[J]=function(q,v,a){return M(q,v,a,w||(w=LG(w3,uw,M9,I).q8),u||(u=Hfk(I)))}}; Hfk=function(F){var J=F[LF4];if(!J){var b=LG(w3,uw,M9,F);J=function(I,u){return FLz(I,u,b)}; F[LF4]=J}return J}; FLz=function(F,J,b){for(var I=F[SJ]|0,u=I&512?0:-1,w=F.length,M=w+(I&256?-1:0),q=I&512?1:0;q<M;q++){var v=F[q];if(v!=null){var a=q-u,e=J_C(b,a);e&&e(J,v,a)}}if(I&256){I=F[w-1];for(var K in I)u=+K,Number.isNaN(u)||(w=I[u],w!=null&&(M=J_C(b,u))&&M(J,w,u))}if(F=hL(F))for(oM(J,J.C.end()),b=0;b<F.length;b++)oM(J,Gw(F[b])||new Uint8Array(0))}; J_C=function(F,J){var b=F[J];if(b)return b;if(b=F.extensions)if(b=b[J]){b=nK4(b);var I=b[0].ZH;if(b=b[1]){var u=Hfk(b),w=LG(w3,uw,M9,b).q8;b=F.ri?Ho(w,u):function(M,q,v){return I(M,q,v,w,u)}}else b=I; return F[J]=b}}; AQ=function(F,J,b){if(Array.isArray(J)){var I=J[SJ]|0;if(I&4)return J;for(var u=0,w=0;u<J.length;u++){var M=F(J[u]);M!=null&&(J[w++]=M)}w<u&&(J.length=w);b&&(YK(J,(I|5)&-12289),I&2&&Object.freeze(J));return J}}; q9=function(F,J,b){return new nG(F,J,b)}; v9=function(F,J,b){return new nG(F,J,b)}; a0=function(F,J,b){Qg(F,F[SJ]|0,J,b)}; ep=function(F,J,b){J=J==null||typeof J==="number"?J:J==="NaN"||J==="Infinity"||J==="-Infinity"?Number(J):void 0;J!=null&&(hx(F,b,1),F=F.C,b=bIz||(bIz=new DataView(new ArrayBuffer(8))),b.setFloat64(0,+J,!0),tL=b.getUint32(0,!0),Ze=b.getUint32(4,!0),Oq(F,tL),Oq(F,Ze))}; K5=function(F,J,b){J=x8z(J);if(J!=null){switch(typeof J){case "string":Qyz(J)}if(J!=null)switch(hx(F,b,0),typeof J){case "number":F=F.C;J_(J);Dw(F,tL,Ze);break;case "bigint":b=BigInt.asUintN(64,J);b=new QH(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));Dw(F.C,b.U,b.C);break;default:b=Qyz(J),Dw(F.C,b.U,b.C)}}}; p5=function(F,J,b){J=e2(J);J!=null&&J!=null&&(hx(F,b,0),Rmz(F.C,J))}; Iz_=function(F,J,b){J=J==null||typeof J==="boolean"?J:typeof J==="number"?!!J:void 0;J!=null&&(hx(F,b,0),F.C.C.push(J?1:0))}; ueG=function(F,J,b){J=dU(J);J!=null&&co(F,b,Xao(J))}; w34=function(F,J,b,I,u){J=hmo(J,I);J!=null&&(b=kwm(F,b),u(J,F),Of3(F,b))}; M2o=function(F){return function(){var J=new DL_;FLz(this.Z7,J,LG(w3,uw,M9,F));oM(J,J.C.end());for(var b=new Uint8Array(J.U),I=J.T,u=I.length,w=0,M=0;M<u;M++){var q=I[M];b.set(q,w);w+=q.length}J.T=[b];return b}}; g3=function(F){return function(J){return YXv(F,J)}}; A_Y=function(F){this.Z7=S2(F)}; qF4=function(F,J){return leo(F,J,D8C)}; mk=function(F){this.Z7=S2(F)}; yG=function(F){this.Z7=S2(F)}; iw=function(F){this.Z7=S2(F)}; zy=function(F){this.Z7=S2(F)}; vpz=function(F){this.Z7=S2(F)}; g.KLa=function(F){var J=new zy;J=yH(J,1,F.U);var b=azG(F);J=leo(J,b,LRC);b=[];for(var I=[],u=g.N(F.C.keys()),w=u.next();!w.done;w=u.next())I.push(w.value.split(","));for(u=0;u<I.length;u++){w=I[u];for(var M=F.Z,q=F.Fh(w)||[],v=[],a=0;a<q.length;a++){var e=q[a],K=e&&e.C;e=new yG;switch(M){case 3:K=Number(K);Number.isFinite(K)&&FW(e,1,N9,lv(K));break;case 2:FW(e,2,N9,Mu(Number(K)))}v.push(e)}M=v;for(q=0;q<M.length;q++){v=M[q];a=new iw;v=Ax(a,yG,2,v);a=[];e=eWm(F);for(K=0;K<e.length;K++){var p=e[K], m=w[K],y=new mk;switch(p){case 3:FW(y,1,lw,W3(String(m)));break;case 2:p=Number(m);Number.isFinite(p)&&FW(y,2,lw,aF(p));break;case 1:FW(y,3,lw,A_(m==="true"))}a.push(y)}vo(v,mk,1,a);b.push(v)}}vo(J,iw,4,b);return J}; p3v=function(F){if(!F)return"";if(/^about:(?:blank|srcdoc)$/.test(F))return window.origin||"";F.indexOf("blob:")===0&&(F=F.substring(5));F=F.split("#")[0].split("?")[0];F=F.toLowerCase();F.indexOf("//")==0&&(F=window.location.protocol+F);/^[\w\-]*:\/\//.test(F)||(F=window.location.href);var J=F.substring(F.indexOf("://")+3),b=J.indexOf("/");b!=-1&&(J=J.substring(0,b));b=F.substring(0,F.indexOf("://"));if(!b)throw Error("URI is missing protocol: "+F);if(b!=="http"&&b!=="https"&&b!=="chrome-extension"&& b!=="moz-extension"&&b!=="file"&&b!=="android-app"&&b!=="chrome-search"&&b!=="chrome-untrusted"&&b!=="chrome"&&b!=="app"&&b!=="devtools")throw Error("Invalid URI scheme in origin: "+b);F="";var I=J.indexOf(":");if(I!=-1){var u=J.substring(I+1);J=J.substring(0,I);if(b==="http"&&u!=="80"||b==="https"&&u!=="443")F=":"+u}return b+"://"+J+F}; gpm=function(){function F(){u[0]=1732584193;u[1]=4023233417;u[2]=2562383102;u[3]=271733878;u[4]=3285377520;e=a=0} function J(K){for(var p=M,m=0;m<64;m+=4)p[m/4]=K[m]<<24|K[m+1]<<16|K[m+2]<<8|K[m+3];for(m=16;m<80;m++)K=p[m-3]^p[m-8]^p[m-14]^p[m-16],p[m]=(K<<1|K>>>31)&4294967295;K=u[0];var y=u[1],f=u[2],d=u[3],G=u[4];for(m=0;m<80;m++){if(m<40)if(m<20){var P=d^y&(f^d);var r=1518500249}else P=y^f^d,r=1859775393;else m<60?(P=y&f|d&(y|f),r=2400959708):(P=y^f^d,r=3395469782);P=((K<<5|K>>>27)&4294967295)+P+G+r+p[m]&4294967295;G=d;d=f;f=(y<<30|y>>>2)&4294967295;y=K;K=P}u[0]=u[0]+K&4294967295;u[1]=u[1]+y&4294967295;u[2]= u[2]+f&4294967295;u[3]=u[3]+d&4294967295;u[4]=u[4]+G&4294967295} function b(K,p){if(typeof K==="string"){K=unescape(encodeURIComponent(K));for(var m=[],y=0,f=K.length;y<f;++y)m.push(K.charCodeAt(y));K=m}p||(p=K.length);m=0;if(a==0)for(;m+64<p;)J(K.slice(m,m+64)),m+=64,e+=64;for(;m<p;)if(w[a++]=K[m++],e++,a==64)for(a=0,J(w);m+64<p;)J(K.slice(m,m+64)),m+=64,e+=64} function I(){var K=[],p=e*8;a<56?b(q,56-a):b(q,64-(a-56));for(var m=63;m>=56;m--)w[m]=p&255,p>>>=8;J(w);for(m=p=0;m<5;m++)for(var y=24;y>=0;y-=8)K[p++]=u[m]>>y&255;return K} for(var u=[],w=[],M=[],q=[128],v=1;v<64;++v)q[v]=0;var a,e;F();return{reset:F,update:b,digest:I,WK:function(){for(var K=I(),p="",m=0;m<K.length;m++)p+="0123456789ABCDEF".charAt(Math.floor(K[m]/16))+"0123456789ABCDEF".charAt(K[m]%16);return p}}}; y_Y=function(F,J,b){var I=String(g.Qz.location.href);return I&&F&&J?[J,muG(p3v(I),F,b||null)].join(" "):null}; muG=function(F,J,b){var I=[],u=[];if((Array.isArray(b)?2:1)==1)return u=[J,F],g.gy(I,function(q){u.push(q)}),iI3(u.join(" ")); var w=[],M=[];g.gy(b,function(q){M.push(q.key);w.push(q.value)}); b=Math.floor((new Date).getTime()/1E3);u=w.length==0?[b,J,F]:[w.join(":"),b,J,F];g.gy(I,function(q){u.push(q)}); F=iI3(u.join(" "));F=[b,F];M.length==0||F.push(M.join(""));return F.join("_")}; iI3=function(F){var J=gpm();J.update(F);return J.WK().toLowerCase()}; NUz=function(){var F=null;if(!zWa)return F;try{var J=function(b){return b}; F=zWa.createPolicy("goog#html",{createHTML:J,createScript:J,createScriptURL:J})}catch(b){}return F}; W9=function(){f5===void 0&&(f5=NUz());return f5}; d3=function(F){this.C=F}; EQ=function(F){var J=W9();return new d3(J?J.createScriptURL(F):F)}; jp=function(F){if(F instanceof d3)return F.C;throw Error("");}; Gy=function(F){this.C=F}; g.VG=function(F){if(F instanceof Gy)return F.C;throw Error("");}; P9=function(F){this.o8=F}; B9=function(F){return new P9(function(J){return J.substr(0,F.length+1).toLowerCase()===F+":"})}; g.Ty=function(F,J){J=J===void 0?lz_:J;a:if(J=J===void 0?lz_:J,!(F instanceof Gy)){for(var b=0;b<J.length;++b){var I=J[b];if(I instanceof P9&&I.o8(F)){F=new Gy(F);break a}}F=void 0}return F||fzG}; duk=function(F){if(WLY.test(F))return F}; r3=function(F){return F instanceof Gy?g.VG(F):duk(F)}; g.Sp=function(F,J){J=r3(J);J!==void 0&&(F.href=J)}; sQ=function(F){this.C=F}; Y_=function(F){var J=W9();return new sQ(J?J.createHTML(F):F)}; $_=function(F){if(F instanceof sQ)return F.C;throw Error("");}; g.C5=function(F,J,b,I){J=r3(J);return J!==void 0?F.open(J,b,I):null}; Xv=function(F){F=F===void 0?document:F;var J,b;F=(b=(J=F).querySelector)==null?void 0:b.call(J,"script[nonce]");return F==null?"":F.nonce||F.getAttribute("nonce")||""}; QG=function(F){this.C=F}; Epv=function(F){var J=W9();return new QG(J?J.createScript(F):F)}; R0=function(F){if(F instanceof QG)return F.C;throw Error("");}; Di=function(F){var J=Xv(F.ownerDocument);J&&F.setAttribute("nonce",J)}; g.k_=function(F,J){F.src=jp(J);Di(F)}; OQ=function(){this.C=jFv[0].toLowerCase()}; Gaz=function(F){var J="true".toString(),b=[new OQ];if(b.length===0)throw Error("");if(b.map(function(I){if(I instanceof OQ)I=I.C;else throw Error("");return I}).every(function(I){return"data-loaded".indexOf(I)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); F.setAttribute("data-loaded",J)}; V2k=function(F){var J=g.kC("window.location.href");F==null&&(F='Unknown Error of type "null/undefined"');if(typeof F==="string")return{message:F,name:"Unknown error",lineNumber:"Not available",fileName:J,stack:"Not available"};var b=!1;try{var I=F.lineNumber||F.line||"Not available"}catch(M){I="Not available",b=!0}try{var u=F.fileName||F.filename||F.sourceURL||g.Qz.$googDebugFname||J}catch(M){u="Not available",b=!0}J=o0(F);if(!(!b&&F.lineNumber&&F.fileName&&F.stack&&F.message&&F.name)){b=F.message; if(b==null){if(F.constructor&&F.constructor instanceof Function){if(F.constructor.name)b=F.constructor.name;else if(b=F.constructor,hQ[b])b=hQ[b];else{b=String(b);if(!hQ[b]){var w=/function\s+([^\(]+)/m.exec(b);hQ[b]=w?w[1]:"[Anonymous]"}b=hQ[b]}b='Unknown Error of type "'+b+'"'}else b="Unknown Error of unknown type";typeof F.toString==="function"&&Object.prototype.toString!==F.toString&&(b+=": "+F.toString())}return{message:b,name:F.name||"UnknownError",lineNumber:I,fileName:u,stack:J||"Not available"}}return{message:F.message, name:F.name,lineNumber:F.lineNumber,fileName:F.fileName,stack:J}}; o0=function(F,J){J||(J={});J[c9(F)]=!0;var b=F.stack||"",I=F.cause;I&&!J[c9(I)]&&(b+="\nCaused by: ",I.stack&&I.stack.indexOf(I.toString())==0||(b+=typeof I==="string"?I:I.message+"\n"),b+=o0(I,J));F=F.errors;if(Array.isArray(F)){I=1;var u;for(u=0;u<F.length&&!(I>4);u++)J[c9(F[u])]||(b+="\nInner error "+I++ +": ",F[u].stack&&F[u].stack.indexOf(F[u].toString())==0||(b+=typeof F[u]==="string"?F[u]:F[u].message+"\n"),b+=o0(F[u],J));u<F.length&&(b+="\n... "+(F.length-u)+" more inner errors")}return b}; c9=function(F){var J="";typeof F.toString==="function"&&(J=""+F);return J+F.stack}; UQ=function(F,J,b){return F.parseFromString($_(J),b)}; g.x_=function(F){return encodeURIComponent(String(F))}; n5=function(F){return decodeURIComponent(F.replace(/\+/g," "))}; tQ=function(F){Pvv.test(F)&&(F.indexOf("&")!=-1&&(F=F.replace(BUY,"&")),F.indexOf("<")!=-1&&(F=F.replace(TUz,"<")),F.indexOf(">")!=-1&&(F=F.replace(r_z,">")),F.indexOf('"')!=-1&&(F=F.replace(SFa,""")),F.indexOf("'")!=-1&&(F=F.replace(sFv,"'")),F.indexOf("\x00")!=-1&&(F=F.replace(YFz,"�")));return F}; g.Zi=function(F){return F==null?"":String(F)}; H9=function(F){for(var J=0,b=0;b<F.length;++b)J=31*J+F.charCodeAt(b)>>>0;return J}; L5=function(F){var J=Number(F);return J==0&&g.d5(F)?NaN:J}; $u7=function(F){return String(F).replace(/\-([a-z])/g,function(J,b){return b.toUpperCase()})}; Cvk=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; X3o=function(F){return F.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(J,b,I){return b+I.toUpperCase()})}; QFm=function(F){var J=1;F=F.split(":");for(var b=[];J>0&&F.length;)b.push(F.shift()),J--;F.length&&b.push(F.join(":"));return b}; Fl=function(F){this.C=F||{cookie:""}}; JD=function(F){F=(F.C.cookie||"").split(";");for(var J=[],b=[],I,u,w=0;w<F.length;w++)u=GV(F[w]),I=u.indexOf("="),I==-1?(J.push(""),b.push(u)):(J.push(u.substring(0,I)),b.push(u.substring(I+1)));return{keys:J,values:b}}; RWY=function(){var F=g.Qz.__SAPISID||g.Qz.__APISID||g.Qz.__3PSAPISID||g.Qz.__1PSAPISID||g.Qz.__OVERRIDE_SID;if(F)return!0;typeof document!=="undefined"&&(F=new Fl(document),F=F.get("SAPISID")||F.get("APISID")||F.get("__Secure-3PAPISID")||F.get("__Secure-1PAPISID"));return!!F}; Du7=function(F,J,b,I){(F=g.Qz[F])||typeof document==="undefined"||(F=(new Fl(document)).get(J));return F?y_Y(F,b,I):null}; kaJ=function(F){var J=p3v(String(g.Qz.location.href)),b=[];if(RWY()){J=J.indexOf("https:")==0||J.indexOf("chrome-extension:")==0||J.indexOf("chrome-untrusted://new-tab-page")==0||J.indexOf("moz-extension:")==0;var I=J?g.Qz.__SAPISID:g.Qz.__APISID;I||typeof document==="undefined"||(I=new Fl(document),I=I.get(J?"SAPISID":"APISID")||I.get("__Secure-3PAPISID"));(I=I?y_Y(I,J?"SAPISIDHASH":"APISIDHASH",F):null)&&b.push(I);J&&((J=Du7("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",F))&&b.push(J),(F=Du7("__3PSAPISID", "__Secure-3PAPISID","SAPISID3PHASH",F))&&b.push(F))}return b.length==0?null:b.join(" ")}; be=function(){}; If=function(F){this.Z7=S2(F)}; ue=function(F,J){this.intervalMs=F;this.callback=J;this.enabled=!1;this.C=function(){return g.L3()}; this.U=this.C()}; wl=function(F){this.Z7=S2(F)}; MD=function(F){this.Z7=S2(F)}; g.AD=function(F,J,b){return Math.min(Math.max(F,J),b)}; g.qD=function(F,J){F%=J;return F*J<0?F+J:F}; v1=function(F,J,b){return F+b*(J-F)}; g.K$=function(F,J){this.x=F!==void 0?F:0;this.y=J!==void 0?J:0}; p$=function(F,J){return F==J?!0:F&&J?F.x==J.x&&F.y==J.y:!1}; g.gl=function(F,J){this.width=F;this.height=J}; g.mD=function(F,J){return F==J?!0:F&&J?F.width==J.width&&F.height==J.height:!1}; yj=function(F){return F.width*F.height}; g.ie=function(F,J,b){for(var I in F)J.call(b,F[I],I,F)}; g.zo=function(F,J,b){var I={},u;for(u in F)J.call(b,F[u],u,F)&&(I[u]=F[u]);return I}; ND=function(F,J){var b={},I;for(I in F)b[I]=J.call(void 0,F[I],I,F);return b}; g.le=function(F,J,b){for(var I in F)if(J.call(b,F[I],I,F))return!0;return!1}; OIz=function(F,J){for(var b in F)if(!J.call(void 0,F[b],b,F))return!1;return!0}; g.f$=function(F){for(var J in F)return J}; opz=function(F){for(var J in F)return F[J]}; g.W1=function(F){var J=[],b=0,I;for(I in F)J[b++]=F[I];return J}; g.dl=function(F){var J=[],b=0,I;for(I in F)J[b++]=I;return J}; g.Ea=function(F,J){return F!==null&&J in F}; g.jq=function(F,J){for(var b in F)if(F[b]==J)return!0;return!1}; Go=function(F,J){for(var b in F)if(J.call(void 0,F[b],b,F))return b}; hW_=function(F,J){return(J=Go(F,J))&&F[J]}; g.Vj=function(F){for(var J in F)return!1;return!0}; g.c_a=function(F){for(var J in F)delete F[J]}; g.P1=function(F,J,b){return F!==null&&J in F?F[J]:b}; g.B1=function(F,J){for(var b in F)if(!(b in J)||F[b]!==J[b])return!1;for(var I in J)if(!(I in F))return!1;return!0}; g.To=function(F){var J={},b;for(b in F)J[b]=F[b];return J}; g.rl=function(F){if(!F||typeof F!=="object")return F;if(typeof F.clone==="function")return F.clone();if(typeof Map!=="undefined"&&F instanceof Map)return new Map(F);if(typeof Set!=="undefined"&&F instanceof Set)return new Set(F);if(F instanceof Date)return new Date(F.getTime());var J=Array.isArray(F)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(F)||F instanceof DataView?{}:new F.constructor(F.length),b;for(b in F)J[b]=g.rl(F[b]);return J}; g.Sq=function(F,J){for(var b,I,u=1;u<arguments.length;u++){I=arguments[u];for(b in I)F[b]=I[b];for(var w=0;w<Uu7.length;w++)b=Uu7[w],Object.prototype.hasOwnProperty.call(I,b)&&(F[b]=I[b])}}; YM=function(F,J){this.C=F===sa&&J||""}; $M=function(F){if(F instanceof sQ)return F;F=String(F).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return Y_(F)}; xu4=function(F){var J=$M("");return Y_(F.map(function(b){return $_($M(b))}).join($_(J).toString()))}; LLC=function(F){var J;if(!npC.test("div"))throw Error("");if(t27.indexOf("DIV")!==-1)throw Error("");var b="<div";F&&(b+=ZIa(F));Array.isArray(J)||(J=J===void 0?[]:[J]);HIo.indexOf("DIV")!==-1?b+=">":(F=xu4(J.map(function(I){return I instanceof sQ?I:$M(String(I))})),b+=">"+F.toString()+"</div>"); return Y_(b)}; ZIa=function(F){for(var J="",b=Object.keys(F),I=0;I<b.length;I++){var u=b[I],w=F[u];if(!npC.test(u))throw Error("");if(w!==void 0&&w!==null){if(/^on./i.test(u))throw Error("");FC4.indexOf(u.toLowerCase())!==-1&&(w=w instanceof Gy?w.toString():duk(String(w))||"about:invalid#zClosurez");w=u+'="'+$M(String(w))+'"';J+=" "+w}}return J}; Jx_=function(F){var J=g.Ba.apply(1,arguments);if(J.length===0)return EQ(F[0]);for(var b=F[0],I=0;I<J.length;I++)b+=encodeURIComponent(J[I])+F[I+1];return EQ(b)}; Qj=function(F){return F?new C$(Xl(F)):bGG||(bGG=new C$)}; Rf=function(F,J){return typeof J==="string"?F.getElementById(J):J}; g.D8=function(F,J){return(J||document).getElementsByTagName(String(F))}; g.kM=function(F,J){return(J||document).querySelectorAll("."+F)}; g.c1=function(F,J){var b=J||document;b.getElementsByClassName?F=b.getElementsByClassName(F)[0]:(b=document,F=F?(J||b).querySelector(F?"."+F:""):g.Oa(b,"*",F,J)[0]||null);return F||null}; g.Oa=function(F,J,b,I){F=I||F;return(J=J&&J!="*"?String(J).toUpperCase():"")||b?F.querySelectorAll(J+(b?"."+b:"")):F.getElementsByTagName("*")}; Ua=function(F,J){g.ie(J,function(b,I){I=="style"?F.style.cssText=b:I=="class"?F.className=b:I=="for"?F.htmlFor=b:Iwk.hasOwnProperty(I)?F.setAttribute(Iwk[I],b):Wk(I,"aria-")||Wk(I,"data-")?F.setAttribute(I,b):F[I]=b})}; uWY=function(F){F=F.document;F=F.compatMode=="CSS1Compat"?F.documentElement:F.body;return new g.gl(F.clientWidth,F.clientHeight)}; MDz=function(F){var J=woY(F);F=F.defaultView;return new g.K$(F.pageXOffset||J.scrollLeft,F.pageYOffset||J.scrollTop)}; woY=function(F){return F.scrollingElement?F.scrollingElement:g.xM||F.compatMode!="CSS1Compat"?F.body||F.documentElement:F.documentElement}; n$=function(F){return F?F.defaultView:window}; Z8=function(F,J,b){var I=arguments,u=document,w=I[1],M=tD(u,String(I[0]));w&&(typeof w==="string"?M.className=w:Array.isArray(w)?M.className=w.join(" "):Ua(M,w));I.length>2&&Axz(u,M,I,2);return M}; Axz=function(F,J,b,I){function u(q){q&&J.appendChild(typeof q==="string"?F.createTextNode(q):q)} for(;I<b.length;I++){var w=b[I];if(!g.ca(w)||g.Um(w)&&w.nodeType>0)u(w);else{a:{if(w&&typeof w.length=="number"){if(g.Um(w)){var M=typeof w.item=="function"||typeof w.item=="string";break a}if(typeof w==="function"){M=typeof w.item=="function";break a}}M=!1}g.gy(M?g.JL(w):w,u)}}}; g.H1=function(F){return tD(document,F)}; tD=function(F,J){J=String(J);F.contentType==="application/xhtml+xml"&&(J=J.toLowerCase());return F.createElement(J)}; g.L$=function(F){return document.createTextNode(String(F))}; g.F9=function(F,J){F.appendChild(J)}; g.J6=function(F){for(var J;J=F.firstChild;)F.removeChild(J)}; bB=function(F,J,b){F.insertBefore(J,F.childNodes[b]||null)}; g.ID=function(F){return F&&F.parentNode?F.parentNode.removeChild(F):null}; g.uB=function(F,J){if(!F||!J)return!1;if(F.contains&&J.nodeType==1)return F==J||F.contains(J);if(typeof F.compareDocumentPosition!="undefined")return F==J||!!(F.compareDocumentPosition(J)&16);for(;J&&F!=J;)J=J.parentNode;return J==F}; Xl=function(F){return F.nodeType==9?F:F.ownerDocument||F.document}; g.wK=function(F,J){if("textContent"in F)F.textContent=J;else if(F.nodeType==3)F.data=String(J);else if(F.firstChild&&F.firstChild.nodeType==3){for(;F.lastChild!=F.firstChild;)F.removeChild(F.lastChild);F.firstChild.data=String(J)}else g.J6(F),F.appendChild(Xl(F).createTextNode(String(J)))}; v4k=function(F){return F.tagName=="A"&&F.hasAttribute("href")||F.tagName=="INPUT"||F.tagName=="TEXTAREA"||F.tagName=="SELECT"||F.tagName=="BUTTON"?!F.disabled&&(!F.hasAttribute("tabindex")||qqa(F)):F.hasAttribute("tabindex")&&qqa(F)}; qqa=function(F){F=F.tabIndex;return typeof F==="number"&&F>=0&&F<32768}; A6=function(F,J,b){if(!J&&!b)return null;var I=J?String(J).toUpperCase():null;return MI(F,function(u){return(!I||u.nodeName==I)&&(!b||typeof u.className==="string"&&g.te(u.className.split(/\s+/),b))},!0)}; MI=function(F,J,b){F&&!b&&(F=F.parentNode);for(b=0;F;){if(J(F))return F;F=F.parentNode;b++}return null}; C$=function(F){this.C=F||g.Qz.document||document}; qI=function(F){this.Z7=S2(F)}; vz=function(F){this.Z7=S2(F)}; aD=function(F){this.Z7=S2(F)}; awo=function(F,J){vo(F,vz,1,J)}; eX=function(F){this.Z7=S2(F)}; KCa=function(F,J){J=J===void 0?elz:J;if(!Kb){var b;F=(b=F.navigator)==null?void 0:b.userAgentData;if(!F||typeof F.getHighEntropyValues!=="function"||F.brands&&typeof F.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));b=(F.brands||[]).map(function(u){var w=new vz;w=yH(w,1,u.brand);return yH(w,2,u.version)}); awo(RF(pb,2,A_(F.mobile)),b);Kb=F.getHighEntropyValues(J)}var I=new Set(J);return Kb.then(function(u){var w=pb.clone();I.has("platform")&&yH(w,3,u.platform);I.has("platformVersion")&&yH(w,4,u.platformVersion);I.has("architecture")&&yH(w,5,u.architecture);I.has("model")&&yH(w,6,u.model);I.has("uaFullVersion")&&yH(w,7,u.uaFullVersion);return w}).catch(function(){return pb.clone()})}; gK=function(F){this.Z7=S2(F)}; po4=function(F){this.Z7=S2(F)}; yx=function(F){this.Z7=S2(F,4)}; iB=function(F){this.Z7=S2(F,36)}; zE=function(F){this.Z7=S2(F,19)}; NI=function(F,J){this.Wc=J=J===void 0?!1:J;this.uach=this.locale=null;this.U=0;this.isFinal=!1;this.C=new zE;Number.isInteger(F)&&this.C.Cf(F);J||(this.locale=document.documentElement.getAttribute("lang"));g4z(this,new gK)}; g4z=function(F,J){Ax(F.C,gK,1,J);g4(J,1)||zb(J,1,1);F.Wc||(J=fb(F),pG(J,5)||yH(J,5,F.locale));F.uach&&(J=fb(F),MX(J,aD,9)||Ax(J,aD,9,F.uach))}; mX_=function(F,J){F.U=J}; yx7=function(F){var J=J===void 0?elz:J;var b=F.Wc?void 0:n$();b?KCa(b,J).then(function(I){F.uach=I;I=fb(F);Ax(I,aD,9,F.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; fb=function(F){F=MX(F.C,gK,1);var J=MX(F,eX,11);J||(J=new eX,Ax(F,eX,11,J));return J}; iGz=function(F){return g.xM?"webkit"+F:F.toLowerCase()}; g.Wz=function(F,J,b,I){this.Z=F;this.D=J;this.C=this.T=F;this.W=b||0;this.V=I||2}; g.dK=function(F){F.C=Math.min(F.D,F.C*F.V);F.T=Math.min(F.D,F.C+(F.W?Math.round(F.W*(Math.random()-.5)*2*F.C):0));F.U++}; zlY=function(F){this.Z7=S2(F,8)}; N47=function(F){this.Z7=S2(F)}; jX=function(F){g.R.call(this);var J=this;this.componentId="";this.C=[];this.qf="";this.pageId=null;this.dD=this.Gj=-1;this.V=this.experimentIds=null;this.Tj=this.eE=this.W=this.Z=0;this.zj=1;this.timeoutMillis=0;this.kQ=!1;this.logSource=F.logSource;this.o3=F.o3||function(){}; this.T=new NI(F.logSource,F.Wc);this.network=F.network||null;this.gM=F.gM||null;this.Y=F.mEQ||null;this.sessionIndex=F.sessionIndex||null;this.aU=F.aU||!1;this.logger=null;this.withCredentials=!F.aJ;this.Wc=F.Wc||!1;this.N=!this.Wc&&!!n$()&&!!n$().navigator&&n$().navigator.sendBeacon!==void 0;this.fW=typeof URLSearchParams!=="undefined"&&!!(new URL(EP())).searchParams&&!!(new URL(EP())).searchParams.set;var b=zb(new gK,1,1);g4z(this.T,b);this.D=new g.Wz(1E4,3E5,.1);F=lwa(this,F.XA);this.U=new ue(this.D.getValue(), F);this.WN=new ue(6E5,F);this.aU||this.WN.start();this.Wc||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.i6()}),document.addEventListener("pagehide",this.i6.bind(this)))}; lwa=function(F,J){return F.fW?J?function(){J().then(function(){F.flush()})}:function(){F.flush()}:function(){}}; fwz=function(F){F.Y||(F.Y=EP());try{return(new URL(F.Y)).toString()}catch(J){return(new URL(F.Y,n$().location.origin)).toString()}}; WCa=function(F,J,b){b=b===void 0?F.o3():b;var I={},u=new URL(fwz(F));b&&(I.Authorization=b);F.sessionIndex&&(I["X-Goog-AuthUser"]=F.sessionIndex,u.searchParams.set("authuser",F.sessionIndex));F.pageId&&(Object.defineProperty(I,"X-Goog-PageId",{value:F.pageId}),u.searchParams.set("pageId",F.pageId));return{url:u.toString(),body:J,Sw:1,requestHeaders:I,requestType:"POST",withCredentials:F.withCredentials,timeoutMillis:F.timeoutMillis}}; E4_=function(F){dXv(F,function(J,b){J=new URL(J);J.searchParams.set("format","json");var I=!1;try{I=n$().navigator.sendBeacon(J.toString(),b.G7())}catch(u){}I||(F.N=!1);return I})}; dXv=function(F,J){if(F.C.length!==0){var b=new URL(fwz(F));b.searchParams.delete("format");var I=F.o3();I&&b.searchParams.set("auth",I);b.searchParams.set("authuser",F.sessionIndex||"0");for(I=0;I<10&&F.C.length;++I){var u=F.C.slice(0,32),w=F.T.build(u,F.Z,F.W,F.gM,F.eE,F.Tj);if(!J(b.toString(),w)){++F.W;break}F.Z=0;F.W=0;F.eE=0;F.Tj=0;F.C=F.C.slice(u.length)}F.U.enabled&&F.U.stop()}}; EP=function(){return"https://play.google.com/log?format=json&hasfast=true"}; GE=function(){this.Xo=typeof AbortController!=="undefined"}; Vx=function(F,J){g.R.call(this);this.logSource=F;this.sessionIndex=J;this.x6="https://play.google.com/log?format=json&hasfast=true";this.U=null;this.Z=!1;this.network=null;this.componentId="";this.C=this.gM=null;this.T=!1;this.pageId=null}; jM7=function(F,J){F.U=J;return F}; GbJ=function(F,J){F.network=J;return F}; VDv=function(F,J){F.C=J}; PPa=function(F){F.T=!0;return F}; Pz=function(F,J,b,I,u,w,M){F=F===void 0?-1:F;J=J===void 0?"":J;b=b===void 0?"":b;I=I===void 0?!1:I;u=u===void 0?"":u;g.R.call(this);this.logSource=F;this.componentId=J;w?J=w:(F=new Vx(F,"0"),F.componentId=J,g.k(this,F),b!==""&&(F.x6=b),I&&(F.Z=!0),u&&jM7(F,u),M&&GbJ(F,M),J=F.build());this.C=J}; B4z=function(F){this.C=F}; Bz=function(F,J,b){this.U=F;this.Z=J;this.fields=b||[];this.C=new Map}; eWm=function(F){return F.fields.map(function(J){return J.fieldType})}; azG=function(F){return F.fields.map(function(J){return J.fieldName})}; TE=function(F,J){Bz.call(this,F,3,J)}; rK=function(F,J){Bz.call(this,F,2,J)}; g.SX=function(F,J){this.type=F;this.currentTarget=this.target=J;this.defaultPrevented=this.U=!1}; sP=function(F,J){g.SX.call(this,F?F.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.C=null;F&&this.init(F,J)}; Ye=function(F){return!(!F||!F[T4C])}; Sqv=function(F,J,b,I,u){this.listener=F;this.proxy=null;this.src=J;this.type=b;this.capture=!!I;this.eF=u;this.key=++rxC;this.removed=this.Ux=!1}; $e=function(F){F.removed=!0;F.listener=null;F.proxy=null;F.src=null;F.eF=null}; Cb=function(F){this.src=F;this.listeners={};this.C=0}; g.X9=function(F,J){var b=J.type;b in F.listeners&&g.Hk(F.listeners[b],J)&&($e(J),F.listeners[b].length==0&&(delete F.listeners[b],F.C--))}; Qx=function(F,J,b,I){for(var u=0;u<F.length;++u){var w=F[u];if(!w.removed&&w.listener==J&&w.capture==!!b&&w.eF==I)return u}return-1}; g.Dr=function(F,J,b,I,u){if(I&&I.once)return RD(F,J,b,I,u);if(Array.isArray(J)){for(var w=0;w<J.length;w++)g.Dr(F,J[w],b,I,u);return null}b=ke(b);return Ye(F)?F.listen(J,b,g.Um(I)?!!I.capture:!!I,u):sMC(F,J,b,!1,I,u)}; sMC=function(F,J,b,I,u,w){if(!J)throw Error("Invalid event type");var M=g.Um(u)?!!u.capture:!!u,q=OP(F);q||(F[UP]=q=new Cb(F));b=q.add(J,b,I,M,w);if(b.proxy)return b;I=Yqz();b.proxy=I;I.src=F;I.listener=b;if(F.addEventListener)$Xa||(u=M),u===void 0&&(u=!1),F.addEventListener(J.toString(),I,u);else if(F.attachEvent)F.attachEvent(CPm(J.toString()),I);else if(F.addListener&&F.removeListener)F.addListener(I);else throw Error("addEventListener and attachEvent are unavailable.");Xo_++;return b}; Yqz=function(){function F(b){return J.call(F.src,F.listener,b)} var J=QMz;return F}; RD=function(F,J,b,I,u){if(Array.isArray(J)){for(var w=0;w<J.length;w++)RD(F,J[w],b,I,u);return null}b=ke(b);return Ye(F)?F.Sk(J,b,g.Um(I)?!!I.capture:!!I,u):sMC(F,J,b,!0,I,u)}; RlJ=function(F,J,b,I,u){if(Array.isArray(J))for(var w=0;w<J.length;w++)RlJ(F,J[w],b,I,u);else I=g.Um(I)?!!I.capture:!!I,b=ke(b),Ye(F)?F.iX(J,b,I,u):F&&(F=OP(F))&&(J=F.ze(J,b,I,u))&&xe(J)}; xe=function(F){if(typeof F!=="number"&&F&&!F.removed){var J=F.src;if(Ye(J))g.X9(J.dT,F);else{var b=F.type,I=F.proxy;J.removeEventListener?J.removeEventListener(b,I,F.capture):J.detachEvent?J.detachEvent(CPm(b),I):J.addListener&&J.removeListener&&J.removeListener(I);Xo_--;(b=OP(J))?(g.X9(b,F),b.C==0&&(b.src=null,J[UP]=null)):$e(F)}}}; CPm=function(F){return F in nb?nb[F]:nb[F]="on"+F}; QMz=function(F,J){if(F.removed)F=!0;else{J=new sP(J,this);var b=F.listener,I=F.eF||F.src;F.Ux&&xe(F);F=b.call(I,J)}return F}; OP=function(F){F=F[UP];return F instanceof Cb?F:null}; ke=function(F){if(typeof F==="function")return F;F[t6]||(F[t6]=function(J){return F.handleEvent(J)}); return F[t6]}; g.Zr=function(){g.R.call(this);this.dT=new Cb(this);this.G3=this;this.XS=null}; Hz=function(F,J,b,I){J=F.dT.listeners[String(J)];if(!J)return!0;J=J.concat();for(var u=!0,w=0;w<J.length;++w){var M=J[w];if(M&&!M.removed&&M.capture==b){var q=M.listener,v=M.eF||M.src;M.Ux&&g.X9(F.dT,M);u=q.call(v,I)!==!1&&u}}return u&&!I.defaultPrevented}; Lb=function(F,J){this.T=F;this.Z=J;this.U=0;this.C=null}; DXC=function(F,J){F.Z(J);F.U<100&&(F.U++,J.next=F.C,F.C=J)}; Ic=function(F){F=FQ(F);b5||(b5=kb3());b5(F)}; kb3=function(){if(typeof MessageChannel!=="undefined"){var F=new MessageChannel,J={},b=J;F.port1.onmessage=function(){if(J.next!==void 0){J=J.next;var I=J.An;J.An=null;I()}}; return function(I){b.next={An:I};b=b.next;F.port2.postMessage(0)}}return function(I){g.Qz.setTimeout(I,0)}}; u5=function(){this.U=this.C=null}; wb=function(){this.next=this.scope=this.C=null}; g.qf=function(F,J){Mf||OGk();Az||(Mf(),Az=!0);o4o.add(F,J)}; OGk=function(){var F=Promise.resolve(void 0);Mf=function(){F.then(hlJ)}}; hlJ=function(){for(var F;F=o4o.remove();){try{F.C.call(F.scope)}catch(J){N8(J)}DXC(cxv,F)}Az=!1}; vj=function(F){return function(){return F}}; g.ac=function(){}; UXa=function(F){var J=J||0;return function(){return F.apply(this,Array.prototype.slice.call(arguments,0,J))}}; eP=function(F){var J=!1,b;return function(){J||(b=F(),J=!0);return b}}; Ku=function(F){var J=F;return function(){if(J){var b=J;J=null;b()}}}; xXG=function(F,J){var b=0;return function(I){g.Qz.clearTimeout(b);var u=arguments;b=g.Qz.setTimeout(function(){F.apply(J,u)},50)}}; g.gb=function(F){this.C=0;this.V=void 0;this.Z=this.U=this.T=null;this.D=this.W=!1;if(F!=g.ac)try{var J=this;F.call(void 0,function(b){pu(J,2,b)},function(b){pu(J,3,b)})}catch(b){pu(this,3,b)}}; n43=function(){this.next=this.context=this.U=this.T=this.C=null;this.Z=!1}; mI=function(F,J,b){var I=tDv.get();I.T=F;I.U=J;I.context=b;return I}; g.yX=function(F){if(F instanceof g.gb)return F;var J=new g.gb(g.ac);pu(J,2,F);return J}; i5=function(F){return new g.gb(function(J,b){b(F)})}; g.HG3=function(F,J,b){ZGa(F,J,b,null)||g.qf(g.Ha(J,F))}; LCm=function(F){return new g.gb(function(J,b){F.length||J(void 0);for(var I,u=0;u<F.length;u++)I=F[u],g.HG3(I,J,b)})}; JQa=function(){var F,J,b=new g.gb(function(I,u){F=I;J=u}); return new Fkz(b,F,J)}; b53=function(F,J,b,I){zq(F,mI(J||g.ac,b||null,I))}; Nf=function(F,J){J=FQ(J);J=mI(J,J);J.Z=!0;zq(F,J);return F}; Ii_=function(F,J){if(F.C==0)if(F.T){var b=F.T;if(b.U){for(var I=0,u=null,w=null,M=b.U;M&&(M.Z||(I++,M.C==F&&(u=M),!(u&&I>1)));M=M.next)u||(w=M);u&&(b.C==0&&I==1?Ii_(b,J):(w?(I=w,I.next==b.Z&&(b.Z=I),I.next=I.next.next):uvv(b),w9z(b,u,3,J)))}F.T=null}else pu(F,3,J)}; zq=function(F,J){F.U||F.C!=2&&F.C!=3||MpG(F);F.Z?F.Z.next=J:F.U=J;F.Z=J}; AQJ=function(F,J,b,I){var u=mI(null,null,null);u.C=new g.gb(function(w,M){u.T=J?function(q){try{var v=J.call(I,q);w(v)}catch(a){M(a)}}:w; u.U=b?function(q){try{var v=b.call(I,q);v===void 0&&q instanceof l5?M(q):w(v)}catch(a){M(a)}}:M}); u.C.T=F;zq(F,u);return u.C}; pu=function(F,J,b){F.C==0&&(F===b&&(J=3,b=new TypeError("Promise cannot resolve to itself")),F.C=1,ZGa(b,F.BqD,F.vjQ,F)||(F.V=b,F.C=J,F.T=null,MpG(F),J!=3||b instanceof l5||w1o(F,b)))}; ZGa=function(F,J,b,I){if(F instanceof g.gb)return b53(F,J,b,I),!0;if(F)try{var u=!!F.$goog_Thenable}catch(M){u=!1}else u=!1;if(u)return F.then(J,b,I),!0;if(g.Um(F))try{var w=F.then;if(typeof w==="function")return Mqv(F,w,J,b,I),!0}catch(M){return b.call(I,M),!0}return!1}; Mqv=function(F,J,b,I,u){function w(v){q||(q=!0,I.call(u,v))} function M(v){q||(q=!0,b.call(u,v))} var q=!1;try{J.call(F,M,w)}catch(v){w(v)}}; MpG=function(F){F.W||(F.W=!0,g.qf(F.YV,F))}; uvv=function(F){var J=null;F.U&&(J=F.U,F.U=J.next,J.next=null);F.U||(F.Z=null);return J}; w9z=function(F,J,b,I){if(b==3&&J.U&&!J.Z)for(;F&&F.D;F=F.T)F.D=!1;if(J.C)J.C.T=null,ADG(J,b,I);else try{J.Z?J.T.call(J.context):ADG(J,b,I)}catch(u){qaz.call(null,u)}DXC(tDv,J)}; ADG=function(F,J,b){J==2?F.T.call(F.context,b):F.U&&F.U.call(F.context,b)}; w1o=function(F,J){F.D=!0;g.qf(function(){F.D&&qaz.call(null,J)})}; l5=function(F){iW.call(this,F)}; Fkz=function(F,J,b){this.promise=F;this.resolve=J;this.reject=b}; g.fu=function(F,J){g.Zr.call(this);this.gg=F||1;this.tM=J||g.Qz;this.GD=(0,g.tJ)(this.EjN,this);this.k9=g.L3()}; g.Wj=function(F,J,b){if(typeof F==="function")b&&(F=(0,g.tJ)(F,b));else if(F&&typeof F.handleEvent=="function")F=(0,g.tJ)(F.handleEvent,F);else throw Error("Invalid listener argument");return Number(J)>2147483647?-1:g.Qz.setTimeout(F,J||0)}; db=function(F,J){var b=null;return(new g.gb(function(I,u){b=g.Wj(function(){I(J)},F); b==-1&&u(Error("Failed to schedule timer."))})).rX(function(I){g.Qz.clearTimeout(b); throw I;})}; g.Es=function(F){g.R.call(this);this.V=F;this.Z=0;this.T=100;this.D=!1;this.U=new Map;this.W=new Set;this.flushInterval=3E4;this.C=new g.fu(this.flushInterval);this.C.listen("tick",this.AM,!1,this);g.k(this,this.C)}; vMo=function(F){F.C.enabled||F.C.start();F.Z++;F.Z>=F.T&&F.AM()}; a8C=function(F,J){return F.W.has(J)?void 0:F.U.get(J)}; e64=function(F){for(var J=0;J<F.length;J++)F[J].clear()}; KDa=function(F){switch(F){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}}; p14=function(F){switch(F){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""}}; jP=function(F,J,b){b=b===void 0?{}:b;J=Error.call(this,J);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.code=F;this.metadata=b;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; g.Gq=function(F){return(new gMk).G7(F)}; gMk=function(){}; VX=function(F,J,b){if(J==null)b.push("null");else{if(typeof J=="object"){if(Array.isArray(J)){var I=J;J=I.length;b.push("[");for(var u="",w=0;w<J;w++)b.push(u),VX(F,I[w],b),u=",";b.push("]");return}if(J instanceof String||J instanceof Number||J instanceof Boolean)J=J.valueOf();else{b.push("{");u="";for(I in J)Object.prototype.hasOwnProperty.call(J,I)&&(w=J[I],typeof w!="function"&&(b.push(u),mD7(I,b),b.push(":"),VX(F,w,b),u=","));b.push("}");return}}switch(typeof J){case "string":mD7(J,b);break;case "number":b.push(isFinite(J)&& !isNaN(J)?String(J):"null");break;case "boolean":b.push(String(J));break;case "function":b.push("null");break;default:throw Error("Unknown type: "+typeof J);}}}; mD7=function(F,J){J.push('"',F.replace(yD3,function(b){var I=i$o[b];I||(I="\\u"+(b.charCodeAt(0)|65536).toString(16).slice(1),i$o[b]=I);return I}),'"')}; z6m=function(F){switch(F){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"}}; Nl7=function(){}; Pj=function(){}; Bj=function(F,J,b,I,u,w,M){var q="";F&&(q+=F+":");b&&(q+="//",J&&(q+=J+"@"),q+=b,I&&(q+=":"+I));u&&(q+=u);w&&(q+="?"+w);M&&(q+="#"+M);return q}; Tq=function(F){return F?decodeURI(F):F}; g.$V=function(F,J){return J.match(YV)[F]||null}; g.Cu=function(F){return Tq(g.$V(3,F))}; g.l83=function(F){F=F.match(YV);return Bj(F[1],F[2],F[3],F[4])}; XQ=function(F){F=F.match(YV);return Bj(null,null,null,null,F[5],F[6],F[7])}; f8G=function(F){var J=F.indexOf("#");return J<0?F:F.slice(0,J)}; QX=function(F,J){if(F){F=F.split("&");for(var b=0;b<F.length;b++){var I=F[b].indexOf("="),u=null;if(I>=0){var w=F[b].substring(0,I);u=F[b].substring(I+1)}else w=F[b];J(w,u?n5(u):"")}}}; Rc=function(F,J){if(!J)return F;var b=F.indexOf("#");b<0&&(b=F.length);var I=F.indexOf("?");if(I<0||I>b){I=b;var u=""}else u=F.substring(I+1,b);F=[F.slice(0,I),u,F.slice(b)];b=F[1];F[1]=J?b?b+"&"+J:J:b;return F[0]+(F[1]?"?"+F[1]:"")+F[2]}; DL=function(F,J,b){if(Array.isArray(J))for(var I=0;I<J.length;I++)DL(F,String(J[I]),b);else J!=null&&b.push(F+(J===""?"":"="+g.x_(J)))}; WDG=function(F,J){var b=[];for(J=J||0;J<F.length;J+=2)DL(F[J],F[J+1],b);return b.join("&")}; g.kV=function(F){var J=[],b;for(b in F)DL(b,F[b],J);return J.join("&")}; dD_=function(F,J){var b=arguments.length==2?WDG(arguments[1],0):WDG(arguments,1);return Rc(F,b)}; g.Os=function(F,J){J=g.kV(J);return Rc(F,J)}; oc=function(F,J,b){b=b!=null?"="+g.x_(b):"";return Rc(F,J+b)}; EMv=function(F,J,b,I){for(var u=b.length;(J=F.indexOf(b,J))>=0&&J<I;){var w=F.charCodeAt(J-1);if(w==38||w==63)if(w=F.charCodeAt(J+u),!w||w==61||w==38||w==35)return J;J+=u+1}return-1}; hz=function(F,J){var b=F.search(jfm),I=EMv(F,0,J,b);if(I<0)return null;var u=F.indexOf("&",I);if(u<0||u>b)u=b;I+=J.length+1;return n5(F.slice(I,u!==-1?u:0))}; cj=function(F,J){for(var b=F.search(jfm),I=0,u,w=[];(u=EMv(F,I,J,b))>=0;)w.push(F.substring(I,u)),I=Math.min(F.indexOf("&",u)+1||b,b);w.push(F.slice(I));return w.join("").replace(Gov,"$1")}; Vqv=function(F,J,b){return oc(cj(F,J),J,b)}; g.Us=function(F){g.Zr.call(this);this.headers=new Map;this.WN=F||null;this.T=!1;this.C=null;this.Y="";this.U=0;this.Z="";this.D=this.Gj=this.N=this.eE=!1;this.Tj=0;this.W=null;this.kQ="";this.V=!1}; Bla=function(F,J,b,I,u,w,M){var q=new g.Us;Pev.push(q);J&&q.listen("complete",J);q.Sk("ready",q.v6);w&&(q.Tj=Math.max(0,w));M&&(q.V=M);q.send(F,b,I,u)}; rDa=function(F,J){F.T=!1;F.C&&(F.D=!0,F.C.abort(),F.D=!1);F.Z=J;F.U=5;TlJ(F);xV(F)}; TlJ=function(F){F.eE||(F.eE=!0,F.dispatchEvent("complete"),F.dispatchEvent("error"))}; Sav=function(F){if(F.T&&typeof nu!="undefined")if(F.N&&g.tz(F)==4)setTimeout(F.zm.bind(F),0);else if(F.dispatchEvent("readystatechange"),F.isComplete()){F.getStatus();F.T=!1;try{if(ZL(F))F.dispatchEvent("complete"),F.dispatchEvent("success");else{F.U=6;try{var J=g.tz(F)>2?F.C.statusText:""}catch(b){J=""}F.Z=J+" ["+F.getStatus()+"]";TlJ(F)}}finally{xV(F)}}}; xV=function(F,J){if(F.C){F.W&&(clearTimeout(F.W),F.W=null);var b=F.C;F.C=null;J||F.dispatchEvent("ready");try{b.onreadystatechange=null}catch(I){}}}; ZL=function(F){var J=F.getStatus();a:switch(J){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(J=J===0)F=g.$V(1,String(F.Y)),!F&&g.Qz.self&&g.Qz.self.location&&(F=g.Qz.self.location.protocol.slice(0,-1)),J=!sfC.test(F?F.toLowerCase():"");b=J}return b}; g.tz=function(F){return F.C?F.C.readyState:0}; g.Hj=function(F){try{return F.C?F.C.responseText:""}catch(J){return""}}; g.Lu=function(F){try{if(!F.C)return null;if("response"in F.C)return F.C.response;switch(F.kQ){case "":case "text":return F.C.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in F.C)return F.C.mozResponseArrayBuffer}return null}catch(J){return null}}; g.Yaz=function(F){var J={};F=(F.C&&g.tz(F)>=2?F.C.getAllResponseHeaders()||"":"").split("\r\n");for(var b=0;b<F.length;b++)if(!g.d5(F[b])){var I=QFm(F[b]),u=I[0];I=I[1];if(typeof I==="string"){I=I.trim();var w=J[u]||[];J[u]=w;w.push(I)}}return ND(J,function(M){return M.join(", ")})}; g.F5=function(F,J){return F.C?F.C.getResponseHeader(J):null}; Jv=function(){}; I6=function(F,J){this.logger=F;this.event=J;this.startTime=b3()}; u3=function(){em.apply(this,arguments);this.Po={kM:function(){return[]}}}; w8=function(F,J,b){var I=b3();J=J();F.Fg(b,b3()-I);return J}; M6=function(){u3.apply(this,arguments)}; Av=function(F){u3.call(this);var J=this;this.logger=F;this.Po={GII:function(){return J.logger}, kM:function(){return J.logger.Po.kM()}}; this.addOnDisposeCallback(function(){return void J.logger.dispose()})}; $Da=function(F){return{whE:new ECk(F),errorCount:new PkG(F),eventCount:new G_Y(F),pp:new Vzo(F),TBR:new jGa(F),Z8v:new BY4(F),V7:new TYJ(F),ecG:new rJ_(F)}}; Cez=function(F,J,b,I){F=PPa(GbJ(jM7(new Vx(1828,"0"),F),new Jv));J.length&&VDv(F,qF4(new A_Y,J));I!==void 0&&(F.x6=I);var u=new Pz(1828,"","",!1,"",F.build());g.k(u,F);var w=new g.Es({flush:function(M){try{u.flush(M)}catch(q){b(q)}}}); w.addOnDisposeCallback(function(){setTimeout(function(){try{w.AM()}finally{u.dispose()}})}); w.T=1E5;w.flushInterval=3E4;w.C.setInterval(3E4);return w}; q6=function(F,J){g.R.call(this);var b=this;this.callback=F;this.U=J;this.C=-J;this.addOnDisposeCallback(function(){return void clearTimeout(b.bC)})}; X14=function(F){if(F.bC===void 0){var J=Math.max(0,F.C+F.U-b3());F.bC=setTimeout(function(){try{F.callback()}finally{F.C=b3(),F.bC=void 0}},J)}}; vR=function(F,J,b){u3.call(this);this.metrics=F;this.bk=J;this.uF=b}; a6=function(F,J){J=J===void 0?[]:J;var b={bk:F.bk||"_",uF:F.uF||"",J$:F.J$||[],Tg:F.Tg|0,x6:F.x6,ao:F.ao||function(){}, SK:F.SK||function(w,M){return Cez(w,M,b.ao,b.x6)}},I=b.SK("46",b.J$.concat(J)); vR.call(this,$Da(I),b.bk,b.uF);var u=this;this.T=J;this.Po={kM:function(){return u.options.J$.concat(u.T).sort(function(w,M){return w-M})}}; this.options=b;this.service=I;this.U=!F.SK;this.C=new q6(function(){return void u.service.AM()},b.Tg); this.addOnDisposeCallback(function(){u.C.dispose();u.U&&u.service.dispose()})}; b3=function(){var F,J,b;return(b=(F=globalThis.performance)==null?void 0:(J=F.now)==null?void 0:J.call(F))!=null?b:Date.now()}; eW=function(F){this.Z7=S2(F)}; K2=function(F){this.Z7=S2(F)}; p2=function(F){this.Z7=S2(F,0,p2.messageId)}; M8=function(F){this.Z7=S2(F)}; g8=function(F){this.Z7=S2(F)}; g.m6=function(){var F=this;this.promise=new Promise(function(J,b){F.resolve=J;F.reject=b})}; Qfa=function(F,J,b){if(F.disable)return new M6;J=J?faJ(J):[];if(b)return b.YE(J),b.share();F={bk:F.bk,uF:F.uF,J$:F.jg,Tg:F.dW_,x6:F.x6,ao:F.ao,SK:F.SK};b=J;b=b===void 0?[]:b;return new a6(F,b)}; y3=function(F){function J(y,f,d,G){Promise.resolve().then(function(){v.done();q.oE();q.dispose();M.resolve({M3:y,Luv:f,dY_:d,AO_:G})})} function b(y,f,d,G){if(!I.logger.iR()){var P="k";f?P="h":d&&(P="u");P!=="k"?G!==0&&(I.logger.n1(P),I.logger.Fg(P,y)):I.U<=0?(I.logger.n1(P),I.logger.Fg(P,y),I.U=Math.floor(Math.random()*200)):I.U--}} g.R.call(this);var I=this;this.U=Math.floor(Math.random()*200);this.C=new g8;if("challenge"in F&&R6k(F.challenge)){var u=pG(F.challenge,4);var w=pG(F.challenge,5);pG(F.challenge,7)&&(this.C=DDa(pG(F.challenge,7)))}else u=F.program,w=F.globalName;this.addOnDisposeCallback(function(){var y,f,d;return g.S(function(G){if(G.C==1)return g.T(G,I.T,2);y=G.U;f=y.Luv;(d=f)==null||d();g.N4(G)})}); this.logger=Qfa(F.qK||{},this.C,F.J1);g.k(this,this.logger);var M=new g.m6;this.T=M.promise;this.logger.n1("t");var q=this.logger.share(),v=new I6(q,"t");if(!g.Qz[w])throw this.logger.AN(25),Error("EGOU");if(!g.Qz[w].a)throw this.logger.AN(26),Error("ELIU");try{var a=g.Qz[w].a;w=[];for(var e=[],K=faJ(this.C),p=0;p<K.length;p++)w.push(K[p]),e.push(1);var m=Wo7(this.C);for(K=0;K<m.length;K++)w.push(m[K]),e.push(2);this.Z=g.N(a(u,J,!0,F.du,b,[w,e],pG(this.C,5))).next().value;this.Al=M.promise.then(function(){})}catch(y){throw this.logger.AN(28), y; }}; koY=function(F){if(!F)return null;F=eD(F,4);return F===null||F===void 0?null:EQ(F)}; i3=function(){this.U={};this.C=null}; z5=function(){i3.instance||(i3.instance=new i3);return i3.instance}; N6=function(F,J){return O$4(F,MX(J,eW,1),MX(J,K2,2),pG(J,3))}; O$4=function(F,J,b,I){if(!J&&!b)return Promise.resolve();if(!I)return oM7(J,b);var u;(u=F.U)[I]||(u[I]=new Promise(function(w,M){oM7(J,b).then(function(){F.C=I;w()},function(q){delete F.U[I]; M(q)})})); return F.U[I]}; oM7=function(F,J){return J?h6k(J):F?cDm(F):Promise.resolve()}; h6k=function(F){return new Promise(function(J,b){var I=g.H1("SCRIPT"),u=koY(F);g.k_(I,u);I.onload=function(){g.ID(I);J()}; I.onerror=function(){g.ID(I);b(Error("EWLS"))}; (g.D8("HEAD")[0]||document.documentElement).appendChild(I)})}; cDm=function(F){return new Promise(function(J){var b=g.H1("SCRIPT");if(F){var I=eD(F,6);I=I===null||I===void 0?null:Epv(I)}else I=null;b.textContent=R0(I);Di(b);(g.D8("HEAD")[0]||document.documentElement).appendChild(b);g.ID(b);J()})}; l3=function(F){this.Z7=S2(F)}; f2=function(F){this.Z7=S2(F)}; WR=function(F,J,b){this.client=F;this.vJ=J;this.C=b}; d8=function(F){g.R.call(this);var J=this;this.options=F;this.W=new g.m6;this.Al=this.W.promise;this.D=new g.m6;this.Y=1;this.T=new g.m6;this.Z=[];this.Uh=F.Uh||function(){}; this.logger=new Av(Qfa(F.qK||{}));UDC(this,F.lB,F.wL,F.I_Q,F.A$f,Object.assign({},xDa,F.xu||{}));this.addOnDisposeCallback(function(){return void nMm(J)})}; tq3=function(F){var J;return g.S(function(b){if(F.iR())throw Error("Already disposed");(J=F.C)!=null&&(J.endTimeMs=0,J.xU(1));return g.T(b,F.T.promise,0)})}; nMm=function(F){F.V=Error("Cancelled by dispose");F.D.resolve();ab(F.W.promise);F.W.reject(Error("Cancelled by dispose"));F.logger.dispose();Promise.all(F.Z).then(function(){var b;return g.S(function(I){(b=F.U)==null||b.dispose();F.U=void 0;g.N4(I)})}); F.Z=[];var J;(J=F.C)!=null&&(J.endTimeMs=0,J.xU(1));ab(F.T.promise);F.T.reject(Error("Cancelled by dispose"))}; Z$J=function(F,J){var b=F.Uh;F.Uh=function(){b();J()}}; H$7=function(F,J){F.iR()||(F.U=J,F.logger.update(J.OO()),F.D.resolve(),F.W.resolve(void 0),F.Uh())}; LDa=function(F,J){J&&(Promise.all(F.Z).then(function(){return void J.dispose()}),F.Z=[])}; EU=function(F,J){F.Y=J;var b,I;(I=(b=F.options).oIR)==null||I.call(b,J)}; Fb_=function(F){F.iR()||(F.T.resolve(),F.T=new g.m6)}; UDC=function(F,J,b,I,u,w){I=I===void 0?z5():I;u=u===void 0?Promise.resolve(void 0):u;var M,q,v,a,e,K,p,m,y,f,d,G;g.S(function(P){switch(P.C){case 1:return g.T(P,0,3);case 3:q=null;if(!M){P.gD(6);break}EU(F,7);g.lk(P,7);return g.T(P,jW(M.snapshot({}),w.c6,function(){return Promise.resolve("E:CTO")}),9); case 9:q=P.U;g.Wa(P,6);break;case 7:g.dY(P),q="E:UCE";case 6:v=void 0,a=M?w.vK:w.oa,e=new g.Wz(a,w.J9,w.yX,w.BK),K=0;case 10:if(!(K<w.maxAttempts)){P.gD(12);break}if(K===0){P.gD(13);break}EU(F,0);F.C=new J6Y(e.getValue(),w.F6,w.nH);return g.T(P,F.C.promise,14);case 14:p=P.U,F.C=void 0,p===1?(K=0,e.reset()):g.dK(e);case 13:g.lk(P,15);m=void 0;if(b){m=b;P.gD(17);break}EU(F,5);y=I.C;return g.T(P,jW(J.s5(y,q),w.Ia,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18); case 18:m=P.U;case 17:return EU(F,3),g.T(P,jW(N6(I,m),w.Iv_,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19); case 19:return EU(F,8),g.T(P,u,20);case 20:return f=new y3({challenge:m,qK:F.options.qK,du:F.options.du}),g.T(P,jW(f.Al,w.mk_,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21); case 21:v=f;P.gD(12);break;case 15:d=g.dY(P),F.handleError(d),Fb_(F);case 11:K++;P.gD(10);break;case 12:if(F.iR()){P.gD(5);break}v&&(b=void 0,LDa(F,M),M=v,H$7(F,v),Fb_(F));EU(F,2);F.C=new J6Y(w.rwI,w.F6,w.nH);return g.T(P,F.C.promise,22);case 22:F.C=void 0;if(F.iR()){P.gD(5);break}P.gD(3);break;case 5:(G=M)==null||G.dispose(),g.N4(P)}})}; jW=function(F,J,b){var I,u=new Promise(function(w){I=setTimeout(w,J)}); return Promise.race([F.finally(function(){return void clearTimeout(I)}), u.then(b)])}; J6Y=function(F,J,b){function I(){var w=u.endTimeMs-Date.now();w<=b?u.xU(0):setTimeout(I,Math.min(w,J))} var u=this;this.endTimeMs=Date.now()+F;this.promise=new Promise(function(w){u.xU=w}); I()}; bba=function(F,J){try{return globalThis.sessionStorage.setItem(F,J),!0}catch(b){return!1}}; G5=function(F,J,b,I){J=J===void 0?0:J;b=b===void 0?F.length:b;var u=0;for(I&&(u=G5(I));J<b;J++)I=typeof F==="string"?F.charCodeAt(J):F[J],u=Ir_(31,u)+I|0;return u}; u9z=function(F,J){return[G5(F,0,F.length>>1,J),G5(F,F.length>>1)]}; wzY=function(F){var J=g.N(u9z(F,V3));F=J.next().value;J=J.next().value;return F.toString(16)+J.toString(16)}; MXo=function(F,J){var b=u9z(J);F=new Uint32Array(F.buffer);J=F[0];var I=g.N(b);b=I.next().value;I=I.next().value;for(var u=1;u<F.length;u+=2){for(var w=J,M=u,q=b,v=I,a=0;a<22;a++)M=M>>>8|M<<24,M+=w|0,M^=q+38293,w=w<<3|w>>>29,w^=M,v=v>>>8|v<<24,v+=q|0,v^=a+38293,q=q<<3|q>>>29,q^=v;w=[w,M];F[u]^=w[0];u+1<F.length&&(F[u+1]^=w[1])}}; A6z=function(F,J,b,I,u){var w=(4-(V3.length+b.length)%4)%4,M=new Uint8Array(4+w+V3.length+4+b.length),q=new DataView(M.buffer),v=0;q.setUint32(v,Math.random()*4294967295);v=v+4+w;M.set(V3,v);v+=V3.length;q.setUint32(v,u);M.set(b,v+4);MXo(M,I);return F.wB(J,function(a){return void globalThis.sessionStorage.removeItem(a)})?bba(J,g.zw(M))?"s":"t":"i"}; qP4=function(F,J){var b=globalThis.sessionStorage.getItem(F);if(!b)return["m"];try{var I=lV(b);MXo(I,J)}catch(u){return globalThis.sessionStorage.removeItem(F),["c"]}for(J=4;J<7&&I[J]===0;)J++;for(b=0;b<V3.length;b++)if(I[J++]!==V3[b])return globalThis.sessionStorage.removeItem(F),["d"];b=(new DataView(I.buffer)).getUint32(J);return Math.floor(Date.now()/1E3)>=b?(globalThis.sessionStorage.removeItem(F),["e"]):["a",new Uint8Array(I.buffer,J+4)]}; BR=function(F,J,b){b=b===void 0?[]:b;this.maxItems=F;this.C=J===void 0?0:J;this.U=b}; ve4=function(F){var J=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!J)return new BR(F);var b=J.split(",");if(b.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new BR(F);J=b.slice(1);J.length===1&&J[0]===""&&(J=[]);b=Number(b[0]);return isNaN(b)||b<0||b>J.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new BR(F)):new BR(F,b,J)}; ark=function(F,J){this.logger=J;try{var b=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(I){b=!1}b&&(this.index=ve4(F))}; eh4=function(F,J,b,I,u){var w=F.index?w8(F.logger,function(){return A6z(F.index,wzY(J),b,I,u)},"W"):"u"; F.logger.ZM(w)}; Kbm=function(F,J,b){var I=g.N(F.index?w8(F.logger,function(){return qP4(wzY(J),b)},"R"):["u"]),u=I.next().value; I=I.next().value;F.logger.U4(u);return I}; mI_=function(F){function J(){b-=I;b-=u;b^=u>>>13;I-=u;I-=b;I^=b<<8;u-=b;u-=I;u^=I>>>13;b-=I;b-=u;b^=u>>>12;I-=u;I-=b;I^=b<<16;u-=b;u-=I;u^=I>>>5;b-=I;b-=u;b^=u>>>3;I-=u;I-=b;I^=b<<10;u-=b;u-=I;u^=I>>>15} F=pz7(F);for(var b=2654435769,I=2654435769,u=314159265,w=F.length,M=w,q=0;M>=12;M-=12,q+=12)b+=T5(F,q),I+=T5(F,q+4),u+=T5(F,q+8),J();u+=w;switch(M){case 11:u+=F[q+10]<<24;case 10:u+=F[q+9]<<16;case 9:u+=F[q+8]<<8;case 8:I+=F[q+7]<<24;case 7:I+=F[q+6]<<16;case 6:I+=F[q+5]<<8;case 5:I+=F[q+4];case 4:b+=F[q+3]<<24;case 3:b+=F[q+2]<<16;case 2:b+=F[q+1]<<8;case 1:b+=F[q+0]}J();return ge7.toString(u)}; pz7=function(F){for(var J=[],b=0;b<F.length;b++)J.push(F.charCodeAt(b));return J}; T5=function(F,J){return F[J+0]+(F[J+1]<<8)+(F[J+2]<<16)+(F[J+3]<<24)}; r8=function(F){g.R.call(this);var J=this;this.logger=F;this.U=new g.m6;this[y6a]=this.dispose;this.addOnDisposeCallback(function(){ab(J.U.promise);J.U.reject()})}; SW=function(F,J){var b=setTimeout(function(){F.U.resolve()},J); F.addOnDisposeCallback(function(){return void clearTimeout(b)})}; sU=function(F,J,b,I){return w8(F.logger,function(){return b?F.fA(J,I):F.iy(J,I)},F.C)}; Y9=function(F,J,b,I){r8.call(this,F);this.Z=J;this.W=b;this.C="m";this.T="x";this.D=0;SW(this,I)}; $9=function(F,J,b){r8.call(this,F);this.Z=J;this.C="f";this.T="z";SW(this,b)}; C2=function(F,J,b){r8.call(this,F);this.Z=J;this.C="w";this.T="z";SW(this,b)}; X5=function(F,J){r8.call(this,F);this.error=J;this.C="e";this.T="y"}; ibz=function(F,J){var b=(J(F.error.message)+":"+J(F.error.stack)).substring(0,2048);J=b.length+1;b=R6(b);var I=new Uint8Array(4+b.length);I.set([42,J&127|128,J>>7,F.error.code]);I.set(b,4);return I}; DF=function(F,J,b){r8.call(this,F);this.Z=J;this.clientState=b;this.C="S";this.T="q"}; R6=function(F){return globalThis.TextEncoder?(new TextEncoder).encode(F):g.lW(F)}; k9=function(F,J,b){g.R.call(this);var I=this;this.logger=F;this.onError=J;this.state=b;this.V=0;this.U=void 0;this.addOnDisposeCallback(function(){I.C&&(I.C.dispose(),I.C=void 0)})}; zhJ=function(F,J){J=J instanceof uW?J:new uW(5,"TVD:error",J);return F.reportError(J)}; OU=function(F,J,b){try{if(F.iR())throw new uW(21,"BNT:disposed");if(!F.C&&F.U)throw F.U;var I,u;return(u=(I=NKk(F,J,b))!=null?I:lrC(F,J,b))!=null?u:frG(F,J,b)}catch(w){if(!J.Ft)throw zhJ(F,w);return Wbv(F,b,w)}}; NKk=function(F,J,b){var I;return(I=F.C)==null?void 0:sU(I,function(){return o6(F,J)},b,function(u){var w; if(F.C instanceof Y9&&((w=J.Oa)==null?0:w.l2))try{var M;(M=F.cache)==null||eh4(M,o6(F,J),u,J.Oa.DT,F.Y-120)}catch(q){F.reportError(new uW(24,"ELX:write",q))}})}; lrC=function(F,J,b){var I;if((I=J.Oa)!=null&&I.Fz)try{var u,w=(u=F.cache)==null?void 0:Kbm(u,o6(F,J),J.Oa.DT);return w?b?w8(F.logger,function(){return g.zw(w,2)},"a"):w:void 0}catch(M){F.reportError(new uW(23,"RXO:read",M))}}; frG=function(F,J,b){var I={stack:[],error:void 0,hasError:!1};try{if(!J.xS)throw new uW(29,"SDF:notready");return sU(Je(I,new DF(F.logger,F.V,F.state)),function(){return o6(F,J)},b)}catch(u){I.error=u,I.hasError=!0}finally{bW(I)}}; Wbv=function(F,J,b){var I={stack:[],error:void 0,hasError:!1};try{var u=zhJ(F,b);return sU(Je(I,new X5(F.logger,u)),function(){return[]},J)}catch(w){I.error=w,I.hasError=!0}finally{bW(I)}}; o6=function(F,J){return J.wG?J.wG:J.Gi?w8(F.logger,function(){return J.wG=R6(J.Gi)},"c"):[]}; cR=function(F){var J;k9.call(this,F.w0.OO(),(J=F.onError)!=null?J:function(){},0); var b=this;this.D=0;this.Z=new g.m6;this.T=!1;this.w0=F.w0;this.lB=F.lB;this.xu=Object.assign({},dIk,F.xu||{});F.uF&&(this.logger instanceof a6||this.logger instanceof Av)&&this.logger.DL(F.uF);this.oL=F.oL||!1;if(EeJ(F)){var I=this.w0;this.W=function(){return tq3(I).catch(function(M){M=b.reportError(new uW(b.T?20:32,"TRG:Disposed",M));b.U=M;var q;(q=b.C)==null||q.dispose();b.C=void 0;b.Z.reject(M)})}; Z$J(I,function(){return void hv(b)}); I.Y===2&&hv(this)}else this.W=F.vIj,hv(this);var u=this.logger.share();u.n1("o");var w=new I6(u,"o");this.Z.promise.then(function(){w.done();u.oE();u.dispose()},function(){return void u.dispose()}); this.addOnDisposeCallback(function(){b.T||(b.U?b.logger.oE():(b.U=b.reportError(new uW(32,"TNP:Disposed")),b.logger.oE(),b.Z.reject(b.U)));b.logger.dispose()})}; jDC=function(F,J){if(!(J instanceof uW))if(J instanceof jP){var b=Error(J.toString());b.stack=J.stack;J=new uW(11,"EBH:Error",b)}else J=new uW(12,"BSO:Unknown",J);return F.reportError(J)}; hv=function(F){var J,b,I,u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){switch(d.C){case 1:J=void 0;F.D++;b=new g.m6;F.w0 instanceof d8&&F.w0.Z.push(b.promise);if(!F.oL){d.gD(2);break}I=new g.m6;setTimeout(function(){return void I.resolve()}); return g.T(d,I.promise,2);case 2:return u=F.logger.share(),g.lk(d,4,5),F.state=5,w={},M=[],g.T(d,jW(F.w0.snapshot({Gi:w,Hw:M}),F.xu.UEQ,function(){return Promise.reject(new uW(15,"MDA:Timeout"))}),7); case 7:q=d.U;if(F.iR())throw new uW(F.T?20:32,"MDA:Disposed");v=M[0];F.state=6;return g.T(d,jW(u.sX("g",1,F.lB.vY(q)),F.xu.rr,function(){return Promise.reject(new uW(10,"BWB:Timeout"))}),8); case 8:a=d.U;if(F.iR())throw new uW(F.T?20:32,"BWB:Disposed");F.state=7;J=w8(u,function(){var P=GEC(F,a,b,v);P.U.promise.then(function(){return void F.W()}).catch(function(){}); return P},"i"); case 5:g.Em(d);u.dispose();g.jz(d,6);break;case 4:e=g.dY(d);(K=J)==null||K.dispose();if(!F.U){p=jDC(F,e);b.resolve();var G;if(G=F.w0 instanceof d8&&F.D<2)a:if(e instanceof uW)G=e.code!==32&&e.code!==20&&e.code!==10;else{if(e instanceof jP)switch(e.code){case 2:case 13:case 14:case 4:break;default:G=!1;break a}G=!0}if(G)return m=(1+Math.random()*.25)*(F.T?6E4:1E3),y=setTimeout(function(){return void F.W()},m),F.addOnDisposeCallback(function(){return void clearTimeout(y)}),d.return(); F.U=p}u.AN(F.T?13:14);F.Z.reject(F.U);return d.return();case 6:F.state=8,F.D=0,(f=F.C)==null||f.dispose(),F.C=J,F.T=!0,F.Z.resolve(),g.N4(d)}})}; GEC=function(F,J,b,I){var u=KG(J,2)*1E3;if(u<=0)throw new uW(31,"TTM:Invalid");if(pG(J,4))return new C2(F.logger,pG(J,4),u);if(!KG(J,3))return new $9(F.logger,VI(xp(J,1)),u);if(!I)throw new uW(4,"PMD:Undefined");I=I(VI(xp(J,1)));if(!(I instanceof Function))throw new uW(16,"APF:Failed");F.Y=Math.floor((Date.now()+u)/1E3);F=new Y9(F.logger,I,KG(J,3),u);F.addOnDisposeCallback(function(){return void b.resolve()}); return F}; UU=function(){var F=0,J;return function(b){J||(J=new M6);var I=new DF(J,F,1),u=sU(I,function(){return R6(b)},!0); I.dispose();F++;return u}}; x9=function(F){this.Z7=S2(F)}; VXC=function(F,J,b){this.xC=F;this.m$=J;this.metadata=b}; n2=function(F,J){J=J===void 0?{}:J;this.AwE=F;this.metadata=J;this.status=null}; tv=function(F,J,b,I,u){this.name=F;this.methodType="unary";this.requestType=J;this.responseType=b;this.C=I;this.U=u}; ZF=function(F){this.Z7=S2(F)}; HR=function(F){this.Z7=S2(F)}; L2=function(F){this.Z7=S2(F)}; FB=function(F,J){this.V=F.KON;this.Y=J;this.C=F.xhr;this.T=[];this.D=[];this.W=[];this.Z=[];this.U=[];this.V&&PBo(this)}; SPv=function(F,J){var b=new BKG;g.Dr(F.C,"complete",function(){if(ZL(F.C)){var I=g.Hj(F.C);if(J&&F.C.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");I=atob(I)}try{var u=F.Y(I)}catch(q){JN(F,bF(new jP(13,"Error when deserializing response data; error: "+q+(", response: "+I)),b));return}I=KDa(F.C.getStatus());I2(F,uF(F));I==0?TKm(F,u):JN(F,bF(new jP(I,"Xhr succeeded but the status code is not 200"),b))}else{I=g.Hj(F.C);u=uF(F);if(I){var w=r6m(F, I);I=w.code;var M=w.details;w=w.metadata}else I=2,M="Rpc failed due to xhr error. uri: "+String(F.C.Y)+", error code: "+F.C.U+", error: "+F.C.getLastError(),w=u;I2(F,u);JN(F,bF(new jP(I,M,w),b))}})}; PBo=function(F){F.V.d$("data",function(J){if("1"in J){var b=J["1"];try{var I=F.Y(b)}catch(u){JN(F,new jP(13,"Error when deserializing response data; error: "+u+(", response: "+b)))}I&&TKm(F,I)}if("2"in J)for(J=r6m(F,J["2"]),b=0;b<F.W.length;b++)F.W[b](J)}); F.V.d$("end",function(){I2(F,uF(F));for(var J=0;J<F.Z.length;J++)F.Z[J]()}); F.V.d$("error",function(){if(F.U.length!=0){var J=F.C.U;J!==0||ZL(F.C)||(J=6);var b=-1;switch(J){case 0:var I=2;break;case 7:I=10;break;case 8:I=4;break;case 6:b=F.C.getStatus();I=KDa(b);break;default:I=14}I2(F,uF(F));J=z6m(J)+", error: "+F.C.getLastError();b!=-1&&(J+=", http status code: "+b);JN(F,new jP(I,J))}})}; uF=function(F){var J={},b=g.Yaz(F.C);Object.keys(b).forEach(function(I){J[I]=b[I]}); return J}; r6m=function(F,J){var b=2,I={};try{var u=sDJ(J);b=Ae(u,1);var w=u.getMessage();w5(u,HR,3).length&&(I["grpc-web-status-details-bin"]=J)}catch(M){F.C&&F.C.getStatus()===404?(b=5,w="Not Found: "+String(F.C.Y)):(b=14,w="Unable to parse RpcStatus: "+M)}return{code:b,details:w,metadata:I}}; wR=function(F,J){J=F.indexOf(J);J>-1&&F.splice(J,1)}; TKm=function(F,J){for(var b=0;b<F.T.length;b++)F.T[b](J)}; I2=function(F,J){for(var b=0;b<F.D.length;b++)F.D[b](J)}; JN=function(F,J){for(var b=0;b<F.U.length;b++)F.U[b](J)}; BKG=function(){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"}; bF=function(F,J){J.stack&&(F.stack+="\n"+J.stack);return F}; g.Ml=function(F){this.Z=F.sQ_||null;this.T=F.HU||!1;this.U=void 0}; AN=function(F,J){g.Zr.call(this);this.eE=F;this.W=J;this.D=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Y=new Headers;this.U=null;this.Tj="GET";this.N="";this.C=!1;this.V=this.T=this.Z=null}; YPv=function(F){F.T.read().then(F.rzQ.bind(F)).catch(F.My.bind(F))}; vt=function(F){F.readyState=4;F.Z=null;F.T=null;F.V=null;ql(F)}; ql=function(F){F.onreadystatechange&&F.onreadystatechange.call(F)}; g.a2=function(F){this.C=this.Y=this.D="";this.T=null;this.W=this.U="";this.V=!1;var J;F instanceof g.a2?(this.V=F.V,g.eh(this,F.D),this.Y=F.Y,g.KM(this,F.C),g.pM(this,F.T),this.U=F.U,gR(this,F.Z.clone()),this.W=F.W):F&&(J=String(F).match(YV))?(this.V=!1,g.eh(this,J[1]||"",!0),this.Y=mj(J[2]||""),g.KM(this,J[3]||"",!0),g.pM(this,J[4]),this.U=mj(J[5]||"",!0),gR(this,J[6]||"",!0),this.W=mj(J[7]||"")):(this.V=!1,this.Z=new yu(null,this.V))}; g.eh=function(F,J,b){F.D=b?mj(J,!0):J;F.D&&(F.D=F.D.replace(/:$/,""))}; g.KM=function(F,J,b){F.C=b?mj(J,!0):J}; g.pM=function(F,J){if(J){J=Number(J);if(isNaN(J)||J<0)throw Error("Bad port number "+J);F.T=J}else F.T=null}; gR=function(F,J,b){J instanceof yu?(F.Z=J,$Iv(F.Z,F.V)):(b||(J=iF(J,CBo)),F.Z=new yu(J,F.V))}; g.zm=function(F,J,b){F.Z.set(J,b)}; g.Nl=function(F){return F instanceof g.a2?F.clone():new g.a2(F)}; mj=function(F,J){return F?J?decodeURI(F.replace(/%25/g,"%2525")):decodeURIComponent(F):""}; iF=function(F,J,b){return typeof F==="string"?(F=encodeURI(F).replace(J,Xz7),b&&(F=F.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F):null}; Xz7=function(F){F=F.charCodeAt(0);return"%"+(F>>4&15).toString(16)+(F&15).toString(16)}; yu=function(F,J){this.U=this.C=null;this.T=F||null;this.Z=!!J}; lF=function(F){F.C||(F.C=new Map,F.U=0,F.T&&QX(F.T,function(J,b){F.add(n5(J),b)}))}; QDo=function(F,J){lF(F);J=fM(F,J);return F.C.has(J)}; g.Rhv=function(F,J,b){F.remove(J);b.length>0&&(F.T=null,F.C.set(fM(F,J),g.JL(b)),F.U=F.U+b.length)}; fM=function(F,J){J=String(J);F.Z&&(J=J.toLowerCase());return J}; $Iv=function(F,J){J&&!F.Z&&(lF(F),F.T=null,F.C.forEach(function(b,I){var u=I.toLowerCase();I!=u&&(this.remove(I),g.Rhv(this,u,b))},F)); F.Z=J}; g.DIa=function(F){var J="";g.ie(F,function(b,I){J+=I;J+=":";J+=b;J+="\r\n"}); return J}; g.Wt=function(F,J,b){if(g.Vj(b))return F;b=g.DIa(b);if(typeof F==="string")return oc(F,g.x_(J),b);g.zm(F,J,b);return F}; g.dR=function(F){g.R.call(this);this.U=F;this.C={}}; kEJ=function(F,J,b,I,u,w){if(Array.isArray(b))for(var M=0;M<b.length;M++)kEJ(F,J,b[M],I,u,w);else{J=RD(J,b,I||F.handleEvent,u,w||F.U||F);if(!J)return F;F.C[J.key]=J}return F}; Oba=function(){this.T=!0;this.U=0;this.C=""}; oe3=function(F,J,b){F.T=!1;throw Error("The stream is broken @"+F.U+". Error: "+b+". With input:\n"+J);}; E4=function(){this.W=null;this.V=[];this.Z=this.U=this.T=this.C=this.N=0;this.D=null;this.Y=0}; jh=function(F,J,b,I){F.C=3;F.W="The stream is broken @"+F.N+"/"+b+". Error: "+I+". With input:\n"+J;throw Error(F.W);}; Gm=function(){this.C=null;this.U=0;this.T=new Oba;this.Z=new E4}; hh_=function(F,J,b){F.C="The stream is broken @"+F.U+". Error: "+b+". With input:\n"+J;throw Error(F.C);}; Vu=function(F){return F=="\r"||F=="\n"||F==" "||F=="\t"}; Pt=function(F){this.N=null;this.W=[];this.Z="";this.eE=[];this.T=this.U=0;this.V=!1;this.Y=0;this.Gj=/[\\"]/g;this.C=this.D=0;this.Tj=!(!F||!F.gJ)}; Bt=function(F,J,b){F.D=3;F.N="The stream is broken @"+F.T+"/"+b+". With input:\n"+J;throw Error(F.N);}; Tm=function(){this.D=this.T=null;this.U=this.C=0;this.Z=[];this.W=!1}; c6a=function(F){var J=g.F5(F,"Content-Type");if(!J)return null;J=J.toLowerCase();return J.startsWith("application/json")?J.startsWith("application/json+protobuf")?new Tm:new Pt:J.startsWith("application/x-protobuf")?(F=g.F5(F,"Content-Transfer-Encoding"))?F.toLowerCase()=="base64"?new Gm:null:new E4:null}; rR=function(F){this.C=F;this.U=null;this.D=this.T=0;this.N=!1;this.Z=this.V=this.W=null;this.Y=new g.dR(this);this.Y.listen(this.C,"readystatechange",this.Tj)}; Sh=function(F,J){F.D!=J&&(F.D=J,F.V&&F.V())}; CM=function(F){F.Y.removeAll();if(F.C){var J=F.C;F.C=null;J.abort();J.dispose()}}; UIa=function(F){F=this.T=F;var J=(0,g.tJ)(this.uqW,this);F.Z=J;F=this.T;J=(0,g.tJ)(this.Igv,this);F.V=J;this.U={};this.C={}}; xIa=function(F,J){for(var b={},I=0;I<F.length;b={yR:void 0},I++)b.yR=F[I],J.forEach(function(u){return function(w){try{w(u.yR)}catch(M){}}}(b))}; XB=function(F,J){var b=F.U[J];b&&b.forEach(function(I){try{I()}catch(u){}}); (b=F.C[J])&&b.forEach(function(I){I()}); F.C[J]=[]}; neo=function(){var F={format:"jspb"};F=F===void 0?{}:F;this.D=F.QGN||g.kC("suppressCorsPreflight",F)||!1;this.U=F.withCredentials||g.kC("withCredentials",F)||!1;this.Z=F.l$E||[];this.W=F.KoE||[];this.C=F.BOD;this.T=F.xi_||!1}; Lbm=function(F,J,b,I,u,w){w=w===void 0?{}:w;var M=J.substring(0,J.length-u.name.length),q,v=(q=w)==null?void 0:q.signal;return tXz(function(a){return new Zb7(function(e,K){if(v==null?0:v.aborted){var p=new jP(1,"Aborted");p.cause=v.reason;K(p)}else{var m={},y=Hbo(F,a,M);y.d$("error",function(f){return K(f)}); y.d$("metadata",function(f){m=f}); y.d$("data",function(f){var d=m;d=d===void 0?{}:d;e(new n2(f,d))}); v&&v.addEventListener("abort",function(){y.cancel();var f=new jP(1,"Aborted");f.cause=v.reason;K(f)})}})},F.W).call(F,u.V(b,I)).then(function(a){return a.AwE})}; FIa=function(F,J,b,I,u){var w=w===void 0?{}:w;return Lbm(F,J,b,I,u,w)}; Hbo=function(F,J,b){var I=J.m$,u=J.getMetadata(),w=JzG(F,!0);F=buz(F,u,w,b+I.getName());b=IL4(w,I.U,!1);SPv(b,u["X-Goog-Encode-Response-If-Executable"]=="base64");J=I.C(J.xC);w.send(F,"POST",J);return b}; JzG=function(F,J){J=F.T&&!J;return F.C||J?new g.Us(new g.Ml({sQ_:F.C,HU:J})):new g.Us}; buz=function(F,J,b,I){J["Content-Type"]="application/json+protobuf";J["X-User-Agent"]="grpc-web-javascript/0.1";var u=J.Authorization;if(u&&uQ7.has(u.split(" ")[0])||F.U)b.V=!0;if(F.D)I=g.Wt(I,"$httpHeaders",J);else for(var w in J)b.headers.set(w,J[w]);return I}; IL4=function(F,J,b){if(b){F.isActive();b=new rR(F);var I=new UIa(b)}return new FB({xhr:F,KON:I},J)}; tXz=function(F,J){return J.reduce(function(b,I){return function(u){return I.intercept(u,b)}},F)}; wjv=function(){this.C=new neo;this.U="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; Qu=function(F){g.R.call(this);this.owner=F;this.signals=new Set;F&&g.k(F,this)}; R2=function(F,J){F.signals.has(J);return J}; DV=function(F){g.R.call(this);this.Py=F;this.slots=new Map;this.CX=new Set;this.Ai=!1}; MPm=function(F,J){F.iR()||F.slots.set(J,{slotId:J,slot:void 0,jb:function(){return F.slots.delete(J)}})}; O4=function(F,J){new Promise(function(b){ko(function(){F.Py&&(F.Pf=J,F.Ai=!0);for(var I=g.N(F.slots.values()),u=I.next();!u.done;u=I.next()){var w=u.value;u=w.slotId;w=w.slot;try{w(J,{signal:F,slotId:u})}catch(M){N8(M)}}I=g.N(F.CX);for(u=I.next();!u.done;u=I.next())u.value.resolve(J);F.CX.clear();b()})})}; ko=function(F){o2.push(F);Azo()}; Azo=function(){var F,J;g.S(function(b){switch(b.C){case 1:if(hN)return b.return();g.lk(b,2,3);hN=!0;F=qsz(0);case 5:if(!(F<o2.length)){b.gD(3);break}return g.T(b,Promise.resolve(),8);case 8:F=qsz(F);b.gD(5);break;case 3:g.Em(b);o2.length=0;hN=!1;g.jz(b,0);break;case 2:J=g.dY(b),N8(J),b.gD(3)}})}; qsz=function(F){for(var J=F+100;F<J&&F<o2.length;)try{o2[F++]()}catch(b){N8(b)}return F}; vVC=function(F,J){if(F.iR())J();else{var b=ct.get(F);if(b)b.push(J);else{var I=[J];ct.set(F,I);F.addOnDisposeCallback(function(){for(var u=g.N([].concat(g.W(I))),w=u.next();!w.done;w=u.next())w=w.value,w();ct.delete(F)})}}}; U4=function(F,J,b){g.R.call(this);this.V=F;this.milliseconds=J;this.e3=b;this.state=this.Z=0}; aLo=function(F){return new U4(!1,F,{aZ:function(){}, Gm:void 0})}; xo=function(F){iW.call(this,F);this.name="TimerCancelledError"}; nM=function(F){iW.call(this,F);this.name="TimerDisposedError"}; eB3=function(F){var J={Gi:F.Gi,wG:F.wG,xS:!0,Ft:!0};F.Oa&&(F=F.Oa,J.Oa={DT:F.DT,Fz:F.Fz,l2:F.l2});return J}; tN=function(F){var J;k9.call(this,F.T6v?new M6:new a6({bk:F.bk,uF:F.vJ,J$:F.J$},[]),(J=F.onError)!=null?J:function(){},1); this.T=new g.m6;this.wL=void 0;this.lB=F.lB;this.l3=F.l3;var b;this.onEvent=(b=F.onEvent)!=null?b:function(){}}; pja=function(F){var J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d;return g.S(function(G){switch(G.C){case 1:J=void 0,b=F.isReady()?6E4:1E3,I=new g.Wz(b,6E5,.25,2),u={},w=1;case 2:if(!(w<=2)){G.gD(4);break}g.lk(G,5);F.state=3;F.V=w-1;return g.T(G,F.wL&&w===1?F.wL:F.s5(w),7);case 7:return M=G.U,F.wL=void 0,F.state=4,q=new I6(F.logger,"b"),g.T(G,N6(z5(),M),8);case 8:return F.state=5,F.onEvent(1),u.Wa=3,u.Y2=new y3({challenge:M,J1:F.logger}),v=ZV(F,12E4).then(function(r){return function(){F.onEvent(r.Wa);return Promise.reject(new uW(15, "MDA:Timeout"))}}(u)),g.T(G,Promise.race([u.Y2.Al, v]),9);case 9:return F.onEvent(2),a=[],F.onEvent(4),u.Wa=6,g.T(G,Promise.race([u.Y2.snapshot({Hw:a}),v]),10);case 10:return e=G.U,F.onEvent(5),K=g.N(a),p=K.next().value,u.sH=p,q.done(),F.state=6,g.T(G,KIa(F,F.logger.sX("g",w,F.lB.vY(e)),new uW(10,"BWB:Timeout")),11);case 11:return u.cZ=G.U,F.state=7,m=w8(F.logger,function(r){return function(){var Q=r.cZ;var D=r.Y2;var t=r.sH;if(pG(Q,4))D.dispose(),D=new C2(F.logger,pG(Q,4),KG(Q,2)*1E3);else if(KG(Q,3)){if(!t)throw new uW(4,"PMD:Undefined");var n= t(VI(xp(Q,1)));if(!(n instanceof Function))throw new uW(16,"APF:Failed");t=KG(Q,2)*1E3;Q=new Y9(F.logger,n,KG(Q,3),t);g.k(Q,D);F.Y=Math.floor((Date.now()+t)/1E3);D=Q}else D.dispose(),D=new $9(F.logger,VI(xp(Q,1)),KG(Q,2)*1E3);return D}}(u),"i"),f=y=void 0,(f=(y=F).l3)==null||f.call(y,VI(xp(u.cZ,1))),F.state=8,G.return(m); case 5:d=g.dY(G);J=d instanceof uW?d:d instanceof nM?new uW(20,"WTO:Disposed",d):d instanceof jP?new uW(11,"EBH:Error",d):new uW(12,"BSO:Unknown",d);F.reportError(J);a:{if(d instanceof jP)switch(d.code){case 2:case 13:case 14:case 4:var P=!0;break a;default:P=!1;break a}P=d instanceof uW?d.code!==20:!0}if(!P)throw J;return g.T(G,ZV(F,I.getValue()),12);case 12:g.dK(I);case 3:u={Wa:void 0,cZ:void 0,Y2:void 0,sH:void 0};w++;G.gD(2);break;case 4:throw J;}})}; ZV=function(F,J){J=aLo(J);g.k(F,J);J.start();return J.Y}; KIa=function(F,J,b){return Promise.race([J,ZV(F,12E4).then(function(){return Promise.reject(b)})])}; gV7=function(F){var J,b,I;g.S(function(u){switch(u.C){case 1:return J=void 0,g.lk(u,5),g.T(u,pja(F),7);case 7:J=u.U;g.Wa(u,6);break;case 5:b=g.dY(u);if(F.C){F.logger.AN(13);u.gD(0);break}F.logger.AN(14);J=new X5(F.logger,b instanceof uW?b:new uW(14,"SOM:Init",b instanceof Error?b:Error(String(b))));case 6:return I=void 0,(I=F.C)==null||I.dispose(),F.C=J,F.T.resolve(),g.lk(u,8),g.T(u,F.C.U.promise,10);case 10:g.Wa(u,1);break;case 8:g.dY(u),u.gD(0)}})}; mfo=function(F,J){J.Oa&&!F.cache&&F.aA(Math.min(J.Oa.GFI,150))}; yz_=function(F){var J={};g.gy(F,function(b){var I=b.event,u=J[I];J.hasOwnProperty(I)?u!==null&&(b.Hg(u)||(J[I]=null)):J[I]=b}); Loo(F,function(b){return J[b.event]===null})}; Ht=function(){this.BV=0;this.C=!1;this.U=-1;this.We=!1;this.N_=0}; LM=function(){this.U=null;this.C=!1}; FV=function(F){LM.call(this);this.Z=F}; Jh=function(){LM.call(this)}; bT=function(){LM.call(this)}; II=function(){this.C={};this.U=!0;this.T={}}; uT=function(F,J,b){F.C[J]||(F.C[J]=new FV(b));return F.C[J]}; iu_=function(F){F.C.queryid||(F.C.queryid=new bT)}; wf=function(F,J,b){(F=F.C[J])&&F.T(b)}; M5=function(F,J){if(g.Ea(F.T,J))return F.T[J];if(F=F.C[J])return F.getValue()}; Ah=function(F){var J={},b=g.zo(F.C,function(I){return I.C}); g.ie(b,function(I,u){I=F.T[u]!==void 0?String(F.T[u]):I.C&&I.U!==null?String(I.U):"";I.length>0&&(J[u]=I)},F); return J}; zB3=function(F){F=Ah(F);var J=[];g.ie(F,function(b,I){I in Object.prototype||typeof b!="undefined"&&J.push([I,":",b].join(""))}); return J}; lL7=function(F){uT(F,"od",Nb_);uT(F,"opac",q5).C=!0;uT(F,"sbeos",q5).C=!0;uT(F,"prf",q5).C=!0;uT(F,"mwt",q5).C=!0;uT(F,"iogeo",q5)}; fLv=function(){this.C=this.EG=null}; vY=function(){}; ew=function(){if(!aI())throw Error();}; aI=function(){return!(!K_||!K_.performance)}; p_=function(F){return F?F.passive&&WIv()?F:F.capture||!1:!1}; gf=function(F,J,b,I){return F.addEventListener?(F.addEventListener(J,b,p_(I)),!0):!1}; mx=function(F){return F.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[F.visibilityState||F.webkitVisibilityState||F.mozVisibilityState||""]||0}; dfC=function(){}; EV_=function(){return(TV||r5)&&Sm?Sm.mobile:!yF()&&(YL("iPod")||YL("iPhone")||YL("Android")||YL("IEMobile"))}; yF=function(){return(TV||r5)&&Sm?!Sm.mobile&&(YL("iPad")||YL("Android")||YL("Silk")):YL("iPad")||YL("Android")&&!YL("Mobile")||YL("Silk")}; iT=function(F){try{return!!F&&F.location.href!=null&&MmG(F,"foo")}catch(J){return!1}}; zi=function(F,J){if(F)for(var b in F)Object.prototype.hasOwnProperty.call(F,b)&&J(F[b],b,F)}; Gqv=function(){var F=[];zi(jcJ,function(J){F.push(J)}); return F}; VPz=function(F){var J,b;return(b=(J=/https?:\/\/[^\/]+/.exec(F))==null?void 0:J[0])!=null?b:""}; Tb4=function(){var F=P5k("IFRAME"),J={};g.gy(Bb7(),function(b){F.sandbox&&F.sandbox.supports&&F.sandbox.supports(b)&&(J[b]=!0)}); return J}; P5k=function(F,J){J=J===void 0?document:J;return J.createElement(String(F).toLowerCase())}; rzm=function(F){for(var J=F;F&&F!=F.parent;)F=F.parent,iT(F)&&(J=F);return J}; $fJ=function(F){F=F||N5();for(var J=new Ssa(g.Qz.location.href,!1),b=null,I=F.length-1,u=I;u>=0;--u){var w=F[u];!b&&scz.test(w.url)&&(b=w);if(w.url&&!w.wH){J=w;break}}u=null;w=F.length&&F[I].url;J.depth!=0&&w&&(u=F[I]);return new Ysv(J,u,b)}; N5=function(){var F=g.Qz,J=[],b=null;do{var I=F;if(iT(I)){var u=I.location.href;b=I.document&&I.document.referrer||null}else u=b,b=null;J.push(new Ssa(u||""));try{F=I.parent}catch(w){F=null}}while(F&&I!=F);I=0;for(F=J.length-1;I<=F;++I)J[I].depth=F-I;I=g.Qz;if(I.location&&I.location.ancestorOrigins&&I.location.ancestorOrigins.length==J.length-1)for(F=1;F<J.length;++F)u=J[F],u.url||(u.url=I.location.ancestorOrigins[F-1]||"",u.wH=!0);return J}; Ysv=function(F,J,b){this.C=F;this.U=J;this.T=b}; Ssa=function(F,J){this.url=F;this.wH=!!J;this.depth=null}; lT=function(){this.T="&";this.U={};this.Z=0;this.C=[]}; f_=function(F,J){var b={};b[F]=J;return[b]}; C5Y=function(F,J,b,I,u){var w=[];zi(F,function(M,q){(M=WY(M,J,b,I,u))&&w.push(q+"="+M)}); return w.join(J)}; WY=function(F,J,b,I,u){if(F==null)return"";J=J||"&";b=b||",$";typeof b==="string"&&(b=b.split(""));if(F instanceof Array){if(I||(I=0),I<b.length){for(var w=[],M=0;M<F.length;M++)w.push(WY(F[M],J,b,I+1,u));return w.join(b[I])}}else if(typeof F==="object")return u||(u=0),u<2?encodeURIComponent(C5Y(F,J,b,I,u+1)):"...";return encodeURIComponent(String(F))}; Xjk=function(F){var J=1,b;for(b in F.U)b.length>J&&(J=b.length);return 3997-J-F.T.length-1}; df=function(F,J){this.C=F;this.depth=J}; RB_=function(){function F(q,v){return q==null?v:q} var J=N5(),b=Math.max(J.length-1,0),I=$fJ(J);J=I.C;var u=I.U,w=I.T,M=[];w&&M.push(new df([w.url,w.wH?2:0],F(w.depth,1)));u&&u!=w&&M.push(new df([u.url,2],0));J.url&&J!=w&&M.push(new df([J.url,0],F(J.depth,b)));I=g.EG(M,function(q,v){return M.slice(0,M.length-v)}); !J.url||(w||u)&&J!=w||(u=VPz(J.url))&&I.push([new df([u,1],F(J.depth,b))]);I.push([]);return g.EG(I,function(q){return Qc_(b,q)})}; Qc_=function(F,J){g.jw(J,function(u){return u.depth>=0}); var b=Gi(J,function(u,w){return Math.max(u,w.depth)},-1),I=ubJ(b+2); I[0]=F;g.gy(J,function(u){return I[u.depth+1]=u.C}); return I}; Dfo=function(){var F=F===void 0?RB_():F;return F.map(function(J){return WY(J)})}; kqv=function(F){var J=!1;J=J===void 0?!1:J;K_.google_image_requests||(K_.google_image_requests=[]);var b=P5k("IMG",K_.document);J&&(b.attributionSrc="");b.src=F;K_.google_image_requests.push(b)}; VF=function(F){var J="S6";if(F.S6&&F.hasOwnProperty(J))return F.S6;var b=new F;F.S6=b;F.hasOwnProperty(J);return b}; PY=function(){this.U=new dfC;this.C=aI()?new ew:new vY}; OuY=function(){BY();var F=K_.document;return!!(F&&F.body&&F.body.getBoundingClientRect&&typeof K_.setInterval==="function"&&typeof K_.clearInterval==="function"&&typeof K_.setTimeout==="function"&&typeof K_.clearTimeout==="function")}; oVC=function(){BY();return Dfo()}; hBo=function(){}; BY=function(){var F=VF(hBo);if(!F.C){if(!K_)throw Error("Context has not been set and window is undefined.");F.C=VF(PY)}return F.C}; Ti=function(F){this.Z7=S2(F)}; czk=function(F){this.T=F;this.C=-1;this.U=this.Z=0}; rf=function(F,J){return function(){var b=g.Ba.apply(0,arguments);if(F.C>-1)return J.apply(null,g.W(b));try{return F.C=F.T.C.now(),J.apply(null,g.W(b))}finally{F.Z+=F.T.C.now()-F.C,F.C=-1,F.U+=1}}}; Ufa=function(F,J){this.U=F;this.T=J;this.C=new czk(F)}; xfo=function(){this.C={}}; tPz=function(){var F=Sw().flags,J=nVY;F=F.C[J.key];if(J.valueType==="proto"){try{var b=JSON.parse(F);if(Array.isArray(b))return b}catch(I){}return J.defaultValue}return typeof F===typeof J.defaultValue?F:J.defaultValue}; F67=function(){this.T=void 0;this.U=this.W=0;this.D=-1;this.Dy=new II;uT(this.Dy,"mv",Zu3).C=!0;uT(this.Dy,"omid",q5);uT(this.Dy,"epoh",q5).C=!0;uT(this.Dy,"epph",q5).C=!0;uT(this.Dy,"umt",q5).C=!0;uT(this.Dy,"phel",q5).C=!0;uT(this.Dy,"phell",q5).C=!0;uT(this.Dy,"oseid",Hu_).C=!0;var F=this.Dy;F.C.sloi||(F.C.sloi=new Jh);F.C.sloi.C=!0;uT(this.Dy,"mm",sG);uT(this.Dy,"ovms",LIG).C=!0;uT(this.Dy,"xdi",q5).C=!0;uT(this.Dy,"amp",q5).C=!0;uT(this.Dy,"prf",q5).C=!0;uT(this.Dy,"gtx",q5).C=!0;uT(this.Dy, "mvp_lv",q5).C=!0;uT(this.Dy,"ssmol",q5).C=!0;uT(this.Dy,"fmd",q5).C=!0;uT(this.Dy,"gen204simple",q5);this.C=new Ufa(BY(),this.Dy);this.Z=!1;this.flags=new xfo}; Sw=function(){return VF(F67)}; Jva=function(F,J,b,I){if(Math.random()<(I||F.C))try{if(b instanceof lT)var u=b;else u=new lT,zi(b,function(M,q){var v=u,a=v.Z++;M=f_(q,M);v.C.push(a);v.U[a]=M}); var w=u.tF(F.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+J+"&");w&&(BY(),kqv(w))}catch(M){}}; b2J=function(F,J,b){b=b===void 0?{}:b;this.error=F;this.context=J.context;this.msg=J.message||"";this.id=J.id||"jserror";this.meta=b}; IFm=function(){var F=F===void 0?g.Qz:F;return(F=F.performance)&&F.now&&F.timing?Math.floor(F.now()+F.timing.navigationStart):g.L3()}; u53=function(){var F=F===void 0?g.Qz:F;return(F=F.performance)&&F.now?F.now():null}; wRv=function(F,J,b){this.label=F;this.type=J;this.value=b;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; $I=function(){var F=window;this.events=[];this.U=F||g.Qz;var J=null;F&&(F.google_js_reporting_queue=F.google_js_reporting_queue||[],this.events=F.google_js_reporting_queue,J=F.google_measure_js_timing);this.C=YI()||(J!=null?J:Math.random()<1)}; MWm=function(F){F&&C_&&YI()&&(C_.clearMarks("goog_"+F.label+"_"+F.uniqueId+"_start"),C_.clearMarks("goog_"+F.label+"_"+F.uniqueId+"_end"))}; Avz=function(){var F=XV;this.C=QF;this.Zk="jserror";this.zK=!0;this.Uj=null;this.U=this.l5;this.J_=F===void 0?null:F}; qUk=function(F,J,b){var I=RI;return rf(Sw().C.C,function(){try{if(I.J_&&I.J_.C){var u=I.J_.start(F.toString(),3);var w=J();I.J_.end(u)}else w=J()}catch(q){var M=I.zK;try{MWm(u),M=I.U(F,new DA(kI(q)),void 0,b)}catch(v){I.l5(217,v)}if(!M)throw q;}return w})()}; OG=function(F,J,b,I){return rf(Sw().C.C,function(){var u=g.Ba.apply(0,arguments);return qUk(F,function(){return J.apply(b,u)},I)})}; kI=function(F){var J=F.toString();F.name&&J.indexOf(F.name)==-1&&(J+=": "+F.name);F.message&&J.indexOf(F.message)==-1&&(J+=": "+F.message);if(F.stack)a:{F=F.stack;var b=J;try{F.indexOf(b)==-1&&(F=b+"\n"+F);for(var I;F!=I;)I=F,F=F.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");J=F.replace(/\n */g,"\n");break a}catch(u){J=b;break a}J=void 0}return J}; DA=function(F){b2J.call(this,Error(F),{message:F})}; v9C=function(){K_&&typeof K_.google_measure_js_timing!="undefined"&&(K_.google_measure_js_timing||XV.disable())}; aF_=function(F){RI.Uj=function(J){g.gy(F,function(b){b(J)})}}; eP4=function(F,J){return qUk(F,J)}; oI=function(F,J){return OG(F,J)}; hh=function(F,J,b,I){RI.l5(F,J,b,I)}; cY=function(){return Date.now()-K67}; pR3=function(){var F=Sw().T,J=UG>=0?cY()-UG:-1,b=xI?cY()-n_:-1,I=th>=0?cY()-th:-1;if(F==947190542)return 100;if(F==79463069)return 200;F=[2E3,4E3];var u=[250,500,1E3];hh(637,Error(),.001);var w=J;b!=-1&&b<J&&(w=b);for(J=0;J<F.length;++J)if(w<F[J]){var M=u[J];break}M===void 0&&(M=u[F.length]);return I!=-1&&I>1500&&I<4E3?500:M}; ZA=function(F,J,b,I){this.top=F;this.right=J;this.bottom=b;this.left=I}; HY=function(F){return F.right-F.left}; L_=function(F,J){return F==J?!0:F&&J?F.top==J.top&&F.right==J.right&&F.bottom==J.bottom&&F.left==J.left:!1}; Fw=function(F,J,b){J instanceof g.K$?(F.left+=J.x,F.right+=J.x,F.top+=J.y,F.bottom+=J.y):(F.left+=J,F.right+=J,typeof b==="number"&&(F.top+=b,F.bottom+=b));return F}; JW=function(F,J,b){var I=new ZA(0,0,0,0);this.time=F;this.volume=null;this.T=J;this.C=I;this.U=b}; bu=function(F,J,b,I,u,w,M,q){this.Z=F;this.V=J;this.T=b;this.W=I;this.C=u;this.D=w;this.U=M;this.Y=q}; m6m=function(F){var J=F!==F.top,b=F.top===rzm(F),I=-1,u=0;if(J&&b&&F.top.mraid){I=3;var w=F.top.mraid}else I=(w=F.mraid)?J?b?2:1:0:-1;w&&(w.IS_GMA_SDK||(u=2),OIz(g9J,function(M){return typeof w[M]==="function"})||(u=1)); return{P5:w,compatibility:u,rXI:I}}; yvo=function(){var F=window.document;return F&&typeof F.elementFromPoint==="function"}; i27=function(F,J,b){F&&J!==null&&J!=J.top&&(J=J.top);try{return(b===void 0?0:b)?(new g.gl(J.innerWidth,J.innerHeight)).round():uWY(J||window).round()}catch(I){return new g.gl(-12245933,-12245933)}}; IN=function(F,J,b){try{F&&(J=J.top);var I=i27(F,J,b),u=I.height,w=I.width;if(w===-12245933)return new ZA(w,w,w,w);var M=MDz(Qj(J.document).C),q=M.x,v=M.y;return new ZA(v,q+w,v+u,q)}catch(a){return new ZA(-12245933,-12245933,-12245933,-12245933)}}; g.uu=function(F,J,b,I){this.left=F;this.top=J;this.width=b;this.height=I}; qB=function(F,J){return F==J?!0:F&&J?F.left==J.left&&F.width==J.width&&F.top==J.top&&F.height==J.height:!1}; g.aN=function(F,J,b){if(typeof J==="string")(J=vc(F,J))&&(F.style[J]=b);else for(var I in J){b=F;var u=J[I],w=vc(b,I);w&&(b.style[w]=u)}}; vc=function(F,J){var b=zPz[J];if(!b){var I=$u7(J);b=I;F.style[I]===void 0&&(I=(g.xM?"Webkit":eu?"Moz":null)+X3o(I),F.style[I]!==void 0&&(b=I));zPz[J]=b}return b}; g.KL=function(F,J){var b=F.style[$u7(J)];return typeof b!=="undefined"?b:F.style[vc(F,J)]||""}; pL=function(F,J){var b=Xl(F);return b.defaultView&&b.defaultView.getComputedStyle&&(F=b.defaultView.getComputedStyle(F,null))?F[J]||F.getPropertyValue(J)||"":""}; gj=function(F,J){return pL(F,J)||(F.currentStyle?F.currentStyle[J]:null)||F.style&&F.style[J]}; g.yf=function(F,J,b){if(J instanceof g.K$){var I=J.x;J=J.y}else I=J,J=b;F.style.left=g.m2(I,!1);F.style.top=g.m2(J,!1)}; iu=function(F){try{return F.getBoundingClientRect()}catch(J){return{left:0,top:0,right:0,bottom:0}}}; N8a=function(F){var J=Xl(F),b=gj(F,"position"),I=b=="fixed"||b=="absolute";for(F=F.parentNode;F&&F!=J;F=F.parentNode)if(F.nodeType==11&&F.host&&(F=F.host),b=gj(F,"position"),I=I&&b=="static"&&F!=J.documentElement&&F!=J.body,!I&&(F.scrollWidth>F.clientWidth||F.scrollHeight>F.clientHeight||b=="fixed"||b=="absolute"||b=="relative"))return F;return null}; g.zv=function(F){var J=Xl(F),b=new g.K$(0,0);if(F==(J?Xl(J):document).documentElement)return b;F=iu(F);J=MDz(Qj(J).C);b.x=F.left+J.x;b.y=F.top+J.y;return b}; fF4=function(F,J){var b=new g.K$(0,0),I=n$(Xl(F));if(!MmG(I,"parent"))return b;do{var u=I==J?g.zv(F):lFz(F);b.x+=u.x;b.y+=u.y}while(I&&I!=J&&I!=I.parent&&(F=I.frameElement)&&(I=I.parent));return b}; g.NB=function(F,J){F=W63(F);J=W63(J);return new g.K$(F.x-J.x,F.y-J.y)}; lFz=function(F){F=iu(F);return new g.K$(F.left,F.top)}; W63=function(F){if(F.nodeType==1)return lFz(F);F=F.changedTouches?F.changedTouches[0]:F;return new g.K$(F.clientX,F.clientY)}; g.lu=function(F,J,b){if(J instanceof g.gl)b=J.height,J=J.width;else if(b==void 0)throw Error("missing height argument");F.style.width=g.m2(J,!0);F.style.height=g.m2(b,!0)}; g.m2=function(F,J){typeof F=="number"&&(F=(J?Math.round(F):F)+"px");return F}; g.fL=function(F){var J=d6Y;if(gj(F,"display")!="none")return J(F);var b=F.style,I=b.display,u=b.visibility,w=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";F=J(F);b.display=I;b.position=w;b.visibility=u;return F}; d6Y=function(F){var J=F.offsetWidth,b=F.offsetHeight,I=g.xM&&!J&&!b;return(J===void 0||I)&&F.getBoundingClientRect?(F=iu(F),new g.gl(F.right-F.left,F.bottom-F.top)):new g.gl(J,b)}; g.Wc=function(F,J){F.style.display=J?"":"none"}; dj=function(F,J){J=Math.pow(10,J);return Math.floor(F*J)/J}; E9_=function(F){return new ZA(F.top,F.right,F.bottom,F.left)}; j6k=function(F){var J=F.top||0,b=F.left||0;return new ZA(J,b+(F.width||0),J+(F.height||0),b)}; Pc=function(F){return F!=null&&F>=0&&F<=1}; G57=function(){var F=g.Bk();return F?Bc("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(J){return jm(F,J)})||jm(F,"OMI/")&&!jm(F,"XiaoMi/")?!0:jm(F,"Presto")&&jm(F,"Linux")&&!jm(F,"X11")&&!jm(F,"Android")&&!jm(F,"Mobi"):!1}; VWk=function(){this.T=!iT(K_.top);this.isMobileDevice=yF()||EV_();var F=N5();this.domain=F.length>0&&F[F.length-1]!=null&&F[F.length-1].url!=null?g.Cu(F[F.length-1].url)||"":"";this.C=new ZA(0,0,0,0);this.Z=new g.gl(0,0);this.D=new g.gl(0,0);this.V=new ZA(0,0,0,0);this.frameOffset=new g.K$(0,0);this.W=0;this.Y=!1;this.U=!(!K_||!m6m(K_).P5);this.update(K_)}; P3a=function(F,J){J&&J.screen&&(F.Z=new g.gl(J.screen.width,J.screen.height))}; B84=function(F,J){a:{var b=F.C?new g.gl(HY(F.C),F.C.getHeight()):new g.gl(0,0);J=J===void 0?K_:J;J!==null&&J!=J.top&&(J=J.top);var I=0,u=0;try{var w=J.document,M=w.body,q=w.documentElement;if(w.compatMode=="CSS1Compat"&&q.scrollHeight)I=q.scrollHeight!=b.height?q.scrollHeight:q.offsetHeight,u=q.scrollWidth!=b.width?q.scrollWidth:q.offsetWidth;else{var v=q.scrollHeight,a=q.scrollWidth,e=q.offsetHeight,K=q.offsetWidth;q.clientHeight!=e&&(v=M.scrollHeight,a=M.scrollWidth,e=M.offsetHeight,K=M.offsetWidth); v>b.height?v>e?(I=v,u=a):(I=e,u=K):v<e?(I=v,u=a):(I=e,u=K)}var p=new g.gl(u,I);break a}catch(m){p=new g.gl(-12245933,-12245933);break a}p=void 0}F.D=p}; Su=function(){var F=Tv();if(F.W>0||F.Y)return!0;F=BY().U.isVisible();var J=mx(rj)===0;return F||J}; Tv=function(){return VF(VWk)}; sN=function(F){this.T=F;this.U=0;this.C=null}; Yg=function(F,J,b){this.T=F;this.dD=b===void 0?"na":b;this.D=[];this.isInitialized=!1;this.Z=new JW(-1,!0,this);this.C=this;this.Y=J;this.Tj=this.N=!1;this.WN="uk";this.kQ=!1;this.W=!0}; $g=function(F,J){g.te(F.D,J)||(F.D.push(J),J.Qf(F.C),J.e$(F.Z),J.s1()&&(F.N=!0))}; T87=function(F){F=F.C;F.d8();F.EZ();var J=Tv();J.V=IN(!1,F.T,J.isMobileDevice);B84(Tv(),F.T);F.Z.C=F.mT()}; rv7=function(F){F.N=F.D.length?Bc(F.D,function(J){return J.s1()}):!1}; SUG=function(F){var J=g.JL(F.D);g.gy(J,function(b){b.e$(F.Z)})}; CL=function(F){var J=g.JL(F.D);g.gy(J,function(b){b.Qf(F.C)}); F.C!=F||SUG(F)}; Xw=function(F,J,b,I){this.element=F;this.C=new ZA(0,0,0,0);this.T=null;this.W=new ZA(0,0,0,0);this.U=J;this.Dy=b;this.kQ=I;this.Gj=!1;this.timestamp=-1;this.N=new bu(J.Z,this.element,this.C,new ZA(0,0,0,0),0,0,cY(),0);this.D=void 0}; s6C=function(F,J){return F.D?new ZA(Math.max(J.top+F.D.top,J.top),Math.min(J.left+F.D.right,J.right),Math.min(J.top+F.D.bottom,J.bottom),Math.max(J.left+F.D.left,J.left)):J.clone()}; Qf=function(F){this.D=!1;this.C=F;this.Z=function(){}}; YUz=function(F,J,b){this.T=b===void 0?0:b;this.U=F;this.C=J==null?"":J}; $67=function(F){switch(Math.trunc(F.T)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; C3Y=function(F,J){return F.T<J.T?!0:F.T>J.T?!1:F.U<J.U?!0:F.U>J.U?!1:typeof F.C<typeof J.C?!0:typeof F.C>typeof J.C?!1:F.C<J.C}; RN=function(){this.T=0;this.C=[];this.U=!1}; XRo=function(F,J){(0,g.gy)(J.C,function(b){F.add(b.U,b.C,$67(b))})}; DG=function(F,J){var b=b===void 0?0:b;var I=I===void 0?!0:I;zi(J,function(u,w){I&&u===void 0||F.add(w,u,b)}); return F}; kg=function(F){var J=Q6o;F.U&&(g.vW(F.C,function(b,I){return C3Y(I,b)?1:C3Y(b,I)?-1:0}),F.U=!1); return Gi(F.C,function(b,I){I=J(I);return""+b+(b!=""&&I!=""?"&":"")+I},"")}; Q6o=function(F){var J=F.U;F=F.C;return F===""?J:typeof F==="boolean"?F?J:"":Array.isArray(F)?F.length===0?J:J+"="+F.join():J+"="+(g.te(["mtos","tos","p"],J)?F:encodeURIComponent(F))}; RPJ=function(F){var J=J===void 0?!0:J;this.C=new RN;F!==void 0&&XRo(this.C,F);J&&this.C.add("v","unreleased",-16)}; D6k=function(F){var J=[],b=[];g.ie(F,function(I,u){if(!(u in Object.prototype)&&typeof I!="undefined")switch(Array.isArray(I)&&(I=I.join(",")),I=[u,"=",I].join(""),u){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":J.unshift(I);break;case "req":case "url":case "referrer":case "iframe_loc":b.push(I);break;default:J.push(I)}}); return J.concat(b)}; k5a=function(F){F=F.toString();BY();kqv(F)}; O23=function(){this.C=0}; o9z=function(F,J,b){(0,g.gy)(F.T,function(I){var u=F.C;if(!I.C&&(I.T(J,b),I.Z())){I.C=!0;var w=I.U(),M=new RN;M.add("id","av-js");M.add("type","verif");M.add("vtype",I.D);I=VF(O23);M.add("i",I.C++);M.add("adk",u);DG(M,w);u=new RPJ(M);k5a(u)}})}; ON=function(){this.U=this.T=this.Z=this.C=0}; oN=function(F){this.U=F=F===void 0?hPz:F;this.C=g.EG(this.U,function(){return new ON})}; hW=function(F,J){return cv7(F,function(b){return b.C},J===void 0?!0:J)}; UN=function(F,J){return cc(F,J,function(b){return b.C})}; U6G=function(F,J){return cv7(F,function(b){return b.T},J===void 0?!0:J)}; xg=function(F,J){return cc(F,J,function(b){return b.T})}; nL=function(F,J){return cc(F,J,function(b){return b.U})}; x6m=function(F){g.gy(F.C,function(J){J.U=0})}; cv7=function(F,J,b){F=g.EG(F.C,function(I){return J(I)}); return b?F:n9m(F)}; cc=function(F,J,b){var I=g.nz(F.U,function(u){return J<=u}); return I==-1?0:b(F.C[I])}; n9m=function(F){return g.EG(F,function(J,b,I){return b>0?I[b]-I[b-1]:I[b]})}; tW=function(){this.U=new oN;this.dD=this.qf=0;this.KW=new ON;this.eE=this.V=-1;this.nW=1E3;this.bR=new oN([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.WN=this.Gj=-1}; ZG=function(F,J){return U6G(F.U,J===void 0?!0:J)}; Hc=function(F,J,b,I){var u=u===void 0?!1:u;b=OG(I,b);gf(F,J,b,{capture:u})}; FL=function(F,J){J=LL(J);return J===0?0:LL(F)/J}; LL=function(F){return Math.max(F.bottom-F.top,0)*Math.max(F.right-F.left,0)}; tWm=function(F,J){if(!F||!J)return!1;for(var b=0;F!==null&&b++<100;){if(F===J)return!0;try{if(F=F.parentElement||F){var I=Xl(F),u=I&&n$(I),w=u&&u.frameElement;w&&(F=w)}}catch(M){break}}return!1}; Z2m=function(F,J,b){if(!F||!J)return!1;J=Fw(F.clone(),-J.left,-J.top);F=(J.left+J.right)/2;J=(J.top+J.bottom)/2;iT(window.top)&&window.top&&window.top.document&&(window=window.top);if(!yvo())return!1;F=window.document.elementFromPoint(F,J);if(!F)return!1;J=(J=(J=Xl(b))&&J.defaultView&&J.defaultView.frameElement)&&tWm(J,F);var I=F===b;F=!I&&F&&MI(F,function(u){return u===b}); return!(J||I||F)}; H2Y=function(F,J,b,I){return Tv().T?!1:HY(F)<=0||F.getHeight()<=0?!0:b&&I?eP4(208,function(){return Z2m(F,J,b)}):!1}; JS=function(F,J,b){g.R.call(this);this.position=L6v.clone();this.W8=this.wl();this.i5=-2;this.timeCreated=Date.now();this.aj=-1;this.y5=J;this.LG=null;this.NN=!1;this.ys=null;this.opacity=-1;this.requestSource=b;this.h4G=!1;this.Ql=function(){}; this.Pi=function(){}; this.f4=new fLv;this.f4.EG=F;this.f4.C=F;this.Pc=!1;this.QO={Jq:null,Bd:null};this.OH=!0;this.Eu=null;this.o9=this.pNW=!1;Sw().W++;this.HD=this.Cb();this.BU=-1;this.JF=null;this.hasCompleted=this.oQQ=!1;this.Dy=new II;lL7(this.Dy);Fjz(this);this.requestSource==1?wf(this.Dy,"od",1):wf(this.Dy,"od",0)}; Fjz=function(F){F=F.f4.EG;var J;if(J=F&&F.getAttribute)J=/-[a-z]/.test("googleAvInapp")?!1:JNk&&F.dataset?"googleAvInapp"in F.dataset:F.hasAttribute?F.hasAttribute("data-"+Cvk()):!!F.getAttribute("data-"+Cvk());J&&(Tv().U=!0)}; bR=function(F,J){J!=F.o9&&(F.o9=J,F=Tv(),J?F.W++:F.W>0&&F.W--)}; bMY=function(F,J){if(F.JF){if(J.getName()===F.JF.getName())return;F.JF.dispose();F.JF=null}J=J.create(F.f4.C,F.Dy,F.s1());if(J=J!=null&&J.observe()?J:null)F.JF=J}; IVm=function(F,J,b){if(!F.LG||F.y5==-1||J.U===-1||F.LG.U===-1)return 0;F=J.U-F.LG.U;return F>b?0:F}; uBJ=function(F,J,b){if(F.JF){F.JF.Sy();var I=F.JF.N,u=I.Z,w=u.C;if(I.W!=null){var M=I.T;F.ys=new g.K$(M.left-w.left,M.top-w.top)}w=F.iM()?Math.max(I.C,I.D):I.C;M={};u.volume!==null&&(M.volume=u.volume);u=F.x5(I);F.LG=I;F.VG(w,J,b,!1,M,u,I.Y)}}; wt_=function(F){if(F.NN&&F.Eu){var J=M5(F.Dy,"od")==1,b=Tv().C,I=F.Eu,u=F.JF?F.JF.getName():"ns",w=F.ys,M=new g.gl(HY(b),b.getHeight());b=F.iM();F={R4f:u,ys:w,wDf:M,iM:b,BV:F.HD.BV,Lrv:J};if(J=I.U){J.Sy();u=J.N;w=u.Z.C;var q=M=null;u.W!=null&&w&&(M=u.T,M=new g.K$(M.left-w.left,M.top-w.top),q=new g.gl(w.right-w.left,w.bottom-w.top));u=b?Math.max(u.C,u.D):u.C;b={R4f:J.getName(),ys:M,wDf:q,iM:b,Lrv:!1,BV:u}}else b=null;b&&o9z(I,F,b)}}; MhG=function(F,J,b){J&&(F.Ql=J);b&&(F.Pi=b)}; g.I8=function(){}; g.uR=function(F){return{value:F,done:!1}}; ANG=function(){this.Z=this.C=this.T=this.U=this.D=0}; q4Y=function(F){var J={};var b=g.L3()-F.D;J=(J.ptlt=b,J);(b=F.U)&&(J.pnk=b);(b=F.T)&&(J.pnc=b);(b=F.Z)&&(J.pnmm=b);(F=F.C)&&(J.pns=F);return J}; voz=function(){Ht.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; w2=function(F){return Pc(F.volume)&&F.volume>0}; MN=function(F,J,b,I){b=b===void 0?!0:b;I=I===void 0?function(){return!0}:I; return function(u){var w=u[F];if(Array.isArray(w)&&I(u))return aVv(w,J,b)}}; AS=function(F,J){return function(b){return J(b)?b[F]:void 0}}; e$k=function(F){return function(J){for(var b=0;b<F.length;b++)if(F[b]===J.e||F[b]===void 0&&!J.hasOwnProperty("e"))return!0;return!1}}; aVv=function(F,J,b){return b===void 0||b?g.qN(F,function(I,u){return g.te(J,u)}):g.EG(J,function(I,u,w){return F.slice(u>0?w[u-1]+1:0,I+1).reduce(function(M,q){return M+q},0)})}; Kj4=function(){this.U=this.C=""}; ptC=function(){}; v2=function(F,J){var b={};if(F!==void 0)if(J!=null)for(var I in J){var u=J[I];I in Object.prototype||u!=null&&(b[I]=typeof u==="function"?u(F):F[u])}else g.Sq(b,F);return kg(DG(new RN,b))}; go7=function(){var F={};this.U=(F.vs=[1,0],F.vw=[0,1],F.am=[2,2],F.a=[4,4],F.f=[8,8],F.bm=[16,16],F.b=[32,32],F.avw=[0,64],F.avs=[64,0],F.pv=[256,256],F.gdr=[0,512],F.p=[0,1024],F.r=[0,2048],F.m=[0,4096],F.um=[0,8192],F.ef=[0,16384],F.s=[0,32768],F.pmx=[0,16777216],F.mut=[33554432,33554432],F.umutb=[67108864,67108864],F.tvoff=[134217728,134217728],F);this.C={};for(var J in this.U)this.U[J][1]>0&&(this.C[J]=0);this.T=0}; a8=function(F,J){var b=F.U[J],I=b[1];F.T+=b[0];I>0&&F.C[J]==0&&(F.C[J]=1)}; ml4=function(F){var J=g.dl(F.U),b=0,I;for(I in F.C)g.te(J,I)&&F.C[I]==1&&(b+=F.U[I][1],F.C[I]=2);return b}; yNz=function(F){var J=0,b;for(b in F.C){var I=F.C[b];if(I==1||I==2)J+=F.U[b][1]}return J}; e7=function(){this.C=this.U=0}; Kq=function(){tW.call(this);this.T=new ON;this.zj=this.N=this.kQ=0;this.Y=-1;this.cN=new ON;this.D=new ON;this.C=new oN;this.W=this.Z=-1;this.Tj=new ON;this.nW=2E3;this.fW=new e7;this.oI=new e7;this.Jz=new e7}; pq=function(F,J,b){var I=F.zj;xI||b||F.Y==-1||(I+=J-F.Y);return I}; iMk=function(){this.T=!1}; g2=function(F,J){this.T=!1;this.Z=F;this.N=J;this.D=0}; ma=function(F,J){g2.call(this,F,J);this.V=[]}; z$o=function(){}; yC=function(){}; iR=function(F,J,b,I){Xw.call(this,F,J,b,I)}; zZ=function(F,J,b){Xw.call(this,null,F,J,b);this.Y=F.isActive();this.V=0}; NN=function(F){return[F.top,F.left,F.bottom,F.right]}; lR=function(F,J,b,I,u,w){w=w===void 0?new yC:w;JS.call(this,J,b,I);this.PR=u;this.TA=0;this.x4={};this.Cv=new go7;this.VC={};this.Dj="";this.Jz=null;this.Q2=!1;this.C=[];this.OT=w.U();this.W=w.T();this.Z=null;this.T=-1;this.dD=this.N=void 0;this.eE=this.Tj=0;this.WN=-1;this.nW=this.oI=!1;this.kQ=this.Y=this.U=this.oB=this.Um=0;new oN;this.fW=this.zj=0;this.KW=-1;this.vS=0;this.V=g.ac;this.Gj=[this.wl()];this.xm=2;this.ZU={};this.ZU.pause="p";this.ZU.resume="r";this.ZU.skip="s";this.ZU.mute="m";this.ZU.unmute= "um";this.ZU.exitfullscreen="ef";this.D=null;this.bR=this.cN=!1;this.Om=Math.floor(Date.now()/1E3-1704067200);this.qf=0}; fq=function(F){F.hasCompleted=!0;F.vS!=0&&(F.vS=3)}; W2=function(F){return F===void 0?F:Number(F)?dj(F,3):0}; d2=function(F,J){return F.Gj[J!=null&&J<F.Gj.length?J:F.Gj.length-1]}; NRa=function(F){var J=!!M5(Sw().Dy,"umt");return F.N||!J&&!F.dD?0:1}; lVm=function(F,J){F.ZX()?J=0:F.y5==-1?J=0:(J-=F.y5,J=J>Math.max(1E4,F.T/3)?0:J);var b=F.V(F)||{};b=b.currentTime!==void 0?b.currentTime:F.Tj;var I=b-F.Tj,u=0;I>=0?(F.eE+=J,F.fW+=Math.max(J-I,0),u=Math.min(I,F.eE)):F.zj+=Math.abs(I);I!=0&&(F.eE=0);F.KW==-1&&I>0&&(F.KW=th>=0?cY()-th:-1);F.Tj=b;return u}; fVv=function(F,J){Bc(F.W,function(b){return b.Z==J.Z})||F.W.push(J)}; Wja=function(F){var J=UN(F.v9().C,1);return E0(F,J)}; E0=function(F,J,b){return J>=15E3?!0:F.oI?(b===void 0?0:b)?!0:F.T>0?J>=F.T/2:F.WN>0?J>=F.WN:!1:!1}; dla=function(F){var J=dj(F.HD.BV,2),b=F.Cv.T,I=F.HD,u=d2(F),w=W2(u.Z),M=W2(u.W),q=W2(I.volume),v=dj(u.V,2),a=dj(u.eE,2),e=dj(I.BV,2),K=dj(u.Gj,2),p=dj(u.WN,2);I=dj(I.N_,2);var m=F.IG().clone().round();F=F.JF&&F.JF.T?(F.JF?F.JF.T:null).clone().round():null;u=ZG(u,!1);return{CkR:J,T9:b,fJ:w,s4:M,ih:q,M8:v,P8:a,BV:e,dh:K,Ro:p,N_:I,position:m,tP:F,H8:u}}; j2a=function(F,J){Eo4(F.C,J,function(){return{CkR:0,T9:void 0,fJ:-1,s4:-1,ih:-1,M8:-1,P8:-1,BV:-1,dh:-1,Ro:-1,N_:-1,position:void 0,tP:void 0,H8:[]}}); F.C[J]=dla(F)}; Eo4=function(F,J,b){for(var I=F.length;I<J+1;)F.push(b()),I++}; GZ=function(F,J,b){var I=F.VC[J];if(I!=null)return I;I=Gmz(F,J);var u=Go(j7,function(w){return w==J}); F=Vhz(F,I,I,b,PF7[j7[u]]);J=="fully_viewable_audible_half_duration_impression"&&(F.std="csm");return F}; VC=function(F,J,b){var I=[J];if(F!=J||b!=J)I.unshift(F),I.push(b);return I}; Vhz=function(F,J,b,I,u){if(F.Pc)return{"if":0,vs:0};var w=F.IG().clone().round(),M=F.JF?F.JF.T:null,q=Tv(),v=Sw(),a=F.v9(),e=F.JF?F.JF.getName():"ns",K={};K["if"]=q.T?1:void 0;K.sdk=F.Z?F.Z:void 0;K.t=F.timeCreated;K.p=[w.top,w.left,w.bottom,w.right];w&&M&&!L_(M,w)&&(w=M.round(),K.cp=[w.top,w.left,w.bottom,w.right]);K.tos=hW(a.U,!1);K.mtos=ZG(a);K.mcvt=a.KW.T;K.ps=void 0;w=pq(a,cY(),F.ZX());K.vht=w;K.mut=a.cN.T;K.a=W2(F.HD.volume);K.mv=W2(a.W);K.fs=F.o9?1:0;K.ft=a.Tj.C;K.at=a.D.C;K.as=a.Z>0?1:0;K.atos= hW(a.C);K.ssb=hW(a.bR,!1);K.amtos=U6G(a.C,!1);K.uac=F.Um;K.vpt=a.T.C;e=="nio"&&(K.nio=1,K.avms="nio");K.gmm="4";K.gdr=E0(F,a.T.C,!0)?1:0;K.efpf=F.xm;if(e=="gsv"||e=="nis")e=F.JF,e.V>0&&(K.nnut=e.V);K.tcm=NRa(F);K.nmt=F.zj;K.bt=F.fW;K.pst=F.KW;K.vpaid=F.N;K.dur=F.T;K.vmtime=F.Tj;K.is=F.Cv.T;F.C.length>=1&&(K.i0=F.C[0].T9,K.a0=[F.C[0].ih],K.c0=[F.C[0].BV],K.ss0=[F.C[0].N_],e=F.C[0].position,w=F.C[0].tP,K.p0=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp0=NN(w)));F.C.length>=2&&(K.i1=F.C[1].T9,K.a1=VC(F.C[1].fJ, F.C[1].ih,F.C[1].s4),K.c1=VC(F.C[1].M8,F.C[1].BV,F.C[1].P8),K.ss1=VC(F.C[1].dh,F.C[1].N_,F.C[1].Ro),e=F.C[1].position,w=F.C[1].tP,K.p1=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp1=NN(w)),K.mtos1=F.C[1].H8);F.C.length>=3&&(K.i2=F.C[2].T9,K.a2=VC(F.C[2].fJ,F.C[2].ih,F.C[2].s4),K.c2=VC(F.C[2].M8,F.C[2].BV,F.C[2].P8),K.ss2=VC(F.C[2].dh,F.C[2].N_,F.C[2].Ro),e=F.C[2].position,w=F.C[2].tP,K.p2=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp2=NN(w)),K.mtos2=F.C[2].H8);F.C.length>=4&&(K.i3=F.C[3].T9,K.a3=VC(F.C[3].fJ,F.C[3].ih, F.C[3].s4),K.c3=VC(F.C[3].M8,F.C[3].BV,F.C[3].P8),K.ss3=VC(F.C[3].dh,F.C[3].N_,F.C[3].Ro),e=F.C[3].position,w=F.C[3].tP,K.p3=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp3=NN(w)),K.mtos3=F.C[3].H8);K.cs=yNz(F.Cv);J&&(K.ic=ml4(F.Cv),K.dvpt=a.T.U,K.dvs=nL(a.U,.5),K.dfvs=nL(a.U,1),K.davs=nL(a.C,.5),K.dafvs=nL(a.C,1),b&&(a.T.U=0,x6m(a.U),x6m(a.C)),F.kI()&&(K.dtos=a.kQ,K.dav=a.N,K.dtoss=F.TA+1,b&&(a.kQ=0,a.N=0,F.TA++)),K.dat=a.D.U,K.dft=a.Tj.U,b&&(a.D.U=0,a.Tj.U=0));K.ps=[q.D.width,q.D.height];K.bs=[HY(q.C),q.C.getHeight()]; K.scs=[q.Z.width,q.Z.height];K.dom=q.domain;F.oB&&(K.vds=F.oB);if(F.W.length>0||F.OT)J=g.JL(F.W),F.OT&&J.push(F.OT),K.pings=g.EG(J,function(p){return p.toString()}); J=g.EG(g.qN(F.W,function(p){return p.W()}),function(p){return p.getId()}); FR4(J);K.ces=J;F.U&&(K.vmer=F.U);F.Y&&(K.vmmk=F.Y);F.kQ&&(K.vmiec=F.kQ);K.avms=F.JF?F.JF.getName():"ns";F.JF&&g.Sq(K,F.JF.bH());I?(K.c=dj(F.HD.BV,2),K.ss=dj(F.HD.N_,2)):K.tth=cY()-BR4;K.mc=dj(a.eE,2);K.nc=dj(a.V,2);K.mv=W2(a.W);K.nv=W2(a.Z);K.lte=dj(F.i5,2);I=d2(F,u);ZG(a);K.qmtos=ZG(I);K.qnc=dj(I.V,2);K.qmv=W2(I.W);K.qnv=W2(I.Z);K.qas=I.Z>0?1:0;K.qi=F.Dj;K.avms||(K.avms="geo");K.psm=a.fW.C;K.psv=a.fW.getValue();K.psfv=a.oI.getValue();K.psa=a.Jz.getValue();v=zB3(v.Dy);v.length&&(K.veid=v);F.D&&g.Sq(K, q4Y(F.D));K.avas=F.yY();K.vs=F.NZ();K.co=TR3(F);K.tm=a.qf;K.tu=a.dD;return K}; Gmz=function(F,J){if(g.te(rNk,J))return!0;var b=F.x4[J];return b!==void 0?(F.x4[J]=!0,!b):!1}; TR3=function(F){var J=F.qf.toString(10).padStart(2,"0");J=""+F.Om+J;F.qf<99&&F.qf++;return J}; s2m=function(){this.C={};var F=n$();P2(this,F,document);var J=S4G();try{if("1"==J){for(var b=F.parent;b!=F.top;b=b.parent)P2(this,b,b.document);P2(this,F.top,F.top.document)}}catch(I){}}; S4G=function(){var F=document.documentElement;try{if(!iT(n$().top))return"2";var J=[],b=n$(F.ownerDocument);for(F=b;F!=b.top;F=F.parent)if(F.frameElement)J.push(F.frameElement);else break;return J&&J.length!=0?"1":"0"}catch(I){return"2"}}; P2=function(F,J,b){Hc(b,"mousedown",function(){return Y4G(F)},301); Hc(J,"scroll",function(){return $lz(F)},302); Hc(b,"touchmove",function(){return CFa(F)},303); Hc(b,"mousemove",function(){return Xtz(F)},304); Hc(b,"keydown",function(){return Q2J(F)},305)}; Y4G=function(F){g.ie(F.C,function(J){J.T>1E5||++J.T})}; $lz=function(F){g.ie(F.C,function(J){J.C>1E5||++J.C})}; CFa=function(F){g.ie(F.C,function(J){J.C>1E5||++J.C})}; Q2J=function(F){g.ie(F.C,function(J){J.U>1E5||++J.U})}; Xtz=function(F){g.ie(F.C,function(J){J.Z>1E5||++J.Z})}; R$G=function(){this.C=[];this.U=[]}; B2=function(F,J){return g.xL(F.C,function(b){return b.Dj==J})}; Dlz=function(F,J){return J?g.xL(F.C,function(b){return b.f4.EG==J}):null}; kmz=function(F,J){return g.xL(F.U,function(b){return b.E0()==2&&b.Dj==J})}; r2=function(){var F=TZ;return F.C.length==0?F.U:F.U.length==0?F.C:g.FP(F.U,F.C)}; OMz=function(F,J){F=J.E0()==1?F.C:F.U;var b=U1(F,function(I){return I==J}); return b!=-1?(F.splice(b,1),J.JF&&J.JF.unobserve(),J.dispose(),!0):!1}; ook=function(F){var J=TZ;if(OMz(J,F)){switch(F.E0()){case 0:var b=function(){return null}; case 2:b=function(){return kmz(J,F.Dj)}; break;case 1:b=function(){return B2(J,F.Dj)}}for(var I=b();I;I=b())OMz(J,I)}}; h$o=function(F){var J=TZ;F=g.qN(F,function(b){return!Dlz(J,b.f4.EG)}); J.C.push.apply(J.C,g.W(F))}; cN_=function(F){var J=[];g.gy(F,function(b){Bc(TZ.C,function(I){return I.f4.EG===b.f4.EG&&I.Dj===b.Dj})||(TZ.C.push(b),J.push(b))})}; S7=function(){this.C=this.U=null}; UlG=function(F,J){function b(I,u){J(I,u)} if(F.U==null)return!1;F.C=g.xL(F.U,function(I){return I!=null&&I.l0()}); F.C&&(F.C.init(b)?T87(F.C.C):J(F.C.C.gE(),F.C));return F.C!=null}; s0=function(F){F=xlv(F);Qf.call(this,F.length?F[F.length-1]:new Yg(K_,0));this.T=F;this.U=null}; xlv=function(F){if(!F.length)return[];F=(0,g.qN)(F,function(b){return b!=null&&b.WO()}); for(var J=1;J<F.length;J++)$g(F[J-1],F[J]);return F}; YR=function(F,J,b,I){Xw.call(this,F,J,b,I);this.eE=this.Tj=this.V=this.Y=this.Z=null}; $R=function(F){return F.Z&&F.Z.takeRecords?F.Z.takeRecords():[]}; thv=function(F){if(!F.element)return!1;var J=F.element,b=F.U.C.T,I=Sw().C.C;F.Z=new b.IntersectionObserver(rf(I,function(u){return Cq(F,u)}),noY); I=rf(I,function(){F.Z.unobserve(J);F.Z.observe(J);Cq(F,$R(F))}); b.ResizeObserver?(F.Y=new b.ResizeObserver(I),F.Y.observe(J)):b.MutationObserver&&(F.V=new g.Qz.MutationObserver(I),F.V.observe(J,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));F.Z.observe(J);Cq(F,$R(F));return!0}; Cq=function(F,J){try{if(J.length){F.Tj||(F.Tj=cY());var b=ZMz(J),I=fF4(F.element,F.U.C.T),u=I.x,w=I.y;F.T=new ZA(Math.round(w),Math.round(u)+b.boundingClientRect.width,Math.round(w)+b.boundingClientRect.height,Math.round(u));F.C=s6C(F,F.T);var M=E9_(b.intersectionRect);F.W=Fw(M,F.T.left-M.left,F.T.top-M.top)}}catch(q){F.unobserve(),hh(299,q)}}; ZMz=function(F){return Gi(F,function(J,b){return J.time>b.time?J:b},F[0])}; XL=function(F){F=F===void 0?K_:F;Qf.call(this,new Yg(F,2))}; QC=function(){var F=HM3();Yg.call(this,K_.top,F,"geo")}; HM3=function(){Sw();var F=Tv();return F.T||F.U?0:2}; Ljz=function(){}; R8=function(){this.done=!1;this.C={P6:0,v4:0,r$R:0,L0:0,yU:-1,N3:0,Lz:0,Iw:0,GnQ:0};this.D=null;this.W=!1;this.T=null;this.V=0;this.U=new sN(this)}; kR=function(){var F=DS;F.W||(F.W=!0,Fxa(F,function(){return F.Z.apply(F,g.W(g.Ba.apply(0,arguments)))}),F.Z())}; JhY=function(){VF(Ljz);var F=VF(S7);F.C!=null&&F.C.C?T87(F.C.C):Tv().update(K_)}; O0=function(F,J,b){if(!F.done&&(F.U.cancel(),J.length!=0)){F.T=null;try{JhY();var I=cY();Sw().D=I;if(VF(S7).C!=null)for(var u=0;u<J.length;u++)uBJ(J[u],I,b);for(I=0;I<J.length;I++)wt_(J[I]);++F.C.L0}finally{b?g.gy(J,function(w){w.HD.BV=0}):F.U.schedule()}}}; Fxa=function(F,J){if(!F.D){J=OG(142,J);BY();var b;rj.visibilityState?b="visibilitychange":rj.mozVisibilityState?b="mozvisibilitychange":rj.webkitVisibilityState&&(b="webkitvisibilitychange");b&&gf(rj,b,J,{capture:!1})&&(F.D=J)}}; b_G=function(){var F=VF(S7);if(F.C!=null){var J=F.C;g.gy(r2(),function(b){return bMY(b,J)})}}; IA7=function(F,J){F=F.V;xI&&(F+=J-n_);return F}; uVY=function(F){F=F===void 0?function(){return{}}:F; RI.Zk="av-js";QF.C=.01;aF_([function(J){var b=Sw(),I={};I=(I.bin=b.U,I.type="error",I);b=Ah(b.Dy);if(!DS.T){var u=DS,w=K_.document,M=UG>=0?cY()-UG:-1,q=cY();u.C.yU==-1&&(M=q);var v=Tv(),a=Sw(),e=Ah(a.Dy),K=r2();try{if(K.length>0){var p=v.C;p&&(e.bs=[HY(p),p.getHeight()]);var m=v.D;m&&(e.ps=[m.width,m.height]);K_.screen&&(e.scs=[K_.screen.width,K_.screen.height])}else e.url=encodeURIComponent(K_.location.href.substring(0,512)),w.referrer&&(e.referrer=encodeURIComponent(w.referrer.substring(0,512))); e.tt=M;e.pt=UG;e.bin=a.U;K_.google_osd_load_pub_page_exp!==void 0&&(e.olpp=K_.google_osd_load_pub_page_exp);e.deb=[1,u.C.P6,u.C.v4,u.C.L0,u.C.yU,0,u.U.U,u.C.N3,u.C.Lz,u.C.Iw,u.C.GnQ,-1].join(";");e.tvt=IA7(u,q);v.U&&(e.inapp=1);if(K_!==null&&K_!=K_.top){K.length>0&&(e.iframe_loc=encodeURIComponent(K_.location.href.substring(0,512)));var y=v.V;e.is=[HY(y),y.getHeight()]}}catch(f){e.error=1}DS.T=e}p=g.To(DS.T);m=Sw().C;M5(m.T,"prf")==1?(y=new Ti,u=m.C,w=0,u.C>-1&&(w=u.T.C.now()-u.C),y=nI(y,1,Mu(u.Z+ w),0),u=m.C,y=nI(y,5,aF(u.C>-1?u.U+1:u.U),0),y=nI(y,2,lv(m.U.C.T()),"0"),y=nI(y,3,lv(m.U.C.U()),"0"),m=nI(y,4,lv(m.U.C.C()),"0"),y={},m=(y.pf=g.zw(m.C()),y)):m={};g.Sq(p,m);g.Sq(J,I,b,p,F())}])}; Mw7=function(){var F=wYa||K_;if(!F)return"";var J=[];if(!F.location||!F.location.href)return"";J.push("url="+encodeURIComponent(F.location.href.substring(0,512)));F.document&&F.document.referrer&&J.push("referrer="+encodeURIComponent(F.document.referrer.substring(0,512)));return J.join("&")}; o8=function(){var F="youtube.player.web_20250218_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250218_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250218_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250218_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),J;if(((J=F)==null?void 0:J.length)==2)return F[1];F="youtube.player.web_20250218_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var b;return((b=F)==null?void 0:b.length)==3?"20"+F[1]+F[2]:null}; Ahz=function(){return"av.default_js".includes("ima_html5_sdk")?{s0:"ima",uS:null}:"av.default_js".includes("ima_native_sdk")?{s0:"nima",uS:null}:"av.default_js".includes("admob-native-video-javascript")?{s0:"an",uS:null}:"youtube.player.web_20250218_01_RC00".includes("cast_js_sdk")?{s0:"cast",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("youtube.player.web")?{s0:"yw",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("outstream_web_client")?{s0:"out",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("drx_rewarded_web")? {s0:"r",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("gam_native_web_video")?{s0:"n",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("admob_interstitial_video")?{s0:"int",uS:o8()}:{s0:"j",uS:null}}; U0=function(F,J){var b={sv:"966"};hS!==null&&(b.v=hS);b.cb=qGz;b.nas=TZ.C.length;b.msg=F;J!==void 0&&(F=vI_(J))&&(b.e=c2[F]);return b}; xR=function(F){return Wk(F,"custom_metric_viewable")}; vI_=function(F){var J=xR(F)?"custom_metric_viewable":F.toLowerCase();return Go(j7,function(b){return b==J})}; aAm=function(){this.C=void 0;this.U=!1;this.T=0;this.Z=-1;this.D="tos"}; pYa=function(F){try{var J=F.split(",");return J.length>g.dl(eAa).length?null:Gi(J,function(b,I){I=I.toLowerCase().split("=");if(I.length!=2||Kxz[I[0]]===void 0||!Kxz[I[0]](I[1]))throw Error("Entry ("+I[0]+", "+I[1]+") is invalid.");b[I[0]]=I[1];return b},{})}catch(b){return null}}; gIC=function(F,J){if(F.C==void 0)return 0;switch(F.D){case "mtos":return F.U?xg(J.C,F.C):xg(J.U,F.C);case "tos":return F.U?UN(J.C,F.C):UN(J.U,F.C)}return 0}; nq=function(F,J,b,I){g2.call(this,J,I);this.V=F;this.Y=b}; tS=function(){}; ZS=function(F){g2.call(this,"fully_viewable_audible_half_duration_impression",F)}; H2=function(F){this.C=F}; Lq=function(F,J){g2.call(this,F,J)}; F0=function(F){ma.call(this,"measurable_impression",F)}; Jy=function(){H2.apply(this,arguments)}; bo=function(F,J,b){zZ.call(this,F,J,b)}; IE=function(F){F=F===void 0?K_:F;Qf.call(this,new Yg(F,2))}; uo=function(F,J,b){zZ.call(this,F,J,b)}; wi=function(F){F=F===void 0?K_:F;Qf.call(this,new Yg(F,2))}; Mw=function(){Yg.call(this,K_,2,"mraid");this.fW=0;this.eE=this.Gj=!1;this.V=null;this.U=m6m(this.T);this.Z.C=new ZA(0,0,0,0);this.qf=!1}; Ay=function(F,J,b){F.Ui("addEventListener",J,b)}; zAC=function(F){Sw().Z=!!F.Ui("isViewable");Ay(F,"viewableChange",m5z);F.Ui("getState")==="loading"?Ay(F,"ready",yhJ):i__(F)}; i__=function(F){typeof F.U.P5.AFMA_LIDAR==="string"?(F.Gj=!0,NfJ(F)):(F.U.compatibility=3,F.V="nc",F.R6("w"))}; NfJ=function(F){F.eE=!1;var J=M5(Sw().Dy,"rmmt")==1,b=!!F.Ui("isViewable");(J?!b:1)&&BY().setTimeout(oI(524,function(){F.eE||(lA3(F),hh(540,Error()),F.V="mt",F.R6("w"))}),500); fA3(F);Ay(F,F.U.P5.AFMA_LIDAR,Wx7)}; fA3=function(F){var J=M5(Sw().Dy,"sneio")==1,b=F.U.P5.AFMA_LIDAR_EXP_1!==void 0,I=F.U.P5.AFMA_LIDAR_EXP_2!==void 0;(J=J&&I)&&(F.U.P5.AFMA_LIDAR_EXP_2=!0);b&&(F.U.P5.AFMA_LIDAR_EXP_1=!J)}; lA3=function(F){F.Ui("removeEventListener",F.U.P5.AFMA_LIDAR,Wx7);F.Gj=!1}; d5m=function(F,J){if(F.Ui("getState")==="loading")return new g.gl(-1,-1);J=F.Ui(J);if(!J)return new g.gl(-1,-1);F=parseInt(J.width,10);J=parseInt(J.height,10);return isNaN(F)||isNaN(J)?new g.gl(-1,-1):new g.gl(F,J)}; yhJ=function(){try{var F=VF(Mw);F.Ui("removeEventListener","ready",yhJ);i__(F)}catch(J){hh(541,J)}}; Wx7=function(F,J){try{var b=VF(Mw);b.eE=!0;var I=F?new ZA(F.y,F.x+F.width,F.y+F.height,F.x):new ZA(0,0,0,0);var u=cY(),w=Su();var M=new JW(u,w,b);M.C=I;M.volume=J;b.e$(M)}catch(q){hh(542,q)}}; m5z=function(F){var J=Sw(),b=VF(Mw);F&&!J.Z&&(J.Z=!0,b.qf=!0,b.V&&b.R6("w",!0))}; qw=function(){this.isInitialized=!1;this.C=this.U=null;var F={};this.V=(F.start=this.MEQ,F.firstquartile=this.OWW,F.midpoint=this.DfG,F.thirdquartile=this.EQ_,F.complete=this.gQQ,F.error=this.WGz,F.pause=this.GO,F.resume=this.v3,F.skip=this.fvz,F.viewable_impression=this.lS,F.mute=this.Fs,F.unmute=this.Fs,F.fullscreen=this.qQG,F.exitfullscreen=this.AzG,F.fully_viewable_audible_half_duration_impression=this.lS,F.measurable_impression=this.lS,F.abandon=this.GO,F.engagedview=this.lS,F.impression=this.lS, F.creativeview=this.lS,F.progress=this.Fs,F.custom_metric_viewable=this.lS,F.bufferstart=this.GO,F.bufferfinish=this.v3,F.audio_measurable=this.lS,F.audio_audible=this.lS,F);F={};this.Y=(F.overlay_resize=this.iWG,F.abandon=this.VU,F.close=this.VU,F.collapse=this.VU,F.overlay_unmeasurable_impression=function(J){return GZ(J,"overlay_unmeasurable_impression",Su())},F.overlay_viewable_immediate_impression=function(J){return GZ(J,"overlay_viewable_immediate_impression",Su())},F.overlay_unviewable_impression= function(J){return GZ(J,"overlay_unviewable_impression",Su())},F.overlay_viewable_end_of_session_impression=function(J){return GZ(J,"overlay_viewable_end_of_session_impression",Su())},F); Sw().U=3;EIm(this);this.T=null}; vQ=function(F,J,b,I){F=F.zM(null,I,!0,J);F.Z=b;h$o([F]);return F}; jIz=function(F,J,b){yz_(J);var I=F.C;g.gy(J,function(u){var w=g.EG(u.criteria,function(M){var q=pYa(M);if(q==null)M=null;else if(M=new aAm,q.visible!=null&&(M.C=q.visible/100),q.audible!=null&&(M.U=q.audible==1),q.time!=null){var v=q.timetype=="mtos"?"mtos":"tos",a=D4J(q.time,"%")?"%":"ms";q=parseInt(q.time,10);a=="%"&&(q/=100);M.setTime(q,a,v)}return M}); Bc(w,function(M){return M==null})||fVv(b,new nq(u.id,u.event,w,I))})}; Giv=function(){var F=[],J=Sw();F.push(VF(QC));M5(J.Dy,"mvp_lv")&&F.push(VF(Mw));J=[new IE,new wi];J.push(new s0(F));J.push(new XL(K_));return J}; Vwv=function(F){if(!F.isInitialized){F.isInitialized=!0;try{var J=cY(),b=Sw(),I=Tv();UG=J;b.T=79463069;F.U!=="o"&&(wYa=rzm(K_));if(OuY()){DS.C.v4=0;DS.C.yU=cY()-J;var u=Giv(),w=VF(S7);w.U=u;UlG(w,function(){aE()})?DS.done||(b_G(),$g(w.C.C,F),kR()):I.T?aE():kR()}else ef=!0}catch(M){throw TZ.reset(),M; }}}; p8=function(F){DS.U.cancel();K8=F;DS.done=!0}; gi=function(F){if(F.U)return F.U;var J=VF(S7).C;if(J)switch(J.getName()){case "nis":F.U="n";break;case "gsv":F.U="m"}F.U||(F.U="h");return F.U}; mU=function(F,J,b){if(F.C==null)return J.oB|=4,!1;F=PTk(F.C,b,J);J.oB|=F;return F==0}; aE=function(){var F=[new XL(K_)],J=VF(S7);J.U=F;UlG(J,function(){p8("i")})?DS.done||(b_G(),kR()):p8("i")}; BfC=function(F,J){if(!F.Q2){var b=GZ(F,"start",Su());b=F.PR.C(b).C;var I={id:"lidarv"};I.r=J;I.sv="966";hS!==null&&(I.v=hS);QX(b,function(u,w){return I[u]=u=="mtos"||u=="tos"?w:encodeURIComponent(w)}); J=Mw7();QX(J,function(u,w){return I[u]=encodeURIComponent(w)}); J="//pagead2.googlesyndication.com/pagead/gen_204?"+kg(DG(new RN,I));k5a(J);F.Q2=!0}}; yP=function(F,J,b){O0(DS,[F],!Su());j2a(F,b);b!=4&&Eo4(F.Gj,b,F.wl);return GZ(F,J,Su())}; EIm=function(F){uVY(function(){var J=TfG();F.U!=null&&(J.sdk=F.U);var b=VF(S7);b.C!=null&&(J.avms=b.C.getName());return J})}; rhv=function(F,J,b,I){var u=Dlz(TZ,b);u!==null&&u.Dj!==J&&(F.iU(u),u=null);u||(J=F.zM(b,cY(),!1,J),TZ.U.length==0&&(Sw().T=79463069),cN_([J]),u=J,u.Z=gi(F),I&&(u.Jz=I));return u}; SGa=function(F,J){var b=F[J];b!==void 0&&b>0&&(F[J]=Math.floor(b*1E3))}; TfG=function(){var F=Tv(),J={},b={},I={};return Object.assign({},(J.sv="966",J),hS!==null&&(b.v=hS,b),(I["if"]=F.T?"1":"0",I.nas=String(TZ.C.length),I))}; io=function(F){g2.call(this,"audio_audible",F)}; zM=function(F){ma.call(this,"audio_measurable",F)}; Nw=function(){H2.apply(this,arguments)}; lo=function(){}; sIv=function(F){this.C=F}; PTk=function(F,J,b){F=F.U();if(typeof F==="function"){var I={};var u={};I=Object.assign({},hS!==null&&(I.v=hS,I),(u.sv="966",u.cb=qGz,u.e=YGC(J),u));u=GZ(b,J,Su());g.Sq(I,u);b.VC[J]=u;I=b.E0()==2?D6k(I).join("&"):b.PR.C(I).C;try{return F(b.Dj,I,J),0}catch(w){return 2}}else return 1}; YGC=function(F){var J=xR(F)?"custom_metric_viewable":F;F=Go(j7,function(b){return b==J}); return c2[F]}; f8=function(){qw.call(this);this.W=null;this.D=!1;this.Z="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; $5Y=function(F,J,b){b=b.opt_configurable_tracking_events;F.C!=null&&Array.isArray(b)&&jIz(F,b,J)}; CTm=function(F,J,b){var I=B2(TZ,J);I||(I=b.opt_nativeTime||-1,I=vQ(F,J,gi(F),I),b.opt_osdId&&(I.Jz=b.opt_osdId));return I}; XY7=function(F,J,b){var I=B2(TZ,J);I||(I=vQ(F,J,"n",b.opt_nativeTime||-1));return I}; QIo=function(F,J){var b=B2(TZ,J);b||(b=vQ(F,J,"h",-1));return b}; RAo=function(F){Sw();switch(gi(F)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; O_Y=function(F,J,b,I){b=b===void 0?{}:b;var u={};g.Sq(u,{opt_adElement:void 0,opt_fullscreen:void 0},b);var w=F.PH(J,b);b=w?w.PR:F.m7();if(u.opt_bounds)return b.C(U0("ol",I));if(I!==void 0)if(vI_(I)!==void 0)if(ef)F=U0("ue",I);else if(Vwv(F),K8=="i")F=U0("i",I),F["if"]=0;else if(J=F.PH(J,u)){b:{K8=="i"&&(J.Pc=!0);w=u.opt_fullscreen;w!==void 0&&bR(J,!!w);var M;if(w=!Tv().U)(w=jm(g.Bk(),"CrKey")&&!(jm(g.Bk(),"CrKey")&&jm(g.Bk(),"SmartSpeaker"))||jm(g.Bk(),"PlayStation")||jm(g.Bk(),"Roku")||G57()||jm(g.Bk(), "Xbox"))||(w=g.Bk(),w=jm(w,"AppleTV")||jm(w,"Apple TV")||jm(w,"CFNetwork")||jm(w,"tvOS")),w||(w=g.Bk(),w=jm(w,"sdk_google_atv_x86")||jm(w,"Android TV")),w=!w;w&&(BY(),w=mx(rj)===0);if(M=w){switch(J.E0()){case 1:BfC(J,"pv");break;case 2:F.zO(J)}p8("pv")}w=I.toLowerCase();if(M=!M)M=M5(Sw().Dy,"ssmol")&&w==="loaded"?!1:g.te(D5z,w);if(M&&J.vS==0){K8!="i"&&(DS.done=!1);M=u!==void 0?u.opt_nativeTime:void 0;th=M=typeof M==="number"?M:cY();J.NN=!0;var q=Su();J.vS=1;J.x4={};J.x4.start=!1;J.x4.firstquartile= !1;J.x4.midpoint=!1;J.x4.thirdquartile=!1;J.x4.complete=!1;J.x4.resume=!1;J.x4.pause=!1;J.x4.skip=!1;J.x4.mute=!1;J.x4.unmute=!1;J.x4.viewable_impression=!1;J.x4.measurable_impression=!1;J.x4.fully_viewable_audible_half_duration_impression=!1;J.x4.fullscreen=!1;J.x4.exitfullscreen=!1;J.TA=0;q||(J.v9().Y=M);O0(DS,[J],!q)}(M=J.ZU[w])&&a8(J.Cv,M);M5(Sw().Dy,"fmd")||g.te(kim,w)&&J.OT&&J.OT.U(J,null);switch(J.E0()){case 1:var v=xR(w)?F.V.custom_metric_viewable:F.V[w];break;case 2:v=F.Y[w]}if(v&&(I=v.call(F, J,u,I),M5(Sw().Dy,"fmd")&&g.te(kim,w)&&J.OT&&J.OT.U(J,null),I!==void 0)){u=U0(void 0,w);g.Sq(u,I);I=u;break b}I=void 0}J.vS==3&&F.iU(J);F=I}else F=U0("nf",I);else F=void 0;else ef?F=U0("ue"):w?(F=U0(),g.Sq(F,Vhz(w,!0,!1,!1))):F=U0("nf");return typeof F==="string"?b.C():b.C(F)}; oIk=function(F,J){J&&(F.Z=J)}; hA4=function(F){var J={};return J.viewability=F.C,J.googleViewability=F.U,J}; chJ=function(F,J,b){b=b===void 0?{}:b;F=O_Y(VF(f8),J,b,F);return hA4(F)}; EY=function(F){var J=g.Ba.apply(1,arguments).filter(function(I){return I}).join("&"); if(!J)return F;var b=F.match(/[?&]adurl=/);return b?F.slice(0,b.index+1)+J+"&"+F.slice(b.index+1):F+(F.indexOf("?")===-1?"?":"&")+J}; x5Y=function(F){var J=F.url;F=F.zgQ;this.C=J;this.V=F;F=/[?&]dsh=1(&|$)/.test(J);this.D=!F&&/[?&]ae=1(&|$)/.test(J);this.W=!F&&/[?&]ae=2(&|$)/.test(J);if((this.U=/[?&]adurl=([^&]*)/.exec(J))&&this.U[1]){try{var b=decodeURIComponent(this.U[1])}catch(I){b=null}this.T=b}this.Z=(new Date).getTime()-U5a}; nIz=function(F){F=F.V;if(!F)return"";var J="";F.platform&&(J+="&uap="+encodeURIComponent(F.platform));F.platformVersion&&(J+="&uapv="+encodeURIComponent(F.platformVersion));F.uaFullVersion&&(J+="&uafv="+encodeURIComponent(F.uaFullVersion));F.architecture&&(J+="&uaa="+encodeURIComponent(F.architecture));F.model&&(J+="&uam="+encodeURIComponent(F.model));F.bitness&&(J+="&uab="+encodeURIComponent(F.bitness));F.fullVersionList&&(J+="&uafvl="+encodeURIComponent(F.fullVersionList.map(function(b){return encodeURIComponent(b.brand)+ ";"+encodeURIComponent(b.version)}).join("|"))); typeof F.wow64!=="undefined"&&(J+="&uaw="+Number(F.wow64));return J.substring(1)}; Z_G=function(F,J,b,I,u){var w=window,M=b?"//pagead2.googlesyndication.com/bg/"+tQ(b)+".js":"";b=w.document;var q={};J&&(q._scs_=J);q._bgu_=M;q._bgp_=I;q._li_="v_h.3.0.0.0";u&&(q._upb_=u);(J=w.GoogleTyFxhY)&&typeof J.push=="function"||(J=w.GoogleTyFxhY=[]);J.push(q);J=Qj(b).createElement("SCRIPT");J.type="text/javascript";J.async=!0;F=Jx_(twv,tQ(F)+".js");g.k_(J,F);(w=(w.GoogleTyFxhYEET||{})[J.src])?w():b.getElementsByTagName("head")[0].appendChild(J)}; H_z=function(){try{var F,J;return!!((F=window)==null?0:(J=F.top)==null?0:J.location.href)&&!1}catch(b){return!0}}; PQ=function(){var F=Lx4();F=F===void 0?"bevasrsg":F;return new Promise(function(J){var b=window===window.top?window:H_z()?window:window.top,I=b[F],u;((u=I)==null?0:u.bevasrs)?J(new VP(I.bevasrs)):(I||(I={},I=(I.nqfbel=[],I),b[F]=I),I.nqfbel.push(function(w){J(new VP(w))}))})}; F2a=function(F){var J={c:F.Gi,e:F.wG,mc:F.xS,me:F.Ft};F.Oa&&(J.co={c:F.Oa.DT,a:F.Oa.Fz,s:F.Oa.l2});return J}; BQ=function(F){g.R.call(this);this.wpc=F}; VP=function(F){g.R.call(this);var J=this;this.w0=F;this.T="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.C=void 0;this.Al=this.w0.p;this.Z=this.qw.bind(this);this.addOnDisposeCallback(function(){return void JW4(J)})}; bLo=function(F){var J;return g.S(function(b){if(b.C==1){if(!F.w0.wpc)throw new uW(30,"NWA");return F.U?b.return(F.U):g.T(b,F.w0.wpc(),2)}J=b.U;F.U=new BQ(J);return b.return(F.U)})}; JW4=function(F){F.C!==void 0&&(F.T.forEach(function(J){var b;(b=F.C)==null||b.removeEventListener(J,F.Z)}),F.C=void 0)}; wcG=function(F){if(g.d5(g.Zi(F)))return!1;if(F.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var J=new g.a2(F)}catch(b){return g.xL(IGm,function(I){return F.search(I)>0})!=null}return J.W.match(uwv)?!0:g.xL(IGm,function(b){return F.match(b)!=null})!=null}; g.TM=function(F,J){return F.replace(MuG,function(b,I){try{var u=g.P1(J,I);if(u==null||u.toString()==null)return b;u=u.toString();if(u==""||!g.d5(g.Zi(u)))return encodeURIComponent(u).replace(/%2C/g,",")}catch(w){}return b})}; qNa=function(F){var J=AW7.Sg;if(J){var b,I;(I=(b=performance).mark)==null||I.call(b,"signalSetStart__"+F)}b={};return b[Symbol.dispose]=function(){if(J){var u,w;(w=(u=performance).measure)==null||w.call(u,"signalSet__"+F,"signalSetStart__"+F)}},b}; ri=function(F,J){return Object.is(F,J)}; sY=function(F){var J=Sf;Sf=F;return J}; vgm=function(F){if(F.BS!==void 0){var J=YQ;YQ=!0;try{for(var b=g.N(F.BS),I=b.next();!I.done;I=b.next()){var u=I.value;u.Y8||(F=void 0,u.Y8=!0,vgm(u),(F=u.K0)==null||F.call(u,u))}}finally{YQ=J}}}; aGa=function(){var F;return((F=Sf)==null?void 0:F.hn)!==!1}; eY4=function(F){F&&(F.KJ=0);return sY(F)}; K2z=function(F,J){sY(J);if(F&&F.K8!==void 0&&F.TI!==void 0&&F.fU!==void 0){if($Q(F))for(J=F.KJ;J<F.K8.length;J++)C8(F.K8[J],F.TI[J]);for(;F.K8.length>F.KJ;)F.K8.pop(),F.fU.pop(),F.TI.pop()}}; gga=function(F,J,b){pcY(F);if(F.BS.length===0&&F.K8!==void 0)for(var I=0;I<F.K8.length;I++)F.TI[I]=gga(F.K8[I],F,I);F.zZ.push(b);return F.BS.push(J)-1}; C8=function(F,J){pcY(F);if(F.BS.length===1&&F.K8!==void 0)for(var b=0;b<F.K8.length;b++)C8(F.K8[b],F.TI[b]);b=F.BS.length-1;F.BS[J]=F.BS[b];F.zZ[J]=F.zZ[b];F.BS.length--;F.zZ.length--;J<F.BS.length&&(b=F.zZ[J],F=F.BS[J],mB_(F),F.TI[b]=J)}; $Q=function(F){var J,b;return F.zD||((b=F==null?void 0:(J=F.BS)==null?void 0:J.length)!=null?b:0)>0}; mB_=function(F){F.K8!=null||(F.K8=[]);F.TI!=null||(F.TI=[]);F.fU!=null||(F.fU=[])}; pcY=function(F){F.BS!=null||(F.BS=[]);F.zZ!=null||(F.zZ=[])}; iLk=function(F){function J(){if(YQ)throw Error("");if(Sf!==null){var I=Sf.KJ++;mB_(Sf);I<Sf.K8.length&&Sf.K8[I]!==b&&$Q(Sf)&&C8(Sf.K8[I],Sf.TI[I]);Sf.K8[I]!==b&&(Sf.K8[I]=b,Sf.TI[I]=$Q(Sf)?gga(b,Sf,I):0);Sf.fU[I]=b.version}return b.value} var b=Object.create(yWv);b.value=F;J[X0]=b;return J}; Nj3=function(F,J){if(!aGa())throw Error();F.eP(F.value,J)||(F.value=J,F.version++,zYJ++,vgm(F))}; Eg_=function(F,J){function b(){lGm++;return I()} J=J===void 0?"":J;var I=iLk(F);fGo++;var u=I[X0];u.Ra=J!=null?J:"[signal]";b[X0]=u;return[b,function(w){var M={stack:[],error:void 0,hasError:!1};try{if(Je(M,qNa(u.Ra)),W2m++,w&&w[dB7]){var q=w[dB7];if(!aGa())throw Error();Nj3(u,q(u.value))}else Nj3(u,w)}catch(v){M.error=v,M.hasError=!0}finally{bW(M)}}]}; RE=function(F){g.Zr.call(this);var J=this;this.D=this.U=0;this.Xa=F!=null?F:{Ti:function(u,w){return setTimeout(u,w)}, q_:function(u){clearTimeout(u)}}; var b,I;this.C=(I=(b=window.navigator)==null?void 0:b.onLine)!=null?I:!0;this.T=function(){return g.S(function(u){return g.T(u,QP(J),0)})}; window.addEventListener("offline",this.T);window.addEventListener("online",this.T);this.D||this.Va()}; jNz=function(){var F=g.D_;RE.instance||(RE.instance=new RE(F));return RE.instance}; QP=function(F,J){return F.Z?F.Z:F.Z=new Promise(function(b){var I,u,w,M;return g.S(function(q){switch(q.C){case 1:return I=window.AbortController?new window.AbortController:void 0,w=(u=I)==null?void 0:u.signal,M=!1,g.lk(q,2,3),I&&(F.U=F.Xa.Ti(function(){I.abort()},J||2E4)),g.T(q,fetch("/generate_204",{method:"HEAD", signal:w}),5);case 5:M=!0;case 3:g.Em(q);F.Z=void 0;F.U&&(F.Xa.q_(F.U),F.U=0);M!==F.C&&(F.C=M,F.C?F.dispatchEvent("networkstatus-online"):F.dispatchEvent("networkstatus-offline"));b(M);g.jz(q,0);break;case 2:g.dY(q),M=!1,q.gD(3)}})})}; kQ=function(){this.data=[];this.C=-1}; Gvz=function(F){F.C===-1&&(F.C=F.data.reduce(function(J,b,I){return J+(b?Math.pow(2,I):0)},0)); return F.C}; OY=function(F){F.setAttribute("role","link")}; hy=function(F,J){Array.isArray(J)&&(J=J.join(" "));J===""||J==void 0?(oE||(J={},oE=(J.atomic=!1,J.autocomplete="none",J.dropeffect="none",J.haspopup=!1,J.live="off",J.multiline=!1,J.multiselectable=!1,J.orientation="vertical",J.readonly=!1,J.relevant="additions text",J.required=!1,J.sort="none",J.busy=!1,J.disabled=!1,J.hidden=!1,J.invalid="false",J)),J=oE,"label"in J?F.setAttribute("aria-label",J.label):F.removeAttribute("aria-label")):F.setAttribute("aria-label",J)}; cQ=function(F){F=F.getAttribute("aria-label");return F==null||F==void 0?"":String(F)}; g.n8=function(F,J,b){g.R.call(this);this.C=null;this.Z=!1;this.W=F;this.D=b;this.U=J||window;this.T=(0,g.tJ)(this.zE,this)}; Vu_=function(F){F=F.U;return F.requestAnimationFrame||F.webkitRequestAnimationFrame||F.mozRequestAnimationFrame||F.oRequestAnimationFrame||F.msRequestAnimationFrame||null}; PuG=function(F){F=F.U;return F.cancelAnimationFrame||F.cancelRequestAnimationFrame||F.webkitCancelRequestAnimationFrame||F.mozCancelRequestAnimationFrame||F.oCancelRequestAnimationFrame||F.msCancelRequestAnimationFrame||null}; g.ty=function(F,J,b){g.R.call(this);this.C=F;this.gg=J||0;this.U=b;this.T=(0,g.tJ)(this.S_,this)}; g.Z_=function(F,J){F.isActive()||F.start(J)}; g.HQ=function(F){F.stop();F.S_()}; g.L8=function(F){F.isActive()&&g.HQ(F)}; g.F4=function(F,J){this.C=F[g.Qz.Symbol.iterator]();this.U=J}; Bjz=function(F){return typeof F.className=="string"?F.className:F.getAttribute&&F.getAttribute("class")||""}; Jn=function(F){return F.classList?F.classList:Bjz(F).match(/\S+/g)||[]}; g.bG=function(F,J){typeof F.className=="string"?F.className=J:F.setAttribute&&F.setAttribute("class",J)}; g.I3=function(F,J){return F.classList?F.classList.contains(J):g.te(Jn(F),J)}; g.uG=function(F,J){if(F.classList)F.classList.add(J);else if(!g.I3(F,J)){var b=Bjz(F);g.bG(F,b+(b.length>0?" "+J:J))}}; g.wD=function(F,J){if(F.classList)Array.prototype.forEach.call(J,function(u){g.uG(F,u)}); else{var b={};Array.prototype.forEach.call(Jn(F),function(u){b[u]=!0}); Array.prototype.forEach.call(J,function(u){b[u]=!0}); J="";for(var I in b)J+=J.length>0?" "+I:I;g.bG(F,J)}}; g.Mr=function(F,J){F.classList?F.classList.remove(J):g.I3(F,J)&&g.bG(F,Array.prototype.filter.call(Jn(F),function(b){return b!=J}).join(" "))}; g.An=function(F,J){F.classList?Array.prototype.forEach.call(J,function(b){g.Mr(F,b)}):g.bG(F,Array.prototype.filter.call(Jn(F),function(b){return!g.te(J,b)}).join(" "))}; g.qr=function(F,J,b){b?g.uG(F,J):g.Mr(F,J)}; TjG=function(F,J){var b=!g.I3(F,J);g.qr(F,J,b)}; g.vV=function(){g.Zr.call(this);this.C=0;this.endTime=this.startTime=null}; rWo=function(F,J){Array.isArray(J)||(J=[J]);J=J.map(function(b){return typeof b==="string"?b:b.property+" "+b.duration+"s "+b.timing+" "+b.delay+"s"}); g.aN(F,"transition",J.join(","))}; a3=function(F,J,b,I,u){g.vV.call(this);this.U=F;this.D=J;this.W=b;this.Z=I;this.V=Array.isArray(u)?u:[u]}; SNk=function(F,J,b,I){return new a3(F,J,{opacity:b},{opacity:I},{property:"opacity",duration:J,timing:"ease-in",delay:0})}; YNa=function(F){F=GV(F);if(F=="")return null;var J=String(F.slice(0,4)).toLowerCase();if(("url("<J?-1:"url("==J?0:1)==0)return!F.endsWith(")")||(F?F.split("(").length-1:0)>1||F&&F.split(")"),null;if(F.indexOf("(")>0){if(/"|'/.test(F))return null;J=/([\-\w]+)\(/g;for(var b;b=J.exec(F);)if(!(b[1].toLowerCase()in sNa))return null}return F}; eM=function(F,J){F=g.Qz[F];return F&&F.prototype?(J=Object.getOwnPropertyDescriptor(F.prototype,J))&&J.get||null:null}; $BJ=function(F){var J=g.Qz.CSSStyleDeclaration;return J&&J.prototype&&J.prototype[F]||null}; Cum=function(F,J,b,I){if(F)return F.apply(J,I);if(g.K6&&document.documentMode<10){if(!J[b].call)throw Error("IE Clobbering detected");}else if(typeof J[b]!="function")throw Error("Clobbering detected");return J[b].apply(J,I)}; kvv=function(F){if(!F)return"";var J=document.createElement("div").style;Xcv(F).forEach(function(b){var I=g.xM&&b in QNG?b:b.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Wk(I,"--")||Wk(I,"var")||(b=Cum(RYm,F,F.getPropertyValue?"getPropertyValue":"getAttribute",[b])||"",b=YNa(b),b!=null&&Cum(DB4,J,J.setProperty?"setProperty":"setAttribute",[I,b]))}); return J.cssText||""}; Xcv=function(F){g.ca(F)?F=g.JL(F):(F=g.dl(F),g.Hk(F,"cssText"));return F}; g.gD=function(F){var J,b=J=0,I=!1;F=F.split(OL3);for(var u=0;u<F.length;u++){var w=F[u];g.p6.test(w)?(J++,b++):ogC.test(w)?I=!0:hYa.test(w)?b++:cWz.test(w)&&(I=!0)}J=b==0?I?1:0:J/b>.4?-1:1;return(J==0?null:J)==-1?"rtl":"ltr"}; g.z8=function(F){if(F instanceof m5||F instanceof yN||F instanceof iG)return F;if(typeof F.next=="function")return new m5(function(){return F}); if(typeof F[Symbol.iterator]=="function")return new m5(function(){return F[Symbol.iterator]()}); if(typeof F.WF=="function")return new m5(function(){return F.WF()}); throw Error("Not an iterator or iterable.");}; m5=function(F){this.U=F}; yN=function(F){this.U=F}; iG=function(F){m5.call(this,function(){return F}); this.T=F}; Nr=function(F,J,b,I,u,w,M,q){this.C=F;this.V=J;this.T=b;this.D=I;this.Z=u;this.W=w;this.U=M;this.Y=q}; lG=function(F,J){if(J==0)return F.C;if(J==1)return F.U;var b=v1(F.C,F.T,J),I=v1(F.T,F.Z,J);F=v1(F.Z,F.U,J);b=v1(b,I,J);I=v1(I,F,J);return v1(b,I,J)}; UB_=function(F,J){var b=(J-F.C)/(F.U-F.C);if(b<=0)return 0;if(b>=1)return 1;for(var I=0,u=1,w=0,M=0;M<8;M++){w=lG(F,b);var q=(lG(F,b+1E-6)-w)/1E-6;if(Math.abs(w-J)<1E-6)return b;if(Math.abs(q)<1E-6)break;else w<J?I=b:u=b,b-=(w-J)/q}for(M=0;Math.abs(w-J)>1E-6&&M<8;M++)w<J?(I=b,b=(b+u)/2):(u=b,b=(b+I)/2),w=lG(F,b);return b}; f6=function(F,J){this.start=F<J?F:J;this.end=F<J?J:F}; WV=function(F){return(F=F.exec(g.Bk()))?F[1]:""}; dD=function(F){return g.Pk(xB7,F)>=0}; g.EJ=function(F){g.R.call(this);this.W=1;this.T=[];this.Z=0;this.C=[];this.U={};this.V=!!F}; ng7=function(F,J,b){g.qf(function(){F.apply(J,b)})}; g.jM=function(F){this.C=F}; G8=function(F){this.C=F}; tua=function(F){this.data=F}; ZLY=function(F){return F===void 0||F instanceof tua?F:new tua(F)}; VN=function(F){this.C=F}; g.HLm=function(F){var J=F.creation;F=F.expiration;return!!F&&F<g.L3()||!!J&&J>g.L3()}; g.PV=function(F){this.C=F}; L2v=function(){}; BV=function(){}; T8=function(F){this.C=F;this.U=null}; rD=function(F){if(F.C==null)throw Error("Storage mechanism: Storage unavailable");var J;((J=F.U)!=null?J:F.isAvailable())||N8(Error("Storage mechanism: Storage unavailable"))}; SM=function(){var F=null;try{F=g.Qz.localStorage||null}catch(J){}T8.call(this,F)}; Fav=function(){var F=null;try{F=g.Qz.sessionStorage||null}catch(J){}T8.call(this,F)}; sJ=function(F,J){this.U=F;this.C=J+"::"}; g.Yd=function(F){var J=new SM;return J.isAvailable()?F?new sJ(J,F):J:null}; $d=function(F,J){this.C=F;this.U=J}; C6=function(F){this.C=[];if(F)a:{if(F instanceof C6){var J=F.b7();F=F.td();if(this.C.length<=0){for(var b=this.C,I=0;I<J.length;I++)b.push(new $d(J[I],F[I]));break a}}else J=g.dl(F),F=g.W1(F);for(b=0;b<J.length;b++)this.wB(J[b],F[b])}}; X4=function(){C6.apply(this,arguments)}; QN=function(){}; JSY=function(F){var J,b,I=F.length,u=0;for(J=0;J<I;J++){var w=F.charCodeAt(J);if((w&64512)===55296&&J+1<I){var M=F.charCodeAt(J+1);(M&64512)===56320&&(w=65536+(w-55296<<10)+(M-56320),J++)}u+=w<128?1:w<2048?2:w<65536?3:4}var q=new R3.R4(u);for(J=b=0;b<u;J++)w=F.charCodeAt(J),(w&64512)===55296&&J+1<I&&(M=F.charCodeAt(J+1),(M&64512)===56320&&(w=65536+(w-55296<<10)+(M-56320),J++)),w<128?q[b++]=w:(w<2048?q[b++]=192|w>>>6:(w<65536?q[b++]=224|w>>>12:(q[b++]=240|w>>>18,q[b++]=128|w>>>12&63),q[b++]=128|w>>> 6&63),q[b++]=128|w&63);return q}; DC=function(F){for(var J=F.length;--J>=0;)F[J]=0}; kd=function(F,J,b,I,u){this.l$=F;this.cK=J;this.m2=b;this.lc=I;this.AJz=u;this.Mn=F&&F.length}; OJ=function(F,J){this.Nu=F;this.W_=0;this.RX=J}; o3=function(F,J){F.hw[F.pending++]=J&255;F.hw[F.pending++]=J>>>8&255}; hn=function(F,J,b){F.Jh>16-b?(F.KF|=J<<F.Jh&65535,o3(F,F.KF),F.KF=J>>16-F.Jh,F.Jh+=b-16):(F.KF|=J<<F.Jh&65535,F.Jh+=b)}; cV=function(F,J,b){hn(F,b[J*2],b[J*2+1])}; bqz=function(F,J){var b=0;do b|=F&1,F>>>=1,b<<=1;while(--J>0);return b>>>1}; ISC=function(F,J,b){var I=Array(16),u=0,w;for(w=1;w<=15;w++)I[w]=u=u+b[w-1]<<1;for(b=0;b<=J;b++)u=F[b*2+1],u!==0&&(F[b*2]=bqz(I[u]++,u))}; uLC=function(F){var J;for(J=0;J<286;J++)F.dZ[J*2]=0;for(J=0;J<30;J++)F.Ku[J*2]=0;for(J=0;J<19;J++)F.sJ[J*2]=0;F.dZ[512]=1;F.V$=F.dc=0;F.jS=F.matches=0}; w2C=function(F){F.Jh>8?o3(F,F.KF):F.Jh>0&&(F.hw[F.pending++]=F.KF);F.KF=0;F.Jh=0}; M73=function(F,J,b){w2C(F);o3(F,b);o3(F,~b);R3.t2(F.hw,F.window,J,b,F.pending);F.pending+=b}; ASk=function(F,J,b,I){var u=J*2,w=b*2;return F[u]<F[w]||F[u]===F[w]&&I[J]<=I[b]}; UJ=function(F,J,b){for(var I=F.oP[b],u=b<<1;u<=F.X1;){u<F.X1&&ASk(J,F.oP[u+1],F.oP[u],F.depth)&&u++;if(ASk(J,I,F.oP[u],F.depth))break;F.oP[b]=F.oP[u];b=u;u<<=1}F.oP[b]=I}; q0_=function(F,J,b){var I=0;if(F.jS!==0){do{var u=F.hw[F.YN+I*2]<<8|F.hw[F.YN+I*2+1];var w=F.hw[F.Rr+I];I++;if(u===0)cV(F,w,J);else{var M=xd[w];cV(F,M+256+1,J);var q=n6[M];q!==0&&(w-=tn[M],hn(F,w,q));u--;M=u<256?ZC[u]:ZC[256+(u>>>7)];cV(F,M,b);q=HV[M];q!==0&&(u-=L6[M],hn(F,u,q))}}while(I<F.jS)}cV(F,256,J)}; F$=function(F,J){var b=J.Nu,I=J.RX.l$,u=J.RX.Mn,w=J.RX.lc,M,q=-1;F.X1=0;F.Vf=573;for(M=0;M<w;M++)b[M*2]!==0?(F.oP[++F.X1]=q=M,F.depth[M]=0):b[M*2+1]=0;for(;F.X1<2;){var v=F.oP[++F.X1]=q<2?++q:0;b[v*2]=1;F.depth[v]=0;F.V$--;u&&(F.dc-=I[v*2+1])}J.W_=q;for(M=F.X1>>1;M>=1;M--)UJ(F,b,M);v=w;do M=F.oP[1],F.oP[1]=F.oP[F.X1--],UJ(F,b,1),I=F.oP[1],F.oP[--F.Vf]=M,F.oP[--F.Vf]=I,b[v*2]=b[M*2]+b[I*2],F.depth[v]=(F.depth[M]>=F.depth[I]?F.depth[M]:F.depth[I])+1,b[M*2+1]=b[I*2+1]=v,F.oP[1]=v++,UJ(F,b,1);while(F.X1>= 2);F.oP[--F.Vf]=F.oP[1];M=J.Nu;v=J.W_;I=J.RX.l$;u=J.RX.Mn;w=J.RX.cK;var a=J.RX.m2,e=J.RX.AJz,K,p=0;for(K=0;K<=15;K++)F.ov[K]=0;M[F.oP[F.Vf]*2+1]=0;for(J=F.Vf+1;J<573;J++){var m=F.oP[J];K=M[M[m*2+1]*2+1]+1;K>e&&(K=e,p++);M[m*2+1]=K;if(!(m>v)){F.ov[K]++;var y=0;m>=a&&(y=w[m-a]);var f=M[m*2];F.V$+=f*(K+y);u&&(F.dc+=f*(I[m*2+1]+y))}}if(p!==0){do{for(K=e-1;F.ov[K]===0;)K--;F.ov[K]--;F.ov[K+1]+=2;F.ov[e]--;p-=2}while(p>0);for(K=e;K!==0;K--)for(m=F.ov[K];m!==0;)I=F.oP[--J],I>v||(M[I*2+1]!==K&&(F.V$+=(K- M[I*2+1])*M[I*2],M[I*2+1]=K),m--)}ISC(b,q,F.ov)}; vRm=function(F,J,b){var I,u=-1,w=J[1],M=0,q=7,v=4;w===0&&(q=138,v=3);J[(b+1)*2+1]=65535;for(I=0;I<=b;I++){var a=w;w=J[(I+1)*2+1];++M<q&&a===w||(M<v?F.sJ[a*2]+=M:a!==0?(a!==u&&F.sJ[a*2]++,F.sJ[32]++):M<=10?F.sJ[34]++:F.sJ[36]++,M=0,u=a,w===0?(q=138,v=3):a===w?(q=6,v=3):(q=7,v=4))}}; aSv=function(F,J,b){var I,u=-1,w=J[1],M=0,q=7,v=4;w===0&&(q=138,v=3);for(I=0;I<=b;I++){var a=w;w=J[(I+1)*2+1];if(!(++M<q&&a===w)){if(M<v){do cV(F,a,F.sJ);while(--M!==0)}else a!==0?(a!==u&&(cV(F,a,F.sJ),M--),cV(F,16,F.sJ),hn(F,M-3,2)):M<=10?(cV(F,17,F.sJ),hn(F,M-3,3)):(cV(F,18,F.sJ),hn(F,M-11,7));M=0;u=a;w===0?(q=138,v=3):a===w?(q=6,v=3):(q=7,v=4)}}}; e8m=function(F){var J=4093624447,b;for(b=0;b<=31;b++,J>>>=1)if(J&1&&F.dZ[b*2]!==0)return 0;if(F.dZ[18]!==0||F.dZ[20]!==0||F.dZ[26]!==0)return 1;for(b=32;b<256;b++)if(F.dZ[b*2]!==0)return 1;return 0}; JE=function(F,J,b){F.hw[F.YN+F.jS*2]=J>>>8&255;F.hw[F.YN+F.jS*2+1]=J&255;F.hw[F.Rr+F.jS]=b&255;F.jS++;J===0?F.dZ[b*2]++:(F.matches++,J--,F.dZ[(xd[b]+256+1)*2]++,F.Ku[(J<256?ZC[J]:ZC[256+(J>>>7)])*2]++);return F.jS===F.Hq-1}; Ip=function(F,J){F.msg=bJ[J];return J}; uJ=function(F){for(var J=F.length;--J>=0;)F[J]=0}; wF=function(F){var J=F.state,b=J.pending;b>F.eZ&&(b=F.eZ);b!==0&&(R3.t2(F.output,J.hw,J.Oe,b,F.MK),F.MK+=b,J.Oe+=b,F.CS+=b,F.eZ-=b,J.pending-=b,J.pending===0&&(J.Oe=0))}; qj=function(F,J){var b=F.dX>=0?F.dX:-1,I=F.Wb-F.dX,u=0;if(F.level>0){F.a8.wU===2&&(F.a8.wU=e8m(F));F$(F,F.nG);F$(F,F.q2);vRm(F,F.dZ,F.nG.W_);vRm(F,F.Ku,F.q2.W_);F$(F,F.uj);for(u=18;u>=3&&F.sJ[KaC[u]*2+1]===0;u--);F.V$+=3*(u+1)+5+5+4;var w=F.V$+3+7>>>3;var M=F.dc+3+7>>>3;M<=w&&(w=M)}else w=M=I+5;if(I+4<=w&&b!==-1)hn(F,J?1:0,3),M73(F,b,I);else if(F.strategy===4||M===w)hn(F,2+(J?1:0),3),q0_(F,Mj,AE);else{hn(F,4+(J?1:0),3);b=F.nG.W_+1;I=F.q2.W_+1;u+=1;hn(F,b-257,5);hn(F,I-1,5);hn(F,u-4,4);for(w=0;w<u;w++)hn(F, F.sJ[KaC[w]*2+1],3);aSv(F,F.dZ,b-1);aSv(F,F.Ku,I-1);q0_(F,F.dZ,F.Ku)}uLC(F);J&&w2C(F);F.dX=F.Wb;wF(F.a8)}; vT=function(F,J){F.hw[F.pending++]=J}; ap=function(F,J){F.hw[F.pending++]=J>>>8&255;F.hw[F.pending++]=J&255}; p2z=function(F,J){var b=F.x9,I=F.Wb,u=F.LD,w=F.eU,M=F.Wb>F.QM-262?F.Wb-(F.QM-262):0,q=F.window,v=F.Su,a=F.U1,e=F.Wb+258,K=q[I+u-1],p=q[I+u];F.LD>=F.C6&&(b>>=2);w>F.nk&&(w=F.nk);do{var m=J;if(q[m+u]===p&&q[m+u-1]===K&&q[m]===q[I]&&q[++m]===q[I+1]){I+=2;for(m++;q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&I<e;);m=258-(e-I);I=e-258;if(m>u){F.kG=J;u=m;if(m>=w)break;K=q[I+u-1];p=q[I+u]}}}while((J=a[J&v])>M&&--b!== 0);return u<=F.nk?u:F.nk}; pX=function(F){var J=F.QM,b;do{var I=F.tH-F.nk-F.Wb;if(F.Wb>=J+(J-262)){R3.t2(F.window,F.window,J,J,0);F.kG-=J;F.Wb-=J;F.dX-=J;var u=b=F.E3;do{var w=F.head[--u];F.head[u]=w>=J?w-J:0}while(--b);u=b=J;do w=F.U1[--u],F.U1[u]=w>=J?w-J:0;while(--b);I+=J}if(F.a8.zi===0)break;u=F.a8;b=F.window;w=F.Wb+F.nk;var M=u.zi;M>I&&(M=I);M===0?b=0:(u.zi-=M,R3.t2(b,u.input,u.a7,M,w),u.state.wrap===1?u.d9=e4(u.d9,b,M,w):u.state.wrap===2&&(u.d9=KX(u.d9,b,M,w)),u.a7+=M,u.CO+=M,b=M);F.nk+=b;if(F.nk+F.wB>=3)for(I=F.Wb-F.wB, F.I8=F.window[I],F.I8=(F.I8<<F.Z_^F.window[I+1])&F.e2;F.wB&&!(F.I8=(F.I8<<F.Z_^F.window[I+3-1])&F.e2,F.U1[I&F.Su]=F.head[F.I8],F.head[F.I8]=I,I++,F.wB--,F.nk+F.wB<3););}while(F.nk<262&&F.a8.zi!==0)}; gF=function(F,J){for(var b;;){if(F.nk<262){pX(F);if(F.nk<262&&J===0)return 1;if(F.nk===0)break}b=0;F.nk>=3&&(F.I8=(F.I8<<F.Z_^F.window[F.Wb+3-1])&F.e2,b=F.U1[F.Wb&F.Su]=F.head[F.I8],F.head[F.I8]=F.Wb);b!==0&&F.Wb-b<=F.QM-262&&(F.Ae=p2z(F,b));if(F.Ae>=3)if(b=JE(F,F.Wb-F.kG,F.Ae-3),F.nk-=F.Ae,F.Ae<=F.dH&&F.nk>=3){F.Ae--;do F.Wb++,F.I8=(F.I8<<F.Z_^F.window[F.Wb+3-1])&F.e2,F.U1[F.Wb&F.Su]=F.head[F.I8],F.head[F.I8]=F.Wb;while(--F.Ae!==0);F.Wb++}else F.Wb+=F.Ae,F.Ae=0,F.I8=F.window[F.Wb],F.I8=(F.I8<<F.Z_^ F.window[F.Wb+1])&F.e2;else b=JE(F,0,F.window[F.Wb]),F.nk--,F.Wb++;if(b&&(qj(F,!1),F.a8.eZ===0))return 1}F.wB=F.Wb<2?F.Wb:2;return J===4?(qj(F,!0),F.a8.eZ===0?3:4):F.jS&&(qj(F,!1),F.a8.eZ===0)?1:2}; mM=function(F,J){for(var b,I;;){if(F.nk<262){pX(F);if(F.nk<262&&J===0)return 1;if(F.nk===0)break}b=0;F.nk>=3&&(F.I8=(F.I8<<F.Z_^F.window[F.Wb+3-1])&F.e2,b=F.U1[F.Wb&F.Su]=F.head[F.I8],F.head[F.I8]=F.Wb);F.LD=F.Ae;F.qd=F.kG;F.Ae=2;b!==0&&F.LD<F.dH&&F.Wb-b<=F.QM-262&&(F.Ae=p2z(F,b),F.Ae<=5&&(F.strategy===1||F.Ae===3&&F.Wb-F.kG>4096)&&(F.Ae=2));if(F.LD>=3&&F.Ae<=F.LD){I=F.Wb+F.nk-3;b=JE(F,F.Wb-1-F.qd,F.LD-3);F.nk-=F.LD-1;F.LD-=2;do++F.Wb<=I&&(F.I8=(F.I8<<F.Z_^F.window[F.Wb+3-1])&F.e2,F.U1[F.Wb&F.Su]= F.head[F.I8],F.head[F.I8]=F.Wb);while(--F.LD!==0);F.Be=0;F.Ae=2;F.Wb++;if(b&&(qj(F,!1),F.a8.eZ===0))return 1}else if(F.Be){if((b=JE(F,0,F.window[F.Wb-1]))&&qj(F,!1),F.Wb++,F.nk--,F.a8.eZ===0)return 1}else F.Be=1,F.Wb++,F.nk--}F.Be&&(JE(F,0,F.window[F.Wb-1]),F.Be=0);F.wB=F.Wb<2?F.Wb:2;return J===4?(qj(F,!0),F.a8.eZ===0?3:4):F.jS&&(qj(F,!1),F.a8.eZ===0)?1:2}; gR_=function(F,J){for(var b,I,u,w=F.window;;){if(F.nk<=258){pX(F);if(F.nk<=258&&J===0)return 1;if(F.nk===0)break}F.Ae=0;if(F.nk>=3&&F.Wb>0&&(I=F.Wb-1,b=w[I],b===w[++I]&&b===w[++I]&&b===w[++I])){for(u=F.Wb+258;b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&I<u;);F.Ae=258-(u-I);F.Ae>F.nk&&(F.Ae=F.nk)}F.Ae>=3?(b=JE(F,1,F.Ae-3),F.nk-=F.Ae,F.Wb+=F.Ae,F.Ae=0):(b=JE(F,0,F.window[F.Wb]),F.nk--,F.Wb++);if(b&&(qj(F,!1),F.a8.eZ===0))return 1}F.wB=0;return J=== 4?(qj(F,!0),F.a8.eZ===0?3:4):F.jS&&(qj(F,!1),F.a8.eZ===0)?1:2}; mNY=function(F,J){for(var b;;){if(F.nk===0&&(pX(F),F.nk===0)){if(J===0)return 1;break}F.Ae=0;b=JE(F,0,F.window[F.Wb]);F.nk--;F.Wb++;if(b&&(qj(F,!1),F.a8.eZ===0))return 1}F.wB=0;return J===4?(qj(F,!0),F.a8.eZ===0?3:4):F.jS&&(qj(F,!1),F.a8.eZ===0)?1:2}; y9=function(F,J,b,I,u){this.nR=F;this.WO_=J;this.z8Q=b;this.gmQ=I;this.func=u}; yS7=function(){this.a8=null;this.status=0;this.hw=null;this.wrap=this.pending=this.Oe=this.NQ=0;this.q0=null;this.Na=0;this.method=8;this.wC=-1;this.Su=this.QS=this.QM=0;this.window=null;this.tH=0;this.head=this.U1=null;this.eU=this.C6=this.strategy=this.level=this.dH=this.x9=this.LD=this.nk=this.kG=this.Wb=this.Be=this.qd=this.Ae=this.dX=this.Z_=this.e2=this.tv=this.E3=this.I8=0;this.dZ=new R3.hg(1146);this.Ku=new R3.hg(122);this.sJ=new R3.hg(78);uJ(this.dZ);uJ(this.Ku);uJ(this.sJ);this.uj=this.q2= this.nG=null;this.ov=new R3.hg(16);this.oP=new R3.hg(573);uJ(this.oP);this.Vf=this.X1=0;this.depth=new R3.hg(573);uJ(this.depth);this.Jh=this.KF=this.wB=this.matches=this.dc=this.V$=this.YN=this.jS=this.Hq=this.Rr=0}; iq3=function(F,J){if(!F||!F.state||J>5||J<0)return F?Ip(F,-2):-2;var b=F.state;if(!F.output||!F.input&&F.zi!==0||b.status===666&&J!==4)return Ip(F,F.eZ===0?-5:-2);b.a8=F;var I=b.wC;b.wC=J;if(b.status===42)if(b.wrap===2)F.d9=0,vT(b,31),vT(b,139),vT(b,8),b.q0?(vT(b,(b.q0.text?1:0)+(b.q0.sG?2:0)+(b.q0.extra?4:0)+(b.q0.name?8:0)+(b.q0.comment?16:0)),vT(b,b.q0.time&255),vT(b,b.q0.time>>8&255),vT(b,b.q0.time>>16&255),vT(b,b.q0.time>>24&255),vT(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),vT(b,b.q0.os& 255),b.q0.extra&&b.q0.extra.length&&(vT(b,b.q0.extra.length&255),vT(b,b.q0.extra.length>>8&255)),b.q0.sG&&(F.d9=KX(F.d9,b.hw,b.pending,0)),b.Na=0,b.status=69):(vT(b,0),vT(b,0),vT(b,0),vT(b,0),vT(b,0),vT(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),vT(b,3),b.status=113);else{var u=8+(b.QS-8<<4)<<8;u|=(b.strategy>=2||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6;b.Wb!==0&&(u|=32);b.status=113;ap(b,u+(31-u%31));b.Wb!==0&&(ap(b,F.d9>>>16),ap(b,F.d9&65535));F.d9=1}if(b.status===69)if(b.q0.extra){for(u= b.pending;b.Na<(b.q0.extra.length&65535)&&(b.pending!==b.NQ||(b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u)),wF(F),u=b.pending,b.pending!==b.NQ));)vT(b,b.q0.extra[b.Na]&255),b.Na++;b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u));b.Na===b.q0.extra.length&&(b.Na=0,b.status=73)}else b.status=73;if(b.status===73)if(b.q0.name){u=b.pending;do{if(b.pending===b.NQ&&(b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u)),wF(F),u=b.pending,b.pending===b.NQ)){var w=1;break}w=b.Na<b.q0.name.length? b.q0.name.charCodeAt(b.Na++)&255:0;vT(b,w)}while(w!==0);b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u));w===0&&(b.Na=0,b.status=91)}else b.status=91;if(b.status===91)if(b.q0.comment){u=b.pending;do{if(b.pending===b.NQ&&(b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u)),wF(F),u=b.pending,b.pending===b.NQ)){w=1;break}w=b.Na<b.q0.comment.length?b.q0.comment.charCodeAt(b.Na++)&255:0;vT(b,w)}while(w!==0);b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u));w===0&&(b.status=103)}else b.status= 103;b.status===103&&(b.q0.sG?(b.pending+2>b.NQ&&wF(F),b.pending+2<=b.NQ&&(vT(b,F.d9&255),vT(b,F.d9>>8&255),F.d9=0,b.status=113)):b.status=113);if(b.pending!==0){if(wF(F),F.eZ===0)return b.wC=-1,0}else if(F.zi===0&&(J<<1)-(J>4?9:0)<=(I<<1)-(I>4?9:0)&&J!==4)return Ip(F,-5);if(b.status===666&&F.zi!==0)return Ip(F,-5);if(F.zi!==0||b.nk!==0||J!==0&&b.status!==666){I=b.strategy===2?mNY(b,J):b.strategy===3?gR_(b,J):iJ[b.level].func(b,J);if(I===3||I===4)b.status=666;if(I===1||I===3)return F.eZ===0&&(b.wC= -1),0;if(I===2&&(J===1?(hn(b,2,3),cV(b,256,Mj),b.Jh===16?(o3(b,b.KF),b.KF=0,b.Jh=0):b.Jh>=8&&(b.hw[b.pending++]=b.KF&255,b.KF>>=8,b.Jh-=8)):J!==5&&(hn(b,0,3),M73(b,0,0),J===3&&(uJ(b.head),b.nk===0&&(b.Wb=0,b.dX=0,b.wB=0))),wF(F),F.eZ===0))return b.wC=-1,0}if(J!==4)return 0;if(b.wrap<=0)return 1;b.wrap===2?(vT(b,F.d9&255),vT(b,F.d9>>8&255),vT(b,F.d9>>16&255),vT(b,F.d9>>24&255),vT(b,F.CO&255),vT(b,F.CO>>8&255),vT(b,F.CO>>16&255),vT(b,F.CO>>24&255)):(ap(b,F.d9>>>16),ap(b,F.d9&65535));wF(F);b.wrap>0&& (b.wrap=-b.wrap);return b.pending!==0?0:1}; zT=function(F){if(!(this instanceof zT))return new zT(F);F=this.options=R3.assign({level:-1,method:8,chunkSize:16384,HE:15,f7R:8,strategy:0,qP:""},F||{});F.raw&&F.HE>0?F.HE=-F.HE:F.aY&&F.HE>0&&F.HE<16&&(F.HE+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.a8=new z8C;this.a8.eZ=0;var J=this.a8;var b=F.level,I=F.method,u=F.HE,w=F.f7R,M=F.strategy;if(J){var q=1;b===-1&&(b=6);u<0?(q=0,u=-u):u>15&&(q=2,u-=16);if(w<1||w>9||I!==8||u<8||u>15||b<0||b>9||M<0||M>4)J=Ip(J,-2);else{u===8&&(u=9); var v=new yS7;J.state=v;v.a8=J;v.wrap=q;v.q0=null;v.QS=u;v.QM=1<<v.QS;v.Su=v.QM-1;v.tv=w+7;v.E3=1<<v.tv;v.e2=v.E3-1;v.Z_=~~((v.tv+3-1)/3);v.window=new R3.R4(v.QM*2);v.head=new R3.hg(v.E3);v.U1=new R3.hg(v.QM);v.Hq=1<<w+6;v.NQ=v.Hq*4;v.hw=new R3.R4(v.NQ);v.YN=1*v.Hq;v.Rr=3*v.Hq;v.level=b;v.strategy=M;v.method=I;if(J&&J.state){J.CO=J.CS=0;J.wU=2;b=J.state;b.pending=0;b.Oe=0;b.wrap<0&&(b.wrap=-b.wrap);b.status=b.wrap?42:113;J.d9=b.wrap===2?0:1;b.wC=0;if(!N2o){I=Array(16);for(w=M=0;w<28;w++)for(tn[w]= M,u=0;u<1<<n6[w];u++)xd[M++]=w;xd[M-1]=w;for(w=M=0;w<16;w++)for(L6[w]=M,u=0;u<1<<HV[w];u++)ZC[M++]=w;for(M>>=7;w<30;w++)for(L6[w]=M<<7,u=0;u<1<<HV[w]-7;u++)ZC[256+M++]=w;for(u=0;u<=15;u++)I[u]=0;for(u=0;u<=143;)Mj[u*2+1]=8,u++,I[8]++;for(;u<=255;)Mj[u*2+1]=9,u++,I[9]++;for(;u<=279;)Mj[u*2+1]=7,u++,I[7]++;for(;u<=287;)Mj[u*2+1]=8,u++,I[8]++;ISC(Mj,287,I);for(u=0;u<30;u++)AE[u*2+1]=5,AE[u*2]=bqz(u,5);lSJ=new kd(Mj,n6,257,286,15);fSa=new kd(AE,HV,0,30,15);Wam=new kd([],dN7,0,19,7);N2o=!0}b.nG=new OJ(b.dZ, lSJ);b.q2=new OJ(b.Ku,fSa);b.uj=new OJ(b.sJ,Wam);b.KF=0;b.Jh=0;uLC(b);b=0}else b=Ip(J,-2);b===0&&(J=J.state,J.tH=2*J.QM,uJ(J.head),J.dH=iJ[J.level].WO_,J.C6=iJ[J.level].nR,J.eU=iJ[J.level].z8Q,J.x9=iJ[J.level].gmQ,J.Wb=0,J.dX=0,J.nk=0,J.wB=0,J.Ae=J.LD=2,J.Be=0,J.I8=0);J=b}}else J=-2;if(J!==0)throw Error(bJ[J]);F.header&&(J=this.a8)&&J.state&&J.state.wrap===2&&(J.state.q0=F.header);if(F.jz){var a;typeof F.jz==="string"?a=JSY(F.jz):ERo.call(F.jz)==="[object ArrayBuffer]"?a=new Uint8Array(F.jz):a=F.jz; F=this.a8;w=a;M=w.length;if(F&&F.state)if(a=F.state,J=a.wrap,J===2||J===1&&a.status!==42||a.nk)J=-2;else{J===1&&(F.d9=e4(F.d9,w,M,0));a.wrap=0;M>=a.QM&&(J===0&&(uJ(a.head),a.Wb=0,a.dX=0,a.wB=0),b=new R3.R4(a.QM),R3.t2(b,w,M-a.QM,a.QM,0),w=b,M=a.QM);b=F.zi;I=F.a7;u=F.input;F.zi=M;F.a7=0;F.input=w;for(pX(a);a.nk>=3;){w=a.Wb;M=a.nk-2;do a.I8=(a.I8<<a.Z_^a.window[w+3-1])&a.e2,a.U1[w&a.Su]=a.head[a.I8],a.head[a.I8]=w,w++;while(--M);a.Wb=w;a.nk=2;pX(a)}a.Wb+=a.nk;a.dX=a.Wb;a.wB=a.nk;a.nk=0;a.Ae=a.LD=2; a.Be=0;F.a7=I;F.input=u;F.zi=b;a.wrap=J;J=0}else J=-2;if(J!==0)throw Error(bJ[J]);this.ezQ=!0}}; j8C=function(F,J){J=J||{};J.aY=!0;J=new zT(J);J.push(F,!0);if(J.err)throw J.msg||bJ[J.err];return J.result}; GZk=function(){var F=g.Ba.apply(0,arguments);return F.length===0?function(J){return J}:F.length===1?F[0]:F.reduce(function(J,b){return function(){return J(b.apply(null,g.W(g.Ba.apply(0,arguments))))}})}; V7o=function(){var F=g.Ba.apply(0,arguments);return function(J){return function(b,I){function u(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} b=J(b,I);var w={getState:b.getState,dispatch:function(M){return u.apply(null,[M].concat(g.W(g.Ba.apply(1,arguments))))}}; I=F.map(function(M){return M(w)}); u=GZk.apply(null,g.W(I))(b.dispatch);return Object.assign({},b,{dispatch:u})}}}; Nj=function(){return Math.random().toString(36).substring(7).split("").join(".")}; PR_=function(F){Object.keys(F).forEach(function(J){var b=F[J];if(typeof b(void 0,{type:lJ})==="undefined")throw Error('The slice reducer for key "'+J+"\" 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 b(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Nj()})==="undefined")throw Error('The slice reducer for key "'+ J+"\" returned undefined when probed with a random type. Don't try to handle '"+(lJ+'\' 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.'));})}; B2z=function(F,J,b){function I(){if(e)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 q} function u(m){if(typeof m!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof m+"'");if(e)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 y=!0;a===v&&(a=v.slice());a.push(m);return function(){if(y){if(e)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."); y=!1;a===v&&(a=v.slice());a.splice(a.indexOf(m),1);v=null}}} function w(m){if(typeof m!=="object"||m===null)var y=!1;else{for(y=m;Object.getPrototypeOf(y)!==null;)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(m)===y}if(!y)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof m+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); if(typeof m.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(e)throw Error("Reducers may not dispatch actions.");try{e=!0,q=M(q,m)}finally{e=!1}y=v=a;for(var f=0;f<y.length;f++)(0,y[f])();return m} if(typeof J==="function"&&typeof b==="function"||typeof b==="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 J==="function"&&typeof b==="undefined"&&(b=J,J=void 0);if(typeof b!=="undefined"){if(typeof b!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+ typeof b+"'");return b(B2z)(F,J)}if(typeof F!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof F+"'");var M=F,q=J,v=[],a=v,e=!1;w({type:lJ});var K={},p=(K.dispatch=w,K.subscribe=u,K.getState=I,K.replaceReducer=function(m){if(typeof m!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof m);M=m;w({type:T2Y});return p},K[rS7]=function(){var m={}; return m.subscribe=function(y){function f(){y.next&&y.next(I())} if(typeof y!=="object"||y===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof y+"'");f();return{unsubscribe:u(f)}},m[rS7]=function(){return this},m},K); return p}; S0m=function(F){return F?(F=F.privateDoNotAccessOrElseSafeScriptWrappedValue)?Epv(F):null:null}; fX=function(F){return F?(F=F.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?EQ(F):null:null}; Y0z=function(F){F=s8Y(F);return Y_(F)}; g.WT=function(F){F=s8Y(F);return EQ(F)}; s8Y=function(F){return F===null?"null":F===void 0?"undefined":F}; dF=function(F){this.Z7=S2(F)}; CRJ=function(F){var J=F.split(F.slice(0,0)),b=[1073761743,function(I,u){u.push(I)}, 1477917565,function(I,u,w,M,q){return u(w,M,q)}, -1933097603,816244906,1056497259,-1919440574,-780421738,"])\u2223,,",function(){for(var I=64,u=[];++I-u.length-32;)switch(I){case 58:I=96;continue;case 91:I=44;break;case 65:I=47;continue;case 46:I=153;case 123:I-=58;default:u.push(String.fromCharCode(I))}return u}, 2138988549,-1033565004,function(){for(var I=64,u=[];++I-u.length-32;)switch(I){case 46:I=95;default:u.push(String.fromCharCode(I));case 94:case 95:case 96:break;case 123:I-=76;case 92:case 93:continue;case 58:I=44;case 91:}return u}, -1236918302,1372016920,1291622852,443437517,-1706230407,1054148219,-1979487560,"forEach",831725064,1020984388,358810139,1520166286,function(I,u){for(u=(u%I.length+I.length)%I.length;u--;)I.unshift(I.pop())}, "])\u2223,,",-79331423,-49500281,27907620,function(I,u){I.splice(I.length,0,u)}, null,-843456226,-1122200183,-1919440574,function(I,u,w,M,q,v,a,e){return u(w,M,q,v,a,e)}, function(I,u){u=(u%I.length+I.length)%I.length;I.splice(-u).reverse().forEach(function(w){I.unshift(w)})}, 2135191023,245788176,9627114,490694128,1869825148,function(){for(var I=64,u=[];++I-u.length-32;){switch(I){case 58:I-=14;case 91:case 92:case 93:continue;case 123:I=47;case 94:case 95:case 96:continue;case 46:I=95}u.push(String.fromCharCode(I))}return u}, 337777891,function(I){I.reverse()}, null,321906873,-742079433,663380672,447845489,-2089579009,null,2073963012,1318781749,-2024251244,J,132458665,J,-1001419415,-1412818009,-2131969223,2127613687,-1356306375,-1607364149,488038925,-1251574709,J,164834740,-1365805391,function(I,u){I=(I%u.length+u.length)%u.length;u.splice(I,1)}, 1239946861,1557332230,1035124686,function(I,u){if(I.length!=0){u=(u%I.length+I.length)%I.length;var w=I[0];I[0]=I[u];I[u]=w}}, function(I,u){I.length!=0&&(u=(u%I.length+I.length)%I.length,I.splice(0,1,I.splice(u,1,I[0])[0]))}, function(I,u,w,M,q,v){return u(M,q,v)}, 1869825148,-1367617889,"break",function(){for(var I=64,u=[];++I-u.length-32;){switch(I){case 91:I=44;continue;case 123:I=65;break;case 65:I-=18;continue;case 58:I=96;continue;case 46:I=95}u.push(String.fromCharCode(I))}return u}, 471050434,"break",555553840,-606424016,1968417490,function(I,u,w){var M=I.length;w.forEach(function(q,v,a){this.push(a[v]=I[(I.indexOf(q)-I.indexOf(this[v])+v+M--)%I.length])},u.split(""))}, -1346309655,function(I){for(var u=I.length;u;)I.push(I.splice(--u,1)[0])}]; b[32]=b;b[46]=b;b[52]=b;if(typeof $Nz==="undefined")return F;try{try{b[73]<-5&&((0,b[74])(b[67],b[20]),1)||(0,b[74])(b[56],b[0]),b[47]>8&&((0,b[3])((0,b[3])((0,b[3])((0,b[75])(b[56],b[73]),b[88],b[52]),b[51],b[30],b[40]),b[13],b[42],b[1]),10)||(0,b[52])((0,b[85])((0,b[18])(b[63],b[30]),b[20],b[30]),b[85],(0,b[20])(b[32]),b[18],b[60],b[30]),b[34]!==0&&(b[33]<=5&&((0,b[20])(b[36]),[])||(0,b[86])((0,b[80])(),b[21],b[56]))}catch(I){(((0,b[86])((0,b[10])(),b[21],b[67]),b[70])(b[29],b[58]),b[86])((0,b[80])(), b[21],b[58])}try{b[30]>=-10&&((0,b[45])(b[56]),b[37])(b[56],b[12])>(0,b[45])(b[46]),(b[40]===10||(((0,b[14])(b[30],b[58]),b[85])((0,b[85])((0,b[13])(b[42],b[26]),b[18],b[50],b[30]),b[14],b[42],b[80]),0))&&(0,b[52])(((0,b[51])(b[32],b[86]),b[18])(b[35],b[30]),b[85],(0,b[14])(b[56],b[81]),b[18],b[new Date("1969-12-31T20:01:09.000-04:00")/1E3],b[42])}catch(I){((0,b[13])(b[30],b[0]),b[18])(b[22],b[21])}try{b[29]<-8&&(b[17]>=-1?(0,b[12])(((0,b[2])((0,b[75])(),b[6],b[30]),(0,b[20])(b[30])),b[14],(0,b[85])((0,b[51])(b[21], b[65]),b[87],b[6],b[36]),b[30],b[27]):(0,b[85])(((0,b[20])(b[42])^(0,b[2])((0,b[8])(),b[67],b[30])&(0,b[2])((0,b[8])(),b[67],b[30]))*(0,b[18])(b[55],b[32]),b[2],(0,b[8])(),b[67],b[32]))}catch(I){(0,b[18])(b[23],b[32])}try{b[80]!==7?(0,b[85])((0,b[13])(b[30],b[49]),b[62],b[32],b[34]):((0,b[18])(b[28],b[36]),b[18])(b[25],b[21]),b[81]===-9?(((0,b[85])((0,b[62])(b[36],b[64]),b[2],(0,b[78])(),b[9],b[30]),b[43])(b[21]),b[2])((0,b[45])(),b[67],b[30]):(((0,b[85])((0,b[13])(b[42],b[44]),b[13],b[32],b[39]), b[14])(b[21],b[66]),b[14])(b[21],b[74]),b[71]!==6&&(b[28]>5||((((0,b[51])(b[36],b[4]),(0,b[77])(b[55]),b[85])(b[66],b[67]),((((0,b[48])(b[66],b[63]),b[36])((0,b[22])(),b[11],b[64]),b[48])(b[0],b[17]),b[85])(b[76],b[27]),b[77])(b[62],b[21]),0))&&(0,b[32])(((0,b[63])(b[41]),(0,b[38])(b[51],b[56]),(0,b[22])((0,b[65])(),b[87],b[50]),b[32])((0,b[22])((0,b[28])(),b[87],b[52]),b[38],(0,b[63])(b[52]),b[88],b[41]),b[33],(0,b[22])((0,b[5])(),b[87],b[52]),b[26],b[1])}catch(I){((0,b[22])((0,b[65])(),b[29],b[52]), b[71])(b[52],b[68]),(0,b[40])(b[52])}try{b[80]<9&&((0,b[33])(b[26],b[67]),1)||(0,b[38])(b[23],b[52]),b[84]>-5&&(0,b[33])(b[62],b[27]),b[61]!=-4&&(b[47]!=3||(((0,b[32])((0,b[22])((0,b[5])(),b[19],b[52]),b[22],(0,b[36])((0,b[82])(b[26],b[61]),b[38],b[7],b[52]),(0,b[5])(),b[new Date("1969-12-31T20:16:27.000-03:45")/1E3],b[41]),b[38])(b[25],b[52]),void 0))&&(((0,b[71])(b[56],b[74]),b[69])(b[13],b[1]),(0,b[76])(b[67],b[7]),(0,b[15])((0,b[50])(b[5],b[18]),b[62],b[55],b[60])),b[89]<=-5&&(b[28]>=-7?((0,b[67])(b[29], b[81]),(0,b[67])(b[66],b[79])):(0,b[65])((0,b[62])(b[9],b[44]),b[28],b[85],b[86]))}catch(I){(0,b[79])((0,b[62])(),b[53],b[7]),(((0,b[90])(b[16],b[87]),b[4])(b[10],b[18]),b[4])(b[69],b[7])}}catch(I){return"jfVyr8x8AOQqp0B1eL-_w8_"+F}return J.join("")}; X2Y=function(F){return F,"long"[2+!!F]}; g.Ek=function(F){this.name=F}; Q8k=function(F){this.Z7=S2(F)}; j4=function(F){this.Z7=S2(F)}; GT=function(F){this.Z7=S2(F)}; R8G=function(F){this.Z7=S2(F)}; V9=function(F){this.Z7=S2(F)}; PT=function(F){this.Z7=S2(F)}; BT=function(F){this.Z7=S2(F)}; TT=function(F){this.Z7=S2(F)}; rF=function(F){this.Z7=S2(F)}; S4=function(F){this.Z7=S2(F)}; sk=function(F){this.Z7=S2(F)}; YD=function(F){this.Z7=S2(F)}; $D=function(F){this.Z7=S2(F)}; Q9=function(F){this.Z7=S2(F)}; Rp=function(F){this.Z7=S2(F)}; Dk=function(F){this.Z7=S2(F,500)}; kD=function(F){this.Z7=S2(F)}; Ok=function(F){this.Z7=S2(F)}; DNa=function(F){this.Z7=S2(F)}; kZz=function(){return g.kC("yt.ads.biscotti.lastId_")||""}; Oqk=function(F){g.RG("yt.ads.biscotti.lastId_",F)}; hE=function(){var F=arguments,J=op;F.length>1?J[F[0]]=F[1]:F.length===1&&Object.assign(J,F[0])}; g.cT=function(F,J){return F in op?op[F]:J}; Uk=function(F){var J=op.EXPERIMENT_FLAGS;return J?J[F]:void 0}; oR3=function(F){xD.forEach(function(J){return J(F)})}; g.tE=function(F){return F&&window.yterr?function(){try{return F.apply(this,arguments)}catch(J){g.nX(J)}}:F}; g.nX=function(F){var J=g.kC("yt.logging.errors.log");J?J(F,"ERROR",void 0,void 0,void 0,void 0,void 0):(J=g.cT("ERRORS",[]),J.push([F,"ERROR",void 0,void 0,void 0,void 0,void 0]),hE("ERRORS",J));oR3(F)}; Zk=function(F,J,b,I,u){var w=g.kC("yt.logging.errors.log");w?w(F,"WARNING",J,b,I,void 0,u):(w=g.cT("ERRORS",[]),w.push([F,"WARNING",J,b,I,void 0,u]),hE("ERRORS",w))}; HT=function(F,J){J=F.split(J);for(var b={},I=0,u=J.length;I<u;I++){var w=J[I].split("=");if(w.length===1&&w[0]||w.length===2)try{var M=h8v(w[0]||""),q=h8v(w[1]||"");if(M in b){var v=b[M];Array.isArray(v)?g.bV(v,q):b[M]=[v,q]}else b[M]=q}catch(p){var a=p,e=w[0],K=String(HT);a.args=[{key:e,value:w[1],query:F,method:cSC===K?"unchanged":K}];UN7.hasOwnProperty(e)||Zk(a)}}return b}; LX=function(F){var J=[];g.ie(F,function(b,I){var u=g.x_(I);g.gy(Array.isArray(b)?b:[b],function(w){w==""?J.push(u):J.push(u+"="+g.x_(w))})}); return J.join("&")}; FF=function(F){F.charAt(0)==="?"&&(F=F.substring(1));return HT(F,"&")}; JR=function(F){return F.split(",").map(function(J){return FF(J)})}; g.bi=function(F){return F.indexOf("?")!==-1?(F=(F||"").split("#")[0],F=F.split("?",2),FF(F.length>1?F[1]:F[0])):{}}; IR=function(F,J){return xN3(F,J||{},!0)}; ui=function(F,J){return xN3(F,J||{},!1)}; xN3=function(F,J,b){var I=F.split("#",2);F=I[0];I=I.length>1?"#"+I[1]:"";var u=F.split("?",2);F=u[0];u=FF(u[1]||"");for(var w in J)if(b||!g.Ea(u,w))u[w]=J[w];return g.Os(F,u)+I}; w$=function(F){if(!J)var J=window.location.href;var b=g.$V(1,F),I=g.Cu(F);b&&I?(F=F.match(YV),J=J.match(YV),F=F[3]==J[3]&&F[1]==J[1]&&F[4]==J[4]):F=I?g.Cu(J)===I&&(Number(g.$V(4,J))||null)===(Number(g.$V(4,F))||null):!0;return F}; Mk=function(F){F||(F=document.location.href);F=g.$V(1,F);return F!==null&&F==="https"}; AR=function(F){F=nR3(F);return F===null?!1:F[0]==="com"&&F[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; t7o=function(F){F=nR3(F);return F===null?!1:F[1]==="google"?!0:F[2]==="google"?F[0]==="au"&&F[1]==="com"?!0:F[0]==="uk"&&F[1]==="co"?!0:!1:!1}; nR3=function(F){F=g.Cu(F);return F!==null?F.split(".").reverse():null}; h8v=function(F){return F&&F.match(Zqo)?F:n5(F)}; aR=function(F){var J=qk;F=F===void 0?kZz():F;var b=Object,I=b.assign,u=vx(J);var w=J.C;try{var M=w.screenX;var q=w.screenY}catch(G){}try{var v=w.outerWidth;var a=w.outerHeight}catch(G){}try{var e=w.innerWidth;var K=w.innerHeight}catch(G){}try{var p=w.screenLeft;var m=w.screenTop}catch(G){}try{e=w.innerWidth,K=w.innerHeight}catch(G){}try{var y=w.screen.availWidth;var f=w.screen.availTop}catch(G){}w=[p,m,M,q,y,f,v,a,e,K];M=i27(!1,J.C.top);q={};var d=d===void 0?g.Qz:d;v=new kQ;"SVGElement"in d&&"createElementNS"in d.document&&v.set(0);a=Tb4();a["allow-top-navigation-by-user-activation"]&&v.set(1);a["allow-popups-to-escape-sandbox"]&&v.set(2);d.crypto&&d.crypto.subtle&&v.set(3);"TextDecoder"in d&&"TextEncoder"in d&&v.set(4);d=Gvz(v);J=(q.bc=d,q.bih=M.height,q.biw=M.width,q.brdim=w.join(),q.vis=mx(J.U),q.wgl=!!K_.WebGLRenderingContext,q);b=I.call(b,u,J);b.ca_type="image";F&&(b.bid=F);return b}; vx=function(F){var J={};J.dt=Hq7;J.flash="0";a:{try{var b=F.C.top.location.href}catch(e){F=2;break a}F=b?b===F.U.location.href?0:1:2}J=(J.frm=F,J);try{J.u_tz=-(new Date).getTimezoneOffset();var I=I===void 0?K_:I;try{var u=I.history.length}catch(e){u=0}J.u_his=u;var w;J.u_h=(w=K_.screen)==null?void 0:w.height;var M;J.u_w=(M=K_.screen)==null?void 0:M.width;var q;J.u_ah=(q=K_.screen)==null?void 0:q.availHeight;var v;J.u_aw=(v=K_.screen)==null?void 0:v.availWidth;var a;J.u_cd=(a=K_.screen)==null?void 0: a.colorDepth}catch(e){}return J}; FUz=function(){if(!Lak)return null;var F=Lak();return"open"in F?F:null}; g.Kl=function(F){switch(eN(F)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; eN=function(F){return F&&"status"in F?F.status:-1}; g.pl=function(F,J){typeof F==="function"&&(F=g.tE(F));return window.setTimeout(F,J)}; g.g$=function(F,J){typeof F==="function"&&(F=g.tE(F));return window.setInterval(F,J)}; g.m1=function(F){window.clearTimeout(F)}; g.ii=function(F){window.clearInterval(F)}; g.Nk=function(F){F=zk(F);return typeof F==="string"&&F==="false"?!1:!!F}; g.li=function(F,J){F=zk(F);return F===void 0&&J!==void 0?J:Number(F||0)}; fl=function(){return g.cT("EXPERIMENTS_TOKEN","")}; zk=function(F){return g.cT("EXPERIMENT_FLAGS",{})[F]}; Wx=function(){for(var F=[],J=g.cT("EXPERIMENTS_FORCED_FLAGS",{}),b=g.N(Object.keys(J)),I=b.next();!I.done;I=b.next())I=I.value,F.push({key:I,value:String(J[I])});b=g.cT("EXPERIMENT_FLAGS",{});I=g.N(Object.keys(b));for(var u=I.next();!u.done;u=I.next())u=u.value,u.startsWith("force_")&&J[u]===void 0&&F.push({key:u,value:String(b[u])});return F}; d$=function(F,J,b,I,u,w,M,q){function v(){(a&&"readyState"in a?a.readyState:0)===4&&J&&g.tE(J)(a)} b=b===void 0?"GET":b;I=I===void 0?"":I;q=q===void 0?!1:q;var a=FUz();if(!a)return null;"onloadend"in a?a.addEventListener("loadend",v,!1):a.onreadystatechange=v;g.Nk("debug_forward_web_query_parameters")&&(F=Jy4(F,window.location.search));a.open(b,F,!0);w&&(a.responseType=w);M&&(a.withCredentials=!0);b=b==="POST"&&(window.FormData===void 0||!(I instanceof FormData));if(u=b8_(F,u))for(var e in u)a.setRequestHeader(e,u[e]),"content-type"===e.toLowerCase()&&(b=!1);b&&a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(q&&"setAttributionReporting"in XMLHttpRequest.prototype){F={eventSourceEligible:!0,triggerEligible:!1};try{a.setAttributionReporting(F)}catch(K){Zk(K)}}a.send(I);return a}; b8_=function(F,J){J=J===void 0?{}:J;var b=w$(F),I=g.cT("INNERTUBE_CLIENT_NAME"),u=g.Nk("web_ajax_ignore_global_headers_if_set"),w;for(w in I_m){var M=g.cT(I_m[w]),q=w==="X-Goog-AuthUser"||w==="X-Goog-PageId";w!=="X-Goog-Visitor-Id"||M||(M=g.cT("VISITOR_DATA"));var v;if(!(v=!M)){if(!(v=b||(g.Cu(F)?!1:!0))){v=F;var a;if(a=g.Nk("add_auth_headers_to_remarketing_google_dot_com_ping")&&w==="Authorization"&&(I==="TVHTML5"||I==="TVHTML5_UNPLUGGED"||I==="TVHTML5_SIMPLY")&&t7o(v))v=Tq(g.$V(5,v))||"",v=v.split("/"), v="/"+(v.length>1?v[1]:""),a=v==="/pagead";v=a?!0:!1}v=!v}v||u&&J[w]!==void 0||I==="TVHTML5_UNPLUGGED"&&q||(J[w]=M)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];if(b||!g.Cu(F))J["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(b||!g.Cu(F)){try{var e=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(K){}e&&(J["X-YouTube-Time-Zone"]=e)}document.location.hostname.endsWith("youtubeeducation.com")||!b&&g.Cu(F)||(J["X-YouTube-Ad-Signals"]= LX(aR()));return J}; wQY=function(F,J){var b=g.Cu(F);g.Nk("debug_handle_relative_url_for_query_forward_killswitch")||!b&&w$(F)&&(b=document.location.hostname);var I=Tq(g.$V(5,F));I=(b=b&&(b.endsWith("youtube.com")||b.endsWith("youtube-nocookie.com")))&&I&&I.startsWith("/api/");if(!b||I)return F;var u=FF(J),w={};g.gy(u03,function(M){u[M]&&(w[M]=u[M])}); return ui(F,w)}; jN=function(F,J){J.method="POST";J.postParams||(J.postParams={});return g.E6(F,J)}; qYo=function(F,J){if(window.fetch&&J.format!=="XML"){var b={method:J.method||"GET",credentials:"same-origin"};J.headers&&(b.headers=J.headers);J.priority&&(b.priority=J.priority);F=Mf4(F,J);var I=Aya(F,J);I&&(b.body=I);J.withCredentials&&(b.credentials="include");var u=J.context||g.Qz,w=!1,M;fetch(F,b).then(function(q){if(!w){w=!0;M&&g.m1(M);var v=q.ok,a=function(e){e=e||{};v?J.onSuccess&&J.onSuccess.call(u,e,q):J.onError&&J.onError.call(u,e,q);J.onFinish&&J.onFinish.call(u,e,q)}; (J.format||"JSON")==="JSON"&&(v||q.status>=400&&q.status<500)?q.json().then(a,function(){a(null)}):a(null)}}).catch(function(){J.onError&&J.onError.call(u,{},{})}); F=J.timeout||0;J.onFetchTimeout&&F>0&&(M=g.pl(function(){w||(w=!0,g.m1(M),J.onFetchTimeout.call(J.context||g.Qz))},F))}else g.E6(F,J)}; g.E6=function(F,J){var b=J.format||"JSON";F=Mf4(F,J);var I=Aya(F,J),u=!1,w=vQG(F,function(v){if(!u){u=!0;q&&g.m1(q);var a=g.Kl(v),e=null,K=400<=v.status&&v.status<500,p=500<=v.status&&v.status<600;if(a||K||p)e=a_z(F,b,v,J.convertToSafeHtml);a&&(a=ebY(b,v,e));e=e||{};K=J.context||g.Qz;a?J.onSuccess&&J.onSuccess.call(K,v,e):J.onError&&J.onError.call(K,v,e);J.onFinish&&J.onFinish.call(K,v,e)}},J.method,I,J.headers,J.responseType,J.withCredentials); I=J.timeout||0;if(J.onTimeout&&I>0){var M=J.onTimeout;var q=g.pl(function(){u||(u=!0,w.abort(),g.m1(q),M.call(J.context||g.Qz,w))},I)}return w}; Mf4=function(F,J){J.includeDomain&&(F=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+F);var b=g.cT("XSRF_FIELD_NAME");if(J=J.urlParams)J[b]&&delete J[b],F=IR(F,J);return F}; Aya=function(F,J){var b=g.cT("XSRF_FIELD_NAME"),I=g.cT("XSRF_TOKEN"),u=J.postBody||"",w=J.postParams,M=g.cT("XSRF_FIELD_NAME"),q;J.headers&&(q=J.headers["Content-Type"]);J.excludeXsrf||g.Cu(F)&&!J.withCredentials&&g.Cu(F)!==document.location.hostname||J.method!=="POST"||q&&q!=="application/x-www-form-urlencoded"||J.postParams&&J.postParams[M]||(w||(w={}),w[b]=I);(g.Nk("ajax_parse_query_data_only_when_filled")&&w&&Object.keys(w).length>0||w)&&typeof u==="string"&&(u=FF(u),g.Sq(u,w),u=J.postBodyFormat&& J.postBodyFormat==="JSON"?JSON.stringify(u):g.kV(u));w=u||w&&!g.Vj(w);!KUG&&w&&J.method!=="POST"&&(KUG=!0,g.nX(Error("AJAX request with postData should use POST")));return u}; a_z=function(F,J,b,I){var u=null;switch(J){case "JSON":try{var w=b.responseText}catch(M){throw I=Error("Error reading responseText"),I.params=F,Zk(I),M;}F=b.getResponseHeader("Content-Type")||"";w&&F.indexOf("json")>=0&&(w.substring(0,5)===")]}'\n"&&(w=w.substring(5)),u=JSON.parse(w));break;case "XML":if(F=(F=b.responseXML)?pQz(F):null)u={},g.gy(F.getElementsByTagName("*"),function(M){u[M.tagName]=gQm(M)})}I&&mwY(u); return u}; mwY=function(F){if(g.Um(F))for(var J in F)J==="html_content"||D4J(J,"_html")?F[J]=Y_(F[J]):mwY(F[J])}; ebY=function(F,J,b){if(J&&J.status===204)return!0;switch(F){case "JSON":return!!b;case "XML":return Number(b&&b.return_code)===0;case "RAW":return!0;default:return!!b}}; pQz=function(F){return F?(F=("responseXML"in F?F.responseXML:F).getElementsByTagName("root"))&&F.length>0?F[0]:null:null}; gQm=function(F){var J="";g.gy(F.childNodes,function(b){J+=b.nodeValue}); return J}; Vt=function(F,J){var b=g.To(J),I;return(new g.gb(function(u,w){b.onSuccess=function(M){g.Kl(M)?u(new yyk(M)):w(new Gk("Request failed, status="+eN(M),"net.badstatus",M))}; b.onError=function(M){w(new Gk("Unknown request error","net.unknown",M))}; b.onTimeout=function(M){w(new Gk("Request timed out","net.timeout",M))}; I=g.E6(F,b)})).rX(function(u){if(u instanceof l5){var w; (w=I)==null||w.abort()}return i5(u)})}; g.Px=function(F,J,b,I){function u(q,v,a){return q.rX(function(e){if(v<=0||eN(e.xhr)===403)return i5(new Gk("Request retried too many times","net.retryexhausted",e.xhr,e));e=Math.pow(2,b-v+1)*a;var K=M>0?Math.min(M,e):e;return w(a).then(function(){return u(Vt(F,J),v-1,K)})})} function w(q){return new g.gb(function(v){setTimeout(v,q)})} var M=M===void 0?-1:M;return u(Vt(F,J),b-1,I)}; Gk=function(F,J,b){iW.call(this,F+", errorCode="+J);this.errorCode=J;this.xhr=b;this.name="PromiseAjaxError"}; yyk=function(F){this.xhr=F}; Bx=function(F){this.C=F===void 0?null:F;this.T=0;this.U=null}; Tk=function(F){var J=new Bx;F=F===void 0?null:F;J.T=2;J.U=F===void 0?null:F;return J}; r$=function(F){var J=new Bx;F=F===void 0?null:F;J.T=1;J.U=F===void 0?null:F;return J}; g.Y6=function(F,J,b,I,u){SN||s6.set(""+F,J,{xD:b,path:"/",domain:I===void 0?"youtube.com":I,secure:u===void 0?!1:u})}; g.$6=function(F,J){if(!SN)return s6.get(""+F,J)}; g.Cl=function(F,J,b){SN||s6.remove(""+F,J===void 0?"/":J,b===void 0?"youtube.com":b)}; i8z=function(){if(g.Nk("embeds_web_enable_cookie_detection_fix")){if(!g.Qz.navigator.cookieEnabled)return!1}else if(!s6.isEnabled())return!1;if(!s6.isEmpty())return!0;g.Nk("embeds_web_enable_cookie_detection_fix")?s6.set("TESTCOOKIESENABLED","1",{xD:60,dkW:"none",secure:!0}):s6.set("TESTCOOKIESENABLED","1",{xD:60});if(s6.get("TESTCOOKIESENABLED")!=="1")return!1;s6.remove("TESTCOOKIESENABLED");return!0}; g.O=function(F,J){if(F)return F[J.name]}; XF=function(F){var J=g.cT("INNERTUBE_HOST_OVERRIDE");J&&(F=String(J)+String(XQ(F)));return F}; zbY=function(F){var J={};g.Nk("json_condensed_response")&&(J.prettyPrint="false");return F=ui(F,J)}; Qt=function(F,J){var b=b===void 0?{}:b;F={method:J===void 0?"POST":J,mode:w$(F)?"same-origin":"cors",credentials:w$(F)?"same-origin":"include"};J={};for(var I=g.N(Object.keys(b)),u=I.next();!u.done;u=I.next())u=u.value,b[u]&&(J[u]=b[u]);Object.keys(J).length>0&&(F.headers=J);return F}; RR=function(){var F=/Chrome\/(\d+)/.exec(g.Bk());return F?parseFloat(F[1]):NaN}; k6=function(){return g.D$("android")&&g.D$("chrome")&&!(g.D$("trident/")||g.D$("edge/"))&&!g.D$("cobalt")}; Nio=function(){return g.D$("armv7")||g.D$("aarch64")||g.D$("android")}; g.O6=function(){return g.D$("cobalt")}; oR=function(){return g.D$("cobalt")&&g.D$("appletv")}; hR=function(){return g.D$("(ps3; leanback shell)")||g.D$("ps3")&&g.O6()}; l_a=function(){return g.D$("(ps4; leanback shell)")||g.D$("ps4")&&g.O6()}; g.f_k=function(){return g.O6()&&(g.D$("ps4 vr")||g.D$("ps4 pro vr"))}; cx=function(){var F=/WebKit\/([0-9]+)/.exec(g.Bk());return!!(F&&parseInt(F[1],10)>=600)}; U6=function(){var F=/WebKit\/([0-9]+)/.exec(g.Bk());return!!(F&&parseInt(F[1],10)>=602)}; WUa=function(){return g.D$("iemobile")||g.D$("windows phone")&&g.D$("edge")}; tR=function(){return(x6||nl)&&g.D$("applewebkit")&&!g.D$("version")&&(!g.D$("safari")||g.D$("gsa/"))}; Hx=function(){return g.Z$&&g.D$("version/")}; Ll=function(){return g.D$("smart-tv")&&g.D$("samsung")}; g.D$=function(F){var J=g.Bk();return J?J.toLowerCase().indexOf(F)>=0:!1}; Ft=function(){return RWY()||tR()||Hx()?!0:g.cT("EOM_VISITOR_DATA")?!1:!0}; JC=function(F,J){return J===void 0||J===null?F:J==="1"||J===!0||J===1||J==="True"?!0:!1}; b8=function(F,J,b){for(var I in b)if(b[I]==J)return b[I];return F}; Ig=function(F,J){return J===void 0||J===null?F:Number(J)}; u8=function(F,J){return J===void 0||J===null?F:J.toString()}; wm=function(F,J){if(J){if(F==="fullwidth")return Infinity;if(F==="fullheight")return 0}return F&&(J=F.match(dw3))&&(F=Number(J[2]),J=Number(J[1]),!isNaN(F)&&!isNaN(J)&&F>0)?J/F:NaN}; M1=function(F){var J=F.docid||F.video_id||F.videoId||F.id;if(J)return J;J=F.raw_player_response;J||(F=F.player_response)&&(J=JSON.parse(F));return J&&J.videoDetails&&J.videoDetails.videoId||null}; EQv=function(F){return AC(F,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.q1=function(F){return F==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||F==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; AC=function(F,J){J=(J===void 0?0:J)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(J="EMBEDDED_PLAYER_MODE_PFL");var b=F.raw_embedded_player_response;if(!b&&(F=F.embedded_player_response))try{b=JSON.parse(F)}catch(I){return J}return b?b8(J,b.embeddedPlayerMode,jE3):J}; ag=function(F){iW.call(this,F.message||F.description||F.name);this.isMissing=F instanceof vK;this.isTimeout=F instanceof Gk&&F.errorCode=="net.timeout";this.isCanceled=F instanceof l5}; vK=function(){iW.call(this,"Biscotti ID is missing from server")}; GM3=function(){if(g.Nk("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Ft())return Error("User has not consented - not fetching biscotti id.");var F=g.cT("PLAYER_VARS",{});if(g.P1(F,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(EQv(F))return Error("Biscotti id fetching has been disabled for pfl.")}; TiC=function(){var F=GM3();if(F!==void 0)return i5(F);e9||(e9=Vt("//googleads.g.doubleclick.net/pagead/id",VfJ).then(Po7).rX(function(J){return BiY(2,J)})); return e9}; Po7=function(F){F=F.xhr.responseText;if(!Wk(F,")]}'"))throw new vK;F=JSON.parse(F.substr(4));if((F.type||1)>1)throw new vK;F=F.id;Oqk(F);e9=r$(F);ryG(18E5,2);return F}; BiY=function(F,J){J=new ag(J);Oqk("");e9=Tk(J);F>0&&ryG(12E4,F-1);throw J;}; ryG=function(F,J){g.pl(function(){Vt("//googleads.g.doubleclick.net/pagead/id",VfJ).then(Po7,function(b){return BiY(J,b)}).rX(g.ac)},F)}; SYm=function(){try{var F=g.kC("yt.ads.biscotti.getId_");return F?F():TiC()}catch(J){return i5(J)}}; YYY=function(F){F&&(F.dataset?F.dataset[sEa()]="true":Gaz(F))}; $wz=function(F){return F?F.dataset?F.dataset[sEa()]:F.getAttribute("data-loaded"):null}; sEa=function(){return CoJ.loaded||(CoJ.loaded="loaded".replace(/\-([a-z])/g,function(F,J){return J.toUpperCase()}))}; XQk=function(){var F=document;if("visibilityState"in F)return F.visibilityState;var J=Kw+"VisibilityState";if(J in F)return F[J]}; pw=function(F,J){var b;Bc(F,function(I){b=J[I];return!!b}); return b}; gm=function(F){if(F.requestFullscreen)F=F.requestFullscreen(void 0);else if(F.webkitRequestFullscreen)F=F.webkitRequestFullscreen();else if(F.mozRequestFullScreen)F=F.mozRequestFullScreen();else if(F.msRequestFullscreen)F=F.msRequestFullscreen();else if(F.webkitEnterFullscreen)F=F.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return F instanceof Promise?F:Promise.resolve()}; i8=function(F){var J;g.mu()?ye()==F&&(J=document):J=F;return J&&(F=pw(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],J))?(J=F.call(J),J instanceof Promise?J:Promise.resolve()):Promise.resolve()}; QEm=function(F){return g.xL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(J){return"on"+J.toLowerCase()in F})}; Rbk=function(){var F=document;return g.xL(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(J){return"on"+J.toLowerCase()in F})}; g.mu=function(){return!!pw(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; ye=function(F){F=F===void 0?!1:F;var J=pw(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(F)for(;J&&J.shadowRoot;)J=J.shadowRoot.fullscreenElement;return J?J:null}; zD=function(F){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(F=F||window.event){this.event=F;for(var J in F)J in Dwz||(this[J]=F[J]);this.scale=F.scale;this.rotation=F.rotation;var b=F.target||F.srcElement;b&&b.nodeType==3&&(b=b.parentNode);this.target=b;var I=F.relatedTarget; if(I)try{I=I.nodeName?I:null}catch(u){I=null}else this.type=="mouseover"?I=F.fromElement:this.type=="mouseout"&&(I=F.toElement);this.relatedTarget=I;this.clientX=F.clientX!=void 0?F.clientX:F.pageX;this.clientY=F.clientY!=void 0?F.clientY:F.pageY;this.keyCode=F.keyCode?F.keyCode:F.which;this.charCode=F.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=F.altKey;this.ctrlKey=F.ctrlKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.C=F.pageX;this.U=F.pageY}}catch(u){}}; kMv=function(F){if(document.body&&document.documentElement){var J=document.body.scrollTop+document.documentElement.scrollTop;F.C=F.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);F.U=F.clientY+J}}; O8v=function(F,J,b,I){I=I===void 0?{}:I;F.addEventListener&&(J!="mouseenter"||"onmouseenter"in document?J!="mouseleave"||"onmouseenter"in document?J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"):J="mouseout":J="mouseover");return Go(N1,function(u){var w=typeof u[4]==="boolean"&&u[4]==!!I,M=g.Um(u[4])&&g.Um(I)&&g.B1(u[4],I);return!!u.length&&u[0]==F&&u[1]==J&&u[2]==b&&(w||M)})}; g.l8=function(F,J,b,I){I=I===void 0?{}:I;if(!F||!F.addEventListener&&!F.attachEvent)return"";var u=O8v(F,J,b,I);if(u)return u;u=++oQC.count+"";var w=!(J!="mouseenter"&&J!="mouseleave"||!F.addEventListener||"onmouseenter"in document);var M=w?function(q){q=new zD(q);if(!MI(q.relatedTarget,function(v){return v==F},!0))return q.currentTarget=F,q.type=J,b.call(F,q)}:function(q){q=new zD(q); q.currentTarget=F;return b.call(F,q)}; M=g.tE(M);F.addEventListener?(J=="mouseenter"&&w?J="mouseover":J=="mouseleave"&&w?J="mouseout":J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"),hbz()||typeof I==="boolean"?F.addEventListener(J,M,I):F.addEventListener(J,M,!!I.capture)):F.attachEvent("on"+J,M);N1[u]=[F,J,b,M,I];return u}; Uw_=function(F){return cya(F,function(J){return g.I3(J,"ytp-ad-has-logging-urls")})}; cya=function(F,J){var b=document.body||document;return g.l8(b,"click",function(I){var u=MI(I.target,function(w){return w===b||J(w)},!0); u&&u!==b&&!u.disabled&&(I.currentTarget=u,F.call(u,I))})}; g.fw=function(F){F&&(typeof F=="string"&&(F=[F]),g.gy(F,function(J){if(J in N1){var b=N1[J],I=b[0],u=b[1],w=b[3];b=b[4];I.removeEventListener?hbz()||typeof b==="boolean"?I.removeEventListener(u,w,b):I.removeEventListener(u,w,!!b.capture):I.detachEvent&&I.detachEvent("on"+u,w);delete N1[J]}}))}; WK=function(F){for(var J in N1)N1[J][0]==F&&g.fw(J)}; dm=function(F){F=F||window.event;var J;F.composedPath&&typeof F.composedPath==="function"?J=F.composedPath():J=F.path;J&&J.length?F=J[0]:(F=F||window.event,F=F.target||F.srcElement,F.nodeType==3&&(F=F.parentNode));return F}; Ey=function(F){this.V=F;this.C=null;this.Z=0;this.W=null;this.D=0;this.U=[];for(F=0;F<4;F++)this.U.push(0);this.T=0;this.eE=g.l8(window,"mousemove",(0,g.tJ)(this.N,this));this.Y=g.g$((0,g.tJ)(this.Tj,this),25)}; j9=function(F){g.R.call(this);this.V=[];this.Um=F||this}; GD=function(F,J,b,I){for(var u=0;u<b.length;u++)F.B(J,b[u],I)}; g.Ve=function(F,J){for(;F.V.length;){var b=F.V.pop(),I=void 0;J&&xwC()&&(I={passive:!0});b.target.removeEventListener(b.name,b.callback,I)}}; PK=function(F){F=F||{};var J={},b={};this.url=F.url||"";this.args=F.args||g.To(J);this.assets=F.assets||{};this.attrs=F.attrs||g.To(b);this.fallback=F.fallback||null;this.fallbackMessage=F.fallbackMessage||null;this.html5=!!F.html5;this.disable=F.disable||{};this.loaded=!!F.loaded;this.messages=F.messages||{}}; nQm=function(F){F instanceof PK||(F=new PK(F));return F}; g.rm=function(F,J,b){var I=b&&b>0?b:0;b=I?Date.now()+I*1E3:0;if((I=I?(0,g.BK)():TD())&&window.JSON){typeof J!=="string"&&(J=JSON.stringify(J,void 0));try{I.set(F,J,b)}catch(u){I.remove(F)}}}; g.S9=function(F){var J=TD(),b=(0,g.BK)();if(!J&&!b||!window.JSON)return null;try{var I=J.get(F)}catch(u){}if(typeof I!=="string")try{I=b.get(F)}catch(u){}if(typeof I!=="string")return null;try{I=JSON.parse(I,void 0)}catch(u){}return I}; tf4=function(){var F=(0,g.BK)();if(F&&(F=F.U("yt-player-quality")))return F.creation}; g.sy=function(F){try{var J=TD(),b=(0,g.BK)();J&&J.remove(F);b&&b.remove(F)}catch(I){}}; g.Yq=function(){return g.S9("yt-remote-session-screen-id")}; Z8a=function(F){var J=this;this.U=void 0;this.C=!1;F.addEventListener("beforeinstallprompt",function(b){b.preventDefault();J.U=b}); F.addEventListener("appinstalled",function(){J.C=!0},{once:!0})}; $q=function(){if(!g.Qz.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Qz.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Qz.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Qz.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Qz.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(F){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Cw=function(){this.z2=!0}; H8Y=function(){Cw.instance||(Cw.instance=new Cw);return Cw.instance}; LUY=function(F){switch(F){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}}; F5J=function(){this.C=g.cT("ALT_PREF_COOKIE_NAME","PREF");this.U=g.cT("ALT_PREF_COOKIE_DOMAIN","youtube.com");var F=g.$6(this.C);F&&this.parse(F)}; g.Qe=function(){Xt||(Xt=new F5J);return Xt}; g.Rg=function(F,J){return!!((Jno("f"+(Math.floor(J/31)+1))||0)&1<<J%31)}; kq=function(F,J){var b="f"+(Math.floor(F/31)+1);F=1<<F%31;var I=Jno(b)||0;I=J?I|F:I&~F;I===0?delete Dv[b]:(J=I.toString(16),Dv[b]=J.toString())}; Oy=function(F){if(/^f([1-9][0-9]*)$/.test(F))throw Error("ExpectedRegexMatch: "+F);}; og=function(F){if(!/^\w+$/.test(F))throw Error("ExpectedRegexMismatch: "+F);}; Jno=function(F){F=Dv[F]!==void 0?Dv[F].toString():null;return F!=null&&/^[A-Fa-f0-9]+$/.test(F)?parseInt(F,16):null}; b6a=function(){var F=g.Qz.navigator;return F?F.connection:void 0}; u4_=function(){var F=b6a();if(F){var J=IC7[F.type||"unknown"]||"CONN_UNKNOWN";F=IC7[F.effectiveType||"unknown"]||"CONN_UNKNOWN";J==="CONN_CELLULAR_UNKNOWN"&&F!=="CONN_UNKNOWN"&&(J=F);if(J!=="CONN_UNKNOWN")return J;if(F!=="CONN_UNKNOWN")return F}}; MMY=function(){var F=b6a();if(F!=null&&F.effectiveType)return wVa.hasOwnProperty(F.effectiveType)?wVa[F.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; g.hC=function(F){var J=g.Ba.apply(1,arguments);var b=Error.call(this,F);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.args=[].concat(g.W(J))}; g.Uy=function(){try{return g.cK(),!0}catch(F){return!1}}; g.cK=function(F){if(g.cT("DATASYNC_ID")!==void 0)return g.cT("DATASYNC_ID");throw new g.hC("Datasync ID not set",F===void 0?"unknown":F);}; xq=function(){this.C=new WeakMap}; g.tC=function(F,J,b){return nw(J,0,b)}; Anz=function(F){var J=g.kC("yt.scheduler.instance.addImmediateJob");J?J(F):F()}; Zv=function(){xq.apply(this,arguments)}; g.HK=function(){Zv.instance||(Zv.instance=new Zv);return Zv.instance}; g.Lw=function(){return!!g.kC("yt.scheduler.instance")}; nw=function(F,J,b){b!==void 0&&Number.isNaN(Number(b))&&(b=void 0);var I=g.kC("yt.scheduler.instance.addJob");return I?I(F,J,b):b===void 0?(F(),NaN):g.pl(F,b||0)}; Fs=function(F,J){(F=g.kC("yt.scheduler.instance.setPriorityThreshold"))&&F(J)}; JY=function(F){this.C=(F=g.Yd(F))?new VN(F):null;this.U=document.domain||window.location.hostname}; Ie=function(){var F;return(F=ba())==null?void 0:F.get("LAST_RESULT_ENTRY_KEY",!0)}; qJC=function(){var F={};for(ua=new wZ(F.handleError===void 0?MP:F.handleError,F.logEvent===void 0?g.AY:F.logEvent);qP.length>0;)switch(F=qP.shift(),F.type){case "ERROR":ua.AN(F.payload);break;case "EVENT":ua.logEvent(F.eventType,F.payload)}}; ae=function(F){v$||(ua?ua.AN(F):(qP.push({type:"ERROR",payload:F}),qP.length>10&&qP.shift()))}; eR=function(F,J){v$||(ua?ua.logEvent(F,J):(qP.push({type:"EVENT",eventType:F,payload:J}),qP.length>10&&qP.shift()))}; KD=function(F){if(F.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; pD=function(F){return F.substr(0,F.indexOf(":"))||F}; g.gZ=function(F,J,b,I,u){J=J===void 0?{}:J;b=b===void 0?vd_[F]:b;I=I===void 0?aCz[F]:I;u=u===void 0?e4m[F]:u;g.hC.call(this,b,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:F},J));this.type=F;this.message=b;this.level=I;this.C=u;Object.setPrototypeOf(this,g.gZ.prototype)}; mH=function(F,J){g.gZ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:J,foundObjectStores:F},vd_.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,mH.prototype)}; yb=function(F,J){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.index=F;this.objectStore=J;Object.setPrototypeOf(this,yb.prototype)}; zl=function(F,J,b,I){J=pD(J);var u=F instanceof Error?F:Error("Unexpected error: "+F);if(u instanceof g.gZ)return u;F={objectStoreNames:b,dbName:J,dbVersion:I};if(u.name==="QuotaExceededError")return new g.gZ("QUOTA_EXCEEDED",F);if(g.ia&&u.name==="UnknownError")return new g.gZ("QUOTA_MAYBE_EXCEEDED",F);if(u instanceof yb)return new g.gZ("MISSING_INDEX",Object.assign({},F,{objectStore:u.objectStore,index:u.index}));if(u.name==="InvalidStateError"&&K5z.some(function(w){return u.message.includes(w)}))return new g.gZ("EXECUTE_TRANSACTION_ON_CLOSED_DB", F); if(u.name==="AbortError")return new g.gZ("UNKNOWN_ABORT",F,u.message);u.args=[Object.assign({},F,{name:"IdbError",Rt:u.name})];u.level="WARNING";return u}; g.NP=function(F,J,b){var I=Ie();return new g.gZ("IDB_NOT_SUPPORTED",{context:{caller:F,publicName:J,version:b,hasSucceededOnce:I==null?void 0:I.hasSucceededOnce}})}; pVv=function(F){if(!F)throw Error();throw F;}; gd3=function(F){return F}; la=function(F){this.C=F}; g.fD=function(F){function J(u){if(I.state.status==="PENDING"){I.state={status:"REJECTED",reason:u};u=g.N(I.U);for(var w=u.next();!w.done;w=u.next())w=w.value,w()}} function b(u){if(I.state.status==="PENDING"){I.state={status:"FULFILLED",value:u};u=g.N(I.C);for(var w=u.next();!w.done;w=u.next())w=w.value,w()}} var I=this;this.state={status:"PENDING"};this.C=[];this.U=[];F=F.C;try{F(b,J)}catch(u){J(u)}}; mrz=function(F,J,b,I,u){try{if(F.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var w=b(F.state.value);w instanceof g.fD?W$(F,J,w,I,u):I(w)}catch(M){u(M)}}; ynY=function(F,J,b,I,u){try{if(F.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var w=b(F.state.reason);w instanceof g.fD?W$(F,J,w,I,u):I(w)}catch(M){u(M)}}; W$=function(F,J,b,I,u){J===b?u(new TypeError("Circular promise chain detected.")):b.then(function(w){w instanceof g.fD?W$(F,J,w,I,u):I(w)},function(w){u(w)})}; i67=function(F,J,b){function I(){b(F.error);w()} function u(){J(F.result);w()} function w(){try{F.removeEventListener("success",u),F.removeEventListener("error",I)}catch(M){}} F.addEventListener("success",u);F.addEventListener("error",I)}; z4m=function(F){return new Promise(function(J,b){i67(F,J,b)})}; dZ=function(F){return new g.fD(new la(function(J,b){i67(F,J,b)}))}; El=function(F,J){return new g.fD(new la(function(b,I){function u(){var w=F?J(F):null;w?w.then(function(M){F=M;u()},I):b()} u()}))}; NDo=function(F,J){this.request=F;this.cursor=J}; lCz=function(F){return dZ(F).then(function(J){return J?new NDo(F,J):null})}; g.fCm=function(F){F.cursor.continue(void 0);return lCz(F.request)}; W5a=function(F,J){this.C=F;this.options=J;this.transactionCount=0;this.T=Math.round((0,g.jR)());this.U=!1}; g.Vb=function(F,J,b){F=F.C.createObjectStore(J,b);return new Gl(F)}; P$=function(F,J){F.C.objectStoreNames.contains(J)&&F.C.deleteObjectStore(J)}; g.rZ=function(F,J,b){return g.B$(F,[J],{mode:"readwrite",Em:!0},function(I){return g.Tl(I.objectStore(J),b)})}; g.B$=function(F,J,b,I){var u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){switch(d.C){case 1:var G={mode:"readonly",Em:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof b==="string"?G.mode=b:Object.assign(G,b);u=G;F.transactionCount++;w=u.Em?3:1;M=0;case 2:if(q){d.gD(4);break}M++;v=Math.round((0,g.jR)());g.lk(d,5);a=F.C.transaction(J,u.mode);G=new SR(a);G=drv(G,I);return g.T(d,G,7);case 7:return e=d.U,K=Math.round((0,g.jR)()),EdJ(F,v,K,M,void 0,J.join(),u),d.return(e);case 5:p=g.dY(d);m=Math.round((0,g.jR)()); y=zl(p,F.C.name,J.join(),F.C.version);if((f=y instanceof g.gZ&&!y.C)||M>=w)EdJ(F,v,m,M,y,J.join(),u),q=y;d.gD(2);break;case 4:return d.return(Promise.reject(q))}})}; EdJ=function(F,J,b,I,u,w,M){J=b-J;u?(u instanceof g.gZ&&(u.type==="QUOTA_EXCEEDED"||u.type==="QUOTA_MAYBE_EXCEEDED")&&eR("QUOTA_EXCEEDED",{dbName:pD(F.C.name),objectStoreNames:w,transactionCount:F.transactionCount,transactionMode:M.mode}),u instanceof g.gZ&&u.type==="UNKNOWN_ABORT"&&(b-=F.T,b<0&&b>=2147483648&&(b=0),eR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:w,transactionDuration:J,transactionCount:F.transactionCount,dbDuration:b}),F.U=!0),j3Y(F,!1,I,w,J,M.tag),ae(u)):j3Y(F,!0,I,w,J, M.tag)}; j3Y=function(F,J,b,I,u,w){eR("TRANSACTION_ENDED",{objectStoreNames:I,connectionHasUnknownAbortedTransaction:F.U,duration:u,isSuccessful:J,tryCount:b,tag:w===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":w})}; Gl=function(F){this.C=F}; g.sl=function(F,J,b){F.C.createIndex(J,b,{unique:!1})}; G87=function(F,J){return g.Yu(F,{query:J},function(b){return b.delete().then(function(){return g.$u(b)})}).then(function(){})}; VMk=function(F,J,b){var I=[];return g.Yu(F,{query:J},function(u){if(!(b!==void 0&&I.length>=b))return I.push(u.getValue()),g.$u(u)}).then(function(){return I})}; BDz=function(F){return"getAllKeys"in IDBObjectStore.prototype?dZ(F.C.getAllKeys(void 0,void 0)):PGk(F)}; PGk=function(F){var J=[];return g.TDa(F,{query:void 0},function(b){J.push(b.cursor.primaryKey);return g.fCm(b)}).then(function(){return J})}; g.Tl=function(F,J,b){return dZ(F.C.put(J,b))}; g.Yu=function(F,J,b){F=F.C.openCursor(J.query,J.direction);return CD(F).then(function(I){return El(I,b)})}; g.TDa=function(F,J,b){var I=J.query;J=J.direction;F="openKeyCursor"in IDBObjectStore.prototype?F.C.openKeyCursor(I,J):F.C.openCursor(I,J);return lCz(F).then(function(u){return El(u,b)})}; SR=function(F){var J=this;this.C=F;this.T=new Map;this.U=!1;this.done=new Promise(function(b,I){J.C.addEventListener("complete",function(){b()}); J.C.addEventListener("error",function(u){u.currentTarget===u.target&&I(J.C.error)}); J.C.addEventListener("abort",function(){var u=J.C.error;if(u)I(u);else if(!J.U){u=g.gZ;for(var w=J.C.objectStoreNames,M=[],q=0;q<w.length;q++){var v=w.item(q);if(v===null)throw Error("Invariant: item in DOMStringList is null");M.push(v)}u=new u("UNKNOWN_ABORT",{objectStoreNames:M.join(),dbName:J.C.db.name,mode:J.C.mode});I(u)}})})}; drv=function(F,J){var b=new Promise(function(I,u){try{J(F).then(function(w){I(w)}).catch(u)}catch(w){u(w),F.abort()}}); return Promise.all([b,F.done]).then(function(I){return g.N(I).next().value})}; rnm=function(F){this.C=F}; SJa=function(F,J,b){var I=[];return g.Xs(F,{query:J},function(u){if(!(b!==void 0&&I.length>=b))return I.push(u.getValue()),g.$u(u)}).then(function(){return I})}; g.Xs=function(F,J,b){F=F.C.openCursor(J.query===void 0?null:J.query,J.direction===void 0?"next":J.direction);return CD(F).then(function(I){return El(I,b)})}; Qb=function(F,J){this.request=F;this.cursor=J}; CD=function(F){return dZ(F).then(function(J){return J?new Qb(F,J):null})}; g.$u=function(F){F.cursor.continue(void 0);return CD(F.request)}; s33=function(F,J,b){return new Promise(function(I,u){function w(){p||(p=new W5a(M.result,{closed:K}));return p} var M=J!==void 0?self.indexedDB.open(F,J):self.indexedDB.open(F);var q=b.blocked,v=b.blocking,a=b.ivv,e=b.upgrade,K=b.closed,p;M.addEventListener("upgradeneeded",function(m){try{if(m.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(M.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");m.dataLoss&&m.dataLoss!=="none"&&eR("IDB_DATA_CORRUPTED",{reason:m.dataLossMessage||"unknown reason",dbName:pD(F)});var y=w(),f=new SR(M.transaction); e&&e(y,function(d){return m.oldVersion<d&&m.newVersion>=d},f); f.done.catch(function(d){u(d)})}catch(d){u(d)}}); M.addEventListener("success",function(){var m=M.result;v&&m.addEventListener("versionchange",function(){v(w())}); m.addEventListener("close",function(){eR("IDB_UNEXPECTEDLY_CLOSED",{dbName:pD(F),dbVersion:m.version});a&&a()}); I(w())}); M.addEventListener("error",function(){u(M.error)}); q&&M.addEventListener("blocked",function(){q()})})}; YJ_=function(F,J,b){b=b===void 0?{}:b;return s33(F,J,b)}; Re=function(F,J){J=J===void 0?{}:J;var b,I,u,w;return g.S(function(M){if(M.C==1)return g.lk(M,2),b=self.indexedDB.deleteDatabase(F),I=J,(u=I.blocked)&&b.addEventListener("blocked",function(){u()}),g.T(M,z4m(b),4); if(M.C!=2)return g.Wa(M,0);w=g.dY(M);throw zl(w,F,"",-1);})}; DZ=function(F,J){this.name=F;this.options=J;this.T=!0;this.D=this.Z=0}; $rv=function(F,J){return new g.gZ("INCOMPATIBLE_DB_VERSION",{dbName:F.name,oldVersion:F.options.version,newVersion:J})}; g.ku=function(F,J){if(!J)throw g.NP("openWithToken",pD(F.name));return F.open()}; CG_=function(F,J){var b;return g.S(function(I){if(I.C==1)return g.T(I,g.ku(Ol,J),2);b=I.U;return I.return(g.B$(b,["databases"],{Em:!0,mode:"readwrite"},function(u){var w=u.objectStore("databases");return w.get(F.actualName).then(function(M){if(M?F.actualName!==M.actualName||F.publicName!==M.publicName||F.userIdentifier!==M.userIdentifier:1)return g.Tl(w,F).then(function(){})})}))})}; oe=function(F,J){var b;return g.S(function(I){if(I.C==1)return F?g.T(I,g.ku(Ol,J),2):I.return();b=I.U;return I.return(b.delete("databases",F))})}; XVa=function(F,J){var b,I;return g.S(function(u){return u.C==1?(b=[],g.T(u,g.ku(Ol,J),2)):u.C!=3?(I=u.U,g.T(u,g.B$(I,["databases"],{Em:!0,mode:"readonly"},function(w){b.length=0;return g.Yu(w.objectStore("databases"),{},function(M){F(M.getValue())&&b.push(M.getValue());return g.$u(M)})}),3)):u.return(b)})}; Q3a=function(F,J){return XVa(function(b){return b.publicName===F&&b.userIdentifier!==void 0},J)}; R44=function(){var F,J,b,I;return g.S(function(u){switch(u.C){case 1:F=Ie();if((J=F)==null?0:J.hasSucceededOnce)return u.return(!0);if(hY&&cx()&&!U6()||g.c$)return u.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return u.return(!1)}catch(w){return u.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return u.return(!1);g.lk(u,2);I={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.T(u,CG_(I,Ul),4);case 4:return g.T(u,oe("yt-idb-test-do-not-use",Ul),5);case 5:return u.return(!0);case 2:return g.dY(u),u.return(!1)}})}; Dra=function(){if(xu!==void 0)return xu;v$=!0;return xu=R44().then(function(F){v$=!1;var J;if((J=ba())!=null&&J.C){var b;J={hasSucceededOnce:((b=Ie())==null?void 0:b.hasSucceededOnce)||F};var I;(I=ba())==null||I.set("LAST_RESULT_ENTRY_KEY",J,2592E3,!0)}return F})}; nD=function(){return g.kC("ytglobal.idbToken_")||void 0}; g.tY=function(){var F=nD();return F?Promise.resolve(F):Dra().then(function(J){(J=J?Ul:void 0)&&g.RG("ytglobal.idbToken_",J);return J})}; k84=function(F){if(!g.Uy())throw F=new g.gZ("AUTH_INVALID",{dbName:F}),ae(F),F;var J=g.cK();return{actualName:F+":"+J,publicName:F,userIdentifier:J}}; O6k=function(F,J,b,I){var u,w,M,q,v,a;return g.S(function(e){switch(e.C){case 1:return w=(u=Error().stack)!=null?u:"",g.T(e,g.tY(),2);case 2:M=e.U;if(!M)throw q=g.NP("openDbImpl",F,J),g.Nk("ytidb_async_stack_killswitch")||(q.stack=q.stack+"\n"+w.substring(w.indexOf("\n")+1)),ae(q),q;KD(F);v=b?{actualName:F,publicName:F,userIdentifier:void 0}:k84(F);g.lk(e,3);return g.T(e,CG_(v,M),5);case 5:return g.T(e,YJ_(v.actualName,J,I),6);case 6:return e.return(e.U);case 3:return a=g.dY(e),g.lk(e,7),g.T(e,oe(v.actualName, M),9);case 9:g.Wa(e,8);break;case 7:g.dY(e);case 8:throw a;}})}; oda=function(F,J,b){b=b===void 0?{}:b;return O6k(F,J,!1,b)}; h4z=function(F,J,b){b=b===void 0?{}:b;return O6k(F,J,!0,b)}; cnC=function(F,J){J=J===void 0?{}:J;var b,I;return g.S(function(u){if(u.C==1)return g.T(u,g.tY(),2);if(u.C!=3){b=u.U;if(!b)return u.return();KD(F);I=k84(F);return g.T(u,Re(I.actualName,J),3)}return g.T(u,oe(I.actualName,b),0)})}; Urm=function(F,J,b){F=F.map(function(I){return g.S(function(u){return u.C==1?g.T(u,Re(I.actualName,J),2):g.T(u,oe(I.actualName,b),0)})}); return Promise.all(F).then(function(){})}; xr3=function(F){var J=J===void 0?{}:J;var b,I;return g.S(function(u){if(u.C==1)return g.T(u,g.tY(),2);if(u.C!=3){b=u.U;if(!b)return u.return();KD(F);return g.T(u,Q3a(F,b),3)}I=u.U;return g.T(u,Urm(I,J,b),0)})}; ndv=function(F,J){J=J===void 0?{}:J;var b;return g.S(function(I){if(I.C==1)return g.T(I,g.tY(),2);if(I.C!=3){b=I.U;if(!b)return I.return();KD(F);return g.T(I,Re(F,J),3)}return g.T(I,oe(F,b),0)})}; ZZ=function(F,J){DZ.call(this,F,J);this.options=J;KD(F)}; tM7=function(F,J){var b;return function(){b||(b=new ZZ(F,J));return b}}; g.H$=function(F,J){return tM7(F,J)}; LD=function(F){return g.ku(Z6z(),F)}; H63=function(F,J,b,I){var u,w,M;return g.S(function(q){switch(q.C){case 1:return u={config:F,hashData:J,timestamp:I!==void 0?I:(0,g.jR)()},g.T(q,LD(b),2);case 2:return w=q.U,g.T(q,w.clear("hotConfigStore"),3);case 3:return g.T(q,g.rZ(w,"hotConfigStore",u),4);case 4:return M=q.U,q.return(M)}})}; L5o=function(F,J,b,I,u){var w,M,q;return g.S(function(v){switch(v.C){case 1:return w={config:F,hashData:J,configData:b,timestamp:u!==void 0?u:(0,g.jR)()},g.T(v,LD(I),2);case 2:return M=v.U,g.T(v,M.clear("coldConfigStore"),3);case 3:return g.T(v,g.rZ(M,"coldConfigStore",w),4);case 4:return q=v.U,v.return(q)}})}; FMm=function(F){var J,b;return g.S(function(I){return I.C==1?g.T(I,LD(F),2):I.C!=3?(J=I.U,b=void 0,g.T(I,g.B$(J,["coldConfigStore"],{mode:"readwrite",Em:!0},function(u){return g.Xs(u.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(w){b=w.getValue()})}),3)):I.return(b)})}; JE_=function(F){var J,b;return g.S(function(I){return I.C==1?g.T(I,LD(F),2):I.C!=3?(J=I.U,b=void 0,g.T(I,g.B$(J,["hotConfigStore"],{mode:"readwrite",Em:!0},function(u){return g.Xs(u.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(w){b=w.getValue()})}),3)):I.return(b)})}; bX3=function(){return g.S(function(F){return g.T(F,xr3("ytGcfConfig"),0)})}; Fp=function(){g.R.call(this);this.U=[];this.C=[];var F=g.kC("yt.gcf.config.hotUpdateCallbacks");F?(this.U=[].concat(g.W(F)),this.C=F):(this.C=[],g.RG("yt.gcf.config.hotUpdateCallbacks",this.C))}; MK=function(){var F=this;this.D=!1;this.T=this.Z=0;this.W=new Fp;this.Po={u1D:function(){F.D=!0}, e2R:function(){return F.C}, PHG:function(J){JB(F,J)}, j2:function(J){F.j2(J)}, egv:function(J){bC(F,J)}, kp:function(){return F.coldHashData}, iL:function(){return F.hotHashData}, dPR:function(){return F.U}, W5v:function(){return IK()}, q1E:function(){return uC()}, AgI:function(){return g.kC("yt.gcf.config.coldHashData")}, DPv:function(){return g.kC("yt.gcf.config.hotHashData")}, VyE:function(){IkC(F)}, N$Q:function(){F.j2(void 0);wL(F);delete MK.instance}, sGz:function(J){F.T=J}, PJ_:function(){return F.T}}}; u$Y=function(){if(!MK.instance){var F=new MK;MK.instance=F}return MK.instance}; AE4=function(F){var J;g.S(function(b){if(b.C==1)return g.Nk("start_client_gcf")||g.Nk("delete_gcf_config_db")?g.Nk("start_client_gcf")?g.T(b,g.tY(),3):b.gD(2):b.return();b.C!=2&&((J=b.U)&&g.Uy()&&!g.Nk("delete_gcf_config_db")?(F.D=!0,IkC(F)):(wTk(F),M4o(F)));return g.Nk("delete_gcf_config_db")?g.T(b,bX3(),0):b.gD(0)})}; AB=function(){var F;return(F=uC())!=null?F:g.cT("RAW_HOT_CONFIG_GROUP")}; qkY=function(F){var J,b,I,u,w,M;return g.S(function(q){switch(q.C){case 1:if(F.U)return q.return(uC());if(!F.D)return J=g.NP("getHotConfig IDB not initialized"),Zk(J),q.return(Promise.reject(J));b=nD();I=g.cT("TIME_CREATED_MS");if(!b){u=g.NP("getHotConfig token error");Zk(u);q.gD(2);break}return g.T(q,JE_(b),3);case 3:if((w=q.U)&&w.timestamp>I)return JB(F,w.config),F.j2(w.hashData),q.return(uC());case 2:M4o(F);if(!(b&&F.U&&F.hotHashData)){q.gD(4);break}return g.T(q,H63(F.U,F.hotHashData,b,I),4);case 4:return F.U? q.return(uC()):(M=new g.hC("Config not available in ytConfig"),Zk(M),q.return(Promise.reject(M)))}})}; akY=function(F){var J,b,I,u,w,M;return g.S(function(q){switch(q.C){case 1:if(F.C)return q.return(IK());if(!F.D)return J=g.NP("getColdConfig IDB not initialized"),Zk(J),q.return(Promise.reject(J));b=nD();I=g.cT("TIME_CREATED_MS");if(!b){u=g.NP("getColdConfig");Zk(u);q.gD(2);break}return g.T(q,FMm(b),3);case 3:if((w=q.U)&&w.timestamp>I)return bC(F,w.config),vDa(F,w.configData),wL(F,w.hashData),q.return(IK());case 2:wTk(F);if(!(b&&F.C&&F.coldHashData&&F.configData)){q.gD(4);break}return g.T(q,L5o(F.C, F.coldHashData,F.configData,b,I),4);case 4:return F.C?q.return(IK()):(M=new g.hC("Config not available in ytConfig"),Zk(M),q.return(Promise.reject(M)))}})}; IkC=function(F){if(!F.U||!F.C){if(!nD()){var J=g.NP("scheduleGetConfigs");Zk(J)}F.Z||(F.Z=g.D_.Ti(function(){return g.S(function(b){switch(b.C){case 1:return g.lk(b,2),g.T(b,qkY(F),4);case 4:g.Wa(b,3);break;case 2:g.dY(b);case 3:return g.lk(b,5),g.T(b,akY(F),7);case 7:g.Wa(b,6);break;case 5:g.dY(b);case 6:F.Z&&(F.Z=0),g.N4(b)}})},100))}}; ezm=function(F,J,b){var I,u,w;return g.S(function(M){switch(M.C){case 1:if(!g.Nk("start_client_gcf")){M.gD(0);break}b&&JB(F,b);F.j2(J);I=nD();if(!I){M.gD(3);break}if(b){M.gD(4);break}return g.T(M,JE_(I),5);case 5:u=M.U,b=(w=u)==null?void 0:w.config;case 4:return g.T(M,H63(b,J,I),3);case 3:if(b)for(var q=b,v=g.N(F.W.C),a=v.next();!a.done;a=v.next())a=a.value,a(q);g.N4(M)}})}; KMm=function(F,J,b){var I,u,w,M;return g.S(function(q){if(q.C==1){if(!g.Nk("start_client_gcf"))return q.gD(0);wL(F,J);return(I=nD())?b?q.gD(4):g.T(q,FMm(I),5):q.gD(0)}q.C!=4&&(u=q.U,b=(w=u)==null?void 0:w.config);if(!b)return q.gD(0);M=b.configData;return g.T(q,L5o(b,J,M,I),0)})}; pT7=function(){var F=u$Y(),J=(0,g.jR)()-F.T;if(!(F.T!==0&&J<g.li("send_config_hash_timer"))){J=g.kC("yt.gcf.config.coldConfigData");var b=g.kC("yt.gcf.config.hotHashData"),I=g.kC("yt.gcf.config.coldHashData");J&&b&&I&&(F.T=(0,g.jR)());return{coldConfigData:J,hotHashData:b,coldHashData:I}}}; wTk=function(F){bC(F,g.cT("RAW_COLD_CONFIG_GROUP"));wL(F,g.cT("SERIALIZED_COLD_HASH_DATA"));var J;vDa(F,(J=F.C)==null?void 0:J.configData)}; M4o=function(F){JB(F,g.cT("RAW_HOT_CONFIG_GROUP"));F.j2(g.cT("SERIALIZED_HOT_HASH_DATA"))}; JB=function(F,J){F.U=J;g.RG("yt.gcf.config.hotConfigGroup",F.U||null)}; bC=function(F,J){F.C=J;g.RG("yt.gcf.config.coldConfigGroup",F.C||null)}; wL=function(F,J){F.coldHashData=J;g.RG("yt.gcf.config.coldHashData",F.coldHashData||null)}; vDa=function(F,J){F.configData=J;g.RG("yt.gcf.config.coldConfigData",F.configData||null)}; uC=function(){return g.kC("yt.gcf.config.hotConfigGroup")}; IK=function(){return g.kC("yt.gcf.config.coldConfigGroup")}; gDk=function(){return"INNERTUBE_API_KEY"in op&&"INNERTUBE_API_VERSION"in op}; g.qK=function(){return{innertubeApiKey:g.cT("INNERTUBE_API_KEY"),innertubeApiVersion:g.cT("INNERTUBE_API_VERSION"),tQ:g.cT("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Yb:g.cT("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),p6:g.cT("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.cT("INNERTUBE_CONTEXT_CLIENT_VERSION"),aN:g.cT("INNERTUBE_CONTEXT_HL"),jJ:g.cT("INNERTUBE_CONTEXT_GL"),Yt:g.cT("INNERTUBE_HOST_OVERRIDE")||"",n6:!!g.cT("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),h_R:!!g.cT("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.cT("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.vr=function(F){var J={client:{hl:F.aN,gl:F.jJ,clientName:F.Yb,clientVersion:F.innertubeContextClientVersion,configInfo:F.tQ}};navigator.userAgent&&(J.client.userAgent=String(navigator.userAgent));var b=g.Qz.devicePixelRatio;b&&b!=1&&(J.client.screenDensityFloat=String(b));b=fl();b!==""&&(J.client.experimentsToken=b);b=Wx();b.length>0&&(J.request={internalExperimentFlags:b});mj3(F,void 0,J);yEC(void 0,J);iXo(void 0,J);zzJ(F,void 0,J);NFz(void 0,J);g.Nk("start_client_gcf")&&lkC(void 0,J);g.cT("DELEGATED_SESSION_ID")&& !g.Nk("pageid_as_header_web")&&(J.user={onBehalfOfUser:g.cT("DELEGATED_SESSION_ID")});!g.Nk("fill_delegate_context_in_gel_killswitch")&&(F=g.cT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J.user=Object.assign({},J.user,{serializedDelegationContext:F}));F=g.cT("INNERTUBE_CONTEXT");var I;if(g.Nk("enable_persistent_device_token")&&(F==null?0:(I=F.client)==null?0:I.rolloutToken)){var u;J.client.rolloutToken=F==null?void 0:(u=F.client)==null?void 0:u.rolloutToken}I=Object;u=I.assign;F=J.client; b={};for(var w=g.N(Object.entries(FF(g.cT("DEVICE","")))),M=w.next();!M.done;M=w.next()){var q=g.N(M.value);M=q.next().value;q=q.next().value;M==="cbrand"?b.deviceMake=q:M==="cmodel"?b.deviceModel=q:M==="cbr"?b.browserName=q:M==="cbrver"?b.browserVersion=q:M==="cos"?b.osName=q:M==="cosver"?b.osVersion=q:M==="cplatform"&&(b.platform=q)}J.client=u.call(I,F,b);return J}; mj3=function(F,J,b){F=F.Yb;if(F==="WEB"||F==="MWEB"||F===1||F===2)if(J){b=MX(J,GT,96)||new GT;var I=$q();I=Object.keys(fkm).indexOf(I);I=I===-1?null:I;I!==null&&zb(b,3,I);Ax(J,GT,96,b)}else b&&(b.client.mainAppWebInfo=(I=b.client.mainAppWebInfo)!=null?I:{},b.client.mainAppWebInfo.webDisplayMode=$q())}; yEC=function(F,J){var b=g.kC("yt.embedded_player.embed_url");b&&(F?(J=MX(F,rF,7)||new rF,yH(J,4,b),Ax(F,rF,7,J)):J&&(J.thirdParty={embedUrl:b}))}; iXo=function(F,J){var b;if(g.Nk("web_log_memory_total_kbytes")&&((b=g.Qz.navigator)==null?0:b.deviceMemory)){var I;b=(I=g.Qz.navigator)==null?void 0:I.deviceMemory;F?RF(F,95,lv(b*1E6)):J&&(J.client.memoryTotalKbytes=""+b*1E6)}}; zzJ=function(F,J,b){if(F.appInstallData)if(J){var I;b=(I=MX(J,j4,62))!=null?I:new j4;yH(b,6,F.appInstallData);Ax(J,j4,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=F.appInstallData)}; NFz=function(F,J){var b=u4_();b&&(F?zb(F,61,WMa[b]):J&&(J.client.connectionType=b));g.Nk("web_log_effective_connection_type")&&(b=MMY())&&(F?zb(F,94,djY[b]):J&&(J.client.effectiveConnectionType=b))}; EDz=function(F,J,b){b=b===void 0?{}:b;var I={};g.cT("EOM_VISITOR_DATA")?I={"X-Goog-EOM-Visitor-Id":g.cT("EOM_VISITOR_DATA")}:I={"X-Goog-Visitor-Id":b.visitorData||g.cT("VISITOR_DATA","")};if(J&&J.includes("www.youtube-nocookie.com"))return I;J=b.C0||g.cT("AUTHORIZATION");J||(F?J="Bearer "+g.kC("gapi.auth.getToken")().access_token:(F=H8Y().Du(aK),g.Nk("pageid_as_header_web")||delete F["X-Goog-PageId"],I=Object.assign({},I,F)));J&&(I.Authorization=J);return I}; lkC=function(F,J){var b=pT7();if(b){var I=b.coldConfigData,u=b.coldHashData;b=b.hotHashData;if(F){var w;J=(w=MX(F,j4,62))!=null?w:new j4;I=yH(J,1,I);yH(I,3,u).j2(b);Ax(F,j4,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},I&&(J.client.configInfo.coldConfigData=I),u&&(J.client.configInfo.coldHashData=u),b&&(J.client.configInfo.hotHashData=b))}}; e6=function(F,J){this.version=F;this.args=J}; KA=function(F,J){this.topic=F;this.C=J}; gL=function(F,J){var b=pA();b&&b.publish.call(b,F.toString(),F,J)}; V44=function(F){var J=jpJ,b=pA();if(!b)return 0;var I=b.subscribe(J.toString(),function(u,w){var M=g.kC("ytPubsub2Pubsub2SkipSubKey");M&&M==I||(M=function(){if(mE[I])try{if(w&&J instanceof KA&&J!=u)try{var q=J.C,v=w;if(!v.args||!v.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!q.Qj){var a=new q;q.Qj=a.version}var e=q.Qj}catch(K){}if(!e||v.version!=e)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{w=Reflect.construct(q, g.JL(v.args))}catch(K){throw K.message="yt.pubsub2.Data.deserialize(): "+K.message,K;}}catch(K){throw K.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+J.toString()+": "+K.message,K;}F.call(window,w)}catch(K){g.nX(K)}},GTo[J.toString()]?g.Lw()?g.D_.Ti(M):g.pl(M,0):M())}); mE[I]=!0;lC[J.toString()]||(lC[J.toString()]=[]);lC[J.toString()].push(I);return I}; TFY=function(){var F=PJv,J=V44(function(b){F.apply(void 0,arguments);BF3(J)}); return J}; BF3=function(F){var J=pA();J&&(typeof F==="number"&&(F=[F]),g.gy(F,function(b){J.unsubscribeByKey(b);delete mE[b]}))}; pA=function(){return g.kC("ytPubsub2Pubsub2Instance")}; fA=function(F,J,b){b=b===void 0?{sampleRate:.1}:b;Math.random()<Math.min(.02,b.sampleRate/100)&&gL("meta_logging_csi_event",{timerName:F,SW_:J})}; rEo=function(){Wr||(Wr=fX(g.cT("WORKER_SERIALIZATION_URL")));return Wr||void 0}; EZ=function(){var F=rEo();dL||F===void 0||(dL=new Worker(jp(F),void 0));return dL}; Sk3=function(){return typeof Worker==="function"&&rEo()?!0:!1}; Yko=function(){if(Sk3()&&!j6){var F=function(b){b=b.data;if(b.op==="gzippedGelBatch"){var I=GS.get(b.key);I&&(spz(b.gzippedBatch,I.latencyPayload,I.url,I.options,I.sendFn),GS.delete(b.key))}},J=EZ(); J&&(J.addEventListener("message",F),J.onerror=function(){GS.clear()},j6=!0)}}; Br=function(F,J,b,I,u){u=u===void 0?!1:u;var w={startTime:(0,g.jR)(),ticks:{},infos:{}};if(Vn)try{var M=$ja(J);if(M!=null&&(M>CJJ||M<XTC))I(F,b);else{if(g.Nk("gzip_gel_with_worker")&&(g.Nk("initial_gzip_use_main_thread")&&!Qpz||!g.Nk("initial_gzip_use_main_thread"))){j6||Yko();var q=EZ();if(q&&!u){GS.set(Pr,{latencyPayload:w,url:F,options:b,sendFn:I});q.postMessage({op:"gelBatchToGzip",serializedBatch:J,key:Pr});Pr++;return}}var v=j8C(Rzm(J));spz(v,w,F,b,I)}}catch(a){Zk(a),I(F,b)}else I(F,b)}; spz=function(F,J,b,I,u){Qpz=!1;var w=(0,g.jR)();J.ticks.gelc=w;TS++;g.Nk("disable_compression_due_to_performance_degredation")&&w-J.startTime>=DjC&&(rL++,g.Nk("abandon_compression_after_N_slow_zips")?TS===g.li("compression_disable_point")&&rL>kT_&&(Vn=!1):Vn=!1);OXC(J);I.headers||(I.headers={});I.headers["Content-Encoding"]="gzip";I.postBody=F;I.postParams=void 0;u(b,I)}; oD_=function(F){var J=J===void 0?!1:J;var b=b===void 0?!1:b;var I=(0,g.jR)(),u={startTime:I,ticks:{},infos:{}},w=J?g.kC("yt.logging.gzipForFetch",!1):!0;if(Vn&&w){if(!F.body)return F;try{var M=b?F.body:typeof F.body==="string"?F.body:JSON.stringify(F.body);w=M;if(!b&&typeof M==="string"){var q=$ja(M);if(q!=null&&(q>CJJ||q<XTC))return F;b=J?{level:1}:void 0;w=j8C(Rzm(M),b);var v=(0,g.jR)();u.ticks.gelc=v;if(J){TS++;if((g.Nk("disable_compression_due_to_performance_degredation")||g.Nk("disable_compression_due_to_performance_degradation_lr"))&& v-I>=DjC)if(rL++,g.Nk("abandon_compression_after_N_slow_zips")||g.Nk("abandon_compression_after_N_slow_zips_lr")){J=rL/TS;var a=kT_/g.li("compression_disable_point");TS>0&&TS%g.li("compression_disable_point")===0&&J>=a&&(Vn=!1)}else Vn=!1;OXC(u)}}F.headers=Object.assign({},{"Content-Encoding":"gzip"},F.headers||{});F.body=w;return F}catch(e){return Zk(e),F}}else return F}; $ja=function(F){try{return(new Blob(F.split(""))).size}catch(J){return Zk(J),null}}; OXC=function(F){g.Nk("gel_compression_csi_killswitch")||!g.Nk("log_gel_compression_latency")&&!g.Nk("log_gel_compression_latency_lr")||fA("gel_compression",F,{sampleRate:.1})}; sZ=function(F){var J=this;this.LM=this.C=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){}; this.SG=function(){}; this.now=Date.now;this.mF=!1;this.Po={XnI:function(e){J.mp=e}, hgG:function(){J.VD()}, z3:function(){J.MV()}, Cx:function(e){return g.S(function(K){return g.T(K,J.Cx(e),0)})}, Nw:function(e,K){return J.Nw(e,K)}, wy:function(){J.wy()}}; var b;this.xT=(b=F.xT)!=null?b:100;var I;this.pE=(I=F.pE)!=null?I:1;var u;this.zl=(u=F.zl)!=null?u:2592E6;var w;this.d1=(w=F.d1)!=null?w:12E4;var M;this.yL=(M=F.yL)!=null?M:5E3;var q;this.mp=(q=F.mp)!=null?q:void 0;this.lU=!!F.lU;var v;this.sx=(v=F.sx)!=null?v:.1;var a;this.V3=(a=F.V3)!=null?a:10;F.handleError&&(this.handleError=F.handleError);F.SG&&(this.SG=F.SG);F.mF&&(this.mF=F.mF);F.LM&&(this.LM=F.LM);this.pW=F.pW;this.Xa=F.Xa;this.T7=F.T7;this.zn=F.zn;this.sendFn=F.sendFn;this.Cq=F.Cq;this.Nj= F.Nj;S6(this)&&(!this.pW||this.pW("networkless_logging"))&&hzz(this)}; hzz=function(F){S6(F)&&!F.mF&&(F.C=!0,F.lU&&Math.random()<=F.sx&&F.T7.B6(F.mp),F.wy(),F.zn.Vi()&&F.VD(),F.zn.listen(F.Cq,F.VD.bind(F)),F.zn.listen(F.Nj,F.MV.bind(F)))}; xjz=function(F,J){if(!S6(F))throw Error("IndexedDB is not supported: updateRequestHandlers");var b=J.options.onError?J.options.onError:function(){}; J.options.onError=function(u,w){var M,q,v,a;return g.S(function(e){switch(e.C){case 1:M=cEY(w);(q=Ujm(w))&&F.pW&&F.pW("web_enable_error_204")&&F.handleError(Error("Request failed due to compression"),J.url,w);if(!(F.pW&&F.pW("nwl_consider_error_code")&&M||F.pW&&!F.pW("nwl_consider_error_code")&&F.potentialEsfErrorCounter<=F.V3)){e.gD(2);break}if(!F.zn.sO){e.gD(3);break}return g.T(e,F.zn.sO(),3);case 3:if(F.zn.Vi()){e.gD(2);break}b(u,w);if(!F.pW||!F.pW("nwl_consider_error_code")||((v=J)==null?void 0: v.id)===void 0){e.gD(6);break}return g.T(e,F.T7.JC(J.id,F.mp,!1),6);case 6:return e.return();case 2:if(F.pW&&F.pW("nwl_consider_error_code")&&!M&&F.potentialEsfErrorCounter>F.V3)return e.return();F.potentialEsfErrorCounter++;if(((a=J)==null?void 0:a.id)===void 0){e.gD(8);break}return J.sendCount<F.pE?g.T(e,F.T7.JC(J.id,F.mp,!0,q?!1:void 0),12):g.T(e,F.T7.wE(J.id,F.mp),8);case 12:F.Xa.Ti(function(){F.zn.Vi()&&F.VD()},F.yL); case 8:b(u,w),g.N4(e)}})}; var I=J.options.onSuccess?J.options.onSuccess:function(){}; J.options.onSuccess=function(u,w){var M;return g.S(function(q){if(q.C==1)return((M=J)==null?void 0:M.id)===void 0?q.gD(2):g.T(q,F.T7.wE(J.id,F.mp),2);F.zn.jV&&F.pW&&F.pW("vss_network_hint")&&F.zn.jV(!0);I(u,w);g.N4(q)})}; return J}; YP=function(F,J){F.xX&&!F.zn.Vi()?F.xX(J):F.handleError(J)}; S6=function(F){return!!F.mp||F.LM}; cEY=function(F){var J;return(F=F==null?void 0:(J=F.error)==null?void 0:J.code)&&F>=400&&F<=599?!1:!0}; Ujm=function(F){var J;F=F==null?void 0:(J=F.error)==null?void 0:J.code;return!(F!==400&&F!==415)}; nDz=function(){if($P)return $P();var F={};$P=g.H$("LogsDatabaseV2",{ET:(F.LogsRequestsStore={Sp:2},F),shared:!1,upgrade:function(J,b,I){b(2)&&g.Vb(J,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});b(3);b(5)&&(I=I.objectStore("LogsRequestsStore"),I.C.indexNames.contains("newRequest")&&I.C.deleteIndex("newRequest"),g.sl(I,"newRequestV2",["status","interface","timestamp"]));b(7)&&P$(J,"sapisid");b(9)&&P$(J,"SWHealthLog")}, version:9});return $P()}; CA=function(F){return g.ku(nDz(),F)}; ZX7=function(F,J){var b,I,u,w;return g.S(function(M){if(M.C==1)return b={startTime:(0,g.jR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.T(M,CA(J),2);if(M.C!=3)return I=M.U,u=Object.assign({},F,{options:JSON.parse(JSON.stringify(F.options)),interface:g.cT("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.T(M,g.rZ(I,"LogsRequestsStore",u),3);w=M.U;b.ticks.tc=(0,g.jR)();t4v(b);return M.return(w)})}; HXC=function(F,J){var b,I,u,w,M,q,v,a;return g.S(function(e){if(e.C==1)return b={startTime:(0,g.jR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.T(e,CA(J),2);if(e.C!=3)return I=e.U,u=g.cT("INNERTUBE_CONTEXT_CLIENT_NAME",0),w=[F,u,0],M=[F,u,(0,g.jR)()],q=IDBKeyRange.bound(w,M),v="prev",g.Nk("use_fifo_for_networkless")&&(v="next"),a=void 0,g.T(e,g.B$(I,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(K){return g.Xs(K.objectStore("LogsRequestsStore").index("newRequestV2"), {query:q,direction:v},function(p){p.getValue()&&(a=p.getValue(),F==="NEW"&&(a.status="QUEUED",p.update(a)))})}),3); b.ticks.tc=(0,g.jR)();t4v(b);return e.return(a)})}; LMm=function(F,J){var b;return g.S(function(I){if(I.C==1)return g.T(I,CA(J),2);b=I.U;return I.return(g.B$(b,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(u){var w=u.objectStore("LogsRequestsStore");return w.get(F).then(function(M){if(M)return M.status="QUEUED",g.Tl(w,M).then(function(){return M})})}))})}; F1m=function(F,J,b,I){b=b===void 0?!0:b;var u;return g.S(function(w){if(w.C==1)return g.T(w,CA(J),2);u=w.U;return w.return(g.B$(u,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(M){var q=M.objectStore("LogsRequestsStore");return q.get(F).then(function(v){return v?(v.status="NEW",b&&(v.sendCount+=1),I!==void 0&&(v.options.compress=I),g.Tl(q,v).then(function(){return v})):g.fD.resolve(void 0)})}))})}; JRa=function(F,J){var b;return g.S(function(I){if(I.C==1)return g.T(I,CA(J),2);b=I.U;return I.return(b.delete("LogsRequestsStore",F))})}; bla=function(F){var J,b;return g.S(function(I){if(I.C==1)return g.T(I,CA(F),2);J=I.U;b=(0,g.jR)()-2592E6;return g.T(I,g.B$(J,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(u){return g.Yu(u.objectStore("LogsRequestsStore"),{},function(w){if(w.getValue().timestamp<=b)return w.delete().then(function(){return g.$u(w)})})}),0)})}; I$m=function(){g.S(function(F){return g.T(F,xr3("LogsDatabaseV2"),0)})}; t4v=function(F){g.Nk("nwl_csi_killswitch")||fA("networkless_performance",F,{sampleRate:1})}; wxa=function(F){return g.ku(uFC(),F)}; MN4=function(F){var J,b;g.S(function(I){if(I.C==1)return g.T(I,wxa(F),2);J=I.U;b=(0,g.jR)()-2592E6;return g.T(I,g.B$(J,["SWHealthLog"],{mode:"readwrite",Em:!0},function(u){return g.Yu(u.objectStore("SWHealthLog"),{},function(w){if(w.getValue().timestamp<=b)return w.delete().then(function(){return g.$u(w)})})}),0)})}; ARv=function(F){var J;return g.S(function(b){if(b.C==1)return g.T(b,wxa(F),2);J=b.U;return g.T(b,J.clear("SWHealthLog"),0)})}; g.Xp=function(F,J,b,I,u,w,M){u=u===void 0?"":u;w=w===void 0?!1:w;M=M===void 0?!1:M;if(F)if(b&&!g.O6())Zk(new g.hC("Legacy referrer-scrubbed ping detected")),F&&q6k(F,void 0,{scrubReferrer:!0});else if(u)d$(F,J,"POST",u,I);else if(g.cT("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||I||M)d$(F,J,"GET","",I,void 0,w,M);else{b:{try{var q=new x5Y({url:F});if(q.D?typeof q.T!=="string"||q.T.length===0?0:{version:3,A9:q.T,EC:EY(q.C,"act=1","ri=1",nIz(q))}:q.W&&{version:4,A9:EY(q.C,"dct=1","suid="+q.Z,""),EC:EY(q.C, "act=1","ri=1","suid="+q.Z)}){var v=Tq(g.$V(5,F));var a=!(!v||!v.endsWith("/aclk")||hz(F,"ri")!=="1");break b}}catch(e){}a=!1}a?v6o(F)?(J&&J(),b=!0):b=!1:b=!1;b||q6k(F,J)}}; v6o=function(F,J){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(F,J===void 0?"":J))return!0}catch(b){}return!1}; q6k=function(F,J,b){b=b===void 0?{}:b;var I=new Image,u=""+a$4++;Qn[u]=I;I.onload=I.onerror=function(){J&&Qn[u]&&J();delete Qn[u]}; b.scrubReferrer&&(I.referrerPolicy="no-referrer");I.src=F}; eyz=function(F){var J;return((J=document.featurePolicy)==null?0:J.allowedFeatures().includes("attribution-reporting"))?F+"&nis=6":F+"&nis=5"}; DD=function(){RK||(RK=new JY("yt.offline"));return RK}; K1z=function(F){if(g.Nk("offline_error_handling")){var J=DD().get("errors",!0)||{};J[F.message]={name:F.name,stack:F.stack};F.level&&(J[F.message].level=F.level);DD().set("errors",J,2592E3,!0)}}; kP=function(){this.C=new Map;this.U=!1}; OZ=function(){if(!kP.instance){var F=g.kC("yt.networkRequestMonitor.instance")||new kP;g.RG("yt.networkRequestMonitor.instance",F);kP.instance=F}return kP.instance}; oK=function(){g.Zr.call(this);var F=this;this.U=!1;this.C=jNz();this.C.listen("networkstatus-online",function(){if(F.U&&g.Nk("offline_error_handling")){var J=DD().get("errors",!0);if(J){for(var b in J)if(J[b]){var I=new g.hC(b,"sent via offline_errors");I.name=J[b].name;I.stack=J[b].stack;I.level=J[b].level;g.nX(I)}DD().set("errors",{},2592E3,!0)}}})}; px4=function(){if(!oK.instance){var F=g.kC("yt.networkStatusManager.instance")||new oK;g.RG("yt.networkStatusManager.instance",F);oK.instance=F}return oK.instance}; g.hB=function(F){F=F===void 0?{}:F;g.Zr.call(this);var J=this;this.C=this.Z=0;this.U=px4();var b=g.kC("yt.networkStatusManager.instance.listen").bind(this.U);b&&(F.rateLimit?(this.rateLimit=F.rateLimit,b("networkstatus-online",function(){g6z(J,"publicytnetworkstatus-online")}),b("networkstatus-offline",function(){g6z(J,"publicytnetworkstatus-offline")})):(b("networkstatus-online",function(){J.dispatchEvent("publicytnetworkstatus-online")}),b("networkstatus-offline",function(){J.dispatchEvent("publicytnetworkstatus-offline")})))}; g6z=function(F,J){F.rateLimit?F.C?(g.D_.q_(F.Z),F.Z=g.D_.Ti(function(){F.T!==J&&(F.dispatchEvent(J),F.T=J,F.C=(0,g.jR)())},F.rateLimit-((0,g.jR)()-F.C))):(F.dispatchEvent(J),F.T=J,F.C=(0,g.jR)()):F.dispatchEvent(J)}; UZ=function(){var F=sZ.call;cr||(cr=new g.hB({dbG:!0,hzG:!0}));F.call(sZ,this,{T7:{B6:bla,wE:JRa,FX:HXC,u4j:LMm,JC:F1m,set:ZX7},zn:cr,handleError:function(J,b,I){var u,w=I==null?void 0:(u=I.error)==null?void 0:u.code;if(w===400||w===415){var M;Zk(new g.hC(J.message,b,I==null?void 0:(M=I.error)==null?void 0:M.code),void 0,void 0,void 0,!0)}else g.nX(J)}, SG:Zk,sendFn:mk7,now:g.jR,xX:K1z,Xa:g.HK(),Cq:"publicytnetworkstatus-online",Nj:"publicytnetworkstatus-offline",lU:!0,sx:.1,V3:g.li("potential_esf_error_limit",10),pW:g.Nk,mF:!(g.Uy()&&g.Cu(document.location.toString())!=="www.youtube-nocookie.com")});this.T=new g.m6;g.Nk("networkless_immediately_drop_all_requests")&&I$m();ndv("LogsDatabaseV2")}; xP=function(){var F=g.kC("yt.networklessRequestController.instance");F||(F=new UZ,g.RG("yt.networklessRequestController.instance",F),g.Nk("networkless_logging")&&g.tY().then(function(J){F.mp=J;hzz(F);F.T.resolve();F.lU&&Math.random()<=F.sx&&F.mp&&MN4(F.mp);g.Nk("networkless_immediately_drop_sw_health_store")&&yRa(F)})); return F}; yRa=function(F){var J;g.S(function(b){if(!F.mp)throw J=g.NP("clearSWHealthLogsDb"),J;return b.return(ARv(F.mp).catch(function(I){F.handleError(I)}))})}; mk7=function(F,J,b,I){I=I===void 0?!1:I;J=g.Nk("web_fp_via_jspb")?Object.assign({},J):J;g.Nk("use_cfr_monitor")&&ilJ(F,J);if(g.Nk("use_request_time_ms_header"))J.headers&&w$(F)&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.jR)())));else{var u;if((u=J.postParams)==null?0:u.requestTimeMs)J.postParams.requestTimeMs=Math.round((0,g.jR)())}b&&Object.keys(J).length===0?g.Xp(F):J.compress?J.postBody?(typeof J.postBody!=="string"&&(J.postBody=JSON.stringify(J.postBody)),Br(F,J.postBody, J,g.E6,I)):Br(F,JSON.stringify(J.postParams),J,jN,I):g.E6(F,J)}; nA=function(F,J){g.Nk("use_event_time_ms_header")&&w$(F)&&(J.headers||(J.headers={}),J.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.jR)())));return J}; ilJ=function(F,J){var b=J.onError?J.onError:function(){}; J.onError=function(u,w){OZ().requestComplete(F,!1);b(u,w)}; var I=J.onSuccess?J.onSuccess:function(){}; J.onSuccess=function(u,w){OZ().requestComplete(F,!0);I(u,w)}}; g.tB=function(F){this.config_=null;F?this.config_=F:gDk()&&(this.config_=g.qK())}; g.ZD=function(F,J,b,I){function u(a){try{if((a===void 0?0:a)&&I.retry&&!I.networklessOptions.bypassNetworkless)w.method="POST",I.networklessOptions.writeThenSend?xP().writeThenSend(v,w):xP().sendAndWrite(v,w);else if(I.compress){var e=!I.networklessOptions.writeThenSend;if(w.postBody){var K=w.postBody;typeof K!=="string"&&(K=JSON.stringify(w.postBody));Br(v,K,w,g.E6,e)}else Br(v,JSON.stringify(w.postParams),w,jN,e)}else g.Nk("web_all_payloads_via_jspb")?g.E6(v,w):jN(v,w)}catch(p){if(p.name==="InvalidAccessError")Zk(Error("An extension is blocking network request.")); else throw p;}} !g.cT("VISITOR_DATA")&&J!=="visitor_id"&&Math.random()<.01&&Zk(new g.hC("Missing VISITOR_DATA when sending innertube request.",J,b,I));if(!F.isReady())throw F=new g.hC("innertube xhrclient not ready",J,b,I),g.nX(F),F;var w={headers:I.headers||{},method:"POST",postParams:b,postBody:I.postBody,postBodyFormat:I.postBodyFormat||"JSON",onTimeout:function(){I.onTimeout()}, onFetchTimeout:I.onTimeout,onSuccess:function(a,e){if(I.onSuccess)I.onSuccess(e)}, onFetchSuccess:function(a){if(I.onSuccess)I.onSuccess(a)}, onError:function(a,e){if(I.onError)I.onError(e)}, onFetchError:function(a){if(I.onError)I.onError(a)}, timeout:I.timeout,withCredentials:!0,compress:I.compress};w.headers["Content-Type"]||(w.headers["Content-Type"]="application/json");b="";var M=F.config_.Yt;M&&(b=M);M=F.config_.n6||!1;var q=EDz(M,b,I);Object.assign(w.headers,q);w.headers.Authorization&&!b&&M&&(w.headers["x-origin"]=window.location.origin);var v=IR(""+b+("/youtubei/"+F.config_.innertubeApiVersion+"/"+J),{alt:"json"});g.kC("ytNetworklessLoggingInitializationOptions")&&zya.isNwlInitialized?Dra().then(function(a){u(a)}):u(!1)}; g.b0=function(F,J,b){var I=g.Hr();if(I&&J){var u=I.subscribe(F,function(){function w(){LA[u]&&J.apply&&typeof J.apply=="function"&&J.apply(b||window,M)} var M=arguments;try{g.FT[F]?w():g.pl(w,0)}catch(q){g.nX(q)}},b); LA[u]=!0;JA[F]||(JA[F]=[]);JA[F].push(u);return u}return 0}; N$m=function(F){var J=g.b0("LOGGED_IN",function(b){F.apply(void 0,arguments);g.Iu(J)})}; g.Iu=function(F){var J=g.Hr();J&&(typeof F==="number"?F=[F]:typeof F==="string"&&(F=[parseInt(F,10)]),g.gy(F,function(b){J.unsubscribeByKey(b);delete LA[b]}))}; g.u0=function(F,J){var b=g.Hr();return b?b.publish.apply(b,arguments):!1}; f$Y=function(F){var J=g.Hr();if(J)if(J.clear(F),F)l$z(F);else for(var b in JA)l$z(b)}; g.Hr=function(){return g.Qz.ytPubsubPubsubInstance}; l$z=function(F){JA[F]&&(F=JA[F],g.gy(F,function(J){LA[J]&&delete LA[J]}),F.length=0)}; g.wP=function(F,J,b){W1J(F,J,b===void 0?null:b)}; W1J=function(F,J,b){b=b===void 0?null:b;var I=dk3(F),u=document.getElementById(I),w=u&&$wz(u),M=u&&!w;w?J&&J():(J&&(w=g.b0(I,J),J=""+g.n3(J),E6J[J]=w),M||(u=jRa(F,I,function(){$wz(u)||(YYY(u),g.u0(I),g.pl(function(){f$Y(I)},0))},b)))}; jRa=function(F,J,b,I){I=I===void 0?null:I;var u=g.H1("SCRIPT");u.id=J;u.onload=function(){b&&setTimeout(b,0)}; u.onreadystatechange=function(){switch(u.readyState){case "loaded":case "complete":u.onload()}}; I&&u.setAttribute("nonce",I);g.k_(u,g.WT(F));F=document.getElementsByTagName("head")[0]||document.body;F.insertBefore(u,F.firstChild);return u}; dk3=function(F){var J=document.createElement("a");g.Sp(J,F);F=J.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+H9(F)}; Mq=function(F,J){if(F===J)F=!0;else if(Array.isArray(F)&&Array.isArray(J))F=g.ay(F,J,Mq);else if(g.Um(F)&&g.Um(J))a:if(g.dl(F).length!=g.dl(J).length)F=!1;else{for(var b in F)if(!Mq(F[b],J[b])){F=!1;break a}F=!0}else F=!1;return F}; vB=function(F){var J=g.Ba.apply(1,arguments);if(!AA(F)||J.some(function(I){return!AA(I)}))throw Error("Only objects may be merged."); J=g.N(J);for(var b=J.next();!b.done;b=J.next())qq(F,b.value)}; qq=function(F,J){for(var b in J)if(AA(J[b])){if(b in F&&!AA(F[b]))throw Error("Cannot merge an object into a non-object.");b in F||(F[b]={});qq(F[b],J[b])}else if(gP(J[b])){if(b in F&&!gP(F[b]))throw Error("Cannot merge an array into a non-array.");b in F||(F[b]=[]);Gk4(F[b],J[b])}else F[b]=J[b];return F}; Gk4=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,AA(b)?F.push(qq({},b)):gP(b)?F.push(Gk4([],b)):F.push(b);return F}; AA=function(F){return typeof F==="object"&&!Array.isArray(F)}; gP=function(F){return typeof F==="object"&&Array.isArray(F)}; mA=function(F){g.R.call(this);this.U=F}; yv=function(F){mA.call(this,!0);this.C=F}; VNa=function(F,J){g.R.call(this);var b=this;this.T=[];this.V=!1;this.U=0;this.D=this.W=this.Z=!1;this.Tj=null;var I=(0,g.tJ)(F,J);this.C=new g.ty(function(){return I(b.Tj)},300); g.k(this,this.C);this.N=this.Y=Infinity}; Pia=function(F,J){if(!J)return!1;for(var b=0;b<J.length;b++){var I=J.item(b);if(I&&F.T.includes(I.identifier))return!0}return!1}; zf=function(F){if(window.crypto&&window.crypto.getRandomValues)try{var J=Array(F),b=new Uint8Array(F);window.crypto.getRandomValues(b);for(var I=0;I<J.length;I++)J[I]=b[I];return J}catch(w){}J=Array(F);for(b=0;b<F;b++){I=Date.now();for(var u=0;u<I%23;u++)J[b]=Math.random();J[b]=Math.floor(Math.random()*256)}if(i0)for(b=1,I=0;I<i0.length;I++)J[b%F]=J[b%F]^J[(b-1)%F]/4^i0.charCodeAt(I),b++;return J}; g.Nq=function(F){F=zf(F);for(var J=[],b=0;b<F.length;b++)J.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[b]&63));return J.join("")}; g.B$k=function(){return g.EG(zf(16),function(F){return(F&15).toString(16)}).join("")}; T$_=function(){var F={};var J=F.vHj===void 0?!1:F.vHj;F=F.HK===void 0?!0:F.HK;if(g.kC("_lact",window)==null){var b=parseInt(g.cT("LACT"),10);b=isFinite(b)?Date.now()-Math.max(b,0):-1;g.RG("_lact",b,window);g.RG("_fact",b,window);b==-1&&l0();g.l8(document,"keydown",l0);g.l8(document,"keyup",l0);g.l8(document,"mousedown",l0);g.l8(document,"mouseup",l0);J?g.l8(window,"touchmove",function(){fJ("touchmove",200)},{passive:!0}):(g.l8(window,"resize",function(){fJ("resize",200)}),F&&g.l8(window,"scroll", function(){fJ("scroll",200)})); new Ey(function(){fJ("mouse",100)}); g.l8(document,"touchstart",l0,{passive:!0});g.l8(document,"touchend",l0,{passive:!0})}}; fJ=function(F,J){WB[F]||(WB[F]=!0,g.D_.Ti(function(){l0();WB[F]=!1},J))}; l0=function(){g.kC("_lact",window)==null&&(T$_(),g.kC("_lact",window));var F=Date.now();g.RG("_lact",F,window);g.kC("_fact",window)==-1&&g.RG("_fact",F,window);(F=g.kC("ytglobal.ytUtilActivityCallback_"))&&F()}; dP=function(){var F=g.kC("_lact",window);return F==null?-1:Math.max(Date.now()-F,0)}; Ew=function(F){this.name=F}; jZ=function(F){this.key=F}; rRJ=function(){var F=this;this.C=new Map;this.T=new Map;this.U=new Map;this.Po={Qvz:function(){return new Map(F.C)}}}; Gf=function(F,J){F.C.set(J.lE,J);var b=F.T.get(J.lE);if(b)try{b.xU(F.resolve(J.lE))}catch(I){b.Vb(I)}}; PB=function(F,J,b,I){I=I===void 0?!1:I;if(b.indexOf(J)>-1)throw Error("Deps cycle for: "+J);if(F.U.has(J))return F.U.get(J);if(!F.C.has(J)){if(I)return;throw Error("No provider for: "+J);}I=F.C.get(J);b.push(J);if(I.fS!==void 0)var u=I.fS;else if(I.cXI)u=I[Vv]?S6z(F,I[Vv],b):[],u=I.cXI.apply(I,g.W(u));else if(I.MB){u=I.MB;var w=u[Vv]?S6z(F,u[Vv],b):[];u=new (Function.prototype.bind.apply(u,[null].concat(g.W(w))))}else throw Error("Could not resolve providers for: "+J);b.pop();I.MyR||F.U.set(J,u); return u}; S6z=function(F,J,b){return J?J.map(function(I){return I instanceof jZ?PB(F,I.key,b,!0):PB(F,I,b)}):[]}; Tf=function(){BB||(BB=new rRJ);return BB}; SZ=function(){var F,J;return"h5vcc"in rP&&((F=rP.h5vcc.traceEvent)==null?0:F.traceBegin)&&((J=rP.h5vcc.traceEvent)==null?0:J.traceEnd)?1:"performance"in rP&&rP.performance.mark&&rP.performance.measure?2:0}; YB=function(F){var J=SZ();switch(J){case 1:rP.h5vcc.traceEvent.traceBegin("YTLR",F);break;case 2:rP.performance.mark(F+"-start");break;case 0:break;default:wU(J,"unknown trace type")}}; sRz=function(F){var J=SZ();switch(J){case 1:rP.h5vcc.traceEvent.traceEnd("YTLR",F);break;case 2:J=F+"-start";var b=F+"-end";rP.performance.mark(b);rP.performance.measure(F,J,b);break;case 0:break;default:wU(J,"unknown trace type")}}; Y6C=function(F){var J,b;(b=(J=window).onerror)==null||b.call(J,F.message,"",0,0,F)}; $k_=function(F){var J=this;var b=b===void 0?0:b;var I=I===void 0?g.HK():I;this.T=b;this.scheduler=I;this.U=new g.m6;this.C=F;for(F={eV:0};F.eV<this.C.length;F={ib:void 0,eV:F.eV},F.eV++)F.ib=this.C[F.eV],b=function(u){return function(){u.ib.Pd();J.C[u.eV].KZ=!0;J.C.every(function(w){return w.KZ===!0})&&J.U.resolve()}}(F),I=nw(b,$B(this,F.ib)),this.C[F.eV]=Object.assign({},F.ib,{Pd:b, jobId:I})}; Ci_=function(F){var J=Array.from(F.C.keys()).sort(function(I,u){return $B(F,F.C[u])-$B(F,F.C[I])}); J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=F.C[b.value],b.jobId===void 0||b.KZ||(F.scheduler.q_(b.jobId),nw(b.Pd,10))}; $B=function(F,J){var b;return(b=J.priority)!=null?b:F.T}; XT=function(F){this.state=F;this.plugins=[];this.T=void 0;this.Z={};CJ&&YB(this.state)}; Xx3=function(F,J){var b=J.filter(function(u){return Qv(F,u)===10}),I=J.filter(function(u){return Qv(F,u)!==10}); return F.Z.qWE?function(){var u=g.Ba.apply(0,arguments);return g.S(function(w){if(w.C==1)return g.T(w,F.qoQ.apply(F,[b].concat(g.W(u))),2);F.u$.apply(F,[I].concat(g.W(u)));g.N4(w)})}:function(){var u=g.Ba.apply(0,arguments); F.DkN.apply(F,[b].concat(g.W(u)));F.u$.apply(F,[I].concat(g.W(u)))}}; Qv=function(F,J){var b,I;return(I=(b=F.T)!=null?b:J.priority)!=null?I:0}; Ru=function(F){CJ&&F&&YB(F)}; Dn=function(F){CJ&&F&&sRz(F)}; RyJ=function(F,J,b){QRv&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+F.constructor.name+"] '"+F.state+"' to '"+J+"'"),console.log("with message: ",b),console.groupEnd())}; kB=function(F){if(g.Nk("web_lifecycle_error_handling_killswitch"))return F();try{return F()}catch(J){Y6C(J)}}; Ow=function(F){XT.call(this,F===void 0?"none":F);this.C=null;this.T=10;this.transitions=[{from:"none",qP:"application_navigating",action:this.D},{from:"application_navigating",qP:"none",action:this.W},{from:"application_navigating",qP:"application_navigating",action:function(){}}, {from:"none",qP:"none",action:function(){}}]}; Dka=function(){ou||(ou=new Ow);return ou}; hA=function(){var F=this;this.store={};this.C=0;this.U={};this.Po={kIW:function(){return F.C}}}; xB=function(F,J){var b=cB(J);if(F.U[b])return F.U[b];var I=Object.keys(F.store)||[];if(I.length<=1&&cB(J)===I[0])return I;for(var u=[],w=0;w<I.length;w++){var M=I[w].split("/");if(Uw(J.auth,M[0])){var q=J.isJspb;Uw(q===void 0?"undefined":q?"true":"false",M[1])&&Uw(J.cttAuthInfo,M[2])&&(q=J.tier,q=q===void 0?"undefined":JSON.stringify(q),Uw(q,M[3])&&u.push(I[w]))}}return F.U[b]=u}; Uw=function(F,J){return F===void 0||F==="undefined"?!0:F===J}; cB=function(F){return[F.auth===void 0?"undefined":F.auth,F.isJspb===void 0?"undefined":F.isJspb,F.cttAuthInfo===void 0?"undefined":F.cttAuthInfo,F.tier===void 0?"undefined":F.tier].join("/")}; nJ=function(){this.Z=this.C=this.U=0;this.T=!1}; tA=function(){var F=g.kC("yt.logging.ims");F||(F=new hA,g.RG("yt.logging.ims",F));return F}; o6m=function(){if(Sk3()&&!kkm){var F=function(b){b=b.data;if(b.op==="serializedGelBatch"){var I=Zn.get(b.key);I&&(Olv(b.serializedBatch,I.client,I.resolve,I.networklessOptions,I.isIsolated,I.useVSSEndpoint,I.dangerousLogToVisitorSession,I.requestsOutstanding),Zn.delete(b.key))}},J=EZ(); J&&(J.addEventListener("message",F),J.onerror=function(){Zn.clear()}); kkm=!0}}; tNz=function(F,J){if(F.endpoint==="log_event"){HB(F);var b=LJ(F),I=hyJ(F.payload)||"",u=cR_(I),w=200;if(u){if(u.enabled===!1&&!g.Nk("web_payload_policy_disabled_killswitch"))return;w=UkY(u.tier);if(w===400){xk3(F,J);return}}Fn[b]=!0;b={cttAuthInfo:b,isJspb:!1,tier:w};tA().storePayload(b,F.payload);n67(J,!1,b,Jk(I))}}; HlG=function(F,J,b){if(J.endpoint==="log_event"){HB(void 0,J);var I=LJ(J,!0),u=cR_(F),w=200;if(u){if(u.enabled===!1&&!g.Nk("web_payload_policy_disabled_killswitch"))return;w=UkY(u.tier);if(w===400){ZlJ(F,J,b);return}}Fn[I]=!0;I={cttAuthInfo:I,isJspb:!0,tier:w};tA().storePayload(I,B3(J.payload));n67(b,!0,I,Jk(F))}}; n67=function(F,J,b,I){function u(){b$({writeThenSend:!0},J,b.tier)} J=J===void 0?!1:J;I=I===void 0?!1:I;F&&(IO=new F);F=g.li("tvhtml5_logging_max_batch_ads_fork")||g.li("tvhtml5_logging_max_batch")||g.li("web_logging_max_batch")||100;var w=(0,g.jR)(),M=u$(J,b.tier),q=M.Z;I&&(M.T=!0);I=0;b&&(I=tA().getSequenceCount(b));I>=1E3?u():I>=F?wQ||(wQ=MY(function(){u();wQ=void 0},0)):w-q>=10&&(L1_(J,b.tier),M.Z=w)}; xk3=function(F,J){if(F.endpoint==="log_event"){g.Nk("more_accurate_gel_parser")&&tA().storePayload({isJspb:!1},F.payload);HB(F);var b=LJ(F),I=new Map;I.set(b,[F.payload]);var u=hyJ(F.payload)||"";J&&(IO=new J);return new g.gb(function(w,M){IO&&IO.isReady()?Fuv(I,IO,w,M,{bypassNetworkless:!0},!0,Jk(u)):w()})}}; ZlJ=function(F,J,b){if(J.endpoint==="log_event"){HB(void 0,J);var I=LJ(J,!0),u=new Map;u.set(I,[B3(J.payload)]);b&&(IO=new b);return new g.gb(function(w){IO&&IO.isReady()?JC7(u,IO,w,{bypassNetworkless:!0},!0,Jk(F)):w()})}}; LJ=function(F,J){var b="";if(F.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(F.cttAuthInfo){if(J===void 0?0:J){J=F.cttAuthInfo.token;b=F.cttAuthInfo;var I=new Ok;b.videoId?I.setVideoId(b.videoId):b.playlistId&&FW(I,2,Ak,W3(b.playlistId));qY[J]=I}else J=F.cttAuthInfo,b={},J.videoId?b.videoId=J.videoId:J.playlistId&&(b.playlistId=J.playlistId),v8[F.cttAuthInfo.token]=b;b=F.cttAuthInfo.token}return b}; b$=function(F,J,b){F=F===void 0?{}:F;J=J===void 0?!1:J;new g.gb(function(I,u){var w=u$(J,b),M=w.T;w.T=!1;aO(w.U);aO(w.C);w.C=0;IO&&IO.isReady()?b===void 0&&g.Nk("enable_web_tiered_gel")?bwG(I,u,F,J,300,M):bwG(I,u,F,J,b,M):(L1_(J,b),I())})}; bwG=function(F,J,b,I,u,w){var M=IO;b=b===void 0?{}:b;I=I===void 0?!1:I;u=u===void 0?200:u;w=w===void 0?!1:w;var q=new Map,v=new Map,a={isJspb:I,cttAuthInfo:void 0,tier:u},e={isJspb:I,cttAuthInfo:void 0};if(I){J=g.N(Object.keys(Fn));for(u=J.next();!u.done;u=J.next())u=u.value,v=g.Nk("enable_web_tiered_gel")?tA().smartExtractMatchingEntries({keys:[a,e],sizeLimit:1E3}):tA().extractMatchingEntries({isJspb:!0,cttAuthInfo:u}),v.length>0&&q.set(u,v),(g.Nk("web_fp_via_jspb_and_json")&&b.writeThenSend||!g.Nk("web_fp_via_jspb_and_json"))&& delete Fn[u];JC7(q,M,F,b,!1,w)}else{q=g.N(Object.keys(Fn));for(a=q.next();!a.done;a=q.next())a=a.value,e=g.Nk("enable_web_tiered_gel")?tA().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:a,tier:u},{isJspb:!1,cttAuthInfo:a}],sizeLimit:1E3}):tA().extractMatchingEntries({isJspb:!1,cttAuthInfo:a}),e.length>0&&v.set(a,e),(g.Nk("web_fp_via_jspb_and_json")&&b.writeThenSend||!g.Nk("web_fp_via_jspb_and_json"))&&delete Fn[a];Fuv(v,M,F,J,b,!1,w)}}; L1_=function(F,J){function b(){b$({writeThenSend:!0},F,J)} F=F===void 0?!1:F;J=J===void 0?200:J;var I=u$(F,J),u=I===Iv7||I===utC?5E3:wKz;g.Nk("web_gel_timeout_cap")&&!I.C&&(u=MY(function(){b()},u),I.C=u); aO(I.U);u=g.cT("LOGGING_BATCH_TIMEOUT",g.li("web_gel_debounce_ms",1E4));g.Nk("shorten_initial_gel_batch_timeout")&&eQ&&(u=M9_);u=MY(function(){g.li("gel_min_batch_size")>0?tA().getSequenceCount({cttAuthInfo:void 0,isJspb:F,tier:J})>=ACz&&b():b()},u); I.U=u}; Fuv=function(F,J,b,I,u,w,M){u=u===void 0?{}:u;var q=Math.round((0,g.jR)()),v=F.size,a=qyz(M);F=g.N(F);var e=F.next();for(M={};!e.done;M={YS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,jX:void 0,RZ:void 0},e=F.next()){var K=g.N(e.value);e=K.next().value;K=K.next().value;M.batchRequest=g.rl({context:g.vr(J.config_||g.qK())});if(!g.ca(K)&&!g.Nk("throw_err_when_logevent_malformed_killswitch")){I();break}M.batchRequest.events=K;(K=v8[e])&&vq3(M.batchRequest,e,K);delete v8[e];M.dangerousLogToVisitorSession= e==="visitorOnlyApprovedKey";ava(M.batchRequest,q,M.dangerousLogToVisitorSession);efJ(u);M.jX=function(p){g.Nk("start_client_gcf")&&g.D_.Ti(function(){return g.S(function(m){return g.T(m,Kuz(p),0)})}); v--;v||b()}; M.YS=0;M.RZ=function(p){return function(){p.YS++;if(u.bypassNetworkless&&p.YS===1)try{g.ZD(J,a,p.batchRequest,KO({writeThenSend:!0},p.dangerousLogToVisitorSession,p.jX,p.RZ,w)),eQ=!1}catch(m){g.nX(m),I()}v--;v||b()}}(M); try{g.ZD(J,a,M.batchRequest,KO(u,M.dangerousLogToVisitorSession,M.jX,M.RZ,w)),eQ=!1}catch(p){g.nX(p),I()}}}; JC7=function(F,J,b,I,u,w){I=I===void 0?{}:I;var M=Math.round((0,g.jR)()),q={value:F.size},v=new Map([].concat(g.W(F)));v=g.N(v);for(var a=v.next();!a.done;a=v.next()){var e=g.N(a.value).next().value,K=F.get(e);a=new DNa;var p=J.config_||g.qK(),m=new YD,y=new V9;yH(y,1,p.aN);yH(y,2,p.jJ);zb(y,16,p.p6);yH(y,17,p.innertubeContextClientVersion);if(p.tQ){var f=p.tQ,d=new j4;f.coldConfigData&&yH(d,1,f.coldConfigData);f.appInstallData&&yH(d,6,f.appInstallData);f.coldHashData&&yH(d,3,f.coldHashData);f.hotHashData&& d.j2(f.hotHashData);Ax(y,j4,62,d)}(f=g.Qz.devicePixelRatio)&&f!=1&&RF(y,65,Mu(f));f=fl();f!==""&&yH(y,54,f);f=Wx();if(f.length>0){d=new TT;for(var G=0;G<f.length;G++){var P=new PT;yH(P,1,f[G].key);FW(P,2,pKY,W3(f[G].value));aM(d,15,PT,P)}Ax(m,TT,5,d)}mj3(p,y);yEC(m);iXo(y);zzJ(p,y);NFz(y);g.Nk("start_client_gcf")&&lkC(y);g.cT("DELEGATED_SESSION_ID")&&!g.Nk("pageid_as_header_web")&&(p=new sk,yH(p,3,g.cT("DELEGATED_SESSION_ID")));!g.Nk("fill_delegate_context_in_gel_killswitch")&&(f=g.cT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (d=MX(m,sk,3)||new sk,p=m,f=yH(d,18,f),Ax(p,sk,3,f));p=y;f=g.N(Object.entries(FF(g.cT("DEVICE",""))));for(d=f.next();!d.done;d=f.next())G=g.N(d.value),d=G.next().value,G=G.next().value,d==="cbrand"?yH(p,12,G):d==="cmodel"?yH(p,13,G):d==="cbr"?yH(p,87,G):d==="cbrver"?yH(p,88,G):d==="cos"?yH(p,18,G):d==="cosver"?yH(p,19,G):d==="cplatform"&&zb(p,42,LUY(G));m.r5(y);Ax(a,YD,1,m);if(y=qY[e])a:{if(y.B1())m=1;else if(y.getPlaylistId())m=2;else break a;Ax(a,Ok,4,y);y=MX(a,YD,1)||new YD;p=MX(y,sk,3)||new sk; f=new S4;f.setToken(e);zb(f,1,m);aM(p,12,S4,f);Ax(y,sk,3,p)}delete qY[e];e=e==="visitorOnlyApprovedKey";pO()||mC(a,2,M);!e&&(m=g.cT("EVENT_ID"))&&(y=gqa(),p=new kD,yH(p,1,m),mC(p,2,y),Ax(a,kD,5,p));efJ(I);if(g.Nk("jspb_serialize_with_worker")&&(m=EZ())&&I.writeThenSend){Zn.set(gQ,{client:J,resolve:b,networklessOptions:I,isIsolated:u,useVSSEndpoint:w,dangerousLogToVisitorSession:e,requestsOutstanding:q});m.postMessage({op:"gelBatchToSerialize",batchRequest:B3(a),clientEvents:K,key:gQ});gQ++;break}if(K){m= [];for(y=0;y<K.length;y++)try{m.push(new Dk(K[y]))}catch(r){g.nX(new g.hC("Transport failed to deserialize "+String(K[y])))}K=m}else K=[];K=g.N(K);for(m=K.next();!m.done;m=K.next())aM(a,3,Dk,m.value);K={startTime:(0,g.jR)(),ticks:{},infos:{}};a=a.G7();K.ticks.geljspc=(0,g.jR)();g.Nk("log_jspb_serialize_latency")&&fA("gel_jspb_serialize",K,{sampleRate:.1});Olv(a,J,b,I,u,w,e,q)}}; Olv=function(F,J,b,I,u,w,M,q){I=I===void 0?{}:I;q=q===void 0?{value:0}:q;w=qyz(w);I=KO(I,M,function(v){g.Nk("start_client_gcf")&&g.D_.Ti(function(){return g.S(function(a){return g.T(a,Kuz(v),0)})}); q.value--;q.value||b()},function(){q.value--; q.value||b()},u); I.headers["Content-Type"]="application/json+protobuf";I.postBodyFormat="JSPB";I.postBody=F;g.ZD(J,w,"",I);eQ=!1}; efJ=function(F){g.Nk("always_send_and_write")&&(F.writeThenSend=!1)}; KO=function(F,J,b,I,u){F={retry:!0,onSuccess:b,onError:I,networklessOptions:F,dangerousLogToVisitorSession:J,gfN:!!u,headers:{},postBodyFormat:"",postBody:"",compress:g.Nk("compress_gel")||g.Nk("compress_gel_lr")};pO()&&(F.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.jR)())));return F}; ava=function(F,J,b){pO()||(F.requestTimeMs=String(J));g.Nk("unsplit_gel_payloads_in_logs")&&(F.unsplitGelPayloadsInLogs=!0);!b&&(J=g.cT("EVENT_ID"))&&(b=gqa(),F.serializedClientEventId={serializedEventId:J,clientCounter:String(b)})}; gqa=function(){var F=g.cT("BATCH_CLIENT_COUNTER")||0;F||(F=Math.floor(Math.random()*65535/2));F++;F>65535&&(F=1);hE("BATCH_CLIENT_COUNTER",F);return F}; vq3=function(F,J,b){if(b.videoId)var I="VIDEO";else if(b.playlistId)I="PLAYLIST";else return;F.credentialTransferTokenTargetId=b;F.context=F.context||{};F.context.user=F.context.user||{};F.context.user.credentialTransferTokens=[{token:J,scope:I}]}; HB=function(F,J){if(!g.kC("yt.logging.transport.enableScrapingForTest")){var b=zk("il_payload_scraping");if((b!==void 0?String(b):"")==="enable_il_payload_scraping")mi=[],g.RG("yt.logging.transport.enableScrapingForTest",!0),g.RG("yt.logging.transport.scrapedPayloadsForTesting",mi),g.RG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.RG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.RG("yt.logging.transport.scrapeClientEvent",!0);else return}b=g.kC("yt.logging.transport.scrapedPayloadsForTesting");var I=g.kC("yt.logging.transport.payloadToScrape");J&&(J=J.payload,(J=g.kC("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(J)())&&b.push(J));J=g.kC("yt.logging.transport.scrapeClientEvent");if(I&&I.length>=1)for(var u=0;u<I.length;u++)if(F&&F.payload[I[u]])if(J)b.push(F.payload);else{var w=void 0;b.push(((w=F)==null?void 0:w.payload)[I[u]])}g.RG("yt.logging.transport.scrapedPayloadsForTesting", b)}; pO=function(){return g.Nk("use_request_time_ms_header")||g.Nk("lr_use_request_time_ms_header")}; MY=function(F,J){return g.Nk("transport_use_scheduler")===!1?g.pl(F,J):g.Nk("logging_avoid_blocking_during_navigation")||g.Nk("lr_logging_avoid_blocking_during_navigation")?g.tC(0,function(){if(Dka().currentState==="none")F();else{var b={};Dka().install((b.none={callback:F},b))}},J):nw(F,0,J)}; aO=function(F){g.Nk("transport_use_scheduler")?g.D_.q_(F):g.m1(F)}; Kuz=function(F){var J,b,I,u,w,M,q,v,a,e;return g.S(function(K){return K.C==1?(I=(J=F)==null?void 0:(b=J.responseContext)==null?void 0:b.globalConfigGroup,u=g.O(I,m1z),M=(w=I)==null?void 0:w.hotHashData,q=g.O(I,yC7),a=(v=I)==null?void 0:v.coldHashData,(e=Tf().resolve(new jZ(MK)))?M?u?g.T(K,ezm(e,M,u),2):g.T(K,ezm(e,M),2):K.gD(2):K.return()):a?q?g.T(K,KMm(e,a,q),0):g.T(K,KMm(e,a),0):K.gD(0)})}; u$=function(F,J){J=J===void 0?200:J;return F?J===300?Iv7:iwo:J===300?utC:zfJ}; cR_=function(F){if(g.Nk("enable_web_tiered_gel")){F=Nm3[F||""];var J,b,I,u=Tf().resolve(new jZ(MK))==null?void 0:(J=AB())==null?void 0:(b=J.loggingHotConfig)==null?void 0:(I=b.eventLoggingConfig)==null?void 0:I.payloadPolicies;if(u)for(J=0;J<u.length;J++)if(u[J].payloadNumber===F)return u[J]}}; hyJ=function(F){F=Object.keys(F);F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,Nm3[J])return J}; UkY=function(F){switch(F){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}}; Jk=function(F){return F==="gelDebuggingEvent"}; qyz=function(F){return(F===void 0?0:F)&&g.Nk("vss_through_gel_video_stats")?"video_stats":"log_event"}; i$=function(F,J,b,I){I=I===void 0?{}:I;var u={},w=Math.round(I.timestamp||(0,g.jR)());u.eventTimeMs=w<Number.MAX_SAFE_INTEGER?w:0;u[F]=J;F=dP();u.context={lastActivityMs:String(I.timestamp||!isFinite(F)?-1:F)};I.sequenceGroup&&!g.Nk("web_gel_sequence_info_killswitch")&&(F=u.context,J=I.sequenceGroup,J={index:lvm(J),groupKey:J},F.sequence=J,I.endOfSequence&&delete y7[I.sequenceGroup]);(I.sendIsolatedPayload?xk3:tNz)({endpoint:"log_event",payload:u,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession}, b)}; lvm=function(F){y7[F]=F in y7?y7[F]+1:0;return y7[F]}; g.AY=function(F,J,b){b=b===void 0?{}:b;var I=g.tB;g.cT("ytLoggingEventsDefaultDisabled",!1)&&g.tB===g.tB&&(I=null);i$(F,J,I,b)}; zd=function(F){this.C=F}; g.NY=function(F){return new zd({trackingParams:F})}; Wua=function(F){var J=fvJ++;return new zd({veType:F,veCounter:J,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})}; d1C=function(F){return g.cT("client-screen-nonce-store",{})[F===void 0?0:F]}; Eq7=function(F,J){J=J===void 0?0:J;var b=g.cT("client-screen-nonce-store");b||(b={},hE("client-screen-nonce-store",b));b[J]=F}; l$=function(F){F=F===void 0?0:F;return F===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+F}; jg7=function(F){return g.cT(l$(F===void 0?0:F))}; g.fO=function(F){return(F=jg7(F===void 0?0:F))?new zd({veType:F,youtubeData:void 0,jspbYoutubeData:void 0}):null}; GD_=function(){var F=g.cT("csn-to-ctt-auth-info");F||(F={},hE("csn-to-ctt-auth-info",F));return F}; V9J=function(){return Object.values(g.cT("client-screen-nonce-store",{})).filter(function(F){return F!==void 0})}; g.W8=function(F){F=d1C(F===void 0?0:F);if(!F&&!g.cT("USE_CSN_FALLBACK",!0))return null;F||(F="UNDEFINED_CSN");return F?F:null}; Bmz=function(F){for(var J=g.N(Object.values(P8m)),b=J.next();!b.done;b=J.next())if(g.W8(b.value)===F)return!0;return!1}; TmY=function(F,J,b){var I=GD_();(b=g.W8(b))&&delete I[b];J&&(I[F]=J)}; dQ=function(F){return GD_()[F]}; SyY=function(F,J,b,I){b=b===void 0?0:b;if(F!==d1C(b)||J!==g.cT(l$(b)))if(TmY(F,I,b),Eq7(F,b),hE(l$(b),J),J=function(){setTimeout(function(){F&&g.AY("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:rCo,clientScreenNonce:F})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(J)}catch(u){J()}else J()}; ET=function(F,J){var b=b===void 0?!0:b;var I=g.cT("VALID_SESSION_TEMPDATA_DOMAINS",[]),u=g.Cu(window.location.href);u&&I.push(u);u=g.Cu(F);if(g.te(I,u)||!u&&Wk(F,"/"))if(I=document.createElement("a"),g.Sp(I,F),F=I.href)if(F=XQ(F),F=f8G(F))if(b&&!J.csn&&(J.itct||J.ved)&&(J=Object.assign({csn:g.W8()},J)),w){var w=parseInt(w,10);isFinite(w)&&w>0&&sgm(F,J,w)}else sgm(F,J)}; sgm=function(F,J,b){F=Yy4(F);J=J?g.kV(J):"";b=b||5;Ft()&&g.Y6(F,J,b)}; Yy4=function(F){for(var J=g.N($1G),b=J.next();!b.done;b=J.next())F=cj(F,b.value);return"ST-"+H9(F).toString(36)}; C8_=function(F){if(F.name==="JavaException")return!0;F=F.stack;return F.includes("chrome://")||F.includes("chrome-extension://")||F.includes("moz-extension://")}; XKC=function(){this.Jg=[];this.D_=[]}; Gd=function(){if(!jQ){var F=jQ=new XKC;F.D_.length=0;F.Jg.length=0;Qg4(F,RfG)}return jQ}; Qg4=function(F,J){J.D_&&F.D_.push.apply(F.D_,J.D_);J.Jg&&F.Jg.push.apply(F.Jg,J.Jg)}; D13=function(F){function J(){return F.charCodeAt(I++)} var b=F.length,I=0;do{var u=V7(J);if(u===Infinity)break;var w=u>>3;switch(u&7){case 0:u=V7(J);if(w===2)return u;break;case 1:if(w===2)return;I+=8;break;case 2:u=V7(J);if(w===2)return F.substr(I,u);I+=u;break;case 5:if(w===2)return;I+=4;break;default:return}}while(I<b)}; V7=function(F){var J=F(),b=J&127;if(J<128)return b;J=F();b|=(J&127)<<7;if(J<128)return b;J=F();b|=(J&127)<<14;if(J<128)return b;J=F();return J<128?b|(J&127)<<21:Infinity}; kD4=function(F,J,b,I){if(F)if(Array.isArray(F)){var u=I;for(I=0;I<F.length&&!(F[I]&&(u+=P8(I,F[I],J,b),u>500));I++);I=u}else if(typeof F==="object")for(u in F){if(F[u]){var w=u;var M=F[u],q=J,v=b;w=typeof M!=="string"||w!=="clickTrackingParams"&&w!=="trackingParams"?0:(M=D13(atob(M.replace(/-/g,"+").replace(/_/g,"/"))))?P8(w+".ve",M,q,v):0;I+=w;I+=P8(u,F[u],J,b);if(I>500)break}}else b[J]=B8(F),I+=b[J].length;else b[J]=B8(F),I+=b[J].length;return I}; P8=function(F,J,b,I){b+="."+F;F=B8(J);I[b]=F;return b.length+F.length}; B8=function(F){try{return(typeof F==="string"?F:String(JSON.stringify(F))).substr(0,500)}catch(J){return"unable to serialize "+typeof F+" ("+J.message+")"}}; MP=function(F){g.Td(F)}; g.rQ=function(F){g.Td(F,"WARNING")}; g.Td=function(F,J){var b=b===void 0?{}:b;b.name=g.cT("INNERTUBE_CONTEXT_CLIENT_NAME",1);b.version=g.cT("INNERTUBE_CONTEXT_CLIENT_VERSION");J=J===void 0?"ERROR":J;var I=!1;J=J===void 0?"ERROR":J;I=I===void 0?!1:I;if(F){F.hasOwnProperty("level")&&F.level&&(J=F.level);if(g.Nk("console_log_js_exceptions")){var u=[];u.push("Name: "+F.name);u.push("Message: "+F.message);F.hasOwnProperty("params")&&u.push("Error Params: "+JSON.stringify(F.params));F.hasOwnProperty("args")&&u.push("Error args: "+JSON.stringify(F.args)); u.push("File name: "+F.fileName);u.push("Stacktrace: "+F.stack);window.console.log(u.join("\n"),F)}if(!(OwY>=5)){u=oqa;var w=V2k(F),M=w.message||"Unknown Error",q=w.name||"UnknownError",v=w.stack||F.U||"Not available";if(v.startsWith(q+": "+M)){var a=v.split("\n");a.shift();v=a.join("\n")}a=w.lineNumber||"Not available";w=w.fileName||"Not available";var e=0;if(F.hasOwnProperty("args")&&F.args&&F.args.length)for(var K=0;K<F.args.length&&!(e=kD4(F.args[K],"params."+K,b,e),e>=500);K++);else if(F.hasOwnProperty("params")&& F.params){var p=F.params;if(typeof F.params==="object")for(K in p){if(p[K]){var m="params."+K,y=B8(p[K]);b[m]=y;e+=m.length+y.length;if(e>500)break}}else b.params=B8(p)}if(u.length)for(K=0;K<u.length&&!(e=kD4(u[K],"params.context."+K,b,e),e>=500);K++);navigator.vendor&&!b.hasOwnProperty("vendor")&&(b["device.vendor"]=navigator.vendor);b={message:M,name:q,lineNumber:a,fileName:w,stack:v,params:b,sampleWeight:1};u=Number(F.columnNumber);isNaN(u)||(b.lineNumber=b.lineNumber+":"+u);if(F.level==="IGNORED")F= 0;else a:{F=Gd();u=g.N(F.D_);for(M=u.next();!M.done;M=u.next())if(M=M.value,b.message&&b.message.match(M.qb)){F=M.weight;break a}F=g.N(F.Jg);for(u=F.next();!u.done;u=F.next())if(u=u.value,u.callback(b)){F=u.weight;break a}F=1}b.sampleWeight=F;F=g.N(hfG);for(u=F.next();!u.done;u=F.next())if(u=u.value,u.Dz[b.name])for(q=g.N(u.Dz[b.name]),M=q.next();!M.done;M=q.next())if(K=M.value,M=b.message.match(K.NL)){b.params["params.error.original"]=M[0];q=K.groups;K={};for(a=0;a<q.length;a++)K[q[a]]=M[a+1],b.params["params.error."+ q[a]]=M[a+1];b.message=u.Vl(K);break}b.params||(b.params={});F=Gd();b.params["params.errorServiceSignature"]="msg="+F.D_.length+"&cb="+F.Jg.length;b.params["params.serviceWorker"]="false";g.Qz.document&&g.Qz.document.querySelectorAll&&(b.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new YM(sa,"sample")).constructor!==YM&&(b.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(b);if(b.sampleWeight!==0&&!cCo.has(b.message)){if(I&& g.Nk("web_enable_error_204"))U14(J===void 0?"ERROR":J,b);else{J=J===void 0?"ERROR":J;J==="ERROR"?(SQ.publish("handleError",b),g.Nk("record_app_crashed_web")&&x1z===0&&b.sampleWeight===1&&(x1z++,I={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.Nk("report_client_error_with_app_crash_ks")||(I.systemHealth={crashData:{clientError:{logMessage:{message:b.message}}}}),g.AY("appCrashed",I)),nqv++):J==="WARNING"&&SQ.publish("handleWarning",b);if(g.Nk("kevlar_gel_error_routing")){I=J;F=void 0;F=F===void 0?{}:F; b:{u=g.N(t97);for(M=u.next();!M.done;M=u.next())if(g.D$(M.value.toLowerCase())){u=!0;break b}u=!1}if(u)F=void 0;else{M={stackTrace:b.stack};b.fileName&&(M.filename=b.fileName);u=b.lineNumber&&b.lineNumber.split?b.lineNumber.split(":"):[];u.length!==0&&(u.length!==1||isNaN(Number(u[0]))?u.length!==2||isNaN(Number(u[0]))||isNaN(Number(u[1]))||(M.lineNumber=Number(u[0]),M.columnNumber=Number(u[1])):M.lineNumber=Number(u[0]));u={level:"ERROR_LEVEL_UNKNOWN",message:b.message,errorClassName:b.name,sampleWeight:b.sampleWeight}; I==="ERROR"?u.level="ERROR_LEVEL_ERROR":I==="WARNING"&&(u.level="ERROR_LEVEL_WARNNING");M={isObfuscated:!0,browserStackInfo:M};F.pageUrl=window.location.href;F.kvPairs=[];g.cT("FEXP_EXPERIMENTS")&&(F.experimentIds=g.cT("FEXP_EXPERIMENTS"));q=g.cT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Uk("web_disable_gel_stp_ecatcher_killswitch")&&q)for(K=g.N(Object.keys(q)),a=K.next();!a.done;a=K.next())a=a.value,F.kvPairs.push({key:a,value:String(q[a])});if(q=b.params)for(K=g.N(Object.keys(q)),a=K.next();!a.done;a= K.next())a=a.value,F.kvPairs.push({key:"client."+a,value:String(q[a])});q=g.cT("SERVER_NAME");K=g.cT("SERVER_VERSION");q&&K&&(F.kvPairs.push({key:"server.name",value:q}),F.kvPairs.push({key:"server.version",value:K}));F={errorMetadata:F,stackTrace:M,logMessage:u}}if(F&&(g.AY("clientError",F),I==="ERROR"||g.Nk("errors_flush_gel_always_killswitch")))a:{if(g.Nk("web_fp_via_jspb")){I=!0;I=I===void 0?!1:I;F=Zw_;Zw_=[];if(F)for(F=g.N(F),u=F.next();!u.done;u=F.next())u=u.value,I?i$(u.payloadName,u.payload, g.tB,u.options):g.AY(u.payloadName,u.payload,u.options);b$(void 0,!0);if(!g.Nk("web_fp_via_jspb_and_json"))break a}b$(void 0,!1)}}g.Nk("suppress_error_204_logging")||U14(J,b)}try{cCo.add(b.message)}catch(f){}OwY++}}}}; U14=function(F,J){var b=J.params||{};F={urlParams:{a:"logerror",t:"jserror",type:J.name,msg:J.message.substr(0,250),line:J.lineNumber,level:F,"client.name":b.name},postParams:{url:g.cT("PAGE_NAME",window.location.href),file:J.fileName},method:"POST"};b.version&&(F["client.version"]=b.version);if(F.postParams){J.stack&&(F.postParams.stack=J.stack);J=g.N(Object.keys(b));for(var I=J.next();!I.done;I=J.next())I=I.value,F.postParams["client."+I]=b[I];if(b=g.cT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(J= g.N(Object.keys(b)),I=J.next();!I.done;I=J.next())I=I.value,F.postParams[I]=b[I];(b=g.cT("LAVA_VERSION"))&&(F.postParams["lava.version"]=b);b=g.cT("SERVER_NAME");J=g.cT("SERVER_VERSION");b&&J&&(F.postParams["server.name"]=b,F.postParams["server.version"]=J)}g.E6(g.cT("ECATCHER_REPORT_HOST","")+"/error_204",F)}; Hw_=function(F){var J=g.Ba.apply(1,arguments);F.args||(F.args=[]);F.args.push.apply(F.args,g.W(J))}; $W=function(F){var J=g.O(F,sT);if(J)return J;if((J=g.O(F,Lua))&&J.commands)return FHm(J.commands);if((J=g.O(F,JY_))&&J.commands)return FHm(J.commands);if((F=g.O(F,bDG))&&F.identifier&&F.command&&(YW||(YW=[]),!YW.includes(F.identifier)))return YW.push(F.identifier),g.O(F.command,sT)}; FHm=function(F){if(F.length!==0){var J=[];F=g.N(F);for(var b=F.next();!b.done;b=F.next())(b=$W(b.value))&&J.push(b);return{commandExecutorCommand:{commands:J}}}}; g.CO=function(F,J,b){b===void 0?delete F[J.name]:F[J.name]=b}; IZ_=function(F){for(var J=0,b=0;b<F.length;b++)J=J*31+F.charCodeAt(b),b<F.length-1&&(J%=0x800000000000);return J%1E5}; Xn=function(F){e6.call(this,1,arguments);this.csn=F}; w$_=function(F,J,b,I,u,w,M,q){var v=uso(),a=new zd({veType:J,youtubeData:w,jspbYoutubeData:void 0});w=Q7({},v);u&&(w.cttAuthInfo=u);u={csn:v,pageVe:a.getAsJson()};g.Nk("expectation_logging")&&q&&q.screenCreatedLoggingExpectations&&(u.screenCreatedLoggingExpectations=q.screenCreatedLoggingExpectations);b&&b.visualElement?(u.implicitGesture={parentCsn:b.clientScreenNonce,gesturedVe:b.visualElement.getAsJson()},M&&(u.implicitGesture.gestureType=M)):b&&g.rQ(new g.hC("newScreen() parent element does not have a VE - rootVe", J));I&&(u.cloneCsn=I);F?i$("screenCreated",u,F,w):g.AY("screenCreated",u,w);gL(jpJ,new Xn(v));RO.clear();D4.clear();kW.clear();return v}; g.oO=function(F,J,b,I,u){g.OT(F,J,b,[I],u===void 0?!1:u)}; g.OT=function(F,J,b,I,u){u=u===void 0?!1:u;for(var w=Q7({cttAuthInfo:dQ(J)||void 0},J),M=g.N(I),q=M.next();!q.done;q=M.next()){q=q.value;var v=q.getAsJson();(g.Vj(v)||!v.trackingParams&&!v.veType)&&g.rQ(Error("Child VE logged with no data"));if(g.Nk("no_client_ve_attach_unless_shown")){var a=hk(q,J);if(v.veType&&!D4.has(a)&&!kW.has(a)&&!u){if(!g.Nk("il_attach_cache_limit")||RO.size<1E3){RO.set(a,[F,J,b,q]);return}g.Nk("il_attach_cache_limit")&&RO.size>1E3&&g.rQ(new g.hC("IL Attach cache exceeded limit"))}q= hk(b,J);RO.has(q)?c8(b,J):kW.set(q,!0)}}I=I.filter(function(e){e.csn!==J?(e.csn=J,e=!0):e=!1;return e}); b={csn:J,parentVe:b.getAsJson(),childVes:g.EG(I,function(e){return e.getAsJson()})}; J==="UNDEFINED_CSN"?UT("visualElementAttached",w,b):F?i$("visualElementAttached",b,F,w):g.AY("visualElementAttached",b,w)}; MR3=function(F,J,b,I,u){xW(b,J);I=Q7({cttAuthInfo:dQ(J)||void 0},J);b={csn:J,ve:b.getAsJson(),eventType:1};u&&(b.clientData=u);J==="UNDEFINED_CSN"?UT("visualElementShown",I,b):F?i$("visualElementShown",b,F,I):g.AY("visualElementShown",b,I)}; AYk=function(F,J,b,I){var u=(I=I===void 0?!1:I)?16:8;I=Q7({cttAuthInfo:dQ(J)||void 0,endOfSequence:I},J);b={csn:J,ve:b.getAsJson(),eventType:u};J==="UNDEFINED_CSN"?UT("visualElementHidden",I,b):F?i$("visualElementHidden",b,F,I):g.AY("visualElementHidden",b,I)}; ql7=function(F,J,b,I,u){nO(F,J,b,void 0,I,u)}; nO=function(F,J,b,I,u){xW(b,J);I=I||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var w=Q7({cttAuthInfo:dQ(J)||void 0},J);b={csn:J,ve:b.getAsJson(),gestureType:I};u&&(b.clientData=u);J==="UNDEFINED_CSN"?UT("visualElementGestured",w,b):F?i$("visualElementGestured",b,F,w):g.AY("visualElementGestured",b,w)}; vuv=function(){var F=zf(16);for(var J=[],b=0;b<F.length;b++)J.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[b]&63));return J.join("")}; UT=function(F,J,b){tk.push({payloadName:F,payload:b,qTG:void 0,options:J});Z4||(Z4=TFY())}; PJv=function(F){if(tk){for(var J=g.N(tk),b=J.next();!b.done;b=J.next())b=b.value,b.payload&&(b.payload.csn=F.csn,g.AY(b.payloadName,b.payload,b.options));tk.length=0}Z4=0}; hk=function(F,J){return""+F.getAsJson().veType+F.getAsJson().veCounter+J}; xW=function(F,J){if(g.Nk("no_client_ve_attach_unless_shown")){var b=hk(F,J);D4.set(b,!0);c8(F,J)}}; c8=function(F,J){F=hk(F,J);RO.has(F)&&(J=RO.get(F)||[],g.oO(J[0],J[1],J[2],J[3],!0),RO.delete(F))}; Q7=function(F,J){g.Nk("log_sequence_info_on_gel_web")&&(F.sequenceGroup=J);return F}; g.H8=function(F,J,b,I){g.tE(MR3)(void 0,F,J,b,I,void 0)}; g.LO=function(F,J){g.tE(function(){g.gy(J,function(b){xW(b,F);var I=Q7({cttAuthInfo:dQ(F)||void 0},F);b={csn:F,ve:b.getAsJson(),eventType:4};F==="UNDEFINED_CSN"?UT("visualElementShown",I,b):g.AY("visualElementShown",b,I)})})()}; g.FX=function(F,J){g.tE(function(){g.gy(J,function(b){AYk(void 0,F,b)})})()}; g.Jr=function(F,J,b){g.tE(ql7)(void 0,F,J,b,void 0)}; I4=function(F,J,b,I,u,w){b=b===void 0?{}:b;this.componentType=F;this.renderer=J===void 0?null:J;this.macros=b;this.layoutId=I;this.interactionLoggingClientData=u;this.C=w;this.id=bA(F)}; bA=function(F){var J=":"+(QN.getInstance().C++).toString(36);return F+J}; g.uA=function(F){F=F===void 0?!1:F;g.R.call(this);this.jm=new g.EJ(F);g.k(this,this.jm)}; wV=function(){var F="ytp-id-"+aZk.toString();aZk++;return F}; g.Mc=function(F){g.R.call(this);this.Q2={};this.Vk={};this.element=this.createElement(F)}; Ar=function(F,J,b,I){if(I.substring(0,2)==="{{")F.Vk[I]=[J,b];else return I}; eUz=function(F,J){var b=[];if(!J)return b;J=g.N(J);for(var I=J.next();!I.done;I=J.next())if(I=I.value,I!=null){var u=I.nodeType;u===1||u===3?b.push(I):I&&typeof I.X==="string"?b.push(F.createElement(I)):I.element?b.push(I.element):typeof I==="string"&&I.indexOf("\n")!==-1?I.split("\n").forEach(function(w,M){M>0&&b.push(g.H1("BR"));b.push(g.L$(w))}):b.push(g.L$(I))}return b}; qc=function(F,J,b,I){if(b==="child"){g.J6(J);var u;I===void 0?u=void 0:u=!Array.isArray(I)||I&&typeof I.X==="string"?[I]:I;b=eUz(F,u);b=g.N(b);for(F=b.next();!F.done;F=b.next())J.appendChild(F.value)}else b==="style"?g.aN(J,"cssText",I?I:""):I===null||I===void 0?J.removeAttribute(b):(F=I.toString(),b==="href"&&(F=g.VG(g.Ty(F))),J.setAttribute(b,F))}; g.U=function(F){g.Mc.call(this,F);this.uT=!0;this.D=!1;this.listeners=[]}; g.vi=function(F){g.U.call(this,F);this.zj=new g.uA;g.k(this,this.zj)}; a4=function(F,J,b,I,u,w,M){M=M===void 0?null:M;g.vi.call(this,J);this.api=F;this.macros={};this.componentType=b;this.V=this.Y=null;this.cN=M;this.layoutId=I;this.interactionLoggingClientData=u;this.vN=w;this.Jz=null;this.bP=new yv(this.element);g.k(this,this.bP);this.bR=this.B(this.element,"click",this.onClick);this.kQ=[];this.Gj=new VNa(this.onClick,this);g.k(this,this.Gj);this.Um=!1;this.fW=this.Tj=null}; e0=function(F,J){F=F===void 0?null:F;J=J===void 0?null:J;if(F==null)return g.rQ(Error("Got null or undefined adText object")),"";var b=g.Zi(F.text);if(!F.isTemplated)return b;if(J==null)return g.rQ(Error("Missing required parameters for a templated message")),b;F=g.N(Object.entries(J));for(J=F.next();!J.done;J=F.next()){var I=g.N(J.value);J=I.next().value;I=I.next().value;b=b.replace("{"+J+"}",I)}return b}; KHo=function(F){F=F===void 0?null:F;return F!=null&&(F=F.thumbnail,F!=null&&F.thumbnails!=null&&F.thumbnails.length!=0&&F.thumbnails[0].url!=null)?g.Zi(F.thumbnails[0].url):""}; p$z=function(F){F=F===void 0?null:F;return F!=null&&(F=F.thumbnail,F!=null&&F.thumbnails!=null&&F.thumbnails.length!=0&&F.thumbnails[0].width!=null&&F.thumbnails[0].height!=null)?new g.gl(F.thumbnails[0].width||0,F.thumbnails[0].height||0):new g.gl(0,0)}; g.Kr=function(F){if(F.simpleText)return F.simpleText;if(F.runs){var J=[];F=g.N(F.runs);for(var b=F.next();!b.done;b=F.next())b=b.value,b.text&&J.push(b.text);return J.join("")}return""}; g.pr=function(F){if(F.simpleText)return F=document.createTextNode(F.simpleText),F;var J=[];if(F.runs)for(var b=0;b<F.runs.length;b++){var I=F.runs[b];if(I.text){var u=J,w=u.push,M=null;var q=I.text;I.bold&&(M=Z8("B",null,M||q));I.italics&&(M=Z8("I",null,M||q));I.strikethrough&&(M=Z8("STRIKE",null,M||q));I.navigationEndpoint&&I.navigationEndpoint.urlEndpoint&&(I=I.navigationEndpoint.urlEndpoint,M=Z8("A",null,M||q),g.Sp(M,I.url),I.target=="TARGET_NEW_WINDOW"&&(M.target="_blank"));q=M||Z8("SPAN",null, q);w.call(u,q)}}return J.length==1?J[0]:Z8("SPAN",null,J)}; g.guG=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}}; gV=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",L:{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.mh=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},j:[{X:"path",L:{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.yr=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},j:[{X:"path",L:{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"}}]}}; mPC=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{X:"path",L:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{X:"path",L:{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"}}]}}; yYa=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{X:"path",G1:!0,L:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; iDo=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{X:"path",G1:!0,L:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; g.iA=function(){return{X:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{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"}}]}}; zU7=function(){return{X:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",L:{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"}}]}}; NZJ=function(){return{X:"svg",L:{viewBox:"0 0 24 24"},j:[{X:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",L:{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"}}]}}; lZJ=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; fZ_=function(){return{X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{"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"}}]}}; WHo=function(){return{X:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},j:[{X:"path",L:{d:"M0 0h48v48H0z",fill:"none"}},{X:"path",L:{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"}}]}}; dPk=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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"}}]}}; Eu3=function(){return{X:"svg",L:{viewBox:"0 0 24 24"},j:[{X:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",L:{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"}}]}}; zh=function(){return{X:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",L:{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"}}]}}; jek=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{X:"path",G1:!0,L:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; Nc=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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.lA=function(){return{X:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{X:"path",L:{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"}}]}}; fr=function(){return{X:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},j:[{X:"path",L:{d:"M0 0h48v48H0z",fill:"none"}},{X:"path",L:{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"}}]}}; Gl3=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; VRz=function(){return{X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",K:"ytp-svg-fill",L:{"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"}}]}}; Pak=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}}; Wi=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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"}}]}}; BZ7=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; g.dV=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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.Ej=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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.j0=function(){return{X:"svg",L:{height:"100%",viewBox:"0 0 16 16",width:"100%"},j:[{X:"path",L:{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"}}]}}; TZz=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; Gh=function(){return{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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"}}]}}; Vr=function(F,J,b){J=J===void 0?!1:J;b=b===void 0?!1:b;if(!F)return null;switch(F.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return b?{X:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:fr();case "CHECK_BOX":return{X:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",L:{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{X:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{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"}},{X:"path",L:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.iA();case "INFO_OUTLINE":return J?{X:"svg",L:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},j:[{X:"path",L:{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"}}]}: WHo();case "REMOVE_CIRCLE":return{X:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",L:{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 Nc();case "SKIP_NEXT_NEW":return{X:"svg",L:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},j:[{X:"path",L:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return Eu3(); case "DISLIKE":return NZJ();default:return g.rQ(new g.hC("Unexpected icon:",F)),null}}; Pi=function(F,J,b,I,u,w,M,q,v){u=u===void 0?[]:u;M=M===void 0?!1:M;v=v===void 0?!1:v;u={X:"button",Dv:["ytp-ad-button"].concat(u)};q!=null&&(u.L={tabindex:q});a4.call(this,F,u,w===void 0?"button":w,J,b,I);this.C=this.U=this.T=null;this.W=M;this.Z=v;this.hide()}; rYY=function(F){var J=null;F.C!=null&&(J=[F.C.serviceEndpoint,F.C.navigationEndpoint].filter(function(b){return b!=null}),F.C.command&&(J=J.concat(F.C.command))); return J||[]}; Bi=function(){g.R.call(this);var F=this;this.C=new Map;this.U=Uw_(function(J){if(J.target&&(J=F.C.get(J.target))&&J)for(var b=0;b<J.length;b++)g.Xp(J[b])})}; Slv=function(){Th==null&&(Th=new Bi);return Th}; rV=function(F,J){if(F.simpleText){a:{F=F.simpleText;if(J&&(J=sea(F))){J=Z8("SPAN",null,J);break a}J=g.L$(F)}return J}var b=[];if(F.runs)for(var I=0;I<F.runs.length;I++){var u=F.runs[I];u.text&&b.push(Ylm(u,J))}return b.length==1?b[0]:Z8("SPAN",null,b)}; Ylm=function(F,J){var b=null,I=F.text;J&&(I=sea(I)||I);F.bold&&(b=Z8("B",null,b||I));F.italics&&(b=Z8("I",null,b||I));F.strikethrough&&(b=Z8("STRIKE",null,b||I));F.navigationEndpoint&&g.O(F.navigationEndpoint,g.S0)&&(J=g.O(F.navigationEndpoint,g.S0),b=Z8("A",null,b||I),g.Sp(b,J.url),J.target=="TARGET_NEW_WINDOW"&&(b.target="_blank"),F=F.navigationEndpoint.loggingUrls)&&(F=F.map(function(u){return u.baseUrl}),Slv().register(b,F),g.uG(b,"ytp-ad-has-logging-urls")); return b||Z8("SPAN",null,I)}; sea=function(F){F=F.split(/(?:\r\n|\r|\n)/g);if(F.length>1){for(var J=[F[0]],b=1;b<F.length;b++)J.push(Z8("BR")),J.push(F[b]);return J}return null}; sj=function(F,J,b,I,u,w,M,q,v){w=w===void 0?!1:w;M=M===void 0?[]:M;v=v===void 0?!1:v;a4.call(this,F,{X:"span",Dv:["ytp-ad-hover-text-button"].concat(M)},q===void 0?"ad-hover-text-button":q,J,b,I);this.button=this.U=null;this.N=w;this.W=u;this.T=v;this.hide()}; YS=function(F){return F&&F.thumbnails&&(F.thumbnails||null).length!=0&&F.thumbnails[0].url?g.Zi(F.thumbnails[0].url):""}; $S=function(F,J,b,I,u,w){w=w===void 0?!1:w;a4.call(this,F,{X:"img",K:"ytp-ad-image"},"ad-image",J,b,I,u===void 0?null:u);this.C=w;this.hide()}; Cr=function(F,J,b,I,u,w){u=u===void 0?[]:u;a4.call(this,F,{X:"div",Dv:["ytp-ad-confirm-dialog-background"],j:[{X:"div",K:"ytp-ad-confirm-dialog-container",j:[{X:"div",Dv:["ytp-ad-confirm-dialog"].concat(u),L:{role:"dialog",tabindex:"-1"},j:[{X:"div",K:"ytp-ad-confirm-dialog-title",sQ:"{{title}}"},{X:"div",K:"ytp-ad-confirm-dialog-messages"},{X:"div",K:"ytp-ad-confirm-dialog-confirm-container",j:[{X:"button",K:"ytp-ad-confirm-dialog-cancel-button",sQ:"{{cancelLabel}}"},{X:"button",K:"ytp-ad-confirm-dialog-confirm-button", sQ:"{{confirmLabel}}"}]}]}]},{X:"button",Dv:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],j:[{X:"span",K:"ytp-ad-button-icon",j:[g.iA()]}]}]},w===void 0?"confirm-dialog":w,J,b,I);this.N=this.RI("ytp-ad-confirm-dialog-close-overlay-button");this.Z=this.RI("ytp-ad-confirm-dialog-cancel-button");this.W=this.RI("ytp-ad-confirm-dialog-confirm-button");this.eE=this.RI("ytp-ad-confirm-dialog-messages");this.T=null;this.C=new j9;g.k(this,this.C);this.U=null;this.hide()}; $PY=function(F,J){if(J.title){var b=g.Kr(J.title);F.updateValue("title",b)}if(J.dialogMessages){b=g.N(J.dialogMessages);for(var I=b.next();!I.done;I=b.next())I=rV(I.value),F.eE.appendChild(I)}J.cancelLabel&&(b=g.Kr(J.cancelLabel),F.updateValue("cancelLabel",b),F.C.B(F.Z,"click",function(u){return F.S8(u)})); J.confirmLabel&&(J=g.Kr(J.confirmLabel),F.updateValue("confirmLabel",J),F.C.B(F.W,"click",function(u){return F.Zs(u)})); F.C.B(F.N,"click",function(u){return F.eX(u)})}; XX=function(F,J,b,I,u,w){u=u===void 0?[]:u;w=w===void 0?"toggle-button":w;var M=bA("ytp-ad-toggle-button-input"),q={role:"button","aria-label":"{{tooltipText}}"};F.J().experiments.pW("fix_h5_toggle_button_a11y")&&(q.tabindex="0");F.J().experiments.pW("fix_toggle_button_role_for_ad_components")&&(q.role="checkbox");a4.call(this,F,{X:"div",Dv:["ytp-ad-toggle-button"].concat(u),j:[{X:"label",K:"ytp-ad-toggle-button-label",L:{"for":M},j:[{X:"span",K:"ytp-ad-toggle-button-icon",L:q,j:[{X:"span",K:"ytp-ad-toggle-button-untoggled-icon", sQ:"{{untoggledIconTemplateSpec}}"},{X:"span",K:"ytp-ad-toggle-button-toggled-icon",sQ:"{{toggledIconTemplateSpec}}"}]},{X:"input",K:"ytp-ad-toggle-button-input",L:{id:M,type:"checkbox"}},{X:"span",K:"ytp-ad-toggle-button-text",sQ:"{{buttonText}}"},{X:"span",K:"ytp-ad-toggle-button-tooltip",sQ:"{{tooltipText}}"}]}]},w,J,b,I);this.Z=this.RI("ytp-ad-toggle-button");this.C=this.RI("ytp-ad-toggle-button-input");this.U=this.RI("ytp-ad-toggle-button-icon");this.N=this.RI("ytp-ad-toggle-button-untoggled-icon"); this.W=this.RI("ytp-ad-toggle-button-toggled-icon");this.WN=this.RI("ytp-ad-toggle-button-text");this.T=null;this.eE=!1;this.hide()}; Qr=function(F){F.eE&&(F.isToggled()?(g.Wc(F.N,!1),g.Wc(F.W,!0),F.api.J().experiments.pW("fix_toggle_button_role_for_ad_components")&&F.U.setAttribute("aria-checked",!0)):(g.Wc(F.N,!0),g.Wc(F.W,!1),F.api.J().experiments.pW("fix_toggle_button_role_for_ad_components")&&F.U.setAttribute("aria-checked",!1)))}; Caz=function(F,J){var b=null;F.T&&(b=(J?[F.T.defaultServiceEndpoint,F.T.defaultNavigationEndpoint]:[F.T.toggledServiceEndpoint]).filter(function(I){return I!=null})); return b||[]}; X$C=function(F,J,b){this.actionType=J;this.id=b;this.content=F}; R4=function(F){j9.call(this);this.C=F;this.B(this.C,"onAdUxUpdate",this.W)}; DU=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-feedback-dialog-background",j:[{X:"div",K:"ytp-ad-feedback-dialog-container",j:[{X:"div",K:"ytp-ad-feedback-dialog-form",L:{role:"dialog",tabindex:"-1"},j:[{X:"div",K:"ytp-ad-feedback-dialog-title",j:[{X:"span",sQ:"{{title}}"}]},{X:"span",K:"ytp-ad-info-dialog-feedback-options-title",sQ:"{{reasonsTitle}}"},{X:"div",K:"ytp-ad-info-dialog-feedback-options"},{X:"div",K:"ytp-ad-feedback-dialog-confirm-container",j:[{X:"button",K:"ytp-ad-feedback-dialog-cancel-button", sQ:"{{cancelLabel}}"},{X:"button",K:"ytp-ad-feedback-dialog-confirm-button",sQ:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",J,b,I);this.Z=[];this.C=null;this.W=this.RI("ytp-ad-feedback-dialog-cancel-button");this.N=this.RI("ytp-ad-feedback-dialog-confirm-button");this.eE=this.RI("ytp-ad-info-dialog-feedback-options");this.WN=this.RI("ytp-ad-feedback-dialog-title");this.T=this.U=null;this.hide()}; kl_=function(F,J){var b=J.cancelRenderer&&J.cancelRenderer.buttonRenderer||null;b&&(F.C=new Pi(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,["ytp-ad-feedback-dialog-close-button"],"button"),g.k(F,F.C),F.C.init(bA("button"),b,F.macros),F.C.listen("click",F.kP,F),F.C.Az(F.element));J.title&&(b=g.Kr(J.title),F.updateValue("title",b));J.reasonsTitle&&(b=g.Kr(J.reasonsTitle),F.updateValue("reasonsTitle",b));J.reasons&&Qe4(F,J.reasons);J.cancelLabel&&(b=g.Kr(J.cancelLabel),F.updateValue("cancelLabel", b),g.l8(F.W,"click",function(){return F.kP()})); J.confirmLabel&&(b=g.Kr(J.confirmLabel),F.updateValue("confirmLabel",b),g.l8(F.N,"click",function(){return RUJ(F)})); J.undoRenderer&&DPa(F,J.undoRenderer)}; Qe4=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){var I=b.value;b=I.reason;if(b==null)g.rQ(Error("AdFeedbackReason.reason was not set."));else if(I=I.endpoint,I==null)g.rQ(Error("AdFeedbackReason.endpoint was not set."));else{b=new kS(b,I);g.k(F,b);I=F.eE;var u=b.Pb();I.appendChild(u);F.Z.push(b)}}}; DPa=function(F,J){if(J=J&&J.buttonRenderer||null)J.serviceEndpoint?(F.U=new Pi(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.k(F,F.U),F.U.init(bA("ad-feedback-undo-mute-button"),J,F.macros),F.U.listen("click",F.GUv,F),F.U.Az(F.WN)):g.rQ(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; RUJ=function(F){var J=F.Z.filter(function(b){return b.isChecked()}); J.length!==0&&(J=J[0].getCommand(),F.layoutId?F.vN.executeCommand(J,F.layoutId):g.Td(Error("Missing layoutId for ad feedback dialog.")),F.api.onAdUxClicked("ad-feedback-dialog-confirm-button",F.layoutId),F.publish("a"),F.hide())}; kS=function(F,J){this.U=J;this.C=new g.vi({X:"label",K:"ytp-ad-feedback-dialog-reason-label",j:[{X:"input",K:"ytp-ad-feedback-dialog-reason-input",L:{type:"radio",name:"feedback-reason-group"}},{X:"span",K:"ytp-ad-feedback-dialog-reason-text",sQ:g.Kr(F)}]});this.T=this.C.RI("ytp-ad-feedback-dialog-reason-input")}; Oj=function(F,J,b,I){Cr.call(this,F,J,b,I,[],"ad-mute-confirm-dialog")}; o4=function(F,J,b,I,u){a4.call(this,F,{X:"div",K:"ytp-ad-info-dialog-background",j:[{X:"div",K:"ytp-ad-info-dialog-container",j:[{X:"div",K:"ytp-ad-info-dialog-form",L:{role:"dialog",tabindex:"-1"},j:[{X:"div",K:"ytp-ad-info-dialog-title",sQ:"{{title}}"},{X:"ul",K:"ytp-ad-info-dialog-ad-reasons"},{X:"div",K:"ytp-ad-info-dialog-message"},{X:"div",K:"ytp-ad-info-dialog-mute-container"},{X:"div",K:"ytp-ad-info-dialog-confirm-container",j:[{X:"button",K:"ytp-ad-info-dialog-confirm-button",sQ:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",J,b,I);this.C=this.U=null;this.N=this.RI("ytp-ad-info-dialog-confirm-button");this.oI=this.RI("ytp-ad-info-dialog-mute-container");this.KW=this.RI("ytp-ad-info-dialog-message");this.qf=this.RI("ytp-ad-info-dialog-ad-reasons");this.Z=this.T=null;this.WN=u;this.W=null;this.dD=!1;this.eE=null;this.hide()}; ODk=function(F,J){if(J=J.content&&J.content.adFeedbackRenderer||null)F.U=new DU(F.api,F.layoutId,F.interactionLoggingClientData,F.vN),g.k(F,F.U),F.U.init(bA("ad-feedback-dialog"),J,F.macros),F.U.Az(F.WN),F.U.subscribe("a",function(){return F.publish("c")})}; ouC=function(F,J){if(J=J.content&&J.content.confirmDialogRenderer||null)F.Z=new Oj(F.api,F.layoutId,F.interactionLoggingClientData,F.vN),g.k(F,F.Z),F.Z.init(bA("ad-mute-confirm-dialog"),J,F.macros),F.Z.Az(F.WN),F.Z.subscribe("b",function(){return F.publish("c")})}; hU4=function(F){F.C&&F.C.listen("click",F.Ve,F);g.l8(F.N,"click",function(){return F.Ve()})}; hr=function(F,J,b,I,u,w,M){sj.call(this,F,J,b,I,w===void 0?!0:w,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",M===void 0?!1:M);this.C=null;this.Z=u;this.hide()}; UPa=function(F,J,b){J=J.dialog&&g.O(J.dialog,cY4)||null;J==null?g.Td(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(F.C=new o4(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.Z),g.k(F,F.C),F.C.init(bA("ad-info-dialog"),J,b),F.C.Az(F.Z),F.C.subscribe("d",function(){return F.publish("f")}),F.C.subscribe("c",function(){return F.publish("e")}))}; tR_=function(F,J,b){F.button==null?g.Td(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(F.U&&g.uG(F.U.element,"ytp-ad-info-hover-text-short"),(J=J&&J.serviceEndpoint&&g.O(J.serviceEndpoint,xPC)||null)?(UPa(F,J,b),F.button.listen("click",function(){F.C&&!F.C.uT&&(F.C.show(),nua(F))})):F.button.listen("click",function(){return nua(F)}))}; nua=function(F){F.api.onAdUxClicked("ad-info-icon-button",F.layoutId)}; ci=function(F,J,b,I,u,w){a4.call(this,F,{X:"div",K:"ytp-ad-text"},w===void 0?"ad-text":w,J,b,I,u===void 0?null:u);this.C=null;this.hide()}; Uj=function(F,J){J&&g.wK(F.element,e0(F.C,J))}; xS=function(F,J,b,I,u,w,M){a4.call(this,F,J,b,I,u,w);this.C=M;g.k(this,this.C);this.dD=this.N=-1}; nr=function(F){F.C&&F.N===-1&&(F.N=F.C.subscribe("h",F.Nh,F),F.dD=F.C.subscribe("g",F.Cj,F),F.Nh())}; tr=function(F){F.C!=null&&F.N!==-1&&(F.C.gB(F.N),F.C.gB(F.dD),F.dD=-1,F.N=-1)}; g.ZU=function(F,J,b,I,u,w){g.R.call(this);this.element=F;this.state=null;b||F.hide();this.U=J;this.T=I===void 0?J:I;this.C=w;this.onHidden=u;this.delay=new g.ty(this.Mo,0,this);g.k(this,this.delay)}; Hi=function(F,J){F=F.element.element;J?F.setAttribute("aria-hidden","true"):F.removeAttribute("aria-hidden")}; Lr=function(F,J,b,I,u,w){xS.call(this,F,{X:"div",K:"ytp-ad-preview-slot"},"ad-preview",J,b,I,u);var M=this;this.oI=-1;this.Z=this.api.J().experiments.pW("enable_modern_skip_button_on_web");this.U=new g.vi({X:"span",K:"ytp-ad-preview-container"});this.Z&&this.U.element.classList.add("ytp-ad-preview-container-detached");g.k(this,this.U);this.T=this.Z?new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-preview-text-modern"):new ci(this.api,this.layoutId,this.interactionLoggingClientData, this.vN,"ytp-ad-preview-text");g.k(this,this.T);this.T.Az(this.U.element);this.eE=this.Z?new g.vi({X:"span",K:"ytp-ad-preview-image-modern"}):new g.vi({X:"span",K:"ytp-ad-preview-image"});g.k(this,this.eE);this.W=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.W);this.W.Az(this.eE.element);this.eE.Az(this.U.element);this.U.Az(this.element);this.WN=new g.ZU(this.U,400,!1,100,function(){return M.hide()}); g.k(this,this.WN);this.qf=0;this.KW=!1;this.nW=w;this.hide()}; FY=function(F){F.WN.show(100);F.show()}; J5=function(F,J,b,I,u,w){xS.call(this,F,{X:"div",Dv:["ytp-flyout-cta","ytp-flyout-cta-inactive"],j:[{X:"div",K:"ytp-flyout-cta-icon-container"},{X:"div",K:"ytp-flyout-cta-body",j:[{X:"div",K:"ytp-flyout-cta-text-container",j:[{X:"div",K:"ytp-flyout-cta-headline-container"},{X:"div",K:"ytp-flyout-cta-description-container"}]},{X:"div",K:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",J,b,I,u);this.T=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-flyout-cta-icon"); g.k(this,this.T);this.T.Az(this.RI("ytp-flyout-cta-icon-container"));this.T.element.classList.add("ytp-flyout-cta-icon-rounded");this.W=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-flyout-cta-headline");g.k(this,this.W);this.W.Az(this.RI("ytp-flyout-cta-headline-container"));this.Z=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-flyout-cta-description");g.k(this,this.Z);this.Z.Az(this.RI("ytp-flyout-cta-description-container"));F=["ytp-flyout-cta-action-button"]; this.api.J().S("web_modern_buttons")&&F.push("ytp-flyout-cta-action-button-rounded");this.U=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,F);g.k(this,this.U);this.U.Az(this.RI("ytp-flyout-cta-action-button-container"));this.U.element.setAttribute("tabIndex","-1");OY(this.U.element);this.eE=null;this.WN=0;this.qf=w;this.hide()}; bD=function(F,J,b,I,u){a4.call(this,F,{X:"div",K:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",J,b,I,u===void 0?null:u);var w=this;this.C=null;this.T=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-instream-user-sentiment-like-button"]);g.k(this,this.T);this.T.Az(this.element);this.U=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-instream-user-sentiment-dislike-button"]);g.k(this,this.U);this.U.Az(this.element); this.Z=new g.ZU(this,400,!1,500,function(){return w.hide()}); g.k(this,this.Z);this.hide()}; IJ=function(F,J,b,I,u,w){u=u===void 0?0:u;w=w===void 0?!1:w;g.R.call(this);this.U=F;this.T=!1;this.N=I;this.Tj=w;this.W=!1;this.C=null;J>0&&(this.C=new g.ty(this.wQ,J,this),g.k(this,this.C));this.D=new g.ty(this.wQ,b,this);g.k(this,this.D);this.Y=SNk(this.U,u,1,I);g.k(this,this.Y);this.V=SNk(this.U,0,I,1);g.k(this,this.V);this.Z=new j9;g.k(this,this.Z)}; uD=function(F,J,b){this.U=F;this.isAsync=J;this.C=b}; ZDv=function(F){switch(F){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:wU(F,"unknown result type")}}; HD7=function(F,J){var b=1;F.isTrusted===!1&&(b=0);hE("ISDSTAT",b);wJ(b,"i.s_",{triggerContext:"sk",metadata:J});return b}; LHY=function(F,J){var b=[];J?J.isTrusted===!0?b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):J.isTrusted===!1?b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");wJ(0,"a.s_",{metadata:F,states:b});hE("ASDSTAT",0)}; wJ=function(F,J,b){J=FEa[J];var I,u,w={detected:F===0,source:""+J.U+((I=b.triggerContext)!=null?I:"")+((u=b.yr)!=null?u:""),detectionStates:b.states,durationMs:b.JK};b.metadata&&(w.contentCpn=b.metadata.contentCpn,w.adCpn=b.metadata.adCpn);g.AY("biscottiBasedDetection",w);J.C!==void 0&&(b=Number(g.cT("CATSTAT",0)),J.C!==void 0?(J=J.C,F=ZDv(F),F=b&~(3<<J)|F<<J):F=b,hE("CATSTAT",F))}; M_=function(F){return F?"layout: "+F.layoutType:""}; A5=function(F,J,b){return F?!0:(g.rQ(new g.hC("Assertion: "+J,b)),!1)}; q_=function(F,J,b,I,u){I=I===void 0?{}:I;if(!u||Math.random()<5E-4){J=J||null;b=b||null;F=F instanceof Error?F:new g.hC(F);if(F.args)for(var w=g.N(F.args),M=w.next();!M.done;M=w.next())M=M.value,M instanceof Object&&(I=Object.assign({},M,I));I.category="H5 Ads Control Flow";J&&(I.slot=J?"slot: "+J.slotType:"");b&&(I.layout=M_(b),I.layoutId=b.layoutId);u&&(I.known_error_aggressively_sampled=!0);F.args=[I];g.rQ(F)}}; g.vL=function(F,J){this.state=F;this.oldState=J}; aJ=function(F,J){return g.x(F.state,J)&&!g.x(F.oldState,J)?1:!g.x(F.state,J)&&g.x(F.oldState,J)?-1:0}; g.e1=function(F,J){return aJ(F,J)>0}; K0=function(F,J,b,I,u,w){xS.call(this,F,{X:"div",K:"ytp-ad-skip-button-slot"},"skip-button",J,b,I,u);var M=this;this.eE=null;this.WN=!1;this.KW=w;this.W=this.api.J().experiments.pW("enable_modern_skip_button_on_web");this.oI=!1;this.T=new g.vi({X:"span",Dv:["ytp-ad-skip-button-container"]});this.W&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");this.api.S("enable_ad_pod_index_autohide")&&this.T.element.classList.add("ytp-ad-skip-button-container--clean-player");g.k(this,this.T); this.T.Az(this.element);this.U=this.Z=null;this.nW=new g.ZU(this.T,500,!1,100,function(){return M.hide()}); g.k(this,this.nW);this.qf=new IJ(this.T.element,15E3,5E3,.5,.5,this.W);g.k(this,this.qf);this.hide()}; bAG=function(F){F=F.eE&&F.eE.adRendererCommands;return(F&&F.clickCommand&&g.O(F.clickCommand,g.p0)&&g.O(F.clickCommand,g.p0).commands||[]).some(function(J){return J.adLifecycleCommand?JB3(J.adLifecycleCommand):!1})}; JB3=function(F){return F.action==="END_LINEAR_AD"||F.action==="END_LINEAR_AD_PLACEMENT"}; gJ=function(F,J,b,I,u,w){xS.call(this,F,{X:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",J,b,I,u);this.eE=w;this.Z=!1;this.W=0;this.T=this.U=null;this.hide()}; ID7=function(F,J){F.Z||(F.Z=!0,F.U&&(J?F.U.WN.hide():F.U.hide()),J?(F=F.T,F.nW.show(),F.show()):F.T.show())}; mN=function(F,J,b,I){Pi.call(this,F,J,b,I,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; ym=function(F,J,b,I,u,w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;a4.call(this,F,{X:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",J,b,I);this.T=u;this.C=this.RI("ytp-ad-simple-ad-badge");(this.U=w)&&this.C.classList.add("ytp-ad-simple-ad-badge--clean-player");M&&this.C.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; iD=function(F,J,b,I,u){u=u===void 0?!1:u;I4.call(this,"player-overlay",F,{},J,I);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=I;this.qm=u}; zg=function(F,J){g.uA.call(this);this.api=F;this.durationMs=J;this.C=null;this.eF=new j9(this);g.k(this,this.eF);this.U=upC;this.eF.B(this.api,"presentingplayerstatechange",this.BW);this.C=this.eF.B(this.api,"onAdPlaybackProgress",this.Q6)}; N_=function(F){g.uA.call(this);this.C=!1;this.EJ=0;this.eF=new j9(this);g.k(this,this.eF);this.durationMs=F;this.bC=new g.fu(100);g.k(this,this.bC);this.eF.B(this.bC,"tick",this.Q6);this.U={seekableStart:0,seekableEnd:F/1E3,current:0};this.start()}; g.lD=function(F,J){var b=Math.abs(Math.floor(F)),I=Math.floor(b/86400),u=Math.floor(b%86400/3600),w=Math.floor(b%3600/60);b=Math.floor(b%60);if(J){J="";I>0&&(J+=" "+I+" Days");if(I>0||u>0)J+=" "+u+" Hours";J+=" "+w+" Minutes";J+=" "+b+" Seconds";I=J.trim()}else{J="";I>0&&(J+=I+":",u<10&&(J+="0"));if(I>0||u>0)J+=u+":",w<10&&(J+="0");J+=w+":";b<10&&(J+="0");I=J+b}return F>=0?I:"-"+I}; g.f0=function(F){return(!("button"in F)||typeof F.button!=="number"||F.button===0)&&!("shiftKey"in F&&F.shiftKey)&&!("altKey"in F&&F.altKey)&&!("metaKey"in F&&F.metaKey)&&!("ctrlKey"in F&&F.ctrlKey)}; WL=function(F,J,b,I,u,w,M){xS.call(this,F,{X:"span",K:M?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",J,b,I,u);this.videoAdDurationSeconds=w;this.U=null;this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");M&&this.api.J().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), hY&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; dJ=function(F,J,b,I){ci.call(this,F,J,b,I,"ytp-video-ad-top-bar-title","ad-title");F.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; EV=function(F){this.content=F.content;if(F.commandRuns){F=g.N(F.commandRuns);for(var J=F.next();!J.done;J=F.next())J=J.value,this.loggingDirectives=g.O(J,wro),J.onTap&&(this.interaction={onTap:J.onTap})}}; j1=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ad-simple-attributed-string"},"ad-simple-attributed-string",J,b,I);this.hide()}; Gg=function(F,J,b,I,u){a4.call(this,F,{X:"span",K:u?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",J,b,I);this.U=u;this.adBadgeText=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);this.adBadgeText.Az(this.element);g.k(this,this.adBadgeText);u?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.S("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),hY&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Vm=function(F,J,b,I,u){a4.call(this,F,{X:"span",K:"ytp-ad-pod-index"},"ad-pod-index",J,b,I);this.U=u;this.api.J().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),hY&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; PL=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",J,b,I);this.hide()}; BL=function(F,J){this.U=F;this.C=J}; Tg=function(F,J,b){if(!F.getLength())return b!=null?b:Infinity;F=(J-F.U)/F.getLength();return g.AD(F,0,1)}; rJ=function(F,J,b,I){I=I===void 0?!1:I;g.vi.call(this,{X:"div",K:"ytp-ad-persistent-progress-bar-container",j:[{X:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=F;this.U=J;this.T=b;I&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.k(this,this.U);this.progressBar=this.RI("ytp-ad-persistent-progress-bar");this.C=-1;this.B(F,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; S1=function(F,J,b,I,u,w){a4.call(this,F,{X:"div",K:"ytp-ad-player-overlay",j:[{X:"div",K:"ytp-ad-player-overlay-flyout-cta"},{X:"div",K:"ytp-ad-player-overlay-instream-info"},{X:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",K:"ytp-ad-player-overlay-progress-bar"},{X:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",K:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",J,b,I);this.eE=w;this.W=this.RI("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.C=this.RI("ytp-ad-player-overlay-instream-info");this.Z=null;M6z(this)&&(F=Z8("div"),g.uG(F,"ytp-ad-player-overlay-top-bar-gradients"),this.api.S("disable_ad_preview_for_instream_ads")&&g.uG(F,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),J=this.C,J.parentNode&&J.parentNode.insertBefore(F,J),(J=this.api.getVideoData(2))&&J.isListed&&J.title&&(b=new dJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),b.Az(F),b.init(bA("ad-title"),{text:J.title},this.macros),g.k(this, b)),this.Z=F);this.T=null;this.N=this.RI("ytp-ad-player-overlay-skip-or-preview");this.dD=this.RI("ytp-ad-player-overlay-progress-bar");this.qf=this.RI("ytp-ad-player-overlay-instream-user-sentiment");this.WN=this.RI("ytp-ad-player-overlay-ad-disclosure-banner");this.U=u;g.k(this,this.U);this.hide()}; M6z=function(F){F=F.api.J();return g.sV(F)&&F.U}; Yy=function(F,J,b){var I={};J&&(I.v=J);b&&(I.list=b);F={name:F,locale:void 0,feature:void 0};for(var u in I)F[u]=I[u];I=g.Os("/sharing_services",F);g.Xp(I)}; g.$y=function(F){F&=16777215;var J=[(F&16711680)>>16,(F&65280)>>8,F&255];F=J[0];var b=J[1];J=J[2];F=Number(F);b=Number(b);J=Number(J);if(F!=(F&255)||b!=(b&255)||J!=(J&255))throw Error('"('+F+","+b+","+J+'") is not a valid RGB color');b=F<<16|b<<8|J;return F<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)}; C0=function(F){this.C=new VN(F)}; AB_=function(){var F=!1;try{F=!!window.sessionStorage.getItem("session_logininfo")}catch(J){F=!0}return(g.cT("INNERTUBE_CLIENT_NAME")==="WEB"||g.cT("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&F}; XY=function(F){if(g.cT("LOGGED_IN",!0)&&AB_()){var J=g.cT("VALID_SESSION_TEMPDATA_DOMAINS",[]);var b=g.Cu(window.location.href);b&&J.push(b);b=g.Cu(F);g.te(J,b)||!b&&Wk(F,"/")?(J=XQ(F),(J=f8G(J))?(J=Yy4(J),J=(J=g.$6(J)||null)?FF(J):{}):J=null):J=null;J==null&&(J={});b=J;var I=void 0;AB_()?(I||(I=g.cT("LOGIN_INFO")),I?(b.session_logininfo=I,b=!0):b=!1):b=!1;b&&ET(F,J)}}; g.qZ3=function(F){var J=J===void 0?{}:J;var b=b===void 0?"":b;var I=I===void 0?window:I;F=g.Os(F,J);XY(F);b=g.Ty(F+b);I=I.location;b=r3(b);b!==void 0&&(I.href=b)}; g.Qm=function(F,J,b){J=J===void 0?{}:J;b=b===void 0?!1:b;var I=g.cT("EVENT_ID");I&&(J.ei||(J.ei=I));J&&ET(F,J);b||(XY(F),g.qZ3(F))}; g.RJ=function(F,J,b,I,u){u=u===void 0?!1:u;b&&ET(F,b);b=g.Ty(F);var w=g.VG(b);F!=w&&Zk(Error("Unsafe window.open URL: "+F));F=w;J=J||H9(F).toString(36);try{if(u){u=F;u=eyz(u);XY(u);g.C5(window,u,J,"attributionsrc");return}}catch(M){g.nX(M)}XY(F);g.C5(window,b,J,I)}; vPz=function(F){DI=F}; aDz=function(F){ky=F}; eoa=function(F){OV=F}; prz=function(){KE7=OV=ky=DI=null}; mKv=function(){var F=F===void 0?window.location.href:F;if(g.Nk("kevlar_disable_theme_param"))return null;var J=Tq(g.$V(5,F));if(g.Nk("enable_dark_theme_only_on_shorts")&&J!=null&&J.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var b=g.bi(F).theme;return gPk.get(b)||null}catch(I){}return null}; oJ=function(){this.C={};if(this.U=i8z()){var F=g.$6("CONSISTENCY");F&&yBz(this,{encryptedTokenJarContents:F})}}; yBz=function(F,J){if(J.encryptedTokenJarContents&&(F.C[J.encryptedTokenJarContents]=J,typeof J.expirationSeconds==="string")){var b=Number(J.expirationSeconds);setTimeout(function(){delete F.C[J.encryptedTokenJarContents]},b*1E3); F.U&&g.Y6("CONSISTENCY",J.encryptedTokenJarContents,b,void 0,!0)}}; cL=function(){this.U=-1;var F=g.cT("LOCATION_PLAYABILITY_TOKEN");g.cT("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=h5(this))&&(F=this.localStorage.get("yt-location-playability-token"));F&&(this.locationPlayabilityToken=F,this.C=void 0)}; h5=function(F){return F.localStorage===void 0?new JY("yt-client-location"):F.localStorage}; g.UV=function(F,J,b){J=J===void 0?!1:J;b=b===void 0?!1:b;var I=g.cT("INNERTUBE_CONTEXT");if(!I)return g.Td(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};I=g.rl(I);g.Nk("web_no_tracking_params_in_shell_killswitch")||delete I.clickTracking;I.client||(I.client={});var u=I.client;u.clientName==="MWEB"&&u.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(u.clientFormFactor=g.cT("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");u.screenWidthPoints=window.innerWidth;u.screenHeightPoints= window.innerHeight;u.screenPixelDensity=Math.round(window.devicePixelRatio||1);u.screenDensityFloat=window.devicePixelRatio||1;u.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var w=w===void 0?!1:w;g.Qe();var M="USER_INTERFACE_THEME_LIGHT";g.Rg(0,165)?M="USER_INTERFACE_THEME_DARK":g.Rg(0,174)?M="USER_INTERFACE_THEME_LIGHT":!g.Nk("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (M="USER_INTERFACE_THEME_DARK");w=w?M:mKv()||M;u.userInterfaceTheme=w;if(!J){if(w=u4_())u.connectionType=w;g.Nk("web_log_effective_connection_type")&&(w=MMY())&&(I.client.effectiveConnectionType=w)}var q;if(g.Nk("web_log_memory_total_kbytes")&&((q=g.Qz.navigator)==null?0:q.deviceMemory)){var v;q=(v=g.Qz.navigator)==null?void 0:v.deviceMemory;I.client.memoryTotalKbytes=""+q*1E6}g.Nk("web_gcf_hashes_innertube")&&(w=pT7())&&(v=w.coldConfigData,q=w.coldHashData,w=w.hotHashData,I.client.configInfo=I.client.configInfo|| {},v&&(I.client.configInfo.coldConfigData=v),q&&(I.client.configInfo.coldHashData=q),w&&(I.client.configInfo.hotHashData=w));v=g.bi(g.Qz.location.href);!g.Nk("web_populate_internal_geo_killswitch")&&v.internalcountrycode&&(u.internalGeo=v.internalcountrycode);u.clientName==="MWEB"||u.clientName==="WEB"?(u.mainAppWebInfo={graftUrl:g.Qz.location.href},g.Nk("kevlar_woffle")&&Z8a.instance&&(v=Z8a.instance,u.mainAppWebInfo.pwaInstallabilityStatus=!v.C&&v.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),u.mainAppWebInfo.webDisplayMode=$q(),u.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):u.clientName==="TVHTML5"&&(!g.Nk("web_lr_app_quality_killswitch")&&(v=g.cT("LIVING_ROOM_APP_QUALITY"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{appQuality:v})),v=g.cT("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{certificationScope:v}));if(!g.Nk("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var a=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(Q){}a=void 0}a&&(u.timeZone=a)}(a=fl())?u.experimentsToken=a:delete u.experimentsToken;a=Wx();oJ.instance||(oJ.instance=new oJ);I.request=Object.assign({},I.request,{internalExperimentFlags:a,consistencyTokenJars:g.W1(oJ.instance.C)});!g.Nk("web_prequest_context_killswitch")&&(a=g.cT("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(I.request.externalPrequestContext=a);u=g.Qe();a=g.Rg(0,58);u=u.get("gsml","");I.user=Object.assign({}, I.user);a&&(I.user.enableSafetyMode=a);u&&(I.user.lockedSafetyMode=!0);g.Nk("warm_op_csn_cleanup")?b&&(J=g.W8())&&(I.clientScreenNonce=J):!J&&(J=g.W8())&&(I.clientScreenNonce=J);F&&(I.clickTracking={clickTrackingParams:F});if(F=g.kC("yt.mdx.remote.remoteClient_"))I.remoteClient=F;cL.getInstance().setLocationOnInnerTubeContext(I);try{var e=aR(),K=e.bid;delete e.bid;I.adSignalsInfo={params:[],bid:K};for(var p=g.N(Object.entries(e)),m=p.next();!m.done;m=p.next()){var y=g.N(m.value),f=y.next().value, d=y.next().value;e=f;K=d;F=void 0;(F=I.adSignalsInfo.params)==null||F.push({key:e,value:""+K})}var G,P;if(((G=I.client)==null?void 0:G.clientName)==="TVHTML5"||((P=I.client)==null?void 0:P.clientName)==="TVHTML5_UNPLUGGED"){var r=g.cT("INNERTUBE_CONTEXT");r.adSignalsInfo&&(I.adSignalsInfo.advertisingId=r.adSignalsInfo.advertisingId,I.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",I.adSignalsInfo.limitAdTracking=r.adSignalsInfo.limitAdTracking)}}catch(Q){g.Td(Q)}return I}; NL3=function(F,J){if(!F)return!1;var b,I=(b=g.O(F,iAm))==null?void 0:b.signal;if(I&&J.nQ)return!!J.nQ[I];var u;if((b=(u=g.O(F,zoz))==null?void 0:u.request)&&J.yI)return!!J.yI[b];for(var w in F)if(J.FQ[w])return!0;return!1}; lDk=function(F){var J={"Content-Type":"application/json"};g.cT("EOM_VISITOR_DATA")?J["X-Goog-EOM-Visitor-Id"]=g.cT("EOM_VISITOR_DATA"):g.cT("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.cT("VISITOR_DATA"));J["X-Youtube-Bootstrap-Logged-In"]=g.cT("LOGGED_IN",!1);g.cT("DEBUG_SETTINGS_METADATA")&&(J["X-Debug-Settings-Metadata"]=g.cT("DEBUG_SETTINGS_METADATA"));F!=="cors"&&((F=g.cT("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(J["X-Youtube-Client-Name"]=F),(F=g.cT("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(J["X-Youtube-Client-Version"]= F),(F=g.cT("CHROME_CONNECTED_HEADER"))&&(J["X-Youtube-Chrome-Connected"]=F),(F=g.cT("DOMAIN_ADMIN_STATE"))&&(J["X-Youtube-Domain-Admin-State"]=F),g.cT("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(F=g.cT("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(J["X-YouTube-Lava-Device-Context"]=F));return J}; fDm=function(){this.C={}}; n0=function(){this.mappings=new fDm}; t5=function(F){return function(){return new F}}; dK_=function(F){var J=J===void 0?"UNKNOWN_INTERFACE":J;if(F.length===1)return F[0];var b=WE4[J];if(b){b=new RegExp(b);for(var I=g.N(F),u=I.next();!u.done;u=I.next())if(u=u.value,b.exec(u))return u}var w=[];Object.entries(WE4).forEach(function(M){var q=g.N(M);M=q.next().value;q=q.next().value;J!==M&&w.push(q)}); b=new RegExp(w.join("|"));F.sort(function(M,q){return M.length-q.length}); I=g.N(F);for(u=I.next();!u.done;u=I.next())if(u=u.value,!b.exec(u))return u;return F[0]}; g.ZI=function(F){return"/youtubei/v1/"+dK_(F)}; HL=function(){}; L0=function(){}; FH=function(){}; Kp=function(F){return g.kC("ytcsi."+(F||"")+"data_")||EPG(F)}; jKa=function(){var F=Kp();F.info||(F.info={});return F.info}; pp=function(F){F=Kp(F);F.metadata||(F.metadata={});return F.metadata}; mK=function(F){F=Kp(F);F.tick||(F.tick={});return F.tick}; yk=function(F){F=Kp(F);if(F.gel){var J=F.gel;J.gelInfos||(J.gelInfos={});J.gelTicks||(J.gelTicks={})}else F.gel={gelTicks:{},gelInfos:{}};return F.gel}; GSm=function(F){F=yk(F);F.gelInfos||(F.gelInfos={});return F.gelInfos}; iq=function(F){var J=Kp(F).nonce;J||(J=g.Nq(16),Kp(F).nonce=J);return J}; EPG=function(F){var J={tick:{},info:{}};g.RG("ytcsi."+(F||"")+"data_",J);return J}; zp=function(){var F=g.kC("ytcsi.debug");F||(F=[],g.RG("ytcsi.debug",F),g.RG("ytcsi.reference",{}));return F}; NG=function(F){F=F||"";var J=V6Y();if(J[F])return J[F];var b=zp(),I={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};b.push(I);return J[F]=I}; PCC=function(F){F=F||"";var J=V6Y();J[F]&&delete J[F];var b=zp(),I={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};b.push(I);J[F]=I}; V6Y=function(){var F=g.kC("ytcsi.reference");if(F)return F;zp();return g.kC("ytcsi.reference")}; lq=function(F){return BLa[F]||"LATENCY_ACTION_UNKNOWN"}; fp=function(F,J){e6.call(this,1,arguments);this.bC=J}; Wf=function(){this.C=0}; da=function(){Wf.instance||(Wf.instance=new Wf);return Wf.instance}; jl=function(F,J){Ez[J]=Ez[J]||{count:0};var b=Ez[J];b.count++;b.time=(0,g.jR)();F.C||(F.C=g.tC(0,function(){var I=(0,g.jR)(),u;for(u in Ez)Ez[u]&&I-Ez[u].time>6E4&&delete Ez[u];F&&(F.C=0)},5E3)); return b.count>5?(b.count===6&&Math.random()*1E5<1&&(b=new g.hC("CSI data exceeded logging limit with key",J.split("_")),J.indexOf("plev")>=0||g.rQ(b)),!0):!1}; TLm=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; rBY=function(){var F;if(g.Nk("csi_use_performance_navigation_timing")||g.Nk("csi_use_performance_navigation_timing_tvhtml5")){var J,b,I,u=Gp==null?void 0:(F=Gp.getEntriesByType)==null?void 0:(J=F.call(Gp,"navigation"))==null?void 0:(b=J[0])==null?void 0:(I=b.toJSON)==null?void 0:I.call(b);u?(u.requestStart=Vk(u.requestStart),u.responseEnd=Vk(u.responseEnd),u.redirectStart=Vk(u.redirectStart),u.redirectEnd=Vk(u.redirectEnd),u.domainLookupEnd=Vk(u.domainLookupEnd),u.connectStart=Vk(u.connectStart), u.connectEnd=Vk(u.connectEnd),u.responseStart=Vk(u.responseStart),u.secureConnectionStart=Vk(u.secureConnectionStart),u.domainLookupStart=Vk(u.domainLookupStart),u.isPerformanceNavigationTiming=!0,F=u):F=Gp.timing}else F=g.Nk("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Gp.timing)):Gp.timing;return F}; Vk=function(F){return Math.round(Pf()+F)}; Pf=function(){return(g.Nk("csi_use_time_origin")||g.Nk("csi_use_time_origin_tvhtml5"))&&Gp.timeOrigin?Math.floor(Gp.timeOrigin):Gp.timing.navigationStart}; Tp=function(F,J){Bf("_start",F,J)}; ra=function(F,J){if(!g.Nk("web_csi_action_sampling_enabled")||!Kp(J).actionDisabled){var b=NG(J||"");vB(b.info,F);F.loadType&&(b=F.loadType,pp(J).loadType=b);vB(GSm(J),F);b=iq(J);J=Kp(J).cttAuthInfo;da().info(F,b,J)}}; SZm=function(){var F,J,b,I;return((I=Tf().resolve(new jZ(MK))==null?void 0:(F=AB())==null?void 0:(J=F.loggingHotConfig)==null?void 0:(b=J.csiConfig)==null?void 0:b.debugTicks)!=null?I:[]).map(function(u){return Object.values(u)[0]})}; Bf=function(F,J,b){if(!g.Nk("web_csi_action_sampling_enabled")||!Kp(b).actionDisabled){var I=iq(b),u;if(u=g.Nk("web_csi_debug_sample_enabled")&&I){(Tf().resolve(new jZ(MK))==null?0:AB())&&!sKJ&&(sKJ=!0,Bf("gcfl",(0,g.jR)(),b));var w,M,q;u=(Tf().resolve(new jZ(MK))==null?void 0:(w=AB())==null?void 0:(M=w.loggingHotConfig)==null?void 0:(q=M.csiConfig)==null?void 0:q.debugSampleWeight)||0;if(w=u!==0)b:{w=SZm();if(w.length>0)for(M=0;M<w.length;M++)if(F===w[M]){w=!0;break b}w=!1}w?(u=IZ_(I)%u!==0,Kp(b).debugTicksExcludedLogged|| (w={},w.debugTicksExcluded=u,ra(w,b)),Kp(b).debugTicksExcludedLogged=!0):u=!1}if(!u){if(F[0]!=="_"&&(u=F,w=J,Gp.mark))if(u.startsWith("mark_")||(u="mark_"+u),b&&(u+=" ("+b+")"),w===void 0||g.Nk("web_csi_disable_alt_time_performance_mark"))Gp.mark(u);else{w=g.Nk("csi_use_performance_navigation_timing")||g.Nk("csi_use_performance_navigation_timing_tvhtml5")?w-Gp.timeOrigin:w-(Gp.timeOrigin||Gp.timing.navigationStart);try{Gp.mark(u,{startTime:w})}catch(v){}}u=NG(b||"");u.tick[F]=J||(0,g.jR)();if(u.callback&& u.callback[F])for(u=g.N(u.callback[F]),w=u.next();!w.done;w=u.next())w=w.value,w();u=yk(b);u.gelTicks&&(u.gelTicks[F]=!0);w=mK(b);u=J||(0,g.jR)();g.Nk("log_repeated_ytcsi_ticks")?F in w||(w[F]=u):w[F]=u;w=Kp(b).cttAuthInfo;F==="_start"?(F=da(),jl(F,"baseline_"+I)||g.AY("latencyActionBaselined",{clientActionNonce:I},{timestamp:J,cttAuthInfo:w})):da().tick(F,I,J,w);YZa(b);return u}}}; $KC=function(){var F,J=(F=Gp.getEntriesByType)==null?void 0:F.call(Gp,"mark");J&&J.forEach(function(b){if(b.name.startsWith("mark_")){var I;(I=Gp.clearMarks)==null||I.call(Gp,b.name)}})}; CCv=function(){switch(XQk()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; XrG=function(F){function J(w,M,q){M=M.match("_rid")?M.split("_rid")[0]:M;typeof q==="number"&&(q=JSON.stringify(q));w.requestIds?w.requestIds.push({endpoint:M,id:q}):w.requestIds=[{endpoint:M,id:q}]} var b={};F=g.N(Object.entries(F));for(var I=F.next();!I.done;I=F.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;switch(I){case "GetBrowse_rid":J(b,I,u);break;case "GetGuide_rid":J(b,I,u);break;case "GetHome_rid":J(b,I,u);break;case "GetPlayer_rid":J(b,I,u);break;case "GetSearch_rid":J(b,I,u);break;case "GetSettings_rid":J(b,I,u);break;case "GetTrending_rid":J(b,I,u);break;case "GetWatchNext_rid":J(b,I,u);break;case "yt_red":b.isRedSubscriber=!!u;break;case "yt_ad":b.isMonetized=!!u}}return b}; QKk=function(F,J){F=document.querySelector(F);if(!F)return!1;var b="",I=F.nodeName;I==="SCRIPT"?(b=F.src,b||(b=F.getAttribute("data-timing-href"))&&(b=window.location.protocol+b)):I==="LINK"&&(b=F.href);Xv(document)&&F.setAttribute("nonce",Xv(document));return b?(F=Gp.getEntriesByName(b))&&F[0]&&(F=F[0],b=Pf(),Bf("rsf_"+J,b+Math.round(F.fetchStart)),Bf("rse_"+J,b+Math.round(F.responseEnd)),F.transferSize!==void 0&&F.transferSize===0)?!0:!1:!1}; Roo=function(){var F=window.location.protocol,J=Gp.getEntriesByType("resource");J=g.qN(J,function(b){return b.name.indexOf(F+"//fonts.gstatic.com/s/")===0}); (J=Gi(J,function(b,I){return I.duration>b.duration?I:b},{duration:0}))&&J.startTime>0&&J.responseEnd>0&&(Bf("wffs",Vk(J.startTime)),Bf("wffe",Vk(J.responseEnd)))}; DKz=function(F,J,b){Gp&&Gp.measure&&(F.startsWith("measure_")||(F="measure_"+F),b?Gp.measure(F,J,b):J?Gp.measure(F,J):Gp.measure(F))}; kSz=function(F){var J=Sl("aft",F);if(J)return J;J=g.cT((F||"")+"TIMING_AFT_KEYS",["ol"]);for(var b=J.length,I=0;I<b;I++){var u=Sl(J[I],F);if(u)return u}return NaN}; sz=function(F,J){g.RG("ytglobal.timing"+(J||"")+"ready_",F)}; Sl=function(F,J){if(F=mK(J)[F])return typeof F==="number"?F:F[F.length-1]}; YZa=function(F){var J=Sl("_start",F),b=kSz(F),I=g.Nk("enable_cow_info_csi")||!OAz;J&&b&&I&&(gL(oPz,new fp(Math.round(b-J),F)),OAz=!0)}; ho_=function(){if(Gp.getEntriesByType){var F=Gp.getEntriesByType("paint");if(F=g.xL(F,function(b){return b.name==="first-paint"}))return Vk(F.startTime)}var J; g.Nk("csi_use_performance_navigation_timing")||g.Nk("csi_use_performance_navigation_timing_tvhtml5")?J=Gp.getEntriesByType("first-paint")[0].startTime:J=Gp.timing.zvQ;return J?Math.max(0,J):0}; Yk=function(F){EPG(F);cB4();$KC();F||(g.cT("TIMING_ACTION")&&hE("PREVIOUS_ACTION",g.cT("TIMING_ACTION")),hE("TIMING_ACTION",""))}; UKk=function(){var F=["pbs","pbu"];g.tE(function(){NG("").info.actionType="watch";F&&hE("TIMING_AFT_KEYS",F);hE("TIMING_ACTION","watch");var J=XrG(g.cT("TIMING_INFO",{}));Object.keys(J).length>0&&ra(J);J={isNavigation:!0,actionType:lq(g.cT("TIMING_ACTION"))};var b=g.cT("PREVIOUS_ACTION");b&&(J.previousAction=lq(b));if(b=g.cT("CLIENT_PROTOCOL"))J.httpProtocol=b;if(b=g.cT("CLIENT_TRANSPORT"))J.transportProtocol=b;(b=g.W8())&&b!=="UNDEFINED_CSN"&&(J.clientScreenNonce=b);b=CCv();if(b===1||b===-1)J.isVisible= !0;b=pp().loadType==="cold";var I=jKa();b||(b=I.yt_lt==="cold");if(b){J.loadType="cold";b=jKa();I=rBY();var u=Pf(),w=g.cT("CSI_START_TIMESTAMP_MILLIS",0);w>0&&!g.Nk("embeds_web_enable_csi_start_override_killswitch")&&(u=w);u&&(Bf("srt",I.responseStart),b.prerender!==1&&Tp(u));b=ho_();b>0&&Bf("fpt",b);b=rBY();b.isPerformanceNavigationTiming&&ra({performanceNavigationTiming:!0},void 0);Bf("nreqs",b.requestStart,void 0);Bf("nress",b.responseStart,void 0);Bf("nrese",b.responseEnd,void 0);b.redirectEnd- b.redirectStart>0&&(Bf("nrs",b.redirectStart,void 0),Bf("nre",b.redirectEnd,void 0));b.domainLookupEnd-b.domainLookupStart>0&&(Bf("ndnss",b.domainLookupStart,void 0),Bf("ndnse",b.domainLookupEnd,void 0));b.connectEnd-b.connectStart>0&&(Bf("ntcps",b.connectStart,void 0),Bf("ntcpe",b.connectEnd,void 0));b.secureConnectionStart>=Pf()&&b.connectEnd-b.secureConnectionStart>0&&(Bf("nstcps",b.secureConnectionStart,void 0),Bf("ntcpe",b.connectEnd,void 0));Gp&&"getEntriesByType"in Gp&&Roo();b=[];if(document.querySelector&& Gp&&Gp.getEntriesByName)for(var M in $k)$k.hasOwnProperty(M)&&(I=$k[M],QKk(M,I)&&b.push(I));if(b.length>0)for(J.resourceInfo=[],M=g.N(b),b=M.next();!b.done;b=M.next())J.resourceInfo.push({resourceCache:b.value})}ra(J);J=yk();J.preLoggedGelInfos||(J.preLoggedGelInfos=[]);M=J.preLoggedGelInfos;J=GSm();b=void 0;for(I=0;I<M.length;I++)if(u=M[I],u.loadType){b=u.loadType;break}if(pp().loadType==="cold"&&(J.loadType==="cold"||b==="cold")){b=mK();I=yk();I=I.gelTicks?I.gelTicks:I.gelTicks={};for(var q in b)if(!(q in I))if(typeof b[q]==="number")Bf(q,Sl(q));else if(g.Nk("log_repeated_ytcsi_ticks"))for(u=g.N(b[q]),w=u.next();!w.done;w=u.next())Bf(q.slice(1),w.value);q={};b=!1;M=g.N(M);for(I=M.next();!I.done;I=M.next())b=I.value,vB(J,b),vB(q,b),b=!0;b&&ra(q)}sz(!0);q=g.cT("TIMING_ACTION");g.kC("ytglobal.timingready_")&&q&&Cp()&&kSz()&&YZa()})()}; xKa=function(){var F=F===void 0?{}:F;g.tE(function(){Cp()&&XH("aa",void 0,void 0);PCC();Yk();sz(!1);F.cttAuthInfo&&(Kp().cttAuthInfo=F.cttAuthInfo);hE("TIMING_AFT_KEYS",[]);F.gIQ?g.Qk({loadType:"hot"}):g.Qk({loadType:"warm"});hE("TIMING_ACTION","");delete g.cT("TIMING_INFO",{}).yt_lt;g.tE(Tp)(F.startTime,void 0)})()}; Rr=function(F,J){J=J===void 0?{}:J;g.tE(function(){nPz(F);var b=J.sampleRate;if(!g.Nk("web_csi_action_sampling_enabled")||b===void 0||b<=1)b=!1;else{var I=iq(F);b=IZ_(I)%b!==0}b&&(Kp(F).actionDisabled=!0);NG(F||"").info.actionType=F;J.cttAuthInfo&&(Kp(F).cttAuthInfo=J.cttAuthInfo);hE(F+"TIMING_ACTION",F);g.tE(Tp)(J.startTime,F);b={actionType:lq(F)};J.l_N&&(b.previousAction=lq(g.cT("TIMING_ACTION")));(I=g.W8())&&I!=="UNDEFINED_CSN"&&(b.clientScreenNonce=I);g.Qk(b,F);sz(!0,F)})()}; nPz=function(F){g.tE(function(){Cp(F)&&XH("aa",void 0,F);PCC(F);Yk(F)})()}; Cp=function(F){return g.tE(function(){return Dj("_start",F)})()}; g.Qk=function(F,J,b){g.tE(ra)(F,J,b===void 0?!1:b)}; XH=function(F,J,b){return g.tE(Bf)(F,J,b)}; t6G=function(F){g.tE(DKz)("action_finished",F,void 0)}; Dj=function(F,J){return g.tE(function(){var b=mK(J);return F in b})()}; HA3=function(F){if(!g.Nk("universal_csi_network_ticks"))return"";F=Tq(g.$V(5,F))||"";for(var J=Object.keys(ZA7),b=0;b<J.length;b++){var I=J[b];if(F.includes(I))return I}return""}; FAm=function(F){if(!g.Nk("universal_csi_network_ticks"))return function(){}; var J=ZA7[F];return J?(kk(J),function(){var b=g.Nk("universal_csi_network_ticks")?(b=LEY[F])?kk(b):!1:!1;return b}):function(){}}; kk=function(F,J){return g.tE(function(){if(Dj(F,J))return!1;XH(F,void 0,J);return!0})()}; Oz=function(F,J,b){g.tE(function(){if(!Cp(b)||Dj(F,b))return!1;XH(F,J,b);return!0})()}; JAm=function(){g.tE(function(){var F=iq();requestAnimationFrame(function(){setTimeout(function(){F===iq()&&XH("ftl",void 0,void 0)},0)})})()}; or=function(F,J,b,I){this.gU=F;this.zn=J;this.C=b;this.Z=I;this.T=void 0;this.U=new Map;F.nQ||(F.nQ={});F.nQ=Object.assign({},bJz,F.nQ)}; InG=function(F,J,b,I){if(or.instance!==void 0){if(I=or.instance,F=[F!==I.gU,J!==I.zn,b!==I.C,!1,!1,!1,void 0!==I.T],F.some(function(u){return u}))throw new g.hC("InnerTubeTransportService is already initialized",F); }else or.instance=new or(F,J,b,I)}; ho=function(F,J,b){var I=I===void 0?aK:I;var u=uTJ(F,J);return u?new g.gb(function(w,M){var q,v,a,e,K;return g.S(function(p){switch(p.C){case 1:return g.T(p,u,2);case 2:q=p.U;v=q.D(J,b,I);if(!v){M(new g.hC("Error: Failed to build request for command.",J));p.gD(0);break}XY(v.input);e=((a=v.w_)==null?void 0:a.mode)==="cors"?"cors":void 0;if(F.C.z2){K=wBk(F,v.config,e);p.gD(4);break}return g.T(p,MZa(F,v.config,e),5);case 5:K=p.U;case 4:w(AAo(F,v,K)),g.N4(p)}})}):i5(new g.hC("Error: No request builder found for command.", J))}; g.cf=function(F,J,b,I,u){function w(){} u=u===void 0?{R3:{identity:aK}}:u;var M=M===void 0?!0:M;w=FAm(HA3(b));J.context||(J.context=g.UV(I,M));return new g.gb(function(q){var v,a,e,K,p;return g.S(function(m){if(m.C==1)return v=XF(b),a=w$(v)?"same-origin":"cors",F.C.z2?(e=wBk(F,u,a),m.gD(2)):g.T(m,MZa(F,u,a),3);m.C!=2&&(e=m.U);K=zbY(XF(b));p={input:K,w_:Qt(K),K1:J,config:u};q(AAo(F,p,e,w));g.N4(m)})})}; vBC=function(F,J,b){var I;if(J&&!(J==null?0:(I=J.sequenceMetaData)==null?0:I.skipProcessing)&&F.Z){I=g.N(qw3);for(var u=I.next();!u.done;u=I.next())u=u.value,F.Z[u]&&F.Z[u].handleResponse(J,b)}}; AAo=function(F,J,b,I){I=I===void 0?function(){}:I; var u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ,F7,h,L,l,c,Da,fz,Kz;return g.S(function(Vz){switch(Vz.C){case 1:Vz.gD(2);break;case 3:if((u=Vz.U)&&!u.isExpired())return Vz.return(Promise.resolve(u.C()));case 2:if(!((w=J)==null?0:(M=w.K1)==null?0:M.context)){Vz.gD(4);break}q=J.K1.context;Vz.gD(5);break;case 5:v=g.N([]),a=v.next();case 8:if(a.done){Vz.gD(4);break}e=a.value;return g.T(Vz,e.c3_(q),9);case 9:a=v.next();Vz.gD(8);break;case 4:if((K=F.T)==null||!K.OPQ(J.input,J.K1)){Vz.gD(12);break}return g.T(Vz, F.T.EIQ(J.input,J.K1),13);case 13:return p=Vz.U,vBC(F,p,J),Vz.return(p);case 12:return(f=(y=J.config)==null?void 0:y.vJ)&&F.U.has(f)?m=F.U.get(f):(d=JSON.stringify(J.K1),r=(P=(G=J.w_)==null?void 0:G.headers)!=null?P:{},J.w_=Object.assign({},J.w_,{headers:Object.assign({},r,b)}),Q=Object.assign({},J.w_),J.w_.method==="POST"&&(Q=Object.assign({},Q,{body:d})),((D=J.config)==null?0:D.k0G)&&XH(J.config.k0G),t=function(){return F.zn.fetch(J.input,Q,J.config)},m=t(),f&&F.U.set(f,m)),g.T(Vz,m,14); case 14:if((n=Vz.U)&&"error"in n&&((uk=n)==null?0:(AJ=uk.error)==null?0:AJ.details))for(F7=n.error.details,h=g.N(F7),L=h.next();!L.done;L=h.next())l=L.value,(c=l["@type"])&&an4.indexOf(c)>-1&&(delete l["@type"],n=l);f&&F.U.has(f)&&F.U.delete(f);((Da=J.config)==null?0:Da.Odv)&&XH(J.config.Odv);if(n||(fz=F.T)==null||!fz.Wwv(J.input,J.K1)){Vz.gD(15);break}return g.T(Vz,F.T.M2G(J.input,J.K1),16);case 16:n=Vz.U;case 15:return vBC(F,n,J),((Kz=J.config)==null?0:Kz.b7f)&&XH(J.config.b7f),I(),Vz.return(n|| void 0)}})}; uTJ=function(F,J){a:{F=F.gU;var b,I=(b=g.O(J,iAm))==null?void 0:b.signal;if(I&&F.nQ&&(b=F.nQ[I])){var u=b();break a}var w;if((b=(w=g.O(J,zoz))==null?void 0:w.request)&&F.yI&&(w=F.yI[b])){u=w();break a}for(u in J)if(F.FQ[u]&&(J=F.FQ[u])){u=J();break a}u=void 0}if(u!==void 0)return Promise.resolve(u)}; MZa=function(F,J,b){var I,u,w,M,q,v,a;return g.S(function(e){if(e.C==1){w=((I=J)==null?void 0:(u=I.R3)==null?void 0:u.identity)||aK;v=(M=J)==null?void 0:(q=M.R3)==null?void 0:q.sessionIndex;var K=g.yX(F.C.Du(w,{sessionIndex:v}));return g.T(e,K,2)}a=e.U;return e.return(Promise.resolve(Object.assign({},lDk(b),a)))})}; wBk=function(F,J,b){var I,u=(J==null?void 0:(I=J.R3)==null?void 0:I.identity)||aK,w;J=J==null?void 0:(w=J.R3)==null?void 0:w.sessionIndex;F=F.C.Du(u,{sessionIndex:J});return Object.assign({},lDk(b),F)}; Uz=function(){}; xk=function(){}; np=function(F){this.W=F}; to=function(){}; Zj=function(){}; Hf=function(){}; Lp=function(){}; g.FS=function(F,J){var b=g.Ba.apply(2,arguments);F=F===void 0?0:F;g.hC.call(this,J,b);this.errorType=F;Object.setPrototypeOf(this,this.constructor.prototype)}; J3=function(F,J,b){this.C=F;this.U=J;this.T=b}; ew3=function(F,J,b){if(F.C){var I=Tq(g.$V(5,cj(J,"key")))||"/UNKNOWN_PATH";F.C.start(I)}F=b;g.Nk("wug_networking_gzip_request")&&(F=oD_(b));return new window.Request(J,F)}; g.IW=function(F,J){if(!bH){var b=Tf();Gf(b,{lE:KA4,MB:J3});var I={FQ:{feedbackEndpoint:t5(to),modifyChannelNotificationPreferenceEndpoint:t5(Zj),playlistEditEndpoint:t5(Hf),shareEntityEndpoint:t5(np),subscribeEndpoint:t5(Uz),unsubscribeEndpoint:t5(xk),webPlayerShareEntityServiceEndpoint:t5(Lp)}},u=cL.getInstance(),w={};u&&(w.client_location=u);F===void 0&&(F=H8Y());J===void 0&&(J=b.resolve(KA4));InG(I,J,F,w);Gf(b,{lE:pBk,fS:or.instance});bH=b.resolve(pBk)}return bH}; gBY=function(F){var J=new p2;if(F.interpreterJavascript){var b=S0m(F.interpreterJavascript);b=R0(b).toString();var I=new eW;yH(I,6,b);Ax(J,eW,1,I)}else F.interpreterUrl&&(b=fX(F.interpreterUrl),b=jp(b).toString(),I=new K2,yH(I,4,b),Ax(J,K2,2,I));F.interpreterHash&&iP(J,3,F.interpreterHash);F.program&&iP(J,4,F.program);F.globalName&&iP(J,5,F.globalName);F.clientExperimentsStateBlob&&iP(J,7,F.clientExperimentsStateBlob);return J}; uH=function(F){var J={};F=F.split("&");F=g.N(F);for(var b=F.next();!b.done;b=F.next())b=b.value.split("="),b.length===2&&(J[b[0]]=b[1]);return J}; Lx4=function(){if(g.Nk("bg_st_hr"))return"havuokmhhs-0";var F,J=((F=performance)==null?void 0:F.timeOrigin)||0;return"havuokmhhs-"+Math.floor(J)}; wE=function(F){this.C=F}; mqC=function(){return new Promise(function(F){var J=window.top;J.ntpevasrs!==void 0?F(new wE(J.ntpevasrs)):(J.ntpqfbel===void 0&&(J.ntpqfbel=[]),J.ntpqfbel.push(function(b){F(new wE(b))}))})}; iJG=function(){if(!g.Nk("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Nk("disable_biscotti_fetch_entirely_for_all_web_clients")&&Ft()){var F=g.cT("PLAYER_VARS",{});if(g.P1(F,"privembed",!1)!="1"&&!EQv(F)){var J=function(){MJ=!0;"google_ad_status"in window?hE("DCLKSTAT",1):hE("DCLKSTAT",2)}; try{g.wP("//static.doubleclick.net/instream/ad_status.js",J)}catch(b){}yAa.push(g.D_.Ti(function(){if(!(MJ||"google_ad_status"in window)){try{if(J){var b=""+g.n3(J),I=E6J[b];I&&g.Iu(I)}}catch(u){}MJ=!0;hE("DCLKSTAT",3)}},5E3))}}}; A3=function(){var F=Number(g.cT("DCLKSTAT",0));return isNaN(F)?0:F}; et=function(F,J,b){var I=this;this.network=F;this.options=J;this.U=b;this.C=null;if(J.tyQ){var u=new g.m6;this.C=u.promise;g.Qz.ytAtRC&&nw(function(){var w,M;return g.S(function(q){if(q.C==1){if(!g.Qz.ytAtRC)return q.return();w=qJ(null);return g.T(q,vA(I,w),2)}M=q.U;g.Qz.ytAtRC&&g.Qz.ytAtRC(JSON.stringify(M));g.N4(q)})},2); mqC().then(function(w){var M,q,v,a;return g.S(function(e){if(e.C==1)return w.bindInnertubeChallengeFetcher(function(K){return vA(I,qJ(K))}),g.T(e,PQ(),2); M=e.U;q=w.getLatestChallengeResponse();v=q.challenge;if(!v)throw Error("BGE_MACIL");a={challenge:v,iB:uH(v),w0:M,bgChallenge:new p2};u.resolve(a);w.registerChallengeFetchedCallback(function(K){K=K.challenge;if(!K)throw Error("BGE_MACR");K={challenge:K,iB:uH(K),w0:M,bgChallenge:new p2};I.C=Promise.resolve(K)}); g.N4(e)})})}else J.preload&&zwv(this,new Promise(function(w){g.tC(0,function(){w(aW(I))},0)}))}; qJ=function(F){var J={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};F&&(J.interpreterHash=F);return J}; aW=function(F,J){J=J===void 0?0:J;var b,I,u,w,M,q,v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:b=qJ(z5().C);if(g.Nk("att_fet_ks"))return g.lk(y,7),g.T(y,vA(F,b),9);g.lk(y,4);return g.T(y,NPC(F,b),6);case 6:M=y.U;u=M.fej;w=M.MZv;I=M;g.Wa(y,3);break;case 4:return g.dY(y),g.rQ(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),KQ(F,864E5),y.return({challenge:"",iB:{},w0:void 0,bgChallenge:void 0});case 9:I=y.U;if(!I)throw Error("Fetching Attestation challenge returned falsy"); if(!I.challenge)throw Error("Missing Attestation challenge");u=I.challenge;w=uH(u);if("c1a"in w&&(!I.bgChallenge||!I.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Wa(y,3);break;case 7:q=g.dY(y);g.rQ(q);J++;if(J>=5)return g.rQ(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),KQ(F,864E5),y.return({challenge:"",iB:{},w0:void 0,bgChallenge:void 0});v=1E3*Math.pow(2,J-1)+Math.random()*1E3;return y.return(new Promise(function(f){g.tC(0, function(){f(aW(F,J))},v)})); case 3:a=Number(w.t)||7200;KQ(F,a*1E3);e=void 0;if(!("c1a"in w&&I.bgChallenge)){y.gD(10);break}K=gBY(I.bgChallenge);g.lk(y,11);return g.T(y,N6(z5(),K),13);case 13:g.Wa(y,12);break;case 11:return p=g.dY(y),g.rQ(p),y.return({challenge:u,iB:w,w0:e,bgChallenge:K});case 12:return g.lk(y,14),e=new y3({challenge:K,qK:{bk:"aGIf"}}),g.T(y,e.Al,16);case 16:g.Wa(y,10);break;case 14:m=g.dY(y),g.rQ(m),e=void 0;case 10:return y.return({challenge:u,iB:w,w0:e,bgChallenge:K})}})}; vA=function(F,J){var b;return g.S(function(I){b=F.U;if(!b||b.Vi())return I.return(vA(F.network,J));Oz("att_pna",void 0,"attestation_challenge_fetch");return I.return(new Promise(function(u){b.Sk("publicytnetworkstatus-online",function(){vA(F.network,J).then(u)})}))})}; ln3=function(F){if(!F)throw Error("Fetching Attestation challenge returned falsy");if(!F.challenge)throw Error("Missing Attestation challenge");var J=F.challenge,b=uH(J);if("c1a"in b&&(!F.bgChallenge||!F.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},F,{fej:J,MZv:b})}; NPC=function(F,J){var b,I,u,w,M;return g.S(function(q){switch(q.C){case 1:b=void 0,I=0,u={};case 2:if(!(I<5)){q.gD(4);break}if(!(I>0)){q.gD(5);break}u.s$=1E3*Math.pow(2,I-1)+Math.random()*1E3;return g.T(q,new Promise(function(v){return function(a){g.tC(0,function(){a(void 0)},v.s$)}}(u)),5); case 5:return g.lk(q,7),g.T(q,vA(F,J),9);case 9:return w=q.U,q.return(ln3(w));case 7:b=M=g.dY(q),M instanceof Error&&g.rQ(M);case 8:I++;u={s$:void 0};q.gD(2);break;case 4:throw b;}})}; zwv=function(F,J){F.C=J}; fnz=function(F){var J,b,I;return g.S(function(u){if(u.C==1)return g.T(u,Promise.race([F.C,null]),2);J=u.U;var w=aW(F);F.C=w;(b=J)==null||(I=b.w0)==null||I.dispose();g.N4(u)})}; KQ=function(F,J){function b(){var u;return g.S(function(w){u=I-Date.now();return u<1E3?g.T(w,fnz(F),0):(nw(b,0,Math.min(u,6E4)),w.gD(0))})} var I=Date.now()+J;b()}; WA_=function(F,J){return new Promise(function(b){g.tC(0,function(){b(J())},F)})}; g.dq3=function(F,J){var b;return g.S(function(I){var u=g.kC("yt.aba.att");return(b=u?u:et.instance!==void 0?et.instance.T.bind(et.instance):null)?I.return(b("ENGAGEMENT_TYPE_PLAYBACK",F,J)):I.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.EBG=function(){var F;return(F=(F=g.kC("yt.aba.att2"))?F:et.instance!==void 0?et.instance.Z.bind(et.instance):null)?F():Promise.resolve(!1)}; Gfz=function(F,J){var b=g.kC("ytDebugData.callbacks");b||(b={},g.RG("ytDebugData.callbacks",b));if(g.Nk("web_dd_iu")||juo.includes(F))b[F]=J}; pQ=function(){var F=VZJ;var J=J===void 0?[]:J;var b=b===void 0?[]:b;J=GZk.apply(null,[V7o.apply(null,g.W(J))].concat(g.W(b)));this.store=B2z(F,void 0,J)}; g.gE=function(F,J,b){for(var I=Object.assign({},F),u=g.N(Object.keys(J)),w=u.next();!w.done;w=u.next()){w=w.value;var M=F[w],q=J[w];if(q===void 0)delete I[w];else if(M===void 0)I[w]=q;else if(Array.isArray(q)&&Array.isArray(M))I[w]=b?[].concat(g.W(M),g.W(q)):q;else if(!Array.isArray(q)&&g.Um(q)&&!Array.isArray(M)&&g.Um(M))I[w]=g.gE(M,q,b);else if(typeof q===typeof M)I[w]=q;else return J=new g.hC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:w,J3z:M,updateValue:q}),g.Td(J), F}return I}; m_=function(F){var J=this;F=F===void 0?[]:F;this.g6=[];this.O2=this.VM=0;this.R0=void 0;this.totalLength=0;F.forEach(function(b){J.append(b)})}; P03=function(F,J){return F.g6.length===0?!1:(F=F.g6[F.g6.length-1])&&F.buffer===J.buffer&&F.byteOffset+F.length===J.byteOffset}; yK=function(F,J){J=g.N(J.g6);for(var b=J.next();!b.done;b=J.next())F.append(b.value)}; iH=function(F,J,b){return F.split(J).eS.split(b).lf}; zc=function(F){F.R0=void 0;F.VM=0;F.O2=0}; NJ=function(F,J,b){F.isFocused(J);return J-F.O2+b<=F.g6[F.VM].length}; BPo=function(F){if(!F.R0){var J=F.g6[F.VM];F.R0=new DataView(J.buffer,J.byteOffset,J.length)}return F.R0}; lH=function(F,J,b){F=F.HS(J===void 0?0:J,b===void 0?-1:b);J=new Uint8Array(F.length);try{J.set(F)}catch(I){for(b=0;b<F.length;b++)J[b]=F[b]}return J}; TPz=function(F,J){F.focus(J);return NJ(F,J,4)?BPo(F).getUint32(J-F.O2):256*(256*(256*F.getUint8(J)+F.getUint8(J+1))+F.getUint8(J+2))+F.getUint8(J+3)}; rA_=function(F){for(var J=new Uint8Array(F.length),b=0;b<F.length;b++)J[b]=F.charCodeAt(b);return J}; WA=function(F){return F.length?fQ?fQ.decode(F):String.fromCharCode.apply(null,F):""}; g.Ev=function(F){if(!F.length)return"";try{if(fQ)return fQ.decode(F);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(F)}catch(M){}for(var J=0,b=[],I=F.length;J<I;){for(var u=0;u<1024&&J<I;){var w=F[J++];if(w<128)dE[u++]=w;else{if(w<224)w=(w&31)<<6|F[J++]&63;else if(w<240)w=(w&15)<<12|(F[J++]&63)<<6|F[J++]&63;else{if(u+1===1024){--J;break}w=(w&7)<<18|(F[J++]&63)<<12|(F[J++]&63)<<6|F[J++]&63;w-=65536;dE[u++]=55296|w>>10;w=56320|w&1023}dE[u++]=w}}w=String.fromCharCode.apply(String,dE); u<1024&&(w=w.substring(0,u));b.push(w)}return b.join("")}; Gc=function(F,J){var b;if((b=jt)==null?0:b.encodeInto)return J=jt.encodeInto(F,J),J.read<F.length?F.length*4:J.written;for(var I=b=0;I<F.length;I++){var u=F.charCodeAt(I);u<128?J[b++]=u:(u<2048?J[b++]=u>>6|192:((u&64512)===55296&&I+1<F.length&&(F.charCodeAt(I+1)&64512)===56320?(u=65536+((u&1023)<<10)+(F.charCodeAt(++I)&1023),J[b++]=u>>18|240,J[b++]=u>>12&63|128):J[b++]=u>>12|224,J[b++]=u>>6&63|128),J[b++]=u&63|128)}return b}; VK=function(F){if(jt)return jt.encode(F);var J=new Uint8Array(Math.ceil(F.length*1.2)),b=Gc(F,J);J.length<b&&(J=new Uint8Array(b),b=Gc(F,J));J.length>b&&(J=J.subarray(0,b));return J}; PA=function(F){this.C=F;this.pos=0;this.U=-1}; BA=function(F){var J=F.C.getUint8(F.pos);++F.pos;if(J<128)return J;for(var b=J&127,I=1;J>=128;)J=F.C.getUint8(F.pos),++F.pos,I*=128,b+=(J&127)*I;return b}; Tc=function(F,J){var b=F.U;for(F.U=-1;F.C.UL(F.pos,1);){b<0&&(b=BA(F));var I=b>>3,u=b&7;if(I===J)return!0;if(I>J){F.U=b;break}b=-1;switch(u){case 0:BA(F);break;case 1:F.pos+=8;break;case 2:I=BA(F);F.pos+=I;break;case 5:F.pos+=4}}return!1}; rE=function(F,J){if(Tc(F,J))return BA(F)}; St=function(F,J){if(Tc(F,J))return!!BA(F)}; YF=function(F,J){if(Tc(F,J)){J=BA(F);var b=F.C.HS(F.pos,J);F.pos+=J;return b}}; $F=function(F,J){if(F=YF(F,J))return g.Ev(F)}; CQ=function(F,J,b){if(F=YF(F,J))return b(new PA(new m_([F])))}; XS=function(F,J){for(var b=[];Tc(F,J);)b.push(BA(F));return b.length?b:void 0}; QK=function(F,J,b){for(var I=[],u;u=YF(F,J);)I.push(b(new PA(new m_([u]))));return I.length?I:void 0}; RW=function(F,J){F=F instanceof Uint8Array?new m_([F]):F;return J(new PA(F))}; Sw7=function(F,J,b){if(J&&b&&b.buffer===J.exports.memory.buffer){var I=J.realloc(b.byteOffset,F);if(I)return new Uint8Array(J.exports.memory.buffer,I,F)}F=J?new Uint8Array(J.exports.memory.buffer,J.malloc(F),F):new Uint8Array(F);b&&F.set(b);return F}; suG=function(F,J){this.PV=J;this.pos=0;this.U=[];this.C=Sw7(F===void 0?4096:F,J);this.view=new DataView(this.C.buffer,this.C.byteOffset,this.C.byteLength)}; Dy=function(F,J){J=F.pos+J;if(!(F.C.length>=J)){for(var b=F.C.length*2;b<J;)b*=2;F.C=Sw7(b,F.PV,F.C.subarray(0,F.pos));F.view=new DataView(F.C.buffer,F.C.byteOffset,F.C.byteLength)}}; kF=function(F,J){if(J>268435455){Dy(F,4);for(var b=J&1073741823,I=0;I<4;I++)F.view.setUint8(F.pos,b&127|128),b>>=7,F.pos+=1;J=Math.floor(J/268435456)}for(Dy(F,4);J>127;)F.view.setUint8(F.pos,J&127|128),J>>=7,F.pos+=1;F.view.setUint8(F.pos,J);F.pos+=1}; Ov=function(F,J,b){b!==void 0&&(kF(F,J*8),kF(F,b))}; oW=function(F,J,b){b!==void 0&&Ov(F,J,b?1:0)}; h3=function(F,J,b){b!==void 0&&(kF(F,J*8+2),J=b.length,kF(F,J),Dy(F,J),F.C.set(b,F.pos),F.pos+=J)}; cA=function(F,J,b){b!==void 0&&(Yw4(F,J,Math.ceil(Math.log2(b.length*4+2)/7)),Dy(F,b.length*1.2),J=Gc(b,F.C.subarray(F.pos)),F.pos+J>F.C.length&&(Dy(F,J),J=Gc(b,F.C.subarray(F.pos))),F.pos+=J,$qz(F))}; Yw4=function(F,J,b){b=b===void 0?2:b;kF(F,J*8+2);F.U.push(F.pos);F.U.push(b);F.pos+=b}; $qz=function(F){for(var J=F.U.pop(),b=F.U.pop(),I=F.pos-b-J;J--;){var u=J?128:0;F.view.setUint8(b++,I&127|u);I>>=7}}; Uv=function(F,J,b,I,u){b&&(Yw4(F,J,u===void 0?3:u),I(F,b),$qz(F))}; g.ux=function(F,J,b){b=new suG(4096,b);J(b,F);return new Uint8Array(b.C.buffer,b.C.byteOffset,b.pos)}; g.w0=function(F){var J=new PA(new m_([lV(decodeURIComponent(F))]));F=$F(J,2);J=rE(J,4);var b=C0k[J];if(typeof b==="undefined")throw F=new g.hC("Failed to recognize field number",{name:"EntityKeyHelperError",jVv:J}),g.Td(F),F;return{FV:J,entityType:b,entityId:F}}; g.Ms=function(F,J){var b=new suG;h3(b,2,VK(F));F=XBm[J];if(typeof F==="undefined")throw J=new g.hC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:J}),g.Td(J),J;Ov(b,4,F);Ov(b,5,1);J=new Uint8Array(b.C.buffer,b.C.byteOffset,b.pos);return encodeURIComponent(g.zw(J))}; A$=function(F,J,b,I){if(I===void 0)return I=Object.assign({},F[J]||{}),b=(delete I[b],I),I={},Object.assign({},F,(I[J]=b,I));var u={},w={};return Object.assign({},F,(w[J]=Object.assign({},F[J],(u[b]=I,u)),w))}; Quz=function(F,J,b,I,u){var w=F[J];if(w==null||!w[b])return F;I=g.gE(w[b],I,u==="REPEATED_FIELDS_MERGE_OPTION_APPEND");u={};w={};return Object.assign({},F,(w[J]=Object.assign({},F[J],(u[b]=I,u)),w))}; Rw4=function(F,J){F=F===void 0?{}:F;switch(J.type){case "ENTITY_LOADED":return J.payload.reduce(function(I,u){var w,M=(w=u.options)==null?void 0:w.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return I;if(!u.entityKey)return g.Td(Error("Missing entity key")),I;if(u.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!u.payload)return g.Td(new g.hC("REPLACE entity mutation is missing a payload",{entityKey:u.entityKey})),I;var q=g.f$(u.payload); return A$(I,q,u.entityKey,u.payload[q])}if(u.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{u=u.entityKey;try{var v=g.w0(u).entityType;q=A$(I,v,u);break a}catch(K){if(K instanceof Error){g.Td(new g.hC("Failed to deserialize entity key",{entityKey:u,U_:K.message}));q=I;break a}throw K;}q=void 0}return q}if(u.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!u.payload)return g.Td(new g.hC("UPDATE entity mutation is missing a payload",{entityKey:u.entityKey})),I;q=g.f$(u.payload);var a,e;return Quz(I,q,u.entityKey, u.payload[q],(a=u.fieldMask)==null?void 0:(e=a.mergeOptions)==null?void 0:e.repeatedFieldsMergeOption)}return I},F); case "REPLACE_ENTITY":var b=J.payload;return A$(F,b.entityType,b.key,b.xV);case "REPLACE_ENTITIES":return Object.keys(J.payload).reduce(function(I,u){var w=J.payload[u];return Object.keys(w).reduce(function(M,q){return A$(M,u,q,w[q])},I)},F); case "UPDATE_ENTITY":return b=J.payload,Quz(F,b.entityType,b.key,b.xV,b.STD);default:return F}}; qs=function(F,J,b){return F[J]?F[J][b]||null:null}; vP=function(F){return window.Int32Array?new Int32Array(F):Array(F)}; mT=function(F){g.R.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.C=16;if(!DqG){var J,b=new Uint8Array(256),I=new Uint8Array(256);var u=1;for(J=0;J<256;J++)b[u]=J,I[J]=u,u^=u<<1^(u>>7&&283);a1=new Uint8Array(256);ek=vP(256);Kg=vP(256);pg=vP(256);g0=vP(256);for(var w=0;w<256;w++){u=w?I[255^b[w]]:0;u^=u<<1^u<<2^u<<3^u<<4;u=u&255^u>>>8^99;a1[w]=u;J=u<<1^(u>>7&&283);var M=J^u;ek[w]=J<<24|u<<16|u<<8|M;Kg[w]=M<<24|ek[w]>>>8;pg[w]=u<<24|Kg[w]>>>8;g0[w]=u<<24|pg[w]>>>8}DqG=!0}u=vP(44);for(b= 0;b<4;b++)u[b]=F[4*b]<<24|F[4*b+1]<<16|F[4*b+2]<<8|F[4*b+3];for(I=1;b<44;b++)F=u[b-1],b%4||(F=(a1[F>>16&255]^I)<<24|a1[F>>8&255]<<16|a1[F&255]<<8|a1[F>>>24],I=I<<1^(I>>7&&283)),u[b]=u[b-4]^F;this.key=u}; yo=function(F,J){for(var b=0;b<4;b++)F.counter[b]=J[b*4]<<24|J[b*4+1]<<16|J[b*4+2]<<8|J[b*4+3];F.C=16}; kfm=function(F){for(var J=F.key,b=F.counter[0]^J[0],I=F.counter[1]^J[1],u=F.counter[2]^J[2],w=F.counter[3]^J[3],M=3;M>=0&&!(F.counter[M]=-~F.counter[M]);M--);for(var q,v,a=4;a<40;)M=ek[b>>>24]^Kg[I>>16&255]^pg[u>>8&255]^g0[w&255]^J[a++],q=ek[I>>>24]^Kg[u>>16&255]^pg[w>>8&255]^g0[b&255]^J[a++],v=ek[u>>>24]^Kg[w>>16&255]^pg[b>>8&255]^g0[I&255]^J[a++],w=ek[w>>>24]^Kg[b>>16&255]^pg[I>>8&255]^g0[u&255]^J[a++],b=M,I=q,u=v;F=F.U;M=J[40];F[0]=a1[b>>>24]^M>>>24;F[1]=a1[I>>16&255]^M>>16&255;F[2]=a1[u>>8&255]^ M>>8&255;F[3]=a1[w&255]^M&255;M=J[41];F[4]=a1[I>>>24]^M>>>24;F[5]=a1[u>>16&255]^M>>16&255;F[6]=a1[w>>8&255]^M>>8&255;F[7]=a1[b&255]^M&255;M=J[42];F[8]=a1[u>>>24]^M>>>24;F[9]=a1[w>>16&255]^M>>16&255;F[10]=a1[b>>8&255]^M>>8&255;F[11]=a1[I&255]^M&255;M=J[43];F[12]=a1[w>>>24]^M>>>24;F[13]=a1[b>>16&255]^M>>16&255;F[14]=a1[I>>8&255]^M>>8&255;F[15]=a1[u&255]^M&255}; Ns=function(){if(!ix&&!g.c$){if(zI)return zI;var F;zI=(F=window.crypto)==null?void 0:F.subtle;var J,b,I;if(((J=zI)==null?0:J.importKey)&&((b=zI)==null?0:b.sign)&&((I=zI)==null?0:I.encrypt))return zI;zI=void 0}}; g.lx=function(F){this.Z=F}; g.fg=function(F){this.U=F}; WP=function(F){this.D=new Uint8Array(64);this.T=new Uint8Array(64);this.Z=0;this.W=new Uint8Array(64);this.U=0;this.D.set(F);this.T.set(F);for(F=0;F<64;F++)this.D[F]^=92,this.T[F]^=54;this.reset()}; OJC=function(F,J,b){for(var I=F.V,u=F.C[0],w=F.C[1],M=F.C[2],q=F.C[3],v=F.C[4],a=F.C[5],e=F.C[6],K=F.C[7],p,m,y,f=0;f<64;)f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p=I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=K+d0[f]+y+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&a^~v&e),m=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&w^u&M^w&M),K=p+m,q+=p,f++,f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p= I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=e+d0[f]+y+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&v^~q&a),m=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&u^K&w^u&w),e=p+m,M+=p,f++,f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p=I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=a+d0[f]+y+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&q^ ~M&v),m=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&K^e&u^K&u),a=p+m,w+=p,f++,f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p=I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=v+d0[f]+y+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&M^~w&q),m=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&e^a&K^e&K),y=K,K=q,q=y,y=e,e=M,M=y,y=a,a=w,w=y,v=u+p,u=p+m,f++;F.C[0]=u+F.C[0]|0;F.C[1]=w+F.C[1]|0;F.C[2]=M+F.C[2]|0;F.C[3]= q+F.C[3]|0;F.C[4]=v+F.C[4]|0;F.C[5]=a+F.C[5]|0;F.C[6]=e+F.C[6]|0;F.C[7]=K+F.C[7]|0}; hwm=function(F){var J=new Uint8Array(32),b=64-F.U;F.U>55&&(b+=64);var I=new Uint8Array(b);I[0]=128;for(var u=F.Z*8,w=1;w<9;w++){var M=u%256;I[b-w]=M;u=(u-M)/256}F.update(I);for(b=0;b<8;b++)J[b*4]=F.C[b]>>>24,J[b*4+1]=F.C[b]>>>16&255,J[b*4+2]=F.C[b]>>>8&255,J[b*4+3]=F.C[b]&255;oBY(F);return J}; oBY=function(F){F.C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];F.V=[];F.V.length=64;F.Z=0;F.U=0}; cAz=function(F){this.C=F}; UqJ=function(F,J,b){F=new WP(F.C);F.update(J);F.update(b);J=hwm(F);F.update(F.D);F.update(J);J=hwm(F);F.reset();return J}; xqJ=function(F){this.U=F}; nBG=function(F,J,b,I){var u,w,M;return g.S(function(q){switch(q.C){case 1:if(F.C){q.gD(2);break}return g.T(q,I.importKey("raw",F.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:F.C=q.U;case 2:return u=new Uint8Array(J.length+b.length),u.set(J),u.set(b,J.length),w={name:"HMAC",hash:"SHA-256"},g.T(q,I.sign(w,F.C,u),4);case 4:return M=q.U,q.return(new Uint8Array(M))}})}; tZv=function(F,J,b){F.T||(F.T=new cAz(F.U));return UqJ(F.T,J,b)}; ZJ4=function(F,J,b){var I,u;return g.S(function(w){if(w.C==1){I=Ns();if(!I)return w.return(tZv(F,J,b));g.lk(w,3);return g.T(w,nBG(F,J,b,I),5)}if(w.C!=3)return w.return(w.U);u=g.dY(w);g.rQ(u);ix=!0;return w.return(tZv(F,J,b))})}; LAa=function(F){for(var J="",b=0;b<F.length;b++){var I=F[b];if(b===0)I="M "+I.x.toFixed(1)+","+I.y.toFixed(1);else{var u=HJa(F[b-1],F[b-2],I),w=HJa(I,F[b-1],F[b+1],!0);I=" C "+(u.x.toFixed(1)+","+u.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1)+" "+I.x.toFixed(1)+","+I.y.toFixed(1))}J+=I}return J}; HJa=function(F,J,b,I){I=I===void 0?!1:I;J=new Fiz(J||F,b||F);return{x:F.x+((I===void 0?0:I)?J.C*-1:J.C)*.2,y:F.y+((I===void 0?0:I)?J.U*-1:J.U)*.2}}; Fiz=function(F,J){this.U=this.C=0;this.C=J.x-F.x;this.U=J.y-F.y}; I4o=function(F,J){var b,I,u;return g.S(function(w){if(w.C==1)return b={context:g.UV(),settingItemIds:J},I=g.ZI(JkG),g.T(w,g.cf(F,b,I),2);u=w.U;return!u||u.errorMetadata?(bOG("GetSettingValuesRequest",u),w.return(void 0)):w.return(u.settingValues)})}; w8G=function(F,J,b){var I,u,w;g.S(function(M){if(M.C==1)return I={context:g.UV(),settingItemId:J,newValue:b},u=g.ZI(unz),g.T(M,g.cf(F,I,u),2);w=M.U;if(!w||w.errorMetadata)return bOG("SetSettingRequest",w),M.return(void 0);g.N4(M)})}; bOG=function(F,J){J?J.errorMetadata&&g.rQ(new g.hC(F+" failed with status "+J.errorMetadata.status)):g.rQ(new g.hC(F+" failed with empty response"))}; EH=function(F,J,b){if(!J)return F.length>=1?F[F.length-1]:null;for(var I=g.N(F),u=I.next();!u.done;u=I.next())if(u=u.value,u.width&&u.height&&(b&&u.width>=J||!b&&u.height>=J))return u;for(J=F.length-1;J>=0;J--)if(b&&F[J].width||!b&&F[J].height)return F[J];return F[0]}; jk=function(){this.state=1;this.w0=null;this.ME=void 0}; Akv=function(F,J,b,I,u,w){var M=M===void 0?"trayride":M;b?(F.aC(2),g.wP(b,function(){if(window[M])MQm(F,I,M,u);else{F.aC(3);var q=dk3(b),v=document.getElementById(q);v&&(f$Y(q),v.parentNode.removeChild(v));g.rQ(new g.hC("Unable to load Botguard","from "+b))}},w)):J?(w=g.H1("SCRIPT"),J instanceof QG?(w.textContent=R0(J),Di(w)):w.textContent=J,w.nonce=Xv(document),document.head.appendChild(w),document.head.removeChild(w),window[M]?MQm(F,I,M,u):(F.aC(4),g.rQ(new g.hC("Unable to load Botguard from JS")))): g.rQ(new g.hC("Unable to load VM; no url or JS provided"))}; MQm=function(F,J,b,I){F.aC(5);var u=!!F.ME&&qTo.includes(g.Cu(F.ME)||"");try{var w=new y3({program:J,globalName:b,qK:{disable:!g.Nk("att_web_record_metrics")||!g.Nk("att_skip_metrics_for_cookieless_domains_ks")&&u,bk:"aGIf"}});w.Al.then(function(){F.aC(6);I&&I(J)}); F.qF(w)}catch(M){F.aC(7),M instanceof Error&&g.rQ(M)}}; GI=function(){var F=g.kC("yt.abuse.playerAttLoader");return F&&["bgvma","bgvmb","bgvmc"].every(function(J){return J in F})?F:null}; Vo=function(){jk.apply(this,arguments)}; PP=function(){}; vWa=function(F,J,b){for(var I=!1,u=g.N(F.ML.entries()),w=u.next();!w.done;w=u.next())w=g.N(w.value).next().value,w.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w.BN==="core"&&(I=!0);if(I){a:if(!b){F=g.N(F.ML.entries());for(b=F.next();!b.done;b=F.next())if(I=g.N(b.value),b=I.next().value,I=I.next().value,b.slotType==="SLOT_TYPE_IN_PLAYER"&&b.BN==="core"){b=I.layoutId;break a}b=void 0}b?J.dA(b):q_("No triggering layout ID available when attempting to mute.")}}; BP=function(F,J){this.pD=F;this.Rk=J}; TI=function(){}; r0=function(){}; ei3=function(F){g.R.call(this);var J=this;this.py=F;this.C=new Map;Sk(this,"commandExecutorCommand",function(b,I,u){a4z(J,b.commands,I,u)}); Sk(this,"clickTrackingParams",function(){})}; Kiz=function(F,J){Sk(F,J.LN(),function(b,I,u){J.Th(b,I,u)})}; Sk=function(F,J,b){F.iR();F.C.get(J)&&g.Td(Error("Extension name "+J+" already registered"));F.C.set(J,b)}; a4z=function(F,J,b,I){J=J===void 0?[]:J;F.iR();var u=[],w=[];J=g.N(J);for(var M=J.next();!M.done;M=J.next())M=M.value,g.O(M,p8m)||g.O(M,gW3)?u.push(M):w.push(M);u=g.N(u);for(J=u.next();!J.done;J=u.next())sH(F,J.value,b,I);w=g.N(w);for(u=w.next();!u.done;u=w.next())sH(F,u.value,b,I)}; sH=function(F,J,b,I){F.iR();J.loggingUrls&&mYm(F,"loggingUrls",J.loggingUrls,b,I);J=g.N(Object.entries(J));for(var u=J.next();!u.done;u=J.next()){var w=g.N(u.value);u=w.next().value;w=w.next().value;u==="openPopupAction"?F.py.get().t3("innertubeCommand",{openPopupAction:w}):u==="confirmDialogEndpoint"?F.py.get().t3("innertubeCommand",{confirmDialogEndpoint:w}):ykY.hasOwnProperty(u)||mYm(F,u,w,b,I)}}; mYm=function(F,J,b,I,u){if((F=F.C.get(J))&&typeof F==="function")try{F(b,I,u)}catch(w){g.Td(w)}else J=new g.hC("Unhandled field",J),g.rQ(J)}; YG=function(F,J,b){this.RP=F;this.C=J;this.EQ=b}; $G=function(F){this.value=F}; Cg=function(F){this.value=F}; XU=function(F){this.value=F}; Qo=function(F){this.value=F}; R1=function(F){this.value=F}; D5=function(F){this.value=F}; kG=function(F){this.value=F}; OH=function(){$G.apply(this,arguments)}; o1=function(F){this.value=F}; h$=function(F){this.value=F}; cP=function(F){this.value=F}; UH=function(F){this.value=F}; xG=function(F){this.value=F}; ng=function(F){this.value=F}; t$=function(F){this.value=F}; Z5=function(F){this.value=F}; HP=function(F){this.value=F}; Lg=function(F){this.value=F}; FA=function(){$G.apply(this,arguments)}; Jp=function(F){this.value=F}; bQ=function(F){this.value=F}; Id=function(F){this.value=F}; uQ=function(F){this.value=F}; wT=function(F){this.value=F}; MR=function(F){this.value=F}; Ap=function(F){this.value=F}; qR=function(F){this.value=F}; vM=function(F){this.value=F}; ad=function(F){this.value=F}; eK=function(F){this.value=F}; KK=function(F){this.value=F}; pK=function(F){this.value=F}; gT=function(F){this.value=F}; ms=function(F){this.value=F}; yD=function(F){this.value=F}; iQ=function(F){this.value=F}; zu=function(F){this.value=F}; NR=function(F){this.value=F}; lQ=function(F){this.value=F}; fK=function(F){this.value=F}; WM=function(F){this.value=F}; dT=function(F){this.value=F}; Et=function(F){this.value=F}; jK=function(F){this.value=F}; Gu=function(F){this.value=F}; VD=function(F){this.value=F}; PM=function(F){this.value=F}; BM=function(F){this.value=F}; Tu=function(F){this.value=F}; rT=function(F){this.value=F}; SK=function(F){this.value=F}; YY=function(F){this.value=F}; $Y=function(F){this.value=F}; CK=function(F){this.value=F}; XA=function(F){this.value=F}; QD=function(F){this.value=F}; Rd=function(F){this.value=F}; Dt=function(){$G.apply(this,arguments)}; kY=function(F){this.value=F}; Ot=function(){$G.apply(this,arguments)}; od=function(){$G.apply(this,arguments)}; hp=function(){$G.apply(this,arguments)}; cM=function(){$G.apply(this,arguments)}; Ut=function(){$G.apply(this,arguments)}; xY=function(F){this.value=F}; nK=function(F){this.value=F}; tp=function(F){this.value=F}; Zt=function(F){this.value=F}; HM=function(F){this.value=F}; Fu=function(F,J,b){if(b&&!b.includes(F.layoutType))return!1;J=g.N(J);for(b=J.next();!b.done;b=J.next())if(!LK(F.clientMetadata,b.value))return!1;return!0}; Jj=function(){return""}; iOa=function(F,J){switch(F){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 J(F),8}}; bL=function(F,J,b,I){I=I===void 0?!1:I;iW.call(this,F);this.Ek=b;this.Pm=I;this.args=[];J&&this.args.push(J)}; Z=function(F,J,b,I){I=I===void 0?!1:I;iW.call(this,F);this.Ek=b;this.Pm=I;this.args=[];J&&this.args.push(J)}; Ii=function(F){var J=new Map;F.forEach(function(b){J.set(b.getType(),b)}); this.C=J}; LK=function(F,J){return F.C.has(J)}; uL=function(F,J){F=F.C.get(J);if(F!==void 0)return F.get()}; wX=function(F){return Array.from(F.C.keys())}; Me=function(F,J,b){if(b&&b!==F.slotType)return!1;J=g.N(J);for(b=J.next();!b.done;b=J.next())if(!LK(F.clientMetadata,b.value))return!1;return!0}; NQJ=function(F){var J;return((J=ziG.get(F))==null?void 0:J.LQ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; qe=function(F,J){var b={type:J.slotType,controlFlowManagerLayer:l4z.get(J.BN)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J.slotEntryTrigger&&(b.entryTriggerType=J.slotEntryTrigger.triggerType);J.slotPhysicalPosition!==1&&(b.slotPhysicalPosition=J.slotPhysicalPosition);if(F){b.debugData={slotId:J.slotId};if(F=J.slotEntryTrigger)b.debugData.slotEntryTriggerData=Aj(F);F=J.slotFulfillmentTriggers;b.debugData.fulfillmentTriggerData=[];F=g.N(F);for(var I=F.next();!I.done;I=F.next())b.debugData.fulfillmentTriggerData.push(Aj(I.value)); J=J.slotExpirationTriggers;b.debugData.expirationTriggerData=[];J=g.N(J);for(F=J.next();!F.done;F=J.next())b.debugData.expirationTriggerData.push(Aj(F.value))}return b}; f4C=function(F,J){var b={type:J.layoutType,controlFlowManagerLayer:l4z.get(J.BN)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};F&&(b.debugData={layoutId:J.layoutId});return b}; Aj=function(F,J){var b={type:F.triggerType};J!=null&&(b.category=J);F.triggeringSlotId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedSlotId=F.triggeringSlotId);F.triggeringLayoutId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedLayoutId=F.triggeringLayoutId);return b}; Wia=function(F,J,b,I){J={opportunityType:J};F&&(I||b)&&(I=g.EG(I||[],function(u){return qe(F,u)}),J.debugData=Object.assign({},b&&b.length>0?{associatedSlotId:b}:{},I.length>0?{slots:I}:{})); return J}; ai=function(F,J){return function(b){return dYv(vq(F),J.slotId,J.slotType,J.slotPhysicalPosition,J.BN,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,b.layoutId,b.layoutType,b.BN)}}; dYv=function(F,J,b,I,u,w,M,q,v,a,e){return{adClientDataEntry:{slotData:qe(F,{slotId:J,slotType:b,slotPhysicalPosition:I,BN:u,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:q,clientMetadata:new Ii([])}),layoutData:f4C(F,{layoutId:v,layoutType:a,BN:e,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],ww:new Map,clientMetadata:new Ii([]),lT:{}})}}}; KT=function(F){this.uR=F;F=Math.random();var J=this.uR.get();J=g.eB(J.G.J().experiments,"html5_debug_data_log_probability");J=Number.isFinite(J)&&J>=0&&J<=1?J:0;this.C=F<J}; vq=function(F){return F.C||F.uR.get().G.J().S("html5_force_debug_data_for_client_tmp_logs")}; pT=function(F,J,b,I){g.R.call(this);this.U=J;this.S3=b;this.uR=I;this.C=F(this,this,this,this,this);g.k(this,this.C);F=g.N(J);for(J=F.next();!J.done;J=F.next())g.k(this,J.value)}; gX=function(F,J){F.U.add(J)}; mO=function(F,J){F.U.delete(J)}; iL=function(F,J,b,I){q_(b,J,void 0,void 0,b.Pm);b.Ek?F.S3.kK(I,b.Ek,J):q_("adsClientErrorMessage is missing.",J);yS(F,J,!0)}; jOJ=function(F,J,b){if(z0(F.C,J))if(Ne(F.C,J).Z=b?"filled":"not_filled",b===null){F.S3.Ah("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",J);b=g.N(F.U);for(var I=b.next();!I.done;I=b.next())I.value.xj(J);yS(F,J,!1)}else{F.S3.Ah("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",J,b);F.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",J,b);var u,w=(u=b.Ag)!=null?u:uL(b.clientMetadata,"metadata_type_sub_layouts");if(w)for(u=g.N(w),w=u.next();!w.done;w=u.next())F.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", J,w.value);u=g.N(F.U);for(w=u.next();!w.done;w=u.next())w.value.F3(J);if(z0(F.C,J))if(Ne(F.C,J).D)yS(F,J,!1);else{F.S3.Ah("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",J,b);try{I=F.C;if(!Ne(I,J))throw new bL("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!I.JX.i4.get(J.slotType))throw new bL("No LayoutRenderingAdapterFactory registered for slot of type: "+J.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(b.layoutExitNormalTriggers.length==0&&b.layoutExitSkipTriggers.length==0&&b.layoutExitMuteTriggers.length==0&&b.layoutExitUserInputSubmittedTriggers.length==0&&b.z1.length==0)throw new bL("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");lL(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",b.layoutExitNormalTriggers);lL(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",b.layoutExitSkipTriggers);lL(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",b.layoutExitMuteTriggers); lL(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",b.layoutExitUserInputSubmittedTriggers);lL(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",b.z1)}catch(a){a instanceof bL?F.XW(J,b,a,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):F.XW(J,b,new bL("Unexpected error: "+a,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");yS(F,J,!0);return}Ne(F.C,J).W=!0;try{var M=F.C,q=Ne(M,J),v=M.JX.i4.get(J.slotType).get().build(M.Z,M.U,J,b);v.init();q.layout= b;if(q.T)throw new bL("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");q.T=v;fT(M,q,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",b.layoutExitNormalTriggers);fT(M,q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",b.layoutExitSkipTriggers);fT(M,q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",b.layoutExitMuteTriggers);fT(M,q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",b.layoutExitUserInputSubmittedTriggers);fT(M,q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", b.z1)}catch(a){Wq(F,J);a instanceof bL?F.XW(J,b,a,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):F.XW(J,b,new bL("Unexpected error: "+a,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");yS(F,J,!0);return}F.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",J,b);I=g.N(F.U);for(M=I.next();!M.done;M=I.next())M.value.gq(J,b);Wq(F,J);EWa(F,J)}else F=F.uR.get(),g.dX(F.G.J())||En(F.G.J())||g.jB(F.G.J())?F=!0:(q_("Composite VOD on legacy path."),F=!1),F&&q_("slot is unscheduled after been fulfilled.", J,b)}}; Gda=function(F,J,b){J.BN!=="core"&&F.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",J,b,void 0)}; VQa=function(F,J,b){F.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",J,b,void 0);F=g.N(F.U);for(var I=F.next();!I.done;I=F.next())I.value.gq(J,b)}; P$G=function(F,J,b){F=g.N(F.U);for(var I=F.next();!I.done;I=F.next())I.value.fd(J,b)}; G0=function(F,J,b){F.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",J,b,void 0);F=g.N(F.U);for(var I=F.next();!I.done;I=F.next())I.value.bT(J,b)}; VS=function(F,J,b,I){F.S3.Ah(NQJ(I),J,b,void 0);F=g.N(F.U);for(var u=F.next();!u.done;u=F.next())u.value.A_(J,b,I)}; Wq=function(F,J){if(z0(F.C,J)){Ne(F.C,J).W=!1;var b=Pq;J=Ne(F.C,J);var I=[].concat(g.W(J.Y));H3G(J.Y);b(F,I)}}; Pq=function(F,J){J.sort(function(w,M){function q(v){q_("TriggerCategoryOrder enum does not contain trigger category: "+v)} return w.category===M.category?w.trigger.triggerId.localeCompare(M.trigger.triggerId):iOa(w.category,q)-iOa(M.category,q)}); var b=new Map;J=g.N(J);for(var I=J.next();!I.done;I=J.next())if(I=I.value,z0(F.C,I.slot))if(Ne(F.C,I.slot).W)Ne(F.C,I.slot).Y.push(I);else{F.S3.VA("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",I.slot,I,I.layout);var u=b.get(I.category);u||(u=[]);u.push(I);b.set(I.category,u)}J=g.N(BQm);for(I=J.next();!I.done;I=J.next())u=g.N(I.value),I=u.next().value,u=u.next().value,(I=b.get(I))&&TQv(F,I,u);(J=b.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&rkz(F,J);(J=b.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&STY(F, J);(b=b.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&sOv(F,b)}; TQv=function(F,J,b){J=g.N(J);for(var I=J.next();!I.done;I=J.next())I=I.value,I.layout&&Bq(F.C,I.slot)&&YTz(F,I.slot,I.layout,b)}; rkz=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next())yS(F,b.value.slot,!1)}; STY=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;a:switch(Ne(F.C,b.slot).Z){case "not_filled":var I=!0;break a;default:I=!1}I&&(F.S3.k0("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",b.slot),F.C.Ge(b.slot))}}; sOv=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;F.S3.k0("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",b.slot);for(var I=g.N(F.U),u=I.next();!u.done;u=I.next())u.value.tX(b.slot);try{var w=F.C,M=b.slot,q=Ne(w,M);if(!q)throw new Z("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!q.U)throw new Z("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(q.C!=="scheduled")throw new Z("Tried to enter a slot from stage: "+ q.C,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(T0(q))throw new Z("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var v=g.N(rX(w,M.slotType+"_"+M.slotPhysicalPosition).values()),a=v.next();!a.done;a=v.next()){var e=a.value;if(q!==e&&T0(e))throw new Z("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:e.C},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(K){K instanceof Z&&K.Ek?(F.S3.kK("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED", K.Ek,b.slot),q_(K,b.slot,SB(F.C,b.slot),void 0,K.Pm)):(F.S3.kK("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b.slot),q_(K,b.slot));yS(F,b.slot,!0);continue}b=Ne(F.C,b.slot);b.C!=="scheduled"&&sn(b.slot,b.C,"enterSlot");b.C="enter_requested";b.U.hs()}}; EWa=function(F,J){if(z0(F.C,J)&&T0(Ne(F.C,J))&&SB(F.C,J)&&!Bq(F.C,J)){var b;F.S3.Ah("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",J,(b=SB(F.C,J))!=null?b:void 0);F=Ne(F.C,J);F.C!=="entered"&&sn(F.slot,F.C,"enterLayoutForSlot");F.C="rendering";F.T.startRendering(F.layout)}}; YTz=function(F,J,b,I){if(z0(F.C,J)){var u=F.S3,w=u.Ah,M;var q=((M=ziG.get(I))==null?void 0:M.KQ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";w.call(u,q,J,b);F=Ne(F.C,J);F.C!=="rendering"&&sn(F.slot,F.C,"exitLayout");F.C="rendering_stop_requested";F.T.T$(b,I)}}; yS=function(F,J,b){if(z0(F.C,J)){a:switch(Ne(F.C,J).C){case "exit_requested":var I=!0;break a;default:I=!1}if(!I)a:switch(Ne(F.C,J).C){case "rendering_stop_requested":I=!0;break a;default:I=!1}if(I&&(Ne(F.C,J).D=!0,!b))return;if(T0(Ne(F.C,J)))Ne(F.C,J).D=!0,$Yz(F,J,b);else{a:switch(Ne(F.C,J).Z){case "fill_requested":b=!0;break a;default:b=!1}if(b)Ne(F.C,J).D=!0,z0(F.C,J)&&(F.S3.k0("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",J),J=Ne(F.C,J),J.Z="fill_cancel_requested",J.V.fn());else{b= SB(F.C,J);(I=F.uR.get().G.J().experiments.pW("h5_enable_layout_unscheduling_events"))&&(b?F.fd(J,b):q_(Error("Layout is null for LayoutUnscheduled event."),J,b,void 0,!1));F.S3.k0("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",J);var u=Ne(F.C,J),w=J.slotEntryTrigger,M=u.Gj.get(w.triggerId);M&&(M.CD(w),u.Gj.delete(w.triggerId));w=g.N(J.slotFulfillmentTriggers);for(M=w.next();!M.done;M=w.next()){M=M.value;var q=u.Tj.get(M.triggerId);q&&(q.CD(M),u.Tj.delete(M.triggerId))}w=g.N(J.slotExpirationTriggers); for(M=w.next();!M.done;M=w.next())if(M=M.value,q=u.N.get(M.triggerId))q.CD(M),u.N.delete(M.triggerId);u.layout!=null&&(w=u.layout,YX(u,w.layoutExitNormalTriggers),YX(u,w.layoutExitSkipTriggers),YX(u,w.layoutExitMuteTriggers),YX(u,w.layoutExitUserInputSubmittedTriggers),YX(u,w.z1));u.V=void 0;u.U!=null&&(u.U.release(),u.U=void 0);u.T!=null&&(u.T.release(),u.T=void 0);u=F.C;Ne(u,J)&&(u=rX(u,J.slotType+"_"+J.slotPhysicalPosition))&&u.delete(J.slotId);F.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", J);F=g.N(F.U);for(u=F.next();!u.done;u=F.next())u=u.value,u.Bh(J),b&&!I&&u.fd(J,b)}}}}; $Yz=function(F,J,b){if(z0(F.C,J)&&T0(Ne(F.C,J))){var I=SB(F.C,J);if(I&&Bq(F.C,J))YTz(F,J,I,b?"error":"abandoned");else{F.S3.k0("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",J);try{var u=Ne(F.C,J);if(!u)throw new Z("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");u.C!=="enter_requested"&&u.C!=="entered"&&u.C!=="rendering"&&sn(u.slot,u.C,"exitSlot");u.C="exit_requested";if(u.U===void 0)throw u.C="scheduled",new Z("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");u.U.KV()}catch(w){w instanceof Z&&w.Ek?(F.S3.kK("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",w.Ek,J),q_(w,J,void 0,void 0,w.Pm)):(F.S3.kK("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",J),q_(w,J))}}}}; C$m=function(F){this.slot=F;this.Gj=new Map;this.Tj=new Map;this.N=new Map;this.eE=new Map;this.T=this.layout=this.U=this.V=void 0;this.W=this.D=!1;this.Y=[];this.C="not_scheduled";this.Z="not_filled"}; T0=function(F){return F.C==="enter_requested"||F.isActive()}; $X=function(F,J,b,I,u,w){g.R.call(this);this.JX=F;this.T=J;this.D=b;this.Z=I;this.U=u;this.uR=w;this.C=new Map}; rX=function(F,J){return(F=F.C.get(J))?F:new Map}; Ne=function(F,J){return rX(F,J.slotType+"_"+J.slotPhysicalPosition).get(J.slotId)}; X8C=function(F){var J=[];F.C.forEach(function(b){b=g.N(b.values());for(var I=b.next();!I.done;I=b.next())J.push(I.value.slot)}); return J}; z0=function(F,J){return Ne(F,J)!=null}; Bq=function(F,J){F=Ne(F,J);if(J=F.layout!=null)a:switch(F.C){case "rendering":case "rendering_stop_requested":J=!0;break a;default:J=!1}return J}; SB=function(F,J){(F=Ne(F,J))?F.layout!=null&&!F.layout&&q_("Unexpected empty layout",J):q_("Unexpected undefined slotState",J);return(F==null?void 0:F.layout)||null}; CT=function(F,J,b){if(b.length==0)throw new Z("No "+QOk.get(J)+" triggers found for slot.",void 0,Riz(J));b=g.N(b);for(var I=b.next();!I.done;I=b.next())if(I=I.value,!F.JX.Rn.get(I.triggerType))throw new Z("No trigger adapter registered for "+J+" trigger of type: "+I.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; Riz=function(F){switch(F){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"}}; lL=function(F,J,b){b=g.N(b);for(var I=b.next();!I.done;I=b.next())if(I=I.value,!F.JX.Rn.get(I.triggerType))throw new bL("No trigger adapter registered for "+QOk.get(J)+" trigger of type: "+I.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; fT=function(F,J,b,I){I=g.N(I);for(var u=I.next();!u.done;u=I.next()){u=u.value;var w=F.JX.Rn.get(u.triggerType);w.cS(b,u,J.slot,J.layout?J.layout:null);J.eE.set(u.triggerId,w)}}; YX=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=F.eE.get(b.triggerId);I&&(I.CD(b),F.eE.delete(b.triggerId))}}; sn=function(F,J,b){q_("Slot stage was "+J+" when calling method "+b,F)}; DYY=function(F){return Xu(F.xG).concat(Xu(F.Rn)).concat(Xu(F.Y6)).concat(Xu(F.ud)).concat(Xu(F.i4))}; Xu=function(F){var J=[];F=g.N(F.values());for(var b=F.next();!b.done;b=F.next())b=b.value,b.Gn&&J.push(b);return J}; QS=function(F){g.R.call(this);var J=this;this.C=F;this.instance=null;this.addOnDisposeCallback(function(){g.q8(J.instance);J.instance=null})}; Ri=function(F){return new QS(F)}; DY=function(F){g.R.call(this);this.C=F;this.U=kdz(this)}; kdz=function(F){var J=new pT(function(b,I,u,w){return new $X(F.C.JX,b,I,u,w,F.C.uR)},new Set(DYY(F.C.JX).concat(F.C.listeners)),F.C.S3,F.C.uR); g.k(F,J);return J}; kX=function(F){this.C=F}; On=function(F,J,b){a4z(F.C(),J,b)}; oi=function(F,J,b,I){(F=F.C())||q_("Could not initiate a command router instance.");sH(F,J,b,I)}; hj=function(){this.listeners=new Set}; cq=function(F){this.uR=F}; OO3=function(F,J){var b=J.bgp&&J.bgub,I=!!J.upb;J.siub&&J.scs&&(b||I)&&(I&&Un(F.uR.get(),"html5_export_sodar_snapshot")?PQ().then(function(u){u=u.snapshot.bind(u);g.RG("yt.abuse.playerAttLoaderRun",u);Z_G(J.siub,J.scs,J.bgub,J.bgp,J.upb)}):Z_G(J.siub,J.scs,J.bgub,J.bgp,J.upb))}; oWC=function(F,J,b,I,u){this.callback=F;this.slot=J;this.U=b;this.P1=I;this.uR=u;this.C=null}; ckz=function(F,J,b,I){F.C&&q_("Currently active request ongoing for slot. This should never happen",F.slot);F.C=J();F.C.then(function(u){F.C=null;I&&I(u);var w=u.Hp?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",M=F.U.get(),q=F.slot.slotId,v=ai(F.P1.get(),{slotId:F.slot.slotId,slotType:F.slot.slotType,slotPhysicalPosition:F.slot.slotPhysicalPosition,BN:F.slot.BN,slotEntryTrigger:F.slot.slotEntryTrigger,slotFulfillmentTriggers:F.slot.slotFulfillmentTriggers,slotExpirationTriggers:F.slot.slotExpirationTriggers}), a=xX(M.U.get(),w,q),e={layoutId:a,layoutType:w,BN:"core"};u={layoutId:a,layoutType:w,ww:new Map,layoutExitNormalTriggers:[new hiY(M.C,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new CK(u)]),lT:v(e)};jOJ(F.callback,F.slot,u)},function(u){F.C=null; b&&b();u instanceof l5||iL(F.callback,F.slot,new Z(u,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; UY7=function(F){if(F.C==null)F.callback.eA(F.slot);else try{F.C.cancel(),F.C=null,F.callback.eA(F.slot)}catch(J){F.C=null,iL(F.callback,F.slot,new Z(J,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; nT=function(F,J,b,I){!F&&(b===void 0?0:b)&&g.rQ(Error("Player URL validator detects invalid url. "+(I===void 0?"":I)+": "+J));return F}; tj=function(F,J){return J&&J.test(F)?!0:!1}; ZY=function(F){return(F=xY_&&xY_.exec(F))?F[0]:""}; Hq=function(F){var J=J===void 0?!1:J;return nT(tj(F,nWC),F,J,"Trusted Stream URL")}; g.LT=function(F){var J=J===void 0?!1:J;return nT(tj(F,tQJ),F,J,"Trusted Image URL")}; HOY=function(F){var J=J===void 0?!1:J;return nT(tj(F,ZOa),F,J,"Trusted Promoted Video Domain URL")}; Fh4=function(F){var J=J===void 0?!1:J;return nT(tj(F,Liz),F,J,"Drm Licensor URL")}; brv=function(F,J){J=J===void 0?!1:J;return nT(tj(F,Jrm),F,J,"Captions URL")}; IUm=function(F){F=new g.a2(F);g.eh(F,document.location.protocol);g.KM(F,document.location.hostname);document.location.port&&g.pM(F,document.location.port);return F.toString()}; FK=function(F){F=new g.a2(F);g.eh(F,document.location.protocol);return F.toString()}; g.b6=function(F,J,b){b=b===void 0?{}:b;this.start=F;this.end=J;this.active=!0;this.color="";this.ac=0;this.U=uX_++;this.id=b.id||"";this.priority=b.priority||9;this.visible=b.visible||!1;this.style=b.style||Js.AD_MARKER;this.namespace=b.namespace||"";if(F=b.color)F=F.toString(16),this.color="#"+Array(7-F.length).join("0")+F;this.tooltip=b.tooltip;this.icons=b.icons?b.icons.filter(function(I){return g.jw(I.thumbnails,function(u){return g.LT(u.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; wiC=function(F){return F===-0x8000000000000?"BEFORE_MEDIA_START":F===0?"MEDIA_START":F===0x7ffffffffffff?"MEDIA_END":F===0x8000000000000?"AFTER_MEDIA_END":F.toString()}; M0a=function(F,J){switch(F.style){case Js.CHAPTER_MARKER:return J?8:5;case Js.AD_MARKER:return 6;case Js.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.IV=function(F,J){return F.start-J.start||F.priority-J.priority||F.U-J.U}; g.u6=function(F){return"crn_"+F}; g.wq=function(F){return"crx_"+F}; MC=function(F,J,b,I,u,w,M,q,v){this.slot=J;this.U=b;this.EQ=M;this.OQ=q;this.RC=v;this.C=new oWC(F,J,I,u,w)}; Ar_=function(F){var J;(J=F.RC)==null||J.get().Jx(uL(F.slot.clientMetadata,"metadata_type_cue_point").identifier)}; As=function(F,J,b,I,u,w){this.slot=J;this.C=b;this.U=new oWC(F,J,I,u,w)}; qC=function(F,J){this.callback=F;this.slot=J}; v7=function(F,J){return Me(F,J.WV,J.slotType)?!0:!1}; aV=function(){}; er=function(F,J,b,I,u,w,M){this.C=F;this.U=J;this.P1=b;this.uR=I;this.EQ=u;this.OQ=w;this.RC=M}; Kd=function(){}; qj7=function(F,J,b,I,u,w){this.callback=F;this.slot=J;this.layout=b;this.T=I;this.C=u;this.U=w}; aUv=function(F){if(uL(F.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var J=vS3(F,F.slot);pd(F.C.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[J]})}}; eeG=function(F){if(uL(F.slot.clientMetadata,"metadata_type_prefetch_metadata")){var J=vS3(F,F.slot);pd(F.C.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[J]})}}; vS3=function(F,J){var b=gq(F.U.get(),F.slot.slotType),I=Object,u=I.assign;F=F.slot;if(J.slotEntryTrigger){var w=J.slotId;var M=J.slotEntryTrigger;w=M.triggeringSlotId!=null&&M.triggeringSlotId===w?M.clone(b):M}else w=void 0;return u.call(I,{},F,{slotId:b,slotEntryTrigger:w,slotFulfillmentTriggers:KhC(J.slotId,b,J.slotFulfillmentTriggers),slotExpirationTriggers:KhC(J.slotId,b,J.slotExpirationTriggers)})}; KhC=function(F,J,b){var I=[];b=g.N(b);for(var u=b.next();!u.done;u=b.next()){var w=I,M=w.push;var q=F;var v=J;u=u.value;q=u.triggeringSlotId!=null&&u.triggeringSlotId===q?u.clone(v):u;M.call(w,q)}return I}; g.m8=function(F,J){for(var b=g.N(Object.keys(J)),I=b.next(),u={};!I.done;u={placeholder:void 0},I=b.next())I=I.value,u.placeholder=J[I],F=F.replace(new RegExp("\\$"+I,"gi"),function(w){return function(){return w.placeholder}}(u)); return F}; pia=function(F,J,b){this.C=F;this.slot=J;this.layout=b}; yp=function(F,J,b){J.layoutId!==F.layout.layoutId?F.C.XW(F.slot,J,new bL("Unknown layout received. Required LayoutId: "+F.layout.layoutId+("and LayoutType: "+F.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):b()}; i6=function(F,J,b,I){g.uA.call(this);this.callback=F;this.T=I;this.C=[];this.U=new pia(F,J,b)}; NC=function(F,J,b,I,u,w,M,q){I=I||uL(b.clientMetadata,w);F=zs(F);var v=Ku(function(){u.bT(J,b)}); q.push(M(I,F,b.layoutId,{adsClientData:b.lT},function(){v()}))}; fd=function(F,J,b,I,u,w,M,q,v){if(J===F)if(v){if(v===q.layoutId){a:{F=g.N(b.keys());for(J=F.next();!J.done;J=F.next())if(J=J.value,J.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w===b.get(J).layoutId){b=!0;break a}b=!1}b?l6(I,1):u?u():q_("Tried to call engagePingCallback but it is null",M,q)}}else q_("Companion AdUxClick received without a layoutId",M,q)}; W7=function(F){var J,b,I,u,w;return!((J=F.get("active_view_viewable"))==null||!J.length)||!((b=F.get("active_view_measurable"))==null||!b.length)||!((I=F.get("active_view_fully_viewable_audible_half_duration"))==null||!I.length)||!((u=F.get("audio_audible"))==null||!u.length)||!((w=F.get("audio_measurable"))==null||!w.length)}; dq=function(F){var J,b;return(b=F==null?void 0:(J=F.activeViewTracking)==null?void 0:J.trafficType)!=null?b:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Eh=function(F){var J,b;return new Map([["impression",F.impressionPings||[]],["error",F.errorPings||[]],["mute",F.mutePings||[]],["unmute",F.unmutePings||[]],["pause",F.pausePings||[]],["rewind",F.rewindPings||[]],["resume",F.resumePings||[]],["skip",F.skipPings||[]],["swipe",F.swipePings||[]],["close",F.closePings||[]],["progress",F.progressPings||[]],["clickthrough",F.clickthroughPings||[]],["fullscreen",F.fullscreenPings||[]],["active_view_viewable",F.activeViewViewablePings||[]],["active_view_measurable", F.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",F.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((J=F.activeViewTracking)==null?void 0:J.activeViewAudioAudiblePings)||[]],["audio_measurable",((b=F.activeViewTracking)==null?void 0:b.activeViewAudioMeasurablePings)||[]],["end_fullscreen",F.endFullscreenPings||[]],["channel_clickthrough",F.channelClickthroughPings||[]],["abandon",F.abandonPings||[]],["start",F.startPings||[]],["first_quartile", F.firstQuartilePings||[]],["midpoint",F.secondQuartilePings||[]],["third_quartile",F.thirdQuartilePings||[]],["complete",F.completePings||[]],["unmuted_impression",F.unmutedImpressionPings||[]],["unmuted_error",F.unmutedErrorPings||[]],["unmuted_mute",F.unmutedMutePings||[]],["unmuted_unmute",F.unmutedUnmutePings||[]],["unmuted_pause",F.unmutedPausePings||[]],["unmuted_resume",F.unmutedResumePings||[]],["unmuted_close",F.unmutedClosePings||[]],["unmuted_progress",F.unmutedProgressPings||[]],["unmuted_clickthrough", F.unmutedClickthroughPings||[]],["unmuted_fullscreen",F.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",F.unmutedEndFullscreenPings||[]],["unmuted_abandon",F.unmutedAbandonPings||[]],["unmuted_start",F.unmutedStartPings||[]],["unmuted_first_quartile",F.unmutedFirstQuartilePings||[]],["unmuted_midpoint",F.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",F.unmutedThirdQuartilePings||[]],["unmuted_complete",F.unmutedCompletePings||[]],["unmuted_skip",F.unmutedSkipPings||[]]])}; gSm=function(F){switch(F){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}}; jr=function(F,J,b,I,u){u=u===void 0?null:u;this.T=F;this.EQ=J;this.layoutId=I;this.Z=0;this.W=null;this.D=void 0;this.C=new Set;this.U=Array.from(this.T.get("progress")||[]);this.U.sort(function(w,M){return(w.offsetMilliseconds||0)-(M.offsetMilliseconds||0)}); this.V={adPlacementConfig:b,Jb:u}}; Gs=function(){return["metadata_type_ad_placement_config"]}; zs=function(F){var J=F.EQ.get();return Vp(J,F.V)}; B7=function(F,J,b){b=b===void 0?!1:b;F.C.has(J)?P7(F,J,[]):F.JJ(J,b)}; Ts=function(F,J,b){for(b=b===void 0?!1:b;F.Z<F.U.length;){var I=F.U[F.Z];if(I.offsetMilliseconds<=J||b)P7(F,"progress",[I]),F.Z++;else break}}; rq=function(F,J){return F.C.has(J)}; Sr=function(F){return F.U.every(function(J){return J.hasOwnProperty("offsetMilliseconds")})}; mcY=function(F,J,b){F.W=J;F.D=b}; P7=function(F,J,b){var I;yr7(F.EQ.get(),F.layoutId,J,b,(I=F.W)!=null?I:void 0,F.D)}; irz=function(F,J,b,I,u){I4.call(this,"ads-engagement-panel-layout",F,J,b,I,u)}; sh=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.W=q;this.Gn=!0;this.Z=null;this.D=uL(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id");gX(this.rY(),this);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; zek=function(){var F=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_PANEL"]}}; NVa=function(F,J,b,I,u){I4.call(this,"banner-image",F,J,b,I,u)}; Y5=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.W=q;this.Gn=!0;this.Z=null;this.D=uL(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id");gX(this.rY(),this);this.adPlacementConfig=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,this.adPlacementConfig,b.layoutId)}; lUY=function(){var F=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; $5=function(F,J,b,I,u){I4.call(this,"action-companion",F,J,b,I,u)}; Cd=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.W=q;this.Gn=!0;this.Z=null;this.D=uL(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id");gX(this.rY(),this);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; fU_=function(){var F=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; Wha=function(F,J,b,I,u){I4.call(this,"image-companion",F,J,b,I,u)}; XK=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.W=q;this.Gn=!0;this.Z=null;this.D=uL(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id");gX(this.rY(),this);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; dc3=function(){var F=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; ESz=function(F,J,b,I,u){I4.call(this,"shopping-companion",F,J,b,I,u)}; Qp=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.W=q;this.Gn=!0;this.Z=null;this.D=uL(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id");gX(this.rY(),this);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; j4a=function(){var F=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; Gh4=function(F){var J;if(((J=F.adVideoOffset)==null?void 0:J.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var b;return((b=F.adVideoOffset)==null?void 0:b.percent)!=null}; V0z=function(F){var J;if(((J=F.adVideoOffset)==null?void 0:J.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var b;return((b=F.adVideoOffset)==null?void 0:b.milliseconds)!=null&&!isNaN(Number(F.adVideoOffset.milliseconds))}; PAv=function(F,J,b,I){this.D7=F;this.layoutId=b;this.D=I;this.U=[];this.C=[];this.T=this.Z=0;F=g.N(J);for(J=F.next();!J.done;J=F.next())switch(J=J.value,b=void 0,(b=J.adVideoOffset)==null?void 0:b.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":Gh4(J)?this.U.push(J):q_("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":V0z(J)?this.C.push(J):q_("Invalid AdVideoProgressMillisecondsCommand");break;default:q_("Unknown or invalid AdVideoProgressOffSet kind")}this.U.sort(function(u, w){return u.adVideoOffset.percent-w.adVideoOffset.percent}); this.C.sort(function(u,w){return Number(u.adVideoOffset.milliseconds)-Number(w.adVideoOffset.milliseconds)})}; RV=function(F,J,b){b=b===void 0?!1:b;var I=F.D();if(I){for(;F.Z<F.U.length;){var u=F.U[F.Z];if(u.adVideoOffset.percent*I<=J||b)F.D7.get().executeCommand(u.command,F.layoutId),F.Z++;else break}for(;F.T<F.C.length;)if(I=F.C[F.T],Number(I.adVideoOffset.milliseconds)<=J||b)F.D7.get().executeCommand(I.command,F.layoutId),F.T++;else break}}; DQ=function(F,J,b,I,u,w){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.Gn=!0;gX(this.rY(),this);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; BVz=function(){var F=["metadata_type_action_companion_ad_renderer"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; TV7=function(F,J,b,I,u,w,M,q){this.callback=F;this.slot=J;this.layout=b;this.OQ=I;this.EQ=u;this.uR=M;this.X4=q;this.C=!1;F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId);var v;F=((v=uL(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:v.progressCommands)||[];var a=uL(b.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.U=new PAv(w,F,b.layoutId,function(){return a*1E3})}; k5=function(F,J,b,I,u,w){i6.call(this,F,J,b,I);this.OQ=u;this.D=w;this.Z=!1}; Oh=function(F,J,b,I,u){I4.call(this,"top-banner-image-text-icon-buttoned",F,J,b,I,u)}; oV=function(F,J,b,I,u,w){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.Gn=!0;gX(this.rY(),this);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; rra=function(){var F=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; hs=function(F,J,b){I4.call(this,"display-underlay-text-grid-cards",F,{},J,b);this.interactionLoggingClientData=b}; c7=function(F,J,b,I,u,w){i6.call(this,F,J,b,I);this.EQ=u;this.Z=w;this.D=uL(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; Uh=function(F,J,b,I,u,w){u=u===void 0?!1:u;w=w===void 0?!1:w;I4.call(this,"ad-action-interstitial",F,J,b,I);this.interactionLoggingClientData=I;this.HA=u;this.qm=w}; x5=function(F,J,b,I,u){i6.call(this,F,J,b,I);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,u,F,b.layoutId)}; Sjz=function(){var F=["metadata_type_ad_action_interstitial_renderer"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_ENDCAP"]}}; nd=function(F,J){return Fu(F,J.WV,J.C7)?!0:!1}; ts=function(F,J,b){this.U=F;this.T=J;this.C=b}; s43=function(F,J,b,I,u){I4.call(this,"ads-engagement-panel",F,J,b,I,u)}; ZQ=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.W=q;this.Gn=!0;this.Z=null;this.D=uL(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id");gX(this.rY(),this);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; Yja=function(){var F=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; H7=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.EQ=u;this.rY=w;this.W=q;this.Gn=!0;this.Z=null;this.D=uL(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id");gX(this.rY(),this);this.adPlacementConfig=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,this.adPlacementConfig,b.layoutId)}; $ck=function(){var F=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; CA_=function(F,J,b,I,u){this.sI=F;this.EQ=J;this.rY=b;this.C=I;this.X4=u}; XiJ=function(F,J,b){this.sI=F;this.EQ=J;this.C=b}; Q4Y=function(F,J,b,I,u){this.callback=F;this.slot=J;this.layout=b;this.EQ=I;this.cD=u;F=uL(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; Re7=function(){var F=["metadata_type_client_forecasting_ad_renderer"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_FORECASTING"]}}; Dca=function(F,J,b,I,u){this.callback=F;this.slot=J;this.layout=b;this.EQ=I;this.cD=u;F=uL(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; Ld=function(F,J,b,I){this.uR=F;this.EQ=J;this.cD=b;this.X4=I}; kho=function(F,J){return LK(F.clientMetadata,"metadata_type_ad_info_ad_metadata")?uL(F.clientMetadata,"metadata_type_ad_info_ad_metadata"):J?{channelId:J.uB,channelThumbnailUrl:J.profilePicture,channelTitle:J.author,videoTitle:J.title}:(q_("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; Ork=function(F,J){return LK(F.clientMetadata,"metadata_ad_video_is_listed")?uL(F.clientMetadata,"metadata_ad_video_is_listed"):J?J.isListed:(q_("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; oS7=function(F,J,b,I){I4.call(this,"player-overlay-layout",F,{},b,I);this.videoAdDurationSeconds=J;this.interactionLoggingClientData=I}; Fk=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.OQ=u;this.EQ=w;this.W=M;this.D=q;this.Z=!1;this.V=uL(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; heG=function(F){if(F.layout.renderingContent){var J;return(J=uL(F.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current}return uL(F.layout.clientMetadata,"metadata_type_player_bytes_callback")}; J1=function(F,J,b,I,u,w,M,q){i6.call(this,F,J,b,I);this.OQ=u;this.EQ=w;this.W=M;this.D=q;this.Z=!1;this.V=uL(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; cr7=function(){return{WV:["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"],C7:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; bO=function(F){if(F.layout.renderingContent){var J;return(J=uL(F.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current}return uL(F.layout.clientMetadata,"metadata_type_player_bytes_callback")}; UcJ=function(F,J,b){I4.call(this,"ad-message",F,void 0,J,b)}; IT=function(F,J,b,I,u,w){i6.call(this,b,F,J,I);this.OQ=u;this.uR=w}; xc_=function(){return{WV:["metadata_type_valid_ad_message_renderer"],C7:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; nSY=function(F,J,b,I){I4.call(this,"video-interstitial-buttoned-centered",F,J,b,I);this.interactionLoggingClientData=I}; uO=function(F,J,b,I,u){i6.call(this,F,J,b,I);F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,u,F,b.layoutId)}; v4=function(F,J,b,I,u,w,M,q,v){return nd(b,cr7())||b.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.O(b.renderingContent,wk)!==void 0?new J1(F,J,b,I,u,w,M,q):nd(b,{WV:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],C7:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||b.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.O(b.renderingContent,MM)!==void 0? new Fk(F,J,b,I,u,w,M,q):nd(b,Sjz())||b.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.O(b.renderingContent,A1)!==void 0?new x5(F,J,b,I,w):nd(b,xc_())?new IT(J,b,F,I,u,v):nd(b,{WV:["metadata_type_instream_ad_player_overlay_renderer"],C7:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new k5(F,J,b,I,u,q):b.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.O(b.renderingContent,qM)!==void 0?new uO(F,J,b,I,w):null}; t0o=function(F,J,b,I,u,w){this.sI=F;this.OQ=J;this.EQ=b;this.U=I;this.C=u;this.uR=w}; aT=function(F){return!F.oldState.isPlaying()&&F.state.isPlaying()}; eg=function(F,J,b){return F<J?!1:b!=null?b<=J:F<=J+1}; KF=function(F,J,b,I,u,w,M,q){this.callback=F;this.slot=J;this.layout=b;this.OQ=I;this.EQ=u;this.uR=w;this.X4=M;this.QG=q;this.C=!1;F=uL(b.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId)}; pF=function(F,J){F.C||(F.yG.JJ(J),F.C=!0)}; Zro=function(F,J,b,I,u,w){this.OQ=F;this.EQ=J;this.D7=b;this.uR=I;this.X4=u;this.QG=w}; gk=function(){this.currentState=1;this.C="unknown"}; mY=function(F,J){if(F.currentState>1){g.rQ(new g.hC("Exit already started",{current:F.currentState}));var b=!1}else b=!0;if(!b)return!1;F.currentState=2;F.C=J;return!0}; yZ=function(F){if(F.currentState!==2)return!1;F.currentState=3;return!0}; Hrz=function(F,J){var b=new Map;F=g.N(F);for(var I=F.next();!I.done;I=F.next()){I=I.value;if(I.layoutType==="LAYOUT_TYPE_MEDIA")var u="v";else I.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(u=uL(I.clientMetadata,"metadata_type_linked_in_player_layout_type"),u=u==="LAYOUT_TYPE_ENDCAP"||u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":u==="LAYOUT_TYPE_SURVEY"?"s":u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):u="u";b.set(I.layoutId,u);if(u==="u"){var w={};u=J;I=(w.c=I.layoutId,w);u.G.UQ("uct",I)}}F= J.Vd();iO={contentCpn:F,Hn:b};I={};b=(I.ct=b.size,I.c=F,I);J.G.UQ("acc",b)}; Lh3=function(){iO={contentCpn:"",Hn:new Map}}; zj=function(F){var J;return(J=iO.Hn.get(F))!=null?J:"u"}; NM=function(F,J,b){F.G.UQ(J,b);FNk(F)}; J5_=function(F){var J=F.layoutId,b=F.RE;if(F.Tf){var I={};NM(F.RP,"slso",(I.ec=J,I.is=b,I.ctp=zj(J),I))}}; lO=function(F){var J=F.layoutId,b=F.RE;if(F.Tf){var I={};NM(F.RP,"slse",(I.ec=J,I.is=b,I.ctp=zj(J),I))}}; b0k=function(F){var J=F.layoutId,b=F.RE,I=F.RP;F.Tf&&(F={},NM(I,"sleo",(F.xc=J,F.is=b,F.ctp=zj(J),F)),FNk(I))}; II_=function(F){var J=F.cpn,b=F.RP;F=F.RE;var I=b.Vd(),u={};NM(b,"ce",(u.ec=J,u.ia=J!==I,u.r=iO.Hn.has(J),u.is=F,u.ctp=zj(J),u))}; FNk=function(F){if(F.Vd()!==iO.contentCpn){var J={};J=(J.c=iO.contentCpn,J);F.G.UQ("ccm",J)}}; uYk=function(F){var J=F.cpn,b=F.RP;F=F.RE;var I=b.Vd(),u={};NM(b,"cx",(u.xc=J,u.ia=J!==I,u.r=iO.Hn.has(J),u.is=F,u.ctp=zj(J),u))}; wLz=function(F){this.params=F;this.C=new Set}; M1_=function(F,J,b){if(!F.C.has(J)){F.C.add(J);var I={};F.params.P9.Ck(J,Object.assign({},b,(I.p_ac=F.params.adCpn,I.p_isv=F.params.YQG&&F.params.v1,I)))}}; W4=function(F,J,b){if(fF(F.params.P9.uR.get(),!0)){var I=b.flush,u={};M1_(F,J,(u.cts=b.currentTimeSec,u.f=I,u))}}; A5k=function(F,J){this.RP=F;this.uR=J}; dk=function(F){var J=[];if(F){F=g.N(Object.entries(F));for(var b=F.next();!b.done;b=F.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;I!==void 0&&(I=typeof I==="boolean"?""+ +I:(""+I).replace(/[:,=]/g,"_"),J.push(b+"."+I))}}return J.join(";")}; E5=function(F,J,b){J=J===void 0?{}:J;this.errorCode=F;this.details=J;this.severity=b===void 0?0:b}; jg=function(F){return F===1||F===2}; Gj=function(F,J){J=J===void 0?0:J;if(F instanceof E5)return F;F=F&&F instanceof Error?F:Error(""+F);jg(J)?g.Td(F):g.rQ(F);return new E5(J===1?"player.fatalexception":"player.exception",{name:""+F.name,message:""+F.message},J)}; qVa=function(F,J){function b(){var I=g.Ba.apply(0,arguments);F.removeEventListener("playing",b);J.apply(null,g.W(I))} F.addEventListener("playing",b)}; VZ=function(){var F=g.kC("yt.player.utils.videoElement_");F||(F=g.H1("VIDEO"),g.RG("yt.player.utils.videoElement_",F));return F}; P4=function(F){var J=VZ();return!!(J&&J.canPlayType&&J.canPlayType(F))}; Tj=function(F){if(/opus/.test(F)&&g.B4&&!dD("38")&&!g.O6())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(F);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(F);if(/webm/.test(F)&&!l_a())return!1;F==='audio/mp4; codecs="mp4a.40.2"'&&(F='video/mp4; codecs="avc1.4d401f"');return!!P4(F)}; vyv=function(F){try{var J=Tj('video/mp4; codecs="avc1.42001E"')||Tj('video/webm; codecs="vp9"');return(Tj('audio/mp4; codecs="mp4a.40.2"')||Tj('audio/webm; codecs="opus"'))&&(J||!F)||P4('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(b){return"html5.missingapi"}}; rk=function(){var F=VZ();return!(!F.webkitSupportsPresentationMode||typeof F.webkitSetPresentationMode!=="function")}; Sg=function(){var F=VZ();try{var J=F.muted;F.muted=!J;return F.muted!==J}catch(b){}return!1}; aIa=function(){var F;return((F=navigator.connection)==null?void 0:F.type)||""}; g.s5=function(){j9.apply(this,arguments)}; Yz=function(F,J,b,I,u,w,M){this.sampleRate=F===void 0?0:F;this.numChannels=J===void 0?0:J;this.spatialAudioType=b===void 0?"SPATIAL_AUDIO_TYPE_NONE":b;this.C=I===void 0?!1:I;this.T=u===void 0?0:u;this.U=w===void 0?0:w;this.audioQuality=M===void 0?"AUDIO_QUALITY_UNKNOWN":M}; Xk=function(F,J,b,I,u,w,M,q,v){this.width=F;this.height=J;this.quality=w||$z(F,J);this.C=g.CF[this.quality];this.fps=b||0;this.stereoLayout=!u||I!=null&&I!=="UNKNOWN"&&I!=="RECTANGULAR"?0:u;this.projectionType=I?I==="EQUIRECTANGULAR"&&u===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":I:"UNKNOWN";(F=M)||(F=g.CF[this.quality],F===0?F="Auto":(J=this.fps,b=this.projectionType,F=F.toString()+(b==="EQUIRECTANGULAR"||b==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b==="MESH"?"s":"p")+(J>55?"60":J>49?"50":J>39?"48":""))); this.qualityLabel=F;this.U=q||"";this.primaries=v||""}; $z=function(F,J){var b=Math.max(F,J);F=Math.min(F,J);J=QZ[0];for(var I=0;I<QZ.length;I++){var u=QZ[I],w=g.CF[u];if(b>=Math.floor(w*16/9)*1.3||F>=w*1.3)return J;J=u}return"tiny"}; kz=function(F,J,b){b=b===void 0?{}:b;this.id=F;this.mimeType=J;b.LW>0||(b.LW=16E3);Object.assign(this,b);F=g.N(this.id.split(";"));this.itag=F.next().value;this.C=F.next().value;this.containerType=RT(J);this.YQ=Df[this.itag]||""}; O5=function(F){return F.YQ==="9"||F.YQ==="("||F.YQ==="9h"||F.YQ==="(h"}; eE4=function(F){return F.YQ==="H"||F.YQ==="h"}; oT=function(F){return F.YQ==="9h"||F.YQ==="(h"}; KN3=function(F){return!!F.Ke&&!!F.Ke.fairplay&&(F.YQ==="("||F.YQ==="(h"||F.YQ==="A"||F.YQ==="MEAC3")||h1&&!!F.Ke&&F.YQ==="1e"}; c4=function(F){return F.YQ==="1"||F.YQ==="1h"||h1&&F.YQ==="1e"}; U5=function(F){return F.YQ==="mac3"||F.YQ==="meac3"||F.YQ==="m"||F.YQ==="i"}; xz=function(F){return F.YQ==="MAC3"||F.YQ==="MEAC3"||F.YQ==="M"||F.YQ==="I"}; g.nF=function(F){return F.containerType===1}; pLz=function(F){return F.YQ==="("||F.YQ==="(h"||F.YQ==="H"||h1&&F.YQ==="1e"}; t1=function(F){return F.mimeType==="application/x-mpegURL"}; Zf=function(F){F=F.mimeType;return F.includes("vtt")||F.includes("text/mp4")}; g.H4=function(F,J){return{itag:+F.itag,lmt:J?0:F.lastModified,xtags:F.C||""}}; gya=function(F){var J=navigator.mediaCapabilities;if(J==null||!J.decodingInfo||F.YQ==="f")return Promise.resolve();var b={type:F.audio&&F.video?"file":"media-source"};F.video&&(b.video={contentType:F.mimeType,width:F.video.width||640,height:F.video.height||360,bitrate:F.LW*8||1E6,framerate:F.video.fps||30});F.audio&&(b.audio={contentType:F.mimeType,channels:""+(F.audio.numChannels||2),bitrate:F.LW*8||128E3,samplerate:F.audio.sampleRate||44100});return J.decodingInfo(b).then(function(I){F.U=I})}; LF=function(F){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(F)}; F8=function(F){return/(vp9|vp09|vp8|avc1|av01)/.test(F)}; RT=function(F){return F.indexOf("/mp4")>=0?1:F.indexOf("/webm")>=0?2:F.indexOf("/x-flv")>=0?3:F.indexOf("/vtt")>=0?4:0}; JG=function(F,J,b,I,u,w){var M=new Yz;J in g.CF||(J="small");J==="light"&&(J="tiny");I&&u?(u=Number(u),I=Number(I)):(u=g.CF[J],I=Math.round(u*16/9));w=new Xk(I,u,0,null,void 0,J,w);F=unescape(F.replace(/"/g,'"'));return new kz(b,F,{audio:M,video:w})}; b1=function(F){var J="id="+F.id;F.video&&(J+=", res="+F.video.qualityLabel);var b,I;return J+", byterate=("+((b=F.kA)==null?void 0:b.toFixed(0))+", "+((I=F.LW)==null?void 0:I.toFixed(0))+")"}; Il=function(F,J){return{start:function(b){return F[b]}, end:function(b){return J[b]}, length:F.length}}; m_J=function(F,J,b){for(var I=[],u=[],w=0;w<F.length;w++)I.push(F.start(w)),u.push(F.end(w));I.push(J);u.push(b);I.sort(function(M,q){return M-q}); u.sort(function(M,q){return M-q}); return Il(I,u)}; u1=function(F,J,b){J=J===void 0?",":J;b=b===void 0?F?F.length:0:b;var I=[];if(F)for(b=Math.max(F.length-b,0);b<F.length;b++)I.push(F.start(b).toFixed(3)+"-"+F.end(b).toFixed(3));return I.join(J)}; wu=function(F,J){if(!F)return-1;try{for(var b=0;b<F.length;b++)if(F.start(b)<=J&&F.end(b)>=J)return b}catch(I){}return-1}; Mt=function(F,J){return wu(F,J)>=0}; y53=function(F,J){if(!F)return NaN;J=wu(F,J);return J>=0?F.start(J):NaN}; AG=function(F,J){if(!F)return NaN;J=wu(F,J);return J>=0?F.end(J):NaN}; qt=function(F){return F&&F.length?F.end(F.length-1):NaN}; ve=function(F,J){F=AG(F,J);return F>=0?F-J:0}; al=function(F,J,b){for(var I=[],u=[],w=0;w<F.length;w++)F.end(w)<J||F.start(w)>b||(I.push(Math.max(J,F.start(w))-J),u.push(Math.min(b,F.end(w))-J));return Il(I,u)}; es=function(F,J,b,I){g.uA.call(this);var u=this;this.Us=F;this.start=J;this.end=b;this.isActive=I;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.GB={error:function(){!u.iR()&&u.isActive&&u.publish("error",u)}, updateend:function(){!u.iR()&&u.isActive&&u.publish("updateend",u)}}; this.Us.Sn(this.GB);this.I$=this.isActive}; X8=function(F,J,b,I,u,w){g.uA.call(this);var M=this;this.dw=F;this.ou=J;this.id=b;this.containerType=I;this.YQ=u;this.v1=w;this.Wd=this.iV=this.eT=null;this.uU=!1;this.appendWindowStart=this.timestampOffset=0;this.Oj=Il([],[]);this.Sz=!1;this.qq=[];this.wc=KB?[]:void 0;this.eF=function(v){return M.publish(v.type,M)}; var q;if((q=this.dw)==null?0:q.addEventListener)this.dw.addEventListener("updateend",this.eF),this.dw.addEventListener("error",this.eF)}; Qh=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Rl=function(F,J){this.gw=F;this.C=J===void 0?!1:J;this.U=!1}; DO=function(F,J,b){b=b===void 0?!1:b;g.R.call(this);this.mediaElement=F;this.HN=J;this.isView=b;this.W=0;this.Z=!1;this.D=!0;this.N=0;this.callback=null;this.Y=!1;this.HN||(this.ou=this.mediaElement.Pb());this.events=new g.s5(this);g.k(this,this.events);this.T=new Rl(this.HN?window.URL.createObjectURL(this.HN):this.ou.webkitMediaSourceURL,!0);F=this.HN||this.ou;GD(this.events,F,["sourceopen","webkitsourceopen"],this.L1j);GD(this.events,F,["sourceclose","webkitsourceclose"],this.cFN);this.V={updateend:this.vW}}; i0_=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; zE_=function(F,J){kn(F)?g.qf(function(){J(F)}):F.callback=J}; NJJ=function(F,J,b){if(Oo){var I;ol(F.mediaElement,{l:"mswssb",sr:(I=F.mediaElement.wD)==null?void 0:I.wZ()},!1);J.Sn(F.V,F);b.Sn(F.V,F)}F.C=J;F.U=b;g.k(F,J);g.k(F,b)}; lI_=function(F,J,b,I){I=J.mimeType+(I===void 0?"":I);var u=b.mimeType;J=J.YQ;b=b.YQ;var w;F.Tj=(w=F.HN)==null?void 0:w.addSourceBuffer(u);var M;F.eE=I.split(";")[0]==="fakesb"?void 0:(M=F.HN)==null?void 0:M.addSourceBuffer(I);F.ou&&(F.ou.webkitSourceAddId("0",u),F.ou.webkitSourceAddId("1",I));w=new X8(F.Tj,F.ou,"0",RT(u),b,!1);I=new X8(F.eE,F.ou,"1",RT(I),J,!0);NJJ(F,w,I)}; hG=function(F){return!!F.C||!!F.U}; kn=function(F){try{return ce(F)==="open"}catch(J){return!1}}; ce=function(F){if(F.HN)return F.HN.readyState;switch(F.ou.webkitSourceState){case F.ou.SOURCE_OPEN:return"open";case F.ou.SOURCE_ENDED:return"ended";default:return"closed"}}; Uo=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; fI3=function(F){kn(F)&&(F.HN?F.HN.endOfStream():F.ou.webkitSourceEndOfStream(F.ou.EOS_NO_ERROR))}; WNz=function(F,J,b,I){if(!F.C||!F.U)return null;var u=F.C.isView()?F.C.Us:F.C,w=F.U.isView()?F.U.Us:F.U,M=new DO(F.mediaElement,F.HN,!0);M.T=F.T;NJJ(M,new es(u,J,b,I),new es(w,J,b,I));kn(F)||F.C.sM(F.C.Xq());return M}; d_v=function(F){var J;(J=F.C)==null||J.Yk();var b;(b=F.U)==null||b.Yk();F.D=!1}; xn=function(){var F=this;this.Vb=this.xU=Smv;this.promise=new g.gb(function(J,b){F.xU=J;F.Vb=b})}; nB=function(){g.R.call(this);this.V1=!1;this.gw=null;this.V=this.W=!1;this.Z=new g.Zr;this.wD=null;g.k(this,this.Z)}; tG=function(F){F=F.Me();return F.length<1?NaN:F.end(F.length-1)}; EyC=function(F){!F.U&&i0_()&&(F.T?F.T.then(function(){return EyC(F)}):F.dB()||(F.U=F.SS()))}; jJa=function(F){F.U&&(F.U.dispose(),F.U=void 0)}; ol=function(F,J,b){var I;((I=F.wD)==null?0:I.hJ())&&F.wD.UQ("rms",J,b===void 0?!1:b)}; Ggv=function(F,J,b){F.isPaused()||F.getCurrentTime()>J||b>10||(F.play(),g.pl(function(){Ggv(F,F.getCurrentTime(),b+1)},500))}; V1z=function(F,J){F.gw&&F.gw.Hg(J)||(F.gw&&F.gw.dispose(),F.gw=J)}; ZO=function(F){return ve(F.Z4(),F.getCurrentTime())}; PD4=function(F,J){if(F.kR()===0||F.hasError())return!1;var b=F.getCurrentTime()>0;return J>=0&&(F=F.Me(),F.length||!b)?Mt(F,J):b}; He=function(F){F.dB()&&(F.wD&&F.wD.AG("rs_s"),hY&&F.getCurrentTime()>0&&F.seekTo(0),F.bb(),F.load(),V1z(F,null));delete F.T}; LB=function(F){switch(F.rB()){case 2:return"progressive.net.retryexhausted";case 3:return F=F.Aw(),(F==null?0:F.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||BJ3&&(F==null?0:F.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.FC=function(F,J,b){this.e6=J===void 0?null:J;this.seekSource=b===void 0?null:b;this.state=F||64}; JV=function(F,J,b){b=b===void 0?!1:b;return TJ_(F,J.getCurrentTime(),(0,g.jR)(),ZO(J),b)}; bp=function(F,J,b,I){if(!(J===F.state&&b===F.e6&&I===F.seekSource||J!==void 0&&(J&128&&!b||J&2&&J&16))){var u;if(u=J)u=J||F.state,u=!!(u&16||u&32);F=new g.FC(J,b,u?I?I:F.seekSource:null)}return F}; IY=function(F,J,b){return bp(F,F.state|J,null,b===void 0?null:b)}; up=function(F,J){return bp(F,F.state&~J,null,null)}; wM=function(F,J,b,I){return bp(F,(F.state|J)&~b,null,I===void 0?null:I)}; g.x=function(F,J){return!!(F.state&J)}; g.MO=function(F,J){return J.state===F.state&&J.e6===F.e6}; AV=function(F){return F.isPlaying()&&!g.x(F,16)&&!g.x(F,32)}; qO=function(F){return g.x(F,128)?-1:g.x(F,2)?0:g.x(F,2048)?3:g.x(F,64)?-1:g.x(F,1)&&!g.x(F,32)?3:g.x(F,8)?1:g.x(F,4)?2:-1}; aY=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d){g.R.call(this);var G=this;this.Vp=F;this.slot=J;this.layout=b;this.EQ=I;this.X4=u;this.QG=w;this.OQ=M;this.qI=q;this.D7=v;this.UM=a;this.position=K;this.W=p;this.uR=m;this.OG=y;this.Zl=f;this.context=d;this.Gn=!0;this.D=!1;this.Lk="not_rendering";this.U=!1;this.T=new gk;F=uL(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId);var P;F=((P=v5(this))==null?void 0:P.progressCommands)||[];this.Z=new PAv(v, F,b.layoutId,function(){return G.Ol()}); this.C=new wLz({adCpn:this.layout.layoutId,P9:d.P9,YQG:this.OG,v1:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; eY=function(F){return{layoutId:F.qe(),RE:F.OG,RP:F.QG.get(),Tf:F.f7()}}; Kx=function(F,J){return J.layoutId!==F.layout.layoutId?(F.Vp.XW(F.slot,J,new bL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+F.layout.layoutId+("and LayoutType: "+F.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; px=function(F){F.Lk="rendering_start_requested";F.UM(-1)}; v5=function(F){return uL(F.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; r5k=function(F){q_("Received layout exit signal when not in layout exit flow.",F.slot,F.layout)}; SVa=function(F){var J;return((J=gM(F.QG.get(),2))==null?void 0:J.clientPlaybackNonce)||""}; mS=function(F,J){switch(J){case "normal":F.JJ("complete");break;case "skipped":F.JJ("skip");break;case "abandoned":rq(F.yG,"impression")&&F.JJ("abandon")}}; yL=function(F,J){F.D||(J=new g.vL(J.state,new g.FC),F.D=!0);return J}; ip=function(F,J){aT(J)?F.UM(1):g.e1(J,4)&&!g.e1(J,2)&&F.Cm();aJ(J,4)<0&&!(aJ(J,2)<0)&&F.wu()}; sJ7=function(F){F.position===0&&(F.qI.get(),F=uL(F.layout.clientMetadata,"metadata_type_ad_placement_config").kind,F={adBreakType:zA(F)},XH("ad_bl"),g.Qk(F))}; NO=function(F,J){B7(F.yG,J,!F.U)}; $_v=function(F){var J;return(((J=v5(F))==null?void 0:J.progressCommands)||[]).findIndex(function(b){return!!g.O(b==null?void 0:b.command,YVo)})!==-1}; lp=function(F,J){var b=uL(F.clientMetadata,"metadata_type_eligible_for_ssap");return b===void 0?(q_("Expected SSAP eligibility in PlayerBytes factory",F),!1):J.f7(b)}; fx=function(F,J){if(!Un(J.get(),"html5_ssap_pass_transition_reason"))return 3;switch(F){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return q_("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return q_("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:F}),3;default:wU(F,"unknown layoutExitReason")}}; CDY=function(F){q_("getExitReason: unexpected reason",void 0,void 0,{reason:F})}; W5=function(F,J){if(Un(J.get(),"html5_ssap_pass_transition_reason"))switch(F){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return CDY(F),"abandoned";case 3:case 1:return CDY(F),"error";default:wU(F,"unexpected transition reason")}else switch(F){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return q_("getExitReason: unexpected reason",void 0,void 0,{reason:F}),"error";default:wU(F,"unexpected transition reason")}}; dM=function(F,J,b){Dj(F,b)||Oz(F,J,b);Dj(F,"video_to_ad")||Oz(F,J,"video_to_ad");Dj(F,"ad_to_video")||Oz(F,J,"ad_to_video");Dj(F,"ad_to_ad")||Oz(F,J,"ad_to_ad")}; ER=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G){aY.call(this,F,J,b,I,u,w,M,q,a,e,K,p,m,y,f,d,G);var P=this;this.py=v;this.hO=K;this.oz=!0;this.qj=this.EJ=0;this.Rh=Ku(function(){J5_(eY(P));P.Vp.bT(P.slot,P.layout)}); this.Kl=Ku(function(){b0k(eY(P));P.Lk!=="rendering_stop_requested"&&P.hO(P);P.layoutExitReason?P.Vp.A_(P.slot,P.layout,P.layoutExitReason):r5k(P)}); this.bC=new g.fu(200);this.bC.listen("tick",function(){P.Q6()}); g.k(this,this.bC)}; GA=function(F){F.qj=Date.now();jY(F,F.EJ);F.bC.start()}; XLo=function(F){F.EJ=F.Ol();F.wW(F.EJ/1E3,!0);jY(F,F.EJ)}; jY=function(F,J){J={current:J/1E3,duration:F.Ol()/1E3};F.py.get().t3("onAdPlaybackProgress",J)}; VL=function(F){ER.call(this,F.Vp,F.slot,F.Kd,F.EQ,F.X4,F.QG,F.OQ,F.qI,F.py,F.D7,F.UM,F.hO,F.GQ,F.BP,F.uR,F.OG,F.Zl,F.context)}; P5=function(F){ER.call(this,F.Vp,F.slot,F.Kd,F.EQ,F.X4,F.QG,F.OQ,F.qI,F.py,F.D7,F.UM,F.hO,F.GQ,F.BP,F.uR,F.OG,F.Zl,F.context)}; B5=function(){P5.apply(this,arguments)}; QJm=function(F){return lp(F.slot,F.uR.get())?new B5(F):new VL(F)}; SY=function(F){aY.call(this,F.callback,F.slot,F.Kd,F.EQ,F.X4,F.QG,F.OQ,F.qI,F.D7,F.UM,F.hO,F.GQ,F.BP,F.uR,F.OG,F.Zl,F.context);var J=this;this.adCpn="";this.pw=0;this.Wr=!1;this.ZI=0;this.Rh=Ku(function(){J5_(eY(J));J.Vp.bT(J.slot,J.layout)}); this.Kl=Ku(function(){b0k(eY(J));J.Lk!=="rendering_stop_requested"&&J.hO(J);J.layoutExitReason?J.Vp.A_(J.slot,J.layout,J.layoutExitReason):r5k(J)}); this.p7=F.p7;this.NI=F.NI;this.h_=F.h_;this.py=F.py;this.yJ=F.yJ;this.hO=F.hO;if(!this.f7()){Un(this.uR.get(),"html5_disable_media_load_timeout")||(this.O4=new g.ty(function(){J.B8("load_timeout",new bL("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); F=TA(this.uR.get());var b=rM(this.uR.get());F&&b&&(this.OX=new g.ty(function(){var I=uL(J.layout.clientMetadata,"metadata_type_preload_player_vars");I&&J.NI.get().G.preloadVideoByPlayerVars(I,2,300)}))}}; D_m=function(F,J){var b=uL(J.clientMetadata,"metadata_type_ad_video_id"),I=uL(J.clientMetadata,"metadata_type_legacy_info_card_vast_extension");b&&I&&F.yJ.get().G.J().fW.add(b,{Xj:I});(J=uL(J.clientMetadata,"metadata_type_sodar_extension_data"))&&OO3(F.p7.get(),J);REJ(F.OQ.get(),!1)}; kg_=function(F){REJ(F.OQ.get(),!0);var J;((J=F.shrunkenPlayerBytesConfig)==null?0:J.shouldRequestShrunkenPlayerBytes)&&F.OQ.get().PQ(!1)}; O0J=function(F){var J=uL(F.Bb().clientMetadata,"metadata_type_player_bytes_slot_metadata");J===void 0&&q_("PlayerBytesSlotMetadata is not filled",F.Bb(),F.xQ());return(J==null?void 0:J.gt)===!0}; sR=function(){SY.apply(this,arguments)}; YO=function(){sR.apply(this,arguments)}; oy7=function(F){return QJm(Object.assign({},F,{Vp:F.callback,UM:function(){}}))}; hEo=function(F){return new SY(Object.assign({},F,{UM:function(J){F.py.get().t3("onAdIntroStateChange",J)}}))}; c5a=function(F){function J(b){F.py.get().Q_(b)} return lp(F.slot,F.uR.get())?new YO(Object.assign({},F,{UM:J})):new SY(Object.assign({},F,{UM:J}))}; $O=function(F){for(var J=F.Kd,b=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],I=g.N(Gs()),u=I.next();!u.done;u=I.next())b.push(u.value);if(nd(J,{WV:b,C7:["LAYOUT_TYPE_MEDIA_BREAK"]}))return oy7(F);J=F.Kd;b=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];I=g.N(Gs());for(u=I.next();!u.done;u=I.next())b.push(u.value);if(nd(J,{WV:b,C7:["LAYOUT_TYPE_MEDIA"]}))return LK(F.Kd.clientMetadata,"metadata_type_ad_intro")?hEo(F):c5a(F)}; x_G=function(F){var J=uL(F.clientMetadata,"metadata_type_ad_placement_config").kind,b=uL(F.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:F.layoutId,adType:U_k(b),adBreakType:zA(J)}}; zA=function(F){switch(F){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"}}; U_k=function(F){switch(F){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; nym=function(F){try{return new Cx(F.wO,F.slot,F.layout,F.z$,F.ix,F.QG,F.RC,F.NI,F.rY,F.OQ,F.knD,F)}catch(J){}}; Cx=function(F,J,b,I,u,w,M,q,v,a,e,K){g.R.call(this);this.wO=F;this.slot=J;this.layout=b;this.z$=I;this.ix=u;this.QG=w;this.RC=M;this.NI=q;this.rY=v;this.OQ=a;this.params=K;this.Gn=!0;F=$O(e);if(!F)throw Error("Invalid params for sublayout");this.bX=F}; t1z=function(){this.C=1;this.U=new gk}; XC=function(F,J,b,I,u,w,M,q,v,a,e,K,p){g.R.call(this);this.callback=F;this.QG=J;this.RC=b;this.NI=I;this.OQ=u;this.qI=w;this.Qp=M;this.slot=q;this.layout=v;this.z$=a;this.cD=e;this.rY=K;this.uR=p;this.Gn=!0;this.GZ=!1;this.PD=[];this.gI=-1;this.Lb=!1;this.h$=new t1z}; Z0m=function(F){var J;return(J=F.layout.Ag)!=null?J:uL(F.layout.clientMetadata,"metadata_type_sub_layouts")}; QL=function(F){return{RP:F.QG.get(),RE:!1,Tf:F.f7()}}; H0J=function(F,J,b){if(F.Hx()===F.PD.length-1){var I,u;q_("Unexpected skip requested during the last sublayout",(I=F.L7())==null?void 0:I.Bb(),(u=F.L7())==null?void 0:u.xQ(),{requestingSlot:J,requestingLayout:b})}}; LNG=function(F,J,b){return b.layoutId!==RY(F,J,b)?(q_("onSkipRequested for a PlayerBytes layout that is not currently active",F.Bb(),F.xQ()),!1):!0}; FKG=function(F){F.Hx()===F.PD.length-1&&q_("Unexpected skip with target requested during the last sublayout")}; Joa=function(F,J,b){return b.renderingContent===void 0&&b.layoutId!==RY(F,J,b)?(q_("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",F.Bb(),F.xQ(),{requestingSlot:J,requestingLayout:b}),!1):!0}; bpv=function(F,J,b,I){var u=uL(J.xQ().clientMetadata,"metadata_type_ad_pod_skip_target");if(u&&u>0&&u<F.PD.length){a:{for(var w=u;w<F.PD.length;){if(u===uL(F.PD[w].xQ().clientMetadata,"metadata_type_ad_pod_skip_index")){F=w;break a}w++}F=void 0}if(F===void 0)q_("Skip-to-index was requested but target index was not found",J.Bb(),J.xQ(),{requestingSlot:b,requestingLayout:I});else return F}else q_("Invalid ad pod skip target index",J.Bb(),J.xQ(),{requestingSlot:b,requestingLayout:I})}; RY=function(F,J,b){var I=uL(F.xQ().clientMetadata,"metadata_type_linked_in_player_layout_id");return I?I:(q_("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",F.Bb(),F.xQ(),{requestingSlot:J,requestingLayout:b}),null)}; uHv=function(F,J,b,I){IjJ(F,J,b,"skipped",function(){D0(F,I)})}; IjJ=function(F,J,b,I,u){if(!F.Lb){var w=F.L7();if(w){w.xQ().layoutId!==b.layoutId&&q_("SubLayout mismatch in exitSubLayout",J,b,{exitingSubLayout:b.layoutId,activeSubLayout:w.xQ().layoutId});F.Lb=!0;w.T$(w.xQ(),I);w=Object.assign({},QL(F),{layoutId:b.layoutId,layoutExitReason:I});var M=w.layoutId,q=w.layoutExitReason;if(w.Tf){var v={};NM(w.RP,"wrsx",(v.xc=M,v.ler=q,v.ctp=zj(M),v))}F.oA(J,b,I);F.Lb=!1;F.Vn?(F.Vn(),F.f7()||kO(F.qI.get())):u()}else q_("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", J,b)}}; D0=function(F,J){if(F.Hx()===F.PD.length-1)F.gI++,OR(F.cD,F.layout,"normal"),F.f7()||kO(F.qI.get());else a:{if(F.Hx()===-1&&(F.callback.bT(F.slot,F.layout),J>0)){q_("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",F.slot,F.layout,{indexToPlay:J,layoutId:F.layout.layoutId});break a}F.gI=J;J=F.L7();if(F.Hx()>0&&!F.f7()){var b=F.qI.get();b.U=!1;var I={};b.C&&b.videoId&&(I.cttAuthInfo={token:b.C,videoId:b.videoId});Rr("ad_to_ad",I)}F.JV(J)}}; oY=function(F){XC.call(this,F.wO,F.QG,F.RC,F.NI,F.OQ,F.qI,F.Qp,F.slot,F.layout,F.z$,F.cD,F.rY,F.uR)}; wfC=function(F){(F=F.L7())&&F.dE()}; hV=function(F){XC.call(this,F.wO,F.QG,F.RC,F.NI,F.OQ,F.qI,F.Qp,F.slot,F.layout,F.z$,F.cD,F.rY,F.uR);this.MY=void 0}; Ml7=function(F,J){F.ZD()&&!yZ(F.h$.U)||F.callback.A_(F.slot,F.layout,J)}; c5=function(F){return Un(F.uR.get(),"html5_ssap_pass_transition_reason")}; Ao3=function(F,J,b){J.jp().currentState<2&&(b=W5(b,F.uR),J.T$(J.xQ(),b));b=J.jp().C;F.oA(F.slot,J.xQ(),b)}; qz7=function(F,J){if(F.h$.U.currentState<2){var b=W5(J,F.uR);b==="error"?F.callback.XW(F.slot,F.layout,new bL("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:J},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):OR(F.cD,F.layout,b)}}; UR=function(F,J,b){J.jp().currentState>=2||(J.T$(J.xQ(),b),yZ(J.jp())&&(VS(F.Qp,F.slot,J.xQ(),b),F.MY=void 0))}; vkm=function(F,J){F.h$.C===2&&J!==F.Vd()&&q_("onClipEntered: unknown cpn",F.slot,F.layout,{cpn:J})}; ajv=function(F,J){var b=F.L7();if(b){var I=b.xQ().layoutId,u=F.Hx()+1;F.ZD()?UR(F,b,J):b.T$(b.xQ(),J);u>=0&&u<F.PD.length?(b=F.PD[u].xQ().layoutId,c5(F)&&(["normal","skipped"].includes(J)||q_("exitActiveLayoutAndPlayNext: unexpected exit reason",F.slot,F.layout,{exitReason:J})),F.RC.get().finishSegmentByCpn(I,b,fx(J,F.uR))):u===F.PD.length?OR(F.cD,F.layout,"normal"):q_("unexpected index",F.slot,F.layout,{index:u})}else q_("exitActiveLayoutAndPlayNext: no active adapter",F.slot,F.layout)}; eJ7=function(F,J){q_(J+": undefined adapter",F.slot,F.layout)}; KK3=function(F){return lp(F.slot,F.uR.get())?new hV(F):new oY(F)}; xO=function(F,J,b,I,u,w,M){g.R.call(this);this.callback=F;this.NI=J;this.OQ=b;this.qI=I;this.bX=u;this.rY=w;this.uR=M;this.Gn=!0;this.GZ=!1}; pfG=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D){function t(){var F7=$O(Object.assign({},AJ,{callback:{bT:F.bT.bind(F),A_:F.A_.bind(F),NK:function(){}, XW:F.XW.bind(F)},slot:b,Kd:I,hO:function(){OR(M,I,"normal")}, GQ:0,BP:1,OG:!0}));return F7?new xO(F,e,p,y,F7,u,P):F7} function n(){var F7=Object.assign({},AJ,{callback:{bT:function(){}, A_:function(){}, NK:function(){return void OR(M,I,"normal")}, XW:function(){}}, slot:b,Kd:I,hO:function(){}, GQ:0,BP:1,OG:!0});return nym({wO:F,slot:b,layout:I,z$:w,ix:M,QG:K,RC:r,NI:e,rY:u,OQ:p,knD:F7,context:Q})} function uk(){var F7,h=(F7=I.Ag)!=null?F7:uL(I.clientMetadata,"metadata_type_sub_layouts");F7=KK3({wO:F,QG:K,RC:r,NI:e,OQ:p,qI:y,Qp:J,slot:b,layout:I,z$:w,cD:M,rY:u,uR:P});for(var L=[],l={ZR:0};l.ZR<h.length;l={ZR:l.ZR},l.ZR++){var c=$O(Object.assign({},AJ,{callback:{bT:F7.o2.bind(F7),A_:F7.yK.bind(F7),NK:F7.NK.bind(F7),XW:F7.JW.bind(F7)},slot:b,Kd:h[l.ZR],hO:function(Da){return function(fz){fz.T$(h[Da.ZR],"normal")}}(l), GQ:l.ZR,BP:h.length,OG:!1}));if(!c)return;L.push(c)}F7.PD=L;return F7} var AJ={EQ:q,X4:v,p7:a,NI:e,QG:K,OQ:p,h_:m,qI:y,py:f,D7:d,yJ:G,uR:P,context:Q,Zl:D};q=nd(I,{WV:["metadata_type_sub_layouts"],C7:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||I.Ag!==void 0&&I.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";v=lp(b,P.get())&&nd(I,{WV:[],C7:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});a=nd(I,{WV:[],C7:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(q)return uk();if(v)return n();if(a)return t()}; nx=function(F,J,b,I,u,w,M,q,v,a){this.callback=F;this.slot=J;this.layout=b;this.QG=I;this.RC=u;this.cV=w;this.OQ=M;this.yG=q;this.EQ=v;this.D=a;this.driftRecoveryMs=uL(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.Z=uL(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; mGa=function(F){var J=uL(F.layout.clientMetadata,"metadata_type_layout_enter_ms"),b=uL(F.layout.clientMetadata,"metadata_type_layout_exit_ms");F=F.cV.get();J=gkv(F.T,J,b);return Math.min(b,J!==null?J:Infinity)}; Z0=function(F,J){var b;tV(F.EQ.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(b=F.QG.get().Hm)==null?void 0:b.clientPlaybackNonce,adClientData:F.layout.lT.adClientDataEntry},J)})}; H5=function(F,J,b,I,u,w,M,q,v,a,e){nx.call(this,F,J,b,I,u,w,M,q,v,a);this.T=e;this.U=this.C=null;F=g.N(this.T);for(J=F.next();!J.done;J=F.next())J=J.value,LK(J.xQ().clientMetadata,"metadata_type_survey_overlay")&&(this.U=J.xQ().layoutId)}; ipY=function(F,J){var b=yo3(F,J);b||q_("Expected subLRA found by layout ID",F.slot,F.layout,{layoutId:J});F.C={Ad:b};b?b.startRendering(b.xQ()):J===F.U&&q_("Failed to find rendering adapter for survey media layout",F.slot,F.layout,{surveyMediaLayoutId:J})}; yo3=function(F,J){return J==null?null:F.T.find(function(b){return b.xQ().layoutId===J})||null}; zJ_=function(F,J,b,I,u,w,M,q,v,a){var e=u-I,K=LK(J.clientMetadata,"metadata_type_survey_overlay"),p,m=((p=F.fulfilledLayout||uL(F.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:uL(p.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!e)return M.UN(b,m,2,w,I,u,F.slotId),Lx(a,"ads_iraot","sid."+F.slotId+";enterMs."+I+";exitMs."+u+";hso."+K+";vid."+b.video_id),null;e=M.AP(b,m,2,w,I,u,F.slotId);Lx(a,"ads_atct","sid."+F.slotId+";enterMs."+I+";exitMs."+u+";hso."+K+";vid."+b.video_id); if(!e)return q_("Unexpected failure to add to playback timeline",F,J,v()),null;F=F.slotId;J=J.layoutId;e?(q.C.has(e)&&q_("Unexpected remap of timeline playback"),q.C.set(e,{slotId:F,layoutId:J})):q_("Invalid timeline playback ID");I+w>u&&M.y8(e,u-I);return e}; Na_=function(F,J,b){var I=uL(J.clientMetadata,"metadata_type_sodar_extension_data");if(I)try{OO3(b,I)}catch(u){q_("Unexpected error when loading Sodar",F,J,{error:u})}}; lj7=function(F,J,b,I,u,w,M){Fq(F,J,new g.vL(b,new g.FC),I,u,M,!1,w)}; Fq=function(F,J,b,I,u,w,M,q){M=M===void 0?!0:M;aT(b)&&eg(u,0,null)&&(!rq(F,"impression")&&q&&q(),F.JJ("impression"));rq(F,"impression")&&(g.e1(b,4)&&!g.e1(b,2)&&F.RQ("pause"),aJ(b,4)<0&&!(aJ(b,2)<0)&&F.RQ("resume"),g.e1(b,16)&&u>=.5&&F.RQ("seek"),M&&g.e1(b,2)&&Jb(F,b.state,J,I,u,w))}; Jb=function(F,J,b,I,u,w,M,q){rq(F,"impression")&&(w?(w=u-I,w=w>=-1&&w<=2):w=Math.abs(I-u)<=1,bg(F,J,w?I:u,b,I,M,q&&w),w&&F.JJ("complete"))}; bg=function(F,J,b,I,u,w,M){Ts(F,b*1E3,M);u<=0||b<=0||(J==null?0:g.x(J,16))||(J==null?0:g.x(J,32))||(eg(b,u*.25,I)&&(w&&!rq(F,"first_quartile")&&w("first"),F.JJ("first_quartile")),eg(b,u*.5,I)&&(w&&!rq(F,"midpoint")&&w("second"),F.JJ("midpoint")),eg(b,u*.75,I)&&(w&&!rq(F,"third_quartile")&&w("third"),F.JJ("third_quartile")))}; fj7=function(F,J){rq(F,"impression")&&F.RQ(J?"fullscreen":"end_fullscreen")}; WKm=function(F){rq(F,"impression")&&F.RQ("clickthrough")}; dG3=function(F){F.RQ("active_view_measurable")}; Ek3=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("active_view_fully_viewable_audible_half_duration")}; jrC=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("active_view_viewable")}; Gp_=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("audio_audible")}; Vlz=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("audio_measurable")}; Pq7=function(F,J,b,I,u,w,M,q,v,a,e,K){this.callback=F;this.slot=J;this.layout=b;this.RC=I;this.yG=u;this.OQ=w;this.CP=M;this.X4=q;this.p7=v;this.uR=a;this.EQ=e;this.QG=K;this.oz=!0;this.r9=this.Lk=null;this.adCpn=void 0;this.C=!1}; Ba4=function(F,J,b){var I;Lx(F.EQ.get(),"ads_qua","cpn."+uL(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=gM(F.QG.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+J+";clr."+b)}; Tak=function(F,J){var b,I;Lx(F.EQ.get(),"ads_imp","cpn."+uL(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((b=gM(F.QG.get(),2))==null?void 0:b.clientPlaybackNonce)+";clr."+J+";skp."+!!g.O((I=uL(F.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:I.skipOrPreviewRenderer,IS))}; ug=function(F){return{enterMs:uL(F.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:uL(F.clientMetadata,"metadata_type_layout_exit_ms")}}; wI=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){nx.call(this,F,J,b,I,u,M,q,v,a,K);this.CP=w;this.p7=e;this.X4=p;this.uR=m;this.r9=this.Lk=null}; roY=function(F,J){var b;Lx(F.EQ.get(),"ads_imp","acpn."+((b=gM(F.QG.get(),2))==null?void 0:b.clientPlaybackNonce)+";clr."+J)}; Szv=function(F,J,b){var I;Lx(F.EQ.get(),"ads_qua","cpn."+uL(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=gM(F.QG.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+J+";clr."+b)}; Mh=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q){this.rY=F;this.z$=J;this.cD=b;this.QG=I;this.RC=u;this.OQ=w;this.EQ=M;this.CP=q;this.cV=v;this.X4=a;this.p7=e;this.NI=K;this.h_=p;this.qI=m;this.py=y;this.D7=f;this.yJ=d;this.uR=G;this.C=P;this.context=r;this.Zl=Q}; Ab=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G){this.rY=F;this.z$=J;this.cD=b;this.EQ=I;this.X4=u;this.p7=w;this.NI=M;this.QG=q;this.OQ=v;this.h_=a;this.qI=e;this.py=K;this.D7=p;this.yJ=m;this.uR=y;this.RC=f;this.context=d;this.Zl=G}; srC=function(F,J,b,I){I4.call(this,"survey-interstitial",F,J,b,I)}; qh=function(F,J,b,I,u){i6.call(this,b,F,J,I);this.EQ=u;F=uL(J.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(J.ww,u,F,J.layoutId)}; vS=function(F){return Math.round(F.width)+"x"+Math.round(F.height)}; ej=function(F,J,b){b=b===void 0?aS:b;b.width<aS.width&&(b=aS);if(F.width<b.width||F.height<b.height)return{UE:3,a$:501,errorMessage:"ad("+vS(b)+") larger than container("+vS(F)+")."};if(b.width*b.height>F.width*F.height*.2)return{UE:3,a$:501,errorMessage:"ad("+vS(b)+") to container("+vS(F)+") ratio exceeds limit."};if(b.height>F.height/3-J)return{UE:3,a$:501,errorMessage:"ad("+vS(b)+") covers container("+vS(F)+") center."}}; Yz4=function(F,J){var b=uL(F.clientMetadata,"metadata_type_ad_placement_config");return new jr(F.ww,J,b,F.layoutId)}; Ki=function(F){return uL(F.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; pi=function(F,J,b,I){I4.call(this,"invideo-overlay",F,J,b,I);this.interactionLoggingClientData=I}; gI=function(F,J,b,I,u,w,M,q,v,a,e,K){i6.call(this,w,F,J,u);this.EQ=b;this.Z=M;this.OQ=q;this.D7=v;this.uR=a;this.W=e;this.D=K;this.yG=Yz4(J,b)}; $Ga=function(){var F=["metadata_type_invideo_overlay_ad_renderer"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; mq=function(F,J,b,I,u,w,M,q,v,a,e,K,p){i6.call(this,w,F,J,u);this.EQ=b;this.Z=M;this.Y=q;this.OQ=v;this.D7=a;this.uR=e;this.W=K;this.D=p;this.yG=Yz4(J,b)}; Cq7=function(){for(var F=["metadata_type_invideo_overlay_ad_renderer"],J=g.N(Gs()),b=J.next();!b.done;b=J.next())F.push(b.value);return{WV:F,C7:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; yc=function(F){this.OQ=F;this.C=!1}; Xfo=function(F,J,b){I4.call(this,"survey",F,{},J,b)}; ig=function(F,J,b,I,u,w,M){i6.call(this,b,F,J,I);this.Z=u;this.OQ=w;this.uR=M}; Qr7=function(F,J,b,I,u,w,M,q,v,a){this.sI=F;this.OQ=J;this.EQ=b;this.Z=I;this.X4=u;this.U=w;this.T=M;this.D7=q;this.uR=v;this.C=a}; RJG=function(F,J,b,I,u,w,M,q,v,a){this.sI=F;this.OQ=J;this.EQ=b;this.Z=I;this.X4=u;this.U=w;this.T=M;this.D7=q;this.uR=v;this.C=a}; zJ=function(F,J,b,I,u,w,M,q,v,a){J1.call(this,F,J,b,I,u,w,M,v);this.Ma=q;this.QG=a}; DGo=function(){var F=cr7();F.WV.push("metadata_type_ad_info_ad_metadata");return F}; kp4=function(F,J,b,I,u,w,M){this.sI=F;this.OQ=J;this.EQ=b;this.U=I;this.Ma=u;this.C=w;this.QG=M}; Op4=function(F,J,b,I,u,w,M,q){this.sI=F;this.OQ=J;this.EQ=b;this.U=I;this.Ma=u;this.C=w;this.uR=M;this.QG=q}; Nh=function(F,J){this.slotId=J;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=F(this.triggerType)}; lg=function(F,J){this.adPodIndex=F;this.C=J.length;this.adBreakLengthSeconds=J.reduce(function(I,u){return I+u},0); var b=0;for(F+=1;F<J.length;F++)b+=J[F];this.adBreakRemainingLengthSeconds=b}; fi=function(F,J,b){this.fI=J;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=b||F(this.triggerType)}; WS=function(F,J,b){this.C=J;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=b||F(this.triggerType)}; dI=function(F,J,b,I){this.fI=J;this.visible=b;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=I||F(this.triggerType)}; okC=function(F){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=F(this.triggerType)}; hJ3=function(F){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=F(this.triggerType)}; EC=function(F,J,b){this.triggeringLayoutId=J;this.slotId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=F(this.triggerType)}; jj=function(F,J,b){this.triggeringLayoutId=J;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=b||F(this.triggerType)}; GJ=function(F,J,b,I){this.triggeringLayoutId=J;this.C=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=I||F(this.triggerType)}; coa=function(F){switch(F){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 Z("Invalid layout exit reason: "+ F)}}; Vc=function(F,J,b){this.triggeringLayoutId=J;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=b||F(this.triggerType)}; PS=function(F,J){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=J||F(this.triggerType)}; BS=function(F,J){this.breakDurationMs=F;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=J||""}; TJ=function(F,J){this.breakDurationMs=F;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=J||""}; rI=function(F,J){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=J||F(this.triggerType)}; UGG=function(F){this.triggerId=F;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; xGz=function(F,J,b,I,u){this.fI=J;this.C=b;this.visible=I;this.layoutId=u;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=F(this.triggerType)}; Sj=function(F,J,b,I,u){this.fI=J;this.C=b;this.visible=I;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=u||F(this.triggerType)}; sC=function(F,J){this.breakDurationMs=F;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=J||""}; nkY=function(F,J,b){this.fI=J;this.C=b;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=F(this.triggerType)}; YA=function(F,J,b,I,u){this.C=J;this.slotType=b;this.layoutType=I;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=u||F(this.triggerType)}; $A=function(F,J){this.C=J;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=F(this.triggerType)}; Ci=function(F,J,b){this.layoutId=J;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=b||F(this.triggerType)}; Xq=function(F,J,b){this.C=J;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=b||F(this.triggerType)}; hiY=function(F,J){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=J;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=F(this.triggerType)}; tla=function(F,J){this.C=F;this.index=J}; Zp3=function(F){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=F(this.triggerType)}; Qc=function(F,J){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=J||F(this.triggerType)}; HpJ=function(F,J,b){this.layoutId=J;this.offsetMs=b;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=F(this.triggerType)}; LKz=function(F,J){this.layoutId=J;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=F(this.triggerType)}; F_z=function(F,J,b){this.layoutId=J;this.offsetMs=b;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=F(this.triggerType)}; RS=function(F,J,b){this.triggeringLayoutId=J;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=b||F(this.triggerType)}; DM=function(F,J,b){this.triggeringSlotId=J;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=b||F(this.triggerType)}; kA=function(F,J,b){this.triggeringSlotId=J;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=b||F(this.triggerType)}; OC=function(F,J){this.triggeringSlotId=J;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=F(this.triggerType)}; oS=function(F,J){this.triggeringSlotId=J;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=F(this.triggerType)}; cS=function(F,J,b){this.triggeringSlotId=J;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=b||F(this.triggerType)}; UC=function(F,J){this.triggeringSlotId=J;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=F(this.triggerType)}; xA=function(F,J,b){this.triggeringLayoutId=J;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=b||F(this.triggerType)}; ni=function(F,J,b,I){this.durationMs=J;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=I||F(this.triggerType)}; tb=function(F,J,b,I){this.category=F;this.trigger=J;this.slot=b;this.layout=I}; ZM=function(F){return(F==null?void 0:F.layoutId)!=null&&(F==null?void 0:F.layoutType)!=null}; J3J=function(F){if(!ZM(F.adLayoutMetadata))return!1;F=F.renderingContent;return g.O(F,HS)||g.O(F,Li)||g.O(F,Fj)||g.O(F,JI)||g.O(F,bM)||g.O(F,Ik)?!0:!1}; bQ4=function(F){return(F==null?void 0:F.durationMs)!=null&&(F==null?void 0:F.durationMs)>0}; uM=function(F){return!!(F.xfG&&F.slot&&F.layout)}; wc=function(F){var J,b=(J=F.config)==null?void 0:J.adPlacementConfig;F=F.renderer;return!(!b||b.kind==null||!F)}; Iym=function(F){if(!ZM(F.adLayoutMetadata))return!1;F=F.renderingContent;return g.O(F,A1)||g.O(F,qM)||g.O(F,wk)||g.O(F,MM)?!0:!1}; ME=function(F){return F.playerVars!==void 0&&F.pings!==void 0&&F.externalVideoId!==void 0}; NE=function(F){if(!ZM(F.adLayoutMetadata))return!1;F=F.renderingContent;var J=g.O(F,AI);return J?qE(J):(J=g.O(F,me))?ME(J):(J=g.O(F,yB))?J.playerVars!==void 0:(J=g.O(F,A1))?J.durationMilliseconds!==void 0:g.O(F,iM)||g.O(F,zX)?!0:!1}; qE=function(F){F=(F.sequentialLayouts||[]).map(function(J){return g.O(J,lM)}); return F.length>0&&F.every(NE)}; vFv=function(F){if(!ZM(F.adLayoutMetadata))return!1;if(g.O(F.renderingContent,uS3)||g.O(F.renderingContent,wA4))return!0;var J=g.O(F.renderingContent,fU);return g.O(F.renderingContent,WF)||g.O(J==null?void 0:J.sidePanel,Mta)||g.O(J==null?void 0:J.sidePanel,A3z)||g.O(J==null?void 0:J.sidePanel,qvG)?!0:!1}; mJ_=function(F){var J;(J=!F)||(J=F.adSlotMetadata,J=!((J==null?void 0:J.slotId)!==void 0&&(J==null?void 0:J.slotType)!==void 0));if(J||!(aya(F)||F.slotEntryTrigger&&F.slotFulfillmentTriggers&&F.slotExpirationTriggers))return!1;var b;F=(b=F.fulfillmentContent)==null?void 0:b.fulfilledLayout;return(b=g.O(F,lM))?NE(b):(b=g.O(F,dc))?vFv(b):(b=g.O(F,eMY))?Iym(b):(b=g.O(F,K_C))?J3J(b):(b=g.O(F,pA3))?ZM(b.adLayoutMetadata)?g.O(b.renderingContent,HS)?!0:!1:!1:(F=g.O(F,gFa))?ZM(F.adLayoutMetadata)?g.O(F.renderingContent, Ex)?!0:!1:!1:!1}; aya=function(F){var J;F=g.O((J=F.fulfillmentContent)==null?void 0:J.fulfilledLayout,dc);var b;return F&&((b=F.adLayoutMetadata)==null?void 0:b.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&F.layoutExitNormalTriggers===void 0}; y3Y=function(F){var J;return(F==null?void 0:(J=F.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_IN_PLAYER"}; zMC=function(F,J){var b;if((b=F.questions)==null||!b.length||!F.playbackCommands||(J===void 0||!J)&&F.questions.length!==1)return!1;F=g.N(F.questions);for(J=F.next();!J.done;J=F.next()){J=J.value;var I=b=void 0,u=((b=g.O(J,j5))==null?void 0:b.surveyAdQuestionCommon)||((I=g.O(J,GX))==null?void 0:I.surveyAdQuestionCommon);if(!iQC(u))return!1}return!0}; NEY=function(F){F=((F==null?void 0:F.playerOverlay)||{}).instreamSurveyAdRenderer;var J;if(F)if(F.playbackCommands&&F.questions&&F.questions.length===1){var b,I=((J=g.O(F.questions[0],j5))==null?void 0:J.surveyAdQuestionCommon)||((b=g.O(F.questions[0],GX))==null?void 0:b.surveyAdQuestionCommon);J=iQC(I)}else J=!1;else J=!1;return J}; iQC=function(F){if(!F)return!1;F=g.O(F.instreamAdPlayerOverlay,VB);var J=g.O(F==null?void 0:F.skipOrPreviewRenderer,IS),b=g.O(F==null?void 0:F.adInfoRenderer,PF);return(g.O(F==null?void 0:F.skipOrPreviewRenderer,BF)||J)&&b?!0:!1}; lyC=function(F){return F.linearAds!=null&&ZM(F.adLayoutMetadata)}; fyz=function(F){return F.linearAd!=null&&F.adVideoStart!=null}; W_G=function(F){if(isNaN(Number(F.timeoutSeconds))||!F.text||!F.ctaButton||!g.O(F.ctaButton,g.TX)||!F.brandImage)return!1;var J;return F.backgroundImage&&g.O(F.backgroundImage,rc)&&((J=g.O(F.backgroundImage,rc))==null?0:J.landscape)?!0:!1}; S5=function(F,J,b,I,u,w,M){g.R.call(this);this.uR=F;this.C=J;this.T=I;this.QG=u;this.Z=w;this.U=M}; jWo=function(F,J,b){var I,u=((I=b.adSlots)!=null?I:[]).map(function(q){return g.O(q,sx)}); if(b.Hp)if(uL(J.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); else{if(F.uR.get().G.J().S("h5_check_forecasting_renderer_for_throttled_midroll")){var w=b.GX.filter(function(q){var v;return((v=q.renderer)==null?void 0:v.clientForecastingAdRenderer)!=null}); w.length!==0?dJz(F.U,w,u,J.slotId,b.ssdaiAdsConfig):pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId)}else pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); EF_(F.Z,J)}else{var M;I={F1:Math.round(((w=uL(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:w.F1)||0),xI:(M=uL(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:M.xI};dJz(F.U,b.GX,u,J.slotId,b.ssdaiAdsConfig,I)}}; Vt4=function(F,J,b,I,u,w,M){var q=gM(F.QG.get(),1);pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return GcG(F.T.get(),b,I,u,q.clientPlaybackNonce,q.tN,q.daiEnabled,q,w,M)},J)}; BE_=function(F,J,b,I,u,w,M){J=PHz(J,w,Number(I.prefetchMilliseconds)||0,M);F=J instanceof Z?J:Y8(F,I,u,J,b);return F instanceof Z?F:[F]}; TEC=function(F,J,b,I,u){var w=gq(F.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");I=[new $Y({getAdBreakUrl:I.getAdBreakUrl,F1:0,xI:0}),new tp(!0)];F=J.pauseDurationMs?J.lactThresholdMs?{slotId:w,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new cS(F.C,w),slotFulfillmentTriggers:[new hJ3(F.C)],slotExpirationTriggers:[new Xq(F.C,u),new kA(F.C,w)],BN:"core",clientMetadata:new Ii(I),adSlotLoggingData:b}:new Z("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Z("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return F instanceof Z?F:[F]}; r3a=function(F){var J,b;return((J=F.renderer)==null?void 0:(b=J.adBreakServiceRenderer)==null?void 0:b.getAdBreakUrl)!==void 0}; $8=function(F,J,b){if(F.beforeContentVideoIdStartedTrigger)F=F.beforeContentVideoIdStartedTrigger?new fi(Jj,J,F.id):new Z("Not able to create BeforeContentVideoIdStartedTrigger");else{if(F.layoutIdExitedTrigger){var I;J=(I=F.layoutIdExitedTrigger)!=null&&I.triggeringLayoutId?new Vc(Jj,F.layoutIdExitedTrigger.triggeringLayoutId,F.id):new Z("Not able to create LayoutIdExitedTrigger")}else{if(F.layoutExitedForReasonTrigger){var u,w;((u=F.layoutExitedForReasonTrigger)==null?0:u.triggeringLayoutId)&&((w= F.layoutExitedForReasonTrigger)==null?0:w.layoutExitReason)?(J=coa(F.layoutExitedForReasonTrigger.layoutExitReason),F=J instanceof Z?J:new GJ(Jj,F.layoutExitedForReasonTrigger.triggeringLayoutId,[J],F.id)):F=new Z("Not able to create LayoutIdExitedForReasonTrigger")}else{if(F.onLayoutSelfExitRequestedTrigger){var M;J=(M=F.onLayoutSelfExitRequestedTrigger)!=null&&M.triggeringLayoutId?new Ci(Jj,F.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,F.id):new Z("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(F.onNewPlaybackAfterContentVideoIdTrigger)F= F.onNewPlaybackAfterContentVideoIdTrigger?new Xq(Jj,J,F.id):new Z("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(F.skipRequestedTrigger){var q;J=(q=F.skipRequestedTrigger)!=null&&q.triggeringLayoutId?new RS(Jj,F.skipRequestedTrigger.triggeringLayoutId,F.id):new Z("Not able to create SkipRequestedTrigger")}else if(F.slotIdEnteredTrigger){var v;J=(v=F.slotIdEnteredTrigger)!=null&&v.triggeringSlotId?new DM(Jj,F.slotIdEnteredTrigger.triggeringSlotId,F.id):new Z("Not able to create SlotIdEnteredTrigger")}else if(F.slotIdExitedTrigger){var a; J=(a=F.slotIdExitedTrigger)!=null&&a.triggeringSlotId?new kA(Jj,F.slotIdExitedTrigger.triggeringSlotId,F.id):new Z("Not able to create SkipRequestedTrigger")}else if(F.surveySubmittedTrigger){var e;J=(e=F.surveySubmittedTrigger)!=null&&e.triggeringLayoutId?new xA(Jj,F.surveySubmittedTrigger.triggeringLayoutId,F.id):new Z("Not able to create SurveySubmittedTrigger")}else{if(F.mediaResumedTrigger)F=F.mediaResumedTrigger&&F.id?new UGG(F.id):new Z("Not able to create MediaResumedTrigger");else{if(F.closeRequestedTrigger){var K; J=(K=F.closeRequestedTrigger)!=null&&K.triggeringLayoutId?new WS(Jj,F.closeRequestedTrigger.triggeringLayoutId,F.id):new Z("Not able to create CloseRequestedTrigger")}else if(F.slotIdScheduledTrigger){var p;J=(p=F.slotIdScheduledTrigger)!=null&&p.triggeringSlotId?new cS(Jj,F.slotIdScheduledTrigger.triggeringSlotId,F.id):new Z("Not able to create SlotIdScheduledTrigger")}else{if(F.mediaTimeRangeTrigger){var m;I=Number((m=F.mediaTimeRangeTrigger)==null?void 0:m.offsetStartMilliseconds);var y;M=Number((y= F.mediaTimeRangeTrigger)==null?void 0:y.offsetEndMilliseconds);isFinite(I)&&isFinite(M)?(y=M,y===-1&&(y=b),b=I>y?new Z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:I,offsetEndMs:y},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",y===b&&I-500<=y):new f6(I,y),F=b instanceof Z?b:new Sj(Jj,J,b,!1,F.id)):F=new Z("Not able to create MediaTimeRangeTrigger")}else if(F.contentVideoIdEndedTrigger)F=F.contentVideoIdEndedTrigger?new dI(Jj,J,!1,F.id):new Z("Not able to create ContentVideoIdEndedTrigger"); else{if(F.layoutIdEnteredTrigger){var f;J=(f=F.layoutIdEnteredTrigger)!=null&&f.triggeringLayoutId?new jj(Jj,F.layoutIdEnteredTrigger.triggeringLayoutId,F.id):new Z("Not able to create LayoutIdEnteredTrigger")}else if(F.timeRelativeToLayoutEnterTrigger){var d;J=(d=F.timeRelativeToLayoutEnterTrigger)!=null&&d.triggeringLayoutId?new ni(Jj,Number(F.timeRelativeToLayoutEnterTrigger.durationMs),F.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,F.id):new Z("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(F.onDifferentLayoutIdEnteredTrigger){var G; J=(G=F.onDifferentLayoutIdEnteredTrigger)!=null&&G.triggeringLayoutId&&F.onDifferentLayoutIdEnteredTrigger.slotType&&F.onDifferentLayoutIdEnteredTrigger.layoutType?new YA(Jj,F.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,F.onDifferentLayoutIdEnteredTrigger.slotType,F.onDifferentLayoutIdEnteredTrigger.layoutType,F.id):new Z("Not able to create CloseRequestedTrigger")}else{if(F.liveStreamBreakStartedTrigger)F=F.liveStreamBreakStartedTrigger&&F.id?new rI(Jj,F.id):new Z("Not able to create LiveStreamBreakStartedTrigger"); else if(F.liveStreamBreakEndedTrigger)F=F.liveStreamBreakEndedTrigger&&F.id?new PS(Jj,F.id):new Z("Not able to create LiveStreamBreakEndedTrigger");else{if(F.liveStreamBreakScheduledDurationMatchedTrigger){var P;J=(P=F.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&P.breakDurationMs?new BS(Number(F.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,F.id):new Z("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(F.liveStreamBreakScheduledDurationNotMatchedTrigger){var r; J=(r=F.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&r.breakDurationMs?new TJ(Number(F.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,F.id):new Z("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(F.newSlotScheduledWithBreakDurationTrigger){var Q;J=(Q=F.newSlotScheduledWithBreakDurationTrigger)!=null&&Q.breakDurationMs?new sC(Number(F.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,F.id):new Z("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else J= F.prefetchCacheExpiredTrigger?new Qc(Jj,F.id):new Z("Not able to convert an AdsControlflowTrigger.");F=J}J=F}F=J}J=F}F=J}J=F}F=J}J=F}F=J}J=F}F=J}return F}; CU=function(F,J){J.C>=2&&(F.slot_pos=J.adPodIndex);F.autoplay="1"}; sW_=function(F,J,b,I,u,w,M,q){return J===null?new Z("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:J,ActionCompanionAdRenderer:I}):[Sva(F,J,M,w,function(v){var a=v.slotId;v=q(v);var e=I.adLayoutLoggingData,K=new Ii([new Cg(I),new ng(u)]);a=xX(b.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",a);var p={layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",BN:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ww:new Map, layoutExitNormalTriggers:[new Xq(b.C,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:K,lT:v(p),adLayoutLoggingData:e}})]}; Yv3=function(F,J,b,I,u,w,M,q){return J===null?new Z("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:J,TopBannerImageTextIconButtonedLayoutViewModel:I}):[Sva(F,J,M,w,function(v){var a=v.slotId;v=q(v);var e=I.adLayoutLoggingData,K=new Ii([new XU(I),new ng(u)]);a=xX(b.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",a);var p={layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",BN:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", ww:new Map,layoutExitNormalTriggers:[new Xq(b.C,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:K,lT:v(p),adLayoutLoggingData:e}})]}; QWv=function(F,J,b,I,u,w){if(!w)for(J=g.N(J),w=J.next();!w.done;w=J.next())w=w.value,Xj(F,w.renderer,w.config.adPlacementConfig.kind);F=Array.from(F.values()).filter(function(e){return $JJ(e)}); J=[];w=g.N(F);for(var M=w.next(),q={};!M.done;q={fu:void 0},M=w.next()){q.fu=M.value;M=g.N(q.fu.Nv);for(var v=M.next(),a={};!v.done;a={EM:void 0},v=M.next())a.EM=v.value,v=function(e,K){return function(p){return e.EM.bu(p,K.fu.instreamVideoAdRenderer.elementId,e.EM.Lh)}}(a,q),a.EM.isContentVideoCompanion?J.push(CH7(b,I,u,q.fu.instreamVideoAdRenderer.elementId,a.EM.associatedCompositePlayerBytesLayoutId,a.EM.adSlotLoggingData,v)):F.length>1?J.push(XAv(b,I,u,q.fu.instreamVideoAdRenderer.elementId,a.EM.adSlotLoggingData, function(e,K){return function(p){return e.EM.bu(p,K.fu.instreamVideoAdRenderer.elementId,e.EM.Lh,e.EM.associatedCompositePlayerBytesLayoutId)}}(a,q))):J.push(XAv(b,I,u,q.fu.instreamVideoAdRenderer.elementId,a.EM.adSlotLoggingData,v))}return J}; Xj=function(F,J,b){if(J=RM_(J)){J=g.N(J);for(var I=J.next();!I.done;I=J.next())if((I=I.value)&&I.externalVideoId){var u=QB(F,I.externalVideoId);u.instreamVideoAdRenderer||(u.instreamVideoAdRenderer=I,u.ek=b)}else q_("InstreamVideoAdRenderer without externalVideoId")}}; RM_=function(F){var J=[],b=F.sandwichedLinearAdRenderer&&F.sandwichedLinearAdRenderer.linearAd&&g.O(F.sandwichedLinearAdRenderer.linearAd,me);if(b)return J.push(b),J;if(F.instreamVideoAdRenderer)return J.push(F.instreamVideoAdRenderer),J;if(F.linearAdSequenceRenderer&&F.linearAdSequenceRenderer.linearAds){F=g.N(F.linearAdSequenceRenderer.linearAds);for(b=F.next();!b.done;b=F.next())b=b.value,g.O(b,me)&&J.push(g.O(b,me));return J}return null}; $JJ=function(F){if(F.instreamVideoAdRenderer===void 0)return q_("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var J=g.N(F.Nv),b=J.next();!b.done;b=J.next()){b=b.value;if(b.bu===void 0)return!1;if(b.Lh===void 0)return q_("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(F.ek===void 0||b.KM===void 0||F.ek!==b.KM&&b.KM!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(F.instreamVideoAdRenderer.elementId===void 0)return q_("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:F.ek,"matching APSR kind":b.KM}),!1}return!0}; QB=function(F,J){F.has(J)||F.set(J,{instreamVideoAdRenderer:void 0,ek:void 0,adVideoId:J,Nv:[]});return F.get(J)}; Rk=function(F,J,b,I,u,w,M,q,v){u?QB(F,u).Nv.push({Z1G:J,KM:b,isContentVideoCompanion:I,Lh:M,associatedCompositePlayerBytesLayoutId:w,adSlotLoggingData:q,bu:v}):q_("Companion AdPlacementSupportedRenderer without adVideoId")}; Dp=function(F){var J=0;F=g.N(F.questions);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b=g.O(b,j5)||g.O(b,GX)){var I=void 0;J+=((I=b.surveyAdQuestionCommon)==null?void 0:I.durationMilliseconds)||0}return J}; k8=function(F){var J,b,I,u,w=((b=g.O((J=F.questions)==null?void 0:J[0],j5))==null?void 0:b.surveyAdQuestionCommon)||((u=g.O((I=F.questions)==null?void 0:I[0],GX))==null?void 0:u.surveyAdQuestionCommon),M;J=[].concat(g.W(((M=F.playbackCommands)==null?void 0:M.instreamAdCompleteCommands)||[]),g.W((w==null?void 0:w.timeoutCommands)||[]));var q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ,F7;return{impressionCommands:(q=F.playbackCommands)==null?void 0:q.impressionCommands,errorCommands:(v=F.playbackCommands)== null?void 0:v.errorCommands,muteCommands:(a=F.playbackCommands)==null?void 0:a.muteCommands,unmuteCommands:(e=F.playbackCommands)==null?void 0:e.unmuteCommands,pauseCommands:(K=F.playbackCommands)==null?void 0:K.pauseCommands,rewindCommands:(p=F.playbackCommands)==null?void 0:p.rewindCommands,resumeCommands:(m=F.playbackCommands)==null?void 0:m.resumeCommands,skipCommands:(y=F.playbackCommands)==null?void 0:y.skipCommands,progressCommands:(f=F.playbackCommands)==null?void 0:f.progressCommands,Dpj:(d= F.playbackCommands)==null?void 0:d.clickthroughCommands,fullscreenCommands:(G=F.playbackCommands)==null?void 0:G.fullscreenCommands,activeViewViewableCommands:(P=F.playbackCommands)==null?void 0:P.activeViewViewableCommands,activeViewMeasurableCommands:(r=F.playbackCommands)==null?void 0:r.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(Q=F.playbackCommands)==null?void 0:Q.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(D=F.playbackCommands)== null?void 0:(t=D.activeViewTracking)==null?void 0:t.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(n=F.playbackCommands)==null?void 0:(uk=n.activeViewTracking)==null?void 0:uk.activeViewAudioMeasurableCommands,endFullscreenCommands:(AJ=F.playbackCommands)==null?void 0:AJ.endFullscreenCommands,abandonCommands:(F7=F.playbackCommands)==null?void 0:F7.abandonCommands,completeCommands:J}}; kc7=function(F,J,b,I,u,w,M){return function(q,v){return DJm(F,v.slotId,q,w,function(a,e){var K=v.layoutId;a=M(a);return Ox(J,K,e,u,a,"LAYOUT_TYPE_SURVEY",[new eK(b),I],b.adLayoutLoggingData)})}}; hM4=function(F,J,b,I,u,w,M){if(!OQG(F))return new Z("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:F});var q=F.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[oFa(w,J,b,I,function(v){var a=v.slotId;v=M(v);a=xX(u.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",a);var e={layoutId:a,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",BN:"core"},K=new Vc(u.C,I);return{layoutId:a,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ww:new Map,layoutExitNormalTriggers:[K], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new KK(q)]),lT:v(e)}})]}; OQG=function(F){F=g.O(F==null?void 0:F.additionalPlayerOverlay,c37);if(!F)return!1;var J=F.slidingMessages;return F.title&&J&&J.length!==0?!0:!1}; xJ_=function(F,J,b,I,u){var w;if((w=F.playerOverlay)==null||!w.instreamSurveyAdRenderer)return function(){return[]}; if(!NEY(F))return function(){return new Z("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:F})}; var M=F.playerOverlay.instreamSurveyAdRenderer,q=Dp(M);return q<=0?function(){return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:M})}:function(v,a){var e=UJ4(v,b,I,function(K){var p=K.slotId; K=a(K);var m=k8(M);p=xX(u.U.get(),"LAYOUT_TYPE_SURVEY",p);var y={layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",BN:"core"},f=new Vc(u.C,I),d=new RS(u.C,p),G=new xA(u.C,p),P=new Zp3(u.C);return{layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",ww:new Map,layoutExitNormalTriggers:[f,P],layoutExitSkipTriggers:[d],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[G],z1:[],BN:"core",clientMetadata:new Ii([new ad(M),new ng(J),new QD(q/1E3),new Ot(m)]),lT:K(y),adLayoutLoggingData:M.adLayoutLoggingData}}); v=hM4(F,b,e.slotId,I,u,v,a);return v instanceof Z?v:[e].concat(g.W(v))}}; J$z=function(F,J,b,I,u,w,M){M=M===void 0?!1:M;var q=[];try{var v=[];if(b.renderer.linearAdSequenceRenderer)var a=function(f){f=nFo(f.slotId,b,J,u(f),I,w,M);v=f.OvG;return f.GC}; else if(b.renderer.instreamVideoAdRenderer)a=function(f){var d=f.slotId;f=u(f);var G=M,P=b.config.adPlacementConfig,r=ttm(P),Q=r.Ur,D=r.Gs;r=b.renderer.instreamVideoAdRenderer;var t;if(r==null?0:(t=r.playerOverlay)==null?0:t.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var n=ok(r,G);t=Math.min(Q+n.videoLengthSeconds*1E3,D);G=new lg(0,[n.videoLengthSeconds]);D=n.videoLengthSeconds;var uk=n.playerVars,AJ=n.instreamAdPlayerOverlayRenderer,F7=n.playerOverlayLayoutRenderer, h=n.adVideoId,L=ZQ3(b),l=n.ww;n=n.Mi;var c=r==null?void 0:r.adLayoutLoggingData;r=r==null?void 0:r.sodarExtensionData;d=xX(J.U.get(),"LAYOUT_TYPE_MEDIA",d);var Da={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",BN:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",ww:l,layoutExitNormalTriggers:[new PS(J.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new Jp(I),new WM(D),new dT(uk),new Gu(Q),new VD(t),AJ&&new bQ(AJ), F7&&new Id(F7),new ng(P),new FA(h),new t$(G),new SK(L),r&&new jK(r),new zu({current:null}),new BM({}),new cM(n)].filter(HQm)),lT:f(Da),adLayoutLoggingData:c}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var e=L_4(F,I,b.adSlotLoggingData,a);q.push(e);for(var K=g.N(v),p=K.next();!p.done;p=K.next()){var m=p.value,y=m(F,u);if(y instanceof Z)return y;q.push.apply(q,g.W(y))}}catch(f){return new Z(f,{errorMessage:f.message,AdPlacementRenderer:b,numberOfSurveyRenderers:FT3(b)})}return q}; FT3=function(F){F=(F.renderer.linearAdSequenceRenderer||{}).linearAds;return F!=null&&F.length?F.filter(function(J){var b,I;return((b=g.O(J,me))==null?void 0:(I=b.playerOverlay)==null?void 0:I.instreamSurveyAdRenderer)!=null}).length:0}; nFo=function(F,J,b,I,u,w,M){var q=J.config.adPlacementConfig,v=ttm(q),a=v.Ur,e=v.Gs;v=(J.renderer.linearAdSequenceRenderer||{}).linearAds;if(v==null||!v.length)throw new TypeError("Expected linear ads");var K=[],p={Q8:a,GQ:0,gjv:K};v=v.map(function(y){return bg4(F,y,p,b,I,q,u,e,M)}).map(function(y,f){f=new lg(f,K); return y(f)}); var m=v.map(function(y){return y.PK}); return{GC:I5C(b,F,a,m,q,ZQ3(J),I,e,w),OvG:v.map(function(y){return y.AXR})}}; bg4=function(F,J,b,I,u,w,M,q,v){var a=ok(g.O(J,me),v),e=b.Q8,K=b.GQ,p=Math.min(e+a.videoLengthSeconds*1E3,q);b.Q8=p;b.GQ++;b.gjv.push(a.videoLengthSeconds);var m,y,f=(m=g.O(J,me))==null?void 0:(y=m.playerOverlay)==null?void 0:y.instreamSurveyAdRenderer;if(a.adVideoId==="nPpU29QrbiU"&&f==null)throw new TypeError("Survey slate media has no survey overlay");return function(d){CU(a.playerVars,d);var G,P,r=a.videoLengthSeconds,Q=a.playerVars,D=a.ww,t=a.Mi,n=a.instreamAdPlayerOverlayRenderer,uk=a.playerOverlayLayoutRenderer, AJ=a.adVideoId,F7=(G=g.O(J,me))==null?void 0:G.adLayoutLoggingData;G=(P=g.O(J,me))==null?void 0:P.sodarExtensionData;P=xX(I.U.get(),"LAYOUT_TYPE_MEDIA",F);var h={layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",BN:"adapter"};d={layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",ww:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"adapter",clientMetadata:new Ii([new Jp(M),new WM(r),new dT(Q),new Gu(e),new VD(p),new PM(K),new zu({current:null}), n&&new bQ(n),uk&&new Id(uk),new ng(w),new FA(AJ),new t$(d),G&&new jK(G),f&&new hp(f),new BM({}),new cM(t)].filter(HQm)),lT:u(h),adLayoutLoggingData:F7};r=xJ_(g.O(J,me),w,M,d.layoutId,I);return{PK:d,AXR:r}}}; ok=function(F,J){if(!F)throw new TypeError("Expected instream video ad renderer");if(!F.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=FF(F.playerVars),I=Number(b.length_seconds);if(isNaN(I))throw new TypeError("Expected valid length seconds in player vars");var u=Number(F.trimmedMaxNonSkippableAdDurationMs);I=isNaN(u)?I:Math.min(I,u/1E3);u=F.playerOverlay||{};u=u.instreamAdPlayerOverlayRenderer===void 0?null:u.instreamAdPlayerOverlayRenderer;var w=F.playerOverlay|| {};w=w.playerOverlayLayoutRenderer===void 0?null:w.playerOverlayLayoutRenderer;var M=b.video_id;M||(M=(M=F.externalVideoId)?M:void 0);if(!M)throw new TypeError("Expected valid video id in IVAR");if(J&&I===0){var q;J=(q=uU4[M])!=null?q:I}else J=I;return{playerVars:b,videoLengthSeconds:J,instreamAdPlayerOverlayRenderer:u,playerOverlayLayoutRenderer:w,adVideoId:M,ww:F.pings?Eh(F.pings):new Map,Mi:dq(F.pings)}}; ZQ3=function(F){F=Number(F.driftRecoveryMs);return isNaN(F)||F<=0?null:F}; ttm=function(F){var J=F.adTimeOffset||{};F=J.offsetEndMilliseconds;J=Number(J.offsetStartMilliseconds);if(isNaN(J))throw new TypeError("Expected valid start offset");F=Number(F);if(isNaN(F))throw new TypeError("Expected valid end offset");return{Ur:J,Gs:F}}; wPa=function(F){var J,b=(J=uL(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!b)return null;J=uL(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=F.layoutId,u=uL(F.clientMetadata,"metadata_type_content_cpn"),w=uL(F.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M=uL(F.clientMetadata,"metadata_type_player_underlay_renderer"),q=uL(F.clientMetadata,"metadata_type_ad_placement_config"),v=uL(F.clientMetadata,"metadata_type_video_length_seconds"); var a=LK(F.clientMetadata,"metadata_type_layout_enter_ms")&&LK(F.clientMetadata,"metadata_type_layout_exit_ms")?(uL(F.clientMetadata,"metadata_type_layout_exit_ms")-uL(F.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Dq:I,contentCpn:u,AC:b,IT:J,instreamAdPlayerOverlayRenderer:w,instreamAdPlayerUnderlayRenderer:M,adPlacementConfig:q,videoLengthSeconds:v,AE:a,inPlayerLayoutId:uL(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:uL(F.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; qHa=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y){I=gq(I,"SLOT_TYPE_PLAYER_BYTES");F=Mkv(u,F,M,b,I,v,a);if(F instanceof Z)return F;var f;a=(f=uL(F.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:f.layoutId;if(!a)return new Z("Invalid adNotify layout");J=A$4(a,u,w,b,q,J,v,e,K,p,m,y,M);return J instanceof Z?J:[F].concat(g.W(J))}; A$4=function(F,J,b,I,u,w,M,q,v,a,e,K,p){b=vGz(J,b,I,w,M,q,v,a,e,K,p);if(b instanceof Z)return b;F=a5Y(J,F,M,u,b);return F instanceof Z?F:[].concat(g.W(F.Qk),[F.Rl])}; KT4=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){J=vGz(F,J,b,u,w,q,v,a,e,K,p,m);if(J instanceof Z)return J;F=ecz(F,b,w,M,I,q.MW,J);return F instanceof Z?F:F.Qk.concat(F.Rl)}; vGz=function(F,J,b,I,u,w,M,q,v,a,e,K){var p=hI(I,b,a);return p instanceof bL?new Z(p):a.G.J().experiments.pW("html5_refactor_in_player_slot_generation")?function(m){var y=new lg(0,[p.N$]);m=pPz(J,p.layoutId,p.xs,b,cF(p.playerVars,p.L_,w,v,y),p.N$,u,y,M(m),q.get(p.xs.externalVideoId),K);y=[];if(p.xs.playerOverlay.instreamAdPlayerOverlayRenderer){var f=wPa(m);if(!f)return q_("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,m),{layout:m,Qk:[]}; y=[gGY(F,f.contentCpn,f.Dq,function(G){return Ux(J,G.slotId,"core",f,ai(e,G))},f.inPlayerSlotId)].concat(g.W(y)); if(f.instreamAdPlayerUnderlayRenderer&&x8(a)){var d=f.instreamAdPlayerUnderlayRenderer;y=[msa(F,f.contentCpn,f.Dq,function(G){return y$z(J,G.slotId,d,f.adPlacementConfig,f.Dq,ai(e,G))})].concat(g.W(y))}}return{layout:m, Qk:y}}:function(m){var y=new lg(0,[p.N$]); return{layout:pPz(J,p.layoutId,p.xs,b,cF(p.playerVars,p.L_,w,v,y),p.N$,u,y,M(m),q.get(p.xs.externalVideoId),K),Qk:[]}}}; hI=function(F,J,b){if(!F.playerVars)return new bL("No playerVars available in InstreamVideoAdRenderer.");var I,u;if(F.elementId==null||F.playerVars==null||F.playerOverlay==null||((I=F.playerOverlay)==null?void 0:I.instreamAdPlayerOverlayRenderer)==null&&((u=F.playerOverlay)==null?void 0:u.playerOverlayLayoutRenderer)==null||F.pings==null||F.externalVideoId==null)return new bL("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:F});I=FF(F.playerVars);u=Number(I.length_seconds); isNaN(u)&&(u=0,q_("Expected valid length seconds in player vars but got NaN"));if(b.f7(J.kind==="AD_PLACEMENT_KIND_START")){if(F.layoutId===void 0)return new bL("Expected server generated layout ID in instreamVideoAdRenderer");J=F.layoutId}else J=F.elementId;return{layoutId:J,xs:F,playerVars:I,L_:F.playerVars,N$:u}}; cF=function(F,J,b,I,u){F.iv_load_policy=I;J=FF(J);if(J.cta_conversion_urls)try{F.cta_conversion_urls=JSON.parse(J.cta_conversion_urls)}catch(w){q_(w)}b.iq&&(F.ctrl=b.iq);b.I6&&(F.ytr=b.I6);b.lK&&(F.ytrcc=b.lK);b.isMdxPlayback&&(F.mdx="1");F.vvt&&(F.vss_credentials_token=F.vvt,b.kZ&&(F.vss_credentials_token_type=b.kZ),b.mdxEnvironment&&(F.mdx_environment=b.mdxEnvironment));CU(F,u);return F}; ig3=function(F){var J=new Map;F=g.N(F);for(var b=F.next();!b.done;b=F.next())(b=b.value.renderer.remoteSlotsRenderer)&&b.hostElementId&&J.set(b.hostElementId,b);return J}; nU=function(F){return F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; zcv=function(F){return F!=null}; j1J=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){for(var y=[],f=g.N(F),d=f.next();!d.done;d=f.next())if(d=d.value,!aya(d)&&!y3Y(d)){var G=nU(d)&&!!d.slotEntryTrigger.beforeContentVideoIdStartedTrigger,P=v.f7(G),r=N0o(d,a,I,b.tN,P);if(r instanceof Z)return r;var Q=void 0,D={slotId:d.adSlotMetadata.slotId,slotType:d.adSlotMetadata.slotType,slotPhysicalPosition:(Q=d.adSlotMetadata.slotPhysicalPosition)!=null?Q:1,BN:"core",slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers, slotExpirationTriggers:r.slotExpirationTriggers},t=g.O(d.fulfillmentContent.fulfilledLayout,lM);if(t){if(!NE(t))return new Z("Invalid PlayerBytesAdLayoutRenderer");Q=K&&!(nU(d)&&d.slotEntryTrigger.beforeContentVideoIdStartedTrigger);r=r.slotFulfillmentTriggers.some(function(n){return n instanceof BS}); P=Q?l5z(D,d.adSlotMetadata.triggerEvent,t,b,I,w,a,F,P,p,r,m):f5k(D,d.adSlotMetadata.triggerEvent,t,J,b,I,u,w,M,q,v,a,F,e,P,d.adSlotMetadata.triggeringSourceLayoutId);if(P instanceof Z)return P;r=[];nU(d)&&r.push(new Zt({gt:nU(d)&&!!d.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));Q&&r.push(new BM({}));b.MW&&r.push(new od({}));r.push(new nK(G));d=Object.assign({},D,{clientMetadata:new Ii(r),fulfilledLayout:P.layout,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push.apply(y,g.W(P.Qk)); y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,dc)){if(!vFv(G))return new Z("Invalid PlayerUnderlayAdLayoutRenderer");G=WT7(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,K_C)){if(!J3J(G))return new Z("Invalid AboveFeedAdLayoutRenderer");G= dsz(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,pA3)){if(!ZM(G.adLayoutMetadata)||!g.O(G.renderingContent,HS))return new Z("Invalid BelowPlayerAdLayoutRenderer");G=dsz(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId); if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,gFa)){if(!ZM(G.adLayoutMetadata)||!g.O(G.renderingContent,Ex))return new Z("Invalid PlayerBytesSequenceItemAdLayoutRenderer");G=EGG(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent);if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData}); y.push(d)}else return new Z("Unable to retrieve a client slot ["+D.slotType+"] from a given AdSlotRenderer")}return y}; EGG=function(F,J,b,I,u,w){var M={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"};J=tI(F,J,b);return J instanceof Z?J:Object.assign({},M,{renderingContent:F.renderingContent,ww:new Map([["impression",GIG(F)]])},J,{lT:ai(I,u)(M),clientMetadata:new Ii([new ng(Zp(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}; dsz=function(F,J,b,I,u,w,M){var q={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"};J=tI(F,J,b);if(J instanceof Z)return J;b=[];b.push(new ng(Zp(w)));w==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&M!==void 0&&b.push(new pK(M));return Object.assign({},q,{renderingContent:F.renderingContent,ww:new Map([["impression",GIG(F)]])},J,{lT:ai(I,u)(q),clientMetadata:new Ii(b),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}; WT7=function(F,J,b,I,u,w,M){if(F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(M=g.O(F.renderingContent,fU))if(M=g.O(M.sidePanel,A3z)){var q={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"};J=tI(F,J,b);F=J instanceof Z?J:Object.assign({},q,{renderingContent:F.renderingContent,ww:new Map([["impression",M.impressionPings||[]],["resume",M.resumePings||[]]])},J,{lT:ai(I,u)(q),clientMetadata:new Ii([new ng(Zp(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else F= new Z("DismissablePanelTextPortraitImageRenderer is missing");else F=new Z("SqueezebackPlayerSidePanelRenderer is missing");else F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.O(F.renderingContent,uS3)?(M={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"},J=tI(F,J,b),F=J instanceof Z?J:Object.assign({},M,{renderingContent:F.renderingContent,ww:new Map},J,{lT:ai(I,u)(M),clientMetadata:new Ii([new ng(Zp(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})): F=new Z("CounterfactualRenderer is missing"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?F=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?F=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.O(F.renderingContent,WF)?(w={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType, BN:"core"},J=tI(F,J,b),F=J instanceof Z?J:M?Object.assign({},w,{renderingContent:F.renderingContent,ww:new Map},J,{lT:ai(I,u)(w),clientMetadata:new Ii([new pK(M)]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData}):new Z("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):F=new Z("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.O(F.renderingContent,wA4)? (w={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"},J=tI(F,J,b),F=J instanceof Z?J:Object.assign({},w,{renderingContent:F.renderingContent,ww:new Map([])},J,{lT:ai(I,u)(w),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Ii([])})):F=new Z("AdsEngagementPanelSectionListViewModel is missing"):F=new Z("LayoutType ["+F.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return F}; l5z=function(F,J,b,I,u,w,M,q,v,a,e,K){if((K==null?void 0:K.F1)===void 0||(K==null?void 0:K.xI)===void 0)return new Z("Cached ad break range from cue point is missing");var p=tI(b,u,I.tN);if(p instanceof Z)return p;p={layoutExitMuteTriggers:[],layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:[],z1:[],layoutExitUserInputSubmittedTriggers:[]};if(g.O(b.renderingContent,me))return F=Vkm(F,J,b,p,u,w,q,v,I.tN,M,K.F1,K.xI),F instanceof Z?F:F.ya===void 0?new Z("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:F.layout,Qk:[F.ya]};var m=g.O(b.renderingContent,AI);if(m){if(!ZM(b.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!qE(m))return new Z("Invalid sequential layout");m=m.sequentialLayouts.map(function(y){return y.playerBytesAdLayoutRenderer}); F=Pxo(F,J,b,p,m,u,I,w,M,v,q,a,K.F1,K.xI,e);return F instanceof Z?F:{layout:F.Ba,Qk:F.Qk}}return new Z("Not able to convert a sequential layout")}; Pxo=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y){var f=B0z(u,p,m);if(f instanceof Z)return f;var d=[],G=[];f=g.N(f);for(var P=f.next();!P.done;P=f.next()){var r=P.value;P=F;var Q=u[r.GQ],D=r,t=J;r=w;var n=M,uk=q,AJ=v,F7=a,h=e,L=HF(Q);if(L instanceof Z)P=L;else{var l={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,BN:"adapter"};D=T0z(t,Q,D,r);D instanceof Z?P=D:(P=Object.assign({},l,LU,{ww:L,renderingContent:Q.renderingContent,clientMetadata:new Ii(D),lT:ai(uk,P)(l),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData}), P=(Q=FZ(h,P,r,n.tN,uk,AJ,F7,void 0,!0))?Q instanceof Z?Q:{layout:P,ya:Q}:new Z("Expecting associatedInPlayerSlot"))}if(P instanceof Z)return P;d.push(P.layout);G.push(P.ya)}u={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,BN:"core"};J=[new SK(Number(b.driftRecoveryMs)),new Gu(p),new VD(m),new ng(Zp(J)),new xY(K),new BM({})];y&&J.push(new HM({}));return{Ba:Object.assign({},u,I,{Ag:d,ww:new Map,clientMetadata:new Ii(J),lT:ai(q,F)(u)}),Qk:G}}; Vkm=function(F,J,b,I,u,w,M,q,v,a,e,K){if(!NE(b))return new Z("Invalid PlayerBytesAdLayoutRenderer");var p=HF(b);if(p instanceof Z)return p;var m={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,BN:"core"},y=g.O(b.renderingContent,me);if(!y)return new Z("Invalid rendering content for DAI media layout");y=ok(y,!1);e={DO:y,GQ:0,Q8:e,V9:Math.min(e+y.videoLengthSeconds*1E3,K),LL:new lg(0,[y.videoLengthSeconds])};var f;K=(f=Number(b.driftRecoveryMs))!=null?f:void 0;J=T0z(J, b,e,u,K);if(J instanceof Z)return J;F=Object.assign({},m,I,{ww:p,renderingContent:b.renderingContent,clientMetadata:new Ii(J),lT:ai(w,F)(m),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});return(u=FZ(M,F,u,v,w,a,q,void 0,!0))?u instanceof Z?u:{layout:F,ya:u}:new Z("Expecting associatedInPlayerSlot")}; f5k=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f){var d=tI(b,w,u.tN);if(d instanceof Z)return d;if(g.O(b.renderingContent,me)){v=r$k([b],u,v);if(v instanceof Z)return v;if(v.length!==1)return new Z("Only expected one media layout.");F=SH4(F,J,b,d,v[0],void 0,"core",I,w,M,q,a,p,m,y,u.tN,K,void 0,f);return F instanceof Z?F:{layout:F.layout,Qk:F.ya?[F.ya]:[]}}var G=g.O(b.renderingContent,AI);if(G){if(!ZM(b.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!qE(G))return new Z("Invalid sequential layout"); G=G.sequentialLayouts.map(function(P){return P.playerBytesAdLayoutRenderer}); F=s1Y(F,J,b.adLayoutMetadata,d,G,I,w,u,v,M,q,a,e,K,y,p,m,f);return F instanceof Z?F:{layout:F.Ba,Qk:F.Qk}}return new Z("Not able to convert a sequential layout")}; s1Y=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G){var P=new Lg({current:null}),r=r$k(u,q,v);if(r instanceof Z)return r;v=[];for(var Q=[],D=void 0,t=0;t<u.length;t++){var n=u[t];if(g.O(n.renderingContent,me)){D=TA(p)&&rM(p)?r[t+1]:void 0;D=SH4(F,J,n,LU,r[t],D,"adapter",w,M,a,e,K,f,d,y,q.tN,m,P,G);if(D instanceof Z)return D;v.push(D.layout);D.ya&&Q.push(D.ya);D=r[t]}else if(g.O(n.renderingContent,yB)){var uk=F,AJ=e;if(NE(n)){var F7=g.O(n.renderingContent,yB);if(F7&&F7.playerVars!==void 0){var h={layoutId:n.adLayoutMetadata.layoutId, layoutType:n.adLayoutMetadata.layoutType,BN:"adapter"};F7=FF(F7.playerVars);F7.autoplay="1";n=Object.assign({},h,LU,{renderingContent:n.renderingContent,clientMetadata:new Ii([new Tu({}),new ng({kind:"AD_PLACEMENT_KIND_START"}),new zu({current:null}),new dT(F7)]),ww:new Map,lT:ai(AJ,uk)(h),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}else n=new Z("Invalid ad intro renderer")}else n=new Z("Invalid PlayerBytesAdLayoutRenderer");if(n instanceof Z)return n;v.push(n)}else if(g.O(n.renderingContent, A1))if(d){n=YH4(F,n,e,Zp(J),D);if(n instanceof Z)return n;v.push(n);n=FZ(f,n,M,q.tN,e,m,y,P,!1);if(n instanceof Z)return n;if(n)Q.push(n);else return new Z("Not able to retrieve InPlayer slot for endcap")}else{a:{uk=n.adLayoutMetadata.layoutId;AJ=g.N(w);for(h=AJ.next();!h.done;h=AJ.next()){h=h.value;var L=F7=void 0,l=((F7=h.renderer)==null?void 0:(L=F7.linearAdSequenceRenderer)==null?void 0:L.linearAds)||[];F7=g.N(l);for(L=F7.next();!L.done;L=F7.next())if((L=g.O(L.value,A1))&&L.inPlayerSlotId!==void 0&& L.inPlayerLayoutId!==void 0&&L.associatedPlayerBytesLayoutId!==void 0&&L.associatedPlayerBytesLayoutId===uk){uk={HY:L,adPlacementConfig:h.config.adPlacementConfig};break a}}uk=new Z("Not able to find associated InPlayer slot for endcap")}if(uk instanceof Z)return uk;n=YH4(F,n,e,uk.adPlacementConfig,D);if(n instanceof Z)return n;v.push(n);n=$sG(n.layoutId,m,M,uk,P,e);if(n instanceof Z)return n;Q.push(n)}}J={layoutId:b.layoutId,layoutType:b.layoutType,BN:"core"};return{Ba:Object.assign({},J,I,{Ag:v, ww:new Map,clientMetadata:new Ii([P]),lT:ai(e,F)(J)}),Qk:Q}}; SH4=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P){if(!NE(b))return new Z("Invalid PlayerBytesAdLayoutRenderer");var r=HF(b);if(r instanceof Z)return r;M={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,BN:M};a:{var Q=b.adLayoutMetadata.layoutId,D=g.O(b.renderingContent,me);if(D&&ME(D)){var t=[];if(m)t.push(new ng(Zp(J)));else{b:{q=g.N(q);for(J=q.next();!J.done;J=q.next()){J=J.value;var n=RM_(J.renderer)||[],uk=g.N(n);for(n=uk.next();!n.done;n=uk.next())if(n=n.value, n.associatedPlayerBytesLayoutId===Q){n.associatedPlayerBytesLayoutId?(q=n.playerOverlay,uk=q!==void 0&&q.playerOverlayLayoutRenderer!==void 0&&q.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&q.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,q=q!==void 0&&q.instreamAdPlayerOverlayRenderer!==void 0&&q.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&q.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||uk):q=!1;J=q?{instreamVideoAdRenderer:n,adPlacementConfig:J.config.adPlacementConfig}: new Z("Invalid InPlayer shim");break b}}J=new Z("Not able to find associated InPlayer slot")}if(J instanceof Z){w=J;break a}q=J.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;n=J.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var AJ;uk=(AJ=q==null?void 0:q.inPlayerSlotId)!=null?AJ:n==null?void 0:n.inPlayerSlotId;var F7;AJ=(F7=q==null?void 0:q.inPlayerLayoutId)!=null?F7:n==null?void 0:n.inPlayerLayoutId;if(uk===void 0){w=new Z("InPlayer shim slot id is undefined"); break a}if(AJ===void 0){w=new Z("InPlayer shim layout id is undefined");break a}t.push(new gT(AJ),new yD(uk),new PM(u.LL.adPodIndex),new ng(J.adPlacementConfig));q&&t.push(new bQ(q));n&&t.push(new Id(n))}t.push(new t$(u.LL),new FA(D.externalVideoId),new Jp(v),new Ot({impressionCommands:D.impressionCommands,abandonCommands:D.onAbandonCommands,completeCommands:D.completeCommands,progressCommands:D.adVideoProgressCommands}),new dT(u.fl),new zu({current:null}),new WM(u.Kpz.N$),new cM(dq(D.pings)),new Z5(u.LL.adPodIndex)); P&&t.push(new pK(P));(u=Cxv(Q,p))&&t.push(new wT(u));w&&t.push(new Et(w.fl));D.adNextParams&&t.push(new D5(D.adNextParams));D.clickthroughEndpoint&&t.push(new kG(D.clickthroughEndpoint));D.legacyInfoCardVastExtension&&t.push(new Dt(D.legacyInfoCardVastExtension));D.sodarExtensionData&&t.push(new jK(D.sodarExtensionData));G&&D.adPodSkipTarget&&D.adPodSkipTarget>0&&(t.push(G),t.push(new HP(D.adPodSkipTarget)));(w=a.get(D.externalVideoId))&&t.push(new XA(w));w=t}else w=new Z("Invalid vod media renderer")}if(w instanceof Z)return w;F=Object.assign({},M,I,{ww:r,renderingContent:b.renderingContent,clientMetadata:new Ii(w),lT:ai(e,F)(M),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});b=g.O(b.renderingContent,me);if(!b||!ME(b))return new Z("Invalid meida renderer");K=QB(K,b.externalVideoId);K.instreamVideoAdRenderer=b;K.ek="AD_PLACEMENT_KIND_START";return m?(v=FZ(p,F,v,f,e,d,y,G,!1),v instanceof Z?v:Cxv(F.layoutId,p)&&v?{layout:Object.assign({},F,{clientMetadata:new Ii(w.concat(new MR(v)))})}:{layout:F,ya:v}): {layout:F}}; YH4=function(F,J,b,I,u){if(!NE(J))return new Z("Invalid PlayerBytesAdLayoutRenderer");var w=g.O(J.renderingContent,A1);if(!w||w.durationMilliseconds===void 0)return new Z("Invalid endcap renderer");var M={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,BN:"adapter"};I=[new Rd(w.durationMilliseconds),new Ot({impressionCommands:void 0,abandonCommands:w.abandonCommands?[{commandExecutorCommand:w.abandonCommands}]:void 0,completeCommands:w.completionCommands}),new ng(I), new ms("LAYOUT_TYPE_ENDCAP")];if(u){I.push(new Z5(u.LL.adPodIndex-1));I.push(new PM(u.LL.adPodIndex));var q;I.push(new HP((q=u.adPodSkipTarget)!=null?q:-1))}return Object.assign({},M,LU,{renderingContent:J.renderingContent,clientMetadata:new Ii(I),ww:w.skipPings?new Map([["skip",w.skipPings]]):new Map,lT:ai(b,F)(M),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; FZ=function(F,J,b,I,u,w,M,q,v){F=F.filter(function(e){return e.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&e.adSlotMetadata.triggeringSourceLayoutId===J.layoutId}); if(F.length!==0){if(F.length!==1)return new Z("Invalid InPlayer slot association for the given PlayerBytes layout");F=F[0];M=N0o(F,w,b,I,M);if(M instanceof Z)return M;var a;w={slotId:F.adSlotMetadata.slotId,slotType:F.adSlotMetadata.slotType,slotPhysicalPosition:(a=F.adSlotMetadata.slotPhysicalPosition)!=null?a:1,BN:"core",slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers};a=g.O(F.fulfillmentContent.fulfilledLayout, eMY);if(!a||!Iym(a))return new Z("Invalid InPlayerAdLayoutRenderer");M={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,BN:"core"};b=tI(a,b,I);if(b instanceof Z)return b;I=[];v&&I.push(new BM({}));if(a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")I.push.apply(I,g.W(XPJ(F.adSlotMetadata.triggerEvent,J)));else if(a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")I.push(new ng(Zp(F.adSlotMetadata.triggerEvent))),q&&I.push(q);else return new Z("Not able to parse an SDF InPlayer layout"); u=Object.assign({},M,b,{renderingContent:a.renderingContent,ww:new Map,lT:ai(u,w)(M),clientMetadata:new Ii(I),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},w,{fulfilledLayout:u,clientMetadata:new Ii([])})}}; XPJ=function(F,J){var b=[];b.push(new ng(Zp(F)));b.push(new pK(J.layoutId));(F=uL(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&b.push(new zu(F));(F=uL(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&b.push(new Lg(F));(F=uL(J.clientMetadata,"metadata_type_remote_slots_data"))&&b.push(new XA(F));(F=uL(J.clientMetadata,"metadata_type_ad_next_params"))&&b.push(new D5(F));(F=uL(J.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&b.push(new kG(F));(F= uL(J.clientMetadata,"metadata_type_ad_pod_info"))&&b.push(new t$(F));(J=uL(J.clientMetadata,"metadata_type_ad_video_id"))&&b.push(new FA(J));return b}; $sG=function(F,J,b,I,u,w){function M(a){return Jc(J,a)} var q=I.HY.inPlayerSlotId,v={layoutId:I.HY.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",BN:"core"};b={slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:new jj(M,F),slotFulfillmentTriggers:[new DM(M,q)],slotExpirationTriggers:[new kA(M,q),new Xq(M,b)]};F=Object.assign({},v,{layoutExitNormalTriggers:[new Vc(M,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],ww:new Map,clientMetadata:new Ii([new qR(I.HY), new ng(I.adPlacementConfig),u]),lT:ai(w,b)(v),adLayoutLoggingData:I.HY.adLayoutLoggingData});return Object.assign({},b,{clientMetadata:new Ii([new YY(F)])})}; Cxv=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next())if(b=b.value,b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var I=g.O(b.fulfillmentContent.fulfilledLayout,dc);if(I&&(I=g.O(I.renderingContent,fU))&&I.associatedPlayerBytesLayoutId===F)return b}}; N0o=function(F,J,b,I,u){var w=Q1m($8(F.slotEntryTrigger,b,I),u,F,J);if(w instanceof Z)return w;for(var M=[],q=g.N(F.slotFulfillmentTriggers),v=q.next();!v.done;v=q.next()){v=$8(v.value,b,I);if(v instanceof Z)return v;M.push(v)}M=RcJ(M,u,F,J);J=[];F=g.N(F.slotExpirationTriggers);for(u=F.next();!u.done;u=F.next()){u=$8(u.value,b,I);if(u instanceof Z)return u;J.push(u)}return{slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:J}}; Q1m=function(F,J,b,I){return J&&b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F instanceof fi?new Nh(function(u){return Jc(I,u)},b.adSlotMetadata.slotId):F}; RcJ=function(F,J,b,I){return J&&b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?F.map(function(u){return u instanceof DM?new cS(function(w){return Jc(I,w)},b.adSlotMetadata.slotId):u}):F}; tI=function(F,J,b){for(var I=[],u=g.N(F.layoutExitNormalTriggers||[]),w=u.next();!w.done;w=u.next()){w=$8(w.value,J,b);if(w instanceof Z)return w;I.push(w)}u=[];w=g.N(F.layoutExitSkipTriggers||[]);for(var M=w.next();!M.done;M=w.next()){M=$8(M.value,J,b);if(M instanceof Z)return M;u.push(M)}w=[];M=g.N(F.layoutExitMuteTriggers||[]);for(var q=M.next();!q.done;q=M.next()){q=$8(q.value,J,b);if(q instanceof Z)return q;w.push(q)}M=[];F=g.N(F.layoutExitUserInputSubmittedTriggers||[]);for(q=F.next();!q.done;q= F.next()){q=$8(q.value,J,b);if(q instanceof Z)return q;M.push(q)}return{layoutExitNormalTriggers:I,layoutExitSkipTriggers:u,layoutExitMuteTriggers:w,layoutExitUserInputSubmittedTriggers:M,z1:[]}}; HF=function(F){var J=g.O(F.renderingContent,me);if(J==null?0:J.pings)return Eh(J.pings);F=g.O(F.renderingContent,A1);return(F==null?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map}; T0z=function(F,J,b,I,u){J=g.O(J.renderingContent,me);if(!J)return new Z("Invalid rendering content for DAI media layout");F=[new Jp(I),new WM(b.DO.videoLengthSeconds),new dT(b.DO.playerVars),new Gu(b.Q8),new VD(b.V9),new PM(b.GQ),new ng(Zp(F)),new FA(b.DO.adVideoId),new t$(b.LL),J.sodarExtensionData&&new jK(J.sodarExtensionData),new zu({current:null}),new BM({}),new cM(dq(J.pings))].filter(zcv);u!==void 0&&F.push(new SK(u));return F}; B0z=function(F,J,b){F=F.map(function(v){return ok(g.O(v.renderingContent,me),!1)}); var I=F.map(function(v){return v.videoLengthSeconds}),u=I.map(function(v,a){return new lg(a,I)}),w=J,M=b,q=[]; F.forEach(function(v,a){M=Math.min(w+v.videoLengthSeconds*1E3,b);CU(v.playerVars,u[a]);q.push({DO:v,Q8:w,V9:M,GQ:a,LL:u[a]});w=M}); return q}; r$k=function(F,J,b){for(var I=[],u=g.N(F),w=u.next();!w.done;w=u.next())if(w=g.O(w.value.renderingContent,me)){if(!ME(w))return new Z("Invalid vod media renderer");I.push(Dsz(w))}u=I.map(function(K){return K.N$}); w=[];for(var M=0,q=0;q<F.length;q++){var v=g.O(F[q].renderingContent,me);if(v){var a=new lg(M,u),e=cF(I[M].playerVars,I[M].L_,J,b,a);w[q]={LL:a,adPodSkipTarget:v.adPodSkipTarget,Kpz:I[M],fl:e};M++}}return w}; Dsz=function(F){var J=FF(F.playerVars),b=Number(J.length_seconds);isNaN(b)&&(b=0,q_("Expected valid length seconds in player vars but got NaN"));return{playerVars:J,L_:F.playerVars,N$:b}}; Zp=function(F){switch(F){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"}}}; GIG=function(F){if(g.O(F.renderingContent,Fj)){var J;return((J=g.O(F.renderingContent,Fj))==null?void 0:J.impressionPings)||[]}if(g.O(F.renderingContent,HS)){var b;return((b=g.O(F.renderingContent,HS))==null?void 0:b.impressionPings)||[]}if(g.O(F.renderingContent,Li)){var I;return((I=g.O(F.renderingContent,Li))==null?void 0:I.impressionPings)||[]}return[]}; OgC=function(F,J,b,I,u,w,M,q,v){var a=b.pings;return a?[kI3(F,w,q,u,function(e){var K=e.slotId;e=v(e);var p=b.adLayoutLoggingData,m=b.progressCommands;K=xX(J.U.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",K);var y={layoutId:K,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",BN:"core"},f=Eh(a),d=[new Xq(J.C,w)],G;var P=a==null?void 0:(G=a.activeViewTracking)==null?void 0:G.identifier;return{layoutId:K,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",ww:f,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new ng(I),new cM(dq(a)),new Ut(P),new WM(M/1E3),new Ot({progressCommands:m}),new QD(M/1E3)]),lT:e(y),adLayoutLoggingData:p}})]:new Z("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:b})}; hc_=function(F,J,b,I,u,w,M,q){F=oGm(F,b,w,M,I,function(v){var a=v.slotId;v=q(v);a=xX(J.U.get(),"LAYOUT_TYPE_FORECASTING",a);var e={layoutId:a,layoutType:"LAYOUT_TYPE_FORECASTING",BN:"core"},K=new Map,p=u.impressionUrls;p&&K.set("impression",p);return{layoutId:a,layoutType:"LAYOUT_TYPE_FORECASTING",ww:K,layoutExitNormalTriggers:[new Ci(J.C,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new rT(u),new ng(b)]),lT:v(e)}}); return F instanceof Z?F:[F]}; Uso=function(F,J,b,I,u,w,M){return[c$3(F,w,I,function(q){var v=q.slotId;q=M(q);v=xX(J.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",v);var a={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",BN:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ww:new Map,layoutExitNormalTriggers:[new Xq(J.C,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new bQ(u),new ng(b)]),lT:q(a), adLayoutLoggingData:u.adLayoutLoggingData}})]}; nGo=function(F,J,b,I,u,w,M,q){F=xs7(F,b,w,M,I,function(v,a){var e=v.slotId;v=q(v);var K=u.contentSupportedRenderer;K?K.textOverlayAdContentRenderer?(K=xX(J.U.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e),a=bS(J,K,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",u,b,v,In(J,a,e))):K.enhancedTextOverlayAdContentRenderer?(K=xX(J.U.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e),a=bS(J,K,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",u,b,v,In(J,a,e))):K.imageOverlayAdContentRenderer?(K=xX(J.U.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", e),a=In(J,a,e),a.push(new ni(J.C,45E3,K)),a=bS(J,K,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",u,b,v,a)):a=new bL("InvideoOverlayAdRenderer without appropriate sub renderer"):a=new bL("InvideoOverlayAdRenderer without contentSupportedRenderer");return a}); return F instanceof Z?F:[F]}; Hga=function(F,J,b,I,u,w,M,q,v){var a=Number(I.durationMilliseconds);return isNaN(a)?new Z("Expected valid duration for AdActionInterstitialRenderer."):function(e){return tka(J,e.slotId,b,I,a,{impressionCommands:void 0,abandonCommands:I.abandonCommands?[{commandExecutorCommand:I.abandonCommands}]:void 0,completeCommands:I.completionCommands},I.skipPings?new Map([["skip",I.skipPings]]):new Map,M(e),function(K){return Zgv(F,K,u,function(p,m){var y=p.slotId;p=M(p);y=xX(J.U.get(),"LAYOUT_TYPE_ENDCAP", y);return Ox(J,y,m,b,p,"LAYOUT_TYPE_ENDCAP",[new qR(I),q],I.adLayoutLoggingData)})},v,w-1,I.adLayoutLoggingData,w)}}; LT_=function(F,J,b,I){if(!b.playerVars)return new Z("No playerVars available in AdIntroRenderer.");var u=FF(b.playerVars);u.autoplay="1";return function(w){var M=w.slotId;w=I(w);M=xX(F.U.get(),"LAYOUT_TYPE_MEDIA",M);var q={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",BN:"adapter"};return{Kd:{layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",ww:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"adapter",clientMetadata:new Ii([new Tu({}), new ng(J),new zu({current:null}),new dT(u)]),lT:w(q)},EY:[new GJ(F.C,M,["error"])],D2:[],cC:[],bl:[]}}}; Jpz=function(F,J,b,I,u,w,M,q,v,a){a=a===void 0?!1:a;var e=Dp(u);if(!zMC(u,a))return new Z("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:u});if(e<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:u});var K=kc7(F,J,u,w,b,I,M);return K instanceof Z?K:function(p){return Fs7(J,p.slotId,b,e,u,k8(u),M(p),K,q,v)}}; bKa=function(F,J,b,I,u,w,M,q){function v(K){return Zgv(F,K,I,a)} function a(K,p){var m=K.slotId;K=M(K);m=xX(J.U.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",m);return Ox(J,m,p,b,K,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new vM(u),w],u.adLayoutLoggingData)} if(!W_G(u))return new Z("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:u});var e=u.timeoutSeconds*1E3;return function(K){var p=K.slotId,m={impressionCommands:u.impressionCommands,completeCommands:u.timeoutCommands,skipCommands:u.dismissCommands};K=M(K);p=uS(J,p,b,e,m,new Map,K,v,void 0,ww(J,b,u.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));m=new gT(p.gS);K=new Z5(q);return{Kd:{layoutId:p.layoutId,layoutType:p.layoutType,ww:p.ww,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:p.BN,clientMetadata:new Ii([].concat(g.W(p.nO),[m,K])),lT:p.lT,adLayoutLoggingData:p.adLayoutLoggingData},EY:[],D2:p.layoutExitMuteTriggers,cC:p.layoutExitUserInputSubmittedTriggers,bl:p.z1,ya:p.ya}}}; uA3=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f){F=gq(F,"SLOT_TYPE_PLAYER_BYTES");I=Mkv(J,M,I,u,F,a,e);if(I instanceof Z)return I;var d;M=(d=uL(I.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:d.layoutId;if(!M)return new Z("Invalid adNotify layout");J=It4(M,J,b,u,w,v,q,a,K,p,m,y,f);return J instanceof Z?J:[I].concat(g.W(J))}; It4=function(F,J,b,I,u,w,M,q,v,a,e,K,p){b=wMo(J,b,I,w,M,q,v,a,e,K,p);MKz(w)?(I=Apz(J,F),F=gq(J.U.get(),"SLOT_TYPE_IN_PLAYER"),w=xX(J.U.get(),"LAYOUT_TYPE_SURVEY",F),q=M0(J,I,q),J=[].concat(g.W(q.slotExpirationTriggers),[new WS(J.C,w)]),F=b({slotId:q.slotId,slotType:q.slotType,slotPhysicalPosition:q.slotPhysicalPosition,slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:J,BN:q.BN},{slotId:F,layoutId:w}),u=F instanceof Z?F:{Rl:Object.assign({}, q,{slotExpirationTriggers:J,clientMetadata:new Ii([new YY(F.layout)]),adSlotLoggingData:u}),Qk:F.Qk}):u=a5Y(J,F,q,u,b);return u instanceof Z?u:[].concat(g.W(u.Qk),[u.Rl])}; vYz=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){J=wMo(F,J,b,u,w,M,v,a,e,K,p,m);MKz(u)?(u=qt_(F,b,M,q),u instanceof Z?F=u:(q=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER"),v=xX(F.U.get(),"LAYOUT_TYPE_SURVEY",q),M=[].concat(g.W(u.slotExpirationTriggers),[new WS(F.C,v)]),q=J({slotId:u.slotId,slotType:u.slotType,slotPhysicalPosition:u.slotPhysicalPosition,BN:u.BN,slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers,slotExpirationTriggers:M},{slotId:q,layoutId:v}),F=q instanceof Z?q:{Rl:{slotId:u.slotId, slotType:u.slotType,slotPhysicalPosition:u.slotPhysicalPosition,slotEntryTrigger:Ac(F,b,u.slotId,u.slotEntryTrigger),slotFulfillmentTriggers:q0(F,b,u.slotId,u.slotFulfillmentTriggers),slotExpirationTriggers:M,BN:u.BN,clientMetadata:new Ii([new nK(vN(b)),new YY(q.layout),new Zt({gt:F.gt(b)})]),adSlotLoggingData:I},Qk:q.Qk})):F=ecz(F,b,M,q,I,v.MW,J);return F instanceof Z?F:F.Qk.concat(F.Rl)}; MKz=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(g.O(J.value,iM))return!0;return!1}; wMo=function(F,J,b,I,u,w,M,q,v,a,e,K){return function(p,m){if(TA(e)&&rM(e))a:{var y=at3(I,b,e);if(y instanceof Z)m=y;else{for(var f=0,d=[],G=[],P=[],r=[],Q=[],D=[],t=new NR({current:null}),n=new Lg({current:null}),uk=!1,AJ=[],F7=0,h=[],L=0;L<I.length;L++){var l=I[L],c=g.O(l,me);if(c){c=hI(c,b,e);if(c instanceof bL){m=new Z(c);break a}var Da=new lg(F7,y),fz=cF(c.playerVars,c.L_,M,a,Da);F7++;h[L]={renderer:l,data:c,LL:Da,fl:fz}}}F7=-1;for(y=0;y<I.length;y++)if(L=I[y],l=g.O(L,yB)){L=LT_(J,b,l,q);if(L instanceof Z){m=L;break a}L=L(p);d.push(L.Kd);G=[].concat(g.W(L.EY),g.W(G));P=[].concat(g.W(L.D2),g.W(P));L.ya&&(AJ=[L.ya].concat(g.W(AJ)))}else if(g.O(L,me))l=h[y],F7=l.data,L=l.LL,l=l.fl,c=h[y+1],Da=void 0,c&&(Da=c.fl),L=exk(J,F7.layoutId,F7.xs,b,l,F7.N$,w,L,q(p),n,v.get(F7.xs.externalVideoId),Da,K),f++,d.push(L.Kd),G=[].concat(g.W(L.EY),g.W(G)),P=[].concat(g.W(L.D2),g.W(P)),uk||(D.push(n),uk=!0),F7=(F7=F7.xs.adPodSkipTarget)&&F7>0?F7:-1;else if(l=g.O(L,A1)){L=Hga(F,J,b,l,w,f,q,n,F7);if(L instanceof Z){m= L;break a}L=L(p);d.push(L.Kd);G=[].concat(g.W(L.EY),g.W(G));P=[].concat(g.W(L.D2),g.W(P));L.ya&&(AJ=[L.ya].concat(g.W(AJ)))}else if(l=g.O(L,iM)){if(m===void 0){m=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:l});break a}L=Jpz(F,J,b,w,l,t,q,m,f,Un(e,"supports_multi_step_on_desktop"));if(L instanceof Z){m=L;break a}L=L(p);d.push(L.Kd);L.ya&&AJ.push(L.ya);G=[].concat(g.W(L.EY),g.W(G));P=[].concat(g.W(L.D2),g.W(P));r=[].concat(g.W(L.cC),g.W(r)); Q=[].concat(g.W(L.bl),g.W(Q));D=[t].concat(g.W(D))}else if(L=g.O(L,zX)){L=bKa(F,J,b,w,L,t,q,f);if(L instanceof Z){m=L;break a}L=L(p);d.push(L.Kd);L.ya&&AJ.push(L.ya);P=[].concat(g.W(L.D2),g.W(P))}else{m=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={Ag:d,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:r,z1:Q,layoutExitMuteTriggers:P,nO:D,Qk:AJ}}}else a:if(f=at3(I,b,e),f instanceof Z)m=f;else{d=0;G=[];P=[];r=[];Q=[];D=[];t=[];n=new NR({current:null});uk=new Lg({current:null}); AJ=!1;h=[];F7=-1;y=g.N(I);for(L=y.next();!L.done;L=y.next())if(L=L.value,g.O(L,yB)){L=LT_(J,b,g.O(L,yB),q);if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);P=[].concat(g.W(L.EY),g.W(P));r=[].concat(g.W(L.D2),g.W(r));L.ya&&(h=[L.ya].concat(g.W(h)))}else if(g.O(L,me)){F7=hI(g.O(L,me),b,e);if(F7 instanceof bL){m=new Z(F7);break a}L=new lg(d,f);L=exk(J,F7.layoutId,F7.xs,b,cF(F7.playerVars,F7.L_,M,a,L),F7.N$,w,L,q(p),uk,v.get(F7.xs.externalVideoId),void 0,K);d++;G.push(L.Kd);P=[].concat(g.W(L.EY),g.W(P)); r=[].concat(g.W(L.D2),g.W(r));AJ||(t.push(uk),AJ=!0);F7=(F7=F7.xs.adPodSkipTarget)&&F7>0?F7:-1}else if(g.O(L,A1)){L=Hga(F,J,b,g.O(L,A1),w,d,q,uk,F7);if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);P=[].concat(g.W(L.EY),g.W(P));r=[].concat(g.W(L.D2),g.W(r));L.ya&&(h=[L.ya].concat(g.W(h)))}else if(g.O(L,iM)){if(m===void 0){m=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.O(L,iM)});break a}L=Jpz(F,J,b,w,g.O(L,iM),n,q,m,d,Un(e,"supports_multi_step_on_desktop")); if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);L.ya&&h.push(L.ya);P=[].concat(g.W(L.EY),g.W(P));r=[].concat(g.W(L.D2),g.W(r));Q=[].concat(g.W(L.cC),g.W(Q));D=[].concat(g.W(L.bl),g.W(D));t=[n].concat(g.W(t))}else if(g.O(L,zX)){L=bKa(F,J,b,w,g.O(L,zX),n,q,d);if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);L.ya&&h.push(L.ya);r=[].concat(g.W(L.D2),g.W(r))}else{m=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={Ag:G,layoutExitSkipTriggers:P,layoutExitUserInputSubmittedTriggers:Q, z1:D,layoutExitMuteTriggers:r,nO:t,Qk:h}}m instanceof Z?p=m:(D=p.slotId,f=m.Ag,d=m.layoutExitSkipTriggers,G=m.layoutExitMuteTriggers,P=m.layoutExitUserInputSubmittedTriggers,r=m.nO,p=q(p),Q=u?u.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D=u?u.layoutId:xX(J.U.get(),Q,D),t={layoutId:D,layoutType:Q,BN:"core"},p={layout:{layoutId:D,layoutType:Q,ww:new Map,layoutExitNormalTriggers:[new Ci(J.C,D)],layoutExitSkipTriggers:d,layoutExitMuteTriggers:G,layoutExitUserInputSubmittedTriggers:P,z1:[],BN:"core", clientMetadata:new Ii([new lQ(f)].concat(g.W(r))),lT:p(t)},Qk:m.Qk});return p}}; at3=function(F,J,b){var I=[];F=g.N(F);for(var u=F.next();!u.done;u=F.next())if(u=u.value,g.O(u,me)){u=hI(g.O(u,me),J,b);if(u instanceof bL)return new Z(u);I.push(u.N$)}return I}; pMk=function(F,J,b,I,u,w,M,q){if(!zMC(b,q===void 0?!1:q))return new Z("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:b});var v=Dp(b);if(v<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b});var a=new NR({current:null}),e=kc7(F,J,b,a,I,w,M);return Ks_(F,I,w,v,u,function(K,p){var m=K.slotId,y=k8(b);K=M(K);var f,d=(f=ww(J,I,b.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?f: xX(J.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",m);m={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",BN:"core"};f=e(d,p);var G=uL(f.clientMetadata,"metadata_type_fulfilled_layout");G||q_("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");y=[new ng(I),new Rd(v),new Ot(y),a];G&&y.push(new ms(G.layoutType));return{DWj:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ww:new Map,layoutExitNormalTriggers:[new Ci(J.C,d)],layoutExitSkipTriggers:[new RS(J.C, p.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new xA(J.C,p.layoutId)],z1:[],BN:"core",clientMetadata:new Ii(y),lT:K(m)},HWW:f}})}; gYa=function(F){if(!fyz(F))return!1;var J=g.O(F.adVideoStart,an);return J?g.O(F.linearAd,me)&&uM(J)?!0:(q_("Invalid Sandwich with notify"),!1):!1}; mRY=function(F){if(F.linearAds==null)return!1;F=g.O(F.adStart,an);return F?uM(F)?!0:(q_("Invalid LASR with notify"),!1):!1}; yp_=function(F){if(!lyC(F))return!1;F=g.O(F.adStart,an);return F?uM(F)?!0:(q_("Invalid LASR with notify"),!1):!1}; ey=function(F,J,b,I,u,w,M,q,v,a){this.Z=F;this.U=J;this.C=b;this.uR=I;this.P1=u;this.T=w;this.OQ=M;this.M_=q;this.oH=v;this.loadPolicy=a===void 0?1:a}; GcG=function(F,J,b,I,u,w,M,q,v,a){var e=[];if(J.length===0&&I.length===0&&b.length===0)return e;J=J.filter(wc);var K=b.filter(mJ_),p=I.filter(wc),m=new Map,y=ig3(J),f=b.some(function(c){var Da;return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),d=b.some(function(c){var Da; return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),G=b.some(function(c){var Da; return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_IN_PLAYER"}),P=b.some(function(c){var Da,fz; return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(c==null?void 0:(fz=c.adSlotMetadata)==null?void 0:fz.slotType)==="SLOT_TYPE_ABOVE_FEED"}); b=b.some(function(c){var Da;return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(f||d||G||P||b)a=j1J(K,J,q,u,y,F.P1.get(),F.loadPolicy,m,F.uR.get(),F.Z.get(),G,M,v,a),a instanceof Z?q_(a,void 0,void 0,{contentCpn:u}):e.push.apply(e,g.W(a));a=g.N(J);for(b=a.next();!b.done;b=a.next())b=b.value,d=iKz(F,m,b,u,w,M,f,q,y,v,K),d instanceof Z?q_(d,void 0,void 0,{renderer:b.renderer,config:b.config.adPlacementConfig,kind:b.config.adPlacementConfig.kind,contentCpn:u,daiEnabled:M}):e.push.apply(e,g.W(d));zxo(F.uR.get())||(w=NT3(F,p,u,q,y,m),e.push.apply(e,g.W(w)));if(F.T===null||M&&!q.yg){var r, Q,D;F=q.MW&&J.length===1&&((r=J[0].config)==null?void 0:(Q=r.adPlacementConfig)==null?void 0:Q.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=J[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!e.length&&!F){var t,n,uk,AJ;q_("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:u,"first APR kind":(t=J[0])==null?void 0:(n=t.config)==null?void 0:(uk=n.adPlacementConfig)==null?void 0:uk.kind,renderer:(AJ=J[0])==null?void 0: AJ.renderer})}return e}r=I.filter(wc);e.push.apply(e,g.W(QWv(m,r,F.U.get(),F.T,u,f)));if(!e.length){var F7,h,L,l;q_("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:u,daiEnabled:M.toString(),"first APR kind":(F7=J[0])==null?void 0:(h=F7.config)==null?void 0:(L=h.adPlacementConfig)==null?void 0:L.kind,renderer:(l=J[0])==null?void 0:l.renderer})}return e}; NT3=function(F,J,b,I,u,w){function M(p){return ai(F.P1.get(),p)} var q=[];J=g.N(J);for(var v=J.next();!v.done;v=J.next()){v=v.value;var a=v.renderer,e=a.sandwichedLinearAdRenderer,K=a.linearAdSequenceRenderer;e&&gYa(e)?(q_("Found AdNotify with SandwichedLinearAdRenderer"),K=g.O(e.adVideoStart,an),e=g.O(e.linearAd,me),Xj(w,a,v.config.adPlacementConfig.kind),a=void 0,K=A$4((a=K)==null?void 0:a.layout.layoutId,F.U.get(),F.C.get(),v.config.adPlacementConfig,v.adSlotLoggingData,e,b,I,M,u,F.loadPolicy,F.uR.get(),F.P1.get()),K instanceof Z?q_(K):q.push.apply(q,g.W(K))): K&&(!K.adLayoutMetadata&&mRY(K)||K.adLayoutMetadata&&yp_(K))&&(q_("Found AdNotify with LinearAdSequenceRenderer"),Xj(w,a,v.config.adPlacementConfig.kind),a=void 0,e=It4((a=g.O(K.adStart,an))==null?void 0:a.layout.layoutId,F.U.get(),F.C.get(),v.config.adPlacementConfig,v.adSlotLoggingData,K.linearAds,ZM(K.adLayoutMetadata)?K.adLayoutMetadata:void 0,b,I,M,u,F.loadPolicy,F.uR.get()),e instanceof Z?q_(e):q.push.apply(q,g.W(e)))}return q}; iKz=function(F,J,b,I,u,w,M,q,v,a,e){function K(G){return ai(F.P1.get(),G)} var p=b.renderer,m=b.config.adPlacementConfig,y=m.kind,f=b.adSlotLoggingData,d=q.yg&&y==="AD_PLACEMENT_KIND_START";d=w&&!d;if(p.adsEngagementPanelRenderer!=null)return Rk(J,b.elementId,y,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.adsEngagementPanelRenderer;G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Qo(n),P,r,n.impressionPings,G,p.adsEngagementPanelRenderer.adLayoutLoggingData,Q)}),[]; if(p.adsEngagementPanelLayoutViewModel)return Rk(J,b.elementId,y,p.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,p.adsEngagementPanelLayoutViewModel.adVideoId,p.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.adsEngagementPanelLayoutViewModel;G=ai(F.P1.get(),G);return pm(D,t,"LAYOUT_TYPE_PANEL",new R1(n),P,r,G,p.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,Q)}),[]; if(p.actionCompanionAdRenderer!=null){if(p.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return sW_(F.U.get(),F.T,F.C.get(),p.actionCompanionAdRenderer,m,f,I,K);Rk(J,b.elementId,y,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.actionCompanionAdRenderer;G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Cg(n),P,r,n.impressionPings,G,p.actionCompanionAdRenderer.adLayoutLoggingData,Q)})}else if(p.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(p.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Yv3(F.U.get(),F.T,F.C.get(),p.topBannerImageTextIconButtonedLayoutViewModel,m,f,I,K); Rk(J,b.elementId,y,p.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,p.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,p.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.topBannerImageTextIconButtonedLayoutViewModel;G=ai(F.P1.get(),G);return pm(D,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new XU(n),P,r,G,p.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,Q)})}else if(p.imageCompanionAdRenderer)Rk(J, b.elementId,y,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.imageCompanionAdRenderer; G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new o1(n),P,r,n.impressionPings,G,p.imageCompanionAdRenderer.adLayoutLoggingData,Q)}); else if(p.bannerImageLayoutViewModel)Rk(J,b.elementId,y,p.bannerImageLayoutViewModel.isContentVideoCompanion,p.bannerImageLayoutViewModel.adVideoId,p.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.bannerImageLayoutViewModel;G=ai(F.P1.get(),G);return pm(D,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new h$(n),P,r,G,p.bannerImageLayoutViewModel.adLayoutLoggingData,Q)}); else if(p.shoppingCompanionCarouselRenderer)Rk(J,b.elementId,y,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.shoppingCompanionCarouselRenderer;G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new cP(n),P,r,n.impressionPings,G,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,Q)}); else if(p.adBreakServiceRenderer){if(!r3a(b))return[];if(y==="AD_PLACEMENT_KIND_PAUSE")return TEC(F.U.get(),m,f,b.renderer.adBreakServiceRenderer,I);if(y!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&y!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return BE_(F.U.get(),m,f,b.renderer.adBreakServiceRenderer,I,u,w);q.MW||q_("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:y,adPlacementConfig:m,daiEnabledForContentVideo:String(w),isServedFromLiveInfra:String(q.MW),clientPlaybackNonce:q.clientPlaybackNonce}); if(y==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!F.OQ)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!F.oH)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");F.oH.Ot({adPlacementRenderer:b,contentCpn:I,tN:u});u=F.OQ.get().getCurrentTimeSec(1,!1);return lt_(F.U.get(),b.renderer.adBreakServiceRenderer,m,u,I,f,w)}if(!F.M_)return new Z("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); F.M_.Ot({adPlacementRenderer:b,contentCpn:I,tN:u})}else{if(p.clientForecastingAdRenderer)return hc_(F.U.get(),F.C.get(),m,f,p.clientForecastingAdRenderer,I,u,K);if(p.invideoOverlayAdRenderer)return nGo(F.U.get(),F.C.get(),m,f,p.invideoOverlayAdRenderer,I,u,K);if(p.instreamAdPlayerOverlayRenderer)return Uso(F.U.get(),F.C.get(),m,f,p.instreamAdPlayerOverlayRenderer,I,K);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&d)return J$z(F.U.get(),F.C.get(),b,I,K,a,!F.uR.get().G.J().S("html5_override_ad_video_length_killswitch")); if(p.linearAdSequenceRenderer&&!d){if(M)return[];Xj(J,p,y);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!lyC(p.linearAdSequenceRenderer))return new Z("Received invalid LinearAdSequenceRenderer.")}else if(p.linearAdSequenceRenderer.linearAds==null)return new Z("Received invalid LinearAdSequenceRenderer.");if(g.O(p.linearAdSequenceRenderer.adStart,an)){q_("Found AdNotify in LinearAdSequenceRenderer");b=g.O(p.linearAdSequenceRenderer.adStart,an);if(!bQ4(b))return new Z("Invalid AdMessageRenderer."); w=p.linearAdSequenceRenderer.linearAds;return uA3(F.Z.get(),F.U.get(),F.C.get(),F.P1.get(),m,f,b,ZM(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,w,I,u,q,K,v,F.loadPolicy,F.uR.get())}return vYz(F.U.get(),F.C.get(),m,f,p.linearAdSequenceRenderer.linearAds,ZM(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,I,u,q,K,v,F.loadPolicy,F.uR.get(),e)}if(!p.remoteSlotsRenderer||w){if(p.instreamVideoAdRenderer&& !d){if(M)return[];Xj(J,p,y);return KT4(F.U.get(),F.C.get(),m,f,p.instreamVideoAdRenderer,I,u,q,K,v,F.loadPolicy,F.uR.get(),F.P1.get(),e)}if(p.instreamSurveyAdRenderer)return pMk(F.U.get(),F.C.get(),p.instreamSurveyAdRenderer,m,f,I,K,Un(F.uR.get(),"supports_multi_step_on_desktop"));if(p.sandwichedLinearAdRenderer!=null)return fyz(p.sandwichedLinearAdRenderer)?g.O(p.sandwichedLinearAdRenderer.adVideoStart,an)?(q_("Found AdNotify in SandwichedLinearAdRenderer"),b=g.O(p.sandwichedLinearAdRenderer.adVideoStart, an),bQ4(b)?(w=g.O(p.sandwichedLinearAdRenderer.linearAd,me))?qHa(b,w,m,F.Z.get(),F.U.get(),F.C.get(),F.P1.get(),f,I,u,q,K,v,F.loadPolicy,F.uR.get()):new Z("Missing IVAR from Sandwich"):new Z("Invalid AdMessageRenderer.")):vYz(F.U.get(),F.C.get(),m,f,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],void 0,I,u,q,K,v,F.loadPolicy,F.uR.get()):new Z("Received invalid SandwichedLinearAdRenderer.");if(p.videoAdTrackingRenderer!=null)return q=Un(F.uR.get(),"enable_h5_shorts_ad_terminal_events")&& q.yM,OgC(F.U.get(),F.C.get(),p.videoAdTrackingRenderer,m,f,I,u,q,K)}}return[]}; gw=function(F,J,b,I,u,w,M,q){g.R.call(this);var v=this;this.U=F;this.T=J;this.cV=I;this.OQ=u;this.uR=w;this.EQ=M;this.RC=q;this.C=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.iR()||b.get().removeListener(v)}); I.get().addListener(this);this.addOnDisposeCallback(function(){I.iR()||I.get().removeListener(v)})}; Wso=function(F,J,b){var I=F.OQ.get().getCurrentTimeSec(1,!1);F.uR.get().G.J().hJ()&&Lx(F.EQ.get(),"sdai","onopp.1;evt."+b.event+";start."+b.startSecs.toFixed(3)+";d."+b.Bg.toFixed(3));pd(F.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var u=F.T.get(),w=J.adPlacementRenderer.renderer.adBreakServiceRenderer,M=J.contentCpn,q=J.adPlacementRenderer.adSlotLoggingData,v=mz(F.uR.get()),a=F.EQ;if(u.uR.get().G.J().experiments.pW("enable_smearing_expansion_dai")){var e=g.eB(u.uR.get().G.J().experiments, "max_prefetch_window_sec_for_livestream_optimization");var K=g.eB(u.uR.get().G.J().experiments,"min_prefetch_offset_sec_for_livestream_optimization");v={TQ:fta(b),c_:!1,cueProcessedMs:I*1E3};var p=b.startSecs+b.Bg;if(I===0)v.kf=new f6(0,p*1E3);else{K=b.startSecs-K;var m=K-I;v.kf=m<=0?new f6(K*1E3,p*1E3):new f6(Math.floor(I+Math.random()*Math.min(m,e))*1E3,p*1E3)}e=v}else e={TQ:fta(b),c_:!1},p=b.startSecs+b.Bg,b.startSecs<=I?v=new f6((b.startSecs-4)*1E3,p*1E3):(K=Math.max(0,b.startSecs-I-10),v=new f6(Math.floor(I+ Math.random()*(v?I===0?0:Math.min(K,5):K))*1E3,p*1E3)),e.kf=v;u=Y8(u,w,M,e,q,[new fK(b)]);a.get().G.M5(e.kf.start/1E3-I,b.startSecs-I);return[u]})}; y6=function(F){var J,b=(J=uL(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!b)return null;J=uL(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=F.layoutId,u=uL(F.clientMetadata,"metadata_type_content_cpn"),w=uL(F.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M=uL(F.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q=uL(F.clientMetadata,"metadata_type_player_underlay_renderer"),v=uL(F.clientMetadata, "metadata_type_ad_placement_config"),a=uL(F.clientMetadata,"metadata_type_video_length_seconds");var e=LK(F.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?uL(F.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):LK(F.clientMetadata,"metadata_type_layout_enter_ms")&&LK(F.clientMetadata,"metadata_type_layout_exit_ms")?(uL(F.clientMetadata,"metadata_type_layout_exit_ms")-uL(F.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Dq:I,contentCpn:u,AC:b,IT:J,instreamAdPlayerOverlayRenderer:w, playerOverlayLayoutRenderer:M,instreamAdPlayerUnderlayRenderer:q,adPlacementConfig:v,videoLengthSeconds:a,AE:e,inPlayerLayoutId:uL(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:uL(F.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; EYa=function(F,J){return dRz(F,J)}; jdk=function(F,J){J=dRz(F,J);if(!J)return null;var b;J.AE=(b=uL(F.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:b.adBreakRemainingLengthSeconds;return J}; dRz=function(F,J){var b,I=(b=uL(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!I)return null;b=Ork(F,J);return{Rw:kho(F,J),adPlacementConfig:uL(F.clientMetadata,"metadata_type_ad_placement_config"),gP:b,contentCpn:uL(F.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:uL(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:uL(F.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:uL(F.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,AE:void 0,AC:I,Dq:F.layoutId,videoLengthSeconds:uL(F.clientMetadata,"metadata_type_video_length_seconds")}}; iS=function(F,J,b,I,u,w,M,q,v){g.R.call(this);this.Z=F;this.W=J;this.D=b;this.T=I;this.C=u;this.U=w;this.P1=M;this.uR=q;this.QG=v;this.Gn=!0}; Gua=function(F,J,b){return msa(F.C.get(),J.contentCpn,J.Dq,function(I){return y$z(F.U.get(),I.slotId,b,J.adPlacementConfig,J.Dq,ai(F.P1.get(),I))})}; z2=function(F,J,b,I,u,w,M,q){g.R.call(this);this.U=F;this.C=J;this.T=b;this.uR=I;this.Z=u;this.QG=w;this.OQ=M;this.qI=q}; N0=function(F){g.R.call(this);this.C=F}; pd=function(F,J,b,I){F.C().Y7(J,I);b=b();F=F.C();F.S3.Q4("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",J,I,b);J=g.N(b);for(b=J.next();!b.done;b=J.next())a:{I=F;b=b.value;I.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b);I.S3.k0("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",b);try{var u=I.C;if(g.d5(b.slotId))throw new Z("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Ne(u,b))throw new Z("Duplicate registration for slot.",{slotId:b.slotId,slotEntryTriggerType:b.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!u.JX.Y6.has(b.slotType))throw new Z("No fulfillment adapter factory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!u.JX.ud.has(b.slotType))throw new Z("No SlotAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");CT(u,"TRIGGER_CATEGORY_SLOT_ENTRY",b.slotEntryTrigger?[b.slotEntryTrigger]:[]);CT(u,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", b.slotFulfillmentTriggers);CT(u,"TRIGGER_CATEGORY_SLOT_EXPIRATION",b.slotExpirationTriggers);var w=I.C,M=b.slotType+"_"+b.slotPhysicalPosition,q=rX(w,M);if(Ne(w,b))throw new Z("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");q.set(b.slotId,new C$m(b));w.C.set(M,q)}catch(uk){uk instanceof Z&&uk.Ek?(I.S3.kK("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",uk.Ek,b),q_(uk,b,void 0,void 0,uk.Pm)):(I.S3.kK("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", b),q_(uk,b));break a}Ne(I.C,b).W=!0;try{var v=I.C,a=Ne(v,b),e=b.slotEntryTrigger,K=v.JX.Rn.get(e.triggerType);K&&(K.cS("TRIGGER_CATEGORY_SLOT_ENTRY",e,b,null),a.Gj.set(e.triggerId,K));for(var p=g.N(b.slotFulfillmentTriggers),m=p.next();!m.done;m=p.next()){var y=m.value,f=v.JX.Rn.get(y.triggerType);f&&(f.cS("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,b,null),a.Tj.set(y.triggerId,f))}for(var d=g.N(b.slotExpirationTriggers),G=d.next();!G.done;G=d.next()){var P=G.value,r=v.JX.Rn.get(P.triggerType);r&&(r.cS("TRIGGER_CATEGORY_SLOT_EXPIRATION", P,b,null),a.N.set(P.triggerId,r))}var Q=v.JX.Y6.get(b.slotType).get().build(v.T,b);a.V=Q;var D=v.JX.ud.get(b.slotType).get().build(v.D,b);D.init();a.U=D}catch(uk){uk instanceof Z&&uk.Ek?(I.S3.kK("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",uk.Ek,b),q_(uk,b,void 0,void 0,uk.Pm)):(I.S3.kK("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),q_(uk,b));yS(I,b,!0);break a}I.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);I.C.mu(b);for(var t=g.N(I.U),n=t.next();!n.done;n= t.next())n.value.mu(b);Wq(I,b)}}; lS=function(F,J,b,I,u){g.R.call(this);var w=this;this.U=F;this.T=J;this.h_=b;this.context=u;this.C=new Map;I.get().addListener(this);this.addOnDisposeCallback(function(){I.iR()||I.get().removeListener(w)})}; EF_=function(F,J){var b=0x8000000000000;var I=0;for(var u=g.N(J.slotFulfillmentTriggers),w=u.next();!w.done;w=u.next())w=w.value,w instanceof Sj?(b=Math.min(b,w.C.start),I=Math.max(I,w.C.end)):q_("Found unexpected fulfillment trigger for throttled slot.",J,null,{fulfillmentTrigger:w});I=new f6(b,I);b="throttledadcuerange:"+J.slotId;F.C.set(b,J);F.h_.get().addCueRange(b,I.start,I.end,!1,F);fF(F.context.uR.get())&&(J=I.start,I=I.end,u={},F.context.P9.Ck("tcrr",(u.cid=b,u.sm=J,u.em=I,u)))}; fm=function(){g.R.apply(this,arguments);this.Gn=!0;this.ML=new Map;this.C=new Map}; WN=function(F,J){F=g.N(F.ML.values());for(var b=F.next();!b.done;b=F.next())if(b.value.layoutId===J)return!0;return!1}; dw=function(F,J){F=g.N(F.C.values());for(var b=F.next();!b.done;b=F.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())if(I=I.value,I.layoutId===J)return I}q_("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.d5(J)),layoutId:J})}; VKY=function(){this.C=new Map}; PQY=function(F,J){this.callback=F;this.slot=J}; Ep=function(){}; BT3=function(F,J,b){this.callback=F;this.slot=J;this.OQ=b}; TTY=function(F,J,b){this.callback=F;this.slot=J;this.OQ=b;this.U=!1;this.C=0}; rp3=function(F,J,b){this.callback=F;this.slot=J;this.OQ=b}; jy=function(F){this.OQ=F}; G2=function(F){g.R.call(this);this.HI=F;this.iT=new Map}; V6=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.trigger;w instanceof xA&&w.triggeringLayoutId===J&&b.push(u)}b.length?Pq(F.HI(),b):q_("Survey is submitted but no registered triggers can be activated.")}; PN=function(F,J,b){G2.call(this,F);var I=this;this.uR=b;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(I)})}; BN=function(F){g.R.call(this);this.C=F;this.Gn=!0;this.iT=new Map;this.D=new Set;this.T=new Set;this.Z=new Set;this.W=new Set;this.U=new Set}; T2=function(F){g.R.call(this);this.C=F;this.iT=new Map}; rw=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next())u=u.value,u.trigger.C===J.layoutId&&b.push(u);b.length&&Pq(F.C(),b)}; Sy=function(F,J,b){g.R.call(this);var I=this;this.C=F;this.context=b;this.iT=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(I)})}; sp=function(F,J,b,I,u){g.R.call(this);var w=this;this.U=F;this.h_=J;this.OQ=b;this.QG=I;this.context=u;this.Gn=!0;this.iT=new Map;this.C=new Set;b.get().addListener(this);this.addOnDisposeCallback(function(){b.iR()||b.get().removeListener(w)})}; Stv=function(F,J,b,I,u,w,M,q,v,a){if(gM(F.QG.get(),1).clientPlaybackNonce!==v)throw new Z("Cannot register CueRange-based trigger for different content CPN",{trigger:b});F.iT.set(b.triggerId,{lh:new tb(J,b,I,u),cueRangeId:w});F.h_.get().addCueRange(w,M,q,a,F);fF(F.context.uR.get())&&(v={},F.context.P9.Ck("crr",(v.ca=J,v.tt=b.triggerType,v.st=I.slotType,v.lt=u==null?void 0:u.layoutType,v.cid=w,v.sm=M,v.em=q,v)))}; sdJ=function(F,J){F=g.N(F.iT.entries());for(var b=F.next();!b.done;b=F.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;if(J===I.cueRangeId)return b}return""}; Yf=function(F,J){g.R.call(this);var b=this;this.Z=F;this.U=new Map;this.T=new Map;this.C=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(b)}); var I;this.C=((I=J.get().Hm)==null?void 0:I.slotId)||null}; YtY=function(F,J){var b=[];F=g.N(F.values());for(var I=F.next();!I.done;I=F.next())I=I.value,I.slot.slotId===J&&b.push(I);return b}; $f=function(F){g.R.call(this);this.C=F;this.Gn=!0;this.iT=new Map}; OR=function(F,J,b){J=J.layoutId;for(var I=[],u=g.N(F.iT.values()),w=u.next();!w.done;w=u.next())if(w=w.value,w.trigger instanceof Ci){var M;if(M=w.trigger.layoutId===J){M=b;var q=BQm.get(w.category);M=q?q===M:!1}M&&I.push(w)}I.length&&Pq(F.C(),I)}; Cm=function(F){g.R.call(this);this.C=F;this.Gn=!0;this.iT=new Map}; XZ=function(F,J,b,I,u){g.R.call(this);var w=this;this.D=F;this.cV=J;this.OQ=b;this.EQ=I;this.C=null;this.Gn=!0;this.iT=new Map;this.T=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(w)}); u.get().addListener(this);this.addOnDisposeCallback(function(){u.iR()||u.get().removeListener(w)})}; CQG=function(F){F.C&&(F.U&&(F.U.stop(),F.U.start()),$RJ(F,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; $RJ=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next())u=u.value,u.trigger.triggerType===J&&b.push(u);b.length>0&&Pq(F.D(),b)}; Q6=function(F,J,b,I,u){u=u===void 0?!0:u;for(var w=[],M=g.N(F.iT.values()),q=M.next();!q.done;q=M.next()){q=q.value;var v=q.trigger;if(v.triggerType===J){if(v instanceof BS||v instanceof TJ||v instanceof sC){if(u&&v.breakDurationMs!==b)continue;if(!u&&v.breakDurationMs===b)continue;if(I.has(v.triggerId))continue}w.push(q)}}w.length>0&&Pq(F.D(),w)}; XMJ=function(F){F=F.adPlacementRenderer.config.adPlacementConfig;if(!F.prefetchModeConfig||!F.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;F=Number(F.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(F)||F<=0?0:Math.floor(Math.random()*F)}; Qdo=function(F){F=F.adPlacementRenderer.config.adPlacementConfig;if(F.prefetchModeConfig&&F.prefetchModeConfig.cacheFetchRefreshDurationMs&&(F=Number(F.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(F)||F<=0)))return F}; Rn=function(F){F.C=null;F.iT.clear();F.T.clear();F.U&&F.U.stop();F.Z&&F.Z.stop()}; DX=function(F){g.R.call(this);this.T=F;this.Gn=!0;this.iT=new Map;this.C=new Map;this.U=new Map}; Rxz=function(F,J){var b=[];if(J=F.C.get(J.layoutId)){J=g.N(J);for(var I=J.next();!I.done;I=J.next())(I=F.U.get(I.value.triggerId))&&b.push(I)}return b}; kf=function(F){g.R.call(this);this.C=F;this.iT=new Map}; DRa=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next())u=u.value,u.trigger instanceof Nh&&u.trigger.slotId===J&&b.push(u);b.length>=1&&Pq(F.C(),b)}; kuk=function(F,J){var b={slotId:gq(J,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],BN:"surface",clientMetadata:new Ii([])},I=Object,u=I.assign;J=xX(J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",b.slotId);J={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ww:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"surface", clientMetadata:new Ii([]),lT:dYv(!1,b.slotId,b.slotType,b.slotPhysicalPosition,b.BN,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return u.call(I,{},F,{xfG:!0,slot:b,layout:J})}; PHz=function(F,J,b,I){var u=F.kind;I=I?!1:!F.hideCueRangeMarker;switch(u){case "AD_PLACEMENT_KIND_START":return I={TQ:new f6(-0x8000000000000,-0x8000000000000),c_:I},b!=null&&(I.kf=new f6(-0x8000000000000,-0x8000000000000)),I;case "AD_PLACEMENT_KIND_END":return I={TQ:new f6(0x7ffffffffffff,0x8000000000000),c_:I},b!=null&&(I.kf=new f6(Math.max(0,J-b),0x8000000000000)),I;case "AD_PLACEMENT_KIND_MILLISECONDS":u=F.adTimeOffset;u.offsetStartMilliseconds||q_("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); u.offsetEndMilliseconds||q_("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");F=Number(u.offsetStartMilliseconds);u=Number(u.offsetEndMilliseconds);u===-1&&(u=J);if(Number.isNaN(F)||Number.isNaN(u)||F>u)return new Z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:F,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===J&&F-500<=u);I={TQ:new f6(F,u),c_:I};if(b!=null){F=Math.max(0,F-b);if(F===u)return I;I.kf=new f6(F,u)}return I; default:return new Z("AdPlacementKind not supported in convertToRange.",{kind:u,adPlacementConfig:F})}}; fta=function(F){var J=F.startSecs*1E3;return new f6(J,J+F.Bg*1E3)}; OK3=function(F){if(!F||!F.adPlacements&&!F.adSlots)return!1;for(var J=g.N(F.adPlacements||[]),b=J.next();!b.done;b=J.next())if(b=b.value)if(b=b.adPlacementRenderer,b!=null&&(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;F=g.N(F.adSlots||[]);for(J=F.next();!J.done;J=F.next()){var I=b=void 0;if(((b=g.O(J.value,sx))==null?void 0:(I=b.adSlotMetadata)==null?void 0:I.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Op=function(F){this.uR=F;this.U=new Map;this.C=new Map;this.T=new Map}; gq=function(F,J){if(on(F.uR.get())){var b=F.U.get(J)||0;b++;F.U.set(J,b);return J+"_"+b}return g.Nq(16)}; xX=function(F,J,b){if(on(F.uR.get())){var I=F.C.get(J)||0;I++;F.C.set(J,I);return b+"_"+J+"_"+I}return g.Nq(16)}; Jc=function(F,J){if(on(F.uR.get())){var b=F.T.get(J)||0;b++;F.T.set(J,b);return J+"_"+b}return g.Nq(16)}; oYv=function(F){var J=[new pK(F.Dq),new iQ(F.AC),new ng(F.adPlacementConfig),new WM(F.videoLengthSeconds),new QD(F.AE)];F.instreamAdPlayerOverlayRenderer&&J.push(new bQ(F.instreamAdPlayerOverlayRenderer));F.playerOverlayLayoutRenderer&&J.push(new Id(F.playerOverlayLayoutRenderer));F.IT&&J.push(new Lg(F.IT));return J}; hxm=function(F,J,b,I,u,w){F=b.inPlayerLayoutId?b.inPlayerLayoutId:xX(w,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",F);var M,q,v=b.instreamAdPlayerOverlayRenderer?(M=b.instreamAdPlayerOverlayRenderer)==null?void 0:M.adLayoutLoggingData:(q=b.playerOverlayLayoutRenderer)==null?void 0:q.adLayoutLoggingData;M={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",BN:J};return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ww:new Map,layoutExitNormalTriggers:[new Vc(function(a){return Jc(w, a)},b.Dq)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:J,clientMetadata:I,lT:u(M),adLayoutLoggingData:v}}; hc=function(F,J){var b=this;this.U=F;this.uR=J;this.C=function(I){return Jc(b.U.get(),I)}}; y$z=function(F,J,b,I,u,w){b=new Ii([new uQ(b),new ng(I)]);J=xX(F.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",J);I={layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",BN:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ww:new Map,layoutExitNormalTriggers:[new Vc(function(M){return Jc(F.U.get(),M)},u)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:b,lT:w(I),adLayoutLoggingData:void 0}}; Ux=function(F,J,b,I,u){var w=oYv(I);return hxm(J,b,I,new Ii(w),u,F.U.get())}; cp3=function(F,J,b,I,u){var w=oYv(I);w.push(new UH(I.Rw));w.push(new xG(I.gP));return hxm(J,b,I,new Ii(w),u,F.U.get())}; Km=function(F,J,b,I,u,w,M,q,v,a){J=xX(F.U.get(),b,J);var e={layoutId:J,layoutType:b,BN:"core"},K=new Map;M&&K.set("impression",M);M=[new YA(F.C,u,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];a&&M.push(new GJ(F.C,a,["normal"]));return{layoutId:J,layoutType:b,ww:K,layoutExitNormalTriggers:M,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([I,new ng(w),new pK(u)]),lT:q(e),adLayoutLoggingData:v}}; pm=function(F,J,b,I,u,w,M,q,v){J=xX(F.U.get(),b,J);var a={layoutId:J,layoutType:b,BN:"core"},e=[new YA(F.C,u,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];v&&e.push(new GJ(F.C,v,["normal"]));return{layoutId:J,layoutType:b,ww:new Map,layoutExitNormalTriggers:e,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([I,new ng(w),new pK(u)]),lT:M(a),adLayoutLoggingData:q}}; In=function(F,J,b){var I=[];I.push(new $A(F.C,b));J&&I.push(J);return I}; bS=function(F,J,b,I,u,w,M){var q={layoutId:J,layoutType:b,BN:"core"};return{layoutId:J,layoutType:b,ww:new Map,layoutExitNormalTriggers:M,layoutExitSkipTriggers:[new WS(F.C,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new OH(I),new ng(u)]),lT:w(q),adLayoutLoggingData:I.adLayoutLoggingData}}; Ox=function(F,J,b,I,u,w,M,q){var v={layoutId:J,layoutType:w,BN:"core"};return{layoutId:J,layoutType:w,ww:new Map,layoutExitNormalTriggers:[new Vc(F.C,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new ng(I)].concat(g.W(M))),lT:u(v),adLayoutLoggingData:q}}; ww=function(F,J,b,I){if(F.uR.get().f7(J.kind==="AD_PLACEMENT_KIND_START"))if(b===void 0)q_("Expected SSAP layout ID in renderer",void 0,void 0,{caller:I});else return b}; tka=function(F,J,b,I,u,w,M,q,v,a,e,K,p){F=uS(F,J,b,u,w,M,q,v,K,ww(F,b,I.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),p);J=F.nO;b=new gT(F.gS);I=F.layoutExitSkipTriggers;a>0&&(J.push(b),J.push(new HP(a)),I=[]);J.push(new Z5(e));return{Kd:{layoutId:F.layoutId,layoutType:F.layoutType,ww:F.ww,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:F.BN,clientMetadata:new Ii(J),lT:F.lT,adLayoutLoggingData:F.adLayoutLoggingData}, EY:I,D2:F.layoutExitMuteTriggers,cC:F.layoutExitUserInputSubmittedTriggers,bl:F.z1,ya:F.ya}}; Fs7=function(F,J,b,I,u,w,M,q,v,a){J=uS(F,J,b,I,w,new Map,M,function(e){return q(e,v)},void 0,ww(F,b,u.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); F=new xA(F.C,J.gS);b=new gT(J.gS);a=new Z5(a);return{Kd:{layoutId:J.layoutId,layoutType:J.layoutType,ww:J.ww,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:J.BN,clientMetadata:new Ii([].concat(g.W(J.nO),[b,a])),lT:J.lT,adLayoutLoggingData:J.adLayoutLoggingData},EY:J.layoutExitSkipTriggers,D2:J.layoutExitMuteTriggers,cC:[].concat(g.W(J.layoutExitUserInputSubmittedTriggers),[F]),bl:J.z1,ya:J.ya}}; uS=function(F,J,b,I,u,w,M,q,v,a,e){J=a!=null?a:xX(F.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",J);a={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",BN:"adapter"};q=q(J);var K=uL(q.clientMetadata,"metadata_type_fulfilled_layout");K||q_("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var p=K?K.layoutId:"";b=[new ng(b),new Rd(I),new Ot(u)];K&&b.push(new ms(K.layoutType));e&&b.push(new PM(e));return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", ww:w,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new RS(F.C,p)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"adapter",nO:b,lT:M(a),adLayoutLoggingData:v,ya:q,gS:p}}; pPz=function(F,J,b,I,u,w,M,q,v,a,e){F=URa(F,J,"core",b,I,u,w,M,q,v,a,void 0,e);return{layoutId:F.layoutId,layoutType:F.layoutType,ww:F.ww,layoutExitNormalTriggers:F.layoutExitNormalTriggers,layoutExitSkipTriggers:F.layoutExitSkipTriggers,layoutExitMuteTriggers:F.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:F.layoutExitUserInputSubmittedTriggers,z1:F.z1,BN:F.BN,clientMetadata:new Ii(F.lj),lT:F.lT,adLayoutLoggingData:F.adLayoutLoggingData}}; exk=function(F,J,b,I,u,w,M,q,v,a,e,K,p){J=URa(F,J,"adapter",b,I,u,w,M,q,v,e,K,p);I=J.layoutExitSkipTriggers;u=J.lj;b.adPodSkipTarget&&b.adPodSkipTarget>0&&(u.push(a),u.push(new HP(b.adPodSkipTarget)),I=[]);u.push(new Z5(q.adPodIndex));b.isCritical&&(I=[new GJ(F.C,J.layoutId,["error"])].concat(g.W(I)));return{Kd:{layoutId:J.layoutId,layoutType:J.layoutType,ww:J.ww,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:J.BN,clientMetadata:new Ii(u), lT:J.lT,adLayoutLoggingData:J.adLayoutLoggingData},EY:I,D2:J.layoutExitMuteTriggers,cC:J.layoutExitUserInputSubmittedTriggers,bl:J.z1}}; URa=function(F,J,b,I,u,w,M,q,v,a,e,K,p){var m={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",BN:b};u=[new ng(u),new t$(v),new FA(I.externalVideoId),new Jp(q),new Ot({impressionCommands:I.impressionCommands,abandonCommands:I.onAbandonCommands,completeCommands:I.completeCommands,progressCommands:I.adVideoProgressCommands}),new dT(w),new zu({current:null}),new WM(M)];(w=I.playerOverlay.instreamAdPlayerOverlayRenderer)&&u.push(new bQ(w));(M=I.playerOverlay.playerOverlayLayoutRenderer)&&u.push(new Id(M)); K&&u.push(new Et(K));(K=I.playerUnderlay)&&u.push(new uQ(K));q=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");K=(K=w?w.elementId:M==null?void 0:M.layoutId)?K:xX(F.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",q);u.push(new gT(K));u.push(new yD(q));u.push(new PM(v.adPodIndex));I.adNextParams&&u.push(new D5(I.adNextParams));I.shrunkenPlayerBytesConfig&&u.push(new Ap(I.shrunkenPlayerBytesConfig));I.clickthroughEndpoint&&u.push(new kG(I.clickthroughEndpoint));I.legacyInfoCardVastExtension&&u.push(new Dt(I.legacyInfoCardVastExtension)); I.sodarExtensionData&&u.push(new jK(I.sodarExtensionData));e&&u.push(new XA(e));u.push(new cM(dq(I.pings)));v=Eh(I.pings);if(p){a:{p=g.N(p);for(e=p.next();!e.done;e=p.next())if(e=e.value,e.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(w=g.O(e.fulfillmentContent.fulfilledLayout,dc))&&(w=g.O(w.renderingContent,fU))&&w.associatedPlayerBytesLayoutId===J){p=e;break a}p=void 0}p&&u.push(new wT(p))}return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",ww:v,layoutExitNormalTriggers:[new Ci(F.C,J)],layoutExitSkipTriggers:I.skipOffsetMilliseconds? [new RS(F.C,K)]:[],layoutExitMuteTriggers:[new RS(F.C,K)],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:b,lj:u,lT:a(m),adLayoutLoggingData:I.adLayoutLoggingData}}; I5C=function(F,J,b,I,u,w,M,q,v){I.every(function(e){return Fu(e,[],["LAYOUT_TYPE_MEDIA"])})||q_("Unexpect subLayout type for DAI composite layout"); J=xX(F.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J);var a={layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",BN:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ww:new Map,layoutExitNormalTriggers:[new PS(F.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new Gu(b),new VD(q),new lQ(I),new ng(u),new SK(w),new BM({}),new xY(v)]),lT:M(a)}}; HQm=function(F){return F!=null}; cN=function(F,J,b){var I=this;this.U=F;this.T=J;this.uR=b;this.C=function(u){return Jc(I.U.get(),u)}}; lt_=function(F,J,b,I,u,w,M){if(!b.prefetchModeConfig)return new Z("AdPlacementConfig for Live Prefetch is missing prefetch_config");b=b.prefetchModeConfig;I*=1E3;var q=[];if(!b.breakLengthMs)return new Z("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var v=g.N(b.breakLengthMs),a=v.next();!a.done;a=v.next())if(a=a.value,Number(a)>0){var e=I+Number(b.startTimeOffsetMs),K=e+Number(b.cacheFetchSmearingDurationMs);a={TQ:new f6(K,K+Number(a)),c_:!1,kf:new f6(Math.floor(e+Math.random()* Number(b.cacheFetchSmearingDurationMs)),K),cueProcessedMs:I?I:e};e=[];e.push(new HM({}));K=[];K.push(new Qc(F.C));K.push(new okC(F.C));M&&e.push(new BM({}));q.push(Y8(F,J,u,a,w,e,K))}return q}; Y8=function(F,J,b,I,u,w,M){w=w===void 0?[]:w;M=M===void 0?[]:M;var q=gq(F.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),v=[];M=g.N(M);for(var a=M.next();!a.done;a=M.next())v.push(a.value);I.kf&&I.kf.start!==I.TQ.start&&v.push(new Sj(F.C,b,new f6(I.kf.start,I.TQ.start),!1));v.push(new Sj(F.C,b,new f6(I.TQ.start,I.TQ.end),I.c_));I={getAdBreakUrl:J.getAdBreakUrl,F1:I.TQ.start,xI:I.TQ.end,cueProcessedMs:I.cueProcessedMs};J=new oS(F.C,q);w=[new $Y(I)].concat(g.W(w));return{slotId:q,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:v,slotExpirationTriggers:[new Xq(F.C,b),new kA(F.C,q),new OC(F.C,q)],BN:"core",clientMetadata:new Ii(w),adSlotLoggingData:u}}; nYG=function(F,J,b){var I=[];b=g.N(b);for(var u=b.next();!u.done;u=b.next())I.push(xRo(F,J,u.value));return I}; xRo=function(F,J,b){return b.triggeringSlotId!=null&&b.triggeringSlotId===F?b.clone(J):b}; DJm=function(F,J,b,I,u){return tKv(F,J,b,I,u)}; Zgv=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");return tKv(F,u,J,b,I)}; tKv=function(F,J,b,I,u){var w=new jj(F.C,b),M=[new DM(F.C,J)];F=[new kA(F.C,J),new Xq(F.C,I)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(u({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F},b))]),adSlotLoggingData:void 0}}; Ks_=function(F,J,b,I,u,w){var M=gq(F.U.get(),"SLOT_TYPE_PLAYER_BYTES"),q=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER"),v=xX(F.U.get(),"LAYOUT_TYPE_SURVEY",q);I=Up(F,J,b,I);var a=[new DM(F.C,M)];b=[new kA(F.C,M),new Xq(F.C,b),new WS(F.C,v)];if(I instanceof Z)return I;q=w({slotId:M,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:a,slotExpirationTriggers:b},{slotId:q,layoutId:v});w=q.DWj;q=q.HWW;return[{slotId:M,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Ac(F,J,M,I),slotFulfillmentTriggers:q0(F,J,M,a),slotExpirationTriggers:b,BN:"core",clientMetadata:new Ii([new YY(w),new nK(vN(J)),new Zt({gt:F.gt(J)})]),adSlotLoggingData:u},q]}; vN=function(F){return F.kind==="AD_PLACEMENT_KIND_START"}; gGY=function(F,J,b,I,u){u=u?u:gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");b=new jj(F.C,b);var w=[new DM(F.C,u)];F=[new Xq(F.C,J),new kA(F.C,u)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F}))])}}; msa=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");b=new jj(F.C,b);var w=[new DM(F.C,u)];F=[new Xq(F.C,J),new kA(F.C,u)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F}))])}}; Mkv=function(F,J,b,I,u,w,M){var q=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER"),v=xX(F.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",q);I=ZKa(F,I,w,M,v);if(I instanceof Z)return I;M=[new DM(F.C,q)];u=[new Xq(F.C,w),new DM(F.C,u),new UC(F.C,u)];b=ai(b,{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:M,slotExpirationTriggers:u});F=F.T.get();w={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",BN:"core"};J={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", ww:new Map,layoutExitNormalTriggers:[new HpJ(F.C,v,J.durationMs)],layoutExitSkipTriggers:[new F_z(F.C,v,J.durationMs)],z1:[new LKz(F.C,v)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:"core",clientMetadata:new Ii([new kY(J)]),lT:b(w)};return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:M,slotExpirationTriggers:u,clientMetadata:new Ii([new YY(J)])}}; xs7=function(F,J,b,I,u,w){J=Up(F,J,b,I);if(J instanceof Z)return J;var M=J instanceof Sj?new nkY(F.C,b,J.C):null;I=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");var q=[new DM(F.C,I)];F=[new Xq(F.C,b),new kA(F.C,I)];w=w({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:J,slotFulfillmentTriggers:q,slotExpirationTriggers:F},M);return w instanceof bL?new Z(w):{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:q,slotExpirationTriggers:F, BN:"core",clientMetadata:new Ii([new YY(w)]),adSlotLoggingData:u}}; c$3=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER"),w=new fi(F.C,J),M=[new cS(F.C,u)];F=[new Xq(F.C,J),new kA(F.C,u)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F}))]),adSlotLoggingData:b}}; UJ4=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");b=new jj(F.C,b);var w=[new DM(F.C,u)],M=[new kA(F.C,u),new Xq(F.C,J)];w={slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:M};return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:[new DM(F.C,u)],slotExpirationTriggers:[new Xq(F.C,J),new kA(F.C,u)],BN:"core",clientMetadata:new Ii([new YY(I(w))])}}; oFa=function(F,J,b,I,u){var w=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");b=new EC(F.C,I,b);I=[new DM(F.C,w)];F=[new Xq(F.C,J)];return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:I,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(u({slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:I,slotExpirationTriggers:F}))])}}; XAv=function(F,J,b,I,u,w){var M=gq(F.U.get(),J);return xf(F,M,J,new jj(F.C,I),[new Xq(F.C,b),new kA(F.C,M),new GJ(F.C,I,["error"])],u,w)}; CH7=function(F,J,b,I,u,w,M){var q=gq(F.U.get(),J);return xf(F,q,J,new GJ(F.C,u,["normal"]),[new Xq(F.C,b),new kA(F.C,q),new GJ(F.C,I,["error"])],w,M)}; Sva=function(F,J,b,I,u){var w=gq(F.U.get(),J);return xf(F,w,J,new fi(F.C,b),[new Xq(F.C,b),new kA(F.C,w)],I,u)}; kI3=function(F,J,b,I,u){b=b?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var w=gq(F.U.get(),b);J=new fi(F.C,J);var M=[new DM(F.C,w)];F=[new kA(F.C,w)];return{slotId:w,slotType:b,slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(u({slotId:w,slotType:b,slotPhysicalPosition:1,BN:"core",slotEntryTrigger:J,slotFulfillmentTriggers:M,slotExpirationTriggers:F}))]),adSlotLoggingData:I}}; L_4=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_PLAYER_BYTES"),w=new rI(F.C),M=[new cS(F.C,u)];F=[new Xq(F.C,J)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F})),new BM({})]),adSlotLoggingData:b}}; Apz=function(F,J){return zxo(F.uR.get())?new GJ(F.C,J,["normal","error","skipped"]):new GJ(F.C,J,["normal"])}; a5Y=function(F,J,b,I,u){J=Apz(F,J);F=M0(F,J,b);u=u({slotId:F.slotId,slotType:F.slotType,slotPhysicalPosition:F.slotPhysicalPosition,slotEntryTrigger:F.slotEntryTrigger,slotFulfillmentTriggers:F.slotFulfillmentTriggers,slotExpirationTriggers:F.slotExpirationTriggers,BN:F.BN});return u instanceof Z?u:{Rl:Object.assign({},F,{clientMetadata:new Ii([new YY(u.layout)]),adSlotLoggingData:I}),Qk:u.Qk}}; ecz=function(F,J,b,I,u,w,M){b=qt_(F,J,b,I);if(b instanceof Z)return b;M=M({slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers,BN:b.BN});if(M instanceof Z)return M;I=[new nK(vN(J)),new YY(M.layout),new Zt({gt:F.gt(J)})];w&&I.push(new od({}));return{Rl:{slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:Ac(F, J,b.slotId,b.slotEntryTrigger),slotFulfillmentTriggers:q0(F,J,b.slotId,b.slotFulfillmentTriggers),slotExpirationTriggers:b.slotExpirationTriggers,BN:b.BN,clientMetadata:new Ii(I),adSlotLoggingData:u},Qk:M.Qk}}; Ac=function(F,J,b,I){return F.uR.get().f7(vN(J))?new Nh(F.C,b):I}; q0=function(F,J,b,I){return F.uR.get().f7(vN(J))?[new cS(F.C,b)]:I}; M0=function(F,J,b){var I=gq(F.U.get(),"SLOT_TYPE_PLAYER_BYTES"),u=[new DM(F.C,I)];F=[new kA(F.C,I),new Xq(F.C,b)];return{slotId:I,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:u,slotExpirationTriggers:F,BN:"core"}}; qt_=function(F,J,b,I){J=Up(F,J,b,I);return J instanceof Z?J:M0(F,J,b)}; oGm=function(F,J,b,I,u,w){var M=gq(F.U.get(),"SLOT_TYPE_FORECASTING");J=Up(F,J,b,I);if(J instanceof Z)return J;I=[new DM(F.C,M)];F=[new kA(F.C,M),new Xq(F.C,b)];return{slotId:M,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:I,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(w({slotId:M,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:J,slotFulfillmentTriggers:I,slotExpirationTriggers:F}))]),adSlotLoggingData:u}}; HKJ=function(F,J,b,I,u){var w=!J.hideCueRangeMarker;switch(J.kind){case "AD_PLACEMENT_KIND_START":return new fi(F.C,b);case "AD_PLACEMENT_KIND_MILLISECONDS":return F=PHz(J,I),F instanceof Z?F:u(F.TQ,w);case "AD_PLACEMENT_KIND_END":return new dI(F.C,b,w);default:return new Z("Cannot construct entry trigger",{kind:J.kind})}}; ZKa=function(F,J,b,I,u){return HKJ(F,J,b,I,function(w,M){return new xGz(F.C,b,w,M,u)})}; Up=function(F,J,b,I){return HKJ(F,J,b,I,function(u,w){return new Sj(F.C,b,u,w)})}; xf=function(F,J,b,I,u,w,M){F=[new cS(F.C,J)];return{slotId:J,slotType:b,slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:F,slotExpirationTriggers:u,BN:"core",clientMetadata:new Ii([new YY(M({slotId:J,slotType:b,slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:F,slotExpirationTriggers:u}))]),adSlotLoggingData:w}}; nm=function(F,J){g.R.call(this);this.uR=F;this.C=J;this.eventCount=0}; tc=function(F,J,b,I){nm.call(this,F,J);this.uR=F;this.QG=b;this.context=I}; ZX=function(){this.C=new Map}; Fa=function(F,J){var b=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=F;this.result=J.result;this.error=J.error;J.promise&&J.promise.then(function(I){HN(b,I)},function(I){Lm(b,I)})}; Ix=function(F){if(J8(F)){if(F instanceof Fa)return F;if(bf(F))return new Fa("wait",{promise:F})}return new Fa("done",{result:F})}; uf=function(F){return new Fa("fail",{error:F})}; wB=function(F){try{return Ix(F())}catch(J){return uf(J)}}; A8=function(F,J){var b=new Fa("wait",{});F.onSuccess.push(function(I){try{var u=J(I);HN(b,u)}catch(w){Lm(b,w)}}); F.onFailure.push(function(I){Lm(b,I)}); M7(F);return b}; q7=function(F,J){var b=new Fa("wait",{});F.onSuccess.push(function(I){HN(b,I)}); F.onFailure.push(function(I){try{var u=J(I);HN(b,u)}catch(w){Lm(b,w)}}); M7(F);return b}; HN=function(F,J){if(J8(J)){if(bf(J)){J.then(function(b){HN(F,b)},function(b){Lm(F,b)}); return}if(J instanceof Fa){A8(J,function(b){HN(F,b)}); q7(J,function(b){Lm(F,b)}); return}}F.currentState="done";F.result=J;M7(F)}; Lm=function(F,J){F.currentState="fail";F.error=J;M7(F)}; M7=function(F){if(F.currentState==="done"){var J=F.onSuccess;F.onSuccess=[];F.onFailure=[];J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,b(F.result)}else if(F.currentState==="fail")for(J=F.onFailure,F.onSuccess=[],F.onFailure=[],J=g.N(J),b=J.next();!b.done;b=J.next())b=b.value,b(F.error)}; FO3=function(F){return function(){return Ls7(F.apply(this,g.Ba.apply(0,arguments)))}}; Ls7=function(F){return wB(function(){return vX(F,F.next())})}; vX=function(F,J){return J.done?Ix(J.value):q7(A8(J.value.Z9,function(b){return vX(F,F.next(b))}),function(b){return vX(F,F.throw(b))})}; ev=function(F){var J=F.hours||0;var b=F.minutes||0,I=F.seconds||0;J=I+b*60+J*3600+(F.days||0)*86400+(F.weeks||0)*604800+(F.months||0)*2629800+(F.years||0)*31557600;J<=0?J={hours:0,minutes:0,seconds:0}:(F=J,J=Math.floor(F/3600),F%=3600,b=Math.floor(F/60),I=Math.floor(F%60),J={hours:J,minutes:b,seconds:I});var u=J.hours===void 0?0:J.hours;b=J.minutes===void 0?0:J.minutes;F=J.seconds===void 0?0:J.seconds;I=u>0;J=[];if(I){u=(new Intl.NumberFormat("en-u-nu-latn")).format(u);var w=["fr"],M="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(" "); u="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(ax)?u.replace(",","\u00a0"):w.includes(ax)?u.replace(",","\u202f"):M.includes(ax)?u.replace(",","."):u;J.push(u)}I=I===void 0?!1:I;b=(["af","be","lt"].includes(ax)||I)&&b<10?JjC().format(b):(new Intl.NumberFormat("en-u-nu-latn")).format(b);J.push(b);b=JjC().format(F);J.push(b);b=":";"da fi id si sr sr-Latn".split(" ").includes(ax)&&(b=".");return J.join(b)}; JjC=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; bTm=function(F,J){var b,I;F=((b=F.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(I=b.videoAuthorizationToken)==null?void 0:I.credentialTransferTokens)||[];for(b=0;b<F.length;++b)if(F[b].scope===J)return F[b].token||void 0}; Ka=function(F){if(F&&F.simpleText)return F.simpleText;var J="";if(F&&F.runs)for(var b=0;b<F.runs.length;b++)F.runs[b].text&&(J+=F.runs[b].text);return J}; pa=function(F){return F?function(){try{return F.apply(this,arguments)}catch(J){g.Td(J)}}:F}; gB=function(){this.T=new Set;this.U=new Set;this.Z=new Map;this.client=void 0;this.csn=null}; mB=function(){gB.instance||(gB.instance=new gB);return gB.instance}; yA=function(){}; zR=function(){this.V=[];this.Y=[];this.C=[];this.eE=[];this.D=[];this.N=[];this.T=new Map;this.W=new Map;this.U=new Set;this.Gj=new Map}; N7=function(){zR.instance||(zR.instance=new zR);return zR.instance}; lf=function(F,J,b,I){I=I===void 0?{}:I;g.tE(function(){IYJ.includes(J)||(g.rQ(new g.hC("createClientScreen() called with a non-page VE",J)),J=83769);I.isHistoryNavigation||(F.eE=[],F.C.push({rootVe:J,key:I.key||""}));F.V=[];F.Y=[];I.Ya?uu_(F,J,b,I):wqk(F,J,b,I)})()}; MBm=function(F,J,b){b=b===void 0?0:b;g.tE(function(){J.then(function(I){F.U.has(b)&&F.Z&&F.Z();var u=g.W8(b),w=g.fO(b);if(u&&w){var M;(I==null?0:(M=I.response)==null?0:M.trackingParams)&&g.oO(F.client,u,w,g.NY(I.response.trackingParams));var q;(I==null?0:(q=I.playerResponse)==null?0:q.trackingParams)&&g.oO(F.client,u,w,g.NY(I.playerResponse.trackingParams))}})})()}; WX=function(F){var J=N7();g.tE(function(){var b=g.NY(F);fa(J,b);return b})()}; fa=function(F,J,b,I){I=I===void 0?0:I;g.tE(function(){if(F.U.has(I))return F.V.push([J,b]),!0;var u=g.W8(I),w=b||g.fO(I);if(u&&w){if(g.Nk("combine_ve_grafts")){var M=F.T.get(w.toString());M?M.push(J):(F.W.set(w.toString(),w),F.T.set(w.toString(),[J]));F.Tj||(F.Tj=g.tC(0,function(){dB(F,u)},1200))}else g.oO(F.client,u,w,J); return!0}return!1})()}; Ajv=function(F,J,b,I){I=I===void 0?0:I;var u=g.W8(I);J=J||g.fO(I);u&&J&&(F=F.client,I=Q7({cttAuthInfo:dQ(u)||void 0},u),b={csn:u,ve:J.getAsJson(),clientData:b},u==="UNDEFINED_CSN"?UT("visualElementStateChanged",I,b):F?i$("visualElementStateChanged",b,F,I):g.AY("visualElementStateChanged",b,I))}; uu_=function(F,J,b,I){I=I===void 0?{}:I;F.U.add(I.layer||0);F.Z=function(){wqk(F,J,b,I);var M=g.fO(I.layer);if(M){for(var q=g.N(F.V),v=q.next();!v.done;v=q.next())v=v.value,fa(F,v[0],v[1]||M,I.layer);M=g.N(F.Y);for(q=M.next();!q.done;q=M.next())q=q.value,Ajv(F,q[0],q[1])}}; b||g.W8(I.layer)||F.Z();if(I.Ya)for(var u=g.N(I.Ya),w=u.next();!w.done;w=u.next())MBm(F,w.value,I.layer);else g.Td(Error("Delayed screen needs a data promise."))}; wqk=function(F,J,b,I){I=I===void 0?{}:I;var u=void 0;I.layer||(I.layer=0);u=I.parentLayer!==void 0?I.parentLayer:I.layer;var w=g.W8(u);u=g.fO(u);var M=b||u,q;M&&(I.parentCsn!==void 0?q={clientScreenNonce:I.parentCsn,visualElement:M}:w&&w!=="UNDEFINED_CSN"&&(q={clientScreenNonce:w,visualElement:M}));var v,a=g.cT("EVENT_ID");w==="UNDEFINED_CSN"&&a&&(v={servletData:{serializedServletEventId:a}});g.Nk("combine_ve_grafts")&&w&&dB(F,w);g.Nk("no_client_ve_attach_unless_shown")&&M&&w&&c8(M,w);try{var e=w$_(F.client, J,q,I.oJ,I.cttAuthInfo,v,I.implicitGestureType,I.loggingExpectations)}catch(m){Hw_(m,{Yn:J,rootVe:u,YTE:b,dpG:w,plf:q,oJ:I.oJ});g.Td(m);return}SyY(e,J,I.layer,I.cttAuthInfo);w&&w!=="UNDEFINED_CSN"&&u&&!Bmz(w)&&AYk(F.client,w,u,!0);F.C[F.C.length-1]&&!F.C[F.C.length-1].csn&&(F.C[F.C.length-1].csn=e||"");g.Qk({clientScreenNonce:e});yA.instance||(yA.instance=new yA);g.tE(mB().C).bind(mB())();var K=g.fO(I.layer);w&&w!=="UNDEFINED_CSN"&&K&&(g.Nk("web_mark_root_visible")||g.Nk("music_web_mark_root_visible"))&& g.H8(e,K);F.U.delete(I.layer||0);F.Z=void 0;var p;(p=F.Gj.get(I.layer))==null||p.forEach(function(m,y){m?fa(F,y,m,I.layer):K&&fa(F,y,K,I.layer)}); qnJ(F)}; qnJ=function(F){for(var J=0;J<F.D.length;J++){var b=F.D[J];try{b()}catch(I){g.Td(I)}}for(J=F.D.length=0;J<F.N.length;J++){b=F.N[J];try{b()}catch(I){g.Td(I)}}}; dB=function(F,J){if(J===void 0)for(var b=V9J(),I=0;I<b.length;I++)b[I]!==void 0&&dB(F,b[I]);else F.T.forEach(function(u,w){(w=F.W.get(w))&&g.OT(F.client,J,w,u)}),F.T.clear(),F.W.clear(),F.Tj=void 0}; Er=function(){}; vXz=function(){Er.instance||(Er.instance=new Er);return Er.instance}; aYk=function(F,J,b){var I=new XMLHttpRequest;if(b==null?0:b.H_)I.onreadystatechange=function(w){b.H_(I,w)}; var u;I.open((u=J.method)!=null?u:"GET",F,!0);I.responseType="text";I.withCredentials=!0;if(J.headers)for(F=g.N(Object.entries(J.headers)),J=F.next();!J.done;J=F.next())u=g.N(J.value),J=u.next().value,u=u.next().value,I.setRequestHeader(J,u);return I}; jv=function(){}; eKv=function(){var F=navigator;return new Promise(function(J,b){var I;(I=F.webkitTemporaryStorage)!=null&&I.queryUsageAndQuota?F.webkitTemporaryStorage.queryUsageAndQuota(function(u,w){J({usage:u,quota:w})},function(u){b(u)}):b(Error("webkitTemporaryStorage is not supported."))})}; wZ=function(F,J){var b=this;this.handleError=F;this.C=J;this.U=!1;self.document===void 0||self.addEventListener("beforeunload",function(){b.U=!0}); this.T=Math.random()<=.2}; pq3=function(F,J){jv.getInstance().estimate().then(function(b){b=Object.assign({},J,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:KOa(b==null?void 0:b.usage),deviceStorageQuotaMbytes:KOa(b==null?void 0:b.quota)});F.C("idbQuotaExceeded",b)})}; KOa=function(F){return typeof F==="undefined"?"-1":String(Math.ceil(F/1048576))}; mez=function(){g.Qe();return g.Rg(0,192)?g.Rg(0,190):!(g.Nk("web_watch_cinematics_disabled_by_default")||g.Nk("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&gXz())}; iTk=function(F,J){yjz(F.program,J.CaE)&&(Oz("bg_i",void 0,"player_att"),g.GR.initialize(F,function(){Oz("bg_l",void 0,"player_att");VA=(0,g.jR)()},J.cspNonce,J.ME))}; zK_=function(F){F=F===void 0?{}:F;return g.GR.invoke(F)}; yjz=function(F,J){if(F){var b;g.GR.isLoading()?b=!1:b=!VA||(0,g.jR)()-VA>J;F=b}else F=!1;return F}; NX7=function(F){F=F.split("");PX.nM(F,14);PX.Hb(F,1);PX.nM(F,77);return F.join("")}; g.BX=function(F,J){return F.ME+"timedtext_video?ref=player&v="+J.videoId}; g.lY7=function(F){var J=this;this.videoData=F;F={};this.C=(F.c1a=function(){var b=[];if(g.GR.isInitialized()){var I="";J.videoData&&J.videoData.vQ&&(I=J.videoData.vQ+("&r1b="+J.videoData.clientPlaybackNonce));var u={};I=(u.atr_challenge=I,u);Oz("bg_v",void 0,"player_att");(I=zK_(I))?(Oz("bg_s",void 0,"player_att"),b.push("r1a="+I)):(Oz("bg_e",void 0,"player_att"),b.push("r1c=2"))}else Oz("bg_e",void 0,"player_att"),window.trayride||window.botguard?b.push("r1c=1"):b.push("r1c=4");b.push("r1d="+g.GR.getState()); return b.join("&")},F.c6a=function(b){return"r6a="+(Number(b.c)^A3())},F.c6b=function(b){return"r6b="+(Number(b.c)^Number(g.cT("CATSTAT",0)))},F); this.videoData&&this.videoData.vQ?this.iB=FF(this.videoData.vQ):this.iB={}}; g.fY7=function(F){if(F.videoData&&F.videoData.vQ){for(var J=[F.videoData.vQ],b=g.N(Object.keys(F.C)),I=b.next();!I.done;I=b.next())I=I.value,F.iB[I]&&F.C[I]&&(I=F.C[I](F.iB))&&J.push(I);return J.join("&")}return null}; g.TR=function(F,J){iTk(F,{CaE:g.eB(J.experiments,"bg_vm_reinit_threshold"),cspNonce:J.cspNonce,ME:J.ME||""})}; WOv=function(){var F=XMLHttpRequest.prototype.fetch;return!!F&&F.length===3}; rB=function(F){F=F===void 0?2592E3:F;if(F>0&&!(tf4()>(0,g.jR)()-F*1E3))return 0;F=g.S9("yt-player-quality");if(typeof F==="string"){if(F=g.CF[F],F>0)return F}else if(F instanceof Object)return F.quality;return 0}; Sv=function(){var F=g.S9("yt-player-proxima-pref");return F==null?null:F}; dek=function(){var F=g.S9("yt-player-quality");if(F instanceof Object&&F.quality&&F.previousQuality){if(F.quality>F.previousQuality)return 1;if(F.quality<F.previousQuality)return-1}return 0}; EX7=function(){var F={values:{},Tz:{}};try{var J=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);F.values=J.values;F.halfLives=J.halfLives}catch(b){}return F}; sr=function(){return g.S9("yt-player-performance-cap")||{}}; $T=function(){var F;return(F=g.S9("yt-player-performance-cap-active-set"))!=null?F:[]}; jiz=function(F){(F===void 0?0:F)?(F=$T().filter(function(J){return J.startsWith("1")}),g.rm("yt-player-performance-cap-active-set",F,2592E3)):g.rm("yt-player-performance-cap-active-set",[],2592E3)}; G0z=function(F){g.rm("yt-player-watch-later-pending",F)}; VBz=function(){return!!g.S9("yt-player-headers-readable")}; PLY=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(F){return 0}}; g.Ca=function(){var F=g.S9("yt-player-caption-language-preferences");return F?F:[]}; Xa=function(){var F=g.S9("yt-player-user-settings"),J=new Map;if(F){F=g.N(Object.entries(F));for(var b=F.next();!b.done;b=F.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;J.set(b,I)}}return J}; Rx=function(){try{var F=window.navigator;if(F.getAutoplayPolicy&&typeof F.getAutoplayPolicy==="function"){var J=document.getElementsByClassName(g.QA.mhQ);var b=J.length>0&&J[0]?F.getAutoplayPolicy(J[0]):F.getAutoplayPolicy("mediaelement");if(BX3[b])return BX3[b]}}catch(I){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Do=function(F){return F.Vk||F.NJ||F.mutedAutoplay}; TXv=function(F,J){return Do(F)?J!==1&&J!==2&&J!==0?"AUTOPLAY_STATUS_UNAVAILABLE":F.F8?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; rjz=function(F,J,b){var I=J.J();F.thirdParty||(F.thirdParty={});I.ancestorOrigins&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{ancestorOrigins:I.ancestorOrigins}));I.S("embeds_enable_autoplay_and_visibility_signals")&&(I.XI!=null&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(I.XI)})),I.us&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{visibilityFractionSource:I.us})), F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Rx(),autoplayIntended:Do(J),autoplayStatus:TXv(J,b)}))}; Ynv=function(F,J){Uv(F,2,J.yc,kT,3);Uv(F,3,J.bz,Snz,3);h3(F,4,J.onesieUstreamerConfig);h3(F,9,J.v5);Uv(F,10,J.QD,Or,3);Uv(F,15,J.reloadPlaybackParams,siY,3)}; CL4=function(F,J){Uv(F,1,J.formatId,ox,3);Ov(F,2,J.startTimeMs);Ov(F,3,J.durationMs);Ov(F,4,J.I5);Ov(F,5,J.Tn);Uv(F,9,J.u2N,$ez,3);Uv(F,11,J.jEW,h8,1);Uv(F,12,J.s_,h8,1)}; XqC=function(F,J){cA(F,1,J.videoId);Ov(F,2,J.lmt)}; $ez=function(F,J){if(J.o1)for(var b=0;b<J.o1.length;b++)Uv(F,1,J.o1[b],XqC,3)}; ox=function(F,J){Ov(F,1,J.itag);Ov(F,2,J.lmt);cA(F,3,J.xtags)}; cX=function(F){return{itag:rE(F,1),lmt:rE(F,2),xtags:$F(F,3)}}; h8=function(F,J){Ov(F,1,J.startTicks);Ov(F,2,J.Ll);Ov(F,3,J.timescale)}; QiC=function(F){return{startTicks:rE(F,1),Ll:rE(F,2),timescale:rE(F,3)}}; RKm=function(F,J){Ov(F,1,J.defaultPolicy);Ov(F,2,J.smooth);Ov(F,3,J.visibility);Ov(F,4,J.zC);Ov(F,5,J.performance);Ov(F,6,J.speed)}; kT=function(F,J){Ov(F,13,J.timeSinceLastManualFormatSelectionMs);var b=J.lastManualDirection;b!==void 0&&(kF(F,112),kF(F,b<<1^b>>31));Ov(F,16,J.bWN);Ov(F,17,J.detailedNetworkType);Ov(F,18,J.pz);Ov(F,19,J.y7);Ov(F,21,J.Q9);Ov(F,23,J.Q7);Ov(F,28,J.qs);Ov(F,29,J.l4G);Ov(F,34,J.visibility);b=J.playbackRate;if(b!==void 0){var I=new ArrayBuffer(4);(new Float32Array(I))[0]=b;b=(new Uint32Array(I))[0];if(b!==void 0)for(kF(F,285),Dy(F,4),I=0;I<4;)F.view.setUint8(F.pos,b&255),b>>=8,F.pos+=1,I+=1}Ov(F,36,J.dJ); Uv(F,38,J.mediaCapabilities,De_,3);Ov(F,39,J.dEQ);Ov(F,40,J.C5);Ov(F,44,J.playerState);oW(F,46,J.fp);Ov(F,48,J.Bk);Ov(F,50,J.qU);Ov(F,51,J.Il);Ov(F,54,J.XU);oW(F,56,J.l7D);Ov(F,57,J.m8);oW(F,58,J.DX);Ov(F,59,J.hN);Ov(F,60,J.nB);oW(F,61,J.isPrefetch);Ov(F,62,J.Qg);h3(F,63,J.sabrLicenseConstraint);Ov(F,64,J.czR);Ov(F,66,J.mfG);Ov(F,67,J.HAW);Ov(F,68,J.PTR);cA(F,69,J.audioTrackId);oW(F,71,J.iK);Uv(F,72,J.LpG,RKm,1);Ov(F,74,J.F7);Ov(F,75,J.Bq)}; De_=function(F,J){if(J.videoFormatCapabilities)for(var b=0;b<J.videoFormatCapabilities.length;b++)Uv(F,1,J.videoFormatCapabilities[b],k0z,1);if(J.audioFormatCapabilities)for(b=0;b<J.audioFormatCapabilities.length;b++)Uv(F,2,J.audioFormatCapabilities[b],OT_,1);Uv(F,4,J.perPlaybackAttributes,oX7,3);Ov(F,5,J.hdrModeBitmask)}; k0z=function(F,J){Ov(F,1,J.videoCodec);Ov(F,3,J.maxHeight);Ov(F,4,J.maxWidth);Ov(F,11,J.maxFramerate);Ov(F,12,J.maxBitrateBps);oW(F,15,J.is10BitSupported)}; OT_=function(F,J){Ov(F,1,J.audioCodec);Ov(F,2,J.numChannels);Ov(F,3,J.maxBitrateBps);Ov(F,6,J.spatialCapabilityBitmask)}; oX7=function(F,J){if(J.itagDenylist)for(var b=0;b<J.itagDenylist.length;b++)Ov(F,1,J.itagDenylist[b])}; Or=function(F,J){Uv(F,1,J.clientInfo,hKY,3);h3(F,2,J.d3);h3(F,3,J.playbackCookie);h3(F,4,J.v5);if(J.FO)for(var b=0;b<J.FO.length;b++)Uv(F,5,J.FO[b],cjk,3);if(J.xr)for(b=0;b<J.xr.length;b++)Ov(F,6,J.xr[b]);cA(F,7,J.N6Q);Uv(F,8,J.yh,Uez,3)}; xeY=function(F,J){Ov(F,1,J.f_R);Ov(F,2,J.V2R)}; nXG=function(F,J){var b=J.code;b!==void 0&&(kF(F,8),kF(F,b<<1^b>>31));cA(F,2,J.message)}; tBY=function(F,J){Ov(F,1,J.clientState);Uv(F,2,J.hvD,xeY,1)}; Uez=function(F,J){h3(F,1,J.H7G);Uv(F,2,J.Sz_,nXG,3);Uv(F,3,J.coldStartInfo,tBY,3)}; cjk=function(F,J){Ov(F,1,J.type);h3(F,2,J.value)}; hKY=function(F,J){cA(F,1,J.hl);cA(F,12,J.deviceMake);cA(F,13,J.deviceModel);Ov(F,16,J.clientName);cA(F,17,J.clientVersion);cA(F,18,J.osName);cA(F,19,J.osVersion)}; ZTz=function(F,J){cA(F,1,J.name);cA(F,2,J.value)}; HTa=function(F,J){cA(F,1,J.url);if(J.vZ)for(var b=0;b<J.vZ.length;b++)Uv(F,2,J.vZ[b],ZTz,3);h3(F,3,J.postBody);oW(F,4,J.mYQ);oW(F,6,J.fX)}; Snz=function(F,J){h3(F,2,J.wR);h3(F,5,J.encryptedClientKey);h3(F,6,J.iv);h3(F,7,J.lQ);oW(F,10,J.CH);oW(F,13,J.rR);oW(F,14,J.RK);h3(F,16,J.ojQ);oW(F,17,J.Ef)}; LOz=function(F){return{cB:rE(F,1),Sa:rE(F,2),body:YF(F,4)}}; siY=function(F,J){cA(F,1,J.token)}; F8z=function(F){return{token:$F(F,1)}}; Jsz=function(F){return{WQ:rE(F,1),wg_:rE(F,2)}}; w7Y=function(F,J){Uv(F,1,J.yc,kT,3);if(J.Pe)for(var b=0;b<J.Pe.length;b++)Uv(F,2,J.Pe[b],ox,3);if(J.Ym)for(b=0;b<J.Ym.length;b++)Uv(F,3,J.Ym[b],CL4,3);h3(F,5,J.videoPlaybackUstreamerConfig);if(J.mI)for(b=0;b<J.mI.length;b++)Uv(F,6,J.mI[b],bdz,3);if(J.ma)for(b=0;b<J.ma.length;b++)Uv(F,16,J.ma[b],ox,3);if(J.LU)for(b=0;b<J.LU.length;b++)Uv(F,17,J.LU[b],ox,3);if(J.cJ)for(b=0;b<J.cJ.length;b++)Uv(F,18,J.cJ[b],ox,3);Uv(F,19,J.QD,Or,3);Uv(F,21,J.Zc,IQa,3);Ov(F,22,J.Iz);Ov(F,23,J.cH);if(J.qG)for(b=0;b<J.qG.length;b++)Uv(F, 1E3,J.qG[b],uKJ,3)}; bdz=function(F,J){Uv(F,1,J.formatId,ox,3);Ov(F,2,J.C4);Ov(F,3,J.sequenceNumber);Uv(F,4,J.oh,h8,1);Ov(F,5,J.Wf);Ov(F,6,J.XX)}; IQa=function(F,J){if(J.zW)for(var b=0;b<J.zW.length;b++)cA(F,1,J.zW[b]);h3(F,2,J.nw);cA(F,3,J.VO);Ov(F,4,J.Fy);Ov(F,5,J.SR);cA(F,6,J.Hi)}; uKJ=function(F,J){if(J.Pe)for(var b=0;b<J.Pe.length;b++)Uv(F,1,J.Pe[b],ox,3);if(J.Ym)for(b=0;b<J.Ym.length;b++)Uv(F,2,J.Ym[b],CL4,3);cA(F,3,J.clipId)}; g.Ur=function(F,J){Uv(F,1,J.yc,kT,3);h3(F,3,J.videoPlaybackUstreamerConfig);Uv(F,5,J.QD,Or,3);Uv(F,6,J.Zc,IQa,3)}; qho=function(F,J){cA(F,1,J.cpn);Ov(F,2,J.sequenceNumber);cA(F,3,J.serializedWatchEndpointLoggingContext);if(J.decoderInfo)for(var b=0;b<J.decoderInfo.length;b++)Uv(F,6,J.decoderInfo[b],Mr4,3);cA(F,9,J.playerResponseCpn);Ov(F,10,J.transitionStitchType);Ov(F,12,J.timestampOffsetMsecs);Ov(F,15,J.remoteControlMode);if(J.remoteConnectedDevices)for(b=0;b<J.remoteConnectedDevices.length;b++)Uv(F,16,J.remoteConnectedDevices[b],Asz,3);h3(F,17,J.serializedHouseBrandPlayerServiceLoggingContext)}; Mr4=function(F,J){Ov(F,1,J.elapsedTimeMs);cA(F,3,J.videoDecoderName)}; Asz=function(F,J){Ov(F,1,J.deviceInterface);cA(F,2,J.deviceVersion);oW(F,3,J.isSleeping)}; v54=function(F){return{first:rE(F,1),ex:rE(F,2)}}; aQo=function(F){return{bitrate:rE(F,6),width:rE(F,7),height:rE(F,8),fps:rE(F,25),averageBitrate:rE(F,31),audioSampleRate:rE(F,45),audioChannels:rE(F,46)}}; xT=function(F){return{itagDenylist:XS(F,1)}}; p7C=function(F){return{EH_:rE(F,1),itag:$F(F,3),Gl:CQ(F,4,epa),lmt:rE(F,5),yON:rE(F,7),xtags:$F(F,15),ikN:CQ(F,23,K8m),Tk:CQ(F,34,xT)}}; epa=function(F){return{iv:YF(F,5),vQI:St(F,7)}}; g57=function(F){return{dP:XS(F,2),videoId:$F(F,3),EU:rE(F,4)}}; K8m=function(F){return{videoId:$F(F,2)}}; mC4=function(F){return{rL:rE(F,3),dl:rE(F,4),SQ:rE(F,5),B0G:St(F,8),ZA_:rE(F,10),N9:rE(F,12),Ib:rE(F,13),Ks:rE(F,14),tb:rE(F,15),wh:rE(F,16)}}; ysk=function(F){return{targetAudioReadaheadMs:rE(F,1),targetVideoReadaheadMs:rE(F,2),backoffTimeMs:rE(F,4),playbackCookie:YF(F,7),videoId:$F(F,8)}}; id3=function(F){return{minBandwidthBytesPerSec:rE(F,1),minReadaheadMs:rE(F,2)}}; zpJ=function(F){return{startMinReadaheadPolicy:QK(F,1,id3),resumeMinReadaheadPolicy:QK(F,2,id3)}}; NqG=function(F){return{label:$F(F,1),text:$F(F,2)}}; lQ7=function(F){return{videoId:$F(F,1),formatId:CQ(F,2,cX),debugInfo:QK(F,3,NqG)}}; fQ7=function(F){return{Dk:QK(F,1,lQ7)}}; W8Y=function(F){return{Ka:rE(F,1),E4:rE(F,2),minReadaheadMs:rE(F,3)}}; dCG=function(F){return{g1:rE(F,1),items:QK(F,2,W8Y),aV:rE(F,3)}}; E5z=function(F){return{token:$F(F,1),videoId:$F(F,2)}}; jVa=function(F){return{Bn:rE(F,1)}}; Gsz=function(F){return{cej:$F(F,1),action:rE(F,2),nE:CQ(F,3,jVa)}}; na=function(F){return{Lq:rE(F,1),Ns:rE(F,2),seekSource:rE(F,3)}}; P6o=function(F){return{y9:QK(F,1,Vro),IVQ:$F(F,2)}}; BqY=function(F){return{JH:$F(F,1),P3:rE(F,2),Twf:rE(F,3),E9:rE(F,4),lZ:rE(F,5),Rd:rE(F,6)}}; Tqa=function(F){return{Gg:rE(F,1)}}; Vro=function(F){return{clipId:$F(F,1),Xn:CQ(F,2,BqY),jI:CQ(F,3,Tqa)}}; rsm=function(F){return{type:rE(F,1),scope:rE(F,2),value:YF(F,3),sendByDefault:St(F,4),writePolicy:rE(F,5)}}; Shz=function(F){var J=[];F=g.N(F.split(","));for(var b=F.next();!b.done;b=F.next()){var I=b.value;I&&((b=I.startsWith("!"))&&(I=I.substring(1)),I=I.split("-"),I.length<3||J.push({i$:I[0],platform:I[1],deviceVersion:I[2],zB:b}))}return J}; $CJ=function(F){return Shz(F).map(function(J){return{deviceInterface:sVa[Yh4[J.i$]]||0,deviceVersion:J.deviceVersion||"",isSleeping:J.zB}})}; g.t8=function(F,J){this.id=F;this.j3=J;this.captionTracks=[];this.T=this.Z=null;this.xtags="";this.D=!1;this.C=null;this.U="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";F=this.j3.id.split(".");F.length>1&&(this.D=F[1]==="2")}; Zo=function(F,J,b,I,u){this.U=F;this.C=J;this.T=b;this.reason=I;this.LW=u===void 0?0:u}; g.HX=function(F,J,b,I){return new Zo(g.CF[F]||0,g.CF[J]||0,b,I)}; Fh=function(F){if(La&&F.LW)return!1;var J=g.CF.auto;return F.U===J&&F.C===J}; b9=function(F){return Jt[F.C||F.U]||"auto"}; C6z=function(F,J){J=g.CF[J];return F.U<=J&&(!F.C||F.C>=J)}; It=function(F){return"["+F.U+"-"+F.C+", override: "+(F.T+", reason: "+F.reason+"]")}; u9=function(F,J,b){this.videoInfos=F;this.C=J;this.audioTracks=[];if(this.C){F=new Set;b==null||b({ainfolen:this.C.length});J=g.N(this.C);for(var I=J.next();!I.done;I=J.next())if(I=I.value,!I.j3||F.has(I.j3.id)){var u=void 0,w=void 0,M=void 0;(M=b)==null||M({atkerr:!!I.j3,itag:I.itag,xtag:I.C,lang:((u=I.j3)==null?void 0:u.name)||"",langid:((w=I.j3)==null?void 0:w.id)||""})}else u=new g.t8(I.id,I.j3),F.add(I.j3.id),this.audioTracks.push(u);b==null||b({atklen:this.audioTracks.length})}}; w_=function(){g.R.apply(this,arguments);this.C=null}; DC7=function(F,J,b,I,u,w,M){if(F.C)return F.C;var q={},v=new Set,a={};if(Mv(I)){for(var e in I.C)I.C.hasOwnProperty(e)&&(F=I.C[e],a[F.info.YQ]=[F.info]);return a}e=X7o(J,I,q);w&&u({aftsrt:At(e)});for(var K={},p=g.N(Object.keys(e)),m=p.next();!m.done;m=p.next()){m=m.value;for(var y=g.N(e[m]),f=y.next();!f.done;f=y.next()){f=f.value;var d=f.itag,G=void 0,P=m+"_"+(((G=f.video)==null?void 0:G.fps)||0);K.hasOwnProperty(P)?K[P]===!0?a[m].push(f):q[d]=K[P]:(G=qv(J,f,b,I.isLive,v),G!==!0?(M.add(m),q[d]=G, G==="disablevp9hfr"&&(K[P]="disablevp9hfr")):(a[m]=a[m]||[],a[m].push(f),K[P]=!0))}}w&&u({bfflt:At(a)});for(var r in a)a.hasOwnProperty(r)&&(I=r,a[I]&&a[I][0].v1()&&(a[I]=a[I],a[I]=QV7(J,a[I],q),a[I]=Rpz(a[I],q)));w&&Object.keys(q).length>0&&u({rjr:dk(q)});J=g.N(v.values());for(I=J.next();!I.done;I=J.next())(I=b.U.get(I.value))&&--I.Jf;w&&u({aftflt:At(a)});F.C=g.zo(a,function(Q){return!!Q.length}); return F.C}; Oda=function(F,J,b,I,u,w,M,q){q=q===void 0?!1:q;if(J.M0&&M&&M.length>1&&!(J.hN>0||J.Y)){for(var v=J.U||!!u,a=v&&J.NW?w:void 0,e=X7o(J,I),K=[],p=[],m={},y=0;y<M.length;y++){var f=M[y],d=I.T.get(f);if(d&&d.info){var G=d.info;d=G.YQ;if(qv(J,G,b,I.isLive)){f=G.v1()?K:p;G=g.N(e[d]);for(var P=G.next();!P.done;P=G.next()){P=P.value;var r=void 0,Q=d+"_"+(((r=P.video)==null?void 0:r.fps)||0);m.hasOwnProperty(Q)?m[Q]===!0&&f.push(P):qv(J,P,b,I.isLive)&&(f.push(P),m[Q]=!0)}}else v&&w({opfu:f})}}if(K.length&& p.length)return v&&w({opfm:K[0].itag+","+p[0].itag}),r$(new u9(K,p,a))}return ks4(F,J,b,I,u,w,q)}; ks4=function(F,J,b,I,u,w,M){function q(G){return!!K[G]} var v=J.U||!!u,a=v&&J.NW?w:void 0,e=new Set,K=DC7(F,J,b,I,w,v,e);vd(I)&&(K=o5m(b,K,u,v,w,J),v&&w({enflt:At(K)}));J.cN=hpo(K,J);if(Mv(I))return w=g.xL(Object.values(K),function(G){return!!G.length&&!!G[0].audio}),F=g.xL(Object.values(K),function(G){return!!G.length&&!!G[0].video}),w&&F||Tk(),r$(new u9(F,w,a)); u=csY(J);v&&w({audioPrefOrder:u.join("_")});F=[];if(J.T1){u=g.qN(u,q);for(var p=new Set,m=g.N(u),y=m.next();!y.done;y=m.next()){y=g.N(K[y.value]);for(var f=y.next();!f.done;f=y.next())f=f.value,f.j3&&!p.has(f.j3.id)&&(p.add(f.j3.id),F.push(f))}if(F.length===0){if(u.length===0)return v&&w({noaudio:1}),Tk();F=K[u[0]]}}else{F=g.xL(u,q);if(!F)return v&&w({noaudio:1}),Tk();F=K[F]}K["9"]&&K.h&&I.MW&&!J.KW&&(v&&w({dltvp9:1}),delete K["9"]);if(M){v&&w({bfsflt:At(K),bfsflta:at(b)});UC3(b,e);v&&w({bfsfltb:at(b)}); for(var d in K)if(K.hasOwnProperty(d)&&(M=d,!(M==="f"||J.qf===0&&xCk.has(M))))for(e=g.N(K[M]),u=e.next();!u.done;u=e.next())u=u.value,J.Ly?n5z(b,M,u):trG(b,M,u);v&&w({aftsflt:at(b)})}M=K["1h"]?"1h":"1";b=K["9h"]?"9h":"9";u=K[M];p=K[b];u&&u.length&&(J.C.highestAv1Resolution=u[u.length-1].video.C);p&&p.length&&(J.C.highestVp9Resolution=p[p.length-1].video.C);d=[];e=[];if(J.GU&&u)d=u,e=[M],w({forceAv1:M});else if(J.Y&&!J.DX)for(e=ZdY(I)?K["1h"]||K["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],v&&w({newhybpref:e.join(".")}), u=g.N(e),p=u.next();!p.done;p=u.next())d=d.concat(K[p.value]).filter(function(G){return G}); else J.hN>0&&p&&u&&(e=[M,b],d=u.concat(p).filter(function(G){return G})); if(d.length&&!J.DX){ea(d,e);if(v){v=[];J=g.N(d);for(I=J.next();!I.done;I=J.next())v.push(I.value.itag);w({hbdfmt:v.join(".")})}return r$(new u9(d,F,a))}d=Hdk(J);d=g.xL(d,q);if(!d){if(K[M])return w=K[M],ea(w),r$(new u9(w,F,a));v&&w({novideo:1});return Tk()}J.Se&&(d==="1"||d==="1h")&&K[b]&&(M=Kk(K[d]),e=Kk(K[b]),e>M?d=b:e===M&&L8C(K[b])&&(d=b));d==="9"&&K.h&&Kk(K.h)>Kk(K["9"])&&(d="h");J.Om&&I.isLive&&d==="("&&K.H&&Kk(K["("])<1440&&(d="H");v&&w({vfmly:pk(d)});J=K[d];if(!J.length)return v&&w({novfmly:pk(d)}), Tk();ea(J);return r$(new u9(J,F,a))}; hpo=function(F,J){var b=!(!F.m&&!F.M),I=!(!F.mac3&&!F.MAC3),u=!(!F.meac3&&!F.MEAC3);F=!(!F.i&&!F.I);J.xo=F;return b||I||u||F}; L8C=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.itag&&FYG.has(J.itag))return!0;return!1}; pk=function(F){switch(F){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return F}}; At=function(F){var J=[],b;for(b in F)if(F.hasOwnProperty(b)){var I=b;J.push(pk(I));I=g.N(F[I]);for(var u=I.next();!u.done;u=I.next())J.push(u.value.itag)}return J.join(".")}; o5m=function(F,J,b,I,u,w){var M={},q={};g.ie(J,function(v,a){v=v.filter(function(e){var K=e.itag;if(!e.Ke)return q[K]="noenc",!1;if(w.xm&&e.YQ==="(h"&&w.Um)return q[K]="lichdr",!1;if(!F.T&&e.YQ==="1e")return q[K]="noav1enc",!1;if(e.YQ==="("||e.YQ==="(h"){if(F.D&&b&&b.flavor==="widevine"){var p=e.mimeType+"; experimental=allowed";(p=!!e.Ke[b.flavor]&&!!b.C[p])||(q[K]=e.Ke[b.flavor]?"unspt":"noflv");return p}if(!g_(F,mp.CRYPTOBLOCKFORMAT)&&!F.qf||F.kQ)return q[K]=F.kQ?"disvp":"vpsub",!1}return b&&e.Ke[b.flavor]&& b.C[e.mimeType]?!0:(q[K]=b?e.Ke[b.flavor]?"unspt":"noflv":"nosys",!1)}); v.length&&(M[a]=v)}); I&&Object.entries(q).length&&u({rjr:dk(q)});return M}; Rpz=function(F,J){var b=Gi(F,function(I,u){return u.video.fps>32?Math.min(I,u.video.width):I},Infinity); b<Infinity&&(F=F.filter(function(I){if(I.video.fps>32||I.video.width<b)return!0;J[I.itag]="hfrfirst";return!1})); hR()&&(F=F.filter(function(I){if(I.itag!=="299")return!0;J[I.itag]="ps3hfr1080";return!1})); return F}; QV7=function(F,J,b){return J=J.filter(function(I){if(I.video.C<=F.If)return!0;b[I.itag]="maxquality";return!1})}; X7o=function(F,J,b){var I={},u;for(u in J.C)if(J.C.hasOwnProperty(u)){var w=J.C[u].info;if(F.V&&w.video&&w.video.C<F.V)b&&(b[w.itag]="min"+F.V);else{var M=w.YQ;I[M]=I[M]||[];I[M].push(w)}}F=g.N(Object.keys(I));for(J=F.next();!J.done;J=F.next())ea(I[J.value]);return I}; Kk=function(F){return Gi(F,function(J,b){return Math.max(J,b.video.C)},0)}; qv=function(F,J,b,I,u){u=u===void 0?new Set:u;if(J.YQ==="")return"unkn";if((J.itag==="304"||J.itag==="266")&&F.kQ)return"blk2khfr";if(F.W&&J.video&&J.video.C>F.W)return"max"+F.W;if(F.bR&&J.YQ==="h"&&J.video&&J.video.C>1080)return"blkhigh264";if(J.YQ==="(h"&&!b.V)return"enchdr";if((I===void 0?0:I)&&xz(J)&&!F.zj)return"blk51live";if((J.YQ==="MAC3"||J.YQ==="mac3")&&!F.Z)return"blkac3";if((J.YQ==="MEAC3"||J.YQ==="meac3")&&!F.D)return"blkeac3";if((J.YQ==="M"||J.YQ==="m")&&!F.eE)return"blkaac51";if((J.YQ=== "so"||J.YQ==="sa")&&!F.Gj)return"blkamb";if(!F.xm&&KN3(J)&&(!b.T||J.YQ!=="1e"))return"cbc";if(!b.T&&KN3(J)&&J.YQ==="1e")return"cbcav1";if((J.YQ==="i"||J.YQ==="I")&&!F.Kk)return"blkiamf";if(J.itag==="774"&&!F.WN)return"blkouh";var w,M;if(F.oI&&(J.YQ==="1"||J.YQ==="1h"||b.T&&J.YQ==="1e")&&((w=J.video)==null?0:w.C)&&((M=J.video)==null?void 0:M.C)>F.oI)return"av1cap";if((I=b.U.get(J.YQ))&&I.Jf>0)return u.add(J.YQ),"byerr";var q;if((q=J.video)==null?0:q.fps>32){if(!b.fW&&!g_(b,mp.FRAMERATE))return"capHfr"; if(F.nW&&J.video.C>=4320)return"blk8khfr";if(O5(J)&&F.Uz&&J.Ke&&J.video.C>=1440)return"disablevp9hfr"}if(F.LW&&J.LW>F.LW)return"ratecap";F=J1a(b,J);return F!==!0?F:!0}; ea=function(F,J){J=J===void 0?[]:J;g.vW(F,function(b,I){var u=I.LW-b.LW;if(!b.v1()||!I.v1())return u;var w=I.video.height*I.video.width-b.video.height*b.video.width;!w&&J&&J.length>0&&(b=J.indexOf(b.YQ)+1,I=J.indexOf(I.YQ)+1,w=b===0||I===0?I||-1:b-I);w||(w=u);return w})}; g.yJ=function(F,J){this.U=F;this.Z=J===void 0?!1:J;this.T=this.path=this.scheme="";this.C={};this.url=""}; zK=function(F){i9(F);return F.T}; Nv=function(F){return F.U?F.U.startsWith("local"):F.scheme==="local"}; bFz=function(F){i9(F);return g.le(F.C,function(J){return J!==null})}; l9=function(F){i9(F);var J=decodeURIComponent(F.get("mn")||"").split(",");return F.path==="/videoplayback"&&J.length>1&&!!J[1]}; fk=function(F,J){J=J===void 0?!1:J;i9(F);if(F.path!=="/videoplayback"){var b=F.clone();b.set("playerfallback","1");return b}var I=F.tF();b=new g.a2(I);var u=F.get("fvip"),w=decodeURIComponent(F.get("mn")||"").split(",");if(u&&w&&w.length>1&&w[1])return I=b.C,F=I.replace(/^[^.]*/,""),g.KM(b,(I.indexOf("rr")===0?"rr":"r")+u+"---"+w[1]+F),b=new g.yJ(b.toString()),b.set("fallback_count","1"),b;if(J)return b=F.clone(),b.set("fallback_count","1"),b;u=b.C.match("\\.a1\\.googlevideo\\.com$");b.C.match("\\.googlevideo\\.com$")? (g.KM(b,"redirector.googlevideo.com"),I=b.toString()):b.C.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.KM(b,"www.youtube.com"),I=b.toString()):(b=IUm(I),Hq(b)&&(I=b));b=new g.yJ(I);b.set("cmo=pf","1");u&&b.set("cmo=td","a1.googlevideo.com");return b}; i9=function(F){if(F.U){if(!Hq(F.U)&&!F.U.startsWith("local"))throw new g.hC("Untrusted URL",F.U);var J=g.Nl(F.U);F.scheme=J.D;F.T=J.C+(J.T!=null?":"+J.T:"");var b=J.U;if(b.startsWith("/videoplayback"))F.path="/videoplayback",b=b.slice(14);else if(b.startsWith("/initplayback"))F.path="/initplayback",b=b.slice(13);else if(b.startsWith("/api/manifest")){var I=b.indexOf("/",12),u=b.indexOf("/",I+1);I>0&&u>0?(F.path=b.slice(0,u),b=b.slice(u+1)):(F.path=b,b="")}else F.path=b,b="";I=F.C;F.C=Ifz(b);Object.assign(F.C, uk7(J.Z.toString()));Object.assign(F.C,I);F.C.file==="index.m3u8"&&(delete F.C.file,F.path+="/file/index.m3u8");F.U="";F.url="";F.Z&&(J=X2Y(),i9(F),b=F.C[J]||null)&&(b=w4Y[0](b),F.set(J,b),F.Z||X2Y(""))}}; Mgv=function(F){i9(F);var J=F.scheme+(F.scheme?"://":"//")+F.T+F.path;if(bFz(F)){var b=[];g.ie(F.C,function(I,u){I!==null&&b.push(u+"="+I)}); J+="?"+b.join("&")}return J}; Ifz=function(F){F=F.split("/");var J=0;F[0]||J++;for(var b={};J<F.length;J+=2)F[J]&&A1a(b,F[J],F[J+1]);return b}; uk7=function(F){F=F.split("&");for(var J={},b=0;b<F.length;b++){var I=F[b],u=I.indexOf("=");u>0?A1a(J,I.slice(0,u),I.slice(u+1)):I&&(J[I]="")}return J}; A1a=function(F,J,b){if(J==="cmo"){var I;(I=b.indexOf("="))>=0?(J="cmo="+b.slice(0,I),b=b.slice(I+1)):(I=b.indexOf("%3D"))>=0&&(J="cmo="+b.slice(0,I),b=b.slice(I+3))}F[J]=b}; Wd=function(F){var J=g.O(F,q5a)||F.signatureCipher;F={R_:!1,VP:"",Ou:"",s:""};if(!J)return F;J=FF(J);F.R_=!0;F.VP=J.url;F.Ou=J.sp;F.s=J.s;return F}; d_=function(F,J,b,I,u,w,M,q,v,a){this.Mf=F;this.startTime=J;this.duration=b;this.ingestionTime=I;this.sourceURL=u;this.Wg=v;this.C=a;this.endTime=J+b;this.U=M||0;this.range=w||null;this.pending=q||!1;this.Wg=v||null}; g.ES=function(){this.segments=[];this.C=null;this.U=!0;this.T=""}; vzk=function(F,J){if(J>F.oC())F.segments=[];else{var b=U1(F.segments,function(I){return I.Mf>=J},F); b>0&&F.segments.splice(0,b)}}; GK=function(F,J,b,I,u){u=u===void 0?!1:u;this.data=F;this.offset=J;this.size=b;this.type=I;this.C=(this.U=u)?0:8;this.dataOffset=this.offset+this.C}; VJ=function(F){var J=F.data.getUint8(F.offset+F.C);F.C+=1;return J}; Pd=function(F){var J=F.data.getUint16(F.offset+F.C);F.C+=2;return J}; Bd=function(F){var J=F.data.getInt32(F.offset+F.C);F.C+=4;return J}; TK=function(F){var J=F.data.getUint32(F.offset+F.C);F.C+=4;return J}; r_=function(F){var J=F.data;var b=F.offset+F.C;J=J.getUint32(b)*4294967296+J.getUint32(b+4);F.C+=8;return J}; Sa=function(F,J){J=J===void 0?NaN:J;if(isNaN(J))var b=F.size;else for(b=F.C;b<F.size&&F.data.getUint8(F.offset+b)!==J;)++b;J=new Uint8Array(F.data.buffer,F.offset+F.C+F.data.byteOffset,b-F.C);F.C=Math.min(b+1,F.size);return WA(J)}; af3=function(F){return new Uint8Array(F.data.buffer,F.offset+F.data.byteOffset,F.size)}; eZ3=function(F){this.offset=0;this.data=new DataView(new ArrayBuffer(F))}; sS=function(F,J,b,I){(new Uint8Array(F.data.buffer,F.offset,I)).set(new Uint8Array(J.buffer,b+J.byteOffset,I));F.offset+=I}; YZ=function(F,J,b,I,u,w){this.startSecs=F;this.Bg=J;this.context=b;this.identifier=I;this.event=u;this.C=w}; Ck=function(F,J){this.data=F;this.uri=J||"http://youtube.com/streaming/metadata/segment/102015";this.fF=$Z(this,"Sequence-Number");this.Z=$Z(this,"Segment-Count");this.D=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=$Z(this,"Ingestion-Walltime-Us")/1E6;this.C=($Z(this,"First-Frame-Time-Us")+$Z(this,"First-Frame-Uncertainty-Us"))/1E6;this.U2=$Z(this,"Target-Duration-Us")/1E6;this.aQ=this.data["Stream-Finished"]==="T";this.T=this.data.Streamable==="T";this.cryptoPeriodIndex=$Z(this,"Crypto-Period-Index"); this.U=$Z(this,"Crypto-Period-Seconds")}; p4J=function(F){return F.data["Cuepoint-Type"]?new YZ(-(Number(F.data["Cuepoint-Playhead-Time-Sec"])||0),Number(F.data["Cuepoint-Total-Duration-Sec"])||0,F.data["Cuepoint-Context"],F.data["Cuepoint-Identifier"]||"",KYk[F.data["Cuepoint-Event"]||""]||"unknown",(Number(F.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; gzv=function(F){return Number(F.data["Start-Media-Time-Us"])/1E6||0}; $Z=function(F,J){return Number(F.data[J])||0}; Xh=function(F){return F.data["Stitched-Video-Cpn"]?F.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; g.mMJ=function(F){return F.data["Serialized-State"]?F.data["Serialized-State"]:""}; g.y17=function(F){switch(F.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; iFz=function(F,J){this.C=F;this.duration=J}; zZz=function(F,J,b,I,u){this.U=u;this.C=F||0;this.pitch=J||0;this.yaw=b||0;this.roll=I||0;this.crc=u.getUint32(4)}; QJ=function(F){var J={};F=F.split("\r\n");for(var b=0;b<F.length;b++){if(F[b].length===0)return J;var I=F[b].match(/([^:]+):\s+([\S\s]+)/);I!=null&&(J[I[1]]=I[2])}return null}; Nko=function(F,J){var b=g.Rt(F,0,1952868452);F=g.Rt(F,0,1953658222);if(b&&F){b.skip(1);var I=VJ(b)<<16|Pd(b);b.skip(4);I&1&&b.skip(8);I&2&&b.skip(4);if(I&8){I=b.C;var u=TK(b);b.data.setUint32(b.offset+I,J>1?Math.ceil(u*J):Math.floor(u*J))}F.skip(1);b=VJ(F)<<16|Pd(F);if(b&256){I=b&1;u=b&4;var w=b&512,M=b&1024,q=b&2048;b=TK(F);I&&F.skip(4);u&&F.skip(4);I=(w?4:0)+(M?4:0)+(q?4:0);for(u=0;u<b;u++)w=F.C,M=TK(F),F.data.setUint32(F.offset+w,J>1?Math.ceil(M*J):Math.floor(M*J)),F.skip(I)}}}; kZ=function(F){F=new DataView(F.buffer,F.byteOffset,F.byteLength);return(F=g.Rt(F,0,1836476516))?g.DT(F):NaN}; lfC=function(F){var J=g.Rt(F,0,1937011556);if(!J)return null;J=OS(F,J.dataOffset+8,1635148593)||OS(F,J.dataOffset+8,1635135537);if(!J)return null;var b=OS(F,J.dataOffset+78,1936995172),I=OS(F,J.dataOffset+78,1937126244);if(!I)return null;J=null;if(b)switch(b.skip(4),VJ(b)){default:J=0;break;case 1:J=2;break;case 2:J=1;break;case 3:J=255}var u=b=null,w=null;if(I=OS(F,I.dataOffset,1886547818)){var M=OS(F,I.dataOffset,1886546020),q=OS(F,I.dataOffset,2037673328);if(!q&&(q=OS(F,I.dataOffset,1836279920), !q))return null;M&&(M.skip(4),b=Bd(M)/65536,w=Bd(M)/65536,u=Bd(M)/65536);F=af3(q);F=new DataView(F.buffer,F.byteOffset+8,F.byteLength-8);return new zZz(J,b,w,u,F)}return null}; OS=function(F,J,b){for(;ot(F,J);){var I=ht(F,J);if(I.type===b)return I;J+=I.size}return null}; g.Rt=function(F,J,b){for(;ot(F,J);){var I=ht(F,J);if(I.type===b)return I;J=cd(I.type)?J+8:J+I.size}return null}; g.US=function(F){if(F.data.getUint8(F.dataOffset)){var J=F.data;F=F.dataOffset+4;J=J.getUint32(F)*4294967296+J.getUint32(F+4)}else J=F.data.getUint32(F.dataOffset+4);return J}; ht=function(F,J){var b=F.getUint32(J),I=F.getUint32(J+4);return new GK(F,J,b,I)}; g.DT=function(F){var J=F.data.getUint8(F.dataOffset)?20:12;return F.data.getUint32(F.dataOffset+J)}; ffz=function(F){F=new GK(F.data,F.offset,F.size,F.type,F.U);var J=VJ(F);F.skip(7);var b=TK(F);if(J===0){J=TK(F);var I=TK(F)}else J=r_(F),I=r_(F);F.skip(2);for(var u=Pd(F),w=[],M=[],q=0;q<u;q++){var v=TK(F);w.push(v);M.push(TK(F));F.skip(4)}return{timescale:b,ES:J,CR:I,N0G:w,ax:M}}; ot=function(F,J){if(F.byteLength-J<8)return!1;var b=F.getUint32(J);if(b<8||F.byteLength-J<b)return!1;for(b=4;b<8;b++){var I=F.getInt8(J+b);if(I<48||I>122)return!1}return!0}; cd=function(F){return F===1701082227||F===1836019558||F===1836019574||F===1835297121||F===1835626086||F===1937007212||F===1953653094||F===1953653099||F===1836475768}; WY7=function(F){F.skip(4);return{lVQ:Sa(F,0),value:Sa(F,0),timescale:TK(F),mb_:TK(F),tlv:TK(F),id:TK(F),jx:Sa(F),offset:F.offset}}; g.dM3=function(F){var J=OS(F,0,1701671783);if(!J)return null;var b=WY7(J),I=b.lVQ;b=QJ(b.jx);if(F=OS(F,J.offset+J.size,1701671783))if(F=WY7(F),F=QJ(F.jx),b&&F){J=g.N(Object.keys(F));for(var u=J.next();!u.done;u=J.next())u=u.value,b[u]=F[u]}return b?new Ck(b,I):null}; xZ=function(F,J){for(var b=OS(F,0,J);b;){var I=b;I.type=1936419184;I.data.setUint32(I.offset+4,1936419184);b=OS(F,b.offset+b.size,J)}}; g.nk=function(F,J){for(var b=0,I=[];ot(F,b);){var u=ht(F,b);u.type===J&&I.push(u);b=cd(u.type)?b+8:b+u.size}return I}; EzJ=function(F,J){var b=g.Rt(F,0,1937011556),I=g.Rt(F,0,1953654136);if(!b||!I||F.getUint32(b.offset+12)>=2)return null;var u=new DataView(J.buffer,J.byteOffset,J.length),w=g.Rt(u,0,1937011556);if(!w)return null;J=u.getUint32(w.dataOffset+8);I=u.getUint32(w.dataOffset+12);if(I!==1701733217&&I!==1701733238)return null;I=new eZ3(F.byteLength+J);sS(I,F,0,b.offset+12);I.data.setInt32(I.offset,2);I.offset+=4;sS(I,F,b.offset+16,b.size-16);sS(I,u,u.byteOffset+w.dataOffset+8,J);sS(I,F,b.offset+b.size,F.byteLength- (b.offset+b.size));b=g.N([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(u=b.next();!u.done;u=b.next())u=g.Rt(F,0,u.value),I.data.setUint32(u.offset,u.size+J);F=g.Rt(I.data,0,1953654136);I.data.setUint32(F.offset+16,2);return I.data}; jTo=function(F){var J=g.Rt(F,0,1937011556);if(!J)return null;var b=F.getUint32(J.dataOffset+12);if(b!==1701733217&&b!==1701733238)return null;J=OS(F,J.offset+24+(b===1701733217?28:78),1936289382);if(!J)return null;b=OS(F,J.offset+8,1935894637);if(!b||F.getUint32(b.offset+12)!==1667392371)return null;J=OS(F,J.offset+8,1935894633);if(!J)return null;J=OS(F,J.offset+8,1952804451);if(!J)return null;b=new Uint8Array(16);for(var I=0;I<16;I++)b[I]=F.getInt8(J.offset+16+I);return b}; tt=function(F,J){this.C=F;this.pos=0;this.start=J||0}; ZT=function(F){return F.pos>=F.C.byteLength}; bU=function(F,J,b){var I=new tt(b);if(!Hd(I,F))return!1;I=Lk(I);if(!Fz(I,J))return!1;for(F=0;J;)J>>>=8,F++;J=I.start+I.pos;var u=JM(I,!0);I=F+(I.start+I.pos-J)+u;I=I>9?Gja(I-9,8):Gja(I-2,1);F=J-F;b.setUint8(F++,236);for(J=0;J<I.length;J++)b.setUint8(F++,I[J]);return!0}; Vg4=function(F){var J=new tt(F);J.Uv();if(Hd(J,[408125543,374648427,174,224]))J=Lk(J);else return null;for(var b=F=null;!ZT(J);){var I=JM(J,!1);if(I===21432)switch(IA(J)){default:F=0;break;case 1:F=1;break;case 3:F=2;break;case 15:F=255}else I===30320?b=Lk(J):uU(J)}if(!b)return null;for(var u,w=I=J=null;!ZT(b);)switch(JM(b,!1)){case 30321:if(IA(b)!==3)return null;break;case 30324:J=wG(b);break;case 30323:w=wG(b);break;case 30325:I=wG(b);break;case 30322:u=JM(b,!0);u=Mx(b,u);u=new DataView(u.buffer, u.byteOffset,u.byteLength);break;default:uU(b)}return u?new zZz(F,J,w,I,u):null}; Lk=function(F){var J=JM(F,!0),b=F.C.byteOffset+F.pos;b=new DataView(F.C.buffer,b,Math.min(J,F.C.buffer.byteLength-b));b=new tt(b,F.start+F.pos);F.pos+=J;return b}; IA=function(F){for(var J=JM(F,!0),b=AM(F),I=1;I<J;I++)b=b*256+AM(F);return b}; wG=function(F){var J=JM(F,!0),b=0;J===4?b=F.C.getFloat32(F.pos):J===8&&(b=F.C.getFloat64(F.pos));F.pos+=J;return b}; PO3=function(F){var J=JM(F,!0);return WA(Mx(F,J))}; AM=function(F){return F.C.getUint8(F.pos++)}; JM=function(F,J){var b=AM(F);if(b===1){for(J=b=0;J<7;J++)b=b*256+AM(F);return b}for(var I=128,u=0;u<6&&I>b;u++)b=b*256+AM(F),I*=128;return J?b-I:b}; uU=function(F){var J=JM(F,!0);F.pos+=J}; Bkm=function(F){if(!Fz(F,440786851,!0))return null;var J=F.pos;JM(F,!1);var b=JM(F,!0)+F.pos-J;F.pos=J+b;if(!Fz(F,408125543,!1))return null;JM(F,!0);if(!Fz(F,357149030,!0))return null;var I=F.pos;JM(F,!1);var u=JM(F,!0)+F.pos-I;F.pos=I+u;if(!Fz(F,374648427,!0))return null;var w=F.pos;JM(F,!1);var M=JM(F,!0)+F.pos-w,q=new Uint8Array(b+12+u+M),v=new DataView(q.buffer);q.set(new Uint8Array(F.C.buffer,F.C.byteOffset+J,b));v.setUint32(b,408125543);v.setUint32(b+4,33554431);v.setUint32(b+8,4294967295); q.set(new Uint8Array(F.C.buffer,F.C.byteOffset+I,u),b+12);q.set(new Uint8Array(F.C.buffer,F.C.byteOffset+w,M),b+12+u);return q}; qx=function(F){var J=F.pos;F.pos=0;var b=1E6;Hd(F,[408125543,357149030,2807729])&&(b=IA(F));F.pos=J;return b}; Tkm=function(F,J){var b=F.pos;F.pos=0;if(F.C.getUint8(F.pos)!==160&&!v6(F)||!Fz(F,160))return F.pos=b,NaN;JM(F,!0);var I=F.pos;if(!Fz(F,161))return F.pos=b,NaN;JM(F,!0);AM(F);var u=AM(F)<<8|AM(F);F.pos=I;if(!Fz(F,155))return F.pos=b,NaN;I=IA(F);F.pos=b;return(u+I)*J/1E9}; v6=function(F){if(!r1Y(F)||!Fz(F,524531317))return!1;JM(F,!0);return!0}; r1Y=function(F){if(F.Uv()){if(!Fz(F,408125543))return!1;JM(F,!0)}return!0}; Hd=function(F,J){for(var b=0;b<J.length;b++){if(!Fz(F,J[b]))return!1;b!==J.length-1&&JM(F,!0)}return!0}; Fz=function(F,J,b){b=b===void 0?!1:b;if(ZT(F))return!1;for(var I=F.pos;JM(F,!1)!==J;)if(uU(F),I=F.pos,ZT(F))return!1;b&&(F.pos=I);return!0}; Gja=function(F,J){J||(J=Math.ceil(Math.log(F+2)/Math.log(2)/7));for(var b=1<<8-J,I=[];I.length<J-1;)I.unshift(F%256),F=Math.floor(F/256);I.unshift(F|b);return I}; Mx=function(F,J){var b=new Uint8Array(F.C.buffer,F.C.byteOffset+F.pos,J);F.pos+=J;return b}; aA=function(F){this.XY=F;this.C={};this.url=""}; S5C=function(F,J){var b=J.indexOf("?");if(b>0){var I=uk7(J.substring(b+1));g.ie(I,function(u,w){this.set(w,u)},F); J=J.substring(0,b)}J=Ifz(J);g.ie(J,function(u,w){this.set(w,u)},F)}; sT_=function(F){var J=F.XY.tF(),b=[];g.ie(F.C,function(u,w){b.push(w+"="+u)}); if(!b.length)return J;var I=b.join("&");F=bFz(F.XY)?"&":"?";return J+F+I}; eo=function(F,J){var b=new g.yJ(J);(J=b.get("req_id"))&&F.set("req_id",J);g.ie(F.C,function(I,u){b.set(u,null)}); return b}; Y5a=function(){this.Z=this.U=this.C=this.timedOut=this.started=this.D=this.T=0}; Ko=function(F){F.D=(0,g.jR)();F.started=0;F.timedOut=0;F.C=0}; po=function(F,J){var b=F.started+F.C*4;J&&(b+=F.U);b=Math.max(0,b-3);return Math.pow(1.6,b)}; gG=function(F,J){F[J]||(F[J]=new Y5a);return F[J]}; mc=function(F){this.N=this.V=this.D=this.U=0;this.Y=this.W=!1;this.C=F;this.T=F.clone()}; $M_=function(F,J,b){if(Nv(F.C))return!1;var I=gG(b,zK(F.C));if(I.timedOut<1&&I.C<1)return!1;I=I.timedOut+I.C;F=y4(F,J);b=gG(b,zK(F));return b.timedOut+b.C+0<I}; iU=function(F,J,b){F=J?y4(F,b):F.C;return new aA(F)}; y4=function(F,J){J=J?J.b1:!1;F.Z||(F.Z=fk(F.T,J));return F.Z}; zC=function(F,J,b){return zK(J?y4(F,b):F.C)}; Nx=function(F,J,b,I){J.Ok&&(I===void 0?0:I)>1?J=J.Ok:(b=gG(b,zC(F,F.Xx(J,b),J)),J=Math.max(F.D,b.timedOut)+J.ip*(F.U-F.D)+.25*F.V,J=J>3?1E3*Math.pow(1.6,J-3):0);return J===0?!0:F.N+J<(0,g.jR)()}; COz=function(F,J,b){F.C.set(J,b);F.T.set(J,b);F.Z&&F.Z.set(J,b)}; X4a=function(F,J,b,I,u){++F.U;J&&++F.D;zK(b.XY).startsWith("redirector.")&&(F.C=F.T.clone(),delete F.Z,I.rh&&delete u[zK(F.C)])}; lU=function(F){return F?(F.itag||"")+";"+(F.lmt||0)+";"+(F.xtags||""):""}; fo=function(F,J,b,I){this.initRange=b;this.indexRange=I;this.C=null;this.T=!1;this.W=0;this.Z=this.d2=this.U=null;this.info=J;this.gw=new mc(F)}; W6=function(F,J){this.start=F;this.end=J;this.length=J-F+1}; dG=function(F){F=F.split("-");var J=Number(F[0]),b=Number(F[1]);if(!isNaN(J)&&!isNaN(b)&&F.length===2&&(F=new W6(J,b),!isNaN(F.start)&&!isNaN(F.end)&&!isNaN(F.length)&&F.length>0))return F}; EL=function(F,J){return new W6(F,F+J-1)}; QT7=function(F){return F.end==null?{start:String(F.start)}:{start:String(F.start),end:String(F.end)}}; jo=function(F){if(!F)return new W6(0,0);var J=Number(F.start);F=Number(F.end);if(!isNaN(J)&&!isNaN(F)&&(J=new W6(J,F),J.length>0))return J}; GC=function(F,J,b,I,u,w,M,q,v,a,e,K){I=I===void 0?"":I;this.type=F;this.C=J;this.range=b;this.source=I;this.C4=e;this.clipId=K===void 0?"":K;this.V=[];this.D="";this.Mf=-1;this.Y=this.N=0;this.D=I;this.Mf=u>=0?u:-1;this.startTime=w||0;this.duration=M||0;this.U=q||0;this.T=v>=0?v:this.range?this.range.length:NaN;this.Z=this.range?this.U+this.T===this.range.length:a===void 0?!!this.T:a;this.range?(this.hF=this.startTime+this.duration*this.U/this.range.length,this.W=this.duration*this.T/this.range.length, this.H1=this.hF+this.W):RZ7(this)}; RZ7=function(F){F.hF=F.startTime;F.W=F.duration;F.H1=F.hF+F.W}; DMY=function(F,J,b){var I=!(!J||J.C!==F.C||J.type!==F.type||J.Mf!==F.Mf);return b?I&&!!J&&(F.range&&J.range?J.range.end===F.range.end:J.range===F.range)&&J.U+J.T===F.U+F.T:I}; V4=function(F){return F.type===1||F.type===2}; P6=function(F){return F.type===3||F.type===6}; B6=function(F,J){return F.C===J.C?F.range&&J.range?F.range.start+F.U+F.T===J.range.start+J.U:F.Mf===J.Mf?F.U+F.T===J.U:F.Mf+1===J.Mf&&J.U===0&&F.Z:!1}; OFG=function(F,J){return F.Mf!==J.Mf&&J.Mf!==F.Mf+1||F.type!==J.type?!1:B6(F,J)?!0:Math.abs(F.hF-J.hF)<=1E-6&&F.Mf===J.Mf?!1:kjv(F,J)}; kjv=function(F,J){return B6(F,J)||Math.abs(F.H1-J.hF)<=1E-6||F.Mf+1===J.Mf&&J.U===0&&F.Z?!0:!1}; TC=function(F){return F.Mf+(F.Z?1:0)}; ozv=function(F){F.length===1||g.jw(F,function(b){return!!b.range}); for(var J=1;J<F.length;J++);J=F[F.length-1];return new W6(F[0].range.start+F[0].U,J.range.start+J.U+J.T-1)}; hZY=function(F){for(var J=1;J<F.length;J++)if(!B6(F[J-1],F[J]))return!1;return!0}; c1G=function(F){var J=0;F=g.N(F);for(var b=F.next();!b.done;b=F.next())J+=b.value.range.length;return J}; rG=function(F){var J={};J.itag=F.C.info.itag;J.type=""+F.type;J.src=""+F.source;J.segsrc=F.D;J.seg=String(F.Mf);F.range&&(J.range=F.range.start+F.U+"-"+(F.range.start+F.U+F.T-1));J.time=F.hF.toFixed(1)+"-"+(F.hF+F.W).toFixed(1);J.off=String(F.U);J.len=String(F.T);F.Z&&(J.end="1");F.aQ()&&(J.eos="1");F.clipId&&(J.cid=F.clipId);return J}; UMm=function(F){return new GC(F.type,F.C,F.range,"getEmptyStubBefore"+F.D,F.Mf,F.startTime,0,F.U,0)}; xMz=function(F){return new GC(F.type,F.C,F.range,"getEmptyStubAfter"+F.D,F.Mf,F.startTime+F.duration,0,F.U+F.T,0)}; nz_=function(F,J,b,I){return new GC(F.type,F.C,F.range,"reslice"+F.D,F.Mf,F.startTime,F.duration,J,b,I,F.C4,F.clipId)}; tg7=function(F,J){return F.C!==J.C?!1:F.range&&J.range?F.range.start+F.U>=J.range.start+J.U&&F.range.start+F.U+F.T<=J.range.start+J.U+J.T:F.Mf===J.Mf&&F.U>=J.U&&(F.U+F.T<=J.U+J.T||J.Z)}; ZF3=function(F,J){return F.C!==J.C?!1:F.type===4&&J.type===3&&F.C.VJ()?(F=F.C.Iq(F),Bc(F,function(b){return ZF3(b,J)})):F.Mf===J.Mf&&!!J.T&&J.U+J.T>F.U&&J.U+J.T<=F.U+F.T}; So=function(F,J){var b=J.Mf;F.D="updateWithSegmentInfo";F.Mf=b;if(F.startTime!==J.startTime||F.duration!==J.duration)F.startTime=J.startTime+F.N,F.duration=J.duration,RZ7(F)}; sL=function(F,J){var b=this;this.aI=F;this.Z=this.C=null;this.D=this.Qi=NaN;this.Xx=this.requestId=null;this.Po={pQG:function(){return b.range}}; this.gw=F[0].C.gw;this.U=J||"";this.aI[0].range&&this.aI[0].T>0&&(hZY(F)?(this.range=ozv(F),this.T=this.range.length):(this.range=this.aI[this.aI.length-1].range,this.T=c1G(F)))}; Ym=function(F){return!V4(F.aI[F.aI.length-1])}; $m=function(F){return F.aI[F.aI.length-1].type===4}; g.Co=function(F,J,b){b=F.Xx===null?F.gw.Xx(J,b,F.aI[0].type):F.Xx;if(F.C){J=b?fk(F.C,J.b1):F.C;var I=new aA(J);I.get("alr")||I.set("alr","yes");F.U&&S5C(I,F.U)}else/http[s]?:\/\//.test(F.U)?I=new aA(new g.yJ(F.U)):(I=iU(F.gw,b,J),F.U&&S5C(I,F.U));(J=F.range)?I.set("range",J.toString()):F.aI[0].C.OL()&&F.aI.length===1&&F.aI[0].U&&I.set("range",F.aI[0].U+"-");F.requestId&&I.set("req_id",F.requestId);isNaN(F.Qi)||I.set("headm",F.Qi.toString());isNaN(F.D)||I.set("mffa",F.D+"ms");F.urlParams&&g.ie(F.urlParams, function(u,w){I.set(w,u)}); return I}; HFa=function(F){if(F.range)return F.T;F=F.aI[0];return Math.round(F.W*F.C.info.LW)}; LYC=function(F,J){return Math.max(0,F.aI[0].hF-J)}; Xz=function(F,J,b,I,u,w){w=w===void 0?0:w;fo.call(this,F,J,I,void 0);this.D=b;this.U2=w;this.index=u||new g.ES}; F4_=function(F,J,b,I,u){this.Mf=F;this.startSecs=J;this.Bg=b;this.C=I||NaN;this.U=u||NaN}; Q4=function(F,J,b){for(;F;F=F.parentNode)if(F.attributes&&(!b||F.nodeName===b)){var I=F.getAttribute(J);if(I)return I}return""}; RA=function(F,J){for(;F;F=F.parentNode){var b=F.getElementsByTagName(J);if(b.length>0)return b[0]}return null}; JGk=function(F){if(!F)return 0;var J=F.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return J?(Number(J[2])|0)*3600+(Number(J[4])|0)*60+(Number(J[6])|0):Number(F)|0}; bBk=function(F){return F.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?F+"Z":F}; Dc=function(){this.C=[];this.U=null;this.W=0;this.T=[];this.D=!1;this.V="";this.Z=-1}; IOm=function(F){var J=F.T;F.T=[];return J}; u8_=function(){this.Z=[];this.C=null;this.U={};this.T={}}; qoC=function(F,J){var b=[];J=Array.from(J.getElementsByTagName("SegmentTimeline"));J=g.N(J);for(var I=J.next();!I.done;I=J.next()){I=I.value;var u=I.parentNode.parentNode,w=null;u.nodeName==="Period"?w=wez(F):u.nodeName==="AdaptationSet"?(u=u.getAttribute("id")||u.getAttribute("mimetype")||"",w=MsG(F,u)):u.nodeName==="Representation"&&(u=u.getAttribute("id")||"",w=AG7(F,u));if(w==null)return;w.update(I);g.bV(b,IOm(w))}g.bV(F.Z,b);bz3(F.Z,function(M){return M.startSecs*1E3+M.C})}; vnv=function(F){F.C&&(F.C.C=[]);g.ie(F.U,function(J){J.C=[]}); g.ie(F.T,function(J){J.C=[]})}; wez=function(F){F.C||(F.C=new Dc);return F.C}; MsG=function(F,J){F.U[J]||(F.U[J]=new Dc);return F.U[J]}; AG7=function(F,J){F.T[J]||(F.T[J]=new Dc);return F.T[J]}; OL=function(F){var J=F===void 0?{}:F;F=J.U2===void 0?0:J.U2;var b=J.Hu===void 0?!1:J.Hu;var I=J.jD===void 0?0:J.jD;var u=J.De===void 0?0:J.De;var w=J.VN===void 0?Infinity:J.VN;var M=J.gC===void 0?0:J.gC;var q=J.SF===void 0?!1:J.SF;J=J.jf===void 0?!1:J.jf;g.ES.call(this);this.Jd=this.H0=-1;this.x7=F;this.jD=I;this.Hu=b;this.De=u;this.VN=w;this.gC=M;((this.SF=q)||isFinite(w)&&this.VN>0)&&b&&km&&(this.U=!1,this.T="postLive");this.jf=J}; oA=function(F,J){return qL(F.segments,function(b){return J-b.Mf})}; hM=function(F,J,b){b=b===void 0?{}:b;Xz.call(this,F,J,"",void 0,void 0,b.U2||0);this.index=new OL(b)}; c6=function(F,J,b){fo.call(this,F,J);this.D=b;F=this.index=new g.ES;F.U=!1;F.T="d"}; aOa=function(F,J,b){var I=F.index.XN(J),u=F.index.getStartTime(J),w=F.index.getDuration(J);b?w=b=0:b=F.info.LW*w;return new sL([new GC(3,F,void 0,"otfCreateRequestInfoForSegment",J,u,w,0,b)],I)}; ega=function(F,J){if(!F.index.isLoaded()){var b=[],I=J.Z;J=J.D.split(",").filter(function(e){return e.length>0}); for(var u=0,w=0,M=0,q=/^(\d+)/,v=/r=(\d+)/,a=0;a<I;a++){if(M<=0)if(M=J.shift(),w=(w=q.exec(M))?+w[1]/1E3:0)M=(M=v.exec(M))?+M[1]:0,M+=1;else return;b.push(new d_(a,u,w,NaN,"sq/"+(a+1)));u+=w;M--}F.index.append(b)}}; UL=function(F,J){this.info=F;this.C=J;this.U=null;this.Z=this.T=-1;this.timestampOffset=0;this.isLocked=this.W=!1;this.D=this.info.C.Ne()&&!this.info.U}; K4J=function(F,J){F.C.getLength();J=Math.min(J,F.info.T);var b=F.C.split(J),I=b.eS;b=new UL(new GC(F.info.type,F.info.C,F.info.range,F.info.D,F.info.Mf,F.info.startTime,F.info.duration,F.info.U,J,!1,F.info.C4,F.info.clipId),b.lf);b.Z=F.Z;b.T=F.T;J=new UL(new GC(F.info.type,F.info.C,F.info.range,F.info.D,F.info.Mf,F.info.startTime,F.info.duration,F.info.U+J,F.info.T-J,F.info.Z,F.info.C4,F.info.clipId),I);J.Z=F.Z;J.T=F.T;return[b,J]}; g.xm=function(F,J,b){var I;if(!(I=F.isLocked||J.isLocked||!B6(F.info,J.info)||F.info.Z)){if(b=b===void 0?!1:b)b=F.C,I=J.C,b=!(I.g6.length?P03(b,I.g6[0]):1);I=b}if(I)return null;b=new GC(F.info.type,F.info.C,F.info.range,F.info.D,F.info.Mf,F.info.startTime,F.info.duration,F.info.U,F.info.T,F.info.Z,F.info.C4,F.info.clipId);I=J.info;b.T+=I.T;b.range&&(b.W+=I.W);b.H1=I.H1;b.Z=I.Z;I=new m_;yK(I,F.C);yK(I,J.C);b=new UL(b,I);b.U=J.U||F.U;b.T=F.T!==-1?F.T:J.T;b.Z=F.Z!==-1?F.Z:J.Z;return b}; g.no=function(F){g.nF(F.info.C.info)||F.info.C.info.Xb();if(F.T!==-1)return F.T;if(F.U&&gzv(F.U))return F.T=gzv(F.U),F.T;if(g.nF(F.info.C.info)){var J=F.AF();for(var b=F.info.C.C,I=NaN,u=NaN,w=0;ot(J,w);){var M=ht(J,w);M.type===1936286840?u=M.data.getUint32(M.dataOffset+8):M.type===1836476516?u=g.DT(M):M.type===1952867444&&isNaN(I)&&(I=g.US(M));w=cd(M.type)?w+8:w+M.size}!u&&b&&(u=kZ(b));J=I/u}else J=new tt(F.AF()),b=F.D?J:new tt(new DataView(F.info.C.C.buffer)),I=qx(b),b=J.pos,J.pos=0,v6(J)?Fz(J, 231)?(I=IA(J)*I/1E9,J.pos=b,J=I):(J.pos=b,J=NaN):(J.pos=b,J=NaN);F.T=J||F.info.hF;return F.T}; gna=function(F,J){F.timestampOffset>0&&(J-=F.timestampOffset);var b=g.no(F)+J;pez(F,b);F.timestampOffset=J}; pez=function(F,J){g.nF(F.info.C.info)||F.info.C.info.Xb();F.T=J;if(g.nF(F.info.C.info)){var b=F.AF();F=F.info.C.C;for(var I=NaN,u=NaN,w=0;ot(b,w);){var M=ht(b,w);isNaN(I)&&(M.type===1936286840?I=M.data.getUint32(M.dataOffset+8):M.type===1836476516&&(I=g.DT(M)));if(M.type===1952867444){!I&&F&&(I=kZ(F));var q=g.US(M);isNaN(u)&&(u=Math.round(J*I)-q);var v=M;q+=u;if(v.data.getUint8(v.dataOffset)){var a=v.data;v=v.dataOffset+4;a.setUint32(v,Math.floor(q/4294967296));a.setUint32(v+4,q&4294967295)}else v.data.setUint32(v.dataOffset+ 4,q)}w=cd(M.type)?w+8:w+M.size}return!0}b=new tt(F.AF());F=F.D?b:new tt(new DataView(F.info.C.C.buffer));I=qx(F);F=b.pos;b.pos=0;if(v6(b)&&Fz(b,231))if(u=JM(b,!0),J=Math.floor(J*1E9/I),Math.ceil(Math.log(J)/Math.log(2)/8)>u)J=!1;else{for(I=u-1;I>=0;I--)b.C.setUint8(b.pos+I,J&255),J>>>=8;b.pos=F;J=!0}else J=!1;return J}; Zc=function(F,J){J=J===void 0?!1:J;var b=tM(F);F=J?0:F.info.W;return b||F}; tM=function(F){g.nF(F.info.C.info)||F.info.C.info.Xb();if(F.U&&F.info.type===6)return F.U.U2;if(g.nF(F.info.C.info)){var J=F.AF();var b=0;J=g.nk(J,1936286840);J=g.N(J);for(var I=J.next();!I.done;I=J.next())I=ffz(I.value),b+=I.ax[0]/I.timescale;b=b||NaN;if(!(b>=0))a:{b=F.AF();J=F.info.C.C;for(var u=I=0,w=0;ot(b,I);){var M=ht(b,I);if(M.type===1836476516)u=g.DT(M);else if(M.type===1836019558){!u&&J&&(u=kZ(J));if(!u){b=NaN;break a}var q=OS(M.data,M.dataOffset,1953653094),v=q;q=u;var a=OS(v.data,v.dataOffset, 1952868452);v=OS(v.data,v.dataOffset,1953658222);var e=Bd(a);Bd(a);e&2&&Bd(a);a=e&8?Bd(a):0;var K=Bd(v),p=K&1;e=K&4;var m=K&256,y=K&512,f=K&1024;K&=2048;var d=TK(v);p&&Bd(v);e&&Bd(v);for(var G=p=0;G<d;G++){var P=m?Bd(v):a;y&&Bd(v);e&&G===0||!f||Bd(v);K&&Bd(v);p+=P}w+=p/q}I=cd(M.type)?I+8:I+M.size}b=w||NaN}b||g.rQ(new g.hC("Missing duration while parsing bmff",F.info.uX()))}else b=new tt(F.AF()),F=F.D?b:new tt(new DataView(F.info.C.C.buffer)),b=Tkm(b,qx(F));return b}; g.mtk=function(F){if(F.info.C.pc())return F.info.duration;F.Z===-1&&(F.Z=tM(F));return F.Z||F.info.duration}; yGG=function(F){var J=F.AF();var b=(b=g.Rt(J,0,1936286840))?b.data.getUint32(b.dataOffset+8):NaN;isNaN(b)&&(F=F.info.C.C,b=(J=g.Rt(J,0,1836476516))?g.DT(J):F?kZ(F):NaN);return b}; iBo=function(F){return F.info.C.info.Xb()&&F.C.getUint8(0)===160}; zgC=function(F){if(!F.U){g.nF(F.info.C.info)||F.info.C.info.Xb();if(g.nF(F.info.C.info))var J=g.dM3(F.AF());else{J=new tt(F.AF());var b=J.pos;J.pos=0;var I=null,u=null;if(Hd(J,[408125543,307544935]))for(var w=J.pos+JM(J,!0);J.pos<w;)if(JM(J,!1)!==29555)uU(J);else for(var M=J.pos+JM(J,!0);J.pos<M;)if(JM(J,!1)!==26568)uU(J);else for(var q=J.pos+JM(J,!0);J.pos<q;){var v=JM(J,!1);if(v===17543){if(v=PO3(J),v=QJ(v))if(u)for(var a=g.N(Object.keys(v)),e=a.next();!e.done;e=a.next())e=e.value,u[e]=v[e];else u= v}else v===17827?(v=PO3(J),I||(I=v)):uU(J)}J.pos=b;J=u?new Ck(u,I):null}F.U=J}}; NuG=function(F){if(g.nF(F.info.C.info))xZ(F.AF(),1836019574),xZ(F.AF(),1718909296);else{var J=new tt(F.AF());r1Y(J);Fz(J,524531317,!0);F.C=F.C.split(J.start+J.pos).eS}F.D=!1}; H6=function(F){if(!F.W){if(g.nF(F.info.C.info)){var J=F.AF();var b=OS(J,0,1836019574);if(b){b=b.offset+b.size;var I=new Uint8Array(b);I.set(new Uint8Array(J.buffer,J.byteOffset,b));J=I}else J=null}else J=Bkm(new tt(F.AF()));J&&(F.info.C.C=J,F.W=!0)}}; g.Lo=function(){this.count=0;this.C=1;this.U=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}; lOv=function(F,J){return J+1<F.count||F.U?F.offsets[J+1]-F.offsets[J]:-1}; F1=function(F){F.offsets.length<F.count+1&&F.resize(F.offsets.length*2)}; Jg=function(F,J,b,I){fo.call(this,F,J,b,I);var u=this;this.D=null;this.Po={v2:function(w,M,q,v){return u.v2(w,M,q,v)}}; this.index=new g.Lo}; fOC=function(F,J,b,I,u,w){this.displayName=F;this.vssId=J;this.languageCode=b;this.kind=I===void 0?"":I;this.xtags=u===void 0?"":u;this.id=w===void 0?"":w}; dta=function(F){if(F=F.colorInfo)if(F=F.transferCharacteristics)return W4z[F];return null}; g.bI=function(F,J,b){this.name=F;this.id=J;this.isDefault=b}; EnC=function(F){return IZ(function(J,b){return g.Px(J,b,4,1E3)},F,{format:"RAW", method:"GET",withCredentials:!0})}; g.jl3=function(F){var J;F.responseType&&F.responseType!=="text"?F.responseType==="arraybuffer"&&(J=WA(new Uint8Array(F.response))):J=F.responseText;return!J||J.length>2048?"":J.indexOf("https://")===0?J:""}; IZ=function(F,J,b){J.match(Gnm);return F(J,b).then(function(I){var u=g.jl3(I.xhr);return u?IZ(F,u,b):I.xhr})}; Ag=function(F,J,b){F=F===void 0?"":F;J=J===void 0?null:J;b=b===void 0?!1:b;g.uA.call(this);var I=this;this.sourceUrl=F;this.isLivePlayback=b;this.Jz=this.duration=0;this.isPremiere=this.SF=this.Z=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.VN=this.De=0;this.isOtf=this.MW=!1;this.zj=(0,g.jR)();this.Tj=Infinity;this.C={};this.T=new Map;this.state=this.Jw=0;this.timeline=null;this.isManifestless=!1;this.Gj=[];this.W=null;this.kQ=0;this.D="";this.WN=NaN;this.qf=this.NW=this.timestampOffset=this.V= 0;this.G8=this.rf=NaN;this.MI=0;this.KW=this.N=!1;this.fW=[];this.dD={};this.eE=NaN;this.Po={X0W:function(q){uI(I,q)}}; var u;this.oI=(u=J)==null?void 0:u.pW("html5_use_network_error_code_enums");VsG=!!J&&J.pW("html5_modern_vp9_mime_type");var w;wd=!((w=J)==null||!w.pW("html5_enable_flush_during_seek"))&&g.O6();var M;MQ=!((M=J)==null||!M.pW("html5_enable_reset_audio_decoder"))&&g.O6()}; P1k=function(F){return g.le(F.C,function(J){return!!J.info.video&&J.info.video.C>=2160})}; ZdY=function(F){return g.le(F.C,function(J){return!!J.info.video&&J.info.video.isHdr()})}; vd=function(F){return g.le(F.C,function(J){return!!J.info.Ke})}; g.Buz=function(F){return g.le(F.C,function(J){return Zf(J.info)})}; Tua=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR":!1})}; rGC=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Soo=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.projectionType==="MESH":!1})}; slC=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.stereoLayout===1:!1})}; YoG=function(F){return OIz(F.C,function(J){return J.info.video?J.RO():!0})}; Mv=function(F){return g.le(F.C,function(J){return Nv(J.gw.C)})}; uI=function(F,J){F.C[J.info.id]=J;F.T.set(lU(g.H4(J.info,F.MW)),J)}; $tv=function(F,J){return lU({itag:J.itag,lmt:F.MW?0:J.lmt||0,xtags:J.xtags})}; aZ=function(F,J,b){b=b===void 0?0:b;var I=F.mimeType||"",u=F.itag;var w=F.xtags;u=u?u.toString():"";w&&(u+=";"+w);w=u;if(F8(I)){var M=F.width||640;u=F.height||360;var q=F.fps,v=F.qualityLabel,a=F.colorInfo,e=F.projectionType,K;F.stereoLayout&&(K=C1a[F.stereoLayout]);var p=dta(F)||void 0;if(a==null?0:a.primaries)var m=Xez[a.primaries]||void 0;M=new Xk(M,u,q,e,K,void 0,v,p,m);I=qQ(I,M,Df[F.itag||""]);wd&&(I+="; enableflushduringseek=true");MQ&&(I+="; enableresetaudiodecoder=true")}var y;if(LF(I)){var f= F.audioSampleRate;K=F.audioTrack;f=new Yz(f?+f:void 0,F.audioChannels,F.spatialAudioType,F.isDrc,F.loudnessDb,F.trackAbsoluteLoudnessLkfs,F.audioQuality||"AUDIO_QUALITY_UNKNOWN");K&&(m=K.displayName,u=K.id,K=K.audioIsDefault,m&&(y=new g.bI(m,u||"",!!K)))}var d;F.captionTrack&&(v=F.captionTrack,K=v.displayName,m=v.vssId,u=v.languageCode,q=v.kind,v=v.id,K&&m&&u&&(d=new fOC(K,m,u,q,F.xtags,v)));K=Number(F.bitrate)/8;m=Number(F.contentLength);u=Number(F.lastModified);v=F.drmFamilies;q=F.type;b=b&&m?m/ b:0;F=Number(F.approxDurationMs);if(J&&v){var G={};v=g.N(v);for(a=v.next();!a.done;a=v.next())(a=vG[a.value])&&(G[a]=J[a])}return new kz(w,I,{audio:f,video:M,j3:y,Ke:G,LW:K,kA:b,contentLength:m,lastModified:u,captionTrack:d,streamType:q,approxDurationMs:F})}; e$=function(F,J,b){b=b===void 0?0:b;var I=F.type;var u=F.itag;var w=F.xtags;w&&(u=F.itag+";"+w);if(F8(I)){var M=(F.size||"640x360").split("x");M=new Xk(+M[0],+M[1],+F.fps,F.projection_type,+F.stereo_layout,void 0,F.quality_label,F.eotf,F.primaries);I=qQ(I,M,Df[F.itag]);wd&&(I+="; enableflushduringseek=true");MQ&&(I+="; enableresetaudiodecoder=true")}var q;if(LF(I)){var v=new Yz(+F.audio_sample_rate||void 0,+F.audio_channels||0,F.spatial_audio_type,!!F.drc);F.name&&(q=new g.bI(F.name,F.audio_track_id, F.isDefault==="1"))}var a;F.caption_display_name&&F.caption_vss_id&&F.caption_language_code&&(a=new fOC(F.caption_display_name,F.caption_vss_id,F.caption_language_code,F.caption_kind,F.xtags,F.caption_id));w=Number(F.bitrate)/8;var e=Number(F.clen),K=Number(F.lmt);b=b&&e?e/b:0;if(J&&F.drm_families){var p={};for(var m=g.N(F.drm_families.split(",")),y=m.next();!y.done;y=m.next())y=y.value,p[y]=J[y]}return new kz(u,I,{audio:v,video:M,j3:q,Ke:p,LW:w,kA:b,contentLength:e,lastModified:K,captionTrack:a, streamType:F.stream_type,approxDurationMs:Number(F.approx_duration_ms)})}; Qlm=function(F){return Bc(F,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Rgz=function(F){return Bc(F,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; DtG=function(F,J){return F.timeline?uV(F.timeline.Z,J):F.Gj.length?uV(F.Gj,J):[]}; KW=function(F,J,b){J=J===void 0?"":J;b=b===void 0?"":b;F=new g.yJ(F,!0);F.set("alr","yes");b&&(b=NX7(decodeURIComponent(b)),F.set(J,encodeURIComponent(b)));return F}; hgo=function(F,J){var b=Q4(J,"id");b=b.replace(":",";");var I=Q4(J,"mimeType"),u=Q4(J,"codecs");I=u?I+'; codecs="'+u+'"':I;u=Number(Q4(J,"bandwidth"))/8;var w=Number(RA(J,"BaseURL").getAttribute(F.D+":contentLength")),M=F.duration&&w?w/F.duration:0;if(F8(I)){var q=Number(Q4(J,"width"));var v=Number(Q4(J,"height")),a=Number(Q4(J,"frameRate")),e=knY(Q4(J,F.D+":projectionType"));a:switch(Q4(J,F.D+":stereoLayout")){case "layout_left_right":var K=1;break a;case "layout_top_bottom":K=2;break a;default:K= 0}q=new Xk(q,v,a,e,K)}if(LF(I)){var p=Number(Q4(J,"audioSamplingRate"));var m=Number(Q4(J.getElementsByTagName("AudioChannelConfiguration")[0],"value"));v=OBv(Q4(J,F.D+":spatialAudioType"));p=new Yz(p,m,v);a:{m=Q4(J,"lang")||"und";if(v=RA(J,"Role"))if(e=Q4(v,"value")||"",g.Ea(onY,e)){v=m+"."+onY[e];a=e==="main";F=Q4(J,F.D+":langName")||m+" - "+e;m=new g.bI(F,v,a);break a}m=void 0}}if(J=RA(J,"ContentProtection"))if(J.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var y={};for(J= J.firstChild;J!=null;J=J.nextSibling)J instanceof Element&&/SystemURL/.test(J.nodeName)&&(F=J.getAttribute("type"),v=J.textContent,F&&v&&(y[F]=v.trim()))}else y=void 0;return new kz(b,I,{audio:p,video:q,j3:m,Ke:y,LW:u,kA:M,contentLength:w})}; knY=function(F){switch(F){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"}}; OBv=function(F){switch(F){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"}}; Utv=function(F,J){J=J===void 0?"":J;F.state=1;F.zj=(0,g.jR)();return EnC(J||F.sourceUrl).then(function(b){if(!F.iR()){F.Jw=b.status;b=b.responseText;var I=new DOMParser;b=UQ(I,Y0z(b),"text/xml").getElementsByTagName("MPD")[0];F.Tj=JGk(Q4(b,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(b.attributes){I=g.N(b.attributes);for(var u=I.next();!u.done;u=I.next())if(u=u.value,u.value==="http://youtube.com/yt/2012/10/10"){I=u.name.split(":")[1];break b}}I=""}F.D=I;F.isLive=F.Tj<Infinity&&F.isLivePlayback;F.Jz= Number(Q4(b,F.D+":earliestMediaSequence"))||0;if(I=Date.parse(bBk(Q4(b,F.D+":mpdResponseTime"))))F.kQ=((0,g.jR)()-I)/1E3;F.isLive&&b.getElementsByTagName("SegmentTimeline").length<=0||g.jw(b.getElementsByTagName("Period"),F.i7I,F);F.state=2;F.publish("loaded");cGv(F)}return F}).rX(function(b){if(b instanceof Gk){var I=b.xhr; F.Jw=I.status}F.state=3;F.publish("loaderror");return i5(I)})}; xtv=function(F,J,b){return Utv(new Ag(F,J,b),F)}; pW=function(F){return F.isLive&&(0,g.jR)()-F.zj>=F.Tj}; nna=function(F){F.W&&F.W.stop()}; cGv=function(F){var J=F.Tj;isFinite(J)&&(pW(F)?F.refresh():(J=Math.max(0,F.zj+J-(0,g.jR)()),F.W||(F.W=new g.ty(F.refresh,J,F),g.k(F,F.W)),F.W.start(J)))}; tsv=function(F){F=F.C;for(var J in F){var b=F[J].index;if(b.isLoaded())return b.oC()+1}return 0}; gd=function(F){return F.NW?F.NW-(F.V||F.timestampOffset):0}; mt=function(F){return F.qf?F.qf-(F.V||F.timestampOffset):0}; yy=function(F){if(!isNaN(F.WN))return F.WN;var J=F.C,b;for(b in J){var I=J[b].index;if(I.isLoaded()&&!Zf(J[b].info)){J=0;for(b=I.nj();b<=I.oC();b++)J+=I.getDuration(b);J/=I.iA();J=Math.round(J/.5)*.5;I.iA()>10&&(F.WN=J);return J}if(F.isLive&&(I=J[b],I.U2))return I.U2}return NaN}; ZBz=function(F,J){F=hW_(F.C,function(I){return I.index.isLoaded()}); if(!F)return NaN;F=F.index;var b=F.Ea(J);return F.getStartTime(b)===J?J:b<F.oC()?F.getStartTime(b+1):NaN}; HBm=function(F,J){if(!F.C["0"]){var b=new kz("0","fakesb",{video:new Xk(0,0,0,void 0,void 0,"auto")});F.C["0"]=J?new Xz(new g.yJ("http://www.youtube.com/videoplayback"),b,"fake"):new Jg(new g.yJ("http://www.youtube.com/videoplayback"),b,new W6(0,0),new W6(0,0))}}; iI=function(F){if(F.isManifestless)for(var J in F.C)F.C[J].index.segments=[]}; zF=function(F,J,b){for(var I in F.C){var u=Zf(F.C[I].info)||F.C[I].info.v1();if(b===u&&(u=F.C[I].index)!=null){var w=oA(u,J);w>=0&&u.segments.splice(w,1)}}}; L4a=function(F){for(var J in F.C)Zf(F.C[J].info)||vzk(F.C[J].index,Infinity)}; NQ=function(F,J,b){for(var I in F.C){var u=F.C[I].index,w=J,M=b;u.Hu&&(w&&(u.H0=Math.max(u.H0,w)),M&&(u.Jd=Math.max(u.Jd||0,M)))}b&&(F.eE=b/1E3)}; FSC=function(F){F.qf=0;F.NW=0;F.MI=0}; lI=function(F){return F.KW&&F.isManifestless?F.isLiveHeadPlayable:F.isLive}; qQ=function(F,J,b){fW===null&&(fW=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(VsG&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return fW||b!=="9"&&b!=="("?fW||b!=="9h"&&b!=="(h"||(F='video/webm; codecs="vp9.2"'):F='video/webm; codecs="vp9"',F;if(!fW&&!WG||F!=='video/webm; codecs="vp9"'&&F!=='video/webm; codecs="vp9.2"')return F; b="00";var I="08",u="01",w="01",M="01";F==='video/webm; codecs="vp9.2"'&&(b="02",I="10",J.primaries==="bt2020"&&(M=u="09"),J.U==="smpte2084"&&(w="16"),J.U==="arib-std-b67"&&(w="18"));return'video/webm; codecs="'+["vp09",b,"51",I,"01",u,w,M,"00"].join(".")+'"'}; ED=function(F,J,b){F=""+F+(J>49?"p60":J>32?"p48":"");J=sr()[F];if(J!=null&&J>0)return J;J=dd.get(F);if(J!=null&&J>0)return J;b=b==null?void 0:b.get(F);return b!=null&&b>0?b:8192}; JVm=function(F){this.PN=F;this.MI=this.DX=this.dD=this.D=this.Z=this.eE=this.Q2=this.Jz=this.Gj=!1;this.V=this.W=0;this.bR=!1;this.kQ=!0;this.nW=!1;this.hN=0;this.Bj=this.fW=!1;this.Se=!0;this.KW=this.zj=!1;this.C={};this.T1=this.disableAv1=this.Um=this.xo=this.cN=this.Om=this.U=this.Y=!1;this.YH=this.PN.S("html5_disable_aac_preference");this.If=Infinity;this.qf=0;this.NW=this.PN.hJ();this.xm=this.PN.experiments.pW("html5_enable_vp9_fairplay");this.GU=this.PN.S("html5_force_av1_for_testing");this.oI= g.eB(this.PN.experiments,"html5_av1_ordinal_cap");this.Uz=this.PN.S("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.M0=this.PN.S("html5_account_onesie_format_selection_during_format_filter");this.LW=g.eB(this.PN.experiments,"html5_max_byterate");this.N=this.PN.S("html5_sunset_aac_high_codec_family");this.WN=this.PN.S("html5_sunset_aac_high_codec_family");this.Kk=this.PN.S("html5_enable_iamf_audio");this.Ly=this.PN.experiments.pW("html5_allow_capability_merge");this.g9=this.PN.S("html5_prefer_h264_encrypted_appletv"); this.y6=this.PN.S("html5_enable_encrypted_av1")}; Hdk=function(F){if(F.Jz)return["f"];if(F.g9&&g.D$("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var J=["9h","9","h","8"];F.y6&&J.push("1e");J=J.concat(["(h","(","H","*"]);F.fW&&(J.unshift("1"),J.unshift("1h"));F.DX&&J.unshift("h");F.Tj&&(J=(bxo[F.Tj]||[F.Tj]).concat(J));return J}; csY=function(F){var J=["o","a","A"];F.qf===1&&(F.eE&&(J=["m","M"].concat(J)),F.Z&&(J=["mac3","MAC3"].concat(J)),F.D&&(J=["meac3","MEAC3"].concat(J)),F.Kk&&(J=["i","I"].concat(J)));F.Gj&&(J=["so","sa"].concat(J));!F.MI||F.dD||F.T||F.YH||J.unshift("a");F.Q2&&!F.N&&J.unshift("ah");F.T&&(J=(bxo[F.T]||[F.T]).concat(J));return J}; j$=function(F,J,b,I){J=J===void 0?{}:J;if(I===void 0?0:I)return J.disabled=1,0;if(g_(F.D,mp.AV1_CODECS)&&g_(F.D,mp.HEIGHT)&&g_(F.D,mp.BITRATE))return J.isCapabilityUsable=1,8192;try{var u=PLY();if(u)return J.localPref=u}catch(q){}I=1080;u=navigator.hardwareConcurrency;u<=2&&(I=480);J.coreCount=u;if(u=g.eB(F.experiments,"html5_default_av1_threshold"))I=J["default"]=u;!F.S("html5_disable_av1_arm_check")&&Nio()&&(J.isArm=1,I=240);if(F=F.D.Gj)J.mcap=F,I=Math.max(I,F);if(b){var w,M;if(F=(w=b.videoInfos.find(function(q){return c4(q)}))== null?void 0:(M=w.U)==null?void 0:M.powerEfficient)I=8192,J.isEfficient=1; b=b.videoInfos[0].video;w=Math.min(ED("1",b.fps),ED("1",30));J.perfCap=w;I=Math.min(I,w);b.isHdr()&&!F&&(J.hdr=1,I*=.75)}else b=ED("1",30),J.perfCap30=b,I=Math.min(I,b),b=ED("1",60),J.perfCap60=b,I=Math.min(I,b);return J.av1Threshold=I}; GF=function(F,J,b,I){this.flavor=F;this.keySystem=J;this.U=b;this.experiments=I;this.C={};this.oI=this.keySystemAccess=null;this.Ao=this.xA=-1;this.fD=null;this.T=!!I&&I.pW("edge_nonprefixed_eme");I&&I.pW("html5_enable_vp9_fairplay")}; PG=function(F){return F.T?!1:!F.keySystemAccess&&!!Vy()&&F.keySystem==="com.microsoft.playready"}; BG=function(F){return F.keySystem==="com.microsoft.playready"}; TF=function(F){return!F.keySystemAccess&&!!Vy()&&F.keySystem==="com.apple.fps.1_0"}; rd=function(F){return F.keySystem==="com.youtube.fairplay"}; S$=function(F){return F.keySystem==="com.youtube.fairplay.sbdl"}; g.sD=function(F){return F.flavor==="fairplay"}; Vy=function(){var F=window,J=F.MSMediaKeys;cx()&&!J&&(J=F.WebKitMediaKeys);return J&&J.isTypeSupported?J:null}; CW=function(F){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.B4&&!g.O6())return dD("45");if(g.c$||g.K6)return F.pW("edge_nonprefixed_eme");if(g.Yj)return dD("47");if(g.ia){if(F.pW("html5_enable_safari_fairplay"))return!1;if(F=g.eB(F,"html5_safari_desktop_eme_min_version"))return dD(F)}return!0}; I0z=function(F,J,b,I){var u=oR(),w=(b=u||b&&cx())?["com.youtube.fairplay"]:["com.widevine.alpha"];J&&w.unshift("com.youtube.widevine.l3");u&&I&&w.unshift("com.youtube.fairplay.sbdl");return b?w:F?[].concat(g.W(w),g.W(X1.playready)):[].concat(g.W(X1.playready),g.W(w))}; RZ=function(){this.U=this.zQ=0;this.C=Array.from({length:Qy.length}).fill(0)}; uCo=function(){}; w5o=function(){this.startTimeMs=(0,g.jR)();this.C=!1}; MYv=function(){this.C=new uCo}; AV_=function(F,J,b,I){I=I===void 0?1:I;b>=0&&(J in F.C||(F.C[J]=new RZ),F.C[J].Ic(b,I))}; qRY=function(F,J,b,I,u){var w=(0,g.jR)(),M=u?u(J):void 0,q;u=(q=M==null?void 0:M.zQ)!=null?q:1;if(u!==0){var v;q=(v=M==null?void 0:M.profile)!=null?v:b;AV_(F,q,w-I,u)}return J}; D1=function(F,J,b,I,u){if(J&&typeof J==="object"){var w=function(M){return qRY(F,M,b,I,u)}; if(bf(J))return J.then(w);if(vOC(J))return A8(J,w)}return qRY(F,J,b,I,u)}; a0m=function(){}; kj=function(F,J,b,I,u){I=I===void 0?!1:I;g.R.call(this);this.PN=J;this.useCobaltWidevine=I;this.UQ=u;this.U=[];this.T={};this.C={};this.callback=null;this.D=!1;this.Z=[];this.initialize(F,!b)}; KSa=function(F,J){F.callback=J;F.Z=[];CW(F.PN.experiments)?OD(F):eRa(F)}; OD=function(F){if(!F.iR())if(F.U.length===0)F.callback(F.Z);else{var J=F.U[0],b=F.T[J],I=p5m(F,b);if(oZ&&oZ.keySystem===J&&oZ.g7R===JSON.stringify(I))F.UQ("remksa",{re:!0}),gOG(F,b,oZ.keySystemAccess);else{var u,w;F.UQ("remksa",{re:!1,ok:(w=(u=oZ)==null?void 0:u.keySystem)!=null?w:""});oZ=void 0;(hg.isActive()?hg.Zq("emereq",function(){return navigator.requestMediaKeySystemAccess(J,I)}):navigator.requestMediaKeySystemAccess(J,I)).then(pa(function(M){gOG(F,b,M,I)}),pa(function(){F.D=!F.D&&F.T[F.U[0]].flavor=== "widevine"; F.D||F.U.shift();OD(F)}))}}}; gOG=function(F,J,b,I){if(!F.iR()){I&&(oZ={keySystem:J.keySystem,keySystemAccess:b,g7R:JSON.stringify(I)});J.keySystemAccess=b;if(BG(J)){b=VZ();I=g.N(Object.keys(F.C[J.flavor]));for(var u=I.next();!u.done;u=I.next())u=u.value,J.C[u]=!!b.canPlayType(u)}else{b=J.keySystemAccess.getConfiguration();if(b.audioCapabilities)for(I=g.N(b.audioCapabilities),u=I.next();!u.done;u=I.next())mO3(F,J,u.value);if(b.videoCapabilities)for(b=g.N(b.videoCapabilities),I=b.next();!I.done;I=b.next())mO3(F,J,I.value)}F.Z.push(J); F.useCobaltWidevine||F.S("html5_enable_vp9_fairplay")&&S$(J)?(F.U.shift(),OD(F)):F.callback(F.Z)}}; mO3=function(F,J,b){F.S("log_robustness_for_drm")?J.C[b.contentType]=b.robustness||!0:J.C[b.contentType]=!0}; p5m=function(F,J){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(F.S("html5_enable_vp9_fairplay")&&rd(J))return b.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),b.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[b];BG(J)&&(b.initDataTypes=["keyids","cenc"]);for(var I=g.N(Object.keys(F.C[J.flavor])),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.indexOf("audio/")===0,M=w?b.audioCapabilities:b.videoCapabilities;J.flavor!== "widevine"||F.D?M.push({contentType:u}):w?M.push({contentType:u,robustness:"SW_SECURE_CRYPTO"}):(g.B4&&g.D$("windows nt")&&!F.S("html5_drm_enable_moho")||M.push({contentType:u,robustness:"HW_SECURE_ALL"}),w=u,F.S("html5_enable_cobalt_experimental_vp9_decoder")&&u.includes("vp09")&&(w=u+"; experimental=allowed"),M.push({contentType:w,robustness:"SW_SECURE_DECODE"}),cG(F.PN)==="MWEB"&&(Hx()||k6())&&(F.UQ("swcrypto",{}),M.push({contentType:u,robustness:"SW_SECURE_CRYPTO"})))}return[b]}; eRa=function(F){if(Vy()&&(g.ia||x6&&F.S("html5_drm_support_ios_mweb")))F.Z.push(new GF("fairplay","com.apple.fps.1_0","",F.PN.experiments));else{var J=yV3(),b=g.xL(F.U,function(I){var u=F.T[I],w=!1,M=!1,q;for(q in F.C[u.flavor])J(q,I)&&(u.C[q]=!0,w=w||q.indexOf("audio/")===0,M=M||q.indexOf("video/")===0);return w&&M}); b&&F.Z.push(F.T[b]);F.U=[]}F.callback(F.Z)}; yV3=function(){var F=Vy();if(F){var J=F.isTypeSupported;return function(I,u){return J(u,I)}}var b=VZ(); return b&&(b.addKey||b.webkitAddKey)?function(I,u){return!!b.canPlayType(I,u)}:function(){return!1}}; ixY=function(F){this.experiments=F;this.C=2048;this.Z=0;this.eE=(this.N=this.S("html5_streaming_resilience"))?.5:.25;var J=J===void 0?0:J;this.T=g.eB(this.experiments,"html5_media_time_weight_prop")||J;this.D=this.S("html5_app_limited_aware_bwe");this.kQ=g.eB(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.Gj=(this.W=this.experiments.pW("html5_consider_end_stall"))&&UD;this.U=this.experiments.pW("html5_measure_max_progress_handling");this.Tj=this.S("html5_treat_requests_pre_elbow_as_metadata"); this.V=this.S("html5_media_time_weight")||!!this.T;this.Y=g.eB(this.experiments,"html5_streaming_fallback_byterate");this.S("html5_sabr_live_audio_early_return_fix")&&UD&&(this.C=65536)}; zRC=function(F,J){this.C=void 0;this.experimentIds=F?F.split(","):[];this.flags=HT(J||"","&");F={};J=g.N(this.experimentIds);for(var b=J.next();!b.done;b=J.next())F[b.value]=!0;this.experiments=F}; g.eB=function(F,J){F=F.flags[J];JSON.stringify(F);return Number(F)||0}; xj=function(F,J){return(F=F.flags[J])?F.toString():""}; NMz=function(F){if(F=F.flags.html5_web_po_experiment_ids)if(F=F.replace(/\[ *(.*?) *\]/,"$1"))return F.split(",").map(Number);return[]}; l07=function(F){if(F.C)return F.C;if(F.experimentIds.length<=1)return F.C=F.experimentIds,F.C;var J=[].concat(g.W(F.experimentIds)).map(function(I){return Number(I)}); J.sort();for(var b=J.length-1;b>0;--b)J[b]-=J[b-1];F.C=J.map(function(I){return I.toString()}); F.C.unshift("v1");return F.C}; WSG=function(F){return f0v.then(F)}; nW=function(F,J,b){this.experiments=F;this.fW=J;this.qf=b===void 0?!1:b;this.eE=!!g.kC("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.U=new Map;this.V=!0;this.Z=this.D=!1;this.C=new Map;this.Gj=0;this.kQ=this.experiments.pW("html5_disable_vp9_encrypted");this.T=this.experiments.pW("html5_enable_encrypted_av1");F=g.kC("cast.receiver.platform.getValue");this.WN=g.eB(this.experiments,"html5_kaios_max_resolution");this.W=!this.eE&&F&&F("max-video-resolution-vpx")||null;dOz(this)}; J1a=function(F,J,b){b=b===void 0?1:b;var I=J.itag;if(I==="0")return!0;var u=J.mimeType;if(J.Xb()&&oR()&&F.experiments.pW("html5_appletv_disable_vp9"))return"dwebm";if(J.YQ==="1e"&&!F.T)return"dav1enc";if(c4(J)&&F.Y)return"dav1";if(J.video&&(J.video.isHdr()||J.video.primaries==="bt2020")&&!(g_(F,mp.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(I=== "338"&&!(g.B4?dD(53):g.Yj&&dD(64)))return"dopus";var w;if(F.WN&&tg&&((w=J.video)==null?void 0:w.C)>F.WN)return"kaios";w=b;w=w===void 0?1:w;b={};J.video&&(J.video.width&&(b[mp.WIDTH.name]=J.video.width),J.video.height&&(b[mp.HEIGHT.name]=J.video.height),J.video.fps&&(b[mp.FRAMERATE.name]=J.video.fps*w),J.video.U&&(b[mp.EOTF.name]=J.video.U),J.LW&&(b[mp.BITRATE.name]=J.LW*8*w),J.YQ==="("&&(b[mp.CRYPTOBLOCKFORMAT.name]="subsample"),J.video.projectionType==="EQUIRECTANGULAR"||J.video.projectionType=== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||J.video.projectionType==="MESH")&&(b[mp.DECODETOTEXTURE.name]="true");J.audio&&J.audio.numChannels&&(b[mp.CHANNELS.name]=J.audio.numChannels);F.D&&O5(J)&&(b[mp.EXPERIMENTAL.name]="allowed");w=g.N(Object.keys(mp));for(var M=w.next();!M.done;M=w.next()){M=mp[M.value];var q;if(q=b[M.name])if(q=!(M===mp.EOTF&&J.mimeType.indexOf("vp09.02")>0)){q=M;var v=J;q=!(F.experiments.pW("html5_ignore_h264_framerate_cap")&&q===mp.FRAMERATE&&eE4(v))}if(q)if(g_(F,M))if(F.W){if(F.W[M.name]< b[M.name])return M.name}else u=u+"; "+M.name+"="+b[M.name];else if(oT(J)&&M===mp.EOTF)return"dvp92"}F.eE&&J.video&&J.video.C>1080&&J.Ke&&(u+="; hdcp=2.2");return I==="227"?"hqcenc":I!=="585"&&I!=="588"&&I!=="583"&&I!=="586"&&I!=="584"&&I!=="587"&&I!=="591"&&I!=="592"||F.experiments.pW("html5_enable_new_hvc_enc")?F.isTypeSupported(u)?!0:"tpus":"newhvc"}; Z1=function(){var F=k6()&&!dD(29),J=g.D$("google tv")&&g.D$("chrome")&&!dD(30);return F||J?!1:i0_()}; EO7=function(F,J,b){var I=480;J=g.N(J);for(var u=J.next();!u.done;u=J.next()){u=u.value;var w=u.video.C;w<=1080&&w>I&&J1a(F,u,b)===!0&&(I=w)}return I}; g.HG=function(F,J){J=J===void 0?!1:J;return Z1()&&F.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!J&&F.canPlayType(VZ(),"application/x-mpegURL")?!0:!1}; GAo=function(F){jYa(function(){for(var J=g.N(Object.keys(mp)),b=J.next();!b.done;b=J.next())g_(F,mp[b.value])})}; g_=function(F,J){J.name in F.N||(F.N[J.name]=VYk(F,J));return F.N[J.name]}; VYk=function(F,J){if(F.W)return!!F.W[J.name];if(J===mp.BITRATE&&F.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!F.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(J===mp.AV1_CODECS)return F.isTypeSupported("video/mp4; codecs="+J.valid)&&!F.isTypeSupported("video/mp4; codecs="+J.rK);if(J.video){var b='video/webm; codecs="vp9"';F.isTypeSupported(b)||(b='video/mp4; codecs="avc1.4d401e"')}else b='audio/webm; codecs="opus"', F.isTypeSupported(b)||(b='audio/mp4; codecs="mp4a.40.2"');return F.isTypeSupported(b+"; "+J.name+"="+J.valid)&&!F.isTypeSupported(b+"; "+J.name+"="+J.rK)}; Ppa=function(F){F.D||(F.D=!0,LW(F))}; LW=function(F){F.Z=!0;F.experiments.pW("html5_ssap_update_capabilities_on_change")&&BMa(F)}; TMG=function(F,J){var b=0;F.U.has(J)&&(b=F.U.get(J).Lp);F.U.set(J,{Lp:b+1,Jf:Math.pow(2,b+1)});LW(F)}; at=function(F){for(var J=[],b=g.N(F.C.keys()),I=b.next();!I.done;I=b.next()){I=I.value;var u=F.C.get(I);J.push(I+"_"+u.maxWidth+"_"+u.maxHeight)}return J.join(".")}; BMa=function(F){F.Tj=[];for(var J=g.N(F.C.values()),b=J.next();!b.done;b=J.next()){b=b.value;var I=b.YQ;F.experiments.pW("html5_ssap_force_mp4_aac")&&I!=="a"&&I!=="h"||F.U.has(I)||F.Y&&(I==="1"||I==="1h"||F.T&&I==="1e")||F.Tj.push(b)}}; UC3=function(F,J){for(var b=new Map,I=g.N(F.C.keys()),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.split("_")[0];J.has(w)||b.set(u,F.C.get(u))}F.C=b}; n5z=function(F,J,b){var I,u=((I=b.video)==null?void 0:I.fps)||0;I=J+"_"+u;var w=!!b.audio,M={itag:b.itag,YQ:J,Cd:w};if(w)M.numChannels=b.audio.numChannels;else{var q=b.video;M.maxWidth=q==null?void 0:q.width;M.maxHeight=q==null?void 0:q.height;M.maxFramerate=u;g_(F,mp.BITRATE)&&(M.maxBitrateBps=b.LW*8);M.sN=q==null?void 0:q.isHdr()}q=F.C.get(I);q?w||(b=Math.max(q.maxWidth||0,q.maxHeight||0)>Math.max(M.maxWidth||0,M.maxHeight||0)?q:M,J={itag:b.itag,YQ:J,Cd:w,maxWidth:Math.max(q.maxWidth||0,M.maxWidth|| 0),maxHeight:Math.max(q.maxHeight||0,M.maxHeight||0),maxFramerate:u,sN:b.sN},g_(F,mp.BITRATE)&&(J.maxBitrateBps=b.maxBitrateBps),F.C.set(I,J)):F.C.set(I,M)}; trG=function(F,J,b){var I,u=((I=b.video)==null?void 0:I.fps)||0;I=J+"_"+u;var w=!!b.audio,M=F.C.get(I);a:{var q=F.C.get(I),v=!!b.audio;if(q){if(v){var a=!1;break a}var e;if(!v&&((a=b.video)==null?0:a.height)&&q.maxHeight&&q.maxHeight>=((e=b.video)==null?void 0:e.height)){a=!1;break a}}a=!0}a&&(a=b.itag,J=M?M:{itag:a,YQ:J,Cd:w},w?J.numChannels=b.audio.numChannels:(w=b.video,J.maxWidth=w==null?void 0:w.width,J.maxHeight=w==null?void 0:w.height,J.maxFramerate=u,g_(F,mp.BITRATE)&&(J.maxBitrateBps=b.LW* 8),J.sN=w==null?void 0:w.isHdr()),F.C.set(I,J))}; dOz=function(F){var J;(J=navigator.mediaCapabilities)!=null&&J.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(b){b.smooth&&b.powerEfficient&&(F.Gj=2160)})}; F_=function(){g.uA.call(this);this.items={}}; JP=function(){g.lx.apply(this,arguments)}; bb=function(){g.fg.apply(this,arguments)}; rVm=function(F,J,b){this.encryptedClientKey=J;this.D=b;this.C=new Uint8Array(F.buffer,0,16);this.T=new Uint8Array(F.buffer,16)}; SR3=function(F){F.U||(F.U=new JP(F.C));return F.U}; Iw=function(F){try{return lV(F)}catch(J){return null}}; sYz=function(F,J){if(!J&&F)try{J=JSON.parse(F)}catch(u){}if(J){F=J.clientKey?Iw(J.clientKey):null;var b=J.encryptedClientKey?Iw(J.encryptedClientKey):null,I=J.keyExpiresInSeconds?Number(J.keyExpiresInSeconds)*1E3+(0,g.jR)():null;F&&b&&I&&(this.C=new rVm(F,b,I));J.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Iw(J.onesieUstreamerConfig)||void 0);this.baseUrl=J.baseUrl}}; wN=function(){this.data=new Uint8Array(2048);this.pos=0;ub||(ub=VK("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Mn=function(F,J){F.add(J==null||isNaN(J)?0:J+1)}; AP=function(F){this.C=this.U=0;this.alpha=Math.exp(Math.log(.5)/F)}; qn=function(F){this.U=F===void 0?15:F;this.values=new Float64Array(176);this.C=new Float64Array(11);this.T=new Float64Array(16)}; vu=function(F,J,b,I){b=b===void 0?.5:b;I=I===void 0?0:I;this.resolution=J;this.U=0;this.T=!1;this.Y8=!0;this.C=Math.round(F*this.resolution);this.values=Array(this.C);for(F=0;F<this.C;F++)this.values[F]=Infinity;this.D=YRm(this);this.Z=b;this.W=I}; YRm=function(F){for(var J=Array(F.C),b=0;b<F.C;b++)J[b]=b;return J}; aw=function(F,J,b){g.R.call(this);this.policy=F;this.U=J;this.t_=b;this.Gj=this.zj=0;this.eE=-1;this.kQ=this.D=0;this.Tj=!1;this.interruptions=[];this.Z=[{stamp:0,net:0,max:0}];this.qf=this.W=(0,g.jR)();this.Y=new vu(4,1,.6,.4);this.WN=new vu(4,1,.6,.4);this.V=new vu(20,1,.5,.4);F.eE?this.T=new qn(F.C):F.U?this.T=new AP(F.C):this.T=new vu(F.C,20,.5,.4);this.fW=new vu(5,1,.25);this.N=new vu(30,1,.5);F=g.S9("yt-player-bandwidth")||{};J=this.policy.T;if(F.byterate>0)J=F.byterate,this.Tj=!0;else{var I; b=(((I=navigator.connection)==null?void 0:I.downlink)||0)*64*1024;b>0&&(J=b,this.Tj=!0)}this.T.Zj(this.policy.W,J);F.delay>0&&this.Y.Zj(1,Math.min(F.delay,2));F.stall>0&&this.V.Zj(1,F.stall);F.init>0&&(this.qf=Math.min(F.init,this.qf));F.interruptions&&(this.Z=this.Z.concat(F.interruptions),this.Z.length>16&&this.Z.pop());this.eE=(0,g.jR)();this.policy.V>0&&(this.dD=new g.ty(this.KW,this.policy.V,this),g.k(this,this.dD),this.dD.start())}; e8=function(F,J,b,I){F.T.Zj(I===void 0?J:I,b/J);F.W=(0,g.jR)()}; $Oa=function(F){F.D||(F.D=(0,g.jR)());F.policy.N&&(F.W=(0,g.jR)())}; Cpv=function(F,J){if(F.D){var b=J-F.D;if(b<6E4){if(b>1E3){var I=F.interruptions;I.push(Math.ceil(b));I.sort(function(u,w){return w-u}); I.length>16&&I.pop()}F.kQ+=b}}F.D=J}; KH=function(F,J,b,I,u,w){w=w===void 0?!1:w;F.fW.Zj(J,b/J);F.W=(0,g.jR)();u||F.N.Zj(1,J-I);w||(F.D=0);F.eE>-1&&(0,g.jR)()-F.eE>3E4&&X57(F)}; pH=function(F,J,b){J=Math.max(J,F.U.C);F.V.Zj(1,b/J)}; gN=function(F){F=F.Y.X3()+F.WN.X3()||0;F=isNaN(F)?.5:F;return F=Math.min(F,5)}; m$=function(F,J,b){isNaN(b)||(F.Gj+=b);isNaN(J)||(F.zj+=J)}; yi=function(F){F=F.T.X3();return F>0?F:1}; ib=function(F,J,b){J=J===void 0?!1:J;b=b===void 0?1048576:b;var I=yi(F);I=1/((F.V.X3()||0)*F.policy.Tj+1/I);var u=F.fW.X3();u=u>0?u:1;var w=Math.max(I,u);F.policy.D>0&&u<I&&(w=Math.min(F.policy.D,1),w=(1-w)*I+w*u);if(!J)return w;J=1E-9+gN(F);b=w*Math.min(1,b/(w*J));F.policy.Z||(F=((F.N.percentile(.98)||0)-1)/2,F=Math.max(0,Math.min(1,F)),b*=1-.5*F);return b}; QYv=function(F){var J={delay:gN(F),stall:F.V.X3()||0,byterate:yi(F),init:F.qf},b=F.Z[0];b.stamp=Math.round(F.W/36E5)*36E5;b.net=Math.ceil(F.kQ);b.max=F.interruptions[0]||0;J.interruptions=F.Z;return J}; X57=function(F){g.rm("yt-player-bandwidth",QYv(F),2592E3);F.eE=(0,g.jR)();F.Tj=!0}; zB=function(F){return(0,g.jR)()-F.W>=4E3}; RRY=function(F){this.experiments=F;this.C=17;this.T=13E4;this.W=.5;this.U=!1;this.eE=this.S("html5_use_histogram_for_bandwidth");this.Z=!1;this.D=g.eB(this.experiments,"html5_auxiliary_estimate_weight");this.Tj=g.eB(this.experiments,"html5_stall_factor")||1;this.V=g.eB(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.pW("html5_trigger_loader_when_idle_network");this.N=this.experiments.pW("html5_sabr_fetch_on_idle_network_preloaded_players")}; kAY=function(F,J){F=F===void 0?{}:F;J=J===void 0?{}:J;g.R.call(this);var b=this;this.values=F;this.Tz=J;this.U={};this.T=this.C=0;this.Z=new g.ty(function(){DO4(b)},1E4); g.k(this,this.Z)}; Nn=function(F,J){Ox_(F,J);return F.values[J]&&F.Tz[J]?F.values[J]/Math.pow(2,F.C/F.Tz[J]):0}; Ox_=function(F,J){F.values[J]||(J=EX7(),F.values=J.values||{},F.Tz=J.halfLives||{},F.U=J.values?Object.assign({},J.values):{})}; DO4=function(F){var J=EX7();if(J.values){J=J.values;for(var b={},I=g.N(Object.keys(F.values)),u=I.next();!u.done;u=I.next())u=u.value,J[u]&&F.U[u]&&(F.values[u]+=J[u]-F.U[u]),b[u]=Nn(F,u);F.U=b}J=F.Tz;b={};b.values=F.U;b.halfLives=J;g.rm("yt-player-memory",b,2592E3)}; X_=function(F,J,b,I,u){g.R.call(this);this.webPlayerContextConfig=J;this.A4=I;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.pF=this.xm=this.Jz=this.MJ=this.userDisplayName=this.userDisplayImage=this.ir="";this.C={};this.NW={};this.controlsType="0";this.M0=NaN;this.cN=!1;this.K7=(0,g.jR)();this.Kk=0;this.Ok=this.Ys=!1;this.Ar=!0;this.preferGapless=this.G8=this.zU=this.T=this.Px=this.Vk=!1;this.fL=[];this.xH=!1;F=F?g.To(F):{};J&&J.csiPageType&&(this.csiPageType=J.csiPageType);J&&J.csiServiceName&& (this.csiServiceName=J.csiServiceName);J&&J.preferGapless&&(this.preferGapless=J.preferGapless);this.experiments=new zRC(J?J.serializedExperimentIds:F.fexp,J?J.serializedExperimentFlags:F.fflags);this.forcedExperiments=J?J.serializedForcedExperimentIds:u8("",F.forced_experiments)||void 0;this.cspNonce=(J==null?0:J.cspNonce)?J.cspNonce:u8("",F.csp_nonce);this.S("web_player_deprecated_uvr_killswitch");try{var w=document.location.toString()}catch(n){w=""}this.Uz=w;this.ancestorOrigins=(I=window.location.ancestorOrigins)? Array.from(I):[];this.Z=JC(!1,J?J.isEmbed:F.is_embed);if(J&&J.device){if(I=J.device,I.androidOsExperience&&(this.C.caoe=""+I.androidOsExperience),I.androidPlayServicesVersion&&(this.C.capsv=""+I.androidPlayServicesVersion),I.brand&&(this.C.cbrand=I.brand),I.browser&&(this.C.cbr=I.browser),I.browserVersion&&(this.C.cbrver=I.browserVersion),I.cobaltReleaseVehicle&&(this.C.ccrv=""+I.cobaltReleaseVehicle),this.C.c=I.interfaceName||"WEB",this.C.cver=I.interfaceVersion||"html5",I.interfaceTheme&&(this.C.ctheme= I.interfaceTheme),this.C.cplayer=I.interfacePlayerType||"UNIPLAYER",I.model&&(this.C.cmodel=I.model),I.network&&(this.C.cnetwork=I.network),I.os&&(this.C.cos=I.os),I.osVersion&&(this.C.cosver=I.osVersion),I.platform&&(this.C.cplatform=I.platform),w=xj(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),w==="all"||w==="once")I.chipset&&(this.NW.cchip=I.chipset),I.cobaltAppVersion&&(this.NW.ccappver=I.cobaltAppVersion),I.firmwareVersion&&(this.NW.cfrmver=I.firmwareVersion),I.deviceYear&&(this.NW.crqyear= I.deviceYear)}else this.C.c=F.c||"web",this.C.cver=F.cver||"html5",this.C.cplayer="UNIPLAYER";this.loaderUrl=J?this.Z||oOk(this)&&J.loaderUrl?J.loaderUrl||"":this.Uz:this.Z||oOk(this)&&F.loaderUrl?u8("",F.loaderUrl):this.Uz;this.Z&&g.RG("yt.embedded_player.embed_url",this.loaderUrl);this.V=tj(this.loaderUrl,hRz);I=this.loaderUrl;var M=M===void 0?!1:M;this.Yf=nT(tj(I,cVY),I,M,"Trusted Ad Domain URL");this.MI=JC(!1,F.privembed);this.protocol=this.Uz.indexOf("http:")===0?"http":"https";this.ME=ZY((J? J.customBaseYoutubeUrl:F.BASE_YT_URL)||"")||ZY(this.Uz)||this.protocol+"://www.youtube.com/";M=J?J.eventLabel:F.el;I="detailpage";M==="adunit"?I=this.Z?"embedded":"detailpage":M==="embedded"||this.V?I=b8(I,M,UOJ):M&&(I="embedded");this.WN=I;T$_();M=null;I=J?J.playerStyle:F.ps;w=g.te(xOJ,I);!I||w&&!this.V||(M=I);this.playerStyle=M;this.W=g.te(xOJ,this.playerStyle);this.houseBrandUserStatus=J==null?void 0:J.houseBrandUserStatus;this.eE=this.W&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.oV=!this.eE;this.qf=JC(!1,F.disableplaybackui);this.disablePaidContentOverlay=JC(!1,J==null?void 0:J.disablePaidContentOverlay);this.disableSeek=JC(!1,J==null?void 0:J.disableSeek);this.enableSpeedOptions=(J==null?void 0:J.enableSpeedOptions)||(VZ().defaultPlaybackRate?lb||g.Z$||tg?g.Yj&&dD("20")||g.B4&&dD("4")||g.fH&&dD("11")||U6():!(g.fH&&!g.D$("chrome")||lb||g.D$("android")||g.D$("silk")):!1);this.nL=JC(!1,F.enable_faster_speeds);var q;this.supportsVarispeedExtendedFeatures=(q=J==null?void 0: J.supportsVarispeedExtendedFeatures)!=null?q:!1;this.U=JC(this.playerStyle==="blazer",F.is_html5_mobile_device||J&&J.isMobileDevice);this.zj=tR()||Hx();this.v0=this.S("mweb_allow_background_playback")?!1:this.U&&!this.W;this.dD=Sg();this.lJ=g.Wu;var v;this.qh=!!(J==null?0:(v=J.embedsHostFlags)==null?0:v.optOutApiDeprecation);var a;this.mq=!!(J==null?0:(a=J.embedsHostFlags)==null?0:a.allowPfpImaIntegration);this.Ga=this.S("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var e;J?J.hideInfo!== void 0&&(e=!J.hideInfo):e=F.showinfo;this.gT=g.dN(this)&&!this.qh||JC(!E7(this)&&!j8(this)&&!this.W,e);this.DY=J?!!J.mobileIphoneSupportsInlinePlayback:JC(!1,F.playsinline);q=this.U&&GB&&Vi!=null&&Vi>0&&Vi<=2.3;v=J?J.useNativeControls:F.use_native_controls;this.Y=g.dN(this)&&this.U;a=this.U&&!this.Y;v=g.Pu(this)||!q&&JC(a,v)?"3":"1";this.disableOrganicUi=!(J==null||!J.disableOrganicUi);a=J?J.controlsType:F.controls;this.controlsType=this.disableOrganicUi?"0":a!=="0"&&a!==0?v:"0";this.R5=this.U;this.color= b8("red",J?J.progressBarColor:F.color,nOv);this.eD=this.controlsType==="3";this.T1=!this.Z;this.Wu=(v=!this.T1&&!j8(this)&&!this.eE&&!this.W&&!E7(this))&&!this.eD&&this.controlsType==="1";this.Ly=g.Bu(this)&&v&&this.controlsType==="0"&&!this.Wu&&!(J==null?0:J.embedsEnableEmc3ds);this.Vc=this.fN=q;this.Se=(this.controlsType==="3"||this.U||JC(!1,F.use_media_volume))&&!this.Y;this.OM=x6&&!g.iV(601)?!1:!0;this.Sl=this.Z||!1;this.oI=j8(this)?"":(this.loaderUrl||F.post_message_origin||"").substring(0,128); this.widgetReferrer=u8("",J?J.widgetReferrer:F.widget_referrer);var K;J?J.disableCastApi&&(K=!1):K=F.enablecastapi;K=!this.V||JC(!0,K);q=!0;J&&J.disableMdxCast&&(q=!1);this.LF=this.S("enable_cast_for_web_unplugged")&&g.TB(this)&&q||g.sV(this)&&q||K&&q&&this.controlsType==="1"&&!this.U&&(j8(this)||g.Bu(this)||g.rN(this));this.HQ=!!window.document.pictureInPictureEnabled||rk();K=J?!!J.supportsAutoplayOverride:JC(!1,F.autoplayoverride);this.IP=!(this.U&&!g.dN(this))&&!g.D$("nintendo wiiu")||K;this.D4= (J?!!J.enableMutedAutoplay:JC(!1,F.mutedautoplay))&&!1;K=(j8(this)||E7(this))&&this.playerStyle==="blazer";this.rZ=J?!!J.disableFullscreen:!JC(!0,F.fs);q=g.q1(g.S8(this))&&g.dN(this);this.Om=!this.rZ&&(K||g.mu())&&!q;K=k6()&&dD(58)&&!Hx();q=hY||typeof MediaSource==="undefined";this.ZY=this.S("uniplayer_block_pip")&&(K||q)||this.S("html5_disable_pip_with_standard_api");K=g.dN(this)&&!this.qh;var p;J?J.disableRelatedVideos!==void 0&&(p=!J.disableRelatedVideos):p=F.rel;this.y6=K||JC(!this.W,p);this.Mh= JC(!1,J?J.enableContentOwnerRelatedVideos:F.co_rel);this.N=Hx()&&Vi>0&&Vi<=4.4?"_top":"_blank";this.n7=g.rN(this);this.PS=JC(this.playerStyle==="blazer",J?J.enableCsiLogging:F.enablecsi);switch(this.playerStyle){case "blogger":p="bl";break;case "gmail":p="gm";break;case "gac":p="ga";break;case "books":p="gb";break;case "docs":case "flix":p="gd";break;case "duo":p="gu";break;case "google-live":p="gl";break;case "google-one":p="go";break;case "play":p="gp";break;case "chat":p="hc";break;case "hangouts-meet":p= "hm";break;case "photos-edu":case "picasaweb":p="pw";break;default:p="yt"}this.Tj=p;this.Gj=u8("",J?J.authorizedUserIndex:F.authuser);this.If=g.dN(this)&&(this.MI||!i8z()||this.zj);var m;J?J.disableWatchLater!==void 0&&(m=!J.disableWatchLater):m=F.showwatchlater;this.YH=((p=!this.If)||!!this.Gj&&p)&&JC(!this.eE,this.V?m:void 0);this.xo=J?J.isMobileDevice||!!J.disableKeyboardControls:JC(!1,F.disablekb);this.loop=JC(!1,F.loop);this.pageId=u8("",J?J.initialDelegatedSessionId:F.pageid);this.SD=JC(!0, F.canplaylive);this.nW=JC(!1,F.livemonitor);this.disableSharing=JC(this.W,J?J.disableSharing:F.ss);(m=J&&this.S("fill_video_container_size_override_from_wpcc")?J.videoContainerOverride:F.video_container_override)?(p=m.split("x"),p.length!==2?m=null:(m=Number(p[0]),p=Number(p[1]),m=isNaN(m)||isNaN(p)||m*p<=0?null:new g.gl(m,p))):m=null;this.qa=m;this.mute=J?!!J.startMuted:JC(!1,F.mute);this.storeUserVolume=!this.mute&&JC(this.controlsType!=="0",J?J.storeUserVolume:F.store_user_volume);m=J?J.annotationsLoadPolicy: F.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:b8(void 0,m,s7);this.captionsLanguagePreference=J?J.captionsLanguagePreference||"":u8("",F.cc_lang_pref);m=b8(2,J?J.captionsLanguageLoadPolicy:F.cc_load_policy,s7);this.controlsType==="3"&&m===2&&(m=3);this.Um=m;this.Q2=J?J.hl||"en_US":u8("en_US",F.hl);this.region=J?J.contentRegion||"US":u8("US",F.cr);this.hostLanguage=J?J.hostLanguage||"en":u8("en",F.host_language);this.jn=!this.MI&&Math.random()<g.eB(this.experiments,"web_player_api_logging_fraction"); this.KW=!this.MI;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(J==null||!J.deviceIsAudioOnly);this.M0=Ig(this.M0,F.ismb);this.oV?(m=F.vss_host||"s.youtube.com",m==="s.youtube.com"&&(m=Y2(this.ME)||"www.youtube.com")):m="video.google.com";this.Dc=m;$2(this,F,!0);this.fW=new F_;g.k(this,this.fW);p=J?J.innertubeApiKey:u8("",F.innertube_api_key);K=J?J.innertubeApiVersion:u8("",F.innertube_api_version);m=J?J.innertubeContextClientVersion:u8("",F.innertube_context_client_version);p=g.cT("INNERTUBE_API_KEY")|| p;K=g.cT("INNERTUBE_API_VERSION")||K;q=g.cT("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");v=cG(this);a=typeof this.C.c==="number"?Number(this.C.c):Object.keys(tYJ).indexOf(this.C.c);this.wX={innertubeApiKey:p,innertubeApiVersion:K,tQ:q,Yb:v,p6:a,innertubeContextClientVersion:g.cT("INNERTUBE_CONTEXT_CLIENT_VERSION")||m,aN:this.hostLanguage,jJ:this.region,Yt:g.cT("INNERTUBE_HOST_OVERRIDE")||"",n6:!!g.cT("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),h_R:!!g.cT("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}; this.fD=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.D=new nW(this.experiments,this.S("html5_force_hfr_support")?!0:En(this)||hR()||l_a()||Zxz(this),g.B4&&g.iV(56)||g.Yj&&g.iV(54)||this.S("html5_force_vp9_subsample_encryption_support")||Zxz(this));m=g.jB(this);p=this.M0;K=this.experiments;q=new RRY(K);m&&(q.U=!0,q.W=.1);K.pW("html5_media_time_weight")&&(q.U=!1);p&&(q.T=p/8);q.Z=rB()>=480;this.schedule=new aw(q,new ixY(this.experiments),u);g.k(this,this.schedule);var y;this.enableSafetyMode= (y=J==null?void 0:J.initialEnableSafetyMode)!=null?y:JC(!1,F.enable_safety_mode);u=this.qf?!1:j8(this)&&this.playerStyle!=="blazer";var f;J?J.disableAutonav!=null&&(f=!J.disableAutonav):f=F.allow_autonav;this.g9=JC(u,!this.eE&&f);this.sendVisitorIdHeader=J?!!J.sendVisitorIdHeader:JC(!1,F.send_visitor_id_header);var d;this.playerStyle==="docs"&&(J?d=J.disableNativeContextMenu:d=F.disable_native_context_menu);this.disableNativeContextMenu=JC(!1,d);this.c5=En(this)&&this.S("enable_skip_intro_button"); this.embedConfig=u8("",J?J.serializedEmbedConfig:F.embed_config);this.kQ=AC(F,g.dN(this));this.T=this.kQ==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(J==null||!J.embedsErrorLinks);this.Tc=JC(!1,F.full_window);var G;this.bR=!((G=this.webPlayerContextConfig)==null?0:G.chromeless);var P;this.livingRoomAppMode=b8("LIVING_ROOM_APP_MODE_UNSPECIFIED",F.living_room_app_mode||(J==null?void 0:(P=J.device)==null?void 0:P.livingRoomAppMode),HxY);var r;f=Ig(NaN,J==null?void 0:(r=J.device)==null?void 0: r.deviceYear);isNaN(f)||(this.deviceYear=f);this.transparentBackground=J?!!J.transparentBackground:JC(!1,F.transparent_background);this.showMiniplayerButton=J?!!J.showMiniplayerButton:JC(!1,F.show_miniplayer_button);var Q;g.dN(this)&&!(J==null?0:(Q=J.embedsHostFlags)==null?0:Q.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=J?!!J.externalFullscreen:JC(!1,F.external_fullscreen);this.showMiniplayerUiWhenMinimized=J?!!J.showMiniplayerUiWhenMinimized:JC(!1,F.use_miniplayer_ui); var D;this.Ar=(D=F.show_loop_video_toggle)!=null?D:!0;this.rf=Math.random()<1E-4;this.T8=F.onesie_hot_config||(J==null?0:J.onesieHotConfig)?new sYz(F.onesie_hot_config,J==null?void 0:J.onesieHotConfig):void 0;this.isTectonic=J?!!J.isTectonic:!!F.isTectonic;this.playerCanaryState=b;this.playerCanaryStage=J==null?void 0:J.canaryStage;this.GU=new kAY;g.k(this,this.GU);this.Px=JC(!1,F.force_gvi);this.datasyncId=(J==null?void 0:J.datasyncId)||g.cT("DATASYNC_ID");this.Uk=g.cT("LOGGED_IN",!1);this.B9=(J== null?void 0:J.allowWoffleManagement)||!1;this.eB=Infinity;this.Gc=NaN;this.livingRoomPoTokenId=J==null?void 0:J.livingRoomPoTokenId;this.S("html5_high_res_logging_always")?this.zU=!0:this.zU=Math.random()*100<g.eB(this.experiments,"html5_high_res_logging_percent");var t;this.G8=!!(J==null?0:(t=J.embedsHostFlags)==null?0:t.allowRcat);this.b1=!g.TB(this)&&!CH(this)}; g.S8=function(F){var J,b;if(!((J=F.webPlayerContextConfig)==null?0:(b=J.embedsHostFlags)==null?0:b.enableLiteUx)||F.MI||F.W||F.T||F.kQ==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";F=g.eB(F.experiments,"embeds_web_lite_mode");return F===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":F>=0&&F<LSa.length?LSa[F]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; $2=function(F,J,b){b=b===void 0?!1:b;F.xm=u8(F.xm,J.video_id);F.Jz=u8(F.Jz,J.eventid);F.Jz&&(i0=F.Jz);for(var I=[],u=g.N(Object.keys(Fqv)),w=u.next();!w.done;w=u.next()){w=Fqv[w.value];var M=J[w];M!=null&&(M!==F.C[w]&&I.push(w),F.C[w]=M)}!b&&I.length>0&&F.rf&&(I.sort(),g.rQ(new g.hC("Player client parameters changed after startup",I)));F.userAge=Ig(F.userAge,J.user_age);F.ir=u8(F.ir,J.user_display_email);F.userDisplayImage=u8(F.userDisplayImage,J.user_display_image);g.LT(F.userDisplayImage)||(F.userDisplayImage= "");F.userDisplayName=u8(F.userDisplayName,J.user_display_name);F.MJ=u8(F.MJ,J.user_gender);F.csiPageType=u8(F.csiPageType,J.csi_page_type);F.csiServiceName=u8(F.csiServiceName,J.csi_service_name);F.PS=JC(F.PS,J.enablecsi);F.pageId=u8(F.pageId,J.pageid);if(b=J.enabled_engage_types)F.enabledEngageTypes=new Set(b.split(","));J.living_room_session_po_token&&(F.jZ=J.living_room_session_po_token.toString())}; Qi=function(F,J){return!F.W&&k6()&&dD(55)&&F.controlsType==="3"&&!J}; g.Rw=function(F){F=Y2(F.ME);return F==="www.youtube-nocookie.com"?"www.youtube.com":F}; D7=function(F,J,b){return F.protocol+"://i1.ytimg.com/vi/"+J+"/"+(b||"hqdefault.jpg")}; k2=function(F){return j8(F)&&!g.TB(F)}; g.Pu=function(F){return F.S("html5_local_playsinline")?x6&&!g.iV(602)&&!("playsInline"in VZ()):x6&&!F.DY||g.D$("nintendo wiiu")?!0:!1}; cG=function(F){return F.C.c}; g.jB=function(F){return/^TVHTML5/.test(cG(F))}; g.O7=function(F){return cG(F)==="TVHTML5"}; oOk=function(F){return cG(F)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Zxz=function(F){return F.C.cmodel==="CHROMECAST ULTRA/STEAK"||F.C.cmodel==="CHROMECAST/STEAK"}; g.ow=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; En=function(F){return/web/i.test(cG(F))}; g.hP=function(F){return cG(F).toUpperCase()==="WEB"}; CH=function(F){return cG(F)==="WEB_KIDS"}; g.TB=function(F){return cG(F)==="WEB_UNPLUGGED"}; cu=function(F){return cG(F)==="TVHTML5_UNPLUGGED"}; g.dX=function(F){return g.TB(F)||cG(F)==="TV_UNPLUGGED_CAST"||cu(F)}; g.sV=function(F){return cG(F)==="WEB_REMIX"}; g.U7=function(F){return cG(F)==="WEB_EMBEDDED_PLAYER"}; g.nH=function(F){return(F.deviceIsAudioOnly||!g.B4||hY||F.controlsType==="3"?!1:g.Z$?F.Z&&g.iV(51):!0)||(F.deviceIsAudioOnly||!g.Yj||hY||F.controlsType==="3"?!1:g.Z$?F.Z&&g.iV(48):g.iV(38))||(F.deviceIsAudioOnly||!g.fH||hY||F.controlsType==="3"?!1:g.Z$?F.Z&&g.iV(37):g.iV(27))||!F.deviceIsAudioOnly&&g.x2&&!WUa()&&g.iV(11)||!F.deviceIsAudioOnly&&g.ia&&g.iV("604.4")}; Jbk=function(F){if(g.Bu(F)&&GB)return!1;if(g.Yj){if(!g.iV(47)||!g.iV(52)&&g.iV(51))return!1}else if(g.ia)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; IMC=function(F,J){return F.enabledEngageTypes.has(J.toString())||biz.includes(J)}; j8=function(F){return F.WN==="detailpage"}; g.Bu=function(F){return F.WN==="embedded"}; tP=function(F){return F.WN==="leanback"}; E7=function(F){return F.WN==="adunit"||F.playerStyle==="gvn"}; g.rN=function(F){return F.WN==="profilepage"}; g.dN=function(F){return F.Z&&g.Bu(F)&&!E7(F)&&!F.W}; Z7=function(F){if(!F.userDisplayImage)return"";var J=F.userDisplayImage.split("/");if(J.length===5)return F=J[J.length-1].split("="),F[1]="s20-c",J[J.length-1]=F.join("="),J.join("/");if(J.length===8)return J.splice(7,0,"s20-c"),J.join("/");if(J.length===9)return J[7]+="-s20-c",J.join("/");g.rQ(new g.hC("Profile image not a FIFE URL.",F.userDisplayImage));return F.userDisplayImage}; g.Hu=function(F){var J=g.Rw(F);uq3.includes(J)&&(J="www.youtube.com");return F.protocol+"://"+J}; g.LH=function(F,J){J=J===void 0?"":J;if(F.A4){var b=new xn,I,u=F.A4();u.signedOut?I="":u.token?I=u.token:u.pendingResult.then(function(w){u.signedOut?b.resolve(""):b.resolve(w.token)},function(w){g.rQ(new g.hC("b189348328_oauth_callback_failed",{error:w})); b.resolve(J)}); return I!==void 0?r$(I):new Bx(b)}return r$(J)}; FR=function(F,J){J=J===void 0?"":J;return F.Uk?Ix(!0):q7(A8(Ix(g.LH(F,J)),function(b){return Ix(!!b)}),function(){return Ix(!1)})}; Y2=function(F){var J=g.Cu(F);return(F=Number(g.$V(4,F))||null)?J+":"+F:J}; Ji=function(F,J){J=J===void 0?!1:J;var b=Df[F],I=wSz[b],u=Mja[F];if(!u||!I)return null;J=new Xk(J?u.height:u.width,J?u.width:u.height,u.fps);I=qQ(I,J,b);return new kz(F,I,{video:J,LW:u.bitrate/8})}; qCY=function(F){var J=wSz[Df[F]],b=Abo[F];return b&&J?new kz(F,J,{audio:new Yz(b.audioSampleRate,b.numChannels)}):null}; br=function(F){this.C=F}; IH=function(F,J,b,I){if(b)return Tk();b={};var u=VZ();J=g.N(J);for(var w=J.next();!w.done;w=J.next())if(w=w.value,F.canPlayType(u,w.getInfo().mimeType)||I){var M=w.C.video.quality;if(!b[M]||b[M].getInfo().Xb())b[M]=w}F=[];b.auto&&F.push(b.auto);I=g.N(QZ);for(u=I.next();!u.done;u=I.next())(u=b[u.value])&&F.push(u);return F.length?r$(F):Tk()}; vAz=function(F){this.itag=F.itag;this.url=F.url;this.codecs=F.codecs;this.width=F.width;this.height=F.height;this.fps=F.fps;this.bitrate=F.bitrate;var J;this.U=((J=F.audioItag)==null?void 0:J.split(","))||[];this.yD=F.yD;this.Ke=F.Ke||"";this.j3=F.j3;this.audioChannels=F.audioChannels;this.C=""}; aMz=function(F,J,b,I){J=J===void 0?!1:J;b=b===void 0?!0:b;I=I===void 0?{}:I;var u={};F=g.N(F);for(var w=F.next();!w.done;w=F.next()){w=w.value;if(J&&MediaSource&&MediaSource.isTypeSupported){var M=w.type;w.audio_channels&&(M=M+"; channels="+w.audio_channels);if(!MediaSource.isTypeSupported(M)){I[w.itag]="tpus";continue}}if(b||!w.drm_families||w.eotf!=="smpte2084"&&w.eotf!=="arib-std-b67"){M=void 0;var q={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},v=w.type.match(/codecs="([^"]*)"/); v=v?v[1]:"";w.audio_track_id&&(M=new g.bI(w.name,w.audio_track_id,!!w.is_default));var a=w.eotf;w=new vAz({itag:w.itag,url:w.url,codecs:v,width:Number(w.width),height:Number(w.height),fps:Number(w.fps),bitrate:Number(w.bitrate),audioItag:w.audio_itag,yD:a?q[a]:void 0,Ke:w.drm_families,j3:M,audioChannels:Number(w.audio_channels)});u[w.itag]=u[w.itag]||[];u[w.itag].push(w)}else I[w.itag]="enchdr"}return u}; eaz=function(F,J,b,I,u){this.T=F;this.U=J;this.D=b;this.cpn=I;this.W=u;this.Z=0;this.C=""}; KqY=function(F,J){F.T.some(function(b){var I;return((I=b.j3)==null?void 0:I.getId())===J}); F.C=J}; ur=function(F,J,b){F.cpn&&(J=g.Os(J,{cpn:F.cpn}));b&&(J=g.Os(J,{paired:b}));return J}; pSo=function(F,J){F=F.itag.toString();J!==null&&(F+=J.itag.toString());return F}; gA4=function(F){for(var J=[],b=[],I=g.N(F.U),u=I.next();!u.done;u=I.next())u=u.value,u.bitrate<=F.Z?J.push(u):b.push(u);J.sort(function(w,M){return M.bitrate-w.bitrate}); b.sort(function(w,M){return w.bitrate-M.bitrate}); F.U=J.concat(b)}; w7=function(F,J,b){this.C=F;this.U=J;this.expiration=b;this.gw=null}; mhm=function(F,J){if(!(hY||cx()||oR()))return null;F=aMz(J,F.S("html5_filter_fmp4_in_hls"));if(!F)return null;J=[];for(var b={},I=g.N(Object.keys(F)),u=I.next();!u.done;u=I.next()){u=g.N(F[u.value]);for(var w=u.next();!w.done;w=u.next()){var M=w.value;M.j3&&(w=M.j3.getId(),b[w]||(M=new g.t8(w,M.j3),b[w]=M,J.push(M)))}}return J.length>0?J:null}; lMz=function(F,J,b,I,u,w,M){if(!(hY||cx()||oR()))return Tk();var q={},v=ybm(b),a=aMz(b,F.S("html5_filter_fmp4_in_hls"),F.D.V,q);if(!a)return M({noplst:1}),Tk();iik(a);b={};var e=(b.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",b),K;b=[];var p=[],m=[],y=null,f="";I=I&&I.match(/hls_timedtext_playlist/)?new vAz({itag:"0",url:I,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,j3:new g.bI("English","en",!1)}):null;for(var d=g.N(Object.keys(a)),G=d.next();!G.done;G=d.next())if(G=G.value,!F.S("html5_disable_drm_hfr_1080")|| G!=="383"&&G!=="373"){G=g.N(a[G]);for(var P=G.next();!P.done;P=G.next())if(P=P.value,P.width){for(var r=g.N(P.U),Q=r.next();!Q.done;Q=r.next())if(Q=Q.value,a[Q]){P.C=Q;break}P.C||(P.C=zaJ(a,P));if(r=a[P.C])if(b.push(P),P.Ke==="fairplay"&&(K=e),Q="",P.yD==="PQ"?Q="smpte2084":P.yD==="HLG"&&(Q="arib-std-b67"),Q&&(f=Q),m.push(NIz(r,[P],I,w,P.itag,P.width,P.height,P.fps,v,void 0,void 0,K,Q)),!y||P.width*P.height*P.fps>y.width*y.height*y.fps)y=P}else p.push(P)}else q[G]="disdrmhfr";m.reduce(function(D, t){return t.getInfo().isEncrypted()&&D},!0)&&(K=e); u=Math.max(u,0);e=y||{};a=e.fps===void 0?0:e.fps;y=e.width===void 0?0:e.width;e=e.height===void 0?0:e.height;d=F.S("html5_native_audio_track_switching");m.push(NIz(p,b,I,w,"93",y,e,a,v,"auto",u,K,f,d));Object.entries(q).length&&M(q);return IH(F.D,m,Qi(F,J),!1)}; NIz=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){for(var y=0,f="",d=g.N(F),G=d.next();!G.done;G=d.next())G=G.value,f||(f=G.itag),G.audioChannels&&G.audioChannels>y&&(y=G.audioChannels,f=G.itag);u=new kz(u,"application/x-mpegURL",{audio:new Yz(0,y),video:new Xk(w,M,q,null,void 0,a,void 0,p),Ke:K,zg:f});F=new eaz(F,J,b?[b]:[],I,!!m);F.Z=e?e:1369843;return new w7(u,F,v)}; ybm=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.url&&(J=J.url.split("expire/"),!(J.length<=1)))return+J[1].split("/")[0];return NaN}; zaJ=function(F,J){for(var b=g.N(Object.keys(F)),I=b.next();!I.done;I=b.next()){I=I.value;var u=F[I][0];if(!u.width&&u.Ke===J.Ke&&!u.audioChannels)return I}return""}; iik=function(F){for(var J=new Set,b=g.N(Object.values(F)),I=b.next();!I.done;I=b.next())I=I.value,I.length&&(I=I[0],I.height&&I.codecs.startsWith("vp09")&&J.add(I.height));b=[];if(J.size){I=g.N(Object.keys(F));for(var u=I.next();!u.done;u=I.next())if(u=u.value,F[u].length){var w=F[u][0];w.height&&J.has(w.height)&&!w.codecs.startsWith("vp09")&&b.push(u)}}J=g.N(b);for(b=J.next();!b.done;b=J.next())delete F[b.value]}; MF=function(F,J){this.C=F;this.U=J}; fMa=function(F,J,b,I){var u=[];b=g.N(b);for(var w=b.next();!w.done;w=b.next()){var M=w.value;if(M.url){w=new g.yJ(M.url,!0);if(M.s){var q=w,v=M.sp,a=NX7(decodeURIComponent(M.s));q.set(v,encodeURIComponent(a))}q=g.N(Object.keys(I));for(v=q.next();!v.done;v=q.next())v=v.value,w.set(v,I[v]);M=JG(M.type,M.quality,M.itag,M.width,M.height);u.push(new MF(M,w))}}return IH(F.D,u,Qi(F,J),!1)}; Ai=function(F,J){this.C=F;this.U=J}; Wqk=function(F,J,b){var I=[];b=g.N(b);for(var u=b.next();!u.done;u=b.next())if((u=u.value)&&u.url){var w=JG(u.type,"medium","0");I.push(new Ai(w,u.url))}return IH(F.D,I,Qi(F,J),!1)}; dha=function(F,J){var b=[],I=JG(J.type,"auto",J.itag);b.push(new Ai(I,J.url));return IH(F.D,b,!1,!0)}; jSa=function(F){return F&&EAG[F]?EAG[F]:null}; GJ4=function(F){if(F=F.commonConfig)this.url=F.url,this.urlQueryOverride=F.urlQueryOverride,F.ustreamerConfig&&(this.v5=Iw(F.ustreamerConfig)||void 0)}; Vj3=function(F,J){var b;if(J=J==null?void 0:(b=J.watchEndpointSupportedOnesieConfig)==null?void 0:b.html5PlaybackOnesieConfig)F.NS=new GJ4(J)}; g.qF=function(F){F=F===void 0?{}:F;this.languageCode=F.languageCode||"";this.languageName=F.languageName||null;this.kind=F.kind||"";this.name=F.name===void 0?null:F.name;this.displayName=F.displayName||null;this.id=F.id||null;this.C=F.is_servable||!1;this.isTranslateable=F.is_translateable||!1;this.url=F.url||null;this.vssId=F.vss_id||"";this.isDefault=F.is_default||!1;this.translationLanguage=F.translationLanguage||null;this.xtags=F.xtags||"";this.captionId=F.captionId||""}; g.aH=function(F){var J={languageCode:F.languageCode,languageName:F.languageName,displayName:g.vC(F),kind:F.kind,name:F.name,id:F.id,is_servable:F.C,is_default:F.isDefault,is_translateable:F.isTranslateable,vss_id:F.vssId};F.xtags&&(J.xtags=F.xtags);F.captionId&&(J.captionId=F.captionId);F.translationLanguage&&(J.translationLanguage=F.translationLanguage);return J}; g.eE=function(F){return F.translationLanguage?F.translationLanguage.languageCode:F.languageCode}; g.Pgk=function(F){var J=F.vssId;F.translationLanguage&&J&&(J="t"+J+"."+g.eE(F));return J}; g.vC=function(F){var J=[];if(F.displayName)J.push(F.displayName);else{var b=F.languageName||"";J.push(b);F.kind==="asr"&&b.indexOf("(")===-1&&J.push(" (Automatic Captions)");F.name&&J.push(" - "+F.name)}F.translationLanguage&&J.push(" >> "+F.translationLanguage.languageName);return J.join("")}; SCz=function(F,J,b,I){F||(F=J&&BIz.hasOwnProperty(J)&&TI7.hasOwnProperty(J)?TI7[J]+"_"+BIz[J]:void 0);J=F;if(!J)return null;F=J.match(rb4);if(!F||F.length!==5)return null;if(F=J.match(rb4)){var u=Number(F[3]),w=[7,8,10,5,6];F=!(Number(F[1])===1&&u===8)&&w.indexOf(u)>=0}else F=!1;return b||I||F?J:null}; KC=function(F,J){for(var b={},I=g.N(Object.keys(sSm)),u=I.next();!u.done;u=I.next()){u=u.value;var w=J?J+u:u;w=F[w+"_webp"]||F[w];g.LT(w)&&(b[sSm[u]]=w)}return b}; pC=function(F){var J={};if(!F||!F.thumbnails)return J;F=F.thumbnails.filter(function(q){return!!q.url}); F.sort(function(q,v){return q.width-v.width||q.height-v.height}); for(var b=g.N(Object.keys(YCm)),I=b.next();!I.done;I=b.next()){var u=Number(I.value);I=YCm[u];for(var w=g.N(F),M=w.next();!M.done;M=w.next())if(M=M.value,M.width>=u){u=$h7(M.url);g.LT(u)&&(J[I]=u);break}}(F=F.pop())&&F.width>=1280&&(F=$h7(F.url),g.LT(F)&&(J["maxresdefault.jpg"]=F));return J}; $h7=function(F){return F.startsWith("//")?"https:"+F:F}; g7=function(F){return F&&F.baseUrl||""}; mZ=function(F){F=g.bi(F);for(var J=g.N(Object.keys(F)),b=J.next();!b.done;b=J.next()){b=b.value;var I=F[b];F[b]=Array.isArray(I)?I[0]:I}return F}; Cg3=function(F,J){F.botguardData=J.playerAttestationRenderer.botguardData;J=J.playerAttestationRenderer.challenge;J!=null&&(F.vQ=J)}; Rao=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=b.interstitials.map(function(M){var q=g.O(M,XS7);if(q)return{is_yto_interstitial:!0,raw_player_response:q};if(M=g.O(M,QSk))return Object.assign({is_yto_interstitial:!0},FF(M))}); I=g.N(I);for(var u=I.next();!u.done;u=I.next())switch(u=u.value,b.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":F.interstitials=F.interstitials.concat({time:0,playerVars:u,Fa:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":F.interstitials=F.interstitials.concat({time:0x7ffffffffffff,playerVars:u,Fa:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var w=Number(b.podConfig.timeToInsertAtMillis);F.interstitials=F.interstitials.concat({time:w,playerVars:u, Fa:w===0?5:7})}}}; Dhk=function(F,J){if(J=J.find(function(b){return!(!b||!b.tooltipRenderer)}))F.tooltipRenderer=J.tooltipRenderer}; kJ4=function(F,J){J.subscribeCommand&&(F.subscribeCommand=J.subscribeCommand);J.unsubscribeCommand&&(F.unsubscribeCommand=J.unsubscribeCommand);J.addToWatchLaterCommand&&(F.addToWatchLaterCommand=J.addToWatchLaterCommand);J.removeFromWatchLaterCommand&&(F.removeFromWatchLaterCommand=J.removeFromWatchLaterCommand);J.getSharePanelCommand&&(F.getSharePanelCommand=J.getSharePanelCommand)}; Oik=function(F,J){J!=null?(F.RV=J,F.T0=!0):(F.RV="",F.T0=!1)}; yE=function(F,J){this.type=F||"";this.id=J||""}; g.ir=function(F){return new yE(F.substring(0,2),F.substring(2))}; g.zt=function(F,J){this.PN=F;this.author="";this.U5=null;this.playlistLength=0;this.C=this.sessionData=null;this.N={};this.title="";if(J){this.author=J.author||J.playlist_author||"";this.title=J.playlist_title||"";if(F=J.session_data)this.sessionData=HT(F,"&");var b;this.C=((b=J.thumbnail_ids)==null?void 0:b.split(",")[0])||null;this.N=KC(J,"playlist_");this.videoId=J.video_id||void 0;if(b=J.list)switch(J.listType){case "user_uploads":this.playlistId=(new yE("UU","PLAYER_"+b)).toString();break;default:if(F= J.playlist_length)this.playlistLength=Number(F)||0;this.playlistId=g.ir(b).toString();if(J=J.video)this.videoId=(J[0]||null).video_id||void 0}else J.playlist&&(this.playlistLength=J.playlist.toString().split(",").length)}}; g.NF=function(F,J){this.PN=F;this.lH=this.author="";this.U5=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.VF=this.lengthText="";this.sessionData=null;this.N={};this.title="";if(J){this.ariaLabel=J.aria_label||void 0;this.author=J.author||"";this.lH=J.lH||"";if(F=J.endscreen_autoplay_session_data)this.U5=HT(F,"&");this.Te=J.Te;this.isLivePlayback=J.live_playback==="1";this.isUpcoming=!!J.isUpcoming;if(F=J.length_seconds)this.lengthSeconds=typeof F==="string"?Number(F):F;this.lengthText= J.lengthText||"";this.VF=J.VF||"";this.publishedTimeText=J.publishedTimeText||void 0;if(F=J.session_data)this.sessionData=HT(F,"&");this.shortViewCount=J.short_view_count_text||void 0;this.N=KC(J);this.title=J.title||"";this.videoId=J.docid||J.video_id||J.videoId||J.id||void 0;this.watchUrl=J.watchUrl||void 0}}; oA3=function(F){var J,b,I=(J=F.getWatchNextResponse())==null?void 0:(b=J.contents)==null?void 0:b.twoColumnWatchNextResults,u,w,M,q,v;F=(u=F.getWatchNextResponse())==null?void 0:(w=u.playerOverlays)==null?void 0:(M=w.playerOverlayRenderer)==null?void 0:(q=M.endScreen)==null?void 0:(v=q.watchNextEndScreenRenderer)==null?void 0:v.results;if(!F){var a,e;F=I==null?void 0:(a=I.endScreen)==null?void 0:(e=a.endScreen)==null?void 0:e.results}return F}; g.fC=function(F){var J,b,I;F=g.O((J=F.getWatchNextResponse())==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,lr);return g.O(F==null?void 0:F.playerBar,ham)}; cba=function(F){this.C=F.playback_progress_0s_url;this.T=F.playback_progress_2s_url;this.U=F.playback_progress_10s_url}; Uhz=function(){if(WC===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(J){}a:{try{var F=!!self.localStorage}catch(J){F=!1}if(F&&(F=g.Yd(g.cK()+"::yt-player"))){WC=new C0(F);break a}WC=void 0}}return WC}; g.d7=function(){var F=Uhz();if(!F)return{};try{var J=F.get("yt-player-lv");return JSON.parse(J||"{}")}catch(b){return{}}}; g.xh_=function(F){var J=Uhz();J&&(F=JSON.stringify(F),J.set("yt-player-lv",F))}; g.E9=function(F){return g.d7()[F]||0}; g.jE=function(F,J){var b=g.d7();J!==b[F]&&(J!==0?b[F]=J:delete b[F],g.xh_(b))}; g.Gt=function(F){return g.S(function(J){return J.return(g.ku(nAk(),F))})}; PC=function(F,J,b,I,u,w,M,q){var v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:return v=g.E9(F),v===4?y.return(4):g.T(y,g.tY(),2);case 2:a=y.U;if(!a)throw g.NP("wiac");if(!q||M===void 0){y.gD(3);break}return g.T(y,tjz(q,M),4);case 4:M=y.U;case 3:return e=b.lastModified||"0",g.T(y,g.Gt(a),5);case 5:return K=y.U,g.lk(y,6),VE++,g.T(y,g.B$(K,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Em:!0},function(f){if(w!==void 0&&M!==void 0){var d=""+F+"|"+J.id+"|"+e+"|"+String(w).padStart(10, "0");d=g.Tl(f.objectStore("media"),M,d)}else d=g.fD.resolve(void 0);var G=Zik(F,J.v1()),P=Zik(F,!J.v1()),r={fmts:Him(I),format:b||{}};G=g.Tl(f.objectStore("index"),r,G);var Q=I.downloadedEndTime===-1;r=Q?f.objectStore("index").get(P):g.fD.resolve(void 0);var D={fmts:"music",format:{}};f=Q&&u&&!J.v1()?g.Tl(f.objectStore("index"),D,P):g.fD.resolve(void 0);return g.fD.all([f,r,d,G]).then(function(t){t=g.N(t);t.next();t=t.next().value;VE--;var n=g.E9(F);if(n!==4&&Q&&u||t!==void 0&&g.LqG(t.fmts))n=1,g.jE(F, n);return n})}),8); case 8:return y.return(y.U);case 6:p=g.dY(y);VE--;m=g.E9(F);if(m===4)return y.return(m);g.jE(F,4);throw p;}})}; g.Fek=function(F){var J,b;return g.S(function(I){if(I.C==1)return g.T(I,g.tY(),2);if(I.C!=3){J=I.U;if(!J)throw g.NP("ri");return g.T(I,g.Gt(J),3)}b=I.U;return I.return(g.B$(b,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(u){var w=IDBKeyRange.bound(F+"|",F+"~");return u.objectStore("index").getAll(w).then(function(M){return M.map(function(q){return q?q.format:{}})})}))})}; bUz=function(F,J,b,I,u){var w,M,q;return g.S(function(v){if(v.C==1)return g.T(v,g.tY(),2);if(v.C!=3){w=v.U;if(!w)throw g.NP("rc");return g.T(v,g.Gt(w),3)}M=v.U;q=g.B$(M,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(a){var e=""+F+"|"+J+"|"+b+"|"+String(I).padStart(10,"0");return a.objectStore("media").get(e)}); return u?v.return(q.then(function(a){if(a===void 0)throw Error("No data from indexDb");return JI_(u,a)}).catch(function(a){throw new g.hC("Error while reading chunk: "+a.name+", "+a.message); })):v.return(q)})}; g.LqG=function(F){return F?F==="music"?!0:F.includes("dlt=-1")||!F.includes("dlt="):!1}; Zik=function(F,J){return""+F+"|"+(J?"v":"a")}; Him=function(F){var J={};return LX((J.dlt=F.downloadedEndTime.toString(),J.mket=F.maxKnownEndTime.toString(),J.avbr=F.averageByteRate.toString(),J))}; ujk=function(F){var J={},b={};F=g.N(F);for(var I=F.next();!I.done;I=F.next()){var u=I.value,w=u.split("|");u.match(g.IpG)?(I=Number(w.pop()),isNaN(I)?b[u]="?":(w=w.join("|"),(u=J[w])?(w=u[u.length-1],I===w.end+1?w.end=I:u.push({start:I,end:I})):J[w]=[{start:I,end:I}])):b[u]="?"}F=g.N(Object.keys(J));for(I=F.next();!I.done;I=F.next())I=I.value,b[I]=J[I].map(function(M){return M.start+"-"+M.end}).join(","); return b}; BC=function(F){g.uA.call(this);this.C=null;this.T=new X4;this.C=null;this.W=new Set;this.crossOrigin=F||""}; wFa=function(F,J,b){for(b=Tt(F,b);b>=0;){var I=F.levels[b];if(I.isLoaded(r7(I,J))&&(I=g.SE(I,J)))return I;b--}return g.SE(F.levels[0],J)}; AIv=function(F,J,b){b=Tt(F,b);for(var I,u;b>=0;b--)if(I=F.levels[b],u=r7(I,J),!I.isLoaded(u)){I=F;var w=b,M=w+"-"+u;I.W.has(M)||(I.W.add(M),I.T.enqueue(w,{Ab:w,rV:u}))}M54(F)}; M54=function(F){if(!F.C&&!F.T.isEmpty()){var J=F.T.remove();F.C=qx7(F,J)}}; qx7=function(F,J){var b=document.createElement("img");F.crossOrigin&&(b.crossOrigin=F.crossOrigin);b.src=F.levels[J.Ab].tF(J.rV);b.onload=function(){var I=J.Ab,u=J.rV;F.C!==null&&(F.C.onload=null,F.C=null);I=F.levels[I];I.loaded.add(u);M54(F);var w=I.columns*I.rows;u*=w;I=Math.min(u+w-1,I.mm()-1);u=[u,I];F.publish("l",u[0],u[1])}; return b}; g.s9=function(F,J,b,I){this.level=F;this.Z=J;this.loaded=new Set;this.level=F;this.Z=J;F=b.split("#");this.width=Math.floor(Number(F[0]));this.height=Math.floor(Number(F[1]));this.frameCount=Math.floor(Number(F[2]));this.columns=Math.floor(Number(F[3]));this.rows=Math.floor(Number(F[4]));this.C=Math.floor(Number(F[5]));this.T=F[6];this.signature=F[7];this.videoLength=I}; r7=function(F,J){return Math.floor(J/(F.columns*F.rows))}; g.SE=function(F,J){J>=F.hZ()&&F.ll();var b=r7(F,J),I=F.columns*F.rows,u=J%I;J=u%F.columns;u=Math.floor(u/F.columns);var w=F.ll()+1-I*b;if(w<F.columns){var M=w;I=1}else M=F.columns,I=w<I?Math.ceil(w/F.columns):F.rows;return{url:F.tF(b),column:J,columns:M,row:u,rows:I,Ju:F.width*M,pB:F.height*I}}; Y$=function(F,J,b,I,u){I=I===void 0?!1:I;u=u===void 0?!1:u;BC.call(this,b);this.isLive=I;this.V=!!u;this.levels=this.U(F,J);this.Z=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; v8a=function(F,J,b){return(F=F.levels[J])?F.Hj(b):-1}; Tt=function(F,J){var b=F.Z.get(J);if(b)return b;b=F.levels.length;for(var I=0;I<b;I++)if(F.levels[I].width>=J)return F.Z.set(J,I),I;F.Z.set(J,b-1);return b-1}; $$=function(F,J,b,I){b=b.split("#");b=[b[1],b[2],0,b[3],b[4],-1,b[0],""].join("#");g.s9.call(this,F,J,b,0);this.U=null;this.D=I?2:0}; CC=function(F,J,b,I){Y$.call(this,F,0,void 0,J,!(I===void 0||!I));for(F=0;F<this.levels.length;F++)this.levels[F].oW(b)}; apk=function(F,J,b){J={cpn:J};F.indexOf("/ibw/")===-1&&(J.ibw=b?String(b):"1369843");return{url:g.Os(F,J),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; g.RH=function(F,J){g.uA.call(this);var b=this;this.PN=F;this.adaptiveFormats="";this.jh=this.cE=this.adQueryId=this.mY=null;this.BO={start:NaN,end:NaN};this.cueRanges=this.Ke=null;this.J5=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.xx=void 0;this.Gc=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Jz="";this.LI=!1;this.On=null;this.ir=this.Tc=this.GH=!1;this.Z=null;this.tE=this.T8=!1;this.LF= NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.e9=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.c5=0;this.us=!1;this.LT=this.cycToken=null;this.author="";this.F8=!1;this.KW=0;this.OM=!1;this.HO=null;this.Xc=[];this.Ta=this.Z1=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Om=this.zU="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds= this.endSeconds=this.xm=0;this.fD=this.oI=this.U=null;this.dL="";this.loading=!1;this.M0=this.Wu=0;this.rh=this.pipable=this.dK=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.NJ=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.nW=this.isPrivate=this.isListed=this.CM=this.GU=!1;this.LX="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.UP=this.fW=this.SF=!1;this.latencyClass="UNKNOWN";this.Zt= this.P4=this.vP=this.ip=this.GS=this.enablePreroll=this.G4=this.enableServerStitchedDai=this.Uo=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.T1=0;this.reloadReason="";this.b2=this.AK=this.Vk=!1;this.keywords={};this.Um="";this.mq=0;this.Vj=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.ZY=null;this.BE=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.XJ=this.paygated=!1;this.bB= [];this.Ar=!1;this.kQ=[];this.vD=null;this.QC=this.racyCheckOk=!1;this.Vr={};this.isProximaLatencyEligible=!1;this.Yn=0;this.T=null;this.autonavState=1;this.TD=null;this.shortDescription="";this.Gj=this.FK=!1;this.Uz=this.Kk=this.startSeconds=0;this.hG=this.VZ=this.zd=QE;this.N6=this.suggestions=null;this.nI=this.aX=void 0;this.isExternallyHostedPodcast=!1;this.qh=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.eN=void 0;this.cN=[];this.wX=[];this.hlsFormats=this.IP= "";this.QF=this.GW=this.Uk=this.g9=this.bR=this.eD=this.dk=null;this.kZ="vvt";this.Lv=!1;this.uh=null;this.VS="";this.k6=NaN;this.gO=this.A2=this.uH=this.WC=this.gW=this.Mh=this.sW=this.HC=this.Pn=this.Oc="";this.gT=null;this.Md=!1;this.V={};this.clipStart=0;this.clipEnd=Infinity;this.sP=!1;this.heartbeatToken="";this.Fl=this.u_=NaN;this.Ly=this.b1=this.MJ=this.Xp=this.Bw=!1;this.Px=!0;this.N={};this.captionTracks=[];this.nT=[];this.oF=0;this.cO=[];this.Cu=[];this.ra=!1;this.Nc={};this.eB=new g.t8("und", new g.bI("Default","und",!0));this.mE=0;this.D=null;this.v0=[];this.Au=!1;this.KI=this.If="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.dD=this.CT=this.nx=this.playerResponse=this.w7=this.Op=this.Dc=this.yN=this.gL=this.oe=this.xd=null;this.XZ=!1;this.Tj=null;this.isInlinePlaybackNoAd=this.PS=this.sK=this.useCobaltWidevine=this.Km=this.mj=!1;this.Tv=!0;this.jZ=this.B9=NaN;this.defraggedFromSubfragments=this.I0=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN; this.sabrContextUpdates=new Map;this.ul="";this.TL=!1;this.fV=this.S("html5_enable_media_serving_enforcement")||this.S("html5_enable_sabr_context_cross_playback");this.gatewayExperimentGroup="";this.h5=this.Q2=this.D4=!1;this.interstitials=[];this.T0=this.wp=!1;this.RV="";this.allowImaMonetization=!1;this.Do="";this.jY=!1;this.fL="";this.oV=[];this.ws=[];this.r9="";this.ez=this.Y=this.oR=!1;this.Vc="";this.Sl=this.Ud=this.nL=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs= NaN;this.showShareButton=!0;this.lJ=!1;this.Ok=this.YH=!0;this.errorDetail=this.userGenderAge="";this.Ie=this.wI=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.yx=this.errorReason=this.errorCode=null;this.TX=this.U8="";this.qa=!1;this.F$=[];this.MI=this.qf=this.NW=this.VN=this.De=0;this.fetchType=null;this.hK=!0;this.transitionEndpointAtEndOfStream=void 0;this.Yd=this.UO=-1;this.A4=this.n7= !1;this.K7=null;this.zj="";this.Ys=!1;this.watchUrl=null;this.JY=[];this.visibleOnLoadKeys=[];this.Yw=[];this.inlineMetricEnabled=this.XI=!1;this.embedsRctn=this.embedsRct="";this.Sj=NaN;this.H4=(0,g.jR)();this.tG=this.SD=0;this.v5=null;this.xo=0;this.DY=this.aB=!1;this.Se=this.PN.experiments.pW("html5_use_triple_equals");this.Q1=!1;this.YC=g.eB(this.PN.experiments,"html5_gapless_loop_seek_offset_in_milli");this.pT=0;this.Ga={};this.Po={setData:function(I){b.setData(I)}, Sc:function(){b.Sc()}}; this.n7=this.S("web_new_autonav_countdown");this.A4=this.S("web_new_big_thumbnail_endscreen");this.setData(J);this.ZT=new w_;g.k(this,this.ZT)}; g.O9=function(F,J,b){J&&J.cpn&&g.rQ(new g.hC("CPN provided in VideoData update",{t2_:J.cpn,UV:F.clientPlaybackNonce,T$j:b}));b?(M1(J),F.setData(J),DR(F)&&F.Sc()):(J=J||{},eSz(F,J),k$(F,J),KeG(F,J),F.publish("dataupdated"))}; KeG=function(F,J){F.fflags=u8(F.fflags,J.fflags);var b=J.iv_invideo_url;b&&(F.Jz=FK(b));F.LI=JC(F.LI,J.iv_ads_only);if(b=J.cta_conversion_urls)F.XE=b;F.isPharma=JC(F.isPharma,J.is_pharma);F.author=u8(F.author,J.author);F.zU=pFJ(J.ttsurl)||F.zU;F.OM=JC(F.OM,J.cc_asr);F.Om=u8(F.Om,J.channel_path);if(b=J.profile_picture)F.profilePicture=u8(F.profilePicture,b);F.videoCountText=u8(F.videoCountText,J.video_count_text);F.autonavState=b8(F.autonavState,J.autonav_state,g8z);if(F.S("html5_enable_ssap_entity_id")){var I; b=!!J.cotn||!((I=F.playerResponse)==null||!I.cotn);I=g.eB(F.PN.experiments,"html5_entity_id_simplified_preferred_record_size");F.playerResponse&&!b&&(F.clientPlaybackNonce=mEm(F,F.playerResponse,I)||F.clientPlaybackNonce);F.clientPlaybackNonce||(J.cpn&&F.fQ("ssei","uhdc"),F.clientPlaybackNonce=u8(F.clientPlaybackNonce,J.cpn))}else F.clientPlaybackNonce=u8(F.clientPlaybackNonce,J.cpn);F.subscribed=JC(F.subscribed,J.subscribed);F.rawViewCount=Ig(F.rawViewCount,J.view_count);F.shortViewCount=u8(F.shortViewCount, J.short_view_count_text);F.publishedTimeText=u8(F.publishedTimeText||"",J.publishedTimeText);F.lengthText=u8(F.lengthText||"",J.lengthText);F.VF=u8(F.VF||"",J.VF);F.lH=u8(F.lH||"",J.lH);F.title=u8(F.title,J.title);F.subtitle=u8(F.subtitle,J.subtitle);F.expandedTitle=u8(F.expandedTitle,J.expanded_title);F.expandedSubtitle=u8(F.expandedSubtitle,J.expanded_subtitle);F.ypcPreview=u8(F.ypcPreview,J.ypc_preview);F.P$=u8(F.P$,J.ypc_origin);F.Lv=JC(F.Lv,J.ypc_is_premiere_trailer);F.Vc=u8(F.Vc,J.ypc_clickwrap_message); F.paygated=JC(F.paygated,J.paygated);F.Md=JC(F.Md,J.requires_purchase);F.showShareButton=!JC(!F.showShareButton,J.ss);F.YH=JC(F.YH,J.showwatchlater);F.Ok=JC(F.Ok,J.shownotifybutton);F.lJ=JC(F.lJ,J.copy_share);if(I=J.el)F.eventLabel=I;if(I=J.keywords)F.keywords=yIY(I.split(","));if(I=J.rvs)F.suggestions=JR(I).map(function(u){return u.playlist||u.list||u.api?new g.zt(F.PN,u):new g.NF(F.PN,u)}); F.contentCheckOk=JC(F.contentCheckOk,J.cco);F.racyCheckOk=JC(F.racyCheckOk,J.rco);F.isLivingRoomDeeplink=JC(F.isLivingRoomDeeplink,J.is_living_room_deeplink);F.oauthToken=u8(F.oauthToken,J.oauth_token);F.Um=u8(F.Um,J.kpt);F.visitorData=u8(F.visitorData,J.visitor_data);if(I=J.session_data)F.sessionData=HT(I,"&");F.uK=u8(F.uK,J.endscreen_ad_tracking_data);F.yC=JC(F.yC,J.wait_for_vast_info_cards_xml);F.m_=JC(F.m_,J.suppress_creator_endscreen);F.R1=JC(F.R1,J.is_trueview_action);F.Bi=u8(F.Bi,J.tracking_list); F.U8=u8(F.U8,J.clip);F.TX=u8(F.TX,J.clipt);iU3(F,J)}; mEm=function(F,J,b){var I,u=(I=J.cpnInfo)==null?void 0:I.cpn;F.playerResponseCpn=u!=null?u:"";g.oH(F)&&!u&&F.fQ("ssei","eim_"+F.clientPlaybackNonce);var w;return((w=J.cacheMetadata)==null?0:w.isCacheHit)||F.Ta||!u?"":(hi.has(u)?b="":(J=zSC.push(u),hi.add(u),J>(b!=null?b:50)&&(b=zSC.shift())&&hi.delete(b),b=u),u!==b&&F.fQ("ssei","dcpn_"+u+"_"+b+"_"+F.clientPlaybackNonce),b)}; k$=function(F,J){var b=J.raw_watch_next_response;if(!b){var I=J.watch_next_response;I&&(b=JSON.parse(I))}if(b){F.dD=b;var u=F.dD.playerCueRangeSet;u&&g.cC(F,u);var w=F.dD.playerOverlays;if(w){var M=w.playerOverlayRenderer;if(M){var q=M.autonavToggle;q&&(F.autoplaySwitchButtonRenderer=g.O(q,Ncv),F.S("web_player_autonav_use_server_provided_state")&&U9(F)&&(F.autonavState=F.autoplaySwitchButtonRenderer.enabled?2:1));var v=M.videoDetails;if(v){var a=v.embeddedPlayerOverlayVideoDetailsRenderer;var e=v.playerOverlayVideoDetailsRenderer; e&&(e.title&&(J.title=g.Kr(e.title)),e.subtitle&&(J.subtitle=g.Kr(e.subtitle)))}g.Bu(F.PN)&&(F.YH=!!M.addToMenu);lpC(F,M.shareButton);M.startPosition&&M.endPosition&&(F.progressBarStartPosition=M.startPosition,F.progressBarEndPosition=M.endPosition);var K=M.gatedActionsOverlayRenderer;K&&(F.er=g.O(K,fpJ));var p,m,y,f=g.O((p=F.getWatchNextResponse())==null?void 0:(m=p.playerOverlays)==null?void 0:(y=m.playerOverlayRenderer)==null?void 0:y.infoPanel,Wea);if(f){F.Sj=Number(f==null?void 0:f.durationMs)|| NaN;if(f==null?0:f.infoPanelOverviewViewModel)F.xH=f==null?void 0:f.infoPanelOverviewViewModel;if(f==null?0:f.infoPanelDetailsViewModel)F.R5=f==null?void 0:f.infoPanelDetailsViewModel}F.showSeekingControls=!!M.showSeekingControls}}var d,G,P=(d=F.getWatchNextResponse())==null?void 0:(G=d.contents)==null?void 0:G.twoColumnWatchNextResults;if(P){var r=P.desktopOverlay&&g.O(P.desktopOverlay,dEC);r&&(r.suppressShareButton&&(F.showShareButton=!1),r.suppressWatchLaterButton&&(F.YH=!1))}a&&E8_(F,J,a);var Q= Ig(0,J.autoplay_count),D=F.getWatchNextResponse(),t,n=(t=D.contents)==null?void 0:t.twoColumnWatchNextResults,uk,AJ,F7,h=(uk=D.playerOverlays)==null?void 0:(AJ=uk.playerOverlayRenderer)==null?void 0:(F7=AJ.autoplay)==null?void 0:F7.playerOverlayAutoplayRenderer,L=oA3(F),l,c=(l=D.contents)==null?void 0:l.singleColumnWatchNextResults;if(c){var Da;if(((Da=c.autoplay)==null?0:Da.autoplay)&&!c.playlist){var fz=c.autoplay.autoplay.sets,Kz={},Vz=new g.NF(F.J()),Za=null,Ib;if(fz){for(var yU=g.N(fz),E=yU.next();!E.done;E= yU.next()){var V=E.value.autoplayVideoRenderer;if(V&&V.compactVideoRenderer){Za=V.compactVideoRenderer;break}}if(Ib=fz[0].autoplayVideo){var B=Ib.clickTrackingParams;B&&(Kz.itct=B);Kz.autonav="1";Kz.playnext=String(Q)}}else Kz.feature="related-auto";var Y=g.O(Ib,g.x$);if(Za){Vz.videoId=Za.videoId;var X=Za.shortBylineText;X&&(Vz.author=g.Kr(X));var JJ=Za.title;JJ&&(Vz.title=g.Kr(JJ))}else Y!=null&&Y.videoId&&(Vz.videoId=Y.videoId);Vz.U5=Kz;F.suggestions=[];F.N6=Vz}}if(L){for(var wY=[],M4=g.N(L),C= M4.next();!C.done;C=M4.next()){var ez=C.value,yz=void 0,va=null;if(ez.endScreenVideoRenderer){var rY=ez.endScreenVideoRenderer,pz=rY.title;va=new g.NF(F.J());va.videoId=rY.videoId;va.lengthSeconds=rY.lengthInSeconds||0;var QU=rY.publishedTimeText;QU&&(va.publishedTimeText=g.Kr(QU));var Kf=rY.shortBylineText;Kf&&(va.author=g.Kr(Kf));var hJ=rY.shortViewCountText;hJ&&(va.shortViewCount=g.Kr(hJ));if(pz){va.title=g.Kr(pz);var QI=pz.accessibility;if(QI){var qX=QI.accessibilityData;qX&&qX.label&&(va.ariaLabel= qX.label)}}var rU=rY.navigationEndpoint;if(rU){yz=rU.clickTrackingParams;var of=g.O(rU,g.x$),af=g.O(rU,g.S0);of?va.Te=of:af!=null&&(va.watchUrl=af.url)}var oD=rY.thumbnailOverlays;if(oD)for(var Ry=g.N(oD),h6=Ry.next();!h6.done;h6=Ry.next()){var lB=h6.value.thumbnailOverlayTimeStatusRenderer;if(lB)if(lB.style==="LIVE"){va.isLivePlayback=!0;break}else if(lB.style==="UPCOMING"){va.isUpcoming=!0;break}}va.N=pC(rY.thumbnail)}else if(ez.endScreenPlaylistRenderer){var eq=ez.endScreenPlaylistRenderer,rb= eq.navigationEndpoint;if(!rb)continue;var pI=g.O(rb,g.x$);if(!pI)continue;var SP=pI.videoId;va=new g.zt(F.J());va.playlistId=eq.playlistId;va.playlistLength=Number(eq.videoCount)||0;va.C=SP||null;va.videoId=SP;var s4=eq.title;s4&&(va.title=g.Kr(s4));var Yo=eq.shortBylineText;Yo&&(va.author=g.Kr(Yo));yz=rb.clickTrackingParams;va.N=pC(eq.thumbnail)}va&&(yz&&(va.sessionData={itct:yz}),wY.push(va))}F.suggestions=wY}if(h){F.hK=!!h.preferImmediateRedirect;F.n7=F.n7||!!h.webShowNewAutonavCountdown;F.A4= F.A4||!!h.webShowBigThumbnailEndscreen;if(F.n7||F.A4){var PR=n||null,HW=new g.NF(F.J());HW.videoId=h.videoId;var cz=h.videoTitle;if(cz){HW.title=g.Kr(cz);var Iy=cz.accessibility;if(Iy){var WQ=Iy.accessibilityData;WQ&&WQ.label&&(HW.ariaLabel=WQ.label)}}var CX=h.byline;CX&&(HW.author=g.Kr(CX));var pf=h.publishedTimeText;pf&&(HW.publishedTimeText=g.Kr(pf));var pB=h.shortViewCountText;pB&&(HW.shortViewCount=g.Kr(pB));var gu=h.thumbnailOverlays;if(gu)for(var m4=g.N(gu),Jo=m4.next();!Jo.done;Jo=m4.next()){var wj= Jo.value.thumbnailOverlayTimeStatusRenderer;if(wj)if(wj.style==="LIVE"){HW.isLivePlayback=!0;break}else if(wj.style==="UPCOMING"){HW.isUpcoming=!0;break}else if(wj.style==="DEFAULT"&&wj.text){HW.lengthText=g.Kr(wj.text);var bq=wj.text.accessibility;if(bq){var Ir=bq.accessibilityData;Ir&&Ir.label&&(HW.VF=Ir.label||"")}break}}HW.N=pC(h.background);var yh=h.nextButton;if(yh){var i1=yh.buttonRenderer;if(i1){var zn=i1.navigationEndpoint;if(zn){var Nt=g.O(zn,g.x$);Nt&&(HW.Te=Nt)}}}if(h.topBadges){var l1= h.topBadges[0];if(l1){var fB=g.O(l1,jk7);fB&&fB.style==="BADGE_STYLE_TYPE_PREMIUM"&&(HW.cwN=!0)}}var rS=h.alternativeTitle;rS&&(HW.lH=g.Kr(rS));var di={autonav:"1",playnext:String(Q)};HW.playlistId&&(di.autoplay="1");if(PR){var Si,hD,uq,We,wa=(Si=PR.autoplay)==null?void 0:(hD=Si.autoplay)==null?void 0:(uq=hD.sets)==null?void 0:(We=uq[0])==null?void 0:We.autoplayVideo;if(wa){var du=wa.clickTrackingParams;du&&(di.itct=du);var MG=g.O(wa,g.x$);MG&&(HW.TD=MG)}}else if(h){var Eo,js,Gn,Vh=(Eo=h.nextButton)== null?void 0:(js=Eo.buttonRenderer)==null?void 0:(Gn=js.navigationEndpoint)==null?void 0:Gn.clickTrackingParams;Vh&&(di.itct=Vh)}di.itct||(di.feature="related-auto");HW.U5=di;F.suggestions||(F.suggestions=[]);F.N6=HW}h.countDownSecs!=null&&(F.UO=h.countDownSecs*1E3);h.countDownSecsForFullscreen!=null&&(F.Yd=h.countDownSecsForFullscreen>=0?h.countDownSecsForFullscreen*1E3:-1);F.S("web_autonav_color_transition")&&h.watchToWatchTransitionRenderer&&(F.watchToWatchTransitionRenderer=g.O(h.watchToWatchTransitionRenderer, GXz))}var Ao=oA3(F);if(Ao){var Pe,sW,Be,qG=Ao==null?void 0:(Pe=Ao[0])==null?void 0:(sW=Pe.endScreenVideoRenderer)==null?void 0:(Be=sW.navigationEndpoint)==null?void 0:Be.clickTrackingParams,Tn=g.nC(F);qG&&Tn&&(Tn.sessionData={itct:qG})}F.dD.currentVideoThumbnail&&(F.N=pC(F.dD.currentVideoThumbnail));var ru,jf,lP,GM,vf,yn=(ru=F.dD)==null?void 0:(jf=ru.contents)==null?void 0:(lP=jf.twoColumnWatchNextResults)==null?void 0:(GM=lP.results)==null?void 0:(vf=GM.results)==null?void 0:vf.contents;if(yn&&yn[1]){var iC, zS,Ss,MB,NK=(iC=yn[1].videoSecondaryInfoRenderer)==null?void 0:(zS=iC.owner)==null?void 0:(Ss=zS.videoOwnerRenderer)==null?void 0:(MB=Ss.thumbnail)==null?void 0:MB.thumbnails;NK&&NK.length&&(F.profilePicture=NK[NK.length-1].url)}var Ys=M1(J),so,$o=(so=F.getWatchNextResponse())==null?void 0:so.onResponseReceivedEndpoints;if($o)for(var Yn=g.N($o),ar=Yn.next();!ar.done;ar=Yn.next()){var el=ar.value;g.O(el,ti)&&(F.qH=g.O(el,ti));var AW=g.O(el,V57),$n=void 0;if(($n=AW)==null?0:$n.entityKeys)F.JY=AW.entityKeys|| [],AW.visibleOnLoadKeys&&(F.visibleOnLoadKeys=AW.visibleOnLoadKeys)}if(F.S("web_key_moments_markers")){var CY=g.ZR.getState().entities,CB=g.Ms("visibility_override","markersVisibilityOverrideEntity");var X$=qs(CY,"markersVisibilityOverrideEntity",CB);F.cN=(X$==null?void 0:X$.videoId)===(F.videoId||Ys)&&(X$==null?0:X$.visibilityOverrideMarkersKey)?X$.visibilityOverrideMarkersKey:F.visibleOnLoadKeys;F.visibleOnLoadKeys=[].concat(g.W(F.cN))}}}; U9=function(F){var J;return((J=F.autoplaySwitchButtonRenderer)==null?void 0:J.enabled)!==void 0}; HC=function(F){return!!(F.T&&F.T.videoInfos&&F.T.videoInfos.length)}; g.IU=function(F){var J=F.Y;F.S("html5_gapless_unlimit_format_selection")&&LC(F)&&(J=!1);var b=!!F.C&&F.C.MW,I=F.PN,u=F.rH(),w=Fc(F),M=F.Q2,q=J,v=F.isOtf();J=F.Bj();var a=F.nW,e=F.getUserAudio51Preference(),K=Jw(F),p=new JVm(I);if(I.hJ()||I.S("html5_logging_format_selection"))p.U=!0;p.Jz=w;p.Q2=M&&I.V;p.qf=e;g.D$("windows nt 5.1")&&!g.Yj&&(p.DX=!0);if(w=u)w=g.nH(I)?Jbk(I):!1;w&&(p.Gj=!0);q&&(p.DX=!0,p.MI=!0);v&&!I.S("html5_otf_prefer_vp9")&&(p.DX=!0);I.playerStyle==="picasaweb"&&(v&&(p.DX=!1),p.kQ= !1);a&&(p.DX=!0);g_(I.D,mp.CHANNELS)&&(I.S("html5_enable_aac51")&&(p.eE=!0),I.S("html5_enable_ac3")&&(p.Z=!0),I.S("html5_enable_eac3")&&(p.D=!0),I.S("html5_enable_ac3_gapless")&&(p.dD=!0));I.S("html5_block_8k_hfr")&&(p.nW=!0);p.W=g.eB(I.experiments,"html5_max_selectable_quality_ordinal");p.V=g.eB(I.experiments,"html5_min_selectable_quality_ordinal");tg&&(p.If=480);if(b||u)p.kQ=!1;p.bR=!1;p.disableAv1=K;b=j$(I,p.C,void 0,p.disableAv1);b>0&&b<2160&&(Qh()||I.S("html5_format_hybridization"))&&(p.C.supportsChangeType= +Qh(),p.hN=b);b>=2160&&(p.fW=!0);PLY()&&(p.C.serveVp9OverAv1IfHigherRes=0,p.Se=!1);p.Bj=J;p.KW=g.c$||Ll()&&!J?!1:!0;p.Y=I.S("html5_format_hybridization");p.Om=I.S("html5_disable_encrypted_vp9_live_non_2k_4k");bE(F)&&(p.T1=F.S("html5_prefer_language_over_codec"));oR()&&F.playerResponse&&F.playerResponse.playerConfig&&F.playerResponse.playerConfig.webPlayerConfig&&F.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(p.Z=!0,p.D=!0);F.Y&&F.isAd()&&(F.aX&&(p.Tj=F.aX),F.nI&&(p.T= F.nI));p.zj=F.isLivePlayback&&F.So()&&F.PN.S("html5_drm_live_audio_51");p.Um=F.sK;return F.K7=p}; Jw=function(F){return F.PN.S("html5_disable_av1")||F.S("html5_gapless_shorts_disable_av1")&&LC(F)?!0:!1}; PMz=function(F){XH("drm_pb_s",void 0,F.zj);F.oI||F.C&&vd(F.C);var J={};F.C&&(J=DC7(F.ZT,g.IU(F),F.PN.D,F.C,function(b){return F.publish("ctmp","fmtflt",b)},!0,new Set)); J=new kj(J,F.PN,F.Km,F.useCobaltWidevine?oR()?uE(F):!1:!1,function(b,I){F.UQ(b,I)}); g.k(F,J);F.b1=!1;F.loading=!0;KSa(J,function(b){XH("drm_pb_f",void 0,F.zj);for(var I=g.N(b),u=I.next();!u.done;u=I.next())switch(u=u.value,u.flavor){case "fairplay":u.oI=F.oI;u.xA=F.xA;u.Ao=F.Ao;break;case "widevine":u.fD=F.fD}F.v0=b;if(F.v0.length>0&&(F.D=F.v0[0],F.PN.hJ())){b={};I=g.N(Object.entries(F.D.C));for(u=I.next();!u.done;u=I.next()){var w=g.N(u.value);u=w.next().value;w=w.next().value;var M="unk";(u=u.match(/(.*)codecs="(.*)"/))&&(M=u[2]);b[M]=w}F.UQ("drmProbe",b)}F.Sc()})}; Bca=function(F,J){if(J.length===0||wS(F))return null;Mb(F,"html5_enable_cobalt_experimental_vp9_decoder")&&(WG=!0);var b=F.Ke;var I=F.lengthSeconds,u=F.isLivePlayback,w=F.SF,M=F.PN,q=Rgz(J);if(u||w){M=M.experiments;I=new Ag("",M,!0);I.U=!w;I.MW=!0;I.isManifestless=!0;I.isLive=!w;I.SF=w;J=g.N(J);for(u=J.next();!u.done;u=J.next()){var v=u.value;u=aZ(v,b);q=Wd(v);q=KW(q.VP||v.url||"",q.Ou,q.s);var a=q.get("id");a&&a.includes("%7E")&&(I.N=!0);var e=void 0;a=(e=M)==null?void 0:e.pW("html5_max_known_end_time_rebase"); e=Number(v.targetDurationSec||5);v=Number(v.maxDvrDurationSec||14400);var K=Number(q.get("mindsq")||q.get("min_sq")||"0"),p=Number(q.get("maxdsq")||q.get("max_sq")||"0")||Infinity;I.De=I.De||K;I.VN=I.VN||p;var m=!Zf(u);q&&uI(I,new hM(q,u,{U2:e,Hu:m,jD:v,De:K,VN:p,gC:300,SF:w,jf:a}))}b=I}else if(q==="FORMAT_STREAM_TYPE_OTF"){I=I===void 0?0:I;w=new Ag("",M.experiments,!1);w.duration=I||0;M=g.N(J);for(I=M.next();!I.done;I=M.next())I=I.value,J=aZ(I,b,w.duration),u=Wd(I),(u=KW(u.VP||I.url||"",u.Ou,u.s))&& (J.streamType==="FORMAT_STREAM_TYPE_OTF"?uI(w,new c6(u,J,"sq/0")):uI(w,new Jg(u,J,jo(I.initRange),jo(I.indexRange))));w.isOtf=!0;b=w}else{I=I===void 0?0:I;w=new Ag("",M.experiments,!1);w.duration=I||0;M=g.N(J);for(I=M.next();!I.done;I=M.next())q=I.value,I=aZ(q,b,w.duration),J=jo(q.initRange),u=jo(q.indexRange),a=Wd(q),(q=KW(a.VP||q.url||"",a.Ou,a.s))&&uI(w,new Jg(q,I,J,u));b=w}w=F.isLivePlayback&&!F.SF&&!F.fW&&!F.isPremiere;F.S("html5_live_head_playable")&&(!Aw(F)&&w&&F.UQ("missingLiveHeadPlayable", {}),F.PN.Tj==="yt"&&(b.KW=!0));return b}; wS=function(F){return oR()?!uE(F):cx()?!(!F.oI||!F.S("html5_enable_safari_fairplay")&&Z1()):!1}; uE=function(F){return F.S("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.cC=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next())if(b=b.value,b.cueRangeSetIdentifier){var I=void 0;F.J5.set(b.cueRangeSetIdentifier,(I=b.playerCueRanges)!=null?I:[])}}; qb=function(F){return!(!F.C||!F.C.isManifestless)}; vE=function(F){return F.Se?F.isLowLatencyLiveStream&&F.C!=null&&yy(F.C)>=5:F.isLowLatencyLiveStream&&F.C!=void 0&&yy(F.C)>=5}; TcJ=function(F){return oR()&&uE(F)?!1:wS(F)&&(g.dX(F.PN)?!F.isLivePlayback:F.hlsvp)||!Z1()||F.Z1?!0:!1}; skm=function(F){F.loading=!0;F.MJ=!1;if(rIa(F))g.Fek(F.videoId).then(function(I){Sx4(F,I)}).then(function(){F.Sc()}); else{Hq(F.y6)||g.rQ(new g.hC("DASH MPD Origin invalid: ",F.y6));var J=F.y6,b=g.eB(F.PN.experiments,"dash_manifest_version")||4;J=g.Os(J,{mpd_version:b});F.isLowLatencyLiveStream&&F.latencyClass!=="NORMAL"||(J=g.Os(J,{pacing:0}));xtv(J,F.PN.experiments,F.isLivePlayback).then(function(I){F.iR()||(aU(F,I,!0),XH("mrc",void 0,F.zj),F.Sc())},function(I){F.iR()||(F.loading=!1,F.publish("dataloaderror",new E5("manifest.net.retryexhausted",{backend:"manifest", rc:I.status},1)))}); XH("mrs",void 0,F.zj)}}; Sx4=function(F,J){var b=J.map(function(v){return v.itag}),I; if((I=F.playerResponse)!=null&&I.streamingData){I=[];if(F.S("html5_offline_always_use_local_formats")){b=0;for(var u=g.N(J),w=u.next();!w.done;w=u.next()){w=w.value;var M=Object.assign({},w);M.signatureCipher="";I.push(M);M=g.N(F.playerResponse.streamingData.adaptiveFormats);for(var q=M.next();!q.done;q=M.next())if(q=q.value,w.itag===q.itag&&w.xtags===q.xtags){b+=1;break}}b<J.length&&F.UQ("offnpf",{prlen:b,lflen:J.length})}else for(u=g.N(F.playerResponse.streamingData.adaptiveFormats),M=u.next(), w={};!M.done;w={k_:void 0},M=u.next())if(w.k_=M.value,F.S("html5_fix_multi_audio_offline_playback"))for(M=g.N(J),q=M.next();!q.done;q=M.next())q=q.value,q.itag===w.k_.itag&&q.xtags===w.k_.xtags&&(w.k_=Object.assign({},w.k_),w.k_.url=J.find(function(v){return function(a){return a.itag===v.k_.itag}}(w)).url,w.k_.signatureCipher="",I.push(w.k_)); else b.includes(w.k_.itag)&&(w.k_=Object.assign({},w.k_),w.k_.url=J.find(function(v){return function(a){return a.itag===v.k_.itag}}(w)).url,w.k_.signatureCipher="",I.push(w.k_)); I.length<2&&F.UQ("offmlf",{len:I.length});J=Bca(F,I);Fc(F)&&HBm(J,!1);aU(F,J);F.UQ("dlr",{})}else F.UQ("offsdm",{cotn:F.CT?F.CT.cotn:"0",cpn:F.clientPlaybackNonce})}; YxY=function(F){var J;return!((J=F.PN.getWebPlayerContextConfig())==null||!J.enableProximaLowLatency)}; ei=function(F){if(!F.isProximaLatencyEligible)return 0;var J=Sv();return YxY(F)?2:J===1?1:F.S("html5_enable_proxima")?2:0}; aU=function(F,J,b){b=b===void 0?!1:b;F.IX=void 0;F.C=J;g.k(F,J);J.De=F.De;J.VN=F.VN;J.qf=F.qf;J.NW=F.NW;J.MI=F.MI;F.rZ&&(J.Y=new mc(F.rZ));(F.rH()||g.KY(F))&&F.kQ.push("webgl");F.C.isLive||(F.isLivePlayback=!1);var I=J.sourceUrl.split("/");if(F.Se?I.indexOf("manifest_duration")!==-1:I.indexOf("manifest_duration")!=-1)F.ZY=Number(I[I.indexOf("manifest_duration")+1]);if(J.U||J.isManifestless)J.subscribe("clienttemp",F.UQ,F),b?J.subscribe("refresh",F.OR,F):J.subscribe("cuepointsadded",F.Mu,F);vd(J)? F.b1=!0:oZ=void 0;F.fW&&(J.Z=F.fW,J.isLive=!0,F.isLivePlayback=!0);J.isPremiere=F.isPremiere;J.isLiveHeadPlayable=F.isLiveHeadPlayable}; CMk=function(F,J){var b=J||TcJ(F)||F.isExternallyHostedPodcast;if(!F.C||b)return F.UQ("skipDash",{dm:!!F.C,air:J,dd:F.Z1,mss:Z1(),"3pp":F.isExternallyHostedPodcast}),Tk();Fc(F)&&HBm(F.C,F.isLivePlayback);Mb(F,"html5_enable_cobalt_experimental_vp9_decoder")&&Ppa(F.PN.D);return r$().then(function(){return Oda(F.ZT,g.IU(F),F.PN.D,F.C,F.D,function(I){return F.publish("ctmp","fmtflt",I)},F.ws,bE(F)&&F.S("html5_enable_server_format_filter")).then(function(I){$E3(F,I); F.ZT.C=null;/^av/.test(F.clientPlaybackNonce)&&F.K7&&F.UQ("av1",F.K7.C)})})}; XF3=function(F,J){if(J&&F.hlsvp)return Tk();if(F.hlsFormats){J=pY(F.hlsFormats);var b;if(((b=F.K7)==null?0:b.U)&&J){b=[];for(var I=g.N(J),u=I.next();!u.done;u=I.next())b.push(u.value.itag);F.UQ("hlsfmt",{itags:b.join(".")})}F.dk=mhm(F.PN,J);b=F.clientPlaybackNonce;var w,M,q,v;return lMz(F.PN,F.isAd(),J,(v=(w=F.playerResponse)==null?void 0:(M=w.captions)==null?void 0:(q=M.playerCaptionsRenderer)==null?void 0:q.baseUrl)!=null?v:null,F.M0,b,function(a){return F.publish("ctmp","hlsflt",a)}).then(function(a){for(var e= 0,K=[],p=g.N(a),m=p.next();!m.done;m=p.next()){m=m.value; var y=void 0;K.push((y=m.getInfo())==null?void 0:y.itag);var f=y=void 0;((y=m.getInfo())==null?void 0:(f=y.audio)==null?void 0:f.numChannels)>e&&(e=m.getInfo().audio.numChannels)}e>2&&F.UQ("hlschl",{mn:e});var d;((d=F.K7)==null?0:d.U)&&F.UQ("hlsfmtaf",{itags:K.join(".")});var G;if(F.S("html5_enable_vp9_fairplay")&&((G=F.D)==null?0:S$(G)))for(F.UQ("drm",{sbdlfbk:1}),e=g.N(F.v0),K=e.next();!K.done;K=e.next())if(K=K.value,rd(K)){F.D=K;break}gS(F,a)})}return Tk()}; Qk_=function(F){if(F.isExternallyHostedPodcast&&F.IP){var J=pY(F.IP);if(!J[0])return Tk();F.FH=J[0];return dha(F.PN,J[0]).then(function(b){gS(F,b)})}return F.qh&&F.AK?Wqk(F.PN,F.isAd(),F.qh).then(function(b){gS(F,b)}):Tk()}; DEk=function(F){if(F.isExternallyHostedPodcast)return Tk();var J=pY(F.IP,F.dL);if(F.hlsvp){var b=apk(F.hlsvp,F.clientPlaybackNonce,F.M0);J.push(b)}return fMa(F.PN,F.isAd(),J,RSG(F)).then(function(I){gS(F,I)})}; $E3=function(F,J){F.T=J;if(F.T){J=g.N(F.T.videoInfos);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=b.containerType;I!==0&&(F.Nc[I]=b.id)}}m7(F);if(F.D&&F.T&&F.T.videoInfos&&!(F.T.videoInfos.length<=0)&&(J=t1(F.T.videoInfos[0]),F.D.flavor==="fairplay"!==J))for(b=g.N(F.v0),I=b.next();!I.done;I=b.next())if(I=I.value,J===(I.flavor==="fairplay")){F.D=I;break}}; gS=function(F,J){F.g9=J;$E3(F,new u9(g.EG(F.g9,function(b){return b.getInfo()})))}; RSG=function(F){var J={cpn:F.clientPlaybackNonce,c:F.PN.C.c,cver:F.PN.C.cver};F.Ac&&(J.ptk=F.Ac,J.oid=F.En,J.ptchn=F.MH,J.pltype=F.S4,F.s8&&(J.m=F.s8));return J}; g.yR=function(F){return wS(F)&&F.oI?(F={},F.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",F):F.U&&F.U.Ke||null}; kXa=function(F){var J=iE(F);return J&&J.text?g.Kr(J.text):F.paidContentOverlayText}; OU7=function(F){var J=iE(F);return J&&J.durationMs?L5(J.durationMs):F.paidContentOverlayDurationMs}; iE=function(F){var J,b,I;return F.playerResponse&&F.playerResponse.paidContentOverlay&&F.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.O((J=F.dD)==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.playerDisclosure,o8k)||null}; ze=function(F){var J="";if(F.LX)return F.LX;F.isLivePlayback&&(J=F.allowLiveDvr?"dvr":F.isPremiere?"lp":F.fW?"window":"live");F.SF&&(J="post");return J}; g.Nb=function(F,J){return typeof F.keywords[J]!=="string"?null:F.keywords[J]}; hSa=function(F){return!!F.pF||!!F.SY||!!F.N5||!!F.Uc||F.XJ||F.V.focEnabled||F.V.rmktEnabled}; g.lE=function(F){return!!(F.y6||F.IP||F.qh||F.hlsvp||F.wk())}; DR=function(F){if(F.S("html5_onesie")&&F.errorCode)return!1;var J=g.te(F.kQ,"ypc");F.ypcPreview&&(J=!1);return F.o8()&&!F.loading&&(g.lE(F)||g.te(F.kQ,"heartbeat")||J)}; pY=function(F,J){F=JR(F);var b={};if(J){J=g.N(J.split(","));for(var I=J.next();!I.done;I=J.next())(I=I.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(b[I[1]]={width:I[2],height:I[3]})}J=g.N(F);for(I=J.next();!I.done;I=J.next()){I=I.value;var u=b[I.itag];u&&(I.width=u.width,I.height=u.height)}return F}; m7=function(F){var J=F.getAvailableAudioTracks();J=J.concat(F.eB);for(var b=0;b<F.nT.length;b++)for(var I=F.nT[b],u=0;u<J.length;u++){var w=J[u],M=w.j3.id===I.audioTrackId;if(w.j3.isDefault&&b===F.oF||M){if(I.captionTrackIndices)for(M=0;M<I.captionTrackIndices.length;M++)w.captionTracks[M]=F.captionTracks[I.captionTrackIndices[M]];I.defaultCaptionTrackIndex!==void 0&&(w.T=F.captionTracks[I.defaultCaptionTrackIndex]);I.forcedCaptionTrackIndex!==void 0&&(w.C=F.captionTracks[I.forcedCaptionTrackIndex]); w.U=I.visibility||"UNKNOWN";w.captionsInitialState=I.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}; lpC=function(F,J){F.showShareButton=!!J;var b,I,u=((b=g.O(J,g.TX))==null?void 0:b.navigationEndpoint)||((I=g.O(J,g.TX))==null?void 0:I.command);u&&(F.lJ=!!g.O(u,cIz))}; eSz=function(F,J){var b=J.raw_embedded_player_response;if(!b){var I=J.embedded_player_response;I&&(b=JSON.parse(I))}b&&(F.yN=b);if(F.yN){F.embeddedPlayerConfig=F.yN.embeddedPlayerConfig||null;if(b=F.yN.videoFlags)b.playableInEmbed&&(F.allowEmbed=!0),b.isPrivate&&(F.isPrivate=!0),b.userDisplayName&&(J.user_display_name=b.userDisplayName),b.userDisplayImage&&(J.user_display_image=b.userDisplayImage);if(b=F.yN.embedPreview){b=b.thumbnailPreviewRenderer;Oik(F,b.controlBgHtml);if(I=b.defaultThumbnail)F.N= pC(I);F.S("embeds_web_enable_search_button")&&b.searchButton&&(I=g.O(b.searchButton,g.TX))&&(F.DG=g.O(I.navigationEndpoint,g.fY));(I=g.O(b==null?void 0:b.videoDetails,UEm))&&E8_(F,J,I);I=g.O(b==null?void 0:b.videoDetails,xEm);F.YH=!!b.addToWatchLaterButton;lpC(F,b.shareButton);if(I==null?0:I.musicVideoType)F.musicVideoType=I.musicVideoType;var u,w,M,q,v;if(I=g.O((u=F.getEmbeddedPlayerResponse())==null?void 0:(w=u.embedPreview)==null?void 0:(M=w.thumbnailPreviewRenderer)==null?void 0:(q=M.playButton)== null?void 0:(v=q.buttonRenderer)==null?void 0:v.navigationEndpoint,g.x$))Vj3(F,I),F.videoId=I.videoId||F.videoId;b.videoDurationSeconds&&(F.lengthSeconds=L5(b.videoDurationSeconds));b.webPlayerActionsPorting&&kJ4(F,b.webPlayerActionsPorting);if(u=g.O(b==null?void 0:b.playlist,n8C)){F.Ar=!0;w=[];M=Number(u.currentIndex);if(u.contents)for(q=0,v=u.contents.length;q<v;q++)if(b=u.contents[q].playlistPanelVideoRenderer){I=b.shortBylineText?g.Kr(b.shortBylineText):"";var a=b.title?g.Kr(b.title):"";w.push({author:I, encrypted_id:b.videoId,title:a,channel_path:q===M?J.channel_path:"",profile_picture:q===M?J.profile_picture:"",is_private:q===M?F.isPrivate:!0,is_dni:q===M?F.T0:!1,dni_color:q===M?F.RV:""})}J={index:u.currentIndex,list:u.playlistId,playlist_length:u.totalVideos,video:w};u.titleText&&(J.title=g.Kr(u.titleText));u.shortBylineText&&(J.author=g.Kr(u.shortBylineText));F.w7=J}var e,K,p;if(J=g.O((e=F.getEmbeddedPlayerResponse())==null?void 0:(K=e.embedPreview)==null?void 0:(p=K.thumbnailPreviewRenderer)== null?void 0:p.infoPanel,Wea)){F.Sj=Number(J==null?void 0:J.durationMs)||NaN;if(J==null?0:J.infoPanelOverviewViewModel)F.xH=J==null?void 0:J.infoPanelOverviewViewModel;if(J==null?0:J.infoPanelDetailsViewModel)F.R5=J==null?void 0:J.infoPanelDetailsViewModel}}if(F.yN.previewPlayabilityStatus){if(F.Op=F.yN.previewPlayabilityStatus,e=F.Op,!["OK","LIVE_STREAM_OFFLINE"].includes(e.status)){F.errorCode=jSa(e.errorCode);K=e.errorScreen;if(p=K==null?void 0:K.playerErrorMessageRenderer){F.O5=p;if(J=p.reason)F.errorReason= g.Kr(J);if(p=p.subreason)F.yx=g.Kr(p)}else F.errorReason=e.reason||null;switch(e.status){case "LOGIN_REQUIRED":F.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":F.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var m;(K==null?0:(m=K.playerKavRenderer)==null?0:m.kavUrl)?F.errorDetail="4":F.errorDetail="3";break;default:F.errorDetail=e.isBlockedInRestrictedMode?"5":"0"}}}else F.yN.playabilityStatus&&(F.Dc=F.yN.playabilityStatus,t54(F)&&(F.errorDetail="0",F.Dc&&((m=F.Dc.embeddedPlayerErrorMessageRenderer)? F.O5=g.O(m,ZUY):F.errorReason=F.Dc.reason||null)));(m=F.yN.attestation)&&Cg3(F,m);(m=F.yN.permissions)&&m.allowImaMonetization&&(F.allowImaMonetization=!0)}}; E8_=function(F,J,b){var I=b.channelThumbnail;I&&(I=I.thumbnails)&&(I=I[0])&&(J.profile_picture=I.url);var u;if(I=g.O((u=g.O(b==null?void 0:b.channelThumbnailEndpoint,HUJ))==null?void 0:u.urlEndpoint,g.S0))J.channel_path=I.url;if(u=b.collapsedRenderer)if(u=g.O(u,Lez)){if(I=u.title)J.title=g.Kr(I);if(u=u.subtitle)J.subtitle=g.Kr(u)}if(b=b.expandedRenderer)if(b=g.O(b,FzY)){if(u=b.title)J.expanded_title=g.Kr(u);if(u=b.subtitle)J.expanded_subtitle=g.Kr(u);if(b=b.subscribeButton)F.subscribeButtonRenderer= g.O(b,g.WE),F.subscribeButtonRenderer&&(J.ucid=F.subscribeButtonRenderer.channelId,J.subscribed=F.subscribeButtonRenderer.subscribed,F.Ok=!!F.subscribeButtonRenderer.notificationPreferenceToggleButton,F.subscribeButtonRenderer.notificationPreferenceToggleButton&&F.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(J=F.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,J.isToggled?(F.wI=J.toggledServiceEndpoint||null,F.Ie=J.defaultServiceEndpoint|| null):(F.wI=J.defaultServiceEndpoint||null,F.Ie=J.toggledServiceEndpoint||null)))}}; g.dS=function(F){return Aw(F)&&!F.allowLiveDvr}; EW=function(F){return Aw(F)&&F.allowLiveDvr}; Aw=function(F){return F.S("html5_live_head_playable")&&qb(F)&&F.PN.Tj==="yt"?F.isLiveHeadPlayable:F.isLivePlayback}; g.ji=function(F){return!!F.C&&Tua(F.C)}; g.Ge=function(F){return!!F.C&&rGC(F.C)}; g.VR=function(F){return!!F.C&&Soo(F.C)}; g.KY=function(F){return!!F.C&&slC(F.C)}; g.Jc_=function(F){if(F.m_)return null;var J=F.On;J||(J=F.playerResponse&&F.playerResponse.endscreen&&F.playerResponse.endscreen.endscreenUrlRenderer&&F.playerResponse.endscreen.endscreenUrlRenderer.url);return J||null}; g.bm7=function(F){return F.m_?null:F.playerResponse&&F.playerResponse.endscreen&&F.playerResponse.endscreen.endscreenRenderer||null}; g.PE=function(F){return F.S("enable_wn_infocards")}; g.BE=function(F){var J,b,I,u;return(g.PE(F)?(J=F.dD)==null?void 0:(b=J.cards)==null?void 0:b.cardCollectionRenderer:(I=F.playerResponse)==null?void 0:(u=I.cards)==null?void 0:u.cardCollectionRenderer)||null}; g.Te=function(F){if(!F.playerResponse||!F.playerResponse.annotations)return null;F=g.N(F.playerResponse.annotations);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.playerAnnotationsExpandedRenderer&&J.playerAnnotationsExpandedRenderer.featuredChannel)return J.playerAnnotationsExpandedRenderer;return null}; $s=function(F){return F.adFormat&&(F.Se?F.adFormat!=="1_5":F.adFormat!="1_5")?"adunit":F.eventLabel||F.PN.WN}; g.Xc=function(F){return $s(F)==="shortspage"}; LC=function(F){return F.yM()&&F.J().supportsGaplessShorts()}; QR=function(F){if(F.isAd()&&(F.Se?F.videoId!==F.PN.xm:F.videoId!=F.PN.xm))return F.PN.xm}; RU=function(F){return F.NJ||$s(F)==="detailpage"||$s(F)==="shortspage"||F.mutedAutoplay}; Dh=function(F){var J=(J=F.S("enable_cleanup_masthead_autoplay_hack_fix"))&&$s(F)==="adunit"?F.dK:RU(F)?$s(F)==="detailpage"||$s(F)==="shortspage"?F.isAutonav||F.T1>0:J||F.adFormat!=="17_8"||F.isAutonav||g.U7(F.PN)||F.dK?F.GU?!1:F.PN.IP||F.PN.D4||!g.dN(F.PN)?!J&&$s(F)==="adunit"&&F.pF?!1:!0:!1:!1:(F.GU?0:F.Vk)&&g.dN(F.PN)?!0:!1;F.S("html5_log_detailpage_autoplay")&&$s(F)==="detailpage"&&F.UQ("autoplay_info",{autoplay:F.NJ,autonav:F.isAutonav,wasDompaused:F.GU,result:J});return J}; g.ks=function(F){return F.oauthToken||F.PN.pF}; uZ_=function(F){if(F.S("html5_stateful_audio_normalization")){var J=1,b=g.eB(F.PN.experiments,"html5_default_ad_gain");b&&F.isAd()&&(J=b);var I;if(b=((I=F.Z)==null?void 0:I.audio.U)||F.e9){I=(0,g.jR)();F.c5=2;var u=I-F.PN.Gc<=F.maxStatefulTimeThresholdSec*1E3;F.applyStatefulNormalization&&u?F.c5=4:u||(F.PN.eB=Infinity,F.PN.Gc=NaN);u=(F.c5===4?g.AD(F.PN.eB,F.minimumLoudnessTargetLkfs,F.loudnessTargetLkfs):F.loudnessTargetLkfs)-b;if(F.c5!==4){var w,M,q,v,a=((w=F.playerResponse)==null?void 0:(M=w.playerConfig)== null?void 0:(q=M.audioConfig)==null?void 0:(v=q.loudnessNormalizationConfig)==null?void 0:v.statelessLoudnessAdjustmentGain)||0;u+=a}u=Math.min(u,0);F.preserveStatefulLoudnessTarget&&(F.PN.eB=b+u,F.PN.Gc=I);F=Math.min(1,Math.pow(10,u/20))||J}else F=IXa(F)}else F=IXa(F);return F}; IXa=function(F){var J=1,b=g.eB(F.PN.experiments,"html5_default_ad_gain");b&&F.isAd()&&(J=b);var I;if(b=((I=F.Z)==null?void 0:I.audio.T)||F.LF)F.c5=1;return Math.min(1,Math.pow(10,-b/20))||J}; Fc=function(F){var J=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],b=cG(F.PN)==="TVHTML5_SIMPLY"&&F.PN.C.ctheme==="MUSIC";F.D4||!g.sV(F.PN)&&!b||!J.includes(F.musicVideoType)&&!F.isExternallyHostedPodcast||(F.D4=!0);if(J=g.O6())J=/Starboard\/([0-9]+)/.exec(g.Bk()),J=(J?parseInt(J[1],10):NaN)<10;b=F.PN;b=(cG(b)==="TVHTML5_CAST"||cG(b)==="TVHTML5"&&(b.C.cver.startsWith("6.20130725")||b.C.cver.startsWith("6.20130726")))&&F.PN.C.ctheme==="MUSIC";var I;if(I=!F.D4)b||(b=F.PN,b=cG(b)=== "TVHTML5"&&b.C.cver.startsWith("7")),I=b;I&&!J&&(J=F.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",b=(F.S("cast_prefer_audio_only_for_atv_and_uploads")||F.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&F.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",J||b||F.isExternallyHostedPodcast)&&(F.D4=!0);return F.PN.deviceIsAudioOnly||F.D4&&F.PN.V}; g.wNC=function(F){var J;if(!(J=F.S("html5_enable_sabr_live_captions")&&F.MW()&&bE(F))){var b,I,u;J=((b=F.playerResponse)==null?void 0:(I=b.playerConfig)==null?void 0:(u=I.compositeVideoConfig)==null?void 0:u.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return J}; OW=function(F){var J,b,I;return!!((J=F.playerResponse)==null?0:(b=J.playerConfig)==null?0:(I=b.mediaCommonConfig)==null?0:I.splitScreenEligible)}; oU=function(F){var J;return!((J=F.playerResponse)==null||!J.compositePlayabilityStatus)}; Myk=function(F){return isNaN(F)?0:Math.max((Date.now()-F)/1E3-30,0)}; hw=function(F){return!(!F.qa||!F.PN.V)&&F.wk()}; Aca=function(F){return F.enablePreroll&&F.enableServerStitchedDai}; qpG=function(F){return F.DY&&!F.rZ}; bE=function(F){var J=F.S("html5_enable_sabr_on_drive")&&F.PN.Tj==="gd";if(F.Zt)return F.DY&&F.UQ("fds",{fds:!0},!0),!1;if(F.PN.Tj!=="yt"&&!J)return F.DY&&F.UQ("dsvn",{ns:F.PN.Tj},!0),!1;if(F.cotn||!F.C||F.C.isOtf||F.G4&&!F.S("html5_enable_sabr_csdai"))return!1;if(F.S("html5_use_sabr_requests_for_debugging"))return!0;if(F.DY&&F.rZ)return F.UQ("esfw",{usbc:F.DY,hsu:!!F.rZ},!0),!0;if(F.S("html5_remove_client_sabr_determination"))return!1;var b=!F.C.MW&&!F.So();J=b&&UD&&F.S("html5_enable_sabr_vod_streaming_xhr"); b=b&&!UD&&F.S("html5_enable_sabr_vod_non_streaming_xhr");var I=cE(F),u=F.S("html5_enable_sabr_drm_vod_streaming_xhr")&&UD&&F.So()&&!F.C.MW&&(F.Gc==="1"?!1:!0);(J=J||b||I||u)&&!F.rZ&&F.UQ("sabr",{loc:"m"},!0);return J&&!!F.rZ}; cE=function(F){var J;if(!(J=UD&&F.MW()&&F.So()&&(F.Gc==="1"?!1:!0)&&F.S("html5_sabr_live_drm_streaming_xhr"))){J=F.MW()&&!F.So()&&UD;var b=F.MW()&&F.latencyClass!=="ULTRALOW"&&!F.isLowLatencyLiveStream&&F.S("html5_sabr_live_normal_latency_streaming_xhr"),I=F.isLowLatencyLiveStream&&F.S("html5_sabr_live_low_latency_streaming_xhr"),u=F.latencyClass==="ULTRALOW"&&F.S("html5_sabr_live_ultra_low_latency_streaming_xhr");J=J&&(b||I||u)}b=J;J=F.enableServerStitchedDai&&b&&F.S("html5_enable_sabr_ssdai_streaming_xhr"); b=!F.enableServerStitchedDai&&b;I=F.MW()&&!UD&&F.S("html5_enable_sabr_live_non_streaming_xhr");F=UD&&(F.vV()||OW(F)&&F.S("html5_enable_sabr_for_lifa_eligible_streams"));return J||b||I||F}; g.oH=function(F){return F.TL&&bE(F)}; rIa=function(F){var J;if(J=!!F.cotn)J=F.videoId,J=!!J&&g.E9(J)===1;return J&&!F.qa}; g.UW=function(F){if(!F.C||!F.U||!F.Z)return!1;var J=F.C.C,b=!!J[F.U.id]&&Nv(J[F.U.id].gw.C);J=!!J[F.Z.id]&&Nv(J[F.Z.id].gw.C);return(F.U.itag==="0"||b)&&J}; xs=function(F){return F.Op?["OK","LIVE_STREAM_OFFLINE"].includes(F.Op.status):!0}; t54=function(F){return(F=F.Dc)&&F.showError?F.showError:!1}; Mb=function(F,J){return F.S(J)?!0:(F.fflags||"").includes(J+"=true")}; vf3=function(F){return F.S("html5_heartbeat_iff_heartbeat_params_filled")}; iU3=function(F,J){J.inlineMetricEnabled&&(F.inlineMetricEnabled=!0);J.playback_progress_0s_url&&(F.Uc=new cba(J));if(J=J.video_masthead_ad_quartile_urls)F.SY=J.quartile_0_url,F.Kw=J.quartile_25_url,F.tK=J.quartile_50_url,F.mD=J.quartile_75_url,F.z4=J.quartile_100_url,F.N5=J.quartile_0_urls,F.zP=J.quartile_25_urls,F.t5=J.quartile_50_urls,F.Fr=J.quartile_75_urls,F.VT=J.quartile_100_urls}; yIY=function(F){var J={};F=g.N(F);for(var b=F.next();!b.done;b=F.next()){b=b.value;var I=b.split("=");I.length===2?J[I[0]]=I[1]:J[b]=!0}return J}; pFJ=function(F){if(F){if(brv(F))return F;F=IUm(F);if(brv(F,!0))return F}return""}; g.aXG=function(F){return F.captionsLanguagePreference||F.PN.captionsLanguagePreference||g.Nb(F,"yt:cc_default_lang")||F.PN.Q2}; nY=function(F){return!(!F.isLivePlayback||!F.hasProgressBarBoundaries())}; g.nC=function(F){var J;return F.N6||((J=F.suggestions)==null?void 0:J[0])||null}; g.tw=function(F){return F.T0&&(F.S("embeds_enable_pfp_always_unbranded")||F.PN.mq)}; Zh=function(F,J){F.S("html5_log_autoplay_src")&&LC(F)&&F.UQ("apsrc",{src:J})}; g.HE=function(F){var J,b;return!!((J=F.embeddedPlayerConfig)==null?0:(b=J.embeddedPlayerFlags)==null?0:b.enableMusicUx)}; g.FE=function(F){var J=F.J(),b=g.LY(J),I=J.oI;(J.S("embeds_web_enable_iframe_api_send_full_embed_url")||J.S("embeds_web_enable_rcat_validation_in_havs")||J.S("embeds_enable_autoplay_and_visibility_signals"))&&g.Bu(J)&&(I&&(b.thirdParty=Object.assign({},b.thirdParty,{embedUrl:I})),rjz(b,F));if(I=F.WN)b.clickTracking={clickTrackingParams:I};I=b.client||{};var u="EMBED",w=$s(F);w==="leanback"?u="WATCH":J.S("gvi_channel_client_screen")&&w==="profilepage"?u="CHANNEL":F.nW?u="LIVE_MONITOR":w==="detailpage"? u="WATCH_FULL_SCREEN":w==="adunit"?u="ADUNIT":w==="sponsorshipsoffer"&&(u="UNKNOWN");I.clientScreen=u;if(J=F.kidsAppInfo)I.kidsAppInfo=JSON.parse(J);(u=F.mq)&&!J&&(I.kidsAppInfo={contentSettings:{ageUpMode:eGk[u]}});if(J=F.Vj)I.unpluggedAppInfo={enableFilterMode:!0};(u=F.unpluggedFilterModeType)&&!J&&(I.unpluggedAppInfo={filterModeType:KzG[u]});if(J=F.Tj)I.unpluggedLocationInfo=J;b.client=I;I=b.request||{};F.Ly&&(I.isPrefetch=!0);if(J=F.mdxEnvironment)I.mdxEnvironment=J;if(J=F.mdxControlMode)I.mdxControlMode= pN3[J];b.request=I;I=b.user||{};if(J=F.eE)I.credentialTransferTokens=[{token:J,scope:"VIDEO"}];if(J=F.Um)I.delegatePurchases={oauthToken:J},I.kidsParent={oauthToken:J};b.user=I;if(I=F.contextParams)b.activePlayers=[{playerContextParams:I}];if(F=F.clientScreenNonce)b.clientScreenNonce=F;return b}; g.LY=function(F){var J=g.UV(),b=J.client||{};if(F.forcedExperiments){var I=F.forcedExperiments.split(","),u=[];I=g.N(I);for(var w=I.next();!w.done;w=I.next())u.push(Number(w.value));b.experimentIds=u}if(u=F.homeGroupInfo)b.homeGroupInfo=JSON.parse(u);if(u=F.getPlayerType())b.playerType=u;if(u=F.C.ctheme)b.theme=u;if(u=F.livingRoomAppMode)b.tvAppInfo=Object.assign({},b.tvAppInfo,{livingRoomAppMode:u});u=F.deviceYear;F.S("html5_propagate_device_year")&&u&&(b.tvAppInfo=Object.assign({},b.tvAppInfo,{deviceYear:u})); if(u=F.livingRoomPoTokenId)b.tvAppInfo=Object.assign({},b.tvAppInfo,{livingRoomPoTokenId:u});J.client=b;b=J.user||{};F.enableSafetyMode&&(b=Object.assign({},b,{enableSafetyMode:!0}));F.pageId&&(b=Object.assign({},b,{onBehalfOfUser:F.pageId}));J.user=b;b=F.oI;F.S("embeds_web_enable_iframe_api_send_full_embed_url")||F.S("embeds_web_enable_rcat_validation_in_havs")||F.S("embeds_enable_autoplay_and_visibility_signals")||!b||(J.thirdParty={embedUrl:b});return J}; Nwz=function(F,J,b){var I=F.videoId,u=g.FE(F),w=F.J(),M={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(dP()),referer:document.location.toString(),signatureTimestamp:20138};g.Qe();F.isAutonav&&(M.autonav=!0);g.Rg(0,141)&&(M.autonavState=g.Rg(0,140)?"STATE_OFF":"STATE_ON");M.autoCaptionsDefaultOn=g.Rg(0,66);Dh(F)&&(M.autoplay=!0);w.V&&F.cycToken&&(M.cycToken=F.cycToken);w.enablePrivacyFilter&&(M.enablePrivacyFilter=!0);F.isFling&&(M.fling=!0);var q=F.forceAdsUrl;if(q){var v={},a=[];q=q.split(","); q=g.N(q);for(var e=q.next();!e.done;e=q.next()){e=e.value;var K=e.split("|");K.length!==3||e.includes("=")||(K[0]="breaktype="+K[0],K[1]="offset="+K[1],K[2]="url="+K[2]);e={adtype:"video_ad"};K=g.N(K);for(var p=K.next();!p.done;p=K.next()){var m=g.N(p.value.split("="));p=m.next().value;m=wao(m);e[p]=m.join("=")}K=e.url;p=e.presetad;m=e.viralresponseurl;var y=Number(e.campaignid);if(e.adtype==="in_display_ad")K&&(v.url=K),p&&(v.presetAd=p),m&&(v.viralAdResponseUrl=m),y&&(v.viralCampaignId=String(y)); else if(e.adtype==="video_ad"){var f={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(e.offset)||0)}};if(e=gfa[e.breaktype])f.breakType=e;K&&(f.url=K);p&&(f.presetAd=p);m&&(f.viralAdResponseUrl=m);y&&(f.viralCampaignId=String(y));a.push(f)}}M.forceAdParameters={videoAds:a,inDisplayAd:v}}F.isInlinePlaybackNoAd&&(M.isInlinePlaybackNoAd=!0);F.isLivingRoomDeeplink&&(M.isLivingRoomDeeplink=!0);v=F.IB;if(v!=null){v={startWalltime:String(v)};if(a=F.ZY)v.manifestDuration=String(a||14400);M.liveContext= v}if(F.mutedAutoplay&&(M.mutedAutoplay=!0,F.S("embeds_enable_full_length_inline_muted_autoplay"))){v=w.getWebPlayerContextConfig();var d,G;(v==null?0:(d=v.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode)&&(v==null?0:(G=v.embedsHostFlags)==null?0:G.allowMutedAutoplayDurationMode.includes(m0v[F.mutedAutoplayDurationMode]))&&(M.mutedAutoplayDurationMode=m0v[F.mutedAutoplayDurationMode])}if(F.GU?0:F.Vk)M.splay=!0;d=F.vnd;d===5&&(M.vnd=d);d={};if(G=F.isMdxPlayback)d.triggeredByMdx=G;if(G=F.lK)d.skippableAdsSupported= G.split(",").includes("ska");if(a=F.I6){G=F.vO;v=[];a=g.N(Shz(a));for(q=a.next();!q.done;q=a.next()){q=q.value;e=q.platform;q={applicationState:q.zB?"INACTIVE":"ACTIVE",clientFormFactor:ycC[e]||"UNKNOWN_FORM_FACTOR",clientName:Yh4[q.i$]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:imY[e]||"UNKNOWN_PLATFORM"};e={};if(G){K=void 0;try{K=JSON.parse(G)}catch(P){g.rQ(P)}K&&(e={params:[{key:"ms",value:K.ms}]},K.advertising_id&&(e.advertisingId=K.advertising_id),K.limit_ad_tracking!==void 0&& K.limit_ad_tracking!==null&&(e.limitAdTracking=K.limit_ad_tracking),q.osName=K.os_name,q.userAgent=K.user_agent,q.windowHeightPoints=K.window_height_points,q.windowWidthPoints=K.window_width_points)}v.push({adSignalsInfo:e,remoteClient:q})}d.remoteContexts=v}G=F.sourceContainerPlaylistId;v=F.serializedMdxMetadata;if(G||v)a={},G&&(a.mdxPlaybackContainerInfo={sourceContainerPlaylistId:G}),v&&(a.serializedMdxMetadata=v),d.mdxPlaybackSourceContext=a;M.mdxContext=d;d=J.width;d>0&&(M.playerWidthPixels= Math.round(d));if(J=J.height)M.playerHeightPixels=Math.round(J);b!==0&&(M.vis=b);if(b=w.widgetReferrer)M.widgetReferrer=b.substring(0,128);g.dN(w)&&M&&(M.ancestorOrigins=w.ancestorOrigins);F.defaultActiveSourceVideoId&&(M.compositeVideoContext={defaultActiveSourceVideoId:F.defaultActiveSourceVideoId});if(w=w.getWebPlayerContextConfig())M.encryptedHostFlags=w.encryptedHostFlags;I={videoId:I,context:u,playbackContext:{contentPlaybackContext:M}};F.reloadPlaybackParams&&(I.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:F.reloadPlaybackParams});F.contentCheckOk&&(I.contentCheckOk=!0);if(u=F.clientPlaybackNonce)I.cpn=u;if(u=F.playerParams)I.params=u;if(u=F.playlistId)I.playlistId=u;F.racyCheckOk&&(I.racyCheckOk=!0);u=F.J();if(M=u.embedConfig)I.serializedThirdPartyEmbedConfig=M;I.captionParams={};M=g.Rg(g.Qe(),65);F.deviceCaptionsOn!=null?I.captionParams.deviceCaptionsOn=F.deviceCaptionsOn:g.hP(u)&&(I.captionParams.deviceCaptionsOn=M!=null?!M:!1);F.Ch&&(I.captionParams.deviceCaptionsLangPref= F.Ch);F.Xc.length?I.captionParams.viewerSelectedCaptionLangs=F.Xc:g.hP(u)&&(M=g.Ca(),M==null?0:M.length)&&(I.captionParams.viewerSelectedCaptionLangs=M);M=F.fetchType==="onesie"&&F.S("html5_onesie_attach_po_token");w=F.fetchType!=="onesie"&&F.S("html5_non_onesie_attach_po_token");if(M||w)M=F.J(),M.jZ&&(I.serviceIntegrityDimensions={},I.serviceIntegrityDimensions.poToken=M.jZ);u.S("fetch_att_independently")&&(I.attestationRequest={omitBotguardData:!0});if(u.S("html5_enable_sabr_from_watch_server")|| u.S("html5_create_default_device_playback_capabilities")||u.S("html5_report_supports_vp9_encoding"))I.playbackContext||(I.playbackContext={}),I.playbackContext.devicePlaybackCapabilities=zGa(F),I.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&F.UQ("noVp9",{});return I}; zGa=function(F){var J=!(F==null?0:F.Bj())&&(F==null?void 0:F.MW())&&Ll(),b;if(b=F==null?0:F.S("html5_report_supports_vp9_encoding")){if(F==null)b=0;else{b=g.IU(F);F=F.J().D;var I=Ji("243");b=I?qv(b,I,F,!0)===!0:!1}b=b&&!J}return{supportsVp9Encoding:!!b,supportXhr:UD}}; fXC=function(F,J){var b,I,u;return g.S(function(w){if(w.C==1)return b={context:g.LY(F.J()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:F.videoId,cpn:F.clientPlaybackNonce}}]},I=g.ZI(lXY),g.T(w,g.cf(J,b,I),2);u=w.U;return w.return(u)})}; Wz_=function(F,J,b){var I=g.eB(J.experiments,"bg_vm_reinit_threshold");(!VA||(0,g.jR)()-VA>I)&&fXC(F,b).then(function(u){u&&(u=u.botguardData)&&g.TR(u,J)},function(u){F.iR()||(u=Gj(u),F.UQ("attf",u.details))})}; Ja=function(F,J){g.R.call(this);this.app=F;this.state=J}; Ij=function(F,J,b){F.state.C.hasOwnProperty(J)||by(F,J,b);F.state.V[J]=function(){return b.apply(F,g.Ba.apply(0,arguments))}; F.state.W.add(J)}; uy=function(F,J,b){F.state.C.hasOwnProperty(J)||by(F,J,b);F.app.J().V&&(F.state.Y[J]=function(){return b.apply(F,g.Ba.apply(0,arguments))},F.state.W.add(J))}; by=function(F,J,b){F.state.C[J]=function(){return b.apply(F,g.Ba.apply(0,arguments))}}; g.wO=function(F,J,b){return F.state.C[J].apply(F.state.C,g.W(b))}; MZ=function(){g.EJ.call(this);this.D=new Map}; Aa=function(){g.R.apply(this,arguments);this.element=null;this.W=new Set;this.V={};this.Y={};this.C={};this.N=new Set;this.T=new MZ;this.U=new MZ;this.Z=new MZ;this.D=new MZ}; d0_=function(F,J,b){typeof F==="string"&&(F={mediaContentUrl:F,startSeconds:J,suggestedQuality:b});a:{if((J=F.mediaContentUrl)&&(J=/\/([ve]|embed)\/([^#?]+)/.exec(J))&&J[2]){J=J[2];break a}J=null}F.videoId=J;return qZ(F)}; qZ=function(F,J,b){if(typeof F==="string")return{videoId:F,startSeconds:J,suggestedQuality:b};J={};b=g.N(Efm);for(var I=b.next();!I.done;I=b.next())I=I.value,F[I]&&(J[I]=F[I]);return J}; jnY=function(F,J,b,I){if(g.Um(F)&&!Array.isArray(F)){J="playlist list listType index startSeconds suggestedQuality".split(" ");b={};for(I=0;I<J.length;I++){var u=J[I];F[u]&&(b[u]=F[u])}return b}J={index:J,startSeconds:b,suggestedQuality:I};typeof F==="string"&&F.length===16?J.list="PL"+F:J.playlist=F;return J}; vp=function(){Ja.apply(this,arguments)}; Vyz=function(F){Ij(F,"cueVideoById",F.eg);Ij(F,"loadVideoById",F.rJj);Ij(F,"cueVideoByUrl",F.sS);Ij(F,"loadVideoByUrl",F.UW_);Ij(F,"playVideo",F.hxQ);Ij(F,"pauseVideo",F.pauseVideo);Ij(F,"stopVideo",F.Prz);Ij(F,"clearVideo",F.clearVideo);Ij(F,"getVideoBytesLoaded",F.xp);Ij(F,"getVideoBytesTotal",F.FG);Ij(F,"getVideoLoadedFraction",F.L2);Ij(F,"getVideoStartBytes",F.Ja);Ij(F,"cuePlaylist",F.cuePlaylist);Ij(F,"loadPlaylist",F.NDG);Ij(F,"nextVideo",F.h8_);Ij(F,"previousVideo",F.Yzf);Ij(F,"playVideoAt", F.VZz);Ij(F,"setShuffle",F.setShuffle);Ij(F,"setLoop",F.setLoop);Ij(F,"getPlaylist",F.VH);Ij(F,"getPlaylistIndex",F.getPlaylistIndex);Ij(F,"getPlaylistId",F.getPlaylistId);Ij(F,"loadModule",F.q9);Ij(F,"unloadModule",F.Gw);Ij(F,"setOption",F.kq);Ij(F,"getOption",F.MA);Ij(F,"getOptions",F.wA);Ij(F,"mute",F.V3G);Ij(F,"unMute",F.Fr_);Ij(F,"isMuted",F.isMuted);Ij(F,"setVolume",F.bdG);Ij(F,"getVolume",F.getVolume);Ij(F,"seekTo",F.VTI);Ij(F,"getPlayerMode",F.getPlayerMode);Ij(F,"getPlayerState",F.S5);Ij(F, "getAvailablePlaybackRates",F.getAvailablePlaybackRates);Ij(F,"getPlaybackQuality",function(){return F.getPlaybackQuality(1)}); Ij(F,"setPlaybackQuality",F.ywG);Ij(F,"getAvailableQualityLevels",F.Ps);Ij(F,"getCurrentTime",F.Ws);Ij(F,"getDuration",F.qA);Ij(F,"addEventListener",F.q3);Ij(F,"removeEventListener",F.ZdD);Ij(F,"getDebugText",F.Ob);Ij(F,"getVideoData",function(){return G2a(F)}); Ij(F,"addCueRange",F.A1);Ij(F,"removeCueRange",F.removeCueRange);Ij(F,"setSize",F.setSize);Ij(F,"getApiInterface",F.getApiInterface);Ij(F,"destroy",F.destroy);Ij(F,"mutedAutoplay",F.mutedAutoplay);var J=F.app.J();J.W||(Ij(F,"getVideoEmbedCode",F.getVideoEmbedCode),Ij(F,"getVideoUrl",F.pR));Ij(F,"getMediaReferenceTime",F.fR);Ij(F,"getSize",F.getSize);Ij(F,"setFauxFullscreen",F.B6_);J.W||Ij(F,"logImaAdEvent",F.logImaAdEvent);Ij(F,"preloadVideoById",F.oHN);Ij(F,"wakeUpControls",F.wakeUpControls)}; g.aj=function(F){return(F=PSC(F.app.TF()))?F.p8():null}; KE=function(F){var J=g.S8(F.app.J()),b,I=(b=F.app.getVideoData())==null?void 0:b.Ar;F=eV(F.app);return g.q1(J)&&!I||F?!1:!0}; G2a=function(F,J){var b={};if(J=F.app.F4(J===void 0?1:J)){J=J.getVideoData();if(J.isPrivate)return{};b.video_id=J.videoId;b.author=J.author;b.title=J.title;b.isPlayable=xs(J);b.errorCode=J.errorCode;if(J.U&&J.U.video){b.video_quality=J.U.video.quality;J=J.U.video;var I=[];J.fps>32&&I.push("hfr");J.isHdr()&&I.push("hdr");J.primaries==="bt2020"&&I.push("wcg");b.video_quality_features=I}}if(F=F.getPlaylistId())b.list=F;return b}; pE=function(){vp.apply(this,arguments)}; gO=function(F,J){var b={};if(F.app.J().eE){F=g.N(BwG);for(var I=F.next();!I.done;I=F.next())I=I.value,J.hasOwnProperty(I)&&(b[I]=J[I]);if(J=b.qoe_cat)F="",typeof J==="string"&&J.length>0&&(F=J.split(",").filter(function(u){return Tw4.includes(u)}).join(",")),b.qoe_cat=F; rcC(b)}else for(F=g.N(Spz),I=F.next();!I.done;I=F.next())I=I.value,J.hasOwnProperty(I)&&(b[I]=J[I]);return b}; rcC=function(F){var J=F.raw_player_response;if(!J){var b=F.player_response;b&&(J=JSON.parse(b))}delete F.player_response;delete F.raw_player_response;if(J){F.raw_player_response={streamingData:J.streamingData};var I;if((I=J.playbackTracking)==null?0:I.qoeUrl)F.raw_player_response=Object.assign({},F.raw_player_response,{playbackTracking:{qoeUrl:J.playbackTracking.qoeUrl}});var u;if((u=J.videoDetails)==null?0:u.videoId)F.raw_player_response=Object.assign({},F.raw_player_response,{videoDetails:{videoId:J.videoDetails.videoId}})}}; md=function(F,J,b){var I=F.app.Ze(b);if(!I)return 0;F=I-F.app.getCurrentTime(b);return J-F}; Ypm=function(F){var J=J===void 0?5:J;return F?snG[F]||J:J}; g.y_=function(){pE.apply(this,arguments)}; $0_=function(F){by(F,"getInternalApiInterface",F.getInternalApiInterface);by(F,"addEventListener",F.OC);by(F,"removeEventListener",F.esG);by(F,"cueVideoByPlayerVars",F.Zi);by(F,"loadVideoByPlayerVars",F.CTQ);by(F,"preloadVideoByPlayerVars",F.Jev);by(F,"getAdState",F.getAdState);by(F,"sendAbandonmentPing",F.sendAbandonmentPing);by(F,"setLoopRange",F.setLoopRange);by(F,"getLoopRange",F.getLoopRange);by(F,"setAutonavState",F.setAutonavState);by(F,"seekTo",F.HdR);by(F,"seekBy",F.QPG);by(F,"seekToLiveHead", F.seekToLiveHead);by(F,"requestSeekToWallTimeSeconds",F.requestSeekToWallTimeSeconds);by(F,"seekToStreamTime",F.seekToStreamTime);by(F,"startSeekCsiAction",F.startSeekCsiAction);by(F,"getStreamTimeOffset",F.getStreamTimeOffset);by(F,"getVideoData",F.Bs);by(F,"setInlinePreview",F.setInlinePreview);by(F,"getAppState",F.getAppState);by(F,"updateLastActiveTime",F.updateLastActiveTime);by(F,"setBlackout",F.setBlackout);by(F,"setUserEngagement",F.setUserEngagement);by(F,"updateSubtitlesUserSettings",F.updateSubtitlesUserSettings); by(F,"getPresentingPlayerType",F.eh);by(F,"canPlayType",F.canPlayType);by(F,"updatePlaylist",F.updatePlaylist);by(F,"updateVideoData",F.updateVideoData);by(F,"updateEnvironmentData",F.updateEnvironmentData);by(F,"sendVideoStatsEngageEvent",F.tTQ);by(F,"productsInVideoVisibilityUpdated",F.productsInVideoVisibilityUpdated);by(F,"setSafetyMode",F.setSafetyMode);by(F,"isAtLiveHead",function(J){return F.isAtLiveHead(void 0,J)}); by(F,"getVideoAspectRatio",F.getVideoAspectRatio);by(F,"getPreferredQuality",F.getPreferredQuality);by(F,"getPlaybackQualityLabel",F.getPlaybackQualityLabel);by(F,"setPlaybackQualityRange",F.pgI);by(F,"onAdUxClicked",F.onAdUxClicked);by(F,"getFeedbackProductData",F.getFeedbackProductData);by(F,"getStoryboardFrame",F.getStoryboardFrame);by(F,"getStoryboardFrameIndex",F.getStoryboardFrameIndex);by(F,"getStoryboardLevel",F.getStoryboardLevel);by(F,"getNumberOfStoryboardLevels",F.getNumberOfStoryboardLevels); by(F,"getCaptionWindowContainerId",F.getCaptionWindowContainerId);by(F,"getAvailableQualityLabels",F.getAvailableQualityLabels);by(F,"addCueRange",F.addCueRange);by(F,"addUtcCueRange",F.addUtcCueRange);by(F,"showAirplayPicker",F.showAirplayPicker);by(F,"dispatchReduxAction",F.dispatchReduxAction);by(F,"getPlayerResponse",F.lL);by(F,"getWatchNextResponse",F.Yp);by(F,"getHeartbeatResponse",F.D9);by(F,"getCurrentTime",F.gr);by(F,"getDuration",F.lO);by(F,"getPlayerState",F.getPlayerState);by(F,"getPlayerStateObject", F.QH);by(F,"getVideoLoadedFraction",F.getVideoLoadedFraction);by(F,"getProgressState",F.getProgressState);by(F,"getVolume",F.getVolume);by(F,"setVolume",F.WM);by(F,"isMuted",F.isMuted);by(F,"mute",F.Vs);by(F,"unMute",F.yZ);by(F,"loadModule",F.loadModule);by(F,"unloadModule",F.unloadModule);by(F,"getOption",F.vX);by(F,"getOptions",F.getOptions);by(F,"setOption",F.setOption);by(F,"loadVideoById",F.iZ);by(F,"loadVideoByUrl",F.M9);by(F,"playVideo",F.kB);by(F,"loadPlaylist",F.loadPlaylist);by(F,"nextVideo", F.nextVideo);by(F,"previousVideo",F.previousVideo);by(F,"playVideoAt",F.playVideoAt);by(F,"getDebugText",F.getDebugText);by(F,"getWebPlayerContextConfig",F.getWebPlayerContextConfig);by(F,"notifyShortsAdSwipeEvent",F.notifyShortsAdSwipeEvent);by(F,"getVideoContentRect",F.getVideoContentRect);by(F,"setSqueezeback",F.setSqueezeback);by(F,"toggleSubtitlesOn",F.toggleSubtitlesOn);by(F,"isSubtitlesOn",F.isSubtitlesOn);by(F,"reportPlaybackIssue",F.reportPlaybackIssue);by(F,"setAutonav",F.setAutonav);by(F, "isNotServable",F.isNotServable);by(F,"channelSubscribed",F.channelSubscribed);by(F,"channelUnsubscribed",F.channelUnsubscribed);by(F,"togglePictureInPicture",F.togglePictureInPicture);by(F,"supportsGaplessAudio",F.supportsGaplessAudio);by(F,"supportsGaplessShorts",F.supportsGaplessShorts);by(F,"enqueueVideoByPlayerVars",function(J){return void F.enqueueVideoByPlayerVars(J)}); by(F,"clearQueue",F.clearQueue);by(F,"getAudioTrack",F.XG);by(F,"setAudioTrack",F.xkW);by(F,"getAvailableAudioTracks",F.GG);by(F,"getMaxPlaybackQuality",F.getMaxPlaybackQuality);by(F,"getUserPlaybackQualityPreference",F.getUserPlaybackQualityPreference);by(F,"getSubtitlesUserSettings",F.getSubtitlesUserSettings);by(F,"resetSubtitlesUserSettings",F.resetSubtitlesUserSettings);by(F,"setMinimized",F.setMinimized);by(F,"setOverlayVisibility",F.setOverlayVisibility);by(F,"confirmYpcRental",F.confirmYpcRental); by(F,"queueNextVideo",F.queueNextVideo);by(F,"handleExternalCall",F.handleExternalCall);by(F,"logApiCall",F.logApiCall);by(F,"isExternalMethodAvailable",F.isExternalMethodAvailable);by(F,"setScreenLayer",F.setScreenLayer);by(F,"getCurrentPlaylistSequence",F.getCurrentPlaylistSequence);by(F,"getPlaylistSequenceForTime",F.getPlaylistSequenceForTime);by(F,"shouldSendVisibilityState",F.shouldSendVisibilityState);by(F,"syncVolume",F.syncVolume);by(F,"highlightSettingsMenuItem",F.highlightSettingsMenuItem); by(F,"openSettingsMenuItem",F.openSettingsMenuItem);by(F,"getEmbeddedPlayerResponse",F.getEmbeddedPlayerResponse);by(F,"getVisibilityState",F.getVisibilityState);by(F,"isMutedByMutedAutoplay",F.isMutedByMutedAutoplay);F.S("embeds_enable_emc3ds_muted_autoplay")&&by(F,"isMutedByEmbedsMutedAutoplay",F.isMutedByEmbedsMutedAutoplay);by(F,"setGlobalCrop",F.setGlobalCrop);by(F,"setInternalSize",F.setInternalSize);by(F,"setFauxFullscreen",F.setFauxFullscreen);by(F,"setAppFullscreen",F.setAppFullscreen)}; zP=function(F,J,b){F=g.iy(F.W1(),J);return b?(b.addOnDisposeCallback(F),null):F}; g.NZ=function(F,J,b){return F.app.J().xo?J:g.m8("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:J,SHORTCUT:b})}; CSz=function(F){F.W1().element.setAttribute("aria-live","polite")}; g.ly=function(F,J){g.y_.call(this,F,J);$0_(this);uy(this,"addEventListener",this.Dp);uy(this,"removeEventListener",this.Xg_);uy(this,"cueVideoByPlayerVars",this.XV);uy(this,"loadVideoByPlayerVars",this.wbG);uy(this,"preloadVideoByPlayerVars",this.yez);uy(this,"loadVideoById",this.iZ);uy(this,"loadVideoByUrl",this.M9);uy(this,"playVideo",this.kB);uy(this,"loadPlaylist",this.loadPlaylist);uy(this,"nextVideo",this.nextVideo);uy(this,"previousVideo",this.previousVideo);uy(this,"playVideoAt",this.playVideoAt); uy(this,"getVideoData",this.cX);uy(this,"seekBy",this.SoG);uy(this,"seekTo",this.hsQ);uy(this,"showControls",this.showControls);uy(this,"hideControls",this.hideControls);uy(this,"cancelPlayback",this.cancelPlayback);uy(this,"getProgressState",this.getProgressState);uy(this,"isInline",this.isInline);uy(this,"setInline",this.setInline);uy(this,"setLoopVideo",this.setLoopVideo);uy(this,"getLoopVideo",this.getLoopVideo);uy(this,"getVideoContentRect",this.getVideoContentRect);uy(this,"getVideoStats",this.yH); uy(this,"getCurrentTime",this.Aa);uy(this,"getDuration",this.lO);uy(this,"getPlayerState",this.Hs);uy(this,"getVideoLoadedFraction",this.oY);uy(this,"mute",this.Vs);uy(this,"unMute",this.yZ);uy(this,"setVolume",this.WM);uy(this,"loadModule",this.loadModule);uy(this,"unloadModule",this.unloadModule);uy(this,"getOption",this.vX);uy(this,"getOptions",this.getOptions);uy(this,"setOption",this.setOption);uy(this,"addCueRange",this.addCueRange);uy(this,"getDebugText",this.getDebugText);uy(this,"getStoryboardFormat", this.getStoryboardFormat);uy(this,"toggleFullscreen",this.toggleFullscreen);uy(this,"isFullscreen",this.isFullscreen);uy(this,"getPlayerSize",this.getPlayerSize);uy(this,"toggleSubtitles",this.toggleSubtitles);uy(this,"setCenterCrop",this.setCenterCrop);uy(this,"setFauxFullscreen",this.setFauxFullscreen);uy(this,"setSizeStyle",this.setSizeStyle);uy(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);uy(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Vyz(this)}; g.fE=function(F){F=F.TF();var J=F.sz.get("endscreen");return J&&J.X$()?!0:F.Gr()}; g.Wp=function(F,J){F.getPresentingPlayerType()===3?F.publish("mdxautoplaycancel"):F.jE("onAutonavCancelled",J)}; g.Ef=function(F){var J=dO(F.TF());return F.app.FY&&!F.isFullscreen()||F.getPresentingPlayerType()===3&&J&&J.FI()&&J.Q5()||!!F.getPlaylist()}; g.jV=function(F,J){g.wO(F,"addEmbedsConversionTrackingParams",[J])}; g.V_=function(F){return(F=g.GP(F.TF()))?F.s3():{}}; g.XNJ=function(F){F=(F=F.getVideoData())&&F.U;return!!F&&!(!F.audio||!F.video)&&F.mimeType!=="application/x-mpegURL"}; g.Pp=function(F,J,b){F=F.mG().element;var I=qL(F.children,function(u){u=Number(u.getAttribute("data-layer"));return b-u||1}); I<0&&(I=-(I+1));bB(F,J,I);J.setAttribute("data-layer",String(b))}; g.Bp=function(F){var J=F.J();if(!J.g9)return!1;var b=F.getVideoData();if(!b||F.getPresentingPlayerType()===3)return!1;var I=(!b.isLiveDefaultBroadcast||J.S("allow_poltergust_autoplay"))&&!nY(b);I=b.isLivePlayback&&(!J.S("allow_live_autoplay")||!I);var u=b.isLivePlayback&&J.S("allow_live_autoplay_on_mweb");F=F.getPlaylist();F=!!F&&F.FI();var w=b.dD&&b.dD.playerOverlays||null;w=!!(w&&w.playerOverlayRenderer&&w.playerOverlayRenderer.autoplay);w=b.T0&&w;return!b.ypcPreview&&(!I||u)&&!g.te(b.kQ,"ypc")&& !F&&(!g.dN(J)||w)}; Qn7=function(F){F=F.app.F_();if(!F)return!1;var J=F.getVideoData();if(!J.U||!J.U.video||J.U.video.C<1080||J.oR)return!1;var b=/^qsa/.test(J.clientPlaybackNonce),I="r";J.U.id.indexOf(";")>=0&&(b=/^[a-p]/.test(J.clientPlaybackNonce),I="x");return b?(F.UQ("iqss",{trigger:I},!0),!0):!1}; TP=function(){Cw.apply(this,arguments);this.requestHeaders={}}; SV=function(){rO||(rO=new TP);return rO}; sf=function(F,J){J?F.requestHeaders.Authorization="Bearer "+J:delete F.requestHeaders.Authorization}; g.YJ=function(F,J,b,I){I=I===void 0?!1:I;g.vi.call(this,J);var u=this;this.G=F;this.kQ=I;this.Y=new g.s5(this);this.Tj=new g.ZU(this,b,!0,void 0,void 0,function(){u.qZ()}); g.k(this,this.Y);g.k(this,this.Tj)}; $J=function(F){var J=F.G.getRootNode();return F.G.S("web_watch_pip")||F.G.S("web_shorts_pip")?Xl(J):document}; RGz=function(F){F.U&&(document.activeElement&&g.uB(F.element,document.activeElement)&&F.U.focus(),F.U.setAttribute("aria-expanded","false"),F.U=void 0);g.Ve(F.Y);F.N=void 0}; CE=function(F,J,b){F.K4()?F.fk():F.Bo(J,b)}; XE=function(F,J,b,I){I=new g.U({X:"div",Dv:["ytp-linked-account-popup-button"],sQ:I,L:{role:"button",tabindex:"0"}});J=new g.U({X:"div",K:"ytp-linked-account-popup",L:{role:"dialog","aria-modal":"true",tabindex:"-1"},j:[{X:"div",K:"ytp-linked-account-popup-title",sQ:J},{X:"div",K:"ytp-linked-account-popup-description",sQ:b},{X:"div",K:"ytp-linked-account-popup-buttons",j:[I]}]});g.YJ.call(this,F,{X:"div",K:"ytp-linked-account-popup-container",j:[J]},100);var u=this;this.dialog=J;g.k(this,this.dialog); I.listen("click",function(){u.fk()}); g.k(this,I);g.Pp(this.G,this.element,4);this.hide()}; g.Rj=function(F,J,b,I){g.vi.call(this,F);this.priority=J;b&&g.Q_(this,b);I&&this.Ce(I)}; g.Dd=function(F,J,b,I){F=F===void 0?{}:F;J=J===void 0?[]:J;b=b===void 0?!1:b;I=I===void 0?!1:I;J.push("ytp-menuitem");var u=F;"role"in u||(u.role="menuitem");b||(u=F,"tabindex"in u||(u.tabindex="0"));F={X:b?"a":"div",Dv:J,L:F,j:[{X:"div",K:"ytp-menuitem-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-menuitem-label",sQ:"{{label}}"},{X:"div",K:"ytp-menuitem-content",sQ:"{{content}}"}]};I&&F.j.push({X:"div",K:"ytp-menuitem-secondary-icon",sQ:"{{secondaryIcon}}"});return F}; g.Q_=function(F,J){F.updateValue("label",J)}; kJ=function(F){g.Rj.call(this,g.Dd({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var J=this;this.G=F;this.U=this.C=!1;this.Rf=F.z6();F.createServerVe(this.element,this,!0);this.B(this.G,"settingsMenuVisibilityChanged",function(b){J.tJ(b)}); this.B(this.G,"videodatachange",this.Z);this.listen("click",this.onClick);this.Z()}; Of=function(F){return F?g.Kr(F):""}; oj=function(F){g.R.call(this);this.api=F}; ha=function(F){oj.call(this,F);var J=this;by(F,"setAccountLinkState",function(b){J.setAccountLinkState(b)}); by(F,"updateAccountLinkingConfig",function(b){J.updateAccountLinkingConfig(b)}); F.addEventListener("videodatachange",function(b,I){J.onVideoDataChange(I)}); F.addEventListener("settingsMenuInitialized",function(){J.menuItem=new kJ(J.api);g.k(J,J.menuItem)})}; D0Y=function(F){this.api=F;this.C={}}; cp=function(F,J,b,I){J in F.C||(b=new g.b6(b,I,{id:J,priority:2,namespace:"appad"}),F.api.TU([b],1),F.C[J]=b)}; Uf=function(F){oj.call(this,F);var J=this;this.events=new g.s5(this);g.k(this,this.events);this.C=new D0Y(this.api);this.events.B(this.api,"legacyadtrackingpingreset",function(){J.C.C={}}); this.events.B(this.api,"legacyadtrackingpingchange",function(b){var I=J.C;cp(I,"part2viewed",1,0x8000000000000);cp(I,"engagedview",Math.max(1,b.xm*1E3),0x8000000000000);if(!b.isLivePlayback){var u=b.lengthSeconds*1E3;LC(b)&&I.api.S("html5_shorts_gapless_ads_duration_fix")&&(u=I.api.getProgressState().seekableEnd*1E3-b.YC);cp(I,"videoplaytime25",u*.25,u);cp(I,"videoplaytime50",u*.5,u);cp(I,"videoplaytime75",u*.75,u);cp(I,"videoplaytime100",u,0x8000000000000);cp(I,"conversionview",u,0x8000000000000); cp(I,"videoplaybackstart",1,u);cp(I,"videoplayback2s",2E3,u);cp(I,"videoplayback10s",1E4,u)}}); this.events.B(this.api,g.u6("appad"),this.U);this.events.B(this.api,g.wq("appad"),this.U)}; hGm=function(F,J,b){if(!(b in J))return!1;J=J[b];Array.isArray(J)||(J=[J]);J=g.N(J);for(b=J.next();!b.done;b=J.next()){b=b.value;var I={CPN:F.api.getVideoData().clientPlaybackNonce};b=g.TM(b,I);I=void 0;I=I===void 0?!1:I;(I=nT(tj(b,k2m),b,I,"Active View 3rd Party Integration URL"))||(I=void 0,I=I===void 0?!1:I,I=nT(tj(b,OmC),b,I,"Google/YouTube Brand Lift URL"));I||(I=void 0,I=I===void 0?!1:I,I=nT(tj(b,ofo),b,I,"Nielsen OCR URL"));g.Xp(b,void 0,I)}return!0}; xJ=function(F,J){cca(F,J).then(function(b){g.Xp(J,void 0,void 0,b)})}; nE=function(F,J){J.forEach(function(b){xJ(F,b)})}; cca=function(F,J){return g.jB(F.api.J())&&AR(J)&&Mk(J)?g.LH(F.api.J(),g.ks(F.api.getVideoData())).then(function(b){var I;b&&(I={Authorization:"Bearer "+b});return I},void 0):r$()}; U0a=function(F){oj.call(this,F);this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"videoready",function(J){if(F.getPresentingPlayerType()===1){var b,I,u={playerDebugData:{pmlSignal:!!((b=J.getPlayerResponse())==null?0:(I=b.adPlacements)==null?0:I.some(function(w){var M;return w==null?void 0:(M=w.adPlacementRenderer)==null?void 0:M.renderer})), contentCpn:J.clientPlaybackNonce}};g.AY("adsClientStateChange",u)}})}; ta=function(F){g.U.call(this,{X:"button",Dv:["ytp-button"],L:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},j:[{X:"div",K:"ytp-autonav-toggle-button-container",j:[{X:"div",K:"ytp-autonav-toggle-button",L:{"aria-checked":"true"}}]}]});this.G=F;this.U=[];this.C=!1;this.isChecked=!0;F.createClientVe(this.element,this,113681);this.B(F,"presentingplayerstatechange",this.fT);this.listen("click",this.onClick);this.G.J().S("web_player_autonav_toggle_always_listen")&& x0G(this);zP(F,this.element,this);this.fT()}; x0G=function(F){F.U.push(F.B(F.G,"videodatachange",F.fT));F.U.push(F.B(F.G,"videoplayerreset",F.fT));F.U.push(F.B(F.G,"onPlaylistUpdate",F.fT));F.U.push(F.B(F.G,"autonavchange",F.Jy))}; nfk=function(F){F.isChecked=F.isChecked;F.RI("ytp-autonav-toggle-button").setAttribute("aria-checked",String(F.isChecked));var J=F.isChecked?"Autoplay is on":"Autoplay is off";F.updateValue("title",J);F.updateValue("label",J);F.G.Dl()}; tyC=function(F){return F.G.J().S("web_player_autonav_use_server_provided_state")&&U9(F.Yl())}; Zm7=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"standardControlsInitialized",function(){var b=new ta(F);g.k(J,b);F.KO(b,"RIGHT_CONTROLS_LEFT")})}; Zd=function(F,J){g.Rj.call(this,g.Dd({role:"menuitemcheckbox","aria-checked":"false"}),J,F,{X:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Hp=function(F,J){F.checked=J;F.element.setAttribute("aria-checked",String(F.checked))}; Hmo=function(F){var J=!F.J().rZ&&F.getPresentingPlayerType()!==3;return F.isFullscreen()||J}; g.LE=function(F,J,b,I){var u=F.currentTarget;if((b===void 0||!b)&&g.f0(F))return F.preventDefault(),!0;J.pauseVideo();F=u.getAttribute("href");g.Qm(F,I,!0);return!1}; g.Fy=function(F,J,b){if(k2(J.J())&&J.getPresentingPlayerType()!==2){if(g.f0(b))return J.isFullscreen()&&!J.J().externalFullscreen&&J.toggleFullscreen(),b.preventDefault(),!0}else{var I=g.f0(b);I&&J.pauseVideo();g.Qm(F,void 0,!0);I&&(g.RJ(F),b.preventDefault())}return!1}; FBz=function(){var F=Lz4.includes("en")?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}:{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]};F.K="ytp-subtitles-button-icon";return F}; JH=function(){return{X:"div",K:"ytp-spinner-container",j:[{X:"div",K:"ytp-spinner-rotator",j:[{X:"div",K:"ytp-spinner-left",j:[{X:"div",K:"ytp-spinner-circle"}]},{X:"div",K:"ytp-spinner-right",j:[{X:"div",K:"ytp-spinner-circle"}]}]}]}}; bX=function(F){if(document.createRange){var J=document.createRange();J&&(J.selectNodeContents(F),F=window.getSelection())&&(F.removeAllRanges(),F.addRange(J))}}; we=function(F){var J=F.S("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Zd.call(this,J,g.Ia.wb);var b=this;this.G=F;this.C=!1;this.U=new g.ty(function(){g.Mr(b.element,"ytp-menuitem-highlighted")},0); this.Rf=F.z6();this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.T,this);this.listen(uX,this.Z);g.k(this,this.U)}; MV=function(F){oj.call(this,F);var J=this;this.C=!1;F.addEventListener("settingsMenuInitialized",function(){J8z(J)}); F.addEventListener("highlightSettingsMenu",function(b){J8z(J);var I=J.menuItem;b==="menu_item_cinematic_lighting"&&(g.uG(I.element,"ytp-menuitem-highlighted"),g.uG(I.element,"ytp-menuitem-highlight-transition-enabled"),I.U.start())}); by(F,"updateCinematicSettings",function(b){J.updateCinematicSettings(b)})}; J8z=function(F){F.menuItem||(F.menuItem=new we(F.api),g.k(F,F.menuItem),F.menuItem.VG(F.C))}; AH=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"applicationvideodatachange",function(b,I){J.wz(b,I)})}; qV=function(F){oj.call(this,F);this.events=new g.s5(F);g.k(this,this.events);by(F,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));by(F,"setCreatorEndscreenHideButton",this.C.bind(this))}; vl=function(F,J,b,I){Zd.call(this,"Stable Volume",g.Ia.IM);g.uG(this.element,"ytp-drc-menu-item");this.Rf=F.z6();this.Z=J;this.C=b;this.hasDrcAudioTrack=I;F.addEventListener("videodatachange",this.U.bind(this));F.S("mta_drc_mutual_exclusion_removal")&&this.B(F,"onPlaybackAudioChange",this.U);F=this.C()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.T,this);Hp(this,F);this.Rf.V6(this)}; aa=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);F.S("html5_show_drc_toggle")&&F.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new vl(J.api,J.setDrcUserPreference.bind(J),J.getDrcUserPreference.bind(J),J.U.bind(J)),g.k(J,J.menuItem))}); by(this.api,"setDrcUserPreference",function(I){J.setDrcUserPreference(I)}); by(this.api,"getDrcUserPreference",function(){return J.getDrcUserPreference()}); by(this.api,"hasDrcAudioTrack",function(){return J.U()}); var b;this.C=(b=g.S9("yt-player-drc-pref"))!=null?b:1;this.updateEnvironmentData()}; ed=function(F){oj.call(this,F);var J=this;this.C={};this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"videodatachange",function(){J.onVideoDataChange()}); this.events.B(F,g.u6("embargo"),function(b){J.api.rT(!0);var I,u=(I=J.C[b.id])!=null?I:[];I=g.N(u);for(u=I.next();!u.done;u=I.next()){var w=u.value;J.api.hideControls();J.api.Je("auth",2,"This video isn't available in your current playback area",dk({embargoed:1,id:b.id,idx:b.U,start:b.start}));u=void 0;(w=(u=w.embargo)==null?void 0:u.onTrigger)&&J.api.jE("innertubeCommand",w)}})}; bao=function(F,J){var b;return(b=J.onEnter)==null?void 0:b.some(F.U)}; Io_=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=void 0,u=Number((I=b.playbackPosition)==null?void 0:I.utcTimeMillis)/1E3,w=void 0;I=u+Number((w=b.duration)==null?void 0:w.seconds);w="embargo_"+u;F.api.addUtcCueRange(w,u,I,"embargo",!1);b.onEnter&&(F.C[w]=b.onEnter.filter(F.U))}}; Kc=function(F){oj.call(this,F);var J=this;this.C=[];this.events=new g.s5(F);g.k(this,this.events);by(F,"addEmbedsConversionTrackingParams",function(b){J.api.J().Ga&&J.addEmbedsConversionTrackingParams(b)}); this.events.B(F,"veClickLogged",function(b){J.api.hasVe(b)&&(b=Ae(b.visualElement.getAsJspb(),2),J.C.push(b))})}; uaz=function(F){oj.call(this,F);by(F,"isEmbedsShortsMode",function(){return F.isEmbedsShortsMode()})}; wXv=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"initialvideodatacreated",function(b){lf(N7(),16623);J.C=g.W8();var I=F.J().IP&&!b.GU;if(RU(b)&&I){lf(N7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(b.getWatchNextResponse()){var u,w=(u=b.getWatchNextResponse())==null?void 0:u.trackingParams;w&&WX(w)}if(b.getPlayerResponse()){var M;(b=(M=b.getPlayerResponse())==null?void 0:M.trackingParams)&&WX(b)}}else lf(N7(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),b.getEmbeddedPlayerResponse()&&(M=(w=b.getEmbeddedPlayerResponse())==null?void 0:w.trackingParams)&&WX(M)}); this.events.B(F,"loadvideo",function(){lf(N7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.C})}); this.events.B(F,"cuevideo",function(){lf(N7(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.C})}); this.events.B(F,"largeplaybuttonclicked",function(b){lf(N7(),27240,b.visualElement)}); this.events.B(F,"playlistnextbuttonclicked",function(b){lf(N7(),27240,b.visualElement)}); this.events.B(F,"playlistprevbuttonclicked",function(b){lf(N7(),27240,b.visualElement)}); this.events.B(F,"playlistautonextvideo",function(){lf(N7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; pc=function(F,J){g.R.call(this);var b=this;this.C=null;this.T=J;J=[];for(var I=0;I<=100;I++)J.push(I/100);J={threshold:J,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(u){u=u[u.length-1];typeof u.isVisible==="undefined"?document.visibilityState==="visible"&&u.isIntersecting&&u.intersectionRatio>0?b.C=u.intersectionRatio:document.visibilityState==="hidden"?b.C=0:b.C=null:b.C=u.isVisible?u.intersectionRatio:0;typeof b.T==="function"&&b.T(b.C)},J): null)&&this.U.observe(F)}; A8z=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"applicationInitialized",function(){Mvo(J)})}; Mvo=function(F){var J=F.api.getRootNode(),b=J;if(!F.api.S("embeds_emc3ds_inview_ks")){var I;b=F.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((I=J.parentElement)==null?void 0:I.parentElement)||J:J}F.C=new pc(b,function(u){u!=null&&(F.api.J().XI=u,F.api.J().us="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.k(F,F.C);F.events.B(F.api,"videoStatsPingCreated",function(u){var w=F.C;w=w.C==null?null:Math.round(w.C*100)/100;u.inview=w!=null?w:void 0;w=F.api.getPlayerSize();if(w.height>0&&w.width>0){w=[Math.round(w.width),Math.round(w.height)];var M=g.ow();M>1&&w.push(M);w=w.join(":")}else w=void 0;u.size=w})}; qrm=function(F){var J;return((J=((F==null?void 0:F.messageRenderers)||[]).find(function(b){return!!b.timeCounterRenderer}))==null?void 0:J.timeCounterRenderer)||null}; ge=function(F){g.U.call(this,{X:"div",Dv:["ytp-player-content","ytp-iv-player-content"],j:[{X:"div",K:"ytp-free-preview-countdown-timer",j:[{X:"span",sQ:"{{label}}"},{X:"span",K:"ytp-free-preview-countdown-timer-separator",sQ:"\u2022"},{X:"span",sQ:"{{duration}}"}]}]});this.api=F;this.C=null;this.T=this.U=0;this.B(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; aoz=function(F,J){F.C||(F.U=J,F.T=(0,g.jR)(),F.C=new g.n8(function(){vTa(F)},null),vTa(F))}; vTa=function(F){var J=Math,b=J.round,I=Math.min((0,g.jR)()-F.T,F.U);J=b.call(J,(F.U-I)/1E3);F.updateValue("duration",ev({seconds:J}));J<=0&&F.C?mg(F):F.C&&F.C.start()}; mg=function(F){F.C&&(F.C.dispose(),F.C=null)}; e2k=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"basechromeinitialized",function(){J.C=new ge(F);g.k(J,J.C);g.Pp(F,J.C.element,4);J.C.hide()})}; y5=function(F){g.U.call(this,{X:"button",Dv:["ytp-fullerscreen-edu-button","ytp-button"],j:[{X:"div",Dv:["ytp-fullerscreen-edu-text"],sQ:"Scroll for details"},{X:"div",Dv:["ytp-fullerscreen-edu-chevron"],j:[{X:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],L:{"data-priority":"1"}});this.SE=F;this.C=new g.ZU(this,250,void 0,100);this.T=this.U=!1;F.createClientVe(this.element,this,61214);g.k(this, this.C);this.B(F,"fullscreentoggled",this.VG);this.B(F,"presentingplayerstatechange",this.VG);this.listen("click",this.onClick);this.VG()}; iX=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"updateFullerscreenEduButtonSubtleModeState",function(I){J.updateFullerscreenEduButtonSubtleModeState(I)}); by(this.api,"updateFullerscreenEduButtonVisibility",function(I){J.updateFullerscreenEduButtonVisibility(I)}); var b=F.J();F.S("external_fullscreen_with_edu")&&b.externalFullscreen&&k2(b)&&b.controlsType==="1"&&this.events.B(F,"standardControlsInitialized",function(){J.C=new y5(F);g.k(J,J.C);F.KO(J.C)})}; KBv=function(F){g.U.call(this,{X:"div",K:"ytp-gated-actions-overlay",j:[{X:"div",K:"ytp-gated-actions-overlay-background",j:[{X:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{X:"button",Dv:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],L:{"aria-label":"Close"},j:[g.iA()]},{X:"div",K:"ytp-gated-actions-overlay-bar",j:[{X:"div",K:"ytp-gated-actions-overlay-text-container",j:[{X:"div",K:"ytp-gated-actions-overlay-title",sQ:"{{title}}"},{X:"div",K:"ytp-gated-actions-overlay-subtitle", sQ:"{{subtitle}}"}]},{X:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var J=this;this.api=F;this.background=this.RI("ytp-gated-actions-overlay-background");this.U=this.RI("ytp-gated-actions-overlay-button-container");this.C=[];this.B(this.RI("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){J.api.jE("onCloseMiniplayer")}); this.hide()}; gTG=function(F,J){var b=0;b=0;for(var I={};b<J.length;I={cj:void 0},b++){var u=F.C[b],w=void 0,M=(w=u)==null?void 0:w.element;M||(M=new g.U({X:"button",K:"ytp-gated-actions-overlay-button",L:{tabindex:"0"},j:[{X:"div",K:"ytp-gated-actions-overlay-button-title",sQ:"{{buttonText}}"}]}),g.k(F,M),M.Az(F.U),u={element:M});I.cj=g.O(J[b],pXY);var q=w=void 0,v=void 0,a=((w=I.cj)==null?void 0:w.title)||((q=I.cj)==null?void 0:(v=q.titleFormatted)==null?void 0:v.content)||"";M.update({buttonText:a});u.listener&& M.iX(u.listener);u.listener=M.listen("click",function(e){return function(){var K,p=g.O((K=e.cj)==null?void 0:K.onTap,sT);p&&F.api.jE("innertubeCommand",p)}}(I)); F.C[b]=u}for(;b<F.C.length;)F.C.pop().element.dispose()}; m7G=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.C=new KBv(this.api);g.k(this,this.C);this.events.B(F,"videodatachange",function(){var b,I=(b=J.api.getVideoData())==null?void 0:b.er;b=J.C;if(I){var u,w,M=((u=I.title)==null?void 0:u.content)||"";u=((w=I.subtitle)==null?void 0:w.content)||"";b.update({title:M,subtitle:u});M=I.thumbnail;w="none";if(M==null?0:M.sources){u=0;M=g.N(M.sources);for(var q=M.next();!q.done;q=M.next())q=q.value,q.width&&q.url&&q.width> u&&(u=q.width,w="url("+q.url+")")}b.background.style.backgroundImage=w;gTG(b,I.actionButtons||[]);b.show()}else b.hide()}); g.Pp(this.api,this.C.element,4)}; z9=function(F){oj.call(this,F);var J=this;uy(this.api,"getSphericalProperties",function(){return J.getSphericalProperties()}); uy(this.api,"setSphericalProperties",function(){J.setSphericalProperties.apply(J,g.W(g.Ba.apply(0,arguments)))}); Ij(this.api,"getSphericalProperties",function(){return J.api.getPresentingPlayerType()===2?{}:J.getSphericalProperties()}); Ij(this.api,"setSphericalProperties",function(){var b=g.Ba.apply(0,arguments);J.api.getPresentingPlayerType()!==2&&J.setSphericalProperties.apply(J,g.W(b))})}; NV=function(F){oj.call(this,F);by(F,"createClientVe",this.createClientVe.bind(this));by(F,"createServerVe",this.createServerVe.bind(this));by(F,"destroyVe",this.destroyVe.bind(this));by(F,"hasVe",this.hasVe.bind(this));by(F,"logClick",this.logClick.bind(this));by(F,"logVisibility",this.logVisibility.bind(this));by(F,"setTrackingParams",this.setTrackingParams.bind(this))}; lX=function(F,J,b,I){function u(M){var q=!(M.status!==204&&M.status!==200&&!M.response),v;M={succ:""+ +q,rc:M.status,lb:((v=M.response)==null?void 0:v.byteLength)||0,rt:((0,g.jR)()-w).toFixed(),shost:g.Cu(F),trigger:J};y8m(M,F);b&&b(M);I&&!q&&I(new E5("pathprobe.net",M))} var w=(0,g.jR)();g.E6(F,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:u,onTimeout:u})}; y8m=function(F,J){var b;((b=window.performance)==null?0:b.getEntriesByName)&&(J=performance.getEntriesByName(J))&&J.length&&(J=J[0],F.pedns=(J.domainLookupEnd-J.startTime).toFixed(),F.pecon=(J.connectEnd-J.domainLookupEnd).toFixed(),F.perqs=(J.requestStart-J.connectEnd).toFixed(),iaY&&(F.perqsa=J.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; fc=function(F,J){this.Zy=F;this.policy=J;this.playbackRate=1}; z2v=function(F,J){var b=Math.min(2.5,gN(F.Zy));F=Wl(F);return J-b*F}; de=function(F,J,b,I,u){u=u===void 0?!1:u;if(F.policy.HQ)return Math.ceil(F.policy.HQ*J);F.policy.Ar&&(I=Math.abs(I));I/=F.playbackRate;var w=1/ib(F.Zy);b=Math.max(.9*(I-3),gN(F.Zy)+F.Zy.U.C*w)/w*.8/(J+b);b=Math.min(b,I);F.policy.iJ>0&&u&&(b=Math.max(b,F.policy.iJ));return NB7(F,b,J)}; NB7=function(F,J,b){return Math.ceil(Math.max(Math.max(F.policy.ZY,F.policy.TZ*b),Math.min(Math.min(F.policy.zj,31*b),Math.ceil(J*b))))||F.policy.ZY}; loz=function(F,J,b){b=de(F,J.C.info.LW,b.C.info.LW,0);var I=gN(F.Zy)+b/ib(F.Zy);return Math.max(I,I+F.policy.pT-b/J.C.info.LW)}; Wl=function(F){return ib(F.Zy,!F.policy.wX,F.policy.xA)}; Ee=function(F){return Wl(F)/F.playbackRate}; jd=function(F,J,b){var I=F.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],u=F.policy.playbackStartPolicy.startMinReadaheadPolicy||[];F=Infinity;J=g.N(J&&I.length>0?I:u);for(I=J.next();!I.done;I=J.next())I=I.value,u=I.minReadaheadMs||0,b<(I.minBandwidthBytesPerSec||0)||F>u&&(F=u);return F<Infinity?F/1E3:F}; G9=function(F,J,b,I){var u=this;this.V=F;this.lR=J;this.policy=b;this.logger=I;this.Lc=[];this.Ym=[];this.C=-1;this.dw=null;this.W=this.timestampOffset=0;this.xl=null;this.U=10;this.D=new Set;this.Po={K5:function(w){return u.K5(w)}}; this.Z=J.MW?0:1;b.mY>0&&(this.U=b.mY)}; ETz=function(F,J,b,I,u){if(!I.info.Z){if(b.length===0)b.push(I);else{var w;(F=(w=b.pop())==null?void 0:g.xm(w,I))?b.push(F):b.push(I)}return u}var M;(b=(M=b.pop())==null?void 0:g.xm(M,I))||(b=I);if(F.policy.y6&&b.info.U)return F.logger&&F.logger({incompleteSegment:b.info.uX()}),u;M=F.K5(b);I=M.formatId;u=M.Mf;b=M.clipId;w=M.Mr;M=M.startTimeMs;if(!F.policy.Lv&&F.policy.U&&F.xl){var q=V5(F.xl,b);M+=q}I={clipId:b,formatId:I,startTimeMs:M,durationMs:w,I5:u,Tn:u,B_:M,FT:w};u=foJ(J,I.startTimeMs);(b=u>= 0?J[u]:null)&&WBz(F,b,I)?I=b:(u+=1,J.splice(u,0,I));b=0;for(w=u+1;w<J.length;w++){M=F;q=J[w];var v=I,a=q.startTimeMs+q.durationMs,e=v.startTimeMs+v.durationMs;e>=a+M.U?M=!0:e+M.U<q.startTimeMs?M=!1:d7k(M,q.formatId,v.formatId)?(v.durationMs=a-v.startTimeMs,v.FT=v.durationMs,v.Tn=q.Tn,M=!0):(q.startTimeMs=e,q.B_=e,q.I5=v.Tn+1,M=!1);if(!M)break;b++}b&&J.splice(u+1,b);return u}; GRG=function(F,J,b){F.policy.y6&&b!=null&&b.g$||(F.Lc=[]);F.policy.fD?(J=g.AL(F.Ym,{startTimeMs:J*1E3},function(I,u){return I.startTimeMs-u.startTimeMs}),F.C!==J&&(F.C=-1,F.T=void 0)):(jxo(F,!0),F.C=foJ(F.Ym,J*1E3))}; foJ=function(F,J){F=g.AL(F,{startTimeMs:J},function(b,I){return b.startTimeMs-I.startTimeMs}); return F>=0?F:-F-2}; jxo=function(F,J){if(F.dw){var b=F.dw.N0();if(b.length!==0){if(F.T&&J){var I=F.T,u=I.info.hF;!Mt(b,u)&&I.info.W>0&&(0,g.jR)()-F.W<5E3&&(F.logger&&F.logger({dend:I.info.uX()}),b=m_J(b,u,u+.01))}F.policy.fD&&F.logger&&F.logger({cbri:""+F.C});I=[];for(var w=u=0;u<b.length&&w<F.Ym.length;){var M=b.start(u),q=b.end(u),v=F.Ym[w].startTimeMs/1E3,a=(F.Ym[w].startTimeMs+F.Ym[w].durationMs)/1E3;if(v<=q&&a>=M){var e=0;if(F.xl){var K=Pl(F.xl,v*1E3);K&&(e=K.ac/1E3)}K=Object.assign({},F.Ym[w]);var p=F.lR.T.get(lU(F.Ym[w].formatId)), m=Math.max(v,M);M=p.index.Ea(m+F.U/1E3-e);v=p.index.getStartTime(M)+e;var y=M+ +(Math.abs(v-m)>F.U/1E3);m=y+F.Z;y=(p.index.getStartTime(y)+e)*1E3;w!==F.C||J?(K.I5=m,K.startTimeMs=y):(F.logger&&F.logger({pEvict:"1",og:K.startTimeMs,adj:v*1E3}),K.I5=M+F.Z,K.startTimeMs=v*1E3);K.B_=K.startTimeMs;M=void 0;v=((M=F.T)==null?void 0:M.info.duration)||11;w===F.C&&q<a&&a-q<=v*1.01&&(q=a);M=Math.min(a,q);v=p.index.Ea(M-F.U/1E3-e);m=F.policy;(m.U||m.PN.S("html5_sabr_include_tail_media_chunk"))&&p.index.vF(v+ 1)&&p.index.nV(v+1)+e<=M&&(v+=1);m=p.index.nV(v)+e;v-=+(Math.abs(m-M)>F.U/1E3);M=v+F.Z;e=(p.index.nV(v)+e)*1E3;K.Tn=M;K.durationMs=e-K.startTimeMs;K.FT=K.durationMs;K.I5<=K.Tn&&I.push(K)}a<q?w+=1:u+=1}F.Ym=I}}}; Vv3=function(F){var J=[],b=[].concat(g.W(F.Lc));F.Ym.forEach(function(M){J.push(Object.assign({},M))}); for(var I=F.C,u=g.N(F.V.ym()),w=u.next();!w.done;w=u.next())I=ETz(F,J,b,w.value,I);J.forEach(function(M){M.startTimeMs&&(M.startTimeMs+=F.timestampOffset*1E3,M.B_&&(M.B_+=F.timestampOffset*1E3))}); return{Ym:J,Lc:b}}; WBz=function(F,J,b){var I=J.startTimeMs+J.durationMs,u=b.startTimeMs+b.durationMs;if(b.startTimeMs-I>F.U)return!1;if(d7k(F,J.formatId,b.formatId))return J.durationMs=Math.max(I,u)-J.startTimeMs,J.FT=J.durationMs,J.Tn=Math.max(J.Tn,b.Tn),!0;if(Math.abs(J.startTimeMs-b.startTimeMs)<=F.U){if(J.durationMs>b.durationMs+F.U){F=J.formatId;var w=J.I5,M=J.Tn;J.formatId=b.formatId;J.durationMs=b.durationMs;J.I5=b.I5;J.FT=b.durationMs;J.Tn=b.Tn;b.formatId=F;b.startTimeMs=u;b.B_=u;b.durationMs=I-u;b.FT=b.durationMs; b.I5=w;b.Tn=M;return!1}J.formatId=b.formatId;return!0}I>b.startTimeMs&&(J.durationMs=b.startTimeMs-J.startTimeMs,J.FT=J.durationMs,J.clipId===b.clipId&&(J.Tn=b.I5-1));return!1}; d7k=function(F,J,b){return J.itag!==b.itag||J.xtags!==b.xtags?!1:F.lR.MW||J.lmt===b.lmt}; PfC=function(F,J,b){if(F.logger){for(var I=[],u=0;u<J.length;u++){var w=J[u],M=void 0;if((M=w.s_)==null?0:M.startTicks){var q=M=void 0,v=void 0;I.push("i."+((M=w.formatId)==null?void 0:M.itag)+"_st."+(w.startTimeMs+"_psst.")+(((q=w.s_)==null?void 0:q.startTicks)+"_psd.")+((v=w.s_)==null?void 0:v.Ll))}M=void 0;I.push("i."+((M=w.formatId)==null?void 0:M.itag)+"_st."+(w.startTimeMs+"_e."+(w.startTimeMs+w.durationMs)+"_d."+w.durationMs)+("_sn."+w.I5)+("_en."+w.Tn))}F.logger({p:""+b,br:I.join(";")})}}; BB3=function(F){F.Ym=[];F.Lc=[];F.D.clear();F.C=-1;F.T=void 0}; Bl=function(F,J,b,I,u){this.Zv=F;this.lR=J;this.videoTrack=b;this.audioTrack=I;this.policy=u;this.seekCount=this.C=0;this.D=!1;this.Z=null;this.T=0;this.U=this.lR.isManifestless&&!this.lR.SF}; TBk=function(F,J,b){if(!F.policy.W){F=J.C.index;var I=J.U.Mf;F.vF(I)||b&&b.Mf===I?(J.D=!F.vF(I),J.eE=!F.vF(I)):(J.D=!0,J.eE=!0)}}; Sro=function(F){var J=Math.max(F.videoTrack.Z.T||0,F.audioTrack.Z.T||0);r83(F.videoTrack);r83(F.audioTrack);F.policy.W||L4a(F.lR);F.lR.isManifestless&&!F.policy.W&&(F.U=!0,F.T=0);var b=F.Zv;b.policy.WN||(b.currentTime=J);F.D=!0;F.Z=new xn;return F.Z}; $74=function(F,J,b,I,u){var w=F.policy.y6?u:void 0;if(!J.C.VJ()){if(!(w=b===0||!!J.T.length&&J.T[0]instanceof T9))a:{if(J.T.length&&(w=J.T[0],w instanceof re&&w.j6&&w.vD)){w=!0;break a}w=!1}w||F.policy.C||Sd(J);return b}var M=se(J,b);if(!isNaN(M))return M;if(F.Zv.Tq(b*1E3))return b;u.g$?F.policy.XZ&&(F=Y7(F.Zv,J),sxY(J.Z,b+F,!0)):(J.uq(),F.Zv.J3(!1,"sta_"+ +J.C.info.Cd()));return I&&(F=AG(I.N0(),b),!isNaN(F))?($7(J,F+YrY,w),b):$7(J,b,w)}; XX7=function(F,J,b,I){if(F.policy.W)!I||!F.U&&F.policy.xm||g.qf(function(){Cc(F)}); else{if(F.isSeeking()&&F.C){var u=Cfa(F,J,b);if(u!==-1){F.videoTrack.D=!1;F.audioTrack.D=!1;F.U=!0;F.T=0;g.qf(function(){F.Zv.UQ("seekreason",{reason:"behindMinSq",tgt:u});Xy(F,u)}); return}}b?F.videoTrack.eE=!1:F.audioTrack.eE=!1;var w=F.policy.h5||!F.U;se(F.videoTrack,F.C)>=0&&se(F.audioTrack,F.C)>=0&&w?((F.videoTrack.D||F.audioTrack.D)&&F.Zv.UQ("iterativeSeeking",{status:"done",count:F.seekCount}),F.videoTrack.D=!1,F.audioTrack.D=!1):I&&g.qf(function(){if(F.U||!F.policy.xm)Cc(F);else{var M=J.startTime,q=J.duration;if(!F.policy.W){var v=b?F.videoTrack.D:F.audioTrack.D,a=F.videoTrack.W!==-1&&F.audioTrack.W!==-1,e=F.C>=M&&F.C<M+q+.1,K=!F.videoTrack.eE&&!F.audioTrack.eE,p=F.policy.KT&& se(F.videoTrack,M)&&se(F.audioTrack,M);v&&a&&K&&(e||p?((b?F.videoTrack:F.audioTrack).D=!1,F.videoTrack.D||F.audioTrack.D||(F.Zv.UQ("iterativeSeeking",{status:"done",target:M,originalTime:M+F.Zv.Xq(),count:F.seekCount}),F.seekCount=0)):F.seekCount<8?(F.seekCount++,F.Zv.UQ("iterativeSeeking",{status:"inprogress",count:F.seekCount,target:F.C,actual:M,duration:q,isVideo:b}),F.seek(F.C,{})):(F.Zv.UQ("iterativeSeeking",{status:"incomplete",count:F.seekCount,target:F.C,actual:M}),F.seekCount=0,F.videoTrack.D= !1,F.audioTrack.D=!1,Q5(F.Zv,M+.1,{sL:!0,Ky:"chunkSelectorSynchronizeMedia",C1:!0})))}}})}}; Cfa=function(F,J,b){if(!F.isSeeking())return-1;b=(b?F.videoTrack:F.audioTrack).C.index;var I=b.Ea(F.C);return(b.vF(F.lR.De)||J.Mf===F.lR.De)&&I<F.lR.De?F.lR.Ho():-1}; Xy=function(F,J,b){F.U&&F.videoTrack.W!==-1&&F.audioTrack.W!==-1&&(F.U=!1,F.C=J,Q5(F.Zv,J+.1,{sL:!0,Ky:"chunkSelectorSynchronize",C1:!0,seekSource:b}))}; Cc=function(F){var J=F.videoTrack.W!==-1,b=F.audioTrack.W!==-1;if(!J||!b)if(J=!J&&Ra(F.videoTrack),b=!b&&Ra(F.audioTrack),J||b){b=J?F.videoTrack:F.audioTrack;J=J?F.audioTrack:F.videoTrack;b.W=Ra(b).info.Mf;if(F.policy.W){var I;J.W=((I=Ra(J))==null?void 0:I.info.Mf)||J.W}if(J.W!==-1){var u=Math.max(J.C.index.getStartTime(J.W),b.C.index.getStartTime(b.W));mt(F.lR)&&Math.abs(u-mt(F.lR))>432E3&&FSC(F.lR);F.T&&(u=F.T,F.T=0);g.qf(function(){F.policy.W||Xy(F,u,102)}); F.Zv.UQ("initManifestlessSync",{st:u,ost:u+F.Zv.Xq(),a:F.audioTrack.W,v:F.videoTrack.W});F.Z&&(F.Z.resolve(u+.1),F.Z=null);F.policy.W&&Xy(F,u,102)}}}; Dm=function(F,J){var b=this;this.e3=F;this.requestNumber=++Qxv;this.C=this.now();this.N=this.Tj=NaN;this.V=this.C;this.T=this.Kk=this.D=0;this.W=this.C;this.dD=this.Y=this.kQ=this.T1=this.If=this.WN=this.U=this.Z=0;this.eE=this.isActive=!1;this.Om=this.bR=0;this.Po={OAG:function(){return b.Kj}}; this.Zy=J.Zy;this.snapshot=QYv(this.Zy);this.policy=this.Zy.U;this.vu=!!J.vu;this.r_=J.r_;this.nD=J.nD||0;this.x7=J.x7||0;J.QY&&(this.fW=new wN);var I;this.Kj=(I=J.Kj)!=null?I:!1;this.vu||$Oa(this.Zy)}; R2m=function(F){F.kQ=Math.max(F.kQ,F.D-F.If);F.Y=Math.max(F.Y,F.V-F.T1);F.WN=0}; k7=function(F,J,b){Cpv(F.Zy,J);F.fW&&(F.fW.add(Math.ceil(J)-Math.ceil(F.V)),F.fW.add(Math.max(0,Math.ceil(b/1024)-Math.ceil(F.D/1024))));var I=J-F.V,u=b-F.D;F.Kk=u;F.dD=Math.max(F.dD,u/(I+.01)*1E3);F.V=J;F.D=b;F.WN&&b>F.WN&&R2m(F)}; Oe=function(F,J){F.url=J;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; oa=function(F,J){Dm.call(this,F,J);this.Um=this.xm=!1;this.zj=this.Gj=Infinity;this.KW=NaN;this.Q2=!1;this.nW=NaN;this.NW=this.qf=this.Jz=0;this.XL=J.XL||1;this.TO=J.TO||this.XL;this.jB=J.jB;this.Mf=J.Mf;this.Qi=J.Qi;D74(this);this.Kq(this.C);this.cN=(this.nW-this.C)/1E3}; kRo=function(F){var J=F.qf||F.Jz;return J?F.snapshot.delay+Math.min(F.x7,(F.N-F.Tj)/1E3)+J:F.cN}; hH=function(F,J,b){if(!F.vu){J=Math.max(J,.01);var I=F.nD?Math.max(J,b/F.nD):J,u=F.Zy.U.T;u&&(I=J,F.nD&&(I=Math.max(J,b/F.nD*u)));e8(F.Zy,J,b,I)}}; Oa3=function(F){return(F.W-F.C)/1E3}; D74=function(F){F.KW=F.C+F.snapshot.delay*1E3;F.Q2=!1}; cl=function(F,J){if(F.jB&&F.Mf!==void 0&&F.Qi!==void 0){var b=Math,I=b.min,u=F.Gj;var w=F.jB;var M=F.C;if(oTz(w,F.Mf))w=J;else{var q=0;w.lq&&(q=.2);w=M+(w.x7+q)*1E3}F.Gj=I.call(b,u,w);b=Math;I=b.min;u=F.zj;w=F.jB;M=F.C;q=h2o(w,F.Mf,F.Qi);q!==2&&(J=q?J:M+w.x7*1E3,w.lq&&(J+=w.x7*1E3));F.zj=I.call(b,u,J);F.Gj<=F.C?D74(F):(F.KW=F.Gj,F.Q2=!0)}}; c8o=function(F,J){if(F.UL(J,1)){var b=F.getUint8(J);b=b<128?1:b<192?2:b<224?3:b<240?4:5}else b=0;if(b<1||!F.UL(J,b))return[-1,J];if(b===1)F=F.getUint8(J++);else if(b===2)b=F.getUint8(J++),F=F.getUint8(J++),F=(b&63)+64*F;else if(b===3){b=F.getUint8(J++);var I=F.getUint8(J++);F=F.getUint8(J++);F=(b&31)+32*(I+256*F)}else if(b===4){b=F.getUint8(J++);I=F.getUint8(J++);var u=F.getUint8(J++);F=F.getUint8(J++);F=(b&15)+16*(I+256*(u+256*F))}else b=J+1,F.focus(b),NJ(F,b,4)?F=BPo(F).getUint32(b-F.O2,!0):(I= F.getUint8(b+2)+256*F.getUint8(b+3),F=F.getUint8(b)+256*(F.getUint8(b+1)+256*I)),J+=5;return[F,J]}; Ue=function(F){this.e3=F;this.C=new m_}; x7=function(F,J){this.info=F;this.callback=J;this.state=1;this.v_=this.Kb=!1;this.Mk=null}; U7o=function(F){return g.jw(F.info.aI,function(J){return J.type===3})}; nc=function(F,J,b,I){var u=this;I=I===void 0?{}:I;this.policy=J;this.e3=b;this.status=0;this.C=new m_;this.U=0;this.iR=this.Z=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(I.method||"GET",F);if(I.headers)for(F=I.headers,J=g.N(Object.keys(F)),b=J.next();!b.done;b=J.next())b=b.value,this.xhr.setRequestHeader(b,F[b]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return u.H_()}; this.xhr.onload=function(){return u.onDone()}; this.xhr.onerror=function(){return u.onError()}; this.xhr.fetch(function(w){u.C.append(w);u.U+=w.length;w=(0,g.jR)();u.e3.Hl(w,u.U)},function(){},I.body||null)}; x73=function(F,J){this.U=(new TextEncoder).encode(F);this.C=(new TextEncoder).encode(J)}; tjz=function(F,J){var b,I,u;return g.S(function(w){if(w.C==1){if(!J)return w.return(J);b=tH.EA();I=new g.lx(F.U);return g.T(w,I.encrypt(J,F.C),2)}u=w.U;tH.Gy("woe",b,Math.ceil(J.byteLength/16));return w.return(u)})}; JI_=function(F,J){var b,I,u;return g.S(function(w){if(w.C==1){if(!J)return w.return(J);b=tH.EA();I=new g.lx(F.U);return g.T(w,I.decrypt(J,F.C),2)}u=w.U;tH.Gy("wod",b,Math.ceil(J.byteLength/16));return w.return(u)})}; tvJ=function(F,J){var b=this;this.C=F;this.e3=J;this.loaded=this.status=0;this.error="";F=dG(this.C.get("range")||"");if(!F)throw Error("bad range");this.range=F;this.U=new m_;nTm(this).then(function(){b.e3.A6()},function(I){b.error=""+I||"unknown_err"; b.e3.A6()})}; nTm=function(F){var J,b,I,u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){if(d.C==1){F.status=200;J=F.C.get("docid");b=n5(F.C.get("fmtid")||"");I=F.C.get("lmt")||"0";u=+(F.C.get("csz")||0);if(!J||!b||!u)throw Error("Invalid local URL");F.C.get("ck")&&F.C.get("civ")&&(w=new x73(F.C.get("ck"),F.C.get("civ")));M=F.range;q=Math.floor(M.start/u);v=Math.floor(M.end/u);a=q}if(d.C!=5)return a<=v?g.T(d,bUz(J,b,I,a,w),5):d.gD(0);e=d.U;if(e===void 0)throw Error("invariant: data is undefined");K=a*u;p=(a+1)*u; m=Math.max(0,M.start-K);y=Math.min(M.end+1,p)-(m+K);f=new Uint8Array(e.buffer,m,y);F.U.append(f);F.loaded+=y;F.loaded<M.length&&F.e3.Hl((0,g.jR)(),F.loaded);a++;return d.gD(2)})}; Hak=function(F,J,b,I){var u=this;I=I===void 0?{}:I;this.policy=J;this.e3=b;this.V=I;this.status=0;this.response=void 0;this.U=0;this.D=this.W=!1;this.errorMessage="";this.N=function(w){if(w)if(u.status=w.status,w.ok&&w.body&&u.status!==204)u.status=u.status||242,u.T=w.body.getReader(),u.iR()?u.T.cancel().catch(function(){}):(u.responseHeaders=w.headers,u.e3.mx(),ZaY(u)); else u.onDone();else u.onError(Error("null_response"))}; this.Y=function(w){var M=(0,g.jR)();u.iR()||(w.done?(u.T=void 0,u.onDone()):(w=w.value,u.U+=w.length,u.C.append(w),ZaY(u),u.e3.Hl(M,u.U)))}; this.onError=function(w){u.errorMessage=String(w);u.W=!0;u.onDone()}; this.C=new m_;this.Z=window.AbortController?new AbortController:void 0;this.start(F)}; ZaY=function(F){F.T.read().then(F.Y,F.onError).then(void 0,MP)}; LBz=function(F,J,b){var I=this;b=b===void 0?{}:b;this.e3=J;this.U=this.status=0;this.iR=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(b.method||"GET",F);if(b.headers){F=b.headers;J=g.N(Object.keys(F));for(var u=J.next();!u.done;u=J.next())u=u.value,this.xhr.setRequestHeader(u,F[u])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(w){I.H_(w)}; F=pa(function(w){I.onDone(w)}); this.xhr.addEventListener("load",F,!1);this.xhr.addEventListener("error",F,!1);b.body?this.xhr.send(b.body):this.xhr.send();this.xhr.addEventListener("progress",pa(function(w){I.aP(w)}),!1)}; Zm=function(F,J,b,I,u){if(Nv(F.XY))return new tvJ(F,b);F=F.tF();return I?WOv()?new nc(F,J,b,u):new Hak(F,J,b,u):new LBz(F,b,u)}; g.Hl=function(F){this.tag=F}; Fp7=function(F,J){g.Lc.apply(null,[6,F,J].concat(g.W(g.Ba.apply(2,arguments))))}; Jtz=function(F,J){g.Lc.apply(null,[5,F,J].concat(g.W(g.Ba.apply(2,arguments))))}; g.Lc=function(F,J,b){var I=g.Ba.apply(3,arguments),u=F===6?"ERROR":"WARNING",w="b"+b;g.Td(new (Function.prototype.bind.apply(g.hC,[null,w].concat(g.W(I)))),u);I.unshift(w);bkJ(J,F,I.join(", "))}; bkJ=function(F,J,b,I){var u=IT3.get(F);if(!u){u="ytplog."+F;var w=5;try{window.localStorage&&!isNaN(+window.localStorage[u])&&(w=+window.localStorage[u]),window.sessionStorage&&!isNaN(+window.sessionStorage[u])&&(w=+window.sessionStorage[u])}catch(q){}IT3.set(F,w);u=w}if(!(J<u))if(J=uh7,u=J.C.get(F),u||(u=new wda,J.C.set(F,u)),J=u,u=Date.now(),w=Math.floor((u-J.U)*.01),w>0&&(J.C=Math.min(J.C+w,10),J.U=u),J.C>0?(J.C--,J=!0):J=!1,J)typeof b==="function"&&(b=b()),I&&(b=I(b)),console.log("plyr."+F,b); else{var M;b=((M=Mam.get(F))!=null?M:0)+1;Mam.set(F,b);b%100===1&&console.warn("plyr","plyr."+F+" is chatty, dropping logs.")}}; wda=function(){this.C=10;this.U=Date.now()}; Fx=function(F,J){g.R.call(this);var b=this;this.policy=F;this.aI=J;this.U=0;this.C=null;this.yk=[];this.T=null;this.Po={Mp:function(){return b.aI}}; this.aI.length===1||g.jw(this.aI,function(I){return!!I.range})}; J9=function(F,J,b){F.C&&(yK(F.C,J),J=F.C,F.C=null);for(var I=0,u=0,w=g.N(F.aI),M=w.next();!M.done;M=w.next())if(M=M.value,M.range&&I+M.T<=F.U)I+=M.T;else{J.getLength();if(V4(M)&&!b&&F.U+J.getLength()-u<I+M.T){F.C=J.split(u).eS;return}a:{var q=F;var v=M,a=F.U-I,e=u,K=J,p=!!b,m=K.getLength()-e;v.range&&(m=Math.min(v.T-a,m));v=nz_(v,v.U+a,m,v.range?v.U+a+m===v.range.length:p);e=iH(K,e,m);e=new UL(v,e);if(q.policy.useUmp&&q.yk.length&&(K=g.xm(q.yk[q.yk.length-1],e))){q.yk[q.yk.length-1]=K;q=m;break a}q.yk.push(e); q=m}F.U+=q;u+=q;I+=M.T;if(u===J.getLength())break}J.getLength()}; bh=function(F,J,b,I,u,w,M,q,v){v=v===void 0?!1:v;g.R.call(this);this.e3=F;this.policy=J;this.iC=b;this.gw=I;this.timing=u;this.logger=w;this.T=M;this.GV=q;this.D=v;this.lastError=null;this.C=0;this.Z=!1;this.U=new g.ty(this.PaR,this.policy.xH,this)}; Atv=function(F){F.gw.N=(0,g.jR)();F=Ih(F);F.T=(0,g.jR)();F.started+=1}; aTC=function(F,J,b,I){F.timing.b5((0,g.jR)(),J,b);J=F.gw;J.U=0;J.D=0;J.V=0;Ko(Ih(F));F.policy.Vj&&I&&(I=Ih(F),I.U+=1);if((I=F.GV)!=null&&(F=F.iC.XY,!((0,g.jR)()<I.W+3E5||Nv(F))&&(J=zK(F))&&qSm(J)&&I.U===uh(J))){var u;l9(F)&&(u=zK(fk(F)));g.rm("yt-player-bandaid-host",{primary:J,secondary:u},864E3);I.W=(0,g.jR)();vZv(I,{primary:J,secondary:u})}}; wg=function(F){if(F.lastError==="ump.spsrejectfailure")F.policy.Ok||F.timing.eE||X4a(F.gw,!1,F.iC,F.policy,F.T);else{if(F.lastError==="net.timeout")F.timing.oo((0,g.jR)());else{var J=F.timing;k7(J,(0,g.jR)(),J.D)}if(F.lastError==="net.nocontent")++F.gw.V;else{if((J=F.lastError==="net.timeout"||F.lastError==="net.connect"||F.lastError==="net.closed")&&!Nv(F.iC.XY)){var b=Ih(F);b.timedOut+=1}else b=Ih(F),b.C+=1;F.timing.eE||X4a(F.gw,J,F.iC,F.policy,F.T)}}F.e3.aC(5)}; M$=function(F,J,b,I,u){return J>=400?(F.lastError="net.badstatus",!0):(u===void 0?0:u)?(F.lastError="ump.spsrejectfailure",!0):b||I!==void 0&&I?!1:(F.lastError=J===204?"net.nocontent":"net.connect",!0)}; A9=function(F,J){if(F.policy.Yd)return!1;var b=J.getResponseHeader("content-type"),I=J.f5();F=!I||I<=F.policy.F$;return(!J.kx()||!b||b.indexOf("text/plain")!==-1)&&F}; KpJ=function(F,J){var b="";J=J.fZ();J.getLength()<=F.policy.F$&&(b=edo(F,J.HS()));return b}; edo=function(F,J){var b=WA(J);return Hq(b)?(F.logger.debug(function(){return"Redirecting to "+b}),b):""}; Ih=function(F){return gG(F.T,zK(F.iC.XY))}; pdm=function(F){var J=F.timing.BQ();J.shost=zK(F.iC.XY);return J}; gZY=function(F,J){return(F==null?void 0:F.maxWidth)>(J==null?void 0:J.maxWidth)||(F==null?void 0:F.maxHeight)>(J==null?void 0:J.maxHeight)}; mvz=function(F,J){for(var b=g.N(J.keys()),I=b.next();!I.done;I=b.next())if(I=J.get(I.value),I.length!==0){g.vW(I,function(q,v){return v.maxFramerate-q.maxFramerate}); for(var u=[I[0]],w=0,M=1;M<I.length;M++)gZY(I[M],u[w])&&(u.push(I[M]),w++);F=F.concat(u)}return F}; ika=function(F,J){var b=[];J=g.N(J);for(var I=J.next();!I.done;I=J.next()){I=I.value;var u=yt7[I]||0;F.C&&u>F.C||b.push(I)}return b}; q$=function(F,J,b){var I=zdz[F]||[];b.S("html5_shorts_onesie_mismatched_fix")&&(I=N_7[F]||[]);J.push.apply(J,g.W(I));b.S("html5_early_media_for_drm")&&J.push.apply(J,g.W(lTz[F]||[]))}; GK3=function(F,J){var b=g.IU(F),I=F.J(),u=I.D;I=I.S("html5_shorts_onesie_mismatched_fix");var w=F.yM();if(I){if(!u.Z){if(w&&vs)return vs;if(ah)return ah}}else if(ah&&!u.Z)return ah;var M=[],q=[],v={},a=eI.concat(fT3);I&&(a=eI.concat(Wpk));F.S("html5_early_media_for_drm")&&(a=a.concat(dv4),F.S("allow_vp9_1080p_mq_enc")&&a.push(EZz));var e=[].concat(g.W(jt4));if(b.N)for(var K=0;K<e.length;K++)e[K].length&&Df[e[K][0]]==="a"&&(e[K]=["141"]);if(b.WN)for(K=0;K<e.length;K++)e[K].length&&Df[e[K][0]]==="o"&& (e[K]=["774"]);F.S("html5_iamf_audio_onesie_fmt")&&e.push(["773"]);a=g.N(a);for(var p=a.next();!p.done;p=a.next()){K=!1;p=g.N(p.value);for(var m=p.next();!m.done;m=p.next()){m=m.value;var y=Ji(m,w&&I);if(y&&y.video&&!(c4(y)&&!b.fW&&y.video.C>b.hN)){var f=g.eB(F.J().experiments,"html5_drm_byterate_soft_cap");f>0&&pLz(y)&&y.LW>f||(K?(M.push(m),q$(m,M,F)):(y=qv(b,y,u),y===!0?(K=!0,M.push(m),q$(m,M,F)):v[m]=y))}}}e=g.N(e);for(a=e.next();!a.done;a=e.next())for(a=g.N(a.value),K=a.next();!K.done;K=a.next())if(K= K.value,(p=qCY(K))&&p.audio&&(F.S("html5_onesie_51_audio")||!U5(p)&&!xz(p)))if(p=qv(b,p,u),p===!0){q.push(K);q$(K,q,F);break}else v[K]=p;b.U&&J("orfmts",v);if(I)return u.Z&&(u.Z=!1,vs=ah=void 0),w?vs={video:M,audio:q}:ah={video:M,audio:q};ah={video:M,audio:q};u.Z=!1;return ah}; g.B_G=function(F,J,b){var I=b.D,u=[],w=[],M=b.S("html5_shorts_onesie_mismatched_fix");F=F.yM();var q=eI.concat(fT3);M&&(q=eI.concat(Wpk));b.S("html5_early_media_for_drm")&&(q=q.concat(dv4),b.S("allow_vp9_1080p_mq_enc")&&q.push(EZz));var v=[].concat(g.W(jt4));if(J.N)for(var a=0;a<v.length;a++)v[a].length&&Df[v[a][0]]==="a"&&(v[a]=["141"]);if(J.WN)for(a=0;a<v.length;a++)v[a].length&&Df[v[a][0]]==="o"&&(v[a]=["774"]);b.S("html5_iamf_audio_onesie_fmt")&&v.push(["773"]);q=g.N(q);for(a=q.next();!a.done;a= q.next()){a=g.N(a.value);for(var e=a.next();!e.done;e=a.next()){e=e.value;var K=Ji(e,F&&M);if(K&&K.video){var p=g.eB(b.experiments,"html5_drm_byterate_soft_cap");if(!(p>0&&pLz(K)&&K.LW>p)&&qv(J,K,I)===!0){u.push({videoCodec:Vak[Df[e]],maxWidth:K.video.width,maxHeight:K.video.height,maxFramerate:K.video.fps});break}}}}M=g.N(v);for(F=M.next();!F.done;F=M.next())for(F=g.N(F.value),v=F.next();!v.done;v=F.next())if(v=v.value,(q=qCY(v))&&q.audio&&(b.S("html5_onesie_51_audio")||!U5(q)&&!xz(q))&&qv(J,q,I)=== !0){w.push({audioCodec:P9z[Df[v]],numChannels:q.audio.numChannels});break}return{videoFormatCapabilities:u,audioFormatCapabilities:w}}; Kv=function(F){var J={},b=F.wD,I=F.PN,u=b.getVideoData(),w=rB(0),M=b.getPlayerSize(),q=b.getVisibilityState();w&&(J.bWN=w,J.lastManualDirection=dek(),w=tf4()||0,w>0&&(w=(I.S("html5_use_date_now_for_local_storage")?Date.now():(0,g.jR)())-w,I.S("html5_use_date_now_for_local_storage")?w>0&&(J.timeSinceLastManualFormatSelectionMs=w):J.timeSinceLastManualFormatSelectionMs=w));w=I.S("html5_use_streamer_bandwidth_for_low_latency_live")&&u.isLowLatencyLiveStream;if(I.schedule.Tj&&!w){var v;w=I.S("html5_disable_bandwidth_cofactors_for_sabr_live")? !((v=F.Zg)==null||!v.wX):!1;J.Q7=ib(I.schedule,!w)}v=g.ow();var a=g.CF.medium,e=Math.floor(a*16/9);w=u.yM()?a:e;a=u.yM()?e:a;J.pz=Math.max(M.width*v,w);J.y7=Math.max(M.height*v,a);J.visibility=q;J.dEQ=dP();J.dJ=b.Iv()*1E3;M=F.wD.hp(!0);var K,p,m,y,f,d;J.LpG={defaultPolicy:(M==null?void 0:(K=M.kV)==null?void 0:K.C)||0,smooth:(M==null?void 0:(p=M.Crj)==null?void 0:p.C)||0,visibility:(M==null?void 0:(m=M.UJf)==null?void 0:m.C)||0,zC:(M==null?void 0:(y=M.Kp)==null?void 0:y.C)||0,performance:(M==null? void 0:(f=M.Tl)==null?void 0:f.C)||0,speed:(M==null?void 0:(d=M.e4Q)==null?void 0:d.C)||0};if(I.S("html5_sabr_report_sticky_constraints")){var G;J.Q9=(M==null?void 0:(G=M.u3R)==null?void 0:G.C)||0}else J.Q9=rB();I.S("html5_enable_sabr_drm_hd720p")&&F.sabrLicenseConstraint&&(J.sabrLicenseConstraint=F.sabrLicenseConstraint);if(I.S("html5_onesie_media_capabilities")||I.S("html5_enable_server_format_filter"))J.C5=3;I.S("html5_onesie_audio_only_playback")&&Fc(u)&&(J.C5=1);var P;((P=F.Zg)==null?0:P.Um)&& F.BDG&&(J.C5=J.C5===void 0?7:J.C5|4);K=u.K7?u.K7:g.IU(u);I.S("html5_onesie_media_capabilities")&&(J.mediaCapabilities=g.B_G(u,K,I));var r;if((r=F.Zg)==null?0:r.C&&r.Uz){m=I.D;r=[];p=[];y=new Map;I.S("html5_ssap_update_capabilities_on_change")?(m.Tj||BMa(m),f=m.Tj||[]):f=Array.from(m.C.values());f=g.N(f);for(d=f.next();!d.done;d=f.next())G=d.value,G.Cd?p.push({audioCodec:P9z[G.YQ],numChannels:G.numChannels,spatialCapabilityBitmask:T_G[G.YQ]}):(P=Vak[G.YQ],d={videoCodec:P,maxWidth:G.maxWidth||0,maxHeight:G.maxHeight|| 0,maxFramerate:G.maxFramerate||0,is10BitSupported:G.sN||!1},G.maxBitrateBps&&(d.maxBitrateBps=G.maxBitrateBps,M=Ji(G.itag),q=void 0,((q=M)==null?0:q.video)&&qv(K,M,m)===!0&&(M=M.LW*8,M>d.maxBitrateBps&&(d.maxBitrateBps=M))),G=P+"_"+G.sN,P=y.get(G)||[],P.push(d),y.set(G,P));r=mvz(r,y);m={};I.S("html5_ssff_denylist_opus_low")&&(m={itagDenylist:[249,350]});J.mediaCapabilities={videoFormatCapabilities:r,audioFormatCapabilities:p,hdrModeBitmask:3,perPlaybackAttributes:m}}var Q;if((Q=F.Zg)==null?0:Q.C){J.DX= K.DX;var D;J.hN=(D=F.Zg)==null?void 0:D.hN}I.xH&&(J.fp=I.xH);J.qs=F.yP;J.F7=F.F7;J.Bq=F.Bq;J.Bk=F.Bk;if(I.S("html5_fix_time_since_last_seek_reporting")?F.JO!==void 0:F.JO)J.l4G=(0,g.jR)()-F.JO;F.isPrefetch&&I.S("html5_report_prefetch_requests")&&(J.isPrefetch=!0);UD||(J.l7D=!0);Q=gN(I.schedule)*1E3;Q>0&&(J.m8=Q);var t;((t=F.Zg)==null?0:t.Ao)&&F.nB&&F.nB<Infinity&&(J.nB=F.nB);b=b.getPlaybackRate();b!==1&&(J.playbackRate=b);var n;((n=F.Zg)==null?0:n.Se)&&F.XU&&(J.qU=F.qU,J.Il=F.Il,J.XU=F.XU);I.S("allow_proxima_live_latency")&& (Sv()===1&&(J.czR=1),I.S("html5_sabr_force_proxima")&&(J.mfG=1),n=g.eB(I.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),J.PTR=n>0?n:I.schedule.interruptions[0]||0);var uk;if((uk=F.Zg)==null?0:uk.NW)J.iK=F.iK;var AJ;((AJ=F.Zg)==null?0:AJ.nx)&&u.HQ&&(J.audioTrackId=u.HQ);var F7;if((F7=F.Zg)==null?0:F7.AR)if(F=aIa())J.detailedNetworkType=rtz[F]||rtz.other;return J}; pv=function(F,J,b,I,u,w,M){var q={};J&&(q.yh=J);if(!F)return q;q.playbackCookie=b==null?void 0:b.playbackCookie;u&&(q.d3=u);q.xr=[];q.FO=[];if(M==null?0:M.size)for(J=g.N(M.values()),b=J.next();!b.done;b=J.next())q.FO.push(b.value);if(F.fV&&F.sabrContextUpdates.size>0)for(J=g.N(F.sabrContextUpdates.values()),b=J.next();!b.done;b=J.next())SS7(q,b.value,I);bE(F)&&!g.oH(F)&&F.S("html5_enable_sabr_request_pipelining")&&w&&SS7(q,w,I);F.ul&&(q.N6Q=F.ul);I=F.J().C;q.clientInfo={clientName:stk[I.c.toUpperCase()]|| 0};I.cbrand&&(q.clientInfo.deviceMake=I.cbrand);I.cmodel&&(q.clientInfo.deviceModel=I.cmodel);I.cver&&(q.clientInfo.clientVersion=I.cver);I.cos&&(q.clientInfo.osName=I.cos);I.cosver&&(q.clientInfo.osVersion=I.cosver);I=F.J();I.S("html5_sabr_enable_server_xtag_selection")&&I.Q2&&(q.clientInfo.hl=I.Q2);F.v5&&(q.v5=F.v5);return q}; SS7=function(F,J,b){var I=J.type||0;(b==null?0:b.has(I))?F.FO.push(J):F.xr.push(I)}; re=function(F,J,b,I,u,w){var M=w===void 0?{}:w;var q=M.qM===void 0?[]:M.qM;var v=M.d5===void 0?!1:M.d5;var a=M.O8===void 0?0:M.O8;var e=M.poToken===void 0?"":M.poToken;var K=M.GV===void 0?void 0:M.GV;var p=M.HJ===void 0?"":M.HJ;var m=M.j6===void 0?0:M.j6;var y=M.vD===void 0?new Uint8Array(0):M.vD;var f=M.QZ===void 0?!1:M.QZ;w=M.aV===void 0?0:M.aV;M=M.yh===void 0?void 0:M.yh;x7.call(this,J,u);var d=this;this.policy=F;this.logger=new g.Hl("dash/request");this.a4=this.Jw=0;this.wN=!1;this.Jd=this.H0= null;this.iQ=!1;this.vD=this.j6=null;this.JR=this.XK=!1;this.Ip=null;this.aV=this.Bn=0;this.MO=!1;this.Po={aC:function(P){d.aC(P)}, n8Q:function(){return d.Mk}, g6E:function(P){d.Mk=P}, kHD:function(P){d.Jw=P}, RgE:function(P){d.lX.lastError=P}, qt:function(){return d.xhr}}; this.timing=new oa(this,b);this.d5=v;this.j6=m;this.vD=y;this.iC=g.Co(this.info,this.policy,I);this.iC.set("rn",this.hd().toString());this.iC.set("rbuf",(a*1E3).toFixed().toString());this.d5&&this.iC.set("smb","1");this.policy.qa&&e&&this.iC.set("pot",e);p&&this.iC.set("bbs",p);this.policy.useUmp&&!Nv(this.iC.XY)&&(this.XC=new Ue(this),this.iC.set("ump","1"),this.iC.set("srfvp","1"));if(F=this.policy.df?this.policy.F8&&!isNaN(this.info.Qi)&&this.info.Qi>this.policy.VT?!1:!0:!1)J=null,this.policy.IB&& this.policy.E2?J=[1]:f&&(J=[]),J!=null&&(this.policy.Yw&&J.push(2),this.iC.set("defsel",J.join(",")));this.lX=new bh(this,this.policy,this.iC,this.info.gw,this.timing,this.logger,I,K);this.qM=q||null;this.v_=YS_(this);Atv(this.lX);I=void 0;if(this.policy.XJ||this.XC||this.policy.fW)I={method:"POST"},q=(0,g.gg)([120,0]),K={},this.policy.O5&&M&&(M=pv(void 0,M),K.QD=M),this.policy.Ac&&this.vD&&(K.videoPlaybackUstreamerConfig=this.vD),this.policy.fW&&(M=this.info.Z)&&Object.assign(K,M),Object.keys(K).length> 0?I.body=g.ux(K,g.Ur):I.body=q;if(this.j6&&this.vD){this.iC.set("iwts","1");I={method:"POST"};M={Bk:this.j6*1E3};var G;q=(G=this.info.Z)==null?void 0:G.Zc;G=g.ux({yc:M,Zc:q||void 0,videoPlaybackUstreamerConfig:this.vD},g.Ur);I.body=G}try{this.xhr=Zm(this.iC,this.policy.Y,this.timing,F,I),this.lX.U.start(),w&&(this.Vt=new g.ty(this.Bf,w,this),this.Vt.start(w+(this.timing.Zy.Y.X3()||0)*1E3)),this.policy.eN&&Oe(this.timing,this.tF()),this.logger.debug(function(){return"Sent, itag="+d.iC.get("itag")+ " seg="+d.info.aI[0].Mf+" range="+d.iC.get("range")+" time="+Math.round(d.info.aI[0].hF)+"-"+Math.round(g.ck(d.info.aI).H1)+" rtp="+(d.timing.Z0()-Date.now()).toFixed(0)}),g.qf(function(){})}catch(P){$va(this,P,!0)}}; YS_=function(F){if(!($m(F.info)&&F.info.Kj()&&F.policy.K7&&F.qM)||F.info.gw.U>=2||rB()>0||!VBz())return!1;var J=F.iC.get("aitags");if(!J)return!1;J=n5(J).split(",");for(var b=[],I=g.N(F.qM),u=I.next();!u.done;u=I.next())u=u.value,g.te(J,u)&&b.push(u);if(!b.length)return!1;F.iC.set("altitags",g.x_(b.join(",")));return!0}; $va=function(F,J,b){b=b===void 0?!1:b;g.Td(J);F.lX.lastError="player.exception";F.errorMessage=J.name+"_"+J.message;b?g.qf(function(){wg(F.lX)}):wg(F.lX)}; C9k=function(F,J){F.timing.eE=!0;F.xhr.kx()&&F.timing.Is();if(F.policy.Ly){var b;(b=F.Vt)==null||b.stop()}J9(F.Mk,J,!1)}; XdC=function(F,J){F.info=J;if(F.Mk){var b=F.Mk;J=J.aI;(J.length!==b.aI.length||J.length<b.yk.length)&&Jtz("dash/request",260511119,""+J.length,""+b.aI.length,""+b.yk.length);b.aI=J;for(var I=J[0].range,u=new m_,w=0;w<b.yk.length;w++)yK(u,b.yk[w].C);for(w=0;w<b.yk.length;w++){b.yk[w].info=J[w];var M=J[w].range;b.yk[w].C=iH(u,M.start-I.start,M.length)}}F.v_=!1}; Qt_=function(F){F.Bn&&(F.xhr.status=F.Bn,F.Jw=F.Bn)}; mw=function(F,J){Dm.call(this,F,J);this.qf=!0;this.Gj=!1;this.KW=this.zj=0;this.Jz=NaN}; Rd_=function(F,J,b){var I=F.nD?Math.max(J,b/F.nD):J,u=F.Zy.U.T;u&&(I=J,F.nD&&(I=Math.max(J,b/F.nD*u)));e8(F.Zy,J,b,I)}; y8=function(F){this.U={};this.logger=new g.Hl(F)}; ih=function(F){y8.call(this,"sabr");this.e3=F}; zL=function(F){g.R.call(this);this.Z=F;this.logger=new g.Hl("onesie");this.Fq=new Map;this.U=this.C=!1;this.Zg=this.lR=null;this.T=!1}; DvJ=function(F,J,b){F.Fq.get(J).aP=b}; fv=function(F,J){F.Fq.has(J)&&(N$?F.Fq.get(J).Y_.clear():F.Fq.get(J).yk=new m_,lh(F,J),F.U=!0)}; kKk=function(F){for(var J=g.N(F.Fq),b=J.next();!b.done;b=J.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;I.kN||fv(F,b)}}; Okz=function(F,J){J=F.Fq.get(J);if(!J)return 0;F=0;if(J.aI.length>0){J=g.N(J.aI);for(var b=J.next();!b.done;b=J.next()){var I=void 0;F+=((I=b.value.range)==null?void 0:I.length)||0}return F}if(J.oD.length>0)for(b=g.N(J.oD),I=b.next();!I.done;I=b.next())F+=I.value.YI||0;return F+J.o_}; Ws=function(F,J){if(N$){var b=0;F=F.Fq.get(J);if(F==null||!F.Y_)return 0;F=g.N(F.Y_.values());for(J=F.next();!J.done;J=F.next())b+=J.value.data.getLength();return b}return((b=F.Fq.get(J))==null?void 0:b.yk.getLength())||0}; dg=function(F,J){F=F.Fq.get(J);if(N$){if(F==null||!F.kN)return!1;J=F.Y_.size>0;return F.yF.length>0||J}return!(F==null||!F.kN)&&!(F==null||!F.yk.getLength())}; oZ7=function(F,J){var b=F.Fq.get(J),I=Okz(F,J),u=!I&&!!b.bytesReceived;if(N$){var w;if((w=F.lR)==null?0:w.MW){F=g.N(b.Y_.values());for(J=F.next();!J.done;J=F.next())if(!J.value.AY)return!1;return u}}else if(w=F.R7(J),u&&F.C&&w!==void 0)return w;return(u||b.bytesReceived===I)&&b.o4+Ws(F,J)===b.bytesReceived}; hda=function(F,J,b){F.Fq.set(J,{yk:new m_,o4:0,bytesReceived:0,o_:0,Ms:!1,Ph:!1,R7:!1,Cd:b,wm:[],aI:[],oD:[],kN:!1,Y_:new Map,WP:new Map,yF:[]});F.logger.debug(function(){return"[initStream] formatId: "+J})}; cta=function(F,J,b,I){b.aI.push.apply(b.aI,g.W(I));if(N$){b.WP.has(J)||b.WP.set(J,[]);var u;(u=b.WP.get(J)).push.apply(u,g.W(I))}else if(b.Mk)for(F=g.N(I),J=F.next();!J.done;J=F.next())b.Mk.aI.push(J.value);else{b.Mk=new Fx(F.Zg,[].concat(g.W(b.aI)));var w;((w=F.Zg)==null?0:w.us)&&g.k(F,b.Mk)}}; UvC=function(F,J,b){var I,u=(I=F.lR)==null?void 0:I.T.get(J);if(!u)return[];if(b.Uv){var w;return((w=u.nu(0,b.clipId))==null?void 0:w.aI)||[]}if(u.pc()){var M=b.startMs,q=b.durationMs,v=1E3,a;if(((a=F.Zg)==null?0:a.C)&&b.timeRange){var e;M=(e=b.timeRange.startTicks)!=null?e:-1;var K;q=(K=b.timeRange.Ll)!=null?K:-1;var p;v=(p=b.timeRange.timescale)!=null?p:-1}if(b.eK<0||b.Ev<0||q<0||M<0||b.YI<0||v<0)return fv(F,J),[];F=EL(b.eK,b.YI);J=b.JE||0;return[new GC(3,u,F,"makeSliceInfosMediaBytes",b.Ev-1,M/ v,q/v,J,F.length-J,void 0,b.C4,b.clipId)]}if(b.Ev<0)return fv(F,J),[];var m;return((m=F.lR)==null?0:m.MW)?(J=u.U2,a=J*u.info.LW,e=((M=F.Zg)==null?0:M.y6)?b.JE:void 0,((v=F.Zg)==null?0:v.hG)&&b.timeRange&&!e&&(q=b.timeRange.startTicks/b.timeRange.timescale),[new GC(3,u,void 0,"makeSliceInfosMediaBytes",b.Ev,q,J,e,a,!0,b.C4,b.clipId)]):[]}; xvz=function(F,J,b){F.lR=J;F.Zg=b;J=g.N(F.Fq);for(b=J.next();!b.done;b=J.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;for(var u=g.N(I.wm),w=u.next();!w.done;w=u.next()){w=w.value;var M=UvC(F,b,w);cta(F,w.V5,I,M)}}}; Ed=function(F,J,b,I){F.logger.debug(function(){return"[addStreamData] formatId: "+b+",headerId: "+J+" bytes: "+I.getLength()}); (F=F.Fq.get(b))&&!F.Ph&&(N$?(F.Y_.has(J)||F.Y_.set(J,{data:new m_,No:0,AY:!1}),yK(F.Y_.get(J).data,I)):yK(F.yk,I),F.bytesReceived+=I.getLength(),F.Ms=!0)}; lh=function(F,J){F.logger.debug(function(){return"[closeStream] formatId: "+J}); var b=F.Fq.get(J);b&&!b.Ph&&(b.Ph=!0,b.aP&&b.aP(),nZ7(F)&&F.Z.XD())}; nZ7=function(F){F=g.N(F.Fq.values());for(var J=F.next();!J.done;J=F.next())if(!J.value.Ph)return!1;return!0}; jI=function(F,J,b,I,u,w,M,q){g.R.call(this);this.policy=F;this.info=J;this.lR=b;this.e3=u;this.ob=q;this.logger=new g.Hl("sabr");this.XC=new Ue(this);this.mV=new ih(this);this.ZV=new zL(this);this.state=1;this.bY=!1;this.xB=0;this.clipId="";this.Td=this.fF=-1;this.KE=0;this.Ct=-1;this.MO=this.NH=!1;this.fK=0;this.C2=!1;this.policy.Au?this.uC=new mw(this,w):this.uC=new oa(this,w);this.iC=this.policy.NW?J.ZS:taG(J,this.policy,I);this.iC.set("rn",""+this.hd());this.iC.set("alr","yes");xvz(this.ZV,b, F);this.lX=new bh(this,this.policy,this.iC,J.gw,this.uC,this.logger,I,M,this.policy.enableServerDrivenRequestCancellation);Atv(this.lX);var v;if((v=this.policy)==null?0:v.us)g.k(this,this.ZV),g.k(this,this.lX);F=J.U;J={method:"POST",body:F};F&&(this.KE=F.length);try{this.xhr=Zm(this.iC,this.policy.Y,this.uC,UD,J),this.policy.eN&&Oe(this.uC,this.tF()),this.lX.U.start()}catch(a){g.rQ(a)}}; Zk_=function(F){F.policy.JY&&F.TY&&!F.C2?F.C2=!0:F.uC.Is()}; HkG=function(F,J){var b=-1,I=-1,u=-1,w;if((w=F.tC)==null?0:w.items)for(F=g.N(F.tC.items),w=F.next();!w.done;w=F.next())w=w.value,J<w.Ka||w.Ka<b||(b=w.Ka,I=w.E4,u=w.minReadaheadMs);return{avN:b,E4:I,tq:u}}; Lpz=function(F){this.C=F;this.N=this.qf=this.V=this.WN=this.Z=this.D=this.W=this.kQ=this.Y=this.fW=this.eE=this.Gj=this.Tj=0;this.ticks={}}; GL=function(F){F.Tj||(F.Tj=(0,g.jR)(),dM("mb_s",F.Tj,F.C))}; Fc_=function(F){F.Gj||(F.Gj=(0,g.jR)(),dM("ovfs_rp",F.Gj,F.C))}; JMC=function(F){F.eE||(F.eE=(0,g.jR)(),dM("oafs_rp",F.eE,F.C))}; bo7=function(F){F.D||(F.D=(0,g.jR)(),dM("vda",F.D,F.C),F.Z&&Fs(g.HK(),4))}; IcJ=function(F){F.Z||(F.Z=(0,g.jR)(),dM("ada",F.Z,F.C),F.D&&Fs(g.HK(),4))}; uzk=function(F){F.WN||(F.WN=(0,g.jR)(),dM("vis_a",F.WN,F.C))}; w63=function(F){F.V||(F.V=(0,g.jR)(),dM("ais_a",F.V,F.C))}; Mov=function(F){F.qf||(F.qf=(0,g.jR)(),dM("vrb_f",F.qf,F.C))}; AMk=function(F){F.N||(F.N=(0,g.jR)(),dM("arb_f",F.N,F.C))}; qLm=function(F,J,b){var I=J instanceof jI&&!F.T&&!F.U,u=!F.T&&(b==null?void 0:b.info.video);b=!F.U&&(b==null?void 0:b.info.audio);J.state===3?((u||I)&&F.tick("vrr"),(b||I)&&F.tick("arr")):J.state===4?u?(F.T=J.tF(),Fs(g.HK(),4)):b&&(F.U=J.tF()):J instanceof re&&J.qO()&&u&&Fs(g.HK(),4)}; vmJ=function(F){return!!F.U&&!!F.T}; V8=function(F,J,b,I,u,w,M){g.uA.call(this);var q=this;this.Zv=F;this.lR=J;this.policy=b;this.videoTrack=I;this.audioTrack=u;this.vV=M;this.Tj=this.C=null;this.D=this.V=NaN;this.Y=0;this.N=NaN;this.W=null;this.kQ=this.Gj=NaN;this.WN=new Map;this.eE=this.T=this.Z=NaN;this.Po={cg_:function(){return q.U}}; this.U=w?1:0}; euC=function(F,J,b,I){I=I===void 0?!0:I;if(b&&!F.WN.has(J.Mf)){for(var u=J.startTime,w=[],M=0;M<b.C.length;M++){var q=b.C[M],v=u;u=v+b.U[M];w.push({startTime:v,endTime:u,adCpn:q})}F.WN.set(J.Mf,w)}if(F.policy.IP)if(u=F.Tj&&J.Mf===F.Tj.Mf+1,F.Tj=J,w=F.C&&J.Mf===F.C.Mf+1,w=F.C&&u&&w&&F.C.Wg.event!=="stop"&&F.C.Wg.event!=="predictStart",M=J.Wg||null,q=F.videoTrack.C.index.oC(),F.policy.R5&&(q=Math.max(F.videoTrack.C.index.oC(),F.audioTrack.C.index.oC())),q=J.Mf>=q,v=F.lR.isManifestless&&F.policy.TX, M){var a;if(((a=F.C)==null?void 0:a.Wg.event)==="predictStart"&&F.C.Mf<J.Mf&&M.event==="stop"){var e;F.Zv.handleError("ssdai.missingstartcueevent",{lastpredict:((e=F.C)==null?void 0:e.Mf)||0,csq:J.Mf},0)}F.C={Wg:M,Mf:J.Mf,Hz:!!b,v1:I};q?Ps(F,M,J.Mf):v&&(u?w?Ps(F,M,J.Mf):M.event==="continue"||M.event==="stop"?acG(F,J):Ps(F,M,J.Mf):Ps(F,M,J.Mf))}else w&&acG(F,J),F.U===4&&Bs(F,5,"qend")}; Ps=function(F,J,b){J.startSecs+=isNaN(F.Y)?0:F.Y;F=F.lR;F.Gj.push(J);F.publish("cuepointsadded",b)}; Kc7=function(F,J,b){if(F.U!==0&&b&&J.aI[0].v1()){var I=J.aI[0].Mf,u=J.aI[0].hF;J=J.isDecorated();TL(F,I,u,J,b)}}; TL=function(F,J,b,I,u){var w;J!==((w=F.C)==null?void 0:w.Mf)||F.U===1||I||F.C.Wg.event==="predictStart"||F.UQ("sdai",{undecevt:1,sq:J,mt:b,evt:F.C.Wg.event},!0);J>F.D&&(F.D=NaN,F.V=NaN);if(F.C&&F.C.Mf===J)if(I=F.C,u&&I){var M=I.Wg;w=u.F0(M);M.event==="predictStart"&&(F.eE=J);F.UQ("sdai",{onqevt:M.event,sq:J,mt:b,gab:w,cst:M.startSecs,cueid:F.policy.oe&&(w||M.event==="start")?M.identifier:void 0},!0);if(w)if(M.event!=="predictStart")M.event==="start"&&F.eE===J-1&&F.UQ("sdai",{gabonstart:J}),I.Hz?Bs(F, 4,"cue"):(F.D=J,F.V=b,F.UQ("sdai",{joinad:F.U,sg:F.D,st:F.V.toFixed(3)}),F.N=Date.now(),Bs(F,2,"join"),u.O3(I.Wg));else{var q=J+Math.max(Math.ceil(-M.C/5E3),1);w=Math.floor(b-M.C/1E3);F.policy.D?F.T=w:F.Z=q;F.UQ("sdai",{onpred:b,estsq:q,estmt:w.toFixed(3)});rg(F.Zv,w,w,q);F.N=Date.now();Bs(F,3,"predict");u.O3(I.Wg)}else F.U===1?((q=F.W)==null?0:q.GA(b))?(rg(F.Zv,b,b,J),Bs(F,4,"sk2had")):Bs(F,5,"nogab"):M.event==="predictStart"&&(F.policy.D&&F.T>0?(b=Math.floor(b-M.C/1E3),F.T!==b&&F.UQ("sdai",{updateSt:b, old:F.T}),F.T=b):F.Z>0&&(b=J+Math.max(Math.ceil(-M.C/5E3),1),F.Z!==b&&(F.UQ("sdai",{updateSt:b,old:F.Z}),F.Z=b)));var v,a;if(F.vV&&M.event==="start"&&((v=F.C)==null?void 0:v.Wg.event)!=="predictStart"&&((a=F.C)==null?void 0:a.Mf)===J-1){var e;F.UQ("sdai",{ovlpst:(e=F.C)==null?void 0:e.Wg.event,sq:J})}}else F.UQ("sdai",{nulldec:1,sq:J,mt:b.toFixed(3),evt:(I==null?void 0:(M=I.Wg)==null?void 0:M.event)||"none"});else F.U===1&&Bs(F,5,"noad")}; gmC=function(F,J,b){if(F.U===1||F.U===2)return!1;if(F.U!==0&&J===F.audioTrack){if(F.policy.D)return p6v(F.videoTrack,b)||p6v(F.videoTrack,b+1);F=SI(F.videoTrack);if(b>(F?F.Mf:-1))return!1}return!0}; sd=function(F,J,b){return(b<0||b===F.D)&&!isNaN(F.V)?F.V:J}; acG=function(F,J){if(F.C){var b=F.C.Wg.Bg-(J.startTime+F.Y-F.C.Wg.startSecs);b<=0||(b=new YZ(F.C.Wg.startSecs-(isNaN(F.Y)?0:F.Y),b,F.C.Wg.context,F.C.Wg.identifier,"stop",F.C.Wg.C+J.duration*1E3),F.UQ("cuepointdiscontinuity",{segNum:J.Mf}),Ps(F,b,J.Mf))}}; Bs=function(F,J,b){F.U!==J&&(F.UQ("sdai",{setsst:J,old:F.U,r:b}),F.U=J)}; Yi=function(F,J,b,I){(I===void 0?0:I)?Bs(F,1,"seek"):J>0&&Math.abs(J-b)>=5&&F.U===4&&Bs(F,5,"sk2t."+J.toFixed(2)+";ct."+b.toFixed(2))}; $i=function(F,J,b){this.audio=F;this.video=J;this.reason=b}; Cv=function(F,J,b){this.C=F;this.reason=J;this.token=b;this.videoId=void 0}; Xx=function(F,J,b){g.R.call(this);this.policy=F;this.Z=J;this.UQ=b;this.T=new Map;this.D=0;this.W=!1;this.C="";this.U=!1}; Q8=function(F,J,b){if(b===void 0?0:b)F.W=!0;++F.D;b=6E4*Math.pow(2,F.D);b=(0,g.jR)()+b;F.T.set(J.info.id,b)}; Rh=function(F){for(var J=g.N(F.T.entries()),b=J.next();!b.done;b=J.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;I<(0,g.jR)()&&F.T.delete(b)}return F.T}; mxz=function(F){return F.W&&Rh(F).size>0}; Dq=function(F,J){F.C!==J&&(F.C=J,F.U=!0)}; yMo=function(F,J){var b;J&&(b=g.xL(F.Z.C,function(u){return u.id===J})); if(!b&&(b=g.xL(F.Z.C,function(u){var w;return!((w=u.j3)==null||!w.isDefault)}),J)){var I; F.UQ("iaf",{id:J,sid:(I=b)==null?void 0:I.id})}return b}; Od=function(F,J,b,I,u,w){var M=this;w=w===void 0?[]:w;this.Zv=F;this.Gj=J;this.policy=b;this.lR=I;this.W=u;this.nW=w;this.logger=new g.Hl("dash/abr");this.C=QE;this.T=this.V=null;this.N=-1;this.qf=!1;this.nextVideo=this.U=null;this.Z=[];this.zj=new Set;this.fW={};this.oI=new AP(1);this.Y=0;this.KW=this.eE=this.Tj=!1;this.kQ=0;this.Jz=!1;this.WN=new Set;this.dD=!1;this.Po={Id:function(){ki(M)}}; this.D=new Xx(this.policy,u,function(q,v){M.Zv.UQ(q,v)})}; fc3=function(F,J,b){oh(F,J);J=yMo(F.D,b);b||J||(J=iov(F));J=J||F.W.C[0];F.U=F.lR.C[J.id];ki(F);F.V=F.U;zuk(F);NGm(F);F.T=F.nextVideo;F.V=F.U;return lcY(F)}; Emk=function(F,J){if(WcY(F,J))return null;if(J.reason==="m"&&J.isLocked())return F.logger.debug(function(){return"User sets constraint to: "+It(J)}),oh(F,J),F.Y=F.Z.length-1,ki(F),h9(F),F.eE=F.eE||F.T!==F.nextVideo,F.T=F.nextVideo,new $i(F.U,F.T,J.reason); J.reason==="r"&&(F.N=-1);oh(F,J);h9(F);if(J.reason==="r"&&F.nextVideo===F.T)return new $i(F.U,F.nextVideo,J.reason);dx4(F);return null}; jAo=function(F,J,b){F.U=F.lR.C[J];F.V=F.U;return new $i(F.V,F.T,b?"t":"m")}; GCC=function(F,J){if(J.info.video){if(F.T!==J)return F.T=J,lcY(F)}else F.KW=F.V!==J,F.V=J;return null}; Voo=function(F,J){if(J.C.info.video&&J.Z){var b=(J.U+J.T)/J.duration,I=J.C.info.LW;b&&I&&(F.oI.Zj(1,b/I),F.policy.T&&b/I>1.5&&F.Zv.UQ("overshoot",{sq:J.Mf,br:b,max:I}))}}; cs=function(F,J,b){Q8(F.D,J,b===void 0?!1:b);F.N=-1;oh(F,F.C)}; PUJ=function(F,J){return new $i(F.V,F.T,J||F.C.reason)}; dx4=function(F){if(F.T&&F.nextVideo&&Ud(F,F.T.info)<Ud(F,F.nextVideo.info)){var J=F.C.reason;F.Tj=F.Tj||J==="r"||J==="u"||J==="v"}}; lcY=function(F){F.qf?F.qf=!1:F.N=(0,g.jR)();F.Tj=!1;F.dD=!1;return new $i(F.V,F.T,F.C.reason)}; BGv=function(F,J){var b={};J=g.N(J);for(var I=J.next();!I.done;I=J.next())if((I=I.value)&&I.video){var u=I.video.C,w=b[u],M=w&&c4(w)&&w.video.C>F.policy.hN,q=u<=F.policy.hN?c4(I):O5(I);if(!w||M||q)b[u]=I}return b}; oh=function(F,J){F.C=J;var b=F.W.videoInfos;if(!F.C.isLocked()){var I=(0,g.jR)();b=g.qN(b,function(q){if(q.LW>this.policy.LW)return!1;var v=this.lR.C[q.id];return Rh(this.D).get(q.id)>I?!1:v.gw.U>4||v.W>4?(this.logger.debug(function(){return"Remove "+b1(q)+"; 4 load failures"}),!1):this.WN.has(+q.itag)?!1:!0},F); mxz(F.D)&&(b=g.qN(b,function(q){return q.video.width<=854&&q.video.height<=480}))}b.length||(b=F.W.videoInfos); var u=b;F.policy.Vc&&(u=TG7(F,u,J));u=g.qN(u,J.Z,J);if(F.C.isLocked()&&F.D.C){var w=g.xL(b,function(q){return q.id===F.D.C}); w?u=[w]:Dq(F.D,"")}F.policy.Vc||(u=TG7(F,u,J));u.length||(u=[b[0]]);u.sort(function(q,v){return Ud(F,q)-Ud(F,v)}); J={};for(b=1;b<u.length;J={kJ:void 0,j8:void 0},b++)J.j8=u[b-1],J.kJ=u[b],J.j8.video.width>J.kJ.video.width?(g.ZH(u,b),b--):Ud(F,J.j8)*F.policy.N>Ud(F,J.kJ)&&(g.ZH(u,b-1),b--);var M=u[u.length-1];F.Jz=!!F.T&&!!F.T.info&&F.T.info.YQ!==M.YQ;F.logger.debug(function(){return"Constraint: "+It(F.C)+", "+u.length+" fmts selectable, max selectable fmt: "+b1(M)}); F.Z=u;F.zj.clear();J=!1;for(b=0;b<u.length;b++)J?F.zj.add(u[b].itag):u[b].video.C>=1080&&(J=!0);rMa(F.policy,M,F.lR.MW)}; TG7=function(F,J,b){var I=b.reason==="m"||b.reason==="s";F.policy.CM&&xi&&g.ia&&(!I||b.C<1080)&&(J=J.filter(function(a){return a.video&&(!a.U||a.U.powerEfficient)})); if(J.length>0)if(Qh()){var u=BGv(F,J);J=J.filter(function(a){return!!a&&!!a.video&&a.YQ===u[a.video.C].YQ})}else{var w,M,q=(w=J[0])==null?void 0:(M=w.video)==null?void 0:M.C; if(q){b=J.filter(function(a){return!!a&&!!a.video&&a.video.C===q}); var v=BGv(F,b)[q].YQ;J=J.filter(function(a){return!!a&&!!a.video&&a.YQ===v})}}return J}; SLz=function(F,J){for(var b=0;b+1<F.Z.length&&F.Z[b].video.quality==="tiny";)b++;var I=Ee(F.Gj)/F.policy.N;return Ud(F,J.info)+Ud(F,F.Z[b])>I}; ki=function(F){if(!F.U||!F.policy.Z&&!F.U.info.j3){var J=F.W.C;F.U&&(J=J.filter(function(I){return I.audio.C===F.U.info.audio.C}),J.length||(J=F.W.C)); F.U=F.lR.C[J[0].id];if(J.length>1){if(F.policy.Wu){if(F.policy.Q2)return;var b=g.xL(J,function(I){return I.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); b&&(F.U=F.lR.C[b.id])}b=!1;if(b=F.policy.g9?!0:F.C.isLocked()?F.C.C<240:SLz(F,F.U))F.U=F.lR.C[g.ck(J).id]}}}; h9=function(F){if(!F.nextVideo||!F.policy.Z)if(F.C.isLocked())F.nextVideo=F.C.C<=360?F.lR.C[F.Z[0].id]:F.lR.C[g.ck(F.Z).id],F.logger.debug(function(){return"Select max fmt: "+b1(F.nextVideo.info)}); else{for(var J=Math.min(F.Y,F.Z.length-1),b=Ee(F.Gj),I=Ud(F,F.U.info),u=b/F.policy.Tj-I;J>0&&!(Ud(F,F.Z[J])<=u);J--);for(var w=b/F.policy.N-I;J<F.Z.length-1&&!(Ud(F,F.Z[J+1])>=w);J++);F.nextVideo=F.lR.C[F.Z[J].id];F.Y!==J&&F.logger.info(function(){return"Adapt to: "+b1(F.nextVideo.info)+", bandwidth: "+b.toFixed(0)+", bandwidth to downgrade: "+u.toFixed(0)+", bandwidth to upgrade: "+w.toFixed(0)+", constraint: "+It(F.C)}); F.Y=J}}; zuk=function(F){var J=F.policy.Tj,b=Ee(F.Gj),I=b/J-Ud(F,F.U.info);J=g.nz(F.Z,function(u){return Ud(this,u)<I},F); J<0&&(J=0);F.Y=J;F.nextVideo=F.lR.C[F.Z[J].id];F.logger.info(function(){return"Initial selected fmt: "+b1(F.nextVideo.info)+", bandwidth: "+b.toFixed(0)+", max video byterate: "+I.toFixed(0)})}; NGm=function(F){if(F.nW.length){var J=F.nW,b=function(I,u){if(I.info.YQ==="f"||J.includes(lU(g.H4(I.info,F.lR.MW))))return I;for(var w={},M=0;M<u.length;w={St:void 0,Li:void 0},M++){var q=F.lR.C[u[M].id];if(J.includes(lU(g.H4(q.info,F.lR.MW)))){var v=I.info.YQ,a=q.info.YQ;if(v===a||Qh()){if(I.info.C!==q.info.C)return F.Zv.UQ("ombifa",{mismatch:"xtag",f:I.info.id,t:q.info.id}),I;w.St=I.info.itag;w.Li=q.info.itag;F.Zv.UQ("ombifa",{f:w.St,t:w.Li});F.logger.info(function(e){return function(){return"Initial format selection changed from "+ e.St+" to "+e.Li+" based on prefetched media."}}(w)); F.qf=!0;return q}F.Zv.UQ("ombifa",{mismatch:"efficient",fc:v,tc:a})}}F.Zv.UQ("ombifa",{mismatch:"unselectable",fmts:J.join(".")});return I}; F.nextVideo=b(F.nextVideo,F.W.videoInfos);F.U=b(F.U,F.W.C)}}; Ud=function(F,J){if(!F.fW[J.id]){var b=F.lR.C[J.id].index.K2(F.kQ,15);b=J.kA&&F.T&&F.T.index.isLoaded()?b||J.kA:b||J.LW;F.fW[J.id]=b}b=F.fW[J.id];F.zj.has(J.itag)&&(b*=1.5);return b*=Math.max(1,F.oI.X3()||0)}; sAa=function(F,J){F=hW_(F.lR.C,function(b){return b.info.itag===J}); if(!F)throw Error("Itag "+J+" from server not known.");return F}; YLz=function(F){var J=[];if(F.C.reason==="m"||F.C.reason==="s")return J;if(YoG(F.lR)){for(var b=Math.max(0,F.Y-2);b<F.Y&&b<F.Z.length;b++)J.push(F.Z[b].itag);J.reverse()}return J}; WcY=function(F,J){var b;return F.C.Hg(J)&&(!F.D.C||!F.C.isLocked()||((b=F.nextVideo)==null?void 0:b.info.id)===F.D.C)}; iov=function(F){var J=g.xL(F.W.C,function(I){return I.audio.C}),b=g.xL(F.W.C,function(I){return!I.audio.C}); return J?F.policy.pM?J:b:null}; $x7=function(F){var J=F===void 0?{}:F;F=J.lq===void 0?!1:J.lq;var b=J.E2===void 0?!1:J.E2;J=J.df===void 0?!1:J.df;return F?J?3:2:b?-1:1}; nv=function(F){this.track=F;this.buffered=[];this.T=this.Z=0;this.W={};this.D=0;this.C=new wN}; CUC=function(F,J,b){F.flush();F.U=b;t9(F,3,J)}; t9=function(F,J,b){var I=[],u=F.track.dw;if(u){u=u.N0();for(var w=0;w<u.length;w++)I.push(Math.round(u.start(w)*1E3)),I.push(Math.round(u.end(w)*1E3))}u=1;w=I.length;if(w===F.buffered.length){for(var M=0;M<=w&&I[M]===F.buffered[M];M++);M>w?u=0:I[M]>F.buffered[M]&&(M===w-1?u=2:M===w-2&&I[M+1]>F.buffered[M+1]&&(u=3))}F.C.add(J<<3|(b&&4)|u);J=Math.ceil(F.track.Iv()*1E3);F.C.add(J-F.D);F.D=J;if(u===1)for(F.C.add(w),M=J=0;M<w;M++)F.C.add(I[M]-J),J=I[M];u===3&&F.C.add(I[w-2]-F.buffered[w-2]);u>=2&&F.C.add(I[w- 1]-F.buffered[w-1]);b&&F.C.add(b);F.buffered=I}; Zq=function(F,J,b){var I=this;this.policy=F;this.C=J;this.kQ=b;this.Z=this.U=0;this.eT=null;this.Tj=new Set;this.N=[];this.indexRange=this.initRange=null;this.Y=new xn;this.eE=this.Gj=!1;this.Po={o8R:function(){return I.T}, TfI:function(){return I.chunkSize}, LwN:function(){return I.V}, cOQ:function(){return I.W}}; (J=X6v(this))?(this.chunkSize=J.csz,this.T=Math.floor(J.clen/J.csz),this.V=J.ck,this.W=J.civ):(this.chunkSize=F.UK,this.T=0,this.V=g.Nq(16),this.W=g.Nq(16));this.D=new Uint8Array(this.chunkSize);this.V&&this.W&&(this.crypto=new x73(this.V,this.W))}; X6v=function(F){if(F.policy.D4&&F.policy.sK)for(var J=g.N(F.policy.D4),b=J.next(),I={};!b.done;I={tU:void 0,NV:void 0},b=J.next())if(b=g.bi(b.value),I.tU=+b.clen,I.NV=+b.csz,I.tU>0&&I.NV>0&&F.policy.Z===b.docid&&F.C.info.id===b.fmtid&&F.C.info.lastModified===+b.lmt)return F={},F.clen=I.tU,F.csz=I.NV,F.ck=b.ck,F.civ=b.civ,F}; Hs=function(F){return!!F.eT&&F.eT.aQ()}; Dxo=function(F,J){if(!Hs(F)&&!F.iR()){if(!(F.Gj||(F.Gj=!0,F.T>0))){var b=Lv(F);b=PC(F.policy.Z,F.C.info,Fo(F),b,F.policy.nW);Ju(F,b)}if(J.info.type===1){if(F.eT){b2(F,Error("Woffle: Expect INIT slices to always start us off"));return}F.initRange=EL(0,J.C.getLength())}else if(J.info.type===2)F.eT&&F.eT.type===1||b2(F,Error("Woffle: Index before init")),F.indexRange=EL(F.initRange.end+1,J.C.getLength());else if(J.info.type===3){if(!F.eT){b2(F,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(F.eT.type===3&&!B6(F.eT,J.info)&&(F.N=[],J.info.Mf!==TC(F.eT)||J.info.U!==0))return;if(J.info.Z){b=g.N(F.N);for(var I=b.next();!I.done;I=b.next())QAz(F,I.value);F.N=[]}else{F.N.push(J);F.eT=J.info;return}}else{b2(F,Error("Woffle: Unexpected slice type"));return}F.eT=J.info;QAz(F,J);Ru3(F)}}; QAz=function(F,J){var b=0,I=J.C.HS();if(F.Z<F.T){b=F.T*F.chunkSize;var u,w=(((u=J.info.range)==null?void 0:u.start)||0)+J.info.U;b-=w;if(b>=I.length)return;if(b<0)throw Error("Missing data");F.Z=F.T;F.U=0}for(u={};b<I.length;u={r7:void 0})if(u.r7=Math.min(I.length-b,F.D.byteLength-F.U),w=new Uint8Array(I.buffer,I.byteOffset+b,u.r7),F.D.set(w,F.U),F.U+=u.r7,b+=u.r7,F.U===F.D.length){if(J.info===F.eT&&Hs(F)&&b===I.length)break;u=Lv(F);u=PC(F.policy.Z,F.C.info,Fo(F),u,F.policy.nW,F.Z,F.D,F.crypto);F.Tj.add(u); Ju(F,u);F.iR()||(u=Lv(F),F.kQ(Fo(F),u!==void 0?(u.downloadedEndTime||0)*u.averageByteRate:u.maxKnownEndTime*u.averageByteRate,u.maxKnownEndTime*u.averageByteRate));F.D=new Uint8Array(F.chunkSize);F.U=0;F.Z+=1}}; Ru3=function(F){if(Hs(F))if(F.eT&&F.indexRange)if(F.U){var J=new Uint8Array(F.D.buffer,0,F.U),b=kCk(F),I=F.policy.Z;Promise.all(F.Tj).then(function(){var u=PC(I,F.eT.C.info,Fo(F,!0),b,F.policy.nW,F.Z,J,F.crypto);Ju(F,u,!0)})}else b2(F,new Io("Woffle: Expect always re-mark currentChunkOffset at EOS")); else b2(F,new Io("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; Lv=function(F){return{downloadedEndTime:Math.round(F.eT?F.eT.H1:0),maxKnownEndTime:Math.round(F.C.index.cn()),averageByteRate:Math.round(F.C.info.kA)}}; kCk=function(F){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(F.C.index.cn()),averageByteRate:Math.round(F.C.info.kA)}}; Fo=function(F,J){J===void 0||!J||F.indexRange&&F.initRange&&F.eT||b2(F,new Io("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));J={lmt:F.C.info.lastModified,docid:F.policy.Z,fmtid:F.C.info.id,type:F.C.info.mimeType.split(";")[0],csz:F.chunkSize,clen:F.Z*F.chunkSize+F.U};F.crypto&&(J.ck=F.V,J.civ=F.W);var b="local://localhost/videoplayback?"+LX(J),I,u;J={itag:+F.C.info.itag,mimeType:F.C.info.mimeType,bitrate:F.C.info.LW*8,lastModified:String(F.C.info.lastModified),initRange:(I= F.initRange)==null?void 0:QT7(I),indexRange:(u=F.indexRange)==null?void 0:QT7(u),url:b};if(I=F.C.info.C)J.xtags=I;if(I=F.C.info.video)if(J.quality=I.quality,J.qualityLabel=I.qualityLabel,J.width=I.width,J.height=I.height,I=I.fps)J.fps=I;if(F=F.C.info.audio){if(I=F.sampleRate)J.audioSampleRate=String(I);if(F=F.numChannels)J.audioChannels=F}return J}; Ju=function(F,J,b){b=b===void 0?!1:b;J.then(function(I){F.Tj.delete(J);(b||I===4)&&F.Y.resolve(I)},function(I){F.Y.reject(I)})}; b2=function(F,J){g.E9(F.policy.Z)!==4&&(g.jE(F.policy.Z,4),g.rQ(J),F.Y.reject(new Io(J.message)))}; Io=function(F,J){F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.C=J===void 0?!1:J}; OoG=function(F){F=g.nk(F,1886614376);for(var J=g.N(F),b=J.next();!b.done;b=J.next());return g.EG(F,function(I){return af3(I)})}; omv=function(F){var J=Gi(F,function(u,w){return u+w.length},0); J=new Uint8Array(J);var b=0;F=g.N(F);for(var I=F.next();!I.done;I=F.next())I=I.value,J.set(I,b),b+=I.length;return J}; hum=function(F,J,b,I,u,w){this.ids=F;this.C=J;this.U=b;this.Z=I;this.T=u;this.W$=w}; u2=function(F,J,b){this.initData=F;this.contentType=J;this.isPrefetch=b;this.C=this.cryptoPeriodIndex=NaN;this.T=[];this.Xb=!1;this.U=null;if((J==null?void 0:J.toLowerCase())==="webm"||F.length===16)this.Xb=!0}; Uxz=function(F){a:{var J=F.initData;try{for(var b=0,I=new DataView(J.buffer);b<I.byteLength-8;){var u=I.getUint32(b);if(u<=1)break;if(I.getUint32(b+4)===1886614376){var w=32;if(I.getUint8(b+8)>0){var M=I.getUint32(b+28);w+=M*16+4}var q=I.getUint32(b+w-4);try{var v=cMa(J.subarray(b+w,b+w+q));if(v!==null){var a=v;break a}}catch(e){}}b+=u}a=null;break a}catch(e){a=null;break a}a=void 0}if(a!=null)for(J=KI(Xe(a,7)),J==null||F.Xb||(F.cryptoPeriodIndex=J),J=KI(Xe(a,10)),J!=null&&J>0&&!F.Xb&&(F.C=J),a=c3(a, 2,Nya,void 0===WFo?2:4),a=g.N(a),J=a.next();!J.done;J=a.next())F.T.push(g.zw(VI(J.value),4))}; xxz=function(F){return isNaN(F.cryptoPeriodIndex)?g.zw(F.initData):""+F.cryptoPeriodIndex}; w9=function(F,J,b){var I=b===void 0?{}:b;b=I.videoDuration===void 0?0:I.videoDuration;var u=I.MM===void 0?void 0:I.MM;I=I.HH===void 0?!1:I.HH;this.videoId=F;this.status=J;this.videoDuration=b;this.MM=u;this.HH=I}; nm7=function(F,J,b,I,u){this.videoId=F;this.Qw=J;this.U=b;this.bytesDownloaded=I;this.C=u}; Md=function(F){this.C=F;this.offset=0}; Au=function(F){if(F.offset>=F.C.getLength())throw Error();return F.C.getUint8(F.offset++)}; toa=function(F,J){J=J===void 0?!1:J;var b=Au(F);if(b===1){J=-1;for(b=0;b<7;b++){var I=Au(F);J===-1&&I!==255&&(J=0);J>-1&&(J=J*256+I)}return J}I=128;for(var u=0;u<6&&I>b;u++)b=b*256+Au(F),I*=128;return J?b:b-I}; Zo7=function(F){try{var J=toa(F,!0),b=toa(F,!1);return{id:J,size:b}}catch(I){return{id:-1,size:-1}}}; Hoo=function(F){for(var J=new Md(F),b=-1,I=0,u=0;!I||!u;){var w=Zo7(J),M=w.id;w=w.size;if(M<0)return;if(M===176){if(w!==2)return;I=J.VB()}else if(M===186){if(w!==2)return;u=J.VB()}M===374648427?b=J.VB()+w:M!==408125543&&M!==174&&M!==224&&J.skip(w)}J=lH(F,0,b);b=new DataView(J.buffer);b.setUint16(I,3840);b.setUint16(u,2160);I=new m_([J]);yK(I,F);return I}; Lc3=function(F,J,b){var I=this;this.Zv=F;this.policy=J;this.W=b;this.logger=new g.Hl("dash");this.U=[];this.C=null;this.Gj=-1;this.N=0;this.WN=NaN;this.Tj=0;this.T=NaN;this.Y=this.qf=0;this.Jz=-1;this.fW=this.D=this.Z=this.kQ=null;this.oI=this.KW=NaN;this.V=this.eE=this.zj=this.nW=null;this.bR=!1;this.dD=this.timestampOffset=0;this.Po={ym:function(){return I.U}}; if(this.policy.Z){var u=this.W,w=this.policy.Z;this.policy.nW&&F.UQ("atv",{ap:this.policy.nW});this.V=new Zq(this.policy,u,function(M,q,v){qd(F,new w9(I.policy.Z,2,{MM:new nm7(w,M,u.info,q,v)}))}); this.V.Y.promise.then(function(M){I.V=null;M===1?qd(F,new w9(I.policy.Z,M)):I.Zv.UQ("offlineerr",{status:M.toString()})},function(M){var q=(M.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); M instanceof Io&&!M.C?(I.logger.info(function(){return"Assertion failed: "+q}),I.Zv.UQ("offlinenwerr",{em:q}),v0(I),qd(F,new w9(I.policy.Z,4))):(I.logger.info(function(){return"Failed to write to disk: "+q}),I.Zv.UQ("dldbwerr",{em:q}),v0(I),qd(F,new w9(I.policy.Z,4,{HH:!0})))})}}; Ft7=function(F){return F.U.length?F.U[0]:null}; Jgm=function(F,J){return F.U.some(function(b){return b.info.Mf===J})}; M$a=function(F,J,b,I){I=I===void 0?0:I;if(F.D){var u=F.D.U+F.D.T;if(b.info.U>0)if(b.info.Mf===F.D.Mf&&b.info.U<u){if(b.info.U+b.info.T<=u)return;b=K4J(b,u-b.info.U)[1]}else if(b.info.Mf>=0&&F.D.Mf>=0&&!B6(F.D,b.info))throw new g.hC("improper_continuation",F.D.uX(),b.info.uX());OFG(F.D,b.info)||ao(F,"d")}else if(b.info.U>0)throw new g.hC("continuation_of_null",b.info.uX());F.D=b.info;F.W=b.info.C;if(b.info.U===0){if(F.C)if(!F.Zv.isOffline()||F.policy.Gc)F.Zv.UQ("slice_not_fully_processed",{buffered:F.C.info.uX(), push:b.info.uX()});else throw new g.hC("slice_not_fully_processed",F.C.info.uX(),b.info.uX());e3(F);F.qf=I}else{if(F.qf&&I&&F.qf!==I)throw F=new g.hC("lmt_mismatch",b.info.Mf,F.qf,I),F.level="WARNING",F;!b.info.C.pc()&&F.Z&&(I=b.info,u=F.Z.fF,I.D="updateWithEmsg",I.Mf=u)}if(F.C){I=g.xm(F.C,b);if(!I)throw new g.hC("failed_to_merge",F.C.info.uX(),b.info.uX());F.C=I}else F.C=b;a:{b=g.nF(F.C.info.C.info);if(F.C.info.type!==3){if(!F.C.info.Z)break a;F.C.info.type===6?bWa(F,J,F.C):I1J(F,F.C);F.C=null}for(;F.C;){I= F.C.C.getLength();if(F.Gj<=0&&F.N===0){var w=F.C.C,M=-1;u=-1;if(b){for(var q=0;q+8<w.getLength();){var v=TPz(w,q),a=TPz(w,q+4);q+=v||1;if(a===1836019558)M=q;else if(a===1835295092){u=q;break}}u<0&&(M=-1)}else{w=new Md(w);for(v=q=!1;;){a=w.VB();var e=Zo7(w),K=e.id;e=e.size;if(!(K>0))break;if(K!==408125543)if(K===524531317)q=!0,e>=0&&(u=w.VB()+e,v=!0);else{if(q&&(K===160||K===163)&&(M<0&&(M=a),v))break;K===163&&(M=Math.max(0,M),u=w.VB()+e);if(K===160){M<0&&(u=M=w.VB()+e);break}w.skip(e)}}M<0&&(u=-1)}if(M< 0)break;F.Gj=M;F.N=u-M}if(F.Gj>I)break;F.Gj?(I=u1Y(F,F.Gj),I.D&&wGa(F,I),bWa(F,J,I),K7(F,I),F.Gj=0):F.N&&(I=u1Y(F,F.N<0?Infinity:F.N),F.N-=I.C.getLength(),K7(F,I))}}F.C&&F.C.info.Z&&(K7(F,F.C),F.C=null)}; I1J=function(F,J){!J.info.C.pc()&&J.info.U===0&&(g.nF(J.info.C.info)||J.info.C.info.Xb())&&zgC(J);if(J.info.type===1)try{wGa(F,J),AgG(F,J)}catch(u){g.Td(u);var b=rG(J.info);b.hms="1";F.Zv.handleError("fmt.unparseable",b||{},1)}b=J.info.C;b.Eg(J);F.V&&Dxo(F.V,J);if(b.VJ()&&F.policy.C)a:{F=F.Zv.lR;J=J.info.clipId;b=g.H4(b.info,F.MW);if(J){var I=$tv(F,b);if(F.dD[I])break a;F.dD[I]=J}F.fW.push(b)}}; sxY=function(F,J,b){if(F.U.length!==0&&(b||F.U.some(function(w){return w.info.hF<J}))){b=0; for(var I=g.N(F.U),u=I.next();!u.done;u=I.next()){u=u.value;if(u.info.hF<J)break;F.Zv.UQ("cmat",{max:J,s:u.info.uX()});b+=1}F.U.splice(0,b)}}; v0=function(F){var J;(J=F.V)==null||J.dispose();F.V=null}; qDo=function(F){var J=F.U.reduce(function(b,I){return b+I.C.getLength()},0); F.C&&(J+=F.C.C.getLength());return J}; vjm=function(F){if(F.eE&&!F.policy.aX){var J=F.Zv;J.lR.isManifestless&&zF(J.lR,F.eE.Mf,!!F.W.info.video)}F.eE=null;F.Z=null;F.D=F.nW;F.T=F.D?F.T-F.Tj:NaN;e3(F)}; u1Y=function(F,J){var b=F.C;J=Math.min(J,b.C.getLength());if(J===b.C.getLength())return F.C=null,b;b=K4J(b,J);F.C=b[1];return b[0]}; wGa=function(F,J){J.C.getLength();var b=J.AF();if(oT(J.info.C.info)&&J.info.C.info.video.primaries==="bt2020"){var I=new tt(b);Hd(I,[408125543,374648427,174,224,21936,21937])&&(I=I.start+I.pos,b.getUint8(I)===129&&b.getUint8(I+1)===1&&b.setUint8(I+1,9))}I=J.info.C.info;O5(I)&&!oT(I)&&(I=J.AF(),(new tt(I)).Uv(),bU([408125543,374648427,174,224],21936,I));J.info.C.info.v1()&&(I=J.info.C,I.info&&I.info.video&&I.info.video.projectionType==="MESH"&&!I.U&&(g.nF(I.info)?I.U=lfC(b):I.info.Xb()&&(I.U=Vg4(b)))); J.info.C.info.Xb()&&J.info.v1()&&(b=J.AF(),(new tt(b)).Uv(),bU([408125543,374648427,174,224],30320,b)&&bU([408125543,374648427,174,224],21432,b));if(F.policy.UO&&J.info.C.info.Xb()){b=J.AF();var u=new tt(b);if(Hd(u,[408125543,374648427,174,29637])){I=JM(u,!0);u=u.start+u.pos;for(var w=0;w<I-1;w++)b.setUint8(u+w,0);b.setUint8(u+I-1,1)}}if(F.Cd()&&g.nF(J.info.C.info)){I=J.AF();b=g.Rt(I,0,1701606260);w=g.Rt(I,0,1836476516);if(b&&w){b.skip(2);var M=Pd(b),q=TK(b);I=[];u=[];var v=[],a=[];if(M)for(M=0;M< q;++M)I.push(r_(b)),u.push(r_(b)),v.push(Pd(b)),a.push(Pd(b));else for(M=0;M<q;++M)I.push(Bd(b)),u.push(Bd(b)),v.push(Pd(b)),a.push(Pd(b));b=g.DT(w);b=new iFz(u[0]/b,I[0]/b)}else b=null;if(b){if(g.nF(J.info.C.info))for(I=J.AF(),u=g.Rt(I,0,1701082227);u;)w=u,w.type=1936419184,w.data.setUint32(w.offset+4,1936419184),u=g.Rt(I,u.offset+u.size,1701082227);F.bR=!0;J.info.C.Z=b}}J.info.C.pc()||J.info.C.C||J.info.C.indexRange||H6(J)}; bWa=function(F,J,b){if(b.info.C.pc()){if(F.bR&&a1z(b)&&(J=b.AF(),J=g.Rt(J,0,1953658222))){J.skip(1);var I=VJ(J)<<16|Pd(J),u=I&1,w=I&4;if(I&256){var M=I&512,q=I&1024;I&=2048;var v=TK(J);v<2||(u&&J.skip(4),w&&J.skip(4),u=TK(J),J.skip((v-1)*(4+(M?4:0)+(q?4:0)+(I?4:0))-4),J.data.setUint32(J.offset+J.C,u))}}if(J=F.kQ&&!!F.kQ.W.Z)if(J=b.info.v1())J=yGG(b),M=F.kQ,p7?(q=1/J,J=g9(F,J)>=g9(M)+q):J=F.getDuration()>=M.getDuration(),J=!J;J&&a1z(b)&&(J=F.kQ,p7?(q=yGG(b),M=1/q,q=g9(F,q),J=g9(J)+M-q):J=J.getDuration()- F.getDuration(),J=1+J/b.info.duration,Nko(b.AF(),J))}else{M=!1;F.Z||(zgC(b),b.U&&(F.Z=b.U,M=!0,w=b.info,I=b.U.fF,w.D="updateWithEmsg",w.Mf=I,w=b.U,w.aQ&&(I=F.W.index,I.U=!w.aQ,I.T="emsg"),w=b.info.C.info,I=b.AF(),g.nF(w)?xZ(I,1701671783):w.Xb()&&bU([408125543],307544935,I)));a:if((w=Zc(b,F.policy.If))&&iBo(b))q=e0G(F,b),F.Y+=q,w-=q,F.Tj+=w,F.T=F.policy.XI?F.T+w:NaN;else{if(F.policy.N5){if(I=v=F.Zv.C1(g.no(b),1),F.T>=0&&b.info.type!==6){if(F.policy.XI&&isNaN(F.KW)){g.rQ(new g.hC("Missing duration while processing previous chunk", b.info.uX()));F.Zv.isOffline()&&!F.policy.Gc||Ktk(F,b,I);ao(F,"m");break a}var a=v-F.T,e=a-F.Y,K=b.info.Mf,p=F.fW?F.fW.Mf:-1,m=F.oI,y=F.KW,f=F.policy.gO&&a>F.policy.gO,d=Math.abs(e)>10,G=Math.abs(F.T-I)<1E-7;if(Math.abs(e)>1E-4){F.dD+=1;var P=(u=F.Z)==null?void 0:Xh(u);u={audio:""+ +F.Cd(),sq:K.toFixed(),sliceStart:v,lastSq:p.toFixed(),lastSliceStart:m,lastSliceDuration:y,totalDrift:(a*1E3).toFixed(),segDrift:(e*1E3).toFixed(),skipRewrite:""+ +(f||d)};if(P==null?0:P.length)u.adCpn=P[0];F.Zv.handleError("qoe.avsync", u);F.Jz=K}f||d||G||(I=F.T);u=e0G(F,b,v);w-=u;F.Y=a+u;F.policy.T&&(e&&!G||u)&&(a=(q=F.Z)==null?void 0:Xh(q),F.Zv.UQ("discontinuityRewrite",{adCpn:(a==null?0:a.length)?a.join("."):"",itag:b.info.C.info.itag,sq:b.info.Mf,originalStartTime:v,rewrittenStartTime:I,startTimeAdjustment:I-v,segDrift:(e*1E3).toFixed(),originalDuration:w+u,rewrittenDuration:w,durationAdjustment:u}))}}else I=isNaN(F.T)?b.info.startTime:F.T;Ktk(F,b,I)&&(F.Tj+=w,F.T=I+w,F.policy.k6&&F.dD>=F.policy.k6&&(F.dD=0,F.Zv.M$({resetForRewrites:"count"})))}F.fW= b.info;F.KW=tM(b);b.T>=0&&(F.oI=b.T);if(M&&F.Z){M=pGa(F,!0);So(b.info,M);F.C&&So(F.C.info,M);J=g.N(J);for(q=J.next();!q.done;q=J.next())q=q.value,u=void 0,F.policy.W&&q.Mf!==((u=F.Z)==null?void 0:u.fF)||So(q,M);(b.info.Z||F.C&&F.C.info.Z)&&b.info.type!==6||(F.eE=M,F.policy.oI?(J=gja(F.Z),F.Zv.Io(F.W,M,J)):(J=F.Zv,J.lR.isManifestless&&mQo(J,M,null,!!F.W.info.video)),F.policy.IP||ygm(F))}}AgG(F,b);F.timestampOffset&&gna(b,F.timestampOffset)}; K7=function(F,J){if(J.info.Z){F.nW=J.info;if(F.Z){var b=F.Z,I=pGa(F,!1);b=gja(b);F.Zv.Io(F.W,I,b);F.eE||F.policy.IP||ygm(F);F.eE=null}e3(F)}F.V&&Dxo(F.V,J);if(I=F.q$())if(I=g.xm(I,J,F.policy.Ys)){F.U.pop();F.U.push(I);return}F.U.push(J)}; gja=function(F){if(F.Hz()){var J=F.data["Stitched-Video-Id"]?F.data["Stitched-Video-Id"].split(",").slice(0,-1):[],b=Xh(F),I=[];if(F.data["Stitched-Video-Duration-Us"])for(var u=g.N(F.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),w=u.next();!w.done;w=u.next())I.push((Number(w.value)||0)/1E6);u=[];if(F.data["Stitched-Video-Start-Frame-Index"]){w=g.N(F.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var M=w.next();!M.done;M=w.next())u.push(Number(M.value)||0)}u=[]; if(F.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(w=g.N(F.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),M=w.next();!M.done;M=w.next())u.push((Number(M.value)||0)/1E6);F=new hum(J,b,I,u,g.mMJ(F),g.y17(F))}else F=null;return F}; e3=function(F){F.C=null;F.Gj=-1;F.N=0;F.Z=null;F.WN=NaN;F.Tj=0;F.eE=null}; ao=function(F,J){J={rst4disc:J,cd:F.Y.toFixed(3),sq:F.fW?F.fW.Mf:-1};F.T=NaN;F.Y=0;F.Jz=-1;F.fW=null;F.oI=NaN;F.KW=NaN;F.zj=null;F.Zv.UQ("mdstm",J)}; AgG=function(F,J){if(F.W.info.Ke){if(J.info.C.info.Xb()){var b=new tt(J.AF());if(Hd(b,[408125543,374648427,174,28032,25152,20533,18402])){var I=JM(b,!0);b=I!==16?null:Mx(b,I)}else b=null;I="webm"}else J.info.V=OoG(J.AF()),b=omv(J.info.V),I="cenc";b&&b.length&&(b=new u2(b,I),F.policy.wI&&g.nF(J.info.C.info)&&(I=jTo(J.AF()))&&(b.U=I),b.Xb=J.info.C.info.Xb(),J.U&&J.U.cryptoPeriodIndex&&(b.cryptoPeriodIndex=J.U.cryptoPeriodIndex),J.U&&J.U.U&&(b.C=J.U.U),F.Zv.vc(b))}}; ygm=function(F){var J=F.Z,b=p4J(J);b&&(b.startSecs+=F.WN,F.Zv.K9(F.W,b,J.fF,J.Hz()))}; pGa=function(F,J){var b,I=F.Z;if(b=p4J(I))b.startSecs+=F.WN;var u=F.WN;F=J?I.U2:F.Tj;var w=I.Hz()?2:1;return new d_(I.fF,u,F,I.ingestionTime,"sq/"+I.fF,void 0,void 0,J,b,w)}; Ktk=function(F,J,b){if(!pez(J,b))return J=rG(J.info),J.smst="1",F.Zv.handleError("fmt.unparseable",J||{},1),!1;isNaN(F.WN)&&(F.WN=b);return!0}; e0G=function(F,J,b){var I=0;if(J.info.C.info.Xb()&&!iBo(J))return 0;if(F.kQ&&!F.Cd()){var u=0;b&&g.nF(J.info.C.info)?u=b-F.T:J.info.C.info.Xb()&&(u=F.Y);var w=J.info.Mf;b=Zc(J,F.policy.If);var M=F.kQ;var q=M.Jz;M=M.Y;var v=Math.abs(M-u)>.02;if((w===q||w>q&&w>F.Jz)&&v){I=Math.max(.95,Math.min(1.05,(b-(M-u))/b));if(g.nF(J.info.C.info))Nko(J.AF(),I);else if(J.info.C.info.Xb()&&(w=u-M,!g.nF(J.info.C.info)&&(J.info.C.info.Xb(),I=new tt(J.AF()),q=J.D?I:new tt(new DataView(J.info.C.C.buffer)),Zc(J,!0)))){var a= w*1E3,e=qx(q);q=I.pos;I.pos=0;if(I.C.getUint8(I.pos)===160||v6(I))if(Fz(I,160))if(JM(I,!0),Fz(I,155)){if(w=I.pos,v=JM(I,!0),I.pos=w,a=a*1E9/e,e=IA(I),a=e+Math.max(-e*.7,Math.min(e,a)),a=Math.sign(a)*Math.floor(Math.abs(a)),!(Math.ceil(Math.log(a)/Math.log(2)/8)>v)){I.pos=w+1;for(w=v-1;w>=0;w--)I.C.setUint8(I.pos+w,a&255),a>>>=8;I.pos=q}}else I.pos=q;else I.pos=q;else I.pos=q}I=Zc(J,F.policy.If);I=b-I}I&&J.info.C.info.Xb()&&F.Zv.UQ("webmDurationAdjustment",{durationAdjustment:I,videoDrift:u+I,audioDrift:M})}return I}; a1z=function(F){return F.info.C.pc()&&F.info.Mf===F.info.C.index.oC()}; g9=function(F,J){J=(J=J===void 0?0:J)?Math.round(F.timestampOffset*J)/J:F.timestampOffset;F.W.Z&&J&&(J+=F.W.Z.C);return J+F.getDuration()}; iWo=function(F,J){J<0||(F.U.forEach(function(b){gna(b,J)}),F.timestampOffset=J)}; T9=function(F,J,b,I,u){x7.call(this,b,u);var w=this;this.policy=F;this.formatId=J;this.ZV=I;this.lastError=null;this.aP=function(){w.iR()||(w.ZV.Fq.has(w.formatId)?(w.isComplete()||w.C.start(),dg(w.ZV,w.formatId)&&w.EX(2),w.ZV.Ph(w.formatId)&&(oZ7(w.ZV,w.formatId)?w.aC(4):(w.lastError="net.closed",w.aC(5)))):(w.lastError="player.exception",w.aC(5)))}; this.C=new g.ty(function(){w.isComplete()||(w.lastError="net.timeout",w.aC(5))},this.policy.LT); this.C.start();DvJ(this.ZV,this.formatId,this.aP);g.qf(this.aP)}; mV=function(F,J,b,I){g.R.call(this);var u=this;this.Zv=F;this.policy=J;this.C=b;this.timing=I;this.logger=new g.Hl("dash");this.T=[];this.Gj=[];this.U=this.dw=null;this.qf=!1;this.dD=this.zj=0;this.W=-1;this.eE=!1;this.WN=-1;this.kQ=this.fW=null;this.Tj=NaN;this.Po={ND:function(){return u.Z}, F5z:function(){return u.T}, CJz:function(){return u.Y}}; this.Z=new Lc3(F,J,b);this.policy.C&&(this.Y=new G9(this.Z,this.Zv.getManifest(),this.policy,function(w){u.policy.GH&&u.UQ("buftl",w)})); this.policy.bR&&(this.N=new nv(this));this.LW=b.info.LW;this.V=this.policy.eE?!1:b.a9();this.isManifestless=b.a9();this.D=this.V;g.k(this,this.fW)}; yO=function(F,J,b){b=b===void 0?!1:b;J&&p7&&iWo(F.Z,J.Av());if(!b){var I;(I=F.Y)==null||BB3(I)}F.dw=J;(J=F.Y)!=null&&(J.dw=F.dw)}; i2=function(F){var J=F.dw&&F.dw.Vo();if(F.policy.zd){if((F=F.Y)==null)F=void 0;else{var b;F=(b=F.T)==null?void 0:b.info}return F||null}return J}; z04=function(F){for(var J={},b=0;b<F.Gj.length;b++)J["r"+b]=F.Gj[b];return J}; z1=function(F,J){isNaN(F.Tj)||F.UQ("aswr",{sq:J.info.aI[0].Mf,id:J.info.aI[0].C.info.itag,xtag:J.info.aI[0].C.info.C,ep:Date.now()-F.Tj});F.T.push(J);F.U=g.ck(J.info.aI);F.Gj.push(J.uX());F.Gj.length>4&&F.Gj.shift()}; Ndo=function(F,J){if(J.Im()){var b=J.UY();b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,F.policy.T&&J instanceof T9&&F.UQ("omblss",{s:I.info.uX()}),Nd(F,J.info.aI,I,J.PZ())}}; Nd=function(F,J,b,I){I=I===void 0?0:I;isNaN(F.Tj)||(F.UQ("aswm",{sq:J[0].Mf,id:J[0].C.info.itag,xtag:J[0].C.info.C,ep:Date.now()-F.Tj}),F.Tj=NaN);switch(b.info.type){case 1:case 2:l1C(F,b);break;case 4:var u=b.info.C,w=u.v7(b),M;((M=F.U)==null?0:M.type===4)&&tg7(b.info,F.U)&&(F.U=u.Iq(F.U).pop());b=g.N(w);for(u=b.next();!u.done;u=b.next())Nd(F,J,u.value,I);break;case 3:b.info.C.info.video?(u=F.timing,u.kQ||(u.kQ=(0,g.jR)(),dM("fvb_r",u.kQ,u.C))):(u=F.timing,u.W||(u.W=(0,g.jR)(),dM("fab_r",u.W,u.C))); M$a(F.Z,J,b,I);F.policy.C&&f1o(F);break;case 6:M$a(F.Z,J,b,I),F.U=b.info}}; l1C=function(F,J){if(J.info.type===1)if(J.info.C.info.video){var b=F.timing;b.fW||(b.fW=(0,g.jR)(),dM("vis_r",b.fW,b.C))}else b=F.timing,b.Y||(b.Y=(0,g.jR)(),dM("ais_r",b.Y,b.C));I1J(F.Z,J);F=F.Zv;F.videoTrack.C.VJ()&&F.audioTrack.C.VJ()&&F.policy.C&&!F.lR.MW&&(J=F.audioTrack.getDuration(),b=F.videoTrack.getDuration(),Math.abs(J-b)>1&&F.UQ("trBug",{af:""+g.H4(F.audioTrack.C.info,!1),vf:""+g.H4(F.videoTrack.C.info,!1),a:""+J,v:""+b}))}; Ra=function(F){return Ft7(F.Z)}; f1o=function(F){F.T.length?F.U=g.ck(g.ck(F.T).info.aI):F.Z.U.length?F.U=F.Z.q$().info:F.U=i2(F)}; l2=function(F,J){var b={Ym:[],mI:[]},I;if((F=F.Y)==null)F=void 0;else{PfC(F,F.Ym,"og");jxo(F,J);PfC(F,F.Ym,"trim");var u=Vv3(F);J=u.Ym;u=u.Lc;for(var w=[],M=0;M<u.length;M++){var q=u[M],v=F.policy.Jz&&q.T!==-1?q.T:q.info.startTime,a={startTicks:(v+F.timestampOffset)*1E3,Ll:(F.policy.Jz&&q.Z!==-1?q.Z:q.info.duration)*1E3,timescale:1E3},e=void 0,K=(e=F.dw)==null?void 0:e.N0();e=void 0;if(F.policy.uK&&K&&K.length>0){var p=wu(K,v);p>=0&&(e=(K.end(p)-v+.1)*1E3)}w.push({formatId:g.H4(q.info.C.info,F.lR.MW), C4:q.info.C4,sequenceNumber:q.info.Mf+F.Z,oh:a,Wf:q.info.T,XX:e})}F={Ym:J,mI:w}}return(I=F)!=null?I:b}; se=function(F,J,b){b=b===void 0?!1:b;if(F.dw){var I=F.dw.N0(),u=AG(I,J),w=NaN,M=i2(F);M&&(w=AG(I,M.C.index.getStartTime(M.Mf)));if(u===w&&F.U&&F.U.T&&WtY(f7(F),0))return J}F=dQa(F,J,b);return F>=0?F:NaN}; $7=function(F,J,b){F.C.VJ();var I=dQa(F,J);if(I>=0)return I;var u;(u=F.Y)==null||GRG(u,J,b);b=Math;I=b.min;u=F.Z;if(u.V)if(u=u.V,u.eT&&u.eT.type===3)u=u.eT.startTime;else if(u.T>0){var w=u.C.index;w=g.AL(w.offsets.subarray(0,w.count),u.T*u.chunkSize);u=u.C.index.getStartTime(w>=0?w:Math.max(0,-w-2))}else u=0;else u=Infinity;J=I.call(b,J,u);if(F.policy.U){var M,q;b=(M=F.Zv.IH())==null?void 0:(q=Pl(M,J))==null?void 0:q.clipId;F.U=F.C.CA(J,void 0,b).aI[0]}else F.U=F.policy.eE?null:F.C.CA(J).aI[0];W0(F)&& (F.dw&&F.dw.abort(),F.policy.QF&&(M=F.Y)!=null&&(M.T=void 0));F.dD=0;return F.U?F.U.startTime:J}; r83=function(F){F.V=!0;F.D=!0;F.W=-1;$7(F,Infinity)}; d9=function(F){for(var J=0,b=g.N(F.T),I=b.next();!I.done;I=b.next())J+=HFa(I.value.info);return J+=qDo(F.Z)}; j3=function(F,J){J=J===void 0?!1:J;var b=F.Zv.getCurrentTime(),I=F.Z.q$(),u=(I==null?void 0:I.info.H1)||0;F.policy.Uk&&(I==null?0:I.info.C.a9())&&!I.info.Z&&(u=I.info.hF);if(F.policy.U&&I&&I.info.clipId){var w,M=(((w=F.Zv.IH())==null?void 0:V5(w,I.info.clipId))||0)/1E3;u+=M}if(!F.dw)return F.policy.C&&J&&!isNaN(b)&&I?u-b:0;if((w=i2(F))&&EE(F,w))return w.H1;M=F.dw.N0(!0);if(J&&I)return w=0,F.policy.C&&(w=ve(M,u+.02)),w+u-b;u=ve(M,b);F.policy.BO&&w&&(J=wu(M,b),M=wu(M,w.hF-.02),J===M&&(b=w.H1-b,F.policy.T&& b>u+.02&&F.UQ("abh",{bh:u,bhtls:b}),u=Math.max(u,b)));return u}; Eja=function(F){var J=i2(F);return J?J.H1-F.Zv.getCurrentTime():0}; jZz=function(F,J){if(F.T.length){if(F.T[0].info.aI[0].startTime<=J)return;Sd(F)}for(var b=F.Z,I=b.U.length-1;I>=0;I--)b.U[I].info.startTime>J&&b.U.pop();f1o(F);F.U&&J<F.U.startTime&&(F.dD=0,F.C.VJ()?F.U=F.C.CA(J,!0).aI[0]:F.U=null)}; G1=function(F,J,b,I){if(!F.C.index.vF(J,!0))return!1;try{Sd(F);for(var u=F.Z,w=null,M=u.U.length-1;M>=0;M--){var q=u.U[M];q.info.Mf>=J&&(u.U.pop(),u.T-=Zc(q,u.policy.If),w=q.info)}w&&(u.D=u.U.length>0?u.U[u.U.length-1].info:u.zj,u.U.length!==0||u.D||ao(u,"r"));u.Zv.UQ("mdstm",{rollbk:1,itag:w?w.C.info.itag:"",popped:w?w.Mf:-1,sq:J,lastslc:u.D?u.D.Mf:-1,lastfraget:u.T.toFixed(3)});if(F.policy.C)return F.U=null,!0;I>b?$7(F,I):F.U=F.C.iH(J-1,!1).aI[0]}catch(v){return J=Gj(v),J.details.reason="rollbkerr", F.Zv.handleError(J.errorCode,J.details,J.severity),!1}return!0}; P0=function(F,J){var b;for(b=0;b<F.T.length&&J!==F.T[b];b++);if(b===F.T.length)VO(F,J);else{for(;b<F.T.length;)VO(F,F.T.pop());var I=SI(F);I&&I.C.OL()&&Bc(J.info.aI,function(u){return ZF3(u,I)})?(F.U=I,F.policy.T&&F.UQ("cer",{lsr:"lsp", lsp:I.uX()})):(P6(J.info.aI[0])?(F.U=J.Mk&&J.Mk.T?xMz(J.Mk.T):UMm(J.info.aI[0]),F.policy.T&&F.UQ("cer",{lsr:F.U.uX(),lsp:I==null?void 0:I.uX()})):(F.U=null,F.policy.T&&F.UQ("cer",{lsr:"null",lsp:I==null?void 0:I.uX()})),F.Zv.isOffline()&&!F.policy.Gc||VO(F,J,!0))}}; EE=function(F,J){if(!J)return!1;if(F.policy.U){var b;if((F=(b=F.Zv.IH())==null?void 0:B0(b))&&J.clipId!==F)return!1}return J.aQ()}; W0=function(F){var J;!(J=F.C.info.YQ==="f")&&(J=F.policy.Z)&&(J=F.Z,J=!!J.V&&Hs(J.V));if(J)return!0;J=i2(F);if(!J)return!1;var b=EE(F,J)&&J.Z;return F.isManifestless&&F.WN>0?b||J.Mf>=F.WN:b}; T1=function(F){var J;return W0(F)||EE(F,(J=F.Z.q$())==null?void 0:J.info)}; f7=function(F){var J=[],b=i2(F);b&&J.push(b);J=g.FP(J,F.Z.Mp());b=g.N(F.T);for(var I=b.next();!I.done;I=b.next()){I=I.value;for(var u=g.N(I.info.aI),w=u.next(),M={};!w.done;M={oy:void 0},w=u.next())M.oy=w.value,I.Kb&&(J=g.qN(J,function(q){return function(v){return!tg7(v,q.oy)}}(M))),(P6(M.oy)||M.oy.type===4)&&J.push(M.oy)}F.U&&!DMY(F.U,g.ck(J),F.U.C.pc())&&J.push(F.U); return J}; WtY=function(F,J){if(!F.length)return!1;for(J+=1;J<F.length;J++)if(!kjv(F[J-1],F[J]))return!1;return!0}; dQa=function(F,J,b){b=b===void 0?!1:b;if(!F.U||!F.U.T)return NaN;F=f7(F);a:{J+=.02;var I=b;I=I===void 0?!1:I;for(var u=-1,w=0;w<F.length;++w){var M=F[w];if(M.hF<=J)if(I)u=w;else if(M.startTime+M.duration>=J){J=w;break a}}J=u}return J<0?NaN:WtY(F,b?J:0)?F[J].startTime:NaN}; r9=function(F){return!(!F.U||F.U.C===F.C)}; GFG=function(F){return r9(F)&&F.C.VJ()&&F.U.C.info.LW<F.C.info.LW}; V$z=function(F,J,b){if(F.policy.Uk)return j3(F,!0)<b;var I=SI(F);return I&&!EE(F,I)?I.H1>J&&I.H1<J+b:!1}; SI=function(F){var J=F.Z.q$();return J?J.info:i2(F)}; p6v=function(F,J){var b;return!((b=F.Y)==null||!b.D.has(J))||Jgm(F.Z,J)}; Sd=function(F){for(var J=g.N(F.T),b=J.next();!b.done;b=J.next())VO(F,b.value);F.T=[];F.U=null}; S3=function(F){var J;(J=F.Y)==null||BB3(J)}; PIG=function(F,J,b){J.Kb&&((b===void 0?0:b)||!J.info.aI[0].C.OL())&&(F.logger.debug(function(){return"Rolling back request with segNum "+J.info.aI[0].Mf}),vjm(F.Z))}; VO=function(F,J,b){PIG(F,J,b===void 0?!1:b);J.dispose()}; Bd3=function(F){return!!F.U&&F.U.Mf!==-1&&F.U.Mf<F.C.index.nj()}; Tdz=function(F){var J=F.U;J&&J.Mf===-1&&(F=F.Z.q$())&&P6(F.info)&&(F=F.info.Mf,J.D="updateLastSliceRequested",J.Mf=F)}; rgz=function(F){return Bc(F.T,function(J){return J.v_})}; SDo=function(F,J){F.U&&(F.U.C=J)}; sE=function(F,J){return F.dw?Mt(F.dw.N0(),J):!0}; Ya=function(F){var J=Ra(F);F=F.Zv.IH();return J&&F&&J.info.clipId&&!sZk(F,J.info.clipId)?!0:!1}; $a=function(F){var J;return!((J=Ra(F))==null||!J.isLocked)}; YDa=function(F,J){var b=Ra(F);return b&&b.info.type!==6?!gmC(J,F,b.info.Mf):!1}; $Qk=function(F){var J=i2(F),b,I=(b=F.dw)==null?void 0:b.N0();b=NaN;J&&I&&W0(F)&&(b=AG(I,(J.hF+J.H1)/2));return!isNaN(b)}; CIa=function(F){if((F=F.Y)==null)F=void 0;else if(F.Ym.length===0||F.policy.fD&&F.C<0)F=null;else{var J=F.Ym[F.C]?F.Ym[F.C].formatId:null;F=J?(F=F.lR.T.get(lU(J)))?F.info:null:null}return F||null}; XGz=function(){this.lq=!1}; QZ7=function(F){var J=F===void 0?{}:F;F=J.hasSubfragmentedFmp4===void 0?!1:J.hasSubfragmentedFmp4;J=J.I0===void 0?!1:J.I0;var b=new XGz;b.lq=F||J;return b}; g.R04=function(F){this.PN=F;this.Y=new XGz;this.IX=this.N6=!1;this.xx=2;this.dD=20971520;this.cN=8388608;this.Gj=120;this.TZ=this.Dc=this.tG=2;this.Px=this.mq=!1;this.sW=1E3;this.Kk=15;this.jm=1;this.N=1.15;this.Tj=1.05;this.jn=1;this.wX=this.YH=!1;this.T8=6;this.T=!1;this.PC=100;this.rZ=10;this.jY=6;this.LF=!1;this.Pn=1;this.E2=this.K7=!1;this.PS=2;this.N5=this.B9=!1;this.xm=!0;this.ir=this.Om=this.Wu=this.Q2=this.g9=!1;this.eD=!0;this.dk=!1;this.Z="";this.D4=[];this.nL=this.TX=this.bR=!1;this.hN= 0;this.GU="";this.c5=this.LI=this.ul=this.GH=this.Ao=this.MJ=this.W=this.Sl=this.fL=this.fN=this.C=this.lJ=this.nW=this.kQ=this.QF=this.zd=this.qf=this.U=this.IP=!1;this.zU=!0;this.Cu=this.Uk=this.v0=this.cE=this.D=this.Jz=!1;this.KW=!0;this.s8=this.XZ=this.Vk=this.MI=this.hG=this.ZT=this.uK=this.KI=this.Um=this.Op=this.eE=this.R5=this.oI=this.In=this.WN=!1;this.n7=this.PN.S("html5_trigger_loader_long_poll_on_sabr_backoff");this.Vj=this.PN.S("html5_trigger_fallback_count_from_probe");this.nI=g.eB(this.PN.experiments, "html5_min_readbehind_secs");this.vO=g.eB(this.PN.experiments,"html5_min_readbehind_cap_secs");this.Gc=this.PN.S("html5_offline_reset_media_stream_on_unresumable_slices");this.LW=NaN;this.ZY=C7(this,"html5_request_size_min_kb",64)*1024;this.zj=2097152;this.HO=C7(this,"html5_bypass_contention_secs");this.xA=1048576;this.xH=C7(this,"html5_repredict_interval_ms",1800);this.SY=C7(this,"html5_head_miss_secs",5);this.pT=C7(this,"html5_min_upgrade_health_secs",10);this.J5=C7(this,"html5_min_seconds_between_format_selections", 8);this.TP=C7(this,"html5_max_buffer_health_for_downgrade_secs",15);this.df=UD;this.eB=g.eB(this.PN.experiments,"html5_min_startup_buffered_media_duration_secs");this.ra=g.eB(this.PN.experiments,"html5_post_interrupt_readahead");this.Oc=this.PN.S("html5_allow_onesie_for_ssap");this.Yd=this.PN.S("html5_disable_classic_alr");this.U8=g.eB(this.PN.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Xz=C7(this,"html5_ssdai_failure_retry_limit",3);this.b1=this.PN.experiments.pW("html5_clone_original_for_fallback_location"); this.M0=g.eB(this.PN.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.DY=g.eB(this.PN.experiments,"html5_subsegment_readahead_timeout_secs");this.w7=g.eB(this.PN.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.qh=g.eB(this.PN.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Tv=g.eB(this.PN.experiments,"html5_subsegment_readahead_min_load_speed");this.GW=g.eB(this.PN.experiments,"html5_subsegment_readahead_load_speed_check_interval"); this.TL=g.eB(this.PN.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.iJ=C7(this,"html5_hopeless_secs",15);this.F8=this.PN.S("html5_restrict_streaming_xhr_on_sqless_requests");this.VT=g.eB(this.PN.experiments,"html5_max_headm_for_streaming_xhr");this.ez=this.PN.S("html5_pipeline_manifestless_allow_nonstreaming");this.fV=this.PN.S("html5_prefer_server_bwe3");this.LX=this.PN.S("html5_last_slice_transition");this.IF=this.PN.S("html5_store_xhr_headers_readable");this.gO=g.eB(this.PN.experiments, "html5_max_drift_per_track_secs");this.aX=this.PN.S("html5_no_placeholder_rollbacks");this.Ch=this.PN.S("html5_subsegment_readahead_enable_mffa");this.xo=this.PN.S("html5_allow_video_keyframe_without_audio");this.wI=this.PN.S("html5_enable_vp9_fairplay");this.UK=1048576;this.sK=this.PN.S("html5_woffle_resume");this.Ar=this.PN.S("html5_abs_buffer_health");this.b2=this.PN.S("html5_interruption_resets_seeked_time");this.zP=g.eB(this.PN.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.uH=this.PN.S("html5_log_additional_source_buffer_updates");this.ws=this.PN.S("html5_report_captions_ctmp_qoe");this.SD=this.PN.S("html5_explicitly_dispose_xhr");this.Ys=!this.PN.S("html5_encourage_array_coalescing");this.tE=this.PN.S("html5_restart_on_unexpected_detach");this.CM=this.PN.S("html5_filter_non_efficient_formats_for_safari");this.PN.S("html5_format_hybridization");this.A2=this.PN.S("html5_abort_before_separate_init");this.UO=U6();this.VZ=this.PN.S("html5_serialize_server_stitched_ad_request"); this.h5=this.PN.S("html5_skip_buffer_check_seek_to_head");this.qa=this.PN.S("html5_attach_po_token_to_bandaid");this.F$=g.eB(this.PN.experiments,"html5_max_redirect_response_length")||8192;this.XI=this.PN.S("html5_rewrite_timestamps_for_webm");this.If=this.PN.S("html5_only_media_duration_for_discontinuities");this.ip=g.eB(this.PN.experiments,"html5_resource_bad_status_delay_scaling")||1;this.PN.S("html5_onesie_live");this.e9=this.PN.S("html5_onesie_premieres");this.Z1=this.PN.S("html5_drop_onesie_for_live_mode_mismatch"); this.m_=g.eB(this.PN.experiments,"html5_onesie_live_ttl_secs")||8;this.bd=g.eB(this.PN.experiments,"html5_attach_num_random_bytes_to_bandaid");this.LT=g.eB(this.PN.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Zt=this.PN.S("html5_update_container_type_on_codec_family_change")||this.PN.S("html5_use_update_container_type_codec_family");this.Cl=this.PN.S("html5_dont_call_change_type_on_updating");this.Lv=this.PN.S("html5_apply_ssap_slice_info_adjustment");this.NW=this.PN.S("html5_enable_sabr_host_fallback"); this.rf=this.PN.S("html5_ssap_enable_legacy_browser_logic");this.Sj=this.PN.S("html5_ssap_enable_delay_init");this.wp=this.PN.S("html5_gapless_fallback_on_append_error");this.oF=this.PN.S("html5_shorts_stop_request_when_buffer_to_end");this.u_=this.PN.S("html5_vod_stop_request_when_buffer_to_end");this.fW=this.PN.S("html5_ssdai_use_post_for_media")&&this.PN.S("gab_return_sabr_ssdai_config");this.XJ=this.PN.S("html5_use_post_for_media");this.Ly=this.PN.S("html5_use_live_ump_heartbeat");this.useUmp= this.PN.S("html5_use_ump");this.pM=this.PN.xH;this.rh=this.PN.S("html5_reset_primary_stats_on_redirector_failure");this.AQ=this.PN.S("html5_remap_to_original_host_when_redirected");this.gL=this.PN.S("html5_sabr_support_quality_constraints");this.Q1=this.PN.S("html5_sabr_remove_all_quality_constraints");this.KT=this.PN.S("html5_iterative_seeking_buffered_time");this.gT=this.PN.S("html5_use_network_error_code_enums");this.nT=this.PN.S("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation= this.PN.S("html5_enable_server_driven_request_cancellation");this.Au=this.PN.S("html5_enable_sabr_request_timing");this.Uz=this.PN.S("html5_enable_server_format_filter");this.GS=this.PN.S("html5_enable_lawnmower");this.pF=this.PN.hJ()?g.eB(this.PN.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.mE=g.eB(this.PN.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.CT=this.PN.S("html5_live_defrag_only_h264_playbacks");this.IB=this.PN.S("html5_live_defrag_only_h264_formats"); this.eN=this.PN.S("html5_record_now");this.oV=g.eB(this.PN.experiments,"html5_drm_byterate_soft_cap");this.Yf=g.eB(this.PN.experiments,"html5_drm_live_byterate_soft_cap");this.V=this.PN.S("html5_sabr_log_request_creation");this.Mh=this.PN.S("html5_use_buffer_timeline_for_sabr_request_creation");this.Se=this.PN.S("html5_sabr_report_request_cancellation_info");this.Uc=this.PN.S("html5_spoof_4k");this.BE=C7(this,"html5_min_media_duration_for_cabr_slice");this.t5=C7(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")|| .01;this.Fr=this.Ys?0:C7(this,"html5_min_media_duration_for_append_prop");this.Yw=this.PN.S("html5_remove_defrag_without_frame_level_streaming");this.xd=this.PN.S("html5_consume_all_buffered_bytes_one_poll");this.Nc=this.PN.S("html5_disable_urgent_adaptation");this.HC=this.PN.S("html5_apply_constraints_in_client_for_sabr");this.Ac=this.PN.S("html5_send_video_playback_ustreamer_config");this.k6=C7(this,"html5_max_discontinuity_rewrite_count");this.HQ=C7(this,"html5_fixed_media_duration_for_request"); this.OM=this.PN.S("html5_apply_fix_for_missing_seg_info_without_logger");this.jZ=C7(this,"html5_sabr_request_limit_per_period");this.y6=this.PN.S("html5_sabr_live_partial_segment");this.us=this.PN.S("html5_sabr_dispose_media_objects");this.Tc=this.PN.S("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.O5=this.PN.S("html5_enable_d6de4");this.sP=this.PN.S("html5_ssap_keep_only_ssap_eos_check");this.PN.S("html5_high_res_seek_logging");this.Ga=this.PN.S("html5_disable_chunk_synchronization_sabr_seek"); this.vP=this.PN.S("html5_enable_ssap_multi_audio_format_filtering");this.mY=g.eB(this.PN.experiments,"html5_override_micro_discontinuities_threshold_ms");this.yT=this.PN.S("defer_slice_processing_on_healthy_buffer_sabr");this.Vc=this.PN.S("html5_byterate_constraints");this.UP=this.PN.S("html5_refactor_sabr_audio_format_selection_logging");this.dL=this.PN.S("enable_sabr_snackbar_message");this.PN.S("html5_reinit_source_buffer_by_new_element");this.aB=this.PN.S("html5_refactor_sabr_video_format_selection_logging"); this.Ud=this.PN.S("html5_log_slice_info_in_sbu");this.T1=C7(this,"html5_paced_poll_ms");this.Ie=C7(this,"html5_paced_poll_min_health_ms");this.cO=this.PN.S("html5_disable_sabr_fallback");this.fD=this.PN.S("html5_track_current_buffered_range_at_sync");this.Ok=g.eB(this.PN.experiments,"html5_enable_sps_retry_backoff_ms");this.G8=this.PN.S("html5_sabr_live_timing");this.nx=this.PN.S("html5_sabr_enable_server_xtag_selection");this.AR=this.PN.S("html5_send_detailed_network_type");this.A4=this.PN.S("html5_sabr_skip_client_audio_init_selection"); this.BO=this.PN.S("html5_count_updating_slice_for_buffer_health");this.jh=this.PN.S("html5_report_max_buffer_bytes_limit_to_sabr");this.JY=this.PN.S("html5_sabr_live_audio_early_return_fix");this.gW=this.PN.S("html5_enable_media_serving_enforcement")||this.PN.S("html5_enable_sabr_context_cross_playback");this.Xc=g.eB(this.PN.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.oe=this.PN.S("html5_cuepoint_identifier_logging");this.WC=this.PN.hJ()}; rMa=function(F,J,b){b=b===void 0?!1:b;J.video.C>1080&&!F.N6&&(F.dD=36700160,F.cN=5242880,F.zj=Math.max(4194304,F.zj),F.N6=!0);J.video.C>2160&&!F.IX&&(F.dD=104857600,F.LW=13107200,F.IX=!0);g.eB(F.PN.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?J.isEncrypted()&&g.O6()&&g.D$("samsung")&&(g.D$("kant")||g.D$("muse"))&&(F.LW=g.eB(F.PN.experiments,"html5_samsung_kant_limit_max_bitrate")):J.isEncrypted()&&g.O6()&&g.D$("kant")&&(F.LW=1310720);F.oV!==0&&J.isEncrypted()&&(F.LW=F.oV);F.Yf!==0&&J.isEncrypted()&& b&&(F.LW=F.Yf);J.LW&&(F.xA=Math.max(F.ZY,Math.min(F.zj,5*J.LW)))}; Xo=function(F){return F.C&&F.fL&&F.playbackStartPolicy}; QO=function(F){return F.U||F.C&&F.Uz}; Ro=function(F,J,b,I){F.fL&&(F.playbackStartPolicy=J,F.P$=b,F.uh=I)}; C7=function(F,J,b){b=b===void 0?0:b;return g.eB(F.PN.experiments,J)||b}; DQv=function(F){var J=F===void 0?{}:F;F=J.E2;var b=J.lq;var I=J.x7;var u=J.oC;J=J.pu;this.E2=F;this.lq=b;this.x7=I;this.oC=u;this.pu=J}; oTz=function(F,J){if(J<0)return!0;var b=F.oC();return J<b||J===b&&!F.E2||J===b&&(F=F.pu())&&J===F.Mf?!0:!1}; h2o=function(F,J,b){if(!oTz(F,J))return 0;if(!F.lq||!isNaN(b)&&b>0)return 2;if(J<0)return 1;b=F.oC();return J<b||J===b&&(F=F.pu())&&J===F.Mf&&!F.pending?2:1}; D6=function(F,J,b){g.R.call(this);this.Zv=F;this.policy=J;this.Zy=b;this.U=0;this.C=!1;this.delay=new g.ty(this.T,this.policy.pF,this);g.k(this,this.delay)}; kFm=function(F,J){Nv(J.C)||(F.gw=J,F.U=0,g.Z_(F.delay))}; OW3=function(F,J,b,I,u){var w=this;this.Zv=F;this.policy=J;this.Zy=b;this.gw=I;this.Xx=u;this.done=!1;this.onTimeout=function(){w.done||(w.done=!0,w.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*ib(this.Zy)));this.timing=new oa(this,{Zy:this.Zy,XL:this.size,vu:!0,r_:function(){}, QY:this.policy.T});F=iU(this.gw,this.Xx,this.policy).XY.clone();i9(F);F.path!=="/videogoodput"&&(F.path="/videogoodput",F.url="");this.location=new aA(F);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=Zm(this.location,this.policy.Y,this.timing,this.policy.df,{});setTimeout(this.onTimeout,1E4)}; ojm=function(F,J,b){var I=F.r$();if(F.isComplete()||!I||F.info.gw.Xx(J,b))return 0;var u=J.PS;if(!u||I<u)return 0;F=gG(b,zC(F.info.gw,!0,J));return F.C||F.timedOut||F.started?0:2}; h0a=function(F,J,b){if(!(J.U8&&F.isComplete()&&F.canRetry()&&F.info.gw.Xx(J,b))||F.info.gw.Y)return 0;F=gG(b,zC(F.info.gw,!1,J));return F.T+J.U8*po(F,!0)>(0,g.jR)()?0:1}; ka=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){m=m===void 0?null:m;g.R.call(this);var y=this;this.Zv=F;this.policy=J;this.videoTrack=b;this.audioTrack=I;this.Z=u;this.C=w;this.timing=M;this.D=q;this.schedule=v;this.lR=a;this.T=e;this.Tj=K;this.QZ=p;this.vD=m;this.eE=!1;this.HJ="";this.jB=null;this.Qi=NaN;this.Gj=!1;this.U=null;this.j6=this.N=NaN;this.aV=this.W=0;this.logger=new g.Hl("dash");this.Po={Z5:function(f,d){return y.Z5(f,d)}}; this.policy.bd>0&&(this.HJ=g.Nq(this.policy.bd));this.policy.pF&&(this.Y=new D6(this.Zv,this.policy,this.schedule),g.k(this,this.Y))}; cg7=function(F,J,b){var I=J.U?J.U.C.gw:J.C.gw;var u=F.Z,w;(w=!F.policy.AQ)||(w=zK(I.C)===zK(I.T));w?I=!1:(u=gG(u,zK(I.T)),w=6E4*Math.pow(u.Z,1.6),(0,g.jR)()<u.T+w?I=!1:(u.T=(0,g.jR)(),u.Z+=1,I.C=I.T.clone(),I=!0));I&&F.Zv.UQ("hostch",{},!0);if(OE(F,J,b)){b=F.V(J,b);if(F.U){var M=b.aI[0].C.info.id;I=F.C;u=b.aI[0].Mf;I=u<0&&!isNaN(I.D)?I.D:u;u=sd(F.C,b.aI[0].hF,I);var q=J===F.audioTrack?1:2,v=b.aI[0].C.info.YQ;w=M.split(";")[0];a:{var a=F.C;if(a.C){var e=a.C.Wg.event;if(a.C.Mf===I){a=e==="predictStart"? void 0:a.C.Wg.event;break a}if(a.C.Mf===I-1){a=e==="start"||e==="continue"?e:void 0;break a}}a=void 0}if(F.policy.fW&&F.C.U!==0){var K=F.U.Rz(u,I,M,q,v,a);I<0&&q===2&&Yi(F.C,0,0,!0);if(K){var p;M=((p=K.Zc)==null?void 0:p.VO)||"";var m;p=((m=K.Zc)==null?void 0:m.Fy)||-1;F.Zv.UQ("sdai",{ssdaiinfo:"1",ds:M,skipsq:p,itag:w,f:v,sg:I,st:u.toFixed(3)});b.Z=K}}else if(m=F.U.R9(u,I,M,q,v,a),I<0&&q===2&&Yi(F.C,0,0,!0),m){p={dec_sq:I,itag:w,st:u.toFixed(3)};if(F.policy.VZ&&J.isRequestPending(I-1)){F.Zv.UQ("sdai", {wt_daistate_on_sg:I-1});return}F.Zv.UQ("sdai",p);m&&(b.C=new g.yJ(m));F.policy.T&&(m=b.gw.U3("id")||"",p=((K=b.C)==null?void 0:K.get("id"))||"",m!==p&&F.Zv.UQ("stmidmismatch",{cid:m,aid:p}))}else F.C.U!==5&&F.Zv.UQ("sdai",{nodec_sq:I,itag:w,st:u.toFixed(3)})}F.policy.nL&&b.aI[0].Mf!==-1&&b.aI[0].Mf<F.lR.De&&(b=J.C.iH(F.lR.De,!1));z1(J,oo(F,b));GL(F.timing);var y;(y=F.Y)==null||kFm(y,b.gw)}}; OE=function(F,J,b){if(F.policy.MJ)return!1;var I;var u=F.C,w=((I=J.U)==null?void 0:I.Mf)||-1;u.U===3&&w+1>=u.Z?(u.UQ("sdai",{haltrq:w+1,est:u.Z}),I=!1):I=u.U!==2;if(!I||!Nx(J.U?J.U.C.gw:J.C.gw,F.policy,F.Z,F.Zv.NU())||F.Zv.isSuspended&&(!zB(F.schedule)||F.Zv.M2))return!1;if(F.policy.Z&&VE>=5)return g.Z_(F.Zv.P_),!1;if(F.lR.isManifestless){if(J.T.length>0&&J.U&&J.U.Mf===-1||J.T.length>=F.policy.Pn||!F.policy.ez&&J.T.length>0&&!F.policy.Y.lq)return!1;if(J.V)return!F.lR.isLive||!isNaN(F.Qi)}if(rgz(J))return F.logger.debug("Pending request with server-selectable format found"), !1;if(!J.U){if(!J.C.VJ())return!1;$7(J,F.Zv.getCurrentTime())}if(Ra(J)&&(J.q$()!==Ra(J)||F.Zv.isSuspended))return!1;u=(I=F.policy.HO)&&!J.T.length&&j3(J,!0)<Math.min(I,j3(b));I=J.T.length+b.T.length;w=!F.policy.nT&&((J.T.length?J.T[0].qO():!1)||(b.T.length?b.T[0].qO():!1)||F.lR.isLive);(u||w)&&--I;if(I+1>=F.policy.xx)return!1;I=J.U;if(!I)return!0;I.type===4&&I.C.VJ()&&(J.U=g.ck(I.C.Iq(I)),I=J.U);if(!I.aQ()&&!I.C.D$(I))return!1;w=F.lR.SF||F.lR.Z;if(F.lR.isManifestless&&w){w=J.C.index.oC();var M=b.C.index.oC(); w=Math.min(w,M);if(J.C.index.cY()>0&&w>0&&I.Mf>=w)return J.WN=w,b.WN=w,!1}if(I.C.info.audio&&I.type===4||I.aQ())return!1;w=!J.D&&!b.D;if(u=!u)u=I.H1,u=!!(b.U&&!EE(b,b.U)&&b.U.H1<u);M=J===F.videoTrack&&F.policy.kQ;return u&&(!F.lR.isManifestless||b.U&&b.U.H1&&I.H1)&&w&&!M||F.policy.xm&&!J.D&&b.D?!1:P6(I)&&I.H1>UQ4(F,J)?(UQ4(F,J),!1):(F=J.dw)&&F.isLocked()?!1:!0}; UQ4=function(F,J){var b=F.C;b=b.C?b.C.Wg:null;if(F.policy.kQ&&b)return b.startSecs+b.Bg+15;J=Y7(F.Zv,J);F.policy.Kk>0&&(b=((0,g.jR)()-F.Zv.JO)/1E3,J=Math.min(J,F.policy.Kk+F.policy.jm*b));b=F.Zv.getCurrentTime()+J;return F.policy.ra&&(J=xQm(F.Zv)+F.policy.ra,J<b)?(F.Zv.UQ("mrl",{ori:b,mod:J},!0),F.policy.b2&&(F=F.Zv,b=(0,g.jR)(),F.JO=b),J):b}; nja=function(F,J,b){if(b!==0){a:if(J=J.info,b=b===2,J.C)J=null;else{var I=J.aI[0];if(J.range)var u=EL(J.range.start,Math.min(4096,J.T));else{if(J.U&&J.U.indexOf("/range/")>=0||J.gw.U3("defrag")==="1"||J.gw.U3("otf")==="1"){J=null;break a}u=EL(0,4096)}u=new sL([new GC(5,I.C,u,"createProbeRequestInfo"+I.D,I.Mf)],J.U);u.Xx=b;u.C=J.C;J=u}J&&oo(F,J)}}; oo=function(F,J){F.Zv.U6(J);var b=HFa(J),I=F.Zv.To();b={Zy:F.schedule,XL:b,TO:z2v(F.D,b),Kj:V4(J.aI[0]),vu:Nv(J.gw.C),QY:F.policy.T,r_:function(M,q){F.Zv.h7(M,q)}}; if(F.schedule.U.V){var u,w;b.nD=(((u=F.videoTrack.C)==null?void 0:u.info.LW)||0)+(((w=F.audioTrack.C)==null?void 0:w.info.LW)||0)}F.jB&&(b.Mf=J.aI[0].Mf,b.Qi=J.Qi,b.jB=F.jB);I={O8:LYC(J,F.Zv.getCurrentTime()),qM:F.policy.K7&&$m(J)&&J.aI[0].C.info.video?YLz(F.T):void 0,d5:F.policy.kQ,poToken:F.Zv.f1(),GV:F.Zv.f$(),HJ:F.HJ,j6:isNaN(F.j6)?null:F.j6,vD:F.vD,QZ:F.QZ,aV:F.aV,yh:I};return new re(F.policy,J,b,F.Z,function(M,q){try{a:{var v=M.info.aI[0].C,a=v.info.video?F.videoTrack:F.audioTrack;if(!(M.state>= 2)||M.isComplete()||M.r$()||!(!F.Zv.HN||F.Zv.isSuspended||j3(a)>3)){var e=ojm(M,F.policy,F.Z);e===1&&(F.Gj=!0);nja(F,M,e);if(M.isComplete()||M.iR()&&q<3){if(F.policy.T){var K=M.timing.BQ();K.rst=M.state;K.strm=M.xhr.kx();K.cncl=M.xhr&&M.lX.Z?1:0;F.Zv.UQ("rqs",K)}M.wN&&F.Zv.UQ("sbwe3",{},!0)}if(!F.iR()&&M.state>=2){qLm(F.timing,M,v);var p=F.Zv;F.j6&&M.Ip&&p&&(F.j6=NaN,F.Zv.AV(M.Ip),F.Zv.hP(),F.Zv.UQ("cabrUtcSeek",{mediaTimeSeconds:M.Ip}));M.Tp&&F.j6&&M.Tp&&!M.Tp.action&&(F.Zv.l4(F.j6),F.j6=NaN,F.Zv.UQ("cabrUtcSeekFallback", {targetUtcTimeSeconds:F.j6}));M.WQ&&F.Zv.n3(M.WQ);F.policy.Ly&&(F.aV=M.aV);if(M.state===3){P0(a,M);$m(M.info)&&hu(F,a,v,!0);if(F.U){var m=M.info.R9();m&&F.U.Vz(M.info.aI[0].Mf,v.info.id,m)}F.Zv.Va()}else if(M.isComplete()&&M.info.aI[0].type===5){if(M.state!==4)M.J4()&&F.Zv.handleError(M.rB(),M.qp());else{var y=(M.info.aI[0].C.info.video?F.videoTrack:F.audioTrack).T[0]||null;y&&y instanceof re&&y.r$()&&y.DD(!0)}M.dispose()}else{M.J4()||t$_(F,M);var f;((f=M.Tk)==null?0:f.itagDenylist)&&F.Zv.c8(M.Tk.itagDenylist); if(M.state===4)c0(F,M),F.C&&Kc7(F.C,M.info,F.U);else if(F.policy.df&&M.Im()&&!M.isComplete()&&!c0(F,M)&&!M.J4())break a;M.J4()&&(ZWo(F,M),isNaN(F.j6)||(F.Zv.l4(F.j6),F.j6=NaN));F.policy.T1&&!M.isComplete()?UE(F.Zv):F.Zv.Va();var d=h0a(M,F.policy,F.Z);nja(F,M,d)}}}}}catch(G){q=F.eE?1:0,F.eE=!0,M=jg(q),q=Gj(G,q),F.Zv.handleError(q.errorCode,q.details,q.severity),M||F.Zv.uq()}},I)}; t$_=function(F,J){if(J.v_&&J.state>=2&&J.state!==3){var b=J.xhr.getResponseHeader("X-Response-Itag");if(b){F.logger.debug(function(){return"Applying streamer-selected format "+b}); var I=sAa(F.T,b),u=J.info.T;u&&(u-=I.IK(),I.T=!0,J.info.aI[0].C.T=!1,XdC(J,I.nu(u)),xa(F.Zv,F.videoTrack,I),SDo(F.videoTrack,I),F.Zv.L9(I.info.video.quality),(u=J.PZ())&&I.info.lastModified&&I.info.lastModified!==+u&&P0(F.videoTrack,J))}else J.v_=!1}}; ZWo=function(F,J){var b=J.info.aI[0].C,I=J.rB();if(Nv(b.gw.C)){var u=g.NL(J.Aw(),3);F.Zv.UQ("dldbrerr",{em:u||"none"})}u=J.info.aI[0].Mf;var w=sd(F.C,J.info.aI[0].hF,u);I==="net.badstatus"&&(F.W+=1);if(J.canRetry()&&n7(F.Zv)){if(!(J.info.gw.U>=F.policy.Xz&&F.U&&J.info.isDecorated()&&I==="net.badstatus"&&F.U.Ty(w,u))){u=(b.info.video&&b.gw.U>1||J.Jw===410||J.Jw===500||J.Jw===503)&&!(Rh(F.T.D).size>0)&&!Nv(b.gw.C);w=J.qp();var M=b.info.video?F.videoTrack:F.audioTrack;u&&(w.stun="1");F.Zv.handleError(I, w);F.iR()||(u&&(F.logger.debug(function(){return"Stunning format "+b.info.id}),cs(F.T,b)),P0(M,J),F.Zv.Va())}}else M=1,F.U&&J.info.isDecorated()&&I==="net.badstatus"&&F.U.Ty(w,u)&&(M=0),F.lR.isLive&&J.rB()==="net.badstatus"&&F.W<=F.policy.rZ*2?(L4a(F.lR),F.lR.SF||F.lR.isPremiere?Q5(F.Zv,0,{Ky:"badStatusWorkaround"}):F.lR.Z?Q5(F.Zv,F.lR.qf,{Ky:"badStatusWorkaround", C1:!0}):tu(F.Zv)):F.Zv.handleError(I,J.qp(),M)}; c0=function(F,J){if(F.policy.useUmp&&J.iR())return!1;try{var b=J.info.aI[0].C,I=b.info.video?F.videoTrack:F.audioTrack;if(F.lR.isManifestless&&I){F.W=0;I.V&&(J.iR(),J.isComplete()||J.Im(),I.V=!1);J.BL()&&F.Zv.zS.Zj(1,J.BL());var u=J.cY(),w=J.Vm();NQ(F.lR,u,w)}if(J.info.Kj()&&!Ym(J.info))for(var M=g.N(J.UY()),q=M.next();!q.done;q=M.next())l1C(I,q.value);for(F.Zv.getCurrentTime();I.T.length&&I.T[0].state===4;){var v=I.T.shift();Ndo(I,v);I.zj=v.Er()}I.T.length&&Ndo(I,I.T[0]);var a=!!Ra(I);a&&J instanceof T9&&(b.info.Cd()?JMC(F.timing):Fc_(F.timing));return a}catch(e){J=J.qp();J.origin="hrhs";a:{F=F.Zv;b=e;if(b instanceof Error){J.msg||(J.msg=""+b.message);J.name||(J.name=""+b.name);if(b instanceof g.hC&&b.args)for(I=g.N(Object.entries(b.args)),u=I.next();!u.done;u=I.next())w=g.N(u.value),u=w.next().value,w=w.next().value,J["arg"+u]=""+w;g.rQ(b);if(b.level==="WARNING"){F.wD.M$(J);break a}}F.handleError("fmt.unplayable",J,1)}return!1}}; HW3=function(F){var J=F.videoTrack.C.index;F.jB=new DQv({E2:F.policy.E2,lq:F.policy.Y.lq,x7:J.Yg(),oC:function(){return J.oC()}, pu:function(){return J.pu()}})}; hu=function(F,J,b,I){if(!(b.VJ()||b.Ne()||b.T||!Nx(b.gw,F.policy,F.Z)||b.info.YQ==="f"||F.policy.C)){if(I){I=F.D;var u=b.info;I=NB7(I,u.video?I.policy.tG:I.policy.Dc,u.LW)}else I=0;I=b.nu(I);F=oo(F,I);Ym(I)&&z1(J,F);b.T=!0}}; gC=function(F,J,b,I,u,w,M,q){g.R.call(this);var v=this;this.Zv=F;this.Zg=J;this.videoTrack=b;this.audioTrack=I;this.lR=u;this.N=w;this.isAudioOnly=M;this.V=q;this.U=QE;this.Gj=!1;this.logger=new g.Hl("sabr");this.Y=this.eE=this.Tj=!1;this.videoInfos=this.D=this.N.videoInfos;this.T=this.kQ=this.N.C;this.C=new Xx(J,w,function(a,e){v.Zv.UQ(a,e)}); this.Zg.A4||Ltm(this);this.isAudioOnly&&F$k(this,this.lR.C["0"])}; JPv=function(F,J){var b=[];J=g.N(J);for(var I=J.next();!I.done;I=J.next())b.push(g.H4(I.value,F.lR.MW));return b}; F$k=function(F,J,b){J!==F.Z&&(F.Z&&(F.Gj=!0),F.Z=J,F.m0(J,F.videoTrack,b))}; u_3=function(F,J){F.logger.debug("setConstraint: "+It(J));QO(F.Zg)&&(F.eE=J.reason==="m"||J.reason==="l"?!0:!1);J.reason==="m"?J.isLocked()&&bHJ(F,J.C):I7C(F,J)?my(F,J.U,J.C):F.videoInfos=F.D;F.U=J}; I7C=function(F,J){return F.Zg.gL&&J.reason==="b"||F.Zg.Q1?!1:F.Zg.HC?!0:J.reason==="l"||J.reason==="b"||J.reason==="o"}; wuk=function(F,J){return J.isLocked()&&F.C.U||F.U===void 0?!1:J.Hg(F.U)}; M8m=function(F,J){var b,I=(b=F.Z)==null?void 0:b.info.video.C;return F.Gj?!0:F.Z?J!==I?!0:!F.C.U||F.Zg.Tc&&F.C.C===F.Z.info.itag?!1:!0:!1}; bHJ=function(F,J){var b=F.C.C;if(b){F.videoInfos=F.D;var I=g.xL(F.videoInfos,function(u){return u.id===b}); I&&I.video.C===J?F.videoInfos=[I]:(I=F.videoInfos.map(function(u){return u.id}),F.Zv.UQ("sabrpf",{pfid:""+b, vfids:""+I.join(".")}),my(F,J,J),Dq(F.C,""))}else my(F,J,J)}; my=function(F,J,b){F.videoInfos=F.D;F.videoInfos=g.qN(F.videoInfos,function(I){return I.video.C>=J&&I.video.C<=b})}; Ltm=function(F){var J=yMo(F.C,F.V);J&&(F.T=[J])}; APC=function(F,J,b){if(F.Zg.A4){if(F.V){var I=g.qN(F.T,function(u){return u.id===F.V}); return y1(I,b).includes(J)}I=g.qN(F.T,function(u){var w;return!((w=u.j3)==null||!w.isDefault)}); if(I.length>0)return y1(I,b).includes(J)}return y1(F.T,b).includes(J)}; y1=function(F,J){return F.map(function(b){return lU(g.H4(b,J))})}; q7_=function(F){var J;if((J=F.U)==null?0:J.isLocked())return F.videoInfos;var b=Rh(F.C);J=g.qN(F.videoInfos,function(I){return I.LW>F.Zg.LW?!1:!b.has(I.id)}); mxz(F.C)&&(J=g.qN(J,function(I){return I.video.width<=854&&I.video.height<=480})); return J}; e1G=function(F,J,b,I){var u=F.lR,w=F.wD.getVideoData(),M=g.oH(w),q=F.cJ,v=Kv({PN:w.J(),wD:F.wD,yP:F.yP,Zg:F.Zg,JO:F.JO,nB:F.nB,qU:F.qU,Il:F.Il,XU:F.XU,isPrefetch:F.isPrefetch,Qg:F.Qg,sabrLicenseConstraint:w.sabrLicenseConstraint,Bk:F.Bk,iK:F.iK,F7:F.F7,Bq:F.Bq,BDG:!!q}),a=pv(w,F.yh,F.nextRequestPolicy,F.hD,F.d3,F.RsR,F.rJ);I&&b&&(I=a.FO?a.FO.map(function(f){return f.type}):[],b("ssap",{stmctxt:I.join("_"), unsntctxt:a.xr?a.xr.join("_"):""}));I=F.ma;var e=F.LU;if(e===void 0&&I===void 0){var K;e=v2G(u.MW,(K=F.H6)==null?void 0:K.video);var p;I=v2G(u.MW,(p=F.H6)==null?void 0:p.audio)}if(w.vD)var m=w.vD;w={yc:v,mI:F.mI,ma:I,LU:e,cJ:q,videoPlaybackUstreamerConfig:m,QD:a};F.Zc&&(w.Zc=F.Zc);if(M&&J){M=new Map;var y=g.N(u.fW);for(q=y.next();!q.done;q=y.next())q=q.value,(v=u.dD[$tv(u,q)]||"")?(M.has(v)||M.set(v,[]),M.get(v).push(q)):b&&b("ssap",{nocid4fmt:(q.itag||"")+"_"+(q.lmt||0)+"_"+(q.xtags||"")});u=new Map; y=g.N(F.Ym);for(q=y.next();!q.done;q=y.next())q=q.value,v=q.startTimeMs||0,a=void 0,K=(a=J)==null?void 0:Pl(a,v),a=K.clipId,K=K.ac,a?(u.has(a)||(p=M.get(a)||[],u.set(a,{clipId:a,Ym:[],Pe:p})),K!==0&&(q.startTimeMs=v-K),u.get(a).Ym.push(q)):b&&(a=void 0,b("ssap",{nocid4range:"1",fmt:((a=q.formatId)==null?void 0:a.itag)||"",st:v.toFixed(3),d:(q.durationMs||0).toFixed(3),timeline:iz(J)}));w.qG=[];u=g.N(u.entries());for(M=u.next();!M.done;M=u.next())M=g.N(M.value),M.next(),M=M.next().value,w.qG.push(M); if(F.Ym.length&&!w.qG.length){b&&b("ssap",{nobfrange:"1",br:a73(F.Ym),timeline:iz(J)});return}F.Iz&&(w.Iz=F.Iz);F.cH&&(w.cH=F.cH)}else w.Ym=F.Ym,w.Pe=u.fW,M&&((y=F.Ym)==null?void 0:y.length)>0&&!J&&b&&b("ssap",{bldmistlm:"1"});return w}; v2G=function(F,J){return J?[g.H4(J.info,F)]:[]}; a73=function(F){var J="";F=g.N(F);for(var b=F.next();!b.done;b=F.next()){b=b.value;var I=void 0,u=void 0,w=void 0;J+="fmt."+(((I=b.formatId)==null?void 0:I.itag)||"")+"_"+(((u=b.formatId)==null?void 0:u.lmt)||0)+"_"+(((w=b.formatId)==null?void 0:w.xtags)||"")+";st."+(b.startTimeMs||0).toFixed(3)+";d."+(b.durationMs||0).toFixed(3)+";"}return J}; z6=function(F,J,b){var I=this;this.requestType=F;this.gw=J;this.e3=b;this.U=null;this.Po={A3G:function(){var u;return(u=I.data)==null?void 0:u.isPrefetch}, d3:function(){var u;return(u=I.data)==null?void 0:u.d3}}}; taG=function(F,J,b){J=iU(F.gw,K$z(F,J,b),J);F.Gz()&&J.set("probe","1");return J}; K$z=function(F,J,b){F.Xx===void 0&&(F.Xx=F.gw.Xx(J,b));return F.Xx}; puz=function(F){var J,b;return((J=F.C)==null?void 0:(b=J.yc)==null?void 0:b.qs)||0}; g2z=function(F){var J,b;return!!((J=F.C)==null?0:(b=J.yc)==null?0:b.Bk)}; mn7=function(F){var J={},b=[],I=[];if(!F.data)return J;for(var u=0;u<F.data.Ym.length;u++){var w=F.data.Ym[u],M=void 0;b.push("i."+((M=w.formatId)==null?void 0:M.itag)+"_st."+(w.startTimeMs+"_e."+(w.startTimeMs+w.durationMs)+"_d."+w.durationMs)+("_sn."+w.I5)+("_en."+w.Tn))}for(u=0;u<F.data.mI.length;u++){w=F.data.mI[u];var q=M=void 0,v=void 0,a=void 0;I.push("i."+((M=w.formatId)==null?void 0:M.itag)+"_sn."+w.sequenceNumber+"_sl."+(w.C4||NaN)+"_lb."+w.Wf+"_tr.s_"+((q=w.oh)==null?void 0:q.startTicks)+ "_d_"+((v=w.oh)==null?void 0:v.Ll)+"_t_"+((a=w.oh)==null?void 0:a.timescale)+"_ed_"+w.XX)}J.ptime=puz(F);J.rtype=F.requestType;J.brl=b.join(";");J.ps=I.join(";");return J}; yPz=function(F){if(F.Lv)return{Wq:g.eB(F.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),rp:g.eB(F.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}}; NU=function(F,J){this.PV=F;this.cipher=this.PV.exports.AES128CTRCipher_create(J.byteOffset)}; lz=function(F){return function(J){return{profile:F,zQ:Math.ceil(J.byteLength/16)}}}; fS=function(F,J){this.key=F;this.subtleCrypto=J;this.C=!1}; iHJ=function(F){var J=globalThis.crypto.subtle;J=J===void 0?window.crypto.subtle:J;return A8(wB(function(){return J.importKey("raw",F,"AES-CTR",!1,["encrypt"]).catch(function(b){return Promise.reject(b.name+": "+b.message)})}),function(b){return new fS(b,J)})}; Wv=function(F){this.C=!1;this.U=new mT(F)}; dC=function(F,J){this.PV=F;var b=F.Fc(J);this.C=new NU(F,b!=null?b:J);b&&F.free(b.byteOffset)}; z13=function(F){g.rQ("wasm encryptor failed: "+F);throw F;}; E_=function(F,J,b){var I=this;this.key=F;this.Z=this.D=!1;this.Wq=32768;this.rp=131072;J==null||A8(J,function(u){I.C=new dC(u,I.key);I.Z=u.xf}); if(b==null?0:b.rp)this.rp=b.rp;if(b==null?0:b.Wq)this.Wq=b.Wq}; NNm=function(F,J,b){F.U||(F.U=new Wv(F.key));return q7(F.U.encrypt(J,b),z13)}; l7Y=function(F,J,b){if(!F.T){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return uf("native encryptor unavailable");F.T=iHJ(F.key)}return q7(A8(F.T,function(I){return I.encrypt(J,b)}),z13)}; jS=function(F,J,b){this.C=F;this.PV=J;this.Z=b;this.T=!1;this.iv=(0,g.gg)(zf(16))}; f7k=function(F){F.U||(F.U=new E_(F.C.C,F.PV,F.Z));return F.U}; W$z=function(F,J){var b;return g.S(function(I){(0,g.jR)();b=SR3(F.C);return I.return(b.encrypt(J,F.iv))})}; dno=function(F,J){var b;return g.S(function(I){(0,g.jR)();var u=F.C;u.Z||(u.Z=new xqJ(u.T));b=u.Z;return I.return(ZJ4(b,J,F.iv))})}; E2z=function(F,J,b){var I;return g.S(function(u){(0,g.jR)();I=SR3(F.C);return u.return(I.decrypt(J,b))})}; G6=function(F){g.R.call(this);var J=this;this.rD=F;this.C=new Map;this.Z=[];this.U=!this.rD.experiments.pW("html5_disable_trusted_hosts")&&!Ns();this.N=g.eB(this.rD.experiments,"html5_onesie_prewarm_interval_ms");this.Y=new g.ty(this.V,this.N,this);this.W=-1;this.Po={MDG:function(){return J.C}, HNN:function(){return J.D}, E8j:function(){return jwz}}; g.k(this,this.Y);vZv(this,g.S9("yt-player-bandaid-host"));this.D=this.load();this.N&&this.D.then(function(){J.V()})}; vZv=function(F,J){var b=J==null?void 0:J.primary;F.T(0,b);b=b?GB_(b):void 0;F.T(2,b);F.T(1,J==null?void 0:J.secondary)}; V1=function(F,J){return new g.yJ("https://"+J+F.rD.T8.baseUrl)}; V8o=function(F,J){F="https://"+zK(J.location)+"/initplayback?c="+cG(F.rD)+"&owc=1";lX(F,"pw",function(b){b.ht=J.C})}; Pv=function(F,J,b,I){lX("https://"+J+"/videoplayback?probe=1",b,function(u){!I.S("html5_onesie_host_racing")||I.videoData.isLivePlayback||I.S("html5_onesie_probe_ec_hosts")||I.vH||I.HZ();F.Z.push(u)},function(u){F.Z.push(u.details)})}; GB_=function(F){return F.replace(/(\d+)---/g,function(J,b){J=Number(b);return(J===1?2:J-1)+"---"})}; Bv=function(F,J){var b,I,u,w,M,q,v,a;return g.S(function(e){if(e.C==1){b=V1(F,"redirector.googlevideo.com");b.set("alr","yes");b.set("id",""+Math.round(Math.random()*1E5));if(J===1||J===2)b.set("cmo=sensitive_content","yes"),b.set("sc","yes");J===2&&b.set("cmo=td","c.youtube.com");I={format:"RAW",timeout:5E3};return g.T(e,Vt(b.tF(),I),2)}u=e.U;if(u.xhr.status!==200||!u.xhr.responseText)return e.return(Promise.reject(new g.hC("b204258371_no_host",b.tF(),u.xhr.status)));w=new g.yJ(u.xhr.responseText); M=zK(w);q=w.get("ms");v=V1(F,M);a=w.get("mm");v.set("ms",q);v.set("mm",a);return M&&qSm(M)?J!==2||uh(M)?e.return(v):e.return(Promise.reject(new g.hC("b204258371_untrusted",M,q))):e.return(Promise.reject(new g.hC("b204258371_invalid",M,q)))})}; Pbz=function(F){var J=F.Z;F.Z=[];return J}; qSm=function(F){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(F)}; uh=function(F){var J=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(F)&&!J.test(F)}; BN_=function(F,J){this.location=F;this.C=J}; T6=function(F){this.cF=F;this.U=!1;this.C=[]}; SS=function(F){for(;F.C.length&&!F.C[0].isEncrypted;){var J=F.C.shift(),b=J.videoId,I=J.V5,u=J.formatId,w=J.buffer;J=J.e5;if(w)J=void 0,(J=rC(F.cF.Wo,b))==null||Ed(J,I,u,w);else if(J)F.cF.Wo.L1(b,I,u);else if(I=F.cF,I.C[u].kt=!0,b=rC(I.Wo,b),b==null?0:b.Fq.has(u))b==null||lh(b,u)}}; g.R7=function(F){this.data=F;this.C=0;this.Z=!1;this.T=0;this.error=!1;this.register=this.U=0;if(s_.length===0){s_.length=288;s_.fill(8);for(F=144;F<280;F++)s_[F]=F<=255?9:7;Yb.length=32;Yb.fill(5);$b.length=286;$b.fill(0);for(F=261;F<285;F++)$b[F]=Math.floor((F-261)/4);CS[257]=3;for(F=258;F<285;F++){var J=CS[F-1];J+=1<<$b[F-1];CS[F]=J}CS[285]=258;for(F=0;F<30;F++)Xd[F]=F<=3?0:Math.floor((F-2)/2);for(F=Q1[0]=1;F<30;F++)J=Q1[F-1],J+=1<<Xd[F-1],Q1[F]=J}F=100+7*this.data.length;this.data[0]===31&&this.data[1]=== 139&&(F=(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(F)}; g.o7=function(F){for(;!F.Z&&!F.error;){var J=F;J.Z=!!DJ(J,1);switch(DJ(J,2)){case 2:var b=[],I=[];I.length=19;I.fill(0);var u=DJ(J,5)+257;var w=DJ(J,5)+1;for(var M=DJ(J,4)+4,q=0;q<M;q++)I[TNG[q]]=DJ(J,3);I=kb(I);for(M=u+w;b.length<M;){q=rP7(J,I);switch(q){case 16:q=b[b.length-1];var v=DJ(J,2)+3;break;case 17:q=0;v=DJ(J,3)+3;break;case 18:q=0;v=DJ(J,7)+11;break;default:v=1}for(;v>0;v--)b.push(q)}b.length!==M?J.error=!0:(w=b.slice(-w),b.length=u,S7z(J,b,w));break;case 1:S7z(J,s_,Yb);break;case 0:O_(J, J.C&7);b=DJ(J,16);u=DJ(J,16);(b^u)!==65535&&(J.error=!0);J.output.set(J.data.subarray(J.U,J.U+b),J.T);J.U+=b;J.T+=b;break;default:J.error=!0}F.T>F.output.length&&(F.output=new Uint8Array(F.T*2),F.T=0,F.U=0,F.Z=!1,F.C=0,F.register=0)}F.output.length!==F.T&&(F.output=F.output.subarray(0,F.T));return F.error?new Uint8Array(0):F.output}; S7z=function(F,J,b){J=kb(J);b=kb(b);for(var I=F.data,u=F.output,w=F.T,M=F.register,q=F.C,v=F.U;;){if(q<15){if(v>I.length){F.error=!0;break}M|=(I[v+1]<<8)+I[v]<<q;v+=2;q+=16}var a=J[M&127];if(a<0)for(M>>=7;a<0;)a=J[(M&1)-a],M>>=1;else M>>=a&15;q-=a&15;a>>=4;if(a<256)u[w++]=a;else if(F.register=M,F.C=q,F.U=v,a>256){M=CS[a];M+=DJ(F,$b[a]);v=rP7(F,b);q=Q1[v];q+=DJ(F,Xd[v]);if(sw4&&M<q)q=w-q,u.copyWithin(w,q,q+M);else for(v=w+M,a=w;a<v;a+=4)u[a]=u[a-q],u[a+1]=u[a-q+1],u[a+2]=u[a-q+2],u[a+3]=u[a-q+3];w+= M;M=F.register;q=F.C;v=F.U}else break}F.T=w}; rP7=function(F,J){if(F.C<7){var b=F.data,I=F.U;I>b.length&&(F.error=!0);F.register|=(b[I+1]<<8)+b[I]<<F.C;F.U+=2;F.C+=16}b=J[F.register&127];if(b>=0)return O_(F,b&15),b>>4;for(O_(F,7);b<0;)b=J[DJ(F,1)-b];return b>>4}; DJ=function(F,J){for(;F.C<J;){if(F.U>=F.data.length)return F.error=!0,0;F.register|=F.data[F.U++]<<F.C;F.C+=8}var b=F.register&(1<<J)-1;F.register>>=J;F.C-=J;return b}; O_=function(F,J){F.C-=J;F.register>>=J}; kb=function(F){for(var J=[],b=g.N(F),I=b.next();!I.done;I=b.next())I=I.value,J[I]||(J[I]=0),J[I]++;var u=J[0]=0;b=[];var w=0;I=0;for(var M=1;M<J.length;M++)J[M]?I=M:J[M]=0,u=u+J[M-1]<<1,b[M]=u,M>7&&(w+=J[M]);for(u=1;u<w;)u<<=1;J=128;I=new Int16Array(128+(u+I)*2);for(w=0;w<F.length;w++)if(M=F[w]){for(var q=b[M]++,v=u=0;v<M;v++)u=u<<1|q>>v&1;q=w<<4|M;if(M<=7)for(v=1<<7-M;v--;)I[v<<M|u]=q;else{v=u&127;M-=7;for(u>>=7;M--;){I[v]||(I[v]=-J,J+=2);var a=u&1;u>>=1;v=a-I[v]}I[v]=q}}return I}; Y74=function(F){var J,b,I,u,w,M,q;return g.S(function(v){switch(v.C){case 1:if(!("DecompressionStream"in window))return v.return(g.o7(new g.R7(F)));J=new DecompressionStream("gzip");b=J.writable.getWriter();b.write(F);b.close();I=J.readable.getReader();u=new m_([]);case 2:return g.T(v,I.read(),5);case 5:w=v.U;M=w.value;if(q=w.done){v.gD(4);break}u.append(M);v.gD(2);break;case 4:return v.return(u.HS())}})}; hf=function(F,J){this.C=F;this.PV=J}; $n_=function(F){return q7(q7(wB(function(){return A8(F.PV,function(J){return F.vr(F.C,J)})}),function(){return F.Br(F.C)}),function(){return F.Fe(F.C)})}; Cb3=function(F,J){return $n_(new hf(F,J))}; cv=function(F){y8.call(this,"onesie");this.Wo=F;this.C={};this.T=!0;this.Z=null;this.queue=new T6(this);this.D={};this.W=FO3(function(J,b){var I=this;return function w(){var M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ;return pav(w,function(F7){switch(F7.C){case 1:g.f3(F7,2);I.Wo.rS();M=function(h){return function(L){throw{name:h,message:L};}}; q=J.HS();g.lk(F7,4,5);if(!b){F7.gD(7);break}return vCo(F7,q7(Xuz(I.Wo,q,I.iv),M("DecryptError")).wait(),8);case 8:v=F7.U;case 7:if(!I.Wo.enableCompression){F7.gD(9);break}return vCo(F7,q7(Cb3((K=v)!=null?K:q,I.Wo.J().Lv),M("DecompressError")).wait(),10);case 10:a=F7.U;case 9:e=RW((m=(p=a)!=null?p:v)!=null?m:q,LOz);case 5:g.Em(F7,0,2);if(f=(y=I.Wo.J())==null?void 0:y.PV)((d=v)==null?void 0:d.buffer)===f.exports.memory.buffer&&f.free(v.byteOffset),((G=a)==null?void 0:G.buffer)===f.exports.memory.buffer&& f.free(a.byteOffset);g.jz(F7,6);break;case 4:throw r=P=g.dY(F7),new E5("onesie.response.parse",{name:(n=r.name)!=null?n:"unknown",message:(uk=r.message)!=null?uk:"unknown",wasm:((Q=I.Wo.J())==null?0:Q.PV)?((D=I.Wo.J())==null?0:(t=D.PV)==null?0:t.xf)?"1js":"1":"0",enc:I.T,gz:I.Wo.enableCompression,webcrypto:!!Ns()});case 6:return Qw4(e),AJ=g.Ev(e.body),F7.return(AJ);case 2:g.Em(F7),g.jz(F7,0)}})}()})}; U_=function(F){var J=F.queue;J.C.length&&J.C[0].isEncrypted&&!J.U&&(J.C.length=0);J=g.N(Object.keys(F.C));for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=F.C[b];if(!I.kt){var u=F.queue;u.C.push({videoId:I.videoId,formatId:b,isEncrypted:!1});u.U||SS(u)}}}; Dnv=function(F,J){var b=J.getLength(),I=!1;switch(F.Z){case 0:F.Wo.S("html5_future_onesie_ump_handler_on_player_response")?q7(A8(F.W(J,F.T),function(u){R1a(F.Wo,u)}),function(u){F.Wo.R6(u)}):F.rS(J,F.T).then(function(u){R1a(F.Wo,u)},function(u){F.Wo.R6(u)}); break;case 2:F.G$("ormk");J=J.HS();F.queue.decrypt(J);break;default:I=!0}F.Wo.BF&&F.Wo.UQ("ombup","id.11;pt."+F.Z+";len."+b+(I?";ignored.1":""));F.Z=null}; Qw4=function(F){if(F.cB!==1)throw new E5("onesie.response.badproxystatus",{st:F.cB,webcrypto:!!Ns(),textencoder:!!g.Qz.TextEncoder});if(F.Sa!==200)throw new E5("onesie.response.badstatus",{st:F.Sa});}; kB7=function(F){return new Promise(function(J){setTimeout(J,F)})}; OHm=function(F,J){var b=F.J();b=F.Ly&&b.S("html5_onesie_preload_use_content_owner");var I=F.NS,u=xj(J.rD.experiments,"debug_bandaid_hostname");if(u)J=V1(J,u);else if((b===void 0?0:b)&&(I==null?0:I.url)&&!J.U){var w=zK(new g.yJ(I.url));J=V1(J,w)}else J=(w=J.C.get(0))==null?void 0:w.location.clone();if(J&&F.videoId){w=Iw(F.videoId);F=[];if(w)for(w=g.N(w),b=w.next();!b.done;b=w.next())F.push(b.value.toString(16).padStart(2,"0"));J.set("id",F.join(""));return J}}; o2z=function(F,J,b){b=b===void 0?0:b;var I,u;return g.S(function(w){if(w.C==1)return I=[],I.push(J.load()),b>0&&I.push(kB7(b)),g.T(w,Promise.race(I),2);u=OHm(F,J);return w.return(u)})}; h1k=function(F,J,b,I){I=I===void 0?!1:I;F.set("cpn",J.clientPlaybackNonce);F.set("opr","1");var u=J.J();F.set("por","1");Ns()||F.set("onem","1");J.startSeconds>0&&F.set("osts",""+J.startSeconds);I||(u.S("html5_onesie_disable_partial_segments")&&F.set("oses","1"),J=u.S("html5_gapless_onesie_no_media_bytes")&&LC(J)&&J.Ly,b&&!J?(J=b.audio,F.set("pvi",b.video.join(",")),u.S("html5_onesie_disable_audio_bytes")||F.set("pai",J.join(",")),UD||F.set("osh","1")):(F.set("oad","0"),F.set("ovd","0"),F.set("oaad", "0"),F.set("oavd","0")))}; cP_=function(F,J,b,I,u){u=u===void 0?!1:u;var w="https://youtubei.googleapis.com/youtubei/"+J.wX.innertubeApiVersion+"/player",M=[{name:"Content-Type",value:"application/json"}];I&&M.push({name:"Authorization",value:"Bearer "+I});M.push({name:"User-Agent",value:g.Bk()});g.cT("EOM_VISITOR_DATA")?M.push({name:"X-Goog-EOM-Visitor-Id",value:g.cT("EOM_VISITOR_DATA")}):(b=b.visitorData||g.cT("VISITOR_DATA"))&&M.push({name:"X-Goog-Visitor-Id",value:b});(b=g.cT("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&M.push({name:"X-YouTube-Lava-Device-Context", value:b});(J=xj(J.experiments,"debug_sherlog_username"))&&M.push({name:"X-Youtube-Sherlog-Username",value:J});F=VK(JSON.stringify(F));return{url:w,vZ:M,postBody:F,mYQ:u,fX:u}}; xnz=function(F,J,b,I,u,w){var M=g.ux(F,HTa,F.fX?void 0:b.PV),q={encryptedClientKey:J.C.encryptedClientKey,CH:!0,rR:!0,RK:Un7(b,!!F.fX),Ef:b.experiments.pW("html5_use_jsonformatter_to_parse_player_response")};if(F.fX)q.ojQ=M;else{F=J.encrypt(M);var v;if(((v=b.PV)==null?void 0:v.exports.memory.buffer)===M.buffer&&F.byteOffset!==M.byteOffset){var a;(a=b.PV)==null||a.free(M.byteOffset)}var e;F=((e=b.PV)==null?void 0:e.yl(F))||F;M=q.wR=F;(0,g.jR)();M=UqJ(new cAz(J.C.T),M,J.iv);q.lQ=M;q.iv=J.iv}J=I.getVideoData(); b=Kv({PN:b,wD:I,yP:J.startSeconds*1E3});u={bz:q,yc:b,onesieUstreamerConfig:u,v5:w,QD:pv(J)};J.reloadPlaybackParams&&(u.reloadPlaybackParams=J.reloadPlaybackParams);return u}; n2m=function(F,J,b){var I,u,w;return g.S(function(M){if(M.C==1)return I=g.ux(J,HTa),g.T(M,W$z(b,I),2);if(M.C!=3)return u=M.U,g.T(M,dno(b,u),3);w=M.U;return M.return({wR:u,encryptedClientKey:b.C.encryptedClientKey,iv:b.iv,lQ:w,CH:!0,rR:!0,RK:Un7(F,!!J.fX),Ef:F.experiments.pW("html5_use_jsonformatter_to_parse_player_response")})})}; t87=function(F,J,b,I,u,w){var M,q,v,a;return g.S(function(e){if(e.C==1)return g.T(e,n2m(b,F,J),2);M=e.U;q=I.getVideoData();v=Kv({PN:b,wD:I,yP:q.startSeconds*1E3});a={bz:M,yc:v,onesieUstreamerConfig:u,v5:w,QD:pv(q)};q.reloadPlaybackParams&&(a.reloadPlaybackParams=q.reloadPlaybackParams);return e.return(a)})}; Un7=function(F,J){F=ib(F.schedule,!0);J=J||!!Ns()&&F>1572864;return"DecompressionStream"in window||!J}; nS=function(F,J){g.R.call(this);var b=this;this.wD=F;this.playerRequest=J;this.rD=this.wD.J();this.videoData=this.wD.getVideoData();this.logger=new g.Hl("onesie");this.BF=this.rD.hJ();this.IA=this.rD.T8;this.tI=new jS(this.IA.C,this.rD.Lv,yPz(this.rD));this.xhr=null;this.state=1;this.O1=new xn;this.DJ=!1;this.playerResponse="";this.XC=new Ue(this);this.cF=new cv(this);this.Yu=this.rD.S("html5_onesie_check_timeout");this.Sd=new g.ty(this.Fo,500,this);this.PJ=new g.ty(this.HZ,1E4,this);this.GN=new g.ty(function(){if(!b.isComplete()){var I= xb(b);b.R6(new E5("net.timeout",I))}},g.eB(this.rD.experiments,"html5_onesie_request_timeout_ms")); this.nK=new g.ty(this.OkE,2E3,this);this.L3="";this.vH=this.mC=!1;this.h8=this.wD.f$();this.IZ="";this.y_=this.S("html5_onesie_wait_for_media_availability");this.enableCompression=this.SI=this.jG=!1;this.Sf=[];this.Td=this.fF=-1;g.k(this.videoData,this);g.k(this,this.Sd);g.k(this,this.PJ);g.k(this,this.nK);g.k(this,this.tI);F=Z1();UD&&F&&!this.rD.S("html5_disable_onesie_media_bytes")&&(this.qk=new Map);this.iO=new Map;this.wV=new Map;this.tf=new Map;this.l6=new Map}; rC=function(F,J){var b;return(b=F.qk)==null?void 0:b.get(J)}; HH_=function(F,J,b){var I;return g.S(function(u){if(u.C==1)return F.G$("oprd_s"),ZH_(F)?g.T(u,E2z(F.tI,J,b),3):(I=F.tI.decrypt(J,b),u.gD(2));u.C!=2&&(I=u.U);F.G$("oprd_c");return u.return(I)})}; Xuz=function(F,J,b){F.G$("oprd_s");J=f7k(F.tI).encrypt(J,b);A8(J,function(){F.G$("oprd_c")}); return J}; L$C=function(F){return F.S("html5_onesie_host_probing")||F.BF?UD:!1}; R1a=function(F,J){F.G$("oprr");F.playerResponse=J;F.SI||(F.y_=!1);tf(F)}; tf=function(F){if(!F.playerResponse)return!1;if(F.jG)return!0;var J=F.videoData.S("html5_onesie_audio_only_playback")&&Fc(F.videoData);if(F.qk&&F.y_){if(!F.qk.has(F.L3))return!1;var b=F.qk.get(F.L3),I;if(I=b){I=!1;for(var u=g.N(b.Fq.keys()),w=u.next();!w.done;w=u.next())if(w=b.Fq.get(w.value))for(var M=g.N(w.oD),q=M.next();!q.done;q=M.next())q.value.YI>0&&(w.Cd?I=!0:J=!0);I=!(J&&I)}if(I)return!1}F.G$("ofr");F.O1.resolve(F.playerResponse);if(!F.Yu){var v;(v=F.GN)==null||v.start();F.PJ.start()}return F.jG= !0}; Jia=function(F){if(F.qk&&!F.S("html5_onesie_media_capabilities")){F.G$("ogsf_s");var J=GK3(F.wD.getVideoData(),function(I,u){F.UQ(I,u)}),b=FZa(F.wD); J.video=ika(b,J.video);F.G$("ogsf_c");if(J.video.length)return J;F.UQ("ombspf","l."+b.U+";u."+b.C+";o."+b.T+";r."+b.reason)}}; ZH_=function(F,J){return F.S("html5_onesie_sync_request_encryption")||(J==null?0:J.fX)||g.U7(F.rD)&&F.S("html5_embed_onesie_use_sync_encryption")?!1:!!Ns()}; xb=function(F){if(!F.uC)return{};var J=F.uC.BQ(),b;J.d=(b=F.uC.fW)==null?void 0:b.G7();J.shost=F.ZS;J.ty="o";return J}; bC4=function(F,J){var b,I;(I=(F=(b=F.qk)==null?void 0:b.get(J))==null)||(J=F.T?!1:F.T=!0,I=!J);return!I}; IRa=function(F,J,b,I,u,w,M,q,v,a,e){g.R.call(this);var K=this;this.wD=F;this.Zv=J;this.policy=b;this.audioTrack=I;this.videoTrack=u;this.lR=w;this.Zy=M;this.Jz=q;this.T=v;this.timing=a;this.N=e;this.C=[];this.V={};this.zj=this.KW=!1;this.hD=new Set;this.D=this.dD=this.Tj=this.XU=0;this.Z=null;this.Gj={Ym:[],mI:[]};this.kQ={Ym:[],mI:[]};this.W=null;this.qf=[];this.Po={jv_:function(){return K.C}, uUf:function(){return K.V}, q0j:function(){K.C.length=0}, lqW:function(){return K.hD}, fqQ:function(){return K.Tj}, GHW:function(p){K.Tj=p}, Wo_:function(p){K.D=p}, G2:function(p){K.W=p}}; this.videoData=this.wD.getVideoData();this.policy.pF&&(this.fW=new D6(this.Zv,this.policy,this.Zy),g.k(this,this.fW))}; MEm=function(F,J){J=J===void 0?!1:J;if(uRY(F,J)){F.policy.V&&F.Zv.UQ("sabrcrq",{create:1});var b=new z6(0,F.lR.Y,F);F.policy.jZ>0&&F.D++;J=wCJ(F,b,J);F.C.push(J);var I;(I=F.fW)==null||kFm(I,F.lR.Y)}}; aRo=function(F,J){var b=AiY(F);if(F.policy.Mh){var I=F.Gj;var u=F.kQ}else I=ZJ(F,F.audioTrack),u=ZJ(F,F.videoTrack);var w=[].concat(g.W(I.Ym),g.W(u.Ym));F.policy.Um&&F.W&&w.push.apply(w,g.W(F.qf));var M=[].concat(g.W(I.mI),g.W(u.mI)),q=F.Zv.To(),v,a,e=F.wD,K=F.lR,p=F.U,m=F.hD,y=F.policy,f=F.Zv.JO,d=xQm(F.Zv)*1E3,G=(v=F.WN)==null?void 0:v.qU;v=(a=F.WN)==null?void 0:a.Il;var P;a=Number((P=F.T.Z)==null?void 0:P.info.itag)||0;var r;P=Number((r=F.T.W)==null?void 0:r.info.itag)||0;J={wD:e,lR:K,Ym:w,mI:M, yP:b,nextRequestPolicy:p,hD:m,Zg:y,JO:f,nB:d,qU:G,Il:v,XU:F.XU,isPrefetch:J||F.Zv.isSuspended,Iz:a,cH:P,yh:q,rJ:F.wD.oK()};b=F.Zv.f1();w=Iw(b);b&&(J.d3=w);if(b=F.wD.bK())J.Bk=b*1E3;var Q;b=F.T;w=b.Tj;if((b.Zg.U&&b.Zg.vP||((Q=b.Zg)==null?0:Q.C&&Q.Uz))&&!w)for(Q=g.N(b.T),M=Q.next();!M.done;M=Q.next())if(M.value.j3){w=!0;break}Q=QO(b.Zg)&&!w?[]:JPv(b,b.T);J.ma=Q;Q=F.T;QO(Q.Zg)&&!Q.eE?Q=[]:(b=q7_(Q),b.length===0&&(b=Q.D),Q=JPv(Q,b));J.LU=Q;J.cJ=F.policy.Um&&F.W?[F.W]:void 0;F.policy.jh&&(J.F7=q9a(F.Zv, F.audioTrack),J.Bq=q9a(F.Zv,F.videoTrack));if(F.policy.D){I=v$7(F,I.Ym,u.Ym);var D;if(u=(D=F.Z)==null?void 0:D.RN(I))J.Zc=u}F.policy.qf&&F.C.length>0&&F.C[0].DA()&&(J.RsR=F.C[0].Xw());return J}; AiY=function(F){var J,b=F.policy.W&&((J=F.Zv)==null?void 0:J.RD());J=F.Zv.getCurrentTime()||0;J=eCz(F,J);var I=F.Zv.Xq()||0;J+=I;I=EW(F.videoData)||g.dS(F.videoData);var u=0;b?(I&&(u=Number.MAX_SAFE_INTEGER),F.videoData.fW&&(u=Math.ceil(F.videoData.qf*1E3))):u=Math.ceil(J*1E3);return Math.min(Number.MAX_SAFE_INTEGER,u)}; eCz=function(F,J){if(F.Zv.isSeeking())return J;var b=F.wD.Qa();if(!b)return J;b=b.Z4();if(b.length===0||Mt(b,J))return J;if(!sE(F.videoTrack,J)&&!sE(F.audioTrack,J))return F.Zv.UQ("sundrn",{b:0,lt:J}),J;for(var I=J,u=Infinity,w=0;w<b.length;w++)if(!(b.start(w)>J)){var M=J-b.end(w);M<u&&(u=M,I=b.end(w))}return I!==J&&(F.Zv.UQ("sundrn",{bre:I,lt:J}),u>=20)?(F.Zv.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),J):I}; v$7=function(F,J,b){var I=F.Zv.getCurrentTime()||0;J=KZm(F,J,I);F=KZm(F,b,I);return Math.min(J,F)}; KZm=function(F,J,b){F=F.Zv.Xq()||0;J=g.N(J);for(var I=J.next();!I.done;I=J.next()){var u=I.value;I=u.startTimeMs?u.startTimeMs/1E3-F:0;u=I+(u.durationMs?u.durationMs/1E3:0);if(I<=b&&b<=u)return u}return b}; uRY=function(F,J){if(F.policy.jZ>0){var b=Math.floor((0,g.jR)()/1E4);if(b===F.dD){if(F.D>=F.policy.jZ){if(F.D===F.policy.jZ){var I={reason:"toomanyrequests"};I.limit=F.D;F.Zv.handleError("player.exception",I);F.D+=1}return!1}}else F.dD=b,F.D=0}J=!J&&!zB(F.Zy)&&!F.policy.n7;if(F.Zv.isSuspended&&(F.Zv.M2||J))return!1;if(F.eE&&(0,g.jR)()<F.eE)return F.policy.n7&&g.Z_(F.Zv.P_),!1;if(F.C.length>0&&(!F.policy.qf||F.C.length!==1||!F.C[0].DA()))return!1;var u;if((u=F.lR.Y)==null||!Nx(u,F.policy,F.V,F.Zv.NU()))return!1; u=F.policy.sP&&F.policy.U&&F.Zv.IH();if(T1(F.audioTrack)&&T1(F.videoTrack)&&!u)return!1;if(F.policy.U&&F.Y&&!F.Zv.IH())return F.Ck("ssap",{pauseontlm:1}),!1;if(Hv(F,F.audioTrack)&&Hv(F,F.videoTrack))return F.policy.T&&F.Zv.UQ("sabrHeap",{a:""+d9(F.audioTrack),v:""+d9(F.videoTrack)}),!1;if(u=F.policy.D)u=!1,F.N.U===2?u=!0:F.N.U===3&&(AiY(F),F.Zv.Xq(),J=v$7(F,l2(F.audioTrack,F.Zv.isSeeking()).Ym,l2(F.videoTrack,F.Zv.isSeeking()).Ym),b=F.N,J>=b.T?(b.UQ("sdai",{haltrq:J,est:b.T}),J=!0):J=!1,J&&(u=!0)), u&&F.policy.V&&F.Zv.UQ("sabrcrq",{waitad:1});if(u)return!1;F.policy.Mh&&(F.Gj=ZJ(F,F.audioTrack),F.kQ=ZJ(F,F.videoTrack));if(!F.U)return F.policy.V&&F.Zv.UQ("sabrcrq",{nopolicy:1}),!0;if(F.wD.bK())return F.policy.V&&F.Zv.UQ("sabrcrq",{utc:1}),!0;if(F.T.Y)return F.policy.V&&F.Zv.UQ("sabrcrq",{audio:1}),!0;if(!F.U.targetAudioReadaheadMs||!F.U.targetVideoReadaheadMs)return F.policy.V&&F.Zv.UQ("sabrcrq",{noreadahead:1}),!0;if(F.policy.W&&F.Zv.RD())return F.policy.V&&F.Zv.UQ("sabrcrq",{seekToHead:1}), !0;u=Math.min(Y7(F.Zv,F.audioTrack)*1E3,F.U.targetAudioReadaheadMs);J=Math.min(Y7(F.Zv,F.videoTrack)*1E3,F.U.targetVideoReadaheadMs);var w=Math.min(u,J);b=j3(F.audioTrack,!0)*1E3;var M=j3(F.videoTrack,!0)*1E3;if(F.policy.Mh){var q=F.wD.getCurrentTime()*1E3;var v=pC_(F.Gj.Ym,q);q=pC_(F.kQ.Ym,q)}else v=b,q=M;var a=v<w&&!Hv(F,F.audioTrack);w=q<w&&!Hv(F,F.videoTrack);!(w=!a&&!w)&&(w=F.policy.U)&&(w=F.Zv,!w.II||lI(w.lR)?w=!1:(a=LS(w.II),w=g$o(w,a)));if(w||F.policy.oF&&mFY(F.Zv)&&F.videoData.yM()||F.policy.u_&& mFY(F.Zv))return!1;F.policy.V&&(w=F.Zv.Cy(),w.car=v,w.vac=q,w.mar=u,w.mvr=J,w.tar=F.U.targetAudioReadaheadMs,w.tvr=F.U.targetVideoReadaheadMs,w.vbu=u1(((I=F.wD.Qa())==null?void 0:I.Z4())||null),w.abh=b,w.vbh=M,F.Zv.UQ("sabrcrq",w));return!0}; ZJ=function(F,J){AiY(F);F.Zv.Xq();return l2(J,F.Zv.isSeeking())}; pC_=function(F,J){var b=0,I=-1;F=g.N(F);for(var u=F.next();!u.done;u=F.next())if(u=u.value,!(u.startTimeMs+u.durationMs<J)){if(I<0&&u.startTimeMs>J||I>=0&&u.I5>I+1)break;b=Math.max(b,u.startTimeMs+u.durationMs);I=Math.max(I,u.Tn)}return Math.max(0,b-J)}; wCJ=function(F,J,b){var I={Zy:F.Zy,r_:function(v,a){F.wD.h7(v,a)}, Kj:F.policy.v0,QY:F.policy.T};F.Zy.U.V&&(I.nD=(F.videoTrack.C.info.LW||0)+(F.audioTrack.C.info.LW||0));F.policy.G8&&(I.x7=F.audioTrack.C.index.Yg(),I.Kj=!1);var u=K$z(J,F.policy,F.V)?2:1;u!==F.Tj&&(F.Tj=u,yi3(F));b=aRo(F,b);if((F.policy.U||F.policy.qf)&&F.policy.T&&b.hD){for(var w=u="",M=g.N(b.hD),q=M.next();!q.done;q=M.next())q=q.value,F.videoData.sabrContextUpdates.has(q)?u+="_"+q:w+="_"+q;F.Zv.UQ("sabrbldrqs",{ctxts:u,misctxts:w})}J.setData(b,F.Zv.IH(),F.policy,F.V)||!F.policy.U&&!F.policy.qf|| F.Zv.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);I=new jI(F.policy,J,F.lR,F.V,F,I,F.Zv.f$(),F.policy.Lv?F.Zv.IH():void 0);GL(F.timing);F.policy.V&&F.Zv.UQ("sabrcrq",{rn:I.hd(),probe:J.Gz()});return I}; JX=function(F,J){if(J.iR()||F.iR())F.policy.Ga||(F.policy.W?FJ(F.Zv):F.Zv.Va());else{if(F.policy.T&&J.isComplete()&&J instanceof jI){var b=F.Zv,I=b.UQ,u,w,M=Object.assign(J.uC.BQ(),{rst:J.state,strm:J.xhr.kx(),d:(u=J.uC.fW)==null?void 0:u.G7(),cncl:J.xhr&&J.lX.Z?1:0,rqb:J.KE,cwt:J.fK,swt:(w=J.TY)==null?void 0:w.SQ});u=Object.assign(mn7(J.info),M);I.call(b,"rqs",u)}if(J.isComplete()&&J.Gz()&&J instanceof jI)F.policy.MI?J.wi()?(J.dispose(),F.C.length===0?F.Zv.Va():(F=F.C[0],F instanceof jI&&F.r$()&& F.DD(!1))):J.J4()&&F.Zv.handleError(J.rB(),J.qp()):(J.dispose(),F.Zv.Va());else{if(J.Cs())J instanceof jI&&qLm(F.timing,J),yi3(F),iCY(F);else if(J.J4())b=F.wD.bK(),J instanceof jI&&g2z(J.info)&&b&&F.Zv.l4(b),J instanceof nS?F.C.pop():(b=1,J.canRetry()&&n7(F.Zv)&&(zCm(F,J),b=0),F.Zv.handleError(J.rB(),J.qp(),b));else{if(F.Zv.isSuspended&&!J.isComplete())return;iCY(F)}J.iR()||J instanceof nS||(J.isComplete()?b=h0a(J,F.policy,F.V):(b=ojm(J,F.policy,F.V),b===1&&(F.KW=!0)),b!==0&&(I=new z6(1,J.info.gw), I.Xx=b===2,wCJ(F,I)));F.policy.T1&&!J.isComplete()?UE(F.Zv):F.Zv.Va()}}}; iCY=function(F){for(;F.C.length&&F.C[0].zR(F.B1());){var J=F.C.shift();N7o(F,J);if(F.policy.D){var b=F;if(!b.policy.oI&&J.zR(b.B1())){var I=J.hd();if(b.oI!==I){var u=J.bO();J=u.fF;var w=u.Td;u=u.isDecorated;!b.Z||w<0||(b.oI=I,I=sd(b.N,w/1E3,J),w=b.Zv.Xq()||0,TL(b.N,J,I-w,u,b.Z))}}}}F.C.length&&N7o(F,F.C[0])}; N7o=function(F,J){var b=new Set(J.nP(F.B1()));b=g.N(b);for(var I=b.next();!I.done;I=b.next()){var u=I.value;if(!(I=!(J instanceof nS))){I=F.T;var w=I.lR.MW,M=y1(I.videoInfos,w);I=APC(I,u,w)||M.includes(u)}if(I&&(I=J.Mp(u,F.B1()),w=F.policy.Um&&Zf(I[0].C.info),(!(!w&&F.policy.yT&&I.length>0&&(I[0].C.info.Cd()?j3(F.audioTrack):j3(F.videoTrack))>3)||J.isComplete())&&J.Im(u,F.B1()))){u=J.UY(u,F.B1());if(F.policy.U){M=I[0].C.info;var q=F.Zv.IH();if(q&&M){var v=J.f2();q.api.S("html5_ssap_set_format_info_on_video_data")&& v===B0(q)&&(M.Cd()?q.playback.getVideoData().Z=M:q.playback.getVideoData().U=M);if(q=bm(q.timeline,v))if(q=q[0].getVideoData())M.Cd()?q.Z=M:q.U=M}}u=g.N(u);for(M=u.next();!M.done;M=u.next())if(M=M.value,F.policy.T&&J instanceof nS&&F.Zv.UQ("omblss",{s:M.info.uX()}),w)q=F,q.videoData.MW()&&q.W&&lU(q.W)===lU(g.H4(M.info.C.info,q.lR.MW))&&q.wD.publish("sabrCaptionsDataLoaded",M,q.T2.bind(q));else{q=M.info.C.info.Cd();var a=M.info.C;if(q){v=void 0;var e=F.T,K=(v=J.eJ(F.B1()))==null?void 0:v.token;e.Y= !1;a!==e.W&&(e.W=a,e.m0(a,e.audioTrack,K))}else v=void 0,F$k(F.T,a,(v=J.eJ(F.B1()))==null?void 0:v.token);v=q?F.audioTrack:F.videoTrack;J instanceof nS&&(v.V=!1,J instanceof nS&&(q?JMC(F.timing):Fc_(F.timing)));try{Nd(v,I,M)}catch(p){M=Gj(p),F.Zv.handleError(M.errorCode,M.details,M.severity),v.uq(),F.J3(!1,"pushSlice"),FJ(F.Zv)}}}}}; zCm=function(F,J){F.policy.qf?F.C.splice(F.C.indexOf(J)).forEach(function(b){b.dispose()}):(F.C.pop(),J==null||J.dispose())}; lRG=function(F,J,b){for(var I=[],u=0;u<F.C.length;u++)J&&F.C[u]instanceof nS?I.push(F.C[u]):(F.policy.V&&F.Zv.UQ("sabrcrq",{d:F.C[u].hd(),src:b}),F.C[u].dispose());F.C=I}; fRC=function(F,J){J&&J.type&&(F.videoData.sabrContextUpdates.set(J.type,J),J.sendByDefault&&F.hD.add(J.type))}; WZv=function(F,J,b){J.Cn(b.Hn,b.version)?F.videoData.ul=b.version||"":F.Zv.UQ("ssap",{v:b.version,tlnu:1})}; yi3=function(F){F.hD.clear();if(F.videoData.sabrContextUpdates.size>0)for(var J=g.N(F.videoData.sabrContextUpdates.keys()),b=J.next();!b.done;b=J.next()){b=b.value;var I=void 0;((I=F.videoData.sabrContextUpdates.get(b))==null?0:I.sendByDefault)&&F.hD.add(b)}if(F.policy.qf&&F.C.length)for(J=g.N(F.C),b=J.next();!b.done;b=J.next())(b=b.value.Xw())&&b.type&&b.sendByDefault&&F.hD.add(b.type)}; dFz=function(F){F.policy.Se&&(F.WN=void 0,F.XU=0)}; E$v=function(F,J){if(J.J4()||J.iR()){var b=F.Zv,I=b.UQ,u=J.state;F=F.B1();var w,M;if((J=(w=J.qk)==null?void 0:w.get(F))==null)J=void 0;else{w=0;F=J.nP();for(var q=0;q<F.length;q++){var v=void 0;w+=((v=J.Fq.get(F[q]))==null?void 0:v.bytesReceived)||0}J=w}J=(M=J)!=null?M:-1;I.call(b,"sabromb",{s:u,tbytes:J})}else F.C.push(J),J.Sf.push(F),GL(F.timing),F.policy.In&&J.LK&&F.IV(J.LK)}; Hv=function(F,J){return F.policy.LI?!F.Zv.Ik&&Ra(J)&&(J.q$()!==Ra(J)||F.Zv.isSuspended):!1}; jHJ=function(F){var J="";F=g.N(F);for(var b=F.next();!b.done;b=F.next()){b=b.value;J+=".cid."+b.clipId;if(b.Xn){var I=b.Xn;J+=".vid."+I.JH+(".pst."+I.P3)+(".ps."+I.Rd)+(".lst."+I.Twf)+(".ld."+I.E9)+(".ls."+I.lZ)}b.jI&&(J+=".nonv."+b.jI.Gg)}return J}; Gt4=function(F,J,b,I,u){this.Zv=F;this.policy=J;this.schedule=b;this.a4=I;this.N=u;this.Tj=NaN;this.U=this.V=this.Z=null;this.C=this.D=this.W=this.startTimeSecs=NaN;this.T=!1;this.Y=NaN}; VEC=function(F,J,b,I,u,w){return J.LF&&J.xo&&b===3?new Gt4(F,J,I,u,w):null}; PrJ=function(F,J){if(F.policy.Ch){var b=J.info.LW,I=ib(F.schedule);J=J.index.Yg();b=Math.max(1,I/b);F.Y=Math.round(Math.max(((b-1)*J+F.policy.M0)/b,J-F.policy.DY)*1E3)}}; ri_=function(F,J){var b=Date.now()/1E3,I=b-F.startTimeSecs,u=b-F.W,w=u>=F.policy.GW,M=!1;if(w){var q=0;!isNaN(J)&&J>F.D&&(q=J-F.D,F.D=J);q/u<F.policy.Tv&&(M=!0);F.W=b}b=I>=F.policy.DY&&!F.T;if(!w&&!b&&B7_(F,J))return NaN;b&&(F.T=!0);a:{I=M;b=(0,g.jR)()/1E3-(F.a4.X3()||0)-F.V.C-F.policy.M0;w=F.U.startTime;b=w+b;if(I){if(isNaN(J)){Im(F,NaN,"n",J);w=NaN;break a}I=J-F.policy.qh;I<b&&(b=I)}else F.T&&(I=b+F.policy.M0-F.Tj+F.policy.TL,isNaN(J)||(I=Math.max(I,Math.min(b,J-F.policy.qh))),b=I);w=b=Math.max(b, w)}F.C=w;if(isNaN(F.C))return F.clear(),NaN;if(!M&&B7_(F,J))return T7_(F,J),NaN;if(F.C<=F.U.startTime)return Im(F,NaN,"y",J),F.clear(),NaN;if(!F.N(F.C,!1))return!T7_(F,J)&&M&&(Im(F,NaN,"t",J),F.clear()),NaN;M=F.C;Im(F,M,"s",J);F.clear();return M}; T7_=function(F,J){return F.N(F.C,!0)?!1:(Im(F,NaN,"ns",J),F.clear(),!0)}; B7_=function(F,J){return isNaN(J)?!0:isNaN(F.C)?!1:J<F.C+(F.T?F.policy.qh:F.policy.w7)}; Im=function(F,J,b,I){var u=F.Z.qp();u.ssr_sk=(J*1E3).toFixed(0);u.ssr_t=(F.C*1E3).toFixed(0);u.ssr_r=b;u.ssr_st=(F.startTimeSecs*1E3).toFixed(0);u.ssr_n=(0,g.jR)().toFixed(0);u.ssr_f=(F.V.C*1E3).toFixed(0);u.ssr_fa=F.T?"1":"0";u.ssr_o=(F.a4.X3()*1E3||0).toFixed(0);u.ssr_v=(I*1E3).toFixed(0);J=F.U.C.index;J.vF(F.U.Mf,!0)&&(u.ssr_ist=(J.getStartTime(F.U.Mf)*1E3).toFixed(0),u.ssr_id=(J.getDuration(F.U.Mf)*1E3).toFixed(0));F.Zv.UQ("ssr",u)}; S9_=function(){var F={};if(window.performance){var J=window.performance.memory;J&&(F.jsTotal=J.totalJSHeapSize,F.jsUsed=J.usedJSHeapSize,F.jsLimit=J.jsHeapSizeLimit,F.msTotal=J.totalMediaSourceSize,F.msLimit=J.mediaSourceSizeLimit,F.msUsed=J.usedMediaSourceMemorySize)}var b;if((b=window.h5vcc)==null?0:b.cVal)F.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),F.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),F.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return F}; g.wr=function(F,J,b,I,u,w,M,q,v,a){q=q===void 0?!1:q;g.R.call(this);var e=this;this.wD=F;this.schedule=J;this.policy=b;this.lR=I;this.eE=v;this.MI=a;this.HN=null;this.fW=this.qf=this.WN=this.Ik=0;this.Pl=this.M2=this.isSuspended=!1;this.Jz="";this.Se={};this.Om=!1;this.bR=0;this.Y=null;this.cN=this.dD=!1;this.JO=0;this.oI=!1;this.kQ=this.nW=0;this.xm=null;this.Iv=function(){return e.wD.Iv()}; this.timing=new Lpz(this.MI);this.N=new fc(this.schedule,this.policy);this.Q2=new g.ty(this.Va,0,this);this.Um=new g.ty(this.Va,this.policy.T1,this);this.P_=new g.ty(this.Va,1E3,this);this.T1=new g.ty(this.Va,void 0,this);this.KW=new g.ty(function(){e.policy.n7&&e.isSuspended||e.Va()},1E4,this); this.NW=new g.ty(this.Fp_,250,this);this.W=this.currentTime=NaN;this.zS=new AP(5);this.Gj=this.timestampOffset=NaN;this.logger=new g.Hl("dash");this.If=Infinity;this.Po={getAudioTrack:function(){return e.audioTrack}, CyN:function(){return e.videoTrack}, getManifest:function(){return e.lR}, mPQ:function(){return e.T}, Va:function(){e.Va()}, jc:function(){e.Ik=0;e.jc()}, bAI:function(K){return um(e,e.videoTrack,e.HN.U,K)}}; F=v&&v.nP();v&&(xvz(v,this.lR,this.policy),this.Gj=Date.now());this.C=new Od(this,this.N,b,this.lR,u,F);b=fc3(this.C,w,M&&M.id);this.audioTrack=new mV(this,this.policy,b.audio,this.timing);this.videoTrack=new mV(this,this.policy,b.video,this.timing);this.videoTrack.Z.kQ=this.audioTrack.ND();this.zj={updateend:this.Jk,error:this.YmI};g.k(this,this.Q2);g.k(this,this.Um);g.k(this,this.P_);g.k(this,this.T1);g.k(this,this.KW);b=this.policy.CT&&this.policy.E2?!eE4(this.videoTrack.C.info):!1;this.Kk=$x7({lq:this.policy.Y.lq|| b,E2:this.policy.E2&&!b,df:this.policy.df});this.V=VEC(this,this.policy,this.Kk,this.schedule,this.zS,function(K,p){return sH7(e,K,p)}); this.Z=new V8(this,this.lR,this.policy,this.videoTrack,this.audioTrack,q,this.wD.getVideoData().vV());this.wq=new Bl(this,this.lR,this.videoTrack,this.audioTrack,this.policy);q=this.policy.Ac?this.wD.getVideoData().vD:null;this.D=new ka(this,this.policy,this.videoTrack,this.audioTrack,this.Se,this.Z,this.timing,this.N,this.schedule,this.lR,this.C,this.V,b,q);g.k(this,this.D);this.U=new gC(this,this.policy,this.videoTrack,this.audioTrack,this.lR,u,Fc(this.wD.getVideoData()),M==null?void 0:M.id);g.k(this, this.U);u_3(this.U,w);this.T=new IRa(this.wD,this,this.policy,this.audioTrack,this.videoTrack,this.lR,this.schedule,this.C,this.U,this.timing,this.Z);g.k(this,this.T);this.Tj=this.wD.t_.S$.lB;this.policy.W||Y9o(this);this.logger.debug("Created")}; Y9o=function(F){var J,b;if((J=F.Tj)==null?0:(b=J.Tk)==null?0:b.itagDenylist){var I;F.c8((I=F.Tj)==null?void 0:I.Tk.itagDenylist)}var u;if((u=F.Tj)==null?0:u.playbackStartPolicy){var w,M;Ro(F.policy,(w=F.Tj)==null?void 0:w.playbackStartPolicy,3,(M=F.Tj)==null?void 0:M.hd())}if(F.policy.c5){J=F.B1();var q;(b=J?(q=F.Tj)==null?void 0:q.wV.get(J):void 0)&&F.T.Np(b)}if(!F.lR.N){var v;q=(v=F.Tj)==null?void 0:v.O9;(q==null?0:q.rL)&&(q==null?0:q.dl)&&F.lR.MW&&NQ(F.lR,q.rL,q.dl)}var a;((a=F.Tj)==null?0:a.l6)&& (v=F.Tj.l6.get(F.B1()||""))&&F.lR&&v.formatId&&(F=F.lR.T.get(lU(v.formatId)))&&(F.info.debugInfo=v.debugInfo)}; $FC=function(F,J){if(F.policy.U&&!F.policy.Oc)return!1;var b=lU(g.H4(J.C.info,F.lR.MW)),I,u=((I=F.eE)==null?void 0:I.Mp(b))||[];if(u.length===0)return F.UQ("ombmsi",{}),!1;u=new sL(u);if(I=!F.policy.eE||isFinite(F.getCurrentTime())||F.wD.bK()){a:{I=F.getCurrentTime();u=g.N(u.aI);for(var w=u.next();!w.done;w=u.next())if(w=w.value,w.type===3&&I>=w.hF&&I<=w.H1){I=!0;break a}I=!1}I=!I}if(I)return F.UQ("ostmf",{ct:F.getCurrentTime(),a:J.C.info.Cd()}),!1;(F=F.eE)!=null&&(F.Fq.get(b).kN=!0);return!0}; Cr_=function(F){if(!F.lR.MW)return!0;var J=F.wD.getVideoData();if(J.S("html5_skip_live_preroll_onesie")&&F.wD.wK()||J.S("html5_skip_live_preroll_onesie_post_live")&&F.wD.wK()&&(J.SF||J.isPremiere))return F.UQ("ombpa",{}),!1;var b,I;if(F.policy.Z1&&!!((b=F.Tj)==null?0:(I=b.O9)==null?0:I.B0G)!==F.lR.SF)return F.UQ("ombplmm",{}),!1;b=J.Kk||J.liveUtcStartSeconds||J.Uz;if(F.lR.SF&&b)return F.UQ("ombplst",{}),!1;if(F.lR.N)return F.UQ("ombab",{}),!1;b=Date.now();return lI(F.lR)&&!isNaN(F.Gj)&&b-F.Gj>F.policy.m_* 1E3?(F.UQ("ombttl",{}),!1):F.lR.De&&F.lR.Z||!F.policy.e9&&F.lR.isPremiere||!(ei(J)===0||F.policy.C&&J.S("html5_enable_onesie_media_for_sabr_proxima_optin"))||J.S("html5_disable_onesie_media_for_mosaic")&&oU(J)||J.S("html5_disable_onesie_media_for_ssdai")&&J.isDaiEnabled()&&J.enableServerStitchedDai?!1:!0}; XCo=function(F,J){var b=J.C,I=F.lR.MW;if(Cr_(F))if(F.eE&&F.eE.Fq.has(lU(g.H4(b.info,I)))){if(I=lU(g.H4(b.info,I)),$FC(F,J)){var u=new sL(F.eE.Mp(I)),w=function(M){try{if(M.J4())F.handleError(M.rB(),M.qp()),P0(J,M),$m(M.info)&&hu(F.D,J,b,!0),F.Va();else if(c0(F.D,M)){var q;(q=F.Z)==null||Kc7(q,M.info,F.Y);F.Va()}}catch(v){M=Gj(v),F.handleError(M.errorCode,M.details,M.severity),F.uq()}}; b.T=!0;Ym(u)&&(z1(J,new T9(F.policy,I,u,F.eE,w)),GL(F.timing))}}else F.UQ("ombfmt",{})}; MS=function(F,J){J=J||F.videoTrack&&F.videoTrack.U&&F.videoTrack.U.startTime||F.getCurrentTime();var b=xa,I=F.videoTrack,u=F.C;J=u.nextVideo&&u.nextVideo.index.Ea(J)||0;u.kQ!==J&&(u.fW={},u.kQ=J,oh(u,u.C));J=!u.C.isLocked()&&u.N>-1&&(0,g.jR)()-u.N<u.policy.J5*1E3;var w=u.nextVideo&&Ud(u,u.nextVideo.info)*3<Ee(u.Gj);if(!J||w)ki(u),h9(u),u.eE=u.eE||u.nextVideo!==u.T;u.nextVideo&&!u.nextVideo.index.isLoaded()&&(u.kQ=-1);b(F,I,u.nextVideo);xa(F,F.audioTrack,F.C.U)}; AX=function(F,J){F.M2=J;F.policy.kQ||(F.logger.debug("Suspended."),F.isSuspended=!0,F.policy.ul&&(F.P_.stop(),F.Um.stop(),F.Q2.stop()),F.policy.n7&&F.KW.stop())}; rg=function(F,J,b,I){F.policy.D&&F.J3(!1,"rollback");if(F.lR.isManifestless){var u=G1(F.audioTrack,I,b,J),w=G1(F.videoTrack,I,b,J);F.policy.Vk||(w&&zF(F.lR,I,!0),u&&zF(F.lR,I,!1));F.UQ("sdai",{rollbk2_seg:I,rbt:b.toFixed(3),lt:J.toFixed(3),a:u,v:w});(u||w)&&F.policy.D&&FJ(F)}}; QH7=function(F){F.logger.debug("Rebuffering.");F.Pl=!0;if(F.policy.bR&&F.HN){var J,b,I,u;F.UQ("lr_rb",{c:F.getCurrentTime(),s:F.isSeeking(),ab:u1(F.HN.C.N0()),ala:(J=i2(F.audioTrack))==null?void 0:J.uX(),alr:(b=F.audioTrack.U)==null?void 0:b.uX(),vb:u1(F.HN.U.N0()),vla:(I=i2(F.videoTrack))==null?void 0:I.uX(),vlr:(u=F.videoTrack.U)==null?void 0:u.uX()})}F.wD.NU()!==0&&F.UQ("sps_rebuffer",{c:F.getCurrentTime()})}; RCz=function(F){F.policy.Om=!1;try{F.jc()}catch(J){g.Td(J)}}; DFk=function(F){return F.policy.C&&F.policy.U&&(!Qh()&&F.policy.rf||F.policy.Sj)}; o$z=function(F,J,b,I){b=b===void 0?!1:b;I=I===void 0?!1:I;F.policy.kQ&&(F.logger.debug("disable updateMetadataWithoutMediaSource"),F.policy.fW&&F.UQ("loader",{setsmb:0}),F.uq(),F.policy.kQ=!1);F.logger.debug("attaching media source");ktz(F,I);if(DFk(F))F.UQ("ssap",{delaysb:1}),F.HN=J;else{if(!hG(J)){var u=Ra(F.videoTrack);u=u?u.info.C:F.videoTrack.C;var w=Ra(F.audioTrack);w=w?w.info.C:F.audioTrack.C;F.policy.U&&F.UQ("ssap",{initsb:1,v:u.info.id,vf:u.info.YQ,a:w.info.id,af:w.info.YQ});lI_(J,u.info, w.info,F.policy.GU)}OCv(F,J,b,I);try{F.Va()}catch(M){g.Td(M)}}}; OCv=function(F,J,b,I){b=b===void 0?!1:b;I=I===void 0?!1:I;yO(F.videoTrack,J.U||null,I);yO(F.audioTrack,J.C||null,I);F.HN=J;F.HN.Z=!0;b||F.resume();J.C.Sn(F.zj,F);J.U.Sn(F.zj,F)}; ktz=function(F,J){J=J===void 0?!1:J;F.HN&&F.HN.C&&F.HN.U&&(F.HN.C.TW(F.zj,F),F.HN.U.TW(F.zj,F));yO(F.audioTrack,null,J);yO(F.videoTrack,null,J);F.HN&&(F.HN.Z=!1);F.HN=null}; hCk=function(F){F.HN&&F.HN.Ph()&&(F.Ul(),F.policy.tE&&F.handleError("fmt.unplayable",{unexpected:1},1))}; UF7=function(F,J){if(!F.iR())if(F.policy.C){if(!wuk(F.U,J)){var b=F.U.U;u_3(F.U,J);var I=!1;I=J.isLocked()&&J.reason==="m"&&M8m(F.U,J.C);var u=F.policy.B9&&J.reason==="l";b=b.C>J.C&&J.reason==="b";I||u||b?(F.wD.M$({reattachOnConstraint:I?"u":u?"drm":"perf",lo:J.U,up:J.C}),F.policy.Tc||(F.U.C.U=!1)):(F.policy.Tc&&(F.U.C.U=!1),FJ(F))}}else if(!WcY(F.C,J)&&F.videoTrack){F.logger.debug(function(){return"Setting constraint: r="+J.reason+" u="+J.C}); b=F.C.C;ciz(F,Emk(F.C,J));MS(F);I=J.isLocked()&&J.reason==="m"&&F.C.eE;u=F.policy.B9&&J.reason==="l"&&r9(F.videoTrack);b=b.C>J.C&&J.reason==="b";var w=F.C.Jz&&!Qh();I||u||b||w?F.wD.M$({reattachOnConstraint:I?"u":u?"drm":w?"codec":"perf"}):FJ(F)}}; xFk=function(F,J,b){if((!F.HN||kn(F.HN)&&!F.policy.mq)&&!F.wq.isSeeking()&&(F.policy.C||r9(J)&&J.C.VJ()&&F.C.Tj)){var I=F.getCurrentTime()+loz(F.N,J,b);F.logger.debug(function(){return"Clearing back to "+I.toFixed(3)}); jZz(J,I)}}; ciz=function(F,J){J&&(F.logger.debug(function(){return"Logging new format: "+b1(J.video.info)}),n$v(F.wD,new Cv(J.video,J.reason))); if(F.C.KW){var b=PUJ(F.C,"a");F.wD.TV(new Cv(b.audio,b.reason))}}; FJ=function(F){g.Z_(F.Q2)}; UE=function(F){F.policy.T1&&F.policy.df&&Math.min(Eja(F.videoTrack),Eja(F.audioTrack))*1E3>F.policy.Ie?g.Z_(F.Um):F.Va()}; tEk=function(F,J){var b=(0,g.jR)()-J,I=j3(F.audioTrack,!0)*1E3,u=j3(F.videoTrack,!0)*1E3;F.logger.debug(function(){return"Appends paused for "+b}); if(F.policy.T&&(F.UQ("apdpe",{dur:b.toFixed(),abuf:I.toFixed(),vbuf:u.toFixed()}),Xo(F.policy))){var w=Ee(F.N);F.UQ("sdps",{ct:J,ah:I.toFixed(),vh:u.toFixed(),mr:jd(F.N,F.Pl,w),bw:w.toFixed(),js:F.isSeeking(),re:+F.Pl,ps:(F.policy.P$||"").toString(),rn:(F.policy.uh||"").toString()})}}; ZCm=function(F){if(F.policy.U&&Ya(F.videoTrack)&&Ya(F.audioTrack))return"ssap";if(rgz(F.videoTrack))return F.logger.debug("Pausing appends for server-selectable format"),"ssf";if(F.policy.KW&&$a(F.videoTrack)&&$a(F.audioTrack))return"updateEnd";if(T1(F.audioTrack)||T1(F.videoTrack)&&F.videoTrack.C.info.YQ!=="f")return"";if(F.wq.isSeeking()){var J=F.N;var b=F.videoTrack;var I=F.audioTrack;if(J.policy.C){var u=J.policy.eB;Xo(J.policy)&&(u=jd(J,!1,Ee(J)));J=u;b=j3(I,!0)>=J&&j3(b,!0)>=J}else b.T.length|| I.T.length?(u=b.C.info.LW+I.C.info.LW,u=10*(1-Ee(J)/u),J=Math.max(u,J.policy.eB),b=j3(I,!0)>=J&&j3(b,!0)>=J):b=!0;if(!b)return"abr";b=F.videoTrack;if(b.T.length>0&&b.Z.U.length===1&&Ft7(b.Z).info.W<b.zj)return"seek"}if(F.policy.D&&YDa(F.videoTrack,F.Z)&&YDa(F.audioTrack,F.Z))return"ssdai";b=!F.policy.T8||F.getCurrentTime()<10;F.policy.C||(b=b||F.videoTrack.C.info.video.C>360);I=Xo(F.policy)&&F.policy.Sl;if(!F.Pl||!I&&b)return"";b=F.policy.T8;Xo(F.policy)&&(b=jd(F.N,F.Pl,Ee(F.N)));b=V$z(F.videoTrack, F.getCurrentTime(),b)||V$z(F.audioTrack,F.getCurrentTime(),b);return Xo(F.policy)?b?"mbnm":"":(F.videoTrack.T.length>0||F.audioTrack.T.length>0||OE(F.D,F.videoTrack,F.audioTrack)||OE(F.D,F.audioTrack,F.videoTrack))&&b?"nord":""}; HCC=function(F){if(F.V){var J=F.V.Va(F.audioTrack,qt(F.HN.U.N0()));J&&F.wD.seekTo(J,{sL:!0,Ky:"pollSubsegmentReadahead",C1:!0})}}; wEv=function(F,J,b){if(F.policy.KW&&$a(J))return!1;if(b.Nt())return!0;if(!b.eq())return!1;var I=Ra(J);if(!I||I.info.type===6)return!1;var u=F.policy.Fr;if(u&&!I.info.Z){var w=I.info.hF-F.getCurrentTime();if(I.info.W<w*u)return!1}var M;if(F.policy.ZT||((M=F.Z)==null?0:gmC(M,J,I.info.Mf)))F.fW=0;else return F.wq.isSeeking()&&FJ(F),F.fW=F.fW||(0,g.jR)(),!1;if(!um(F,J,b,I.info))return!1;if(F.lR.U&&I.info.U===0){if(u=LZ_(J,b,I))w=i2(J),F.UQ("initchg",{it:I.info.C.info.id,sr:!!w&&w.C===I.info.C,ty:I.info.type, seg:I.info.Mf});w=g.nF(I.info.C.info);F.policy.YH&&w&&!u&&NuG(I)}w=F.V&&!!F.V.Z&&J.C.info.audio;u=F.lR.isManifestless||I.D;if(!(F.lR.U&&I.info.U!==0||u&&!w)&&F74(F,J,b,I))return!0;if(w)return!1;w=Y7(F,J);w=F.getCurrentTime()+w;if(I.info.hF>w)return F.policy.C&&Jw4(F,J),F.policy.s8&&sxY(J.Z,w,!1),!1;bYY(F,J);var q;F.policy.zU&&b===((q=F.HN)==null?void 0:q.C)&&F.oI&&(b.WH()===0?(F.oI=!1,F.policy.zU=!1):F.nW=b.WH());if(!Iho(F,b,I,J))return!1;F.policy.KW&&I.info.aQ()?(F.wD.J().hJ()&&F.UQ("eosl",{ls:I.info.uX()}), I.isLocked=!0):(J.IE(I),Voo(F.C,I.info),F.logger.debug(function(){return"Appended "+I.info.uX()+", buffered: "+u1(b.N0())})); u&&ucG(F,I.info.C.d2);return!0}; Jw4=function(F,J){J===F.videoTrack?F.qf=F.qf||(0,g.jR)():F.WN=F.WN||(0,g.jR)()}; bYY=function(F,J){J===F.videoTrack?F.qf=0:F.WN=0}; Iho=function(F,J,b,I){var u=F.policy.bR?(0,g.jR)():0,w=b.D&&b.info.C.C||void 0,M=b.C;b.D&&(M=Mi4(F,b,M)||M);var q=M.HS();M=F.policy.bR?(0,g.jR)():0;J=Awz(F,J,q,b.info,w);(I=I.N)!=null&&(w=b.info,u=M-u,M=(0,g.jR)()-M,!I.U||OFG(I.U,w)&&I.U.Mf===w.Mf||I.flush(),I.Z+=u,I.T+=M,u=1,!I.U&&w.U&&(u=2),t9(I,u,J),M=Math.ceil(w.U/1024),u===2&&I.C.add(M),I.C.add(Math.ceil((w.U+w.T)/1024)-M),I.U=w);F.kQ=0;if(J===0)return F.dD&&(F.logger.debug("Retry succeed, back to normal append logic."),F.dD=!1,F.cN=!1),F.bR= 0,!0;if(J===2||J===5)return qWz(F,"checked",J,b.info),!1;if(J===1){if(!F.dD)return F.logger.debug("QuotaExceeded, retrying."),F.dD=!0,!1;if(!F.cN)return F.cN=!0,F.wD.seekTo(F.getCurrentTime(),{Ky:"quotaExceeded",C1:!0}),!1;b.info.v1()?(u=F.policy,u.dD=Math.floor(u.dD*.8),u.Gj=Math.floor(u.Gj*.8)):(u=F.policy,u.cN=Math.floor(u.cN*.8),u.Gj=Math.floor(u.Gj*.8));F.policy.C?Q8(F.U.C,b.info.C,!1):cs(F.C,b.info.C)}F.wD.M$({reattachOnAppend:J});return!1}; Mi4=function(F,J,b){var I;if(I=F.policy.Uc&&F.HN&&!F.HN.Y&&!F.wD.Sq())J=J.info.C.info,I=J.Xb()&&O5(J)&&J.video&&J.video.width<3840&&J.video.width>J.video.height;if(I&&(F.HN.Y=!0,Tj('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return b=Hoo(b),F.policy.T&&F.UQ("sp4k",{s:!!b}),b}; qWz=function(F,J,b,I){var u="fmt.unplayable",w=1;b===5||b===3?(u="fmt.unparseable",F.policy.C?!I.C.info.video||Rh(F.U.C).size>0||Q8(F.U.C,I.C,!1):!I.C.info.video||Rh(F.C.D).size>0||cs(F.C,I.C)):b===2&&(F.bR<15?(F.bR++,u="html5.invalidstate",w=0):u="fmt.unplayable");I=rG(I);var M;I.mrs=(M=F.HN)==null?void 0:ce(M);I.origin=J;I.reason=b;F.handleError(u,I,w)}; mQo=function(F,J,b,I,u){var w=F.lR;var M=F.policy.C,q=!1,v=-1,a;for(a in w.C){var e=Zf(w.C[a].info)||w.C[a].info.v1();if(I===e)if(e=w.C[a].index,e.vF(J.Mf)){q=e;var K=J,p=q.QB(K.Mf);p&&p.startTime!==K.startTime?(q.segments=[],q.S9(K),q=!0):q=!1;q?v=J.Mf:!J.pending&&M&&(K=e.getDuration(J.Mf),K!==J.duration&&(w.publish("clienttemp","mfldurUpdate",{itag:w.C[a].info.itag,seg:J.Mf,od:K,nd:J.duration},!1),e.S9(J),q=!0))}else e.S9(J),q=!0}v>=0&&(M={},w.publish("clienttemp","resetMflIndex",(M[I?"v":"a"]= v,M),!1));w=q;XX7(F.wq,J,I,w);F.Z.Io(J,b,I,u);J.Mf===F.lR.De&&w&&mt(F.lR)&&J.startTime>mt(F.lR)&&(F.lR.qf=J.startTime+(isNaN(F.timestampOffset)?0:F.timestampOffset),F.wq.isSeeking()&&F.wq.C<F.lR.Ho()&&F.wq.seek(F.lR.Ho(),{}))}; um=function(F,J,b,I){var u=i2(J);!u||u.Z||B6(u,I)||(b.abort(),(J=J.N)!=null&&(t9(J,4),J.flush()));if(!b.A8()||Qh())try{if(F.policy.Zt){if(b.J7(I.C.info.containerType,I.C.info.YQ)){if(F.policy.Cl&&b.x0())return!1;F.UQ("ssap",{chgtp:I.C.info.containerType,cf:I.C.info.YQ,oldtp:b.A8(),oldcf:b.vL()});b.Pw(I.C.info.containerType,I.C.info.YQ,I.C.info.mimeType)}}else b.G_(I.C.info.containerType,I.C.info.mimeType)}catch(w){return b=w,g.rQ(b),F.UQ("ctexp",{name:b.name,msg:b.message}),!1}else I.C.info.containerType!== b.A8()&&F.UQ("ctu",{ct:Qh(),prev_c:b.A8(),curr_c:I.C.info.containerType});J=I.C.Z;F.policy.eD&&J&&(I=0+J.duration,J=-J.C,0===b.q4()&&I===b.Js()||b.ZL(0,I),J!==b.Xq()&&(b.sM(J),p7&&iWo(F.audioTrack.ND(),b.Av())));return!0}; F74=function(F,J,b,I){I.info.C.VJ();var u=I.info.C.C;if(!u||!b.eq()||b.yO()===u)return!1;var w=u,M=b.LV();if(F.policy.dk&&M&&b.isView()&&g.nF(I.info.C.info)){var q=new DataView(u.buffer,u.byteOffset,u.byteLength);(M=EzJ(q,M))?w=new Uint8Array(M.buffer,M.byteOffset,M.byteLength):F.UQ("fenc",{})}F.policy.Uc&&(M=Mi4(F,I,new m_([w])))&&(w=M.HS());var v;(M=I.info.C.nu(0,I.info.clipId))&&(v=M.aI[0]);if(I===F.xm){if(F.kQ+=1,F.wD.getVideoData().S("html5_shorts_gapless_restart_on_init_seg_retries")&&F.kQ> 5)return F.kQ=0,F.wD.M$({initSegStuck:1,as:I.info.uX()}),!0}else F.kQ=0,F.xm=I;F.policy.A2&&(b.abort(),(M=J.N)!=null&&(t9(M,4),M.flush()));u=Awz(F,b,w,v,u);var a;(a=J.N)==null||CUC(a,u,v);if(u!==0)return vsz(F,u,I),!0;I.info.v1()?uzk(F.timing):w63(F.timing);F.logger.debug(function(){return"Appended init for "+I.info.C.info.id}); ucG(F,I.info.C.d2);return b.x0()}; LZ_=function(F,J,b){if(J.yO()==null){F=i2(F);if(!(J=!F||F.C!==b.info.C)){a:if(F=F.V,b=b.info.V,F.length!==b.length)b=!1;else{for(J=0;J<F.length;J++)if(!g.ay(F[J],b[J])){b=!1;break a}b=!0}J=!b}return J}F=J.yO();b.info.C.Ne()&&H6(b);b=b.info.C.C;return F!==b&&!g.ay(F,b)}; Awz=function(F,J,b,I,u){var w=0;if(F.policy.U&&I&&I.clipId&&F.II){var M;w=(((M=F.II)==null?void 0:V5(M,I.clipId))||0)/1E3}try{F.policy.U&&J.Xq()!==w&&J.sM(w);var q,v=J===((q=F.HN)==null?void 0:q.C)?F.audioTrack:F.videoTrack;if(F.policy.KW&&(I==null?0:I.aQ())){if((I==null?void 0:I.Y)>1)return 6;v.fW=new g.ty(function(){var e=Ra(v);F.iR()||e==null||!e.isLocked?F.wD.J().hJ()&&F.UQ("eosl",{delayA:e==null?void 0:e.info.uX()}):ahC(v)?(F.wD.J().hJ()&&F.UQ("eosl",{dunlock:e==null?void 0:e.info.uX()}),eL7(F, v===F.audioTrack)):(F.UQ("nue",{ls:e.info.uX()}),e.info.Y+=1,F.HN&&F.jc())},1E4,F); F.wD.J().hJ()&&F.UQ("eosl",{delayS:I.uX()});v.fW.start()}if(F.policy.uH&&(I==null?0:I.aQ())){var a;if((a=v.kQ)==null?0:a.isActive())g.HQ(v.kQ),F.UQ("sbac",{as:I.uX()});v.kQ=new g.ty(function(){F.UQ("sbum5s",{as:I.uX()})},5E3,F); v.kQ.start()}F.policy.KI&&(I==null?void 0:I.C)instanceof Xz&&I.aQ()&&F.UQ("poseos",{itag:I.C.info.itag,seg:I.Mf,lseg:I.C.index.oC(),es:I.C.index.T});J.appendBuffer(b,I,u)}catch(e){if(e instanceof DOMException){if(e.code===11)return 2;if(e.code===12)return 5;if(e.code===22||e.message.indexOf("Not enough storage")===0)return J=Object.assign({name:"QuotaExceededError",buffered:u1(J.N0()).replace(/,/g,"_"),vheap:d9(F.videoTrack),aheap:d9(F.audioTrack),message:g.NL(e.message,3),track:F.HN?J===F.HN.U?"v": "a":"u"},S9_()),F.handleError("player.exception",J),1;g.Td(e)}return 4}return F.HN.Ph()?3:0}; Q5=function(F,J,b){F.wD.seekTo(J,b)}; ucG=function(F,J){J&&F.wD.vc(new u2(J.key,J.type))}; qd=function(F,J){F.wD.N8(J)}; Y7=function(F,J){if(F.dD&&!F.Pl)return 3;if(F.isSuspended)return 1;var b;if((b=F.HN)==null?0:b.HN&&b.HN.streaming===!1)return 4;b=(J.C.info.audio?F.policy.cN:F.policy.dD)/(J.LW*F.policy.jn);if(F.policy.nI>0&&F.HN&&kn(F.HN)&&(J=J.C.info.video?F.HN.U:F.HN.C)&&!J.x0()){J=J.N0();var I=wu(J,F.getCurrentTime());I>=0&&(J=F.getCurrentTime()-J.start(I),b+=Math.max(0,Math.min(J-F.policy.nI,F.policy.vO)))}F.policy.Gj>0&&(b=Math.min(b,F.policy.Gj));return b}; q9a=function(F,J){return(Y7(F,J)+F.policy.Xc)*J.LW}; pEG=function(F){F.Jz&&!F.isSuspended&&zB(F.schedule)&&(K74(F,F.Jz),F.Jz="")}; K74=function(F,J){lX(J,"cms",function(b){F.policy.T&&F.UQ("pathprobe",b)},function(b){F.wD.handleError(b)})}; gso=function(F,J){if(F.HN&&F.HN.Z&&!F.HN.Ph()&&(J.O8=j3(F.videoTrack),J.U=j3(F.audioTrack),F.policy.T)){var b=d9(F.videoTrack),I=d9(F.audioTrack),u=u1(F.HN.U.N0(),"_",5),w=u1(F.HN.C.N0(),"_",5);Object.assign(J.C,{lvq:b,laq:I,lvb:u,lab:w})}J.bandwidthEstimate=Wl(F.N);var M;(M=F.audioTrack.N)==null||M.flush();var q;(q=F.videoTrack.N)==null||q.flush();F.logger.debug(function(){return dk(J.C)})}; mbv=function(F,J){F.Y=J;F.Z&&(F.Z.W=J);F.Y.iD(F.videoTrack.C.info.Xb());F.D.U=F.Y;F.policy.D&&(F.T.Z=F.Y)}; ywo=function(F,J){if(F.HN&&F.HN.U){if(F.policy.UP){var b=CIa(F.audioTrack);if(b&&b.Cd()){var I=F.wD;I.D1&&(I.D1.C=b,I.zF(I.D1.videoId).dC(I.D1))}}F.policy.aB&&(b=CIa(F.videoTrack))&&b.v1()&&(I=F.wD,I.mN&&(I.mN.C=b,I.zF(I.mN.videoId).K_(I.mN)));J-=isNaN(F.timestampOffset)?0:F.timestampOffset;F.getCurrentTime()!==J&&F.resume();F.wq.isSeeking()&&F.HN&&!F.HN.Ph()&&(b=F.getCurrentTime()<=J&&J<F.getCurrentTime()+10,I=Mt(F.HN.U.N0(),F.getCurrentTime()+qS),b&&I&&(F.wq.D=!1));F.wq.isSeeking()||F.policy.WN|| (F.currentTime=J);g.Z_(F.P_)}}; iYa=function(F,J){var b=f7(F.videoTrack).find(function(I){return I.startTime>=J&&sH7(F,I.startTime,!1)}); return b&&b.startTime<J+b.duration*1.5?b.startTime+.1:0}; sH7=function(F,J,b){if(!(F.videoTrack.C.VJ()&&F.audioTrack.C.VJ()&&F.HN&&F.HN.U&&F.HN.C))return!1;if(b&&F.lR.isManifestless&&(F.videoTrack.W===-1||F.audioTrack.W===-1))return!0;var I=se(F.videoTrack,J,b);if(isNaN(I))return!1;F=se(F.audioTrack,F.policy.xo?J:I,b);return isNaN(F)?!1:!0}; tu=function(F){F.uq();F.wq.isSeeking()&&F.logger.debug("seeking cancelled by seek-to-head");F.V&&PrJ(F.V,F.videoTrack.C);FJ(F);return Sro(F.wq)}; xa=function(F,J,b,I){(I===void 0?0:I)&&!J.qf&&(Qh()||(I=J.dw,DFk(F)||!I||I.EL(b.info)||(F.UQ("ssap",{rstonsrvfmt:b.info.mimeType}),F.wD.sV())),J.qf=!0);J.C!==b&&(F.logger.debug(function(){return"Setting target itag: "+b.info.id+" (was "+J.C.info.id+")"}),J.C=b)}; ahC=function(F){var J,b=(J=Ra(F))==null?void 0:J.info;return!b||sE(F,Math.min(b.hF+qS,b.H1))}; zLa=function(F,J){var b;if((b=Ra(J))!=null&&b.isLocked&&ahC(J)){if(F.wD.J().hJ()){var I;F.UQ("eosl",{munlock:(I=Ra(J))==null?void 0:I.info.uX()})}eL7(F,J===F.audioTrack)}}; eL7=function(F,J){if(F.policy.KW&&F.HN){var b,I,u=J?(b=F.HN)==null?void 0:b.C:(I=F.HN)==null?void 0:I.U;b=J?F.audioTrack:F.videoTrack;J=Ra(b);if(J==null?0:J.isLocked){F.wD.J().hJ()&&F.UQ("eosl",{unlock:J.info.uX()});var w;(w=b.fW)==null||w.stop();J.isLocked=!1;b.IE(J);Voo(F.C,J.info);u=u==null?void 0:u.Vo();(u==null?void 0:u.uX())!==J.info.uX()&&F.UQ("oue",{bls:u==null?void 0:u.uX(),tls:J.info.uX()})}}}; NSv=function(F,J){F.timestampOffset!==J&&(F.timestampOffset=J,F.policy.Vk&&iI(F.lR),F.logger.debug(function(){return"Timestamps will be made relative to "+F.timestampOffset}),F.Z.Y=F.timestampOffset,F.wD.mL(F.timestampOffset),F.lR.isManifestless&&(F.lR.timestampOffset=F.timestampOffset),F.videoTrack.sM(F.timestampOffset),F.audioTrack.sM(F.timestampOffset))}; xQm=function(F){var J=F.Y4().filter(function(I){return I.namespace==="ad"}); J=g.N(J);for(var b=J.next();!b.done;b=J.next())if(b=b.value,b.start/1E3>F.getCurrentTime())return b.start/1E3;return Infinity}; lhY=function(F){var J=i2(F.videoTrack),b=i2(F.audioTrack);return J&&!$Qk(F.videoTrack)?J.startTime:b&&!$Qk(F.audioTrack)?b.startTime:NaN}; mFY=function(F){if(F.wD.getVideoData().isLivePlayback)return!1;var J=F.wD.Qa();if(!J)return!1;J=J.getDuration();return g$o(F,J)}; g$o=function(F,J){if(!F.HN||!F.HN.C||!F.HN.U)return!1;var b=F.getCurrentTime(),I=F.HN.C.N0();F=F.HN.U.N0();I=I?AG(I,b):b;b=F?AG(F,b):b;b=Math.min(I,b);return isNaN(b)?!1:b>=J-.01}; vsz=function(F,J,b){F.policy.wp&&LC(F.wD.getVideoData())?(F.wD.eI()||qWz(F,"sepInit",J,b.info),fha(F.wD,"sie")):qWz(F,"sepInit",J,b.info)}; n7=function(F){return F.wD.NU()<F.If}; g.vg=function(F){this.xl=F}; am=function(){g.uA.apply(this,arguments)}; eA=function(F,J,b,I){am.call(this);var u=this;this.T=-1;this.C={};this.Z=new g.ty(this.D,0,this);g.k(this,this.Z);this.U=new g.ty(function(){u.iR()||(u.Z.start(Math.random()*b),u.U.start(J))},F,this); g.k(this,this.U);I.subscribe("fairplay_next_need_key_info",this.W,this)}; W7z=function(F){if(!(F.length<=28))for(var J=(0,g.gg)([60,0,75,0,73,0,68,0,62,0]),b=28;b<F.length;){a:if(F.length-b<J.length)var I=!1;else{for(I=0;I<J.length;++I)if(F[b+I]!==J[I]){I=!1;break a}I=!0}if(I){b+=J.length;if(F.length<=b+48)break;J=new Uint8Array(24);for(I=0;I<24;++I)J[I]=F[b+I*2];F=WA(J);F=lV(F);if(!F)break;b=F[0];F[0]=F[3];F[3]=b;b=F[1];F[1]=F[2];F[2]=b;b=F[4];F[4]=F[5];F[5]=b;b=F[6];F[6]=F[7];F[7]=b;return F}b++}}; Kj=function(F,J,b){am.call(this);var I=this;this.T=F;this.C=[];this.Po={R2Q:function(){return I.C.length}}; this.Z=b.pW("html5_ignore_widevine_key_rotation_license_requests");this.U=new g.ty(function(){I.publish("log_qoe",{wvagt:"timer",reqlen:I.C?I.C.length:-1});if(I.C){if(I.C.length>0){var u=I.C.shift();dbo(I,u.info)}I.C.length>0&&(u=I.C[0].time-(0,g.jR)(),I.U.start(Math.max(0,u)))}},0); g.k(this,this.U);J.subscribe("widevine_set_need_key_info",this.D,this)}; dbo=function(F,J){a:{var b=J.cryptoPeriodIndex;if(isNaN(b)&&F.T.size>0)b=!0;else{for(var I=g.N(F.T.values()),u=I.next();!u.done;u=I.next())if(u.value.cryptoPeriodIndex===b){b=!0;break a}b=!1}}F.publish("log_qoe",{wvagt:"reqnews",canskip:b});b||F.publish("rotated_need_key_info_ready",J)}; Esa=function(){var F={};var J=F.url;var b=F.interval;F=F.retries;this.url=J;this.interval=b;this.retries=F}; jUz=function(F,J){this.statusCode=F;this.message=J;this.U=this.heartbeatParams=this.errorMessage=null;this.C={};this.nextFairplayKeyId=null}; GeC=function(F,J,b){b=b===void 0?"":b;g.R.call(this);this.message=F;this.requestNumber=J;this.bC=b;this.onError=this.onSuccess=null;this.C=new g.Wz(5E3,2E4,.2)}; Vi_=function(F,J,b){F.onSuccess=J;F.onError=b}; BSa=function(F,J,b,I){var u={timeout:3E4,onSuccess:function(w){if(!F.iR()){XH("drm_net_r",void 0,F.bC);var M=w.status==="LICENSE_STATUS_OK"?0:9999,q=null;if(w.license)try{q=lV(w.license)}catch(y){g.Td(y)}if(M!==0||q){q=new jUz(M,q);M!==0&&w.reason&&(q.errorMessage=w.reason);if(w.authorizedFormats){M={};for(var v=[],a={},e=g.N(w.authorizedFormats),K=e.next();!K.done;K=e.next())if(K=K.value,K.trackType&&K.keyId){var p=PE3[K.trackType];if(p){p==="HD"&&w.isHd720&&(p="HD720");K.isHdr&&(p+="HDR");M[p]|| (v.push(p),M[p]=!0);var m=null;try{m=lV(K.keyId)}catch(y){g.Td(y)}m&&(a[g.zw(m,4)]=p)}}q.U=v;q.C=a}w.nextFairplayKeyId&&(q.nextFairplayKeyId=w.nextFairplayKeyId);w.sabrLicenseConstraint&&(q.sabrLicenseConstraint=lV(w.sabrLicenseConstraint));w=q}else w=null;if(w)F.onSuccess(w,F.requestNumber);else F.onError(F,"drm.net","t.p;p.i")}}, onError:function(w){if(!F.iR())if(w&&w.error)w=w.error,F.onError(F,"drm.net.badstatus","t.r;p.i;c."+w.code+";s."+w.status,w.code);else F.onError(F,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){F.onError(F,"drm.net","rt.req."+F.requestNumber)}}; I&&(u.C0="Bearer "+I);g.ZD(b,"player/get_drm_license",J,u)}; TSm=function(F,J,b,I){g.uA.call(this);this.videoData=F;this.rD=J;this.Y=b;this.sessionId=I;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Tj=this.eE=!1;this.T=null;this.Gj=[];this.Z=[];this.V=!1;this.C={};this.status="";this.W=NaN;this.U=F.D;this.cryptoPeriodIndex=b.cryptoPeriodIndex;F={};Object.assign(F,this.rD.C);F.cpn=this.videoData.clientPlaybackNonce;this.videoData.eE&&(F.vvt=this.videoData.eE,this.videoData.mdxEnvironment&&(F.mdx_environment=this.videoData.mdxEnvironment)); this.rD.Gj&&(F.authuser=this.rD.Gj);this.rD.pageId&&(F.pageid=this.rD.pageId);isNaN(this.cryptoPeriodIndex)||(F.cpi=this.cryptoPeriodIndex.toString());var u=(u=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Bk()))?u[1]:"";u==="ATV"&&(F.cdt=u);this.D=F;this.D.session_id=I;this.N=!0;this.U.flavor==="widevine"&&(this.D.hdr="1");this.U.flavor==="playready"&&(J=Number(xj(J.experiments,"playready_first_play_expiration")),!isNaN(J)&&J>=0&&(this.D.mfpe=""+J),this.N=!1);J="";g.sD(this.U)?S$(this.U)?(I=b.U)&&(J="https://www.youtube.com/api/drm/fps?ek="+ QGa(I)):(J=b.initData.subarray(4),J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),J=String.fromCharCode.apply(null,J).replace("skd://","https://")):J=this.U.U;this.baseUrl=J;this.fairplayKeyId=hz(this.baseUrl,"ek")||"";if(J=hz(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(J);this.Gj=b.Xb?[g.zw(b.initData,4)]:b.T;pj(this,{sessioninit:b.cryptoPeriodIndex});this.status="in"}; YWG=function(F,J){pj(F,{createkeysession:1});F.status="gr";XH("drm_gk_s",void 0,F.videoData.zj);F.url=rwG(F);try{F.T=J.createSession(F.Y,function(b){pj(F,{m:b})})}catch(b){J="t.g"; b instanceof DOMException&&(J+=";c."+b.code);F.publish("licenseerror","drm.unavailable",1,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}F.T&&(SW7(F.T,function(b,I){sUo(F,b,I)},function(b,I,u){if(!F.iR()){I=void 0; var w=1;g.sD(F.U)&&g.TB(F.rD)&&F.rD.S("html5_enable_safari_fairplay")&&u===1212433232&&(I="ERROR_HDCP",w=F.rD.S("html5_safari_fairplay_ignore_hdcp")?0:w);F.error("drm.keyerror",w,b,I)}},function(){F.iR()||(pj(F,{onkyadd:1}),F.Tj||(F.publish("sessionready"),F.Tj=!0))},function(b){F.mw(b)}),g.k(F,F.T))}; rwG=function(F){var J=F.baseUrl;Fh4(J)||F.error("drm.net",2,"t.x");if(!hz(J,"fexp")){var b=["23898307","23914062","23916106","23883098"].filter(function(u){return F.rD.experiments.experiments[u]}); b.length>0&&(F.D.fexp=b.join())}b=g.N(Object.keys(F.D));for(var I=b.next();!I.done;I=b.next())I=I.value,J=Vqv(J,I,F.D[I]);return J}; sUo=function(F,J,b){if(!F.iR())if(J){pj(F,{onkmtyp:b});F.status="km";switch(b){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":$ba(F,J);return;default:F.publish("ctmp","message_type",{t:b,l:J.byteLength})}F.eE||(XH("drm_gk_f",void 0,F.videoData.zj),F.eE=!0,F.publish("newsession",F));if(BG(F.U)&&(J=CEv(J),!J))return;J=new GeC(J,++F.requestNumber,F.videoData.zj);Vi_(J,function(I){XE_(F,I)},function(I,u,w){if(!F.iR()){var M=0; I.C.U>=3&&(M=1,u="drm.net.retryexhausted");pj(F,{onlcsrqerr:u,info:w});F.error(u,M,w);F.shouldRetry(jg(M),I)&&QUa(F,I)}}); g.k(F,J);RL3(F,J)}else F.error("drm.unavailable",1,"km.empty")}; $ba=function(F,J){pj(F,{sdpvrq:1});F.W=Date.now();if(F.U.flavor!=="widevine")F.error("drm.provision",1,"e.flavor;f."+F.U.flavor+";l."+J.byteLength);else{var b={cpn:F.videoData.clientPlaybackNonce};Object.assign(b,F.rD.C);b=g.Os("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",b);J={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, J)}),responseType:"arraybuffer"};g.Px(b,J,3,500).then(pa(function(I){I=I.xhr;if(!F.iR()){I=new Uint8Array(I.response);var u=String.fromCharCode.apply(null,I);try{var w=JSON.parse(u)}catch(M){}w&&w.signedResponse?(F.publish("ctmp","drminfo",{provisioning:1}),w=(Date.now()-F.W)/1E3,F.W=NaN,F.publish("ctmp","provs",{et:w.toFixed(3)}),F.T&&F.T.update(I)):(w=w&&w.error&&w.error.message,I="e.parse",w&&(I+=";m."+w),F.error("drm.provision",1,I))}}),pa(function(I){F.iR()||F.error("drm.provision",1,"e."+I.errorCode+ ";c."+(I.xhr&&I.xhr.status))}))}}; gr=function(F){var J;if(J=F.N&&F.T!=null)F=F.T,J=!(!F.C||!F.C.keyStatuses);return J}; RL3=function(F,J){F.status="km";XH("drm_net_s",void 0,F.videoData.zj);var b=new g.tB(F.rD.wX),I={context:g.vr(b.config_||g.qK())};I.drmSystem=Dbz[F.U.flavor];I.videoId=F.videoData.videoId;I.cpn=F.videoData.clientPlaybackNonce;I.sessionId=F.sessionId;I.licenseRequest=g.zw(J.message);I.drmParams=F.videoData.drmParams;isNaN(F.cryptoPeriodIndex)||(I.isKeyRotated=!0,I.cryptoPeriodIndex=F.cryptoPeriodIndex);var u,w,M=!!((u=F.videoData.U)==null?0:(w=u.video)==null?0:w.isHdr());I.drmVideoFeature=M?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(I.context&&I.context.client){if(u=F.rD.C)I.context.client.deviceMake=u.cbrand,I.context.client.deviceModel=u.cmodel,I.context.client.browserName=u.cbr,I.context.client.browserVersion=u.cbrver,I.context.client.osName=u.cos,I.context.client.osVersion=u.cosver;I.context.user=I.context.user||{};I.context.request=I.context.request||{};F.videoData.eE&&(I.context.user.credentialTransferTokens=[{token:F.videoData.eE,scope:"VIDEO"}]);I.context.request.mdxEnvironment=F.videoData.mdxEnvironment|| I.context.request.mdxEnvironment;F.videoData.Um&&(I.context.user.kidsParent={oauthToken:F.videoData.Um});g.sD(F.U)&&(I.fairplayKeyId=g.zw(Rva(F.fairplayKeyId)));g.LH(F.rD,g.ks(F.videoData)).then(function(q){BSa(J,I,b,q);F.status="rs"})}else F.error("drm.net",2,"t.r;ic.0")}; XE_=function(F,J){if(!F.iR())if(pj(F,{onlcsrsp:1}),F.status="rr",J.statusCode!==0)F.error("drm.auth",1,"t.f;c."+J.statusCode,J.errorMessage||void 0);else{XH("drm_kr_s",void 0,F.videoData.zj);if(J.heartbeatParams&&J.heartbeatParams.url&&F.videoData.S("outertube_streaming_data_always_use_staging_license_service")){var b=F.U.U.match(/(.*)youtube.com/g);b&&(J.heartbeatParams.url=b[0]+J.heartbeatParams.url)}J.heartbeatParams&&F.publish("newlicense",J.heartbeatParams);J.U&&(F.Z=J.U,F.videoData.Au||F.publish("newlicense", new Esa),F.videoData.Au=!0,F.V=Bc(F.Z,function(I){return I.includes("HDR")})); J.C&&(F.rD.S("html5_enable_vp9_fairplay")&&S$(F.U)?(b=g.zw(Rva(F.fairplayKeyId),4),F.C[b]={type:J.C[b],status:"unknown"}):F.C=ND(J.C,function(I){return{type:I,status:"unknown"}})); rd(F.U)&&(J.message=rA_(g.zw(J.message)));F.T&&(pj(F,{updtks:1}),F.status="ku",F.T.update(J.message).then(function(){XH("drm_kr_f",void 0,F.videoData.zj);gr(F)||(pj(F,{ksApiUnsup:1}),F.publish("keystatuseschange",F))},function(I){I="msuf.req."+F.requestNumber+";msg."+g.NL(I.message,3); F.error("drm.keyerror",1,I)})); g.sD(F.U)&&F.publish("fairplay_next_need_key_info",F.baseUrl,J.nextFairplayKeyId);F.rD.S("html5_enable_vp9_fairplay")&&S$(F.U)&&F.publish("qualitychange",kek(F.Z));J.sabrLicenseConstraint&&F.publish("sabrlicenseconstraint",J.sabrLicenseConstraint)}}; QUa=function(F,J){var b=J.C.getValue();b=new g.ty(function(){RL3(F,J)},b); g.k(F,b);b.start();g.dK(J.C);pj(F,{rtyrq:1})}; OYz=function(F,J){for(var b=[],I=g.N(Object.keys(F.C)),u=I.next();!u.done;u=I.next())u=u.value,b.push(u+"_"+F.C[u].type+"_"+F.C[u].status);return b.join(J)}; osJ=function(F){var J={};J[F.status]=gr(F)?OYz(F,"."):F.Z.join(".");return J}; hLa=function(F,J){switch(F){case "highres":case "hd2880":F="UHD2";break;case "hd2160":case "hd1440":F="UHD1";break;case "hd1080":case "hd720":F="HD";break;case "large":case "medium":case "small":case "light":case "tiny":F="SD";break;default:return""}J&&(F+="HDR");return F}; cwa=function(F,J){for(var b in F.C)if(F.C[b].status==="usable"&&F.C[b].type===J)return!0;return!1}; Ubo=function(F,J){for(var b in F.C)if(F.C[b].type===J)return F.C[b].status}; pj=function(F,J){var b=b===void 0?!1:b;dk(J);(b||F.rD.hJ())&&F.publish("ctmp","drmlog",J)}; xbz=function(F){var J=F[0];F[0]=F[3];F[3]=J;J=F[1];F[1]=F[2];F[2]=J;J=F[4];F[4]=F[5];F[5]=J;J=F[6];F[6]=F[7];F[7]=J}; kek=function(F){return g.te(F,"UHD2")||g.te(F,"UHD2HDR")?"highres":g.te(F,"UHD1")||g.te(F,"UHD1HDR")?"hd2160":g.te(F,"HD")||g.te(F,"HDHDR")?"hd1080":g.te(F,"HD720")||g.te(F,"HD720HDR")?"hd720":"large"}; CEv=function(F){for(var J="",b=0;b<F.length;b+=2)J+=String.fromCharCode(F[b]);F=UQ(new DOMParser,Y_(J),"text/xml");return F?(F=F.querySelector("Challenge"))&&F.childNodes&&F.childNodes.length!==0?new Uint8Array((0,g.gg)(gLa(F.childNodes[0].nodeValue)).buffer):null:null}; mQ=function(F,J,b,I,u,w){w=w===void 0?!1:w;g.R.call(this);this.element=F;this.Y=J;this.initData=b;this.C=I;this.U=u;this.N=w;this.sessionId="";this.V=this.W=this.T=this.D=null;this.Z=new g.s5(this);g.k(this,this.Z);ns_(this)}; ns_=function(F){F.C?(F.Z.B(F.C,"message",F.yq),F.Z.B(F.C,"keystatuseschange",F.mw),F.C.closed&&F.C.closed.then(pa(function(){F.onClosed()}),null)):F.U&&(GD(F.Z,F.U,["mskeymessage", "webkitkeymessage"],F.VK),GD(F.Z,F.U,["mskeyerror","webkitkeyerror"],F.HB),GD(F.Z,F.U,["mskeyadded","webkitkeyadded"],F.SU))}; SW7=function(F,J,b,I,u){F.D=J;F.T=b;F.W=I;F.V=u}; tio=function(F,J,b){g.Td(b);F.T&&(b instanceof DOMException&&(J+=";n."+b.name+";m."+b.message),F.T(J))}; yT=function(F,J,b,I){I=I===void 0?!1:I;g.R.call(this);this.element=F;this.C=J;this.UQ=b;this.V=I;this.W={};this.Z=null;this.D=new g.s5(this);this.T=this.U=null;g.k(this,this.D)}; HYk=function(F,J){J=ZYG(J,F.C.oI);J=F.T.createSession("video/mp4",J);return new mQ(null,null,null,null,J,F.V)}; L7J=function(F,J){for(var b=new Uint8Array(270),I=0;I<135;I++)b[I*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(I);F=F.T.createSession("video/mp4",J,b);return new mQ(null,null,null,null,F)}; Fda=function(F,J){var b=F.W[J.sessionId];!b&&F.Z&&(b=F.Z,F.Z=null,b.sessionId=J.sessionId,F.W[J.sessionId]=b);return b}; ZYG=function(F,J){var b=F.subarray(4);b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2);b=String.fromCharCode.apply(null,b).match(/ek=([0-9a-f]+)/)[1];for(var I="",u=0;u<b.length;u+=2)I+=String.fromCharCode(parseInt(b.substring(u,u+2),16));b=I;I=new ArrayBuffer(b.length*2);u=new Uint16Array(I);for(var w=0;w<b.length;w++)u[w]=b.charCodeAt(w);b=new Uint8Array(I);I=0;w=new ArrayBuffer(F.byteLength+4+b.byteLength+4+J.byteLength);u=new Uint8Array(w);w=new DataView(w);u.set(F);I+=F.byteLength;w.setUint32(I, b.length,!0);I+=4;u.set(b,I);I+=b.length;w.setUint32(I,J.byteLength,!0);u.set(J,I+4);return u}; im=function(){this.keys=[];this.values=[]}; I6a=function(F,J,b){g.uA.call(this);this.element=F;this.videoData=J;this.rD=b;this.T=[];this.qf=2;this.dD=this.WN=!1;this.heartbeatParams=null;this.kQ=this.N=!1;this.D=null;this.fW=!1;this.C=this.videoData.D;this.drmSessionId=this.videoData.drmSessionId||g.B$k();this.U=new Map;this.W=new im;this.V=new im;this.eE=new g.s5(this);this.Gj=this.rD.S("html5_eme_ignore_teardown_errors");(F=this.element)&&(F.addKey||F.webkitAddKey)||Vy()||CW(b.experiments);this.rD.S("html5_enable_vp9_fairplay")&&S$(this.C)? b=JaJ:(b=this.videoData.PS,b=this.C.flavor==="fairplay"||b?QE:JaJ);this.Y=b;this.Z=new yT(this.element,this.C,this.Yi.bind(this),this.Gj);g.k(this,this.Z);PG(this.C)&&(this.Tj=new yT(this.element,this.C,this.Yi.bind(this),this.Gj),g.k(this,this.Tj));g.k(this,this.eE);b=this.element;this.C.keySystemAccess?this.eE.B(b,"encrypted",this.OyN):GD(this.eE,b,PG(this.C)?["msneedkey"]:["needkey","webkitneedkey"],this.YIv);bEa(this);a:switch(b=this.C,F=this.rD.experiments,J=this.U,b.flavor){case "fairplay":if(J= /\sCobalt\/(\S+)\s/.exec(g.Bk())){F=[];J=g.N(J[1].split("."));for(var I=J.next();!I.done;I=J.next())I=parseInt(I.value,10),I>=0&&F.push(I);F=parseFloat(F.join("."))}else F=NaN;F>19.2999?(F=b.xA,b=b.Ao,b>=F&&(b=F*.75),J=(F-b)*.5,b=new eA(J,F,F-J-b,this)):b=null;break a;case "widevine":b=new Kj(J,this,F);break a;default:b=null}if(this.D=b)g.k(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.j4,this),this.D.subscribe("log_qoe",this.H9,this);CW(this.rD.experiments);this.H9({cks:this.C.getInfo()})}; bEa=function(F){var J=F.Z.sj();J?J.then(pa(function(){uoa(F)}),pa(function(b){if(!F.iR()){g.Td(b); var I="t.a";b instanceof DOMException&&(I+=";n."+b.name+";m."+b.message);F.publish("licenseerror","drm.unavailable",1,I,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(F.H9({mdkrdy:1}),F.N=!0); F.Tj&&(J=F.Tj.sj())}; M3k=function(F,J,b){F.dD=!0;b=new u2(J,b);F.rD.S("html5_eme_loader_sync")&&(F.W.get(J)||F.W.set(J,b));w0_(F,b)}; w0_=function(F,J){if(!F.iR()){F.H9({onInitData:1});if(F.rD.S("html5_eme_loader_sync")&&F.videoData.T&&F.videoData.T.C){var b=F.V.get(J.initData);J=F.W.get(J.initData);if(!b||!J)return;J=b;b=J.initData;F.W.remove(b);F.V.remove(b)}F.H9({initd:J.initData.length,ct:J.contentType});if(F.C.flavor==="widevine")if(F.WN&&!F.videoData.isLivePlayback)z$(F);else{if(!(F.rD.S("vp9_drm_live")&&F.videoData.isLivePlayback&&J.Xb)){F.WN=!0;b=J.cryptoPeriodIndex;var I=J.C;Uxz(J);J.Xb||(I&&J.C!==I?F.publish("ctmp","cpsmm", {emsg:I,pssh:J.C}):b&&J.cryptoPeriodIndex!==b&&F.publish("ctmp","cpimm",{emsg:b,pssh:J.cryptoPeriodIndex}));F.publish("widevine_set_need_key_info",J)}}else F.j4(J)}}; uoa=function(F){if(!F.iR())if(F.rD.S("html5_drm_set_server_cert")||S$(F.C)){var J=F.Z.setServerCertificate();J?J.then(pa(function(b){F.rD.hJ()&&F.publish("ctmp","ssc",{success:b})}),pa(function(b){F.publish("ctmp","ssce",{n:b.name, m:b.message})})).then(pa(function(){Auo(F)})):Auo(F)}else Auo(F)}; Auo=function(F){F.iR()||(F.N=!0,F.H9({onmdkrdy:1}),z$(F))}; qEk=function(F){return F.C.flavor==="widevine"&&F.videoData.S("html5_drm_cpi_license_key")}; z$=function(F){if((F.dD||F.rD.S("html5_widevine_use_fake_pssh"))&&F.N&&!F.kQ){for(;F.T.length;){var J=F.T[0],b=qEk(F)?xxz(J):g.zw(J.initData);if(S$(F.C)&&!J.U)F.T.shift();else{if(F.U.get(b))if(F.C.flavor!=="fairplay"||S$(F.C)){F.T.shift();continue}else F.U.delete(b);Uxz(J);break}}F.T.length&&F.createSession(F.T[0])}}; vaC=function(F){var J;if(J=g.O6()){var b;J=!((b=F.Z.U)==null||!b.getMetrics)}J&&(J=F.Z.getMetrics())&&(J=g.Ev(J),F.publish("ctmp","drm",{metrics:J}))}; a6m=function(){var F=XQk();return!(!F||F==="visible")}; KVz=function(F){var J=eN3();J&&document.addEventListener(J,F,!1)}; p0_=function(F){var J=eN3();J&&document.removeEventListener(J,F,!1)}; eN3=function(){if(document.visibilityState)var F="visibilitychange";else{if(!document[Kw+"VisibilityState"])return"";F=Kw+"visibilitychange"}return F}; gaC=function(F){g.R.call(this);var J=this;this.wD=F;this.EN=0;this.W=this.U=this.D=!1;this.Z=0;this.PN=this.wD.J();this.videoData=this.wD.getVideoData();this.T=g.eB(this.PN.experiments,"html5_delayed_retry_count");this.C=new g.ty(function(){J.wD.sV()},g.eB(this.PN.experiments,"html5_delayed_retry_delay_ms")); g.k(this,this.C)}; N9G=function(F,J,b){var I=F.videoData.U,u=F.videoData.Z;LC(F.wD.getVideoData())&&F.PN.S("html5_gapless_fallback_on_qoe_restart")&&fha(F.wD,"pe");if((J==="progressive.net.retryexhausted"||J==="fmt.unplayable"||J==="fmt.decode")&&!F.wD.ji.D&&I&&I.itag==="22")return F.wD.ji.D=!0,F.je("qoe.restart",{reason:"fmt.unplayable.22"}),F.wD.d_(),!0;var w=!1;if(F.videoData.isExternallyHostedPodcast){if(w=F.videoData.FH)b.mimeType=w.type,F.UQ("3pp",{url:w.url});b.ns="3pp";F.wD.Je(J,1,"VIDEO_UNAVAILABLE",dk((new E5(J, b,1)).details));return!0}var M=F.EN+3E4<(0,g.jR)()||F.C.isActive();if(F.PN.S("html5_empty_src")&&F.videoData.isAd()&&J==="fmt.unplayable"&&/Empty src/.test(""+b.msg))return b.origin="emptysrc",F.je("auth",b),!0;M||NS(F.wD.o6())||(b.nonfg="paused",M=!0,F.wD.pauseVideo());(J==="fmt.decode"||J==="fmt.unplayable")&&(u==null?0:U5(u)||xz(u))&&(TMG(F.PN.D,u.YQ),b.acfallexp=u.YQ,w=M=!0);!M&&F.T>0&&(F.C.start(),M=!0,b.delayed="1",--F.T);u=F.wD.Zv;!M&&((I==null?0:c4(I))||(I==null?0:O5(I)))&&(TMG(F.PN.D,I.YQ), w=M=!0,b.cfallexp=I.YQ);if(F.PN.S("html5_ssap_ignore_decode_error_for_next_video")&&g.oH(F.videoData)&&J==="fmt.unplayable"&&b.cid&&b.ccid&&NS(F.wD.o6())){if(b.cid!==b.ccid)return b.ignerr="1",F.je("ssap.transitionfailure",b),!0;F.je("ssap.transitionfailure",b);if(mdm(F.wD,J))return!0}if(!M)return yuJ(F,b);if(F.PN.S("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.oH(F.videoData)&&J==="fmt.unplayable"&&b.cid&&b.ccid&&b.cid!==b.ccid&&NS(F.wD.o6())&&(F.je("ssap.transitionfailure",b),mdm(F.wD, J)))return!0;M=!1;F.D?F.EN=(0,g.jR)():M=F.D=!0;var q=F.videoData;if(q.bR){q=q.bR.Qm();var v=Date.now()/1E3+1800;q=q<v}else q=!1;b.e=J;b.bkg=a6m();q&&(b.staleprog="1");F.je("qoe.restart",b);if(q&&i7G(F))return zN_(F),!0;if(!(!g.D$("philips")||J==="fmt.unplayable"&&u&&u.Gj||F.PN.C.cplatform==="GAME_CONSOLE"))try{window.close()}catch(a){}I&&c4(I)&&!F.PN.S("html5_allow_av1_retry_in_session")?(w=F.PN.D,w.Y=!0,LW(w),w=!0):u?M||(J=(J=i2(u.videoTrack)||u.videoTrack.U)?J.C:u.videoTrack.C,J.W+=1,u.policy.C? Q8(u.U.C,J,!0):cs(u.C,J,!0)):F.videoData.bR&&F.videoData.bR.TK();F.C.isActive()||F.wD.sV(w);return!0}; yuJ=function(F,J){if(F.videoData.Gj)return!1;F.PN.Kk+=1;if(F.PN.Kk<=10)return!1;J.exiled=""+F.PN.Kk;F.je("qoe.start15s",J);F.wD.publish("playbackstalledatstart");return!0}; i7G=function(F){return F.U?!0:F.PN.Tj==="yt"?F.videoData.Gj?F.videoData.T1<25:!F.videoData.T1:!1}; zN_=function(F){if(!F.U){F.U=!0;var J=F.wD.getPlayerState();J=J.isPaused()||J.isSuspended();F.wD.Cc();J&&!hw(F.videoData)||F.wD.publish("signatureexpired")}}; l6G=function(F,J){if((F=F.wD.Qa())&&(J.errorCode==="fmt.unplayable"||J.errorCode==="html5.invalidstate")){var b=F.rB();J.details.merr=b?b.toString():"0";J.details.mmsg=F.Aw()}}; f67=function(F){return F.errorCode==="net.badstatus"&&(F.severity===1||!!F.details.fmt_unav)}; WVY=function(F,J){return F.PN.S("html5_use_network_error_code_enums")&&J.details.rc===403||J.details.rc==="403"?(F=J.errorCode,F==="net.badstatus"||F==="manifest.net.retryexhausted"):!1}; Ea3=function(F,J){if(!WVY(F,J)&&!F.U)return!1;J.details.sts="20138";if(i7G(F))return jg(J.severity)&&(J=Object.assign({e:J.errorCode},J.details),J=new E5("qoe.restart",J)),F.je(J.errorCode,J.details),zN_(F),!0;(0,g.jR)()-F.PN.K7>6048E5&&ddo(F,"signature");return!1}; ddo=function(F,J){try{window.location.reload(),F.je("qoe.restart",{detail:"pr."+J})}catch(b){}}; joJ=function(F,J){J=J===void 0?"fmt.noneavailable":J;var b=F.PN.D;b.V=!1;LW(b);F.je("qoe.restart",{e:J,detail:"hdr"});F.wD.sV(!0)}; G1o=function(F,J,b,I,u,w){this.videoData=F;this.C=J;this.reason=b;this.U=I;this.token=u;this.videoId=w}; V3z=function(F,J,b){this.rD=F;this.DZ=J;this.wD=b;this.Y=this.W=this.C=this.Z=this.V=this.U=0;this.D=!1;this.N=g.eB(this.rD.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.T=new Map}; B9_=function(F,J,b){!F.rD.S("html5_tv_ignore_capable_constraint")&&g.jB(F.rD)&&(b=b.compose(P23(F,J)));return b}; T9m=function(F){if(F.wD.o6().isInline())return QE;var J;F.S("html5_exponential_memory_for_sticky")?J=Nn(F.rD.GU,"sticky-lifetime")<.5?"auto":Jt[rB()]:J=Jt[rB()];return g.HX("auto",J,!1,"s")}; SEm=function(F,J){var b,I=ru4(F,(b=J.C)==null?void 0:b.videoInfos);b=F.wD.getPlaybackRate();return b>1&&I?(F=EO7(F.rD.D,J.C.videoInfos,b),new Zo(0,F,!0,"o")):new Zo(0,0,!1,"o")}; ru4=function(F,J){return J&&g.jB(F.rD)?J.some(function(b){return b.video.fps>32}):!1}; so_=function(F,J){var b=F.wD.bU();F.S("html5_use_video_quality_cap_for_ustreamer_constraint")&&b&&b.EU>0&&Fh(J.videoData.zd)&&(F=b.EU,J.videoData.zd=new Zo(0,F,!1,"u"));return J.videoData.zd}; P23=function(F,J){if(g.jB(F.rD)&&g_(F.rD.D,mp.HEIGHT))var b=J.C.videoInfos[0].video.C;else{var I=!!J.C.C;var u;g.Pu(F.rD)&&(u=window.screen&&window.screen.width?new g.gl(window.screen.width,window.screen.height):null);u||(u=F.rD.qa?F.rD.qa.clone():F.DZ.lk());(x6||xi||I)&&u.scale(g.ow());I=u;Fc(J.videoData)||hw(J.videoData);J=J.C.videoInfos;if(J.length){u=g.eB(F.rD.experiments,"html5_override_oversend_fraction")||.85;var w=J[0].video;w.projectionType!=="MESH"&&w.projectionType!=="EQUIRECTANGULAR"&& w.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||GB||(u=.45);F=g.eB(F.rD.experiments,"html5_viewport_undersend_maximum");for(w=0;w<J.length;w++){b=J[w];var M=b.video;if(I===null||M.width*u<I.width&&M.height*u<I.height){F&&w&&M.width<I.width*F&&M.height<I.height*F&&(b=J[w-1]);break}}I=b.video;b=new Zo(0,b.itag==="93"?g.CF[$z(I.width,I.height)]:I.C,!1,"r")}else b=QE;b=b.C}b&&(b=Math.max(b,360));return new Zo(0,b,!1,"r")}; YEz=function(F,J){var b;a:if((b=J.C)&&b.videoInfos.length){for(var I=g.N(b.videoInfos),u=I.next();!u.done;u=I.next()){u=u.value;var w=void 0;if((w=u.U)==null?0:w.smooth){b=u.video.C;break a}}b=b.videoInfos[0].video.C}else b=0;Nio()&&!g.jB(F.rD)&&O5(J.C.videoInfos[0])&&(b=Math.min(b,g.CF.large));I=g.eB(F.rD.experiments,"html5_chipset_soft_cap");I>0&&(b=Math.min(b,I));if(I=g.eB(F.rD.experiments,"html5_max_vertical_resolution")){F=4320;for(u=0;u<J.C.videoInfos.length;u++)w=J.C.videoInfos[u],w.video.height> I&&(F=Math.min(F,w.video.C));if(F<4320){for(u=I=0;u<J.C.videoInfos.length;u++)w=J.C.videoInfos[u].video.C,w<F&&(I=Math.max(I,w));I&&(b=Math.min(I,b))}}return new Zo(0,b,!1,"o")}; C2a=function(F,J){var b=4320;!F.rD.U||g.Bu(F.rD)||F.rD.S("hls_for_vod")||F.rD.S("mweb_remove_360p_cap")||(b=g.CF.medium);var I=g.eB(F.rD.experiments,"html5_default_quality_cap");I&&J.C.C&&(F.rD.S("html5_always_apply_default_quality_cap")||!J.videoData.iq&&!J.videoData.Ke)&&(b=Math.min(b,I));I=g.eB(F.rD.experiments,"html5_random_playback_cap");var u=/[a-h]$/;I&&u.test(J.videoData.clientPlaybackNonce)&&(b=Math.min(b,I));if(u=I=g.eB(F.rD.experiments,"html5_hfr_quality_cap"))a:{u=J.C;if(u.C){u=g.N(u.videoInfos); for(var w=u.next();!w.done;w=u.next())if(w.value.video.fps>32){u=!0;break a}}u=!1}u&&(b=Math.min(b,I));(I=g.eB(F.rD.experiments,"html5_live_quality_cap"))&&J.videoData.isLivePlayback&&(b=Math.min(b,I));b=$dC(F,J,b);F=g.eB(F.rD.experiments,"html5_byterate_soft_cap");return new Zo(0,b===4320?0:b,!1,"d",F)}; X03=function(F){var J,b,I,u;return g.S(function(w){switch(w.C){case 1:return F.C.C&&typeof((J=navigator.mediaCapabilities)==null?void 0:J.decodingInfo)==="function"?g.T(w,Promise.resolve(),2):w.return(Promise.resolve());case 2:b=g.N(F.C.videoInfos),I=b.next();case 3:if(I.done){w.gD(0);break}u=I.value;return g.T(w,gya(u),4);case 4:I=b.next(),w.gD(3)}})}; RN_=function(F,J){if(!J.videoData.U||F.S("html5_disable_performance_downgrade"))return!1;Date.now()-F.V>6E4&&(F.U=0);F.U++;F.V=Date.now();if(F.U!==4)return!1;Qov(F,J.videoData.U);return!0}; k1J=function(F,J,b,I){if(!J||!b||!J.videoData.U)return!1;var u=g.eB(F.rD.experiments,"html5_df_downgrade_thresh"),w=F.S("html5_log_media_perf_info");if(!((0,g.jR)()-F.Z<5E3?0:w||u>0))return!1;var M=((0,g.jR)()-F.Z)/1E3;F.Z=(0,g.jR)();b=b.getVideoPlaybackQuality();if(!b)return!1;var q=b.droppedVideoFrames-F.W,v=b.totalVideoFrames-F.Y;F.W=b.droppedVideoFrames;F.Y=b.totalVideoFrames;var a=b.displayCompositedVideoFrames===0?0:b.displayCompositedVideoFrames||-1;w&&F.rD.hJ()&&F.wD.UQ("ddf",{dr:b.droppedVideoFrames, de:b.totalVideoFrames,comp:a});if(I)return F.C=0,!1;if((v-q)/M>F.N||!u||g.jB(F.rD))return!1;F.C=(v>60?q/v:0)>u?F.C+1:0;if(F.C!==3)return!1;Qov(F,J.videoData.U);F.wD.UQ("dfd",Object.assign({dr:b.droppedVideoFrames,de:b.totalVideoFrames},Ddo()));return!0}; Qov=function(F,J){var b=J.YQ,I=J.video.fps,u=J.video.C-1,w=F.T;J=""+b+(I>49?"p60":I>32?"p48":"");b=ED(b,I,w);u>0&&(b=Math.min(b,u));if(!lm.has(J)&&$T().includes(J)){var M=b;b=sr();+b[J]>0&&(M=Math.min(+b[J],M));b[J]!==M&&(b[J]=M,g.rm("yt-player-performance-cap",b,2592E3))}else if(lm.has(J)||w==null){a:{M=M===void 0?!0:M;I=$T().slice();if(M){if(I.includes(J))break a;I.push(J)}else{if(!I.includes(J))break a;I.splice(I.indexOf(J),1)}g.rm("yt-player-performance-cap-active-set",I,2592E3)}dd.set(J,b)}else lm.add(J), w==null||w.set(J,b);F.wD.KL()}; fj=function(F,J){if(!J.C.C)return F.D?new Zo(0,360,!1,"b"):QE;for(var b=!1,I=!1,u=g.N(J.C.videoInfos),w=u.next();!w.done;w=u.next())c4(w.value)?b=!0:I=!0;b=b&&I;I=0;u=g.eB(F.rD.experiments,"html5_performance_cap_floor");u=F.rD.U?240:u;J=g.N(J.C.videoInfos);for(w=J.next();!w.done;w=J.next()){var M=w.value;if(!b||!c4(M))if(w=ED(M.YQ,M.video.fps,F.T),M=M.video.C,Math.max(w,u)>=M){I=M;break}}return new Zo(0,I,!1,"b")}; O7a=function(F,J){var b=F.wD.o6();return b.isInline()&&!J.ez?new Zo(0,480,!1,"v"):b.isBackground()&&dP()/1E3>60&&!g.jB(F.rD)?new Zo(0,360,!1,"v"):QE}; oa3=function(F,J,b){if(F.rD.experiments.pW("html5_disable_client_autonav_cap_for_onesie")&&J.fetchType==="onesie"||g.jB(F.rD)&&(rB(-1)>=1080||J.osid))return QE;var I=g.eB(F.rD.experiments,"html5_autonav_quality_cap"),u=g.eB(F.rD.experiments,"html5_autonav_cap_idle_secs");return I&&J.isAutonav&&dP()/1E3>u?(b&&(I=$dC(F,b,I)),new Zo(0,I,!1,"e")):QE}; $dC=function(F,J,b){if(F.S("html5_optimality_defaults_chooses_next_higher")&&b)for(F=J.C.videoInfos,J=1;J<F.length;J++)if(F[J].video.C<b)return F[J-1].video.C;return b}; hN3=function(F,J){F.S("html5_log_media_perf_info")&&(F.wD.UQ("perfdb",Ddo()),F.wD.UQ("sessionperfdb",Object.fromEntries(dd.entries())),F.wD.UQ("playbackperfdb",Object.fromEntries(F.T.entries())),F.wD.UQ("hwc",{nch:navigator.hardwareConcurrency},!0),J&&F.wD.UQ("mcdb",{itags:J.C.videoInfos.filter(function(b){var I;return((I=b.U)==null?void 0:I.smooth)===!1}).map(function(b){return b.itag}).join("-")}))}; Ddo=function(){return ND(sr(),function(F){return""+F})}; Wg=function(F){g.R.call(this);var J=this;this.provider=F;this.C=-1;this.D=!1;this.U=-1;this.playerState=new g.FC;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.Z=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.ty(this.send,6E4,this);this.T=!1;this.jsErrorCount=0;this.Po={Qh:function(){J.Qh()}}; this.Qh=function(){J.jsErrorCount++}; g.k(this,this.delay);window.addEventListener("error",this.Qh);window.addEventListener("unhandledrejection",this.Qh)}; cuk=function(F){F.C>=0||(F.provider.wD.getVisibilityState()===3?F.D=!0:(F.C=g.dr(F.provider),F.delay.start()))}; UdG=function(F){if(!(F.U<0)){var J=g.dr(F.provider),b=J-F.Z;F.Z=J;F.playerState.state===8?F.playTimeSecs+=b:F.playerState.isBuffering()&&!g.x(F.playerState,16)&&(F.rebufferTimeSecs+=b)}}; xd7=function(F){var J;switch((J=F.rD.playerCanaryStage)==null?void 0:J.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"}}; naz=function(F){return window.PressureObserver&&new window.PressureObserver(F)}; t3G=function(F){F=F===void 0?naz:F;g.R.call(this);var J=this;try{this.T=F(function(I){J.U=I.at(-1)}); var b;this.Z=(b=this.T)==null?void 0:b.observe("cpu",{sampleInterval:2E3}).catch(function(I){I instanceof DOMException&&(J.C=I)})}catch(I){I instanceof DOMException&&(this.C=I)}}; Z7z=function(F){var J={},b=window.h5vcc;J.hwConcurrency=navigator.hardwareConcurrency;F.C&&(J.cpe=F.C.message);F.U&&(J.cpt=F.U.time,J.cps=F.U.state);if(b==null?0:b.cVal)J.cb2s=b.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),J.cb5s=b.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),J.cb30s=b.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return J}; H7z=function(F){var J;g.S(function(b){switch(b.C){case 1:return g.lk(b,2),g.T(b,F.Z,4);case 4:g.Wa(b,3);break;case 2:g.dY(b);case 3:(J=F.T)==null||J.disconnect(),g.N4(b)}})}; Fy7=function(F,J){J?LV7.test(F):(F=g.bi(F),Object.keys(F).includes("cpn"))}; bSo=function(F,J,b,I,u,w,M){var q={format:"RAW"},v={};if(w$(F)&&Mk()){if(M){var a;((a=Jf_.uaChPolyfill)==null?void 0:a.state.type)!==2?M=null:(M=Jf_.uaChPolyfill.state.data.values,M={"Synth-Sec-CH-UA-Arch":M.architecture,"Synth-Sec-CH-UA-Model":M.model,"Synth-Sec-CH-UA-Platform":M.platform,"Synth-Sec-CH-UA-Platform-Version":M.platformVersion,"Synth-Sec-CH-UA-Full-Version":M.uaFullVersion});v=Object.assign(v,M);q.withCredentials=!0}(M=g.cT("EOM_VISITOR_DATA"))?v["X-Goog-EOM-Visitor-Id"]=M:I?v["X-Goog-Visitor-Id"]= I:g.cT("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=g.cT("VISITOR_DATA"));b&&(v["X-Goog-PageId"]=b);(I=J.Gj)&&!cu(J)&&(v["X-Goog-AuthUser"]=I);u&&(v.Authorization="Bearer "+u);J.S("enable_datasync_id_header_in_web_vss_pings")&&J.Uk&&J.datasyncId&&(v["X-YouTube-DataSync-Id"]=J.datasyncId);M||v["X-Goog-Visitor-Id"]||u||b||I?q.withCredentials=!0:J.S("html5_send_cpn_with_options")&&LV7.test(F)&&(q.withCredentials=!0)}Object.keys(v).length>0&&(q.headers=v);w&&(q.onFinish=w);return Object.keys(q).length>1? q:null}; IJz=function(F,J,b,I,u,w,M,q){Mk()&&b.token&&(F=IR(F,{ctt:b.token,cttype:b.Ix,mdx_environment:b.mdxEnvironment}));I.S("net_pings_low_priority")&&(J||(J={}),J.priority="low");w||q&&I.S("nwl_skip_retry")?(J==null?J={}:Fy7(F,I.S("html5_assert_cpn_with_regex")),M?xP().sendAndWrite(F,J):xP().sendThenWrite(F,J,q)):J?(Fy7(F,I.S("html5_assert_cpn_with_regex")),I.S("net_pings_use_fetch")?qYo(F,J):g.E6(F,J)):g.Xp(F,u)}; uda=function(F){for(var J=[],b=0;b<F;b++){for(var I={},u=Math.floor(Math.random()*9*1E8)+1E8,w="",M=0;M<9;M++)w+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];I.videoDecoderName=w;I.elapsedTimeMs=u;J.push(I)}return J}; wv7=function(F){return window.Profiler&&new window.Profiler(F)}; MSv=function(F){/[^a-zA-Z0-9;.!_-]/.test(F)&&(F=F.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return F}; Ei=function(F,J,b){b=b===void 0?wv7:b;g.R.call(this);this.sampleInterval=F;this.maxBufferSize=J;this.D=b;this.encoder=new wN;this.C=[];this.T=0;Afo(this)}; Afo=function(F){var J=F.sampleInterval,b=F.maxBufferSize;if(J>0&&b>0&&!F.U&&F.T<1E7)try{F.Z=F.D({sampleInterval:J,maxBufferSize:b});var I;(I=F.Z)==null||I.addEventListener("samplebufferfull",function(){return g.S(function(u){if(u.C==1)return g.T(u,F.stop(),2);Afo(F);g.N4(u)})})}catch(u){F.U=MSv(u.message)}}; jA=function(F,J){var b,I;return!!((b=window.h5vcc)==null?0:(I=b.settings)==null?0:I.set(F,J))}; vbJ=function(){var F,J,b,I=(F=window.h5vcc)==null?void 0:(J=F.settings)==null?void 0:(b=J.getPersistentSettingAsString)==null?void 0:b.call(J,"cpu_usage_tracker_intervals");if(I!=null){var u;F=(u=JSON.parse(I))!=null?u:[];u=F.filter(function(a){return a.type==="total"}).map(function(a){return a.seconds}); J=g.N(q_C);for(b=J.next();!b.done;b=J.next())b=b.value,u.indexOf(b)===-1&&F.push({type:"total",seconds:b});var w,M;(w=window.h5vcc)==null||(M=w.settings)==null||M.set("cpu_usage_tracker_intervals_enabled",1);var q,v;(q=window.h5vcc)==null||(v=q.settings)==null||v.set("cpu_usage_tracker_intervals",JSON.stringify(F))}}; aJm=function(){var F=window.H5vccPlatformService,J="";if(F&&F.has("dev.cobalt.coat.clientloginfo")&&(F=F.open("dev.cobalt.coat.clientloginfo",function(){}))){var b=F.send(new ArrayBuffer(0)); b&&(J=String.fromCharCode.apply(String,g.W(new Uint8Array(b))));F.close()}return J}; g.Pg=function(F,J){g.R.call(this);var b=this;this.provider=F;this.logger=new g.Hl("qoe");this.C={};this.sequenceNumber=1;this.W=NaN;this.r0="N";this.N=this.bN=this.aq=this.Om=this.D=0;this.NW=this.qf=this.V=this.zj="";this.T1=this.dD=NaN;this.If=0;this.Se=-1;this.MI=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.cN=this.isEmbargoed=this.WN=this.isOffline=this.isBuffering=!1;this.M0=[];this.eE=null;this.bR=this.T=this.nW=this.Y=!1;this.U=-1;this.Jz=!1;this.y6=new g.ty(this.sI_,750,this);this.Tj= this.adCpn=this.Gj=this.contentCpn="";this.adFormat=void 0;this.xo=0;this.Ly=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.g9=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Um=!1;this.Kk=NaN;this.fW=0;this.Q2=!1;this.kQ=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.xm=!1;this.Po={pZ:function(u){b.pZ(u)}, S1_:function(){return b.Z}, Vd:function(){return b.contentCpn}, XQR:function(){return b.Gj}, reportStats:function(){b.reportStats()}, wQD:function(){return b.C.cat}, U3:function(u){return b.C[u]}, UbG:function(){return b.kQ}}; var I=g.eB(this.provider.rD.experiments,"html5_qoe_proto_mock_length");I&&!G$.length&&(G$=uda(I));g.k(this,this.y6);try{navigator.getBattery().then(function(u){b.eE=u})}catch(u){}g.VT(this,0,"vps",["N"]); F.rD.hJ()&&(this.fW=(0,g.jR)(),this.Kk=g.g$(function(){var u=(0,g.jR)(),w=u-b.fW;w>500&&b.UQ("vmlock",{diff:w.toFixed()});b.fW=u},250)); F.wD.IH()&&J&&(this.kQ=J-Math.round(g.dr(F)*1E3));this.provider.videoData.iq&&(this.remoteControlMode=eH7[this.provider.videoData.iq]||0);this.provider.videoData.I6&&(J=$CJ(this.provider.videoData.I6),J==null?0:J.length)&&(this.remoteConnectedDevices=J);if(F.rD.hJ()||F.S("html5_log_cpu_info"))this.oI=new t3G,g.k(this,this.oI);J=g.eB(F.rD.experiments,"html5_js_self_profiler_sample_interval_ms");F=g.eB(F.rD.experiments,"html5_js_self_profiler_max_samples");J>0&&F>0&&(this.KW=new Ei(J,F),g.k(this,this.KW))}; g.VT=function(F,J,b,I){var u=F.C[b];u||(u=[],F.C[b]=u);u.push(J.toFixed(3)+":"+I.join(":"))}; KyY=function(F,J){var b=F.adCpn||F.provider.videoData.clientPlaybackNonce,I=F.provider.getCurrentTime(b);g.VT(F,J,"cmt",[I.toFixed(3)]);I=F.provider.Fb(b);if(F.Z&&I*1E3>F.Z.Tm+100&&F.Z){var u=F.Z;b=u.isAd;I=I*1E3-u.Tm;F.DC=J*1E3-u.idW-I-u.UkD;u=(0,g.jR)()-I;J=F.DC;I=F.provider.videoData;var w=I.isAd();if(b||w){w=(b?"ad":"video")+"_to_"+(w?"ad":"video");var M={};I.W&&(M.cttAuthInfo={token:I.W,videoId:I.videoId});M.startTime=u-J;Rr(w,M);g.Qk({targetVideoId:I.videoId,targetCpn:I.clientPlaybackNonce}, w);XH("pbs",u,w)}else u=F.provider.wD.Iu(),u.W!==I.clientPlaybackNonce?(u.D=I.clientPlaybackNonce,u.U=J):I.yM()||g.rQ(new g.hC("CSI timing logged before gllat",{cpn:I.clientPlaybackNonce}));F.UQ("gllat",{l:F.DC.toFixed(),prev_ad:+b});delete F.Z}}; Bg=function(F,J){J=J===void 0?NaN:J;J=J>=0?J:g.dr(F.provider);var b=F.provider.wD.Jt(),I=b.TH-(F.dD||0);I>0&&g.VT(F,J,"bwm",[I,(b.Oi-(F.T1||0)).toFixed(3)]);isNaN(F.dD)&&b.TH&&F.isOffline&&F.pZ(!1);F.dD=b.TH;F.T1=b.Oi;isNaN(b.bandwidthEstimate)||g.VT(F,J,"bwe",[b.bandwidthEstimate.toFixed(0)]);F.provider.rD.hJ()&&Object.keys(b.C).length!==0&&F.UQ("bwinfo",b.C);if(F.provider.rD.hJ()||F.provider.rD.S("html5_log_meminfo"))I=S9_(),Object.values(I).some(function(w){return w!==void 0})&&F.UQ("meminfo", I); if(F.provider.rD.hJ()||F.provider.rD.S("html5_log_cpu_info")){var u;(I=(u=F.oI)==null?void 0:Z7z(u))&&Object.values(I).some(function(w){return w!=null})&&F.UQ("cpuinfo",I)}F.KW&&F.UQ("jsprof",F.KW.flush()); F.eE&&g.VT(F,J,"bat",[F.eE.level,F.eE.charging?"1":"0"]);u=F.provider.wD.getVisibilityState();F.Se!==u&&(g.VT(F,J,"vis",[u]),F.Se=u);KyY(F,J);(u=pv4(F.provider))&&u!==F.If&&(g.VT(F,J,"conn",[u]),F.If=u);gbz(F,J,b)}; gbz=function(F,J,b){if(!isNaN(b.O8)){var I=b.O8;b.U<I&&(I=b.U);g.VT(F,J,"bh",[I.toFixed(3)])}}; mUm=function(F,J,b){g.LH(F.provider.rD,g.ks(F.provider.videoData)).then(function(I){var u=!1;if(J.includes("&dt=")||J.includes("&cotn=")){if(F.provider.rD.S("kevlar_woffle")||F.provider.rD.S("qoe_nwl_downloads"))u=!0}else F.provider.rD.S("qoe_with_networkless")&&(u=!0);var w=F.provider.rD.S("qoe_send_and_write"),M=F.provider.rD;I=bSo(J,M,F.provider.rD.pageId,F.provider.rD.sendVisitorIdHeader?F.provider.videoData.visitorData:void 0,I);M.S("html5_simplify_pings")&&(I=I||{});I?(I.method="POST",I.postBody= b,IJz(J,I,{token:F.provider.videoData.W,Ix:F.provider.videoData.kZ,mdxEnvironment:F.provider.videoData.mdxEnvironment},M,void 0,u,w&&F.WN)):u?(u=F.provider.rD.S("networkless_ajax"),M={method:"POST",postBody:b},w&&F.WN?xP().sendAndWrite(J,M):u?g.E6(J,{method:"POST",postBody:b}):xP().sendThenWrite(J,M)):(w=b,w=w===void 0?"":w,v6o(J,w)||g.Xp(J,void 0,void 0,void 0,w))})}; yf3=function(F){for(var J=0,b=g.N(Object.keys(F.C)),I=b.next();!I.done;I=b.next())I=I.value,J+=I.length+Number(Gi(F.C[I],function(u,w){return u+w.length},0)); J>96E3&&(new g.ty(F.reportStats,0,F)).start()}; iSJ=function(F){F.provider.videoData.Ly&&T$(F,"prefetch");F.provider.videoData.T1&&F.UQ("reload",{r:F.provider.videoData.reloadReason,ct:F.provider.videoData.T1});F.provider.videoData.nW&&T$(F,"monitor");F.provider.videoData.isLivePlayback&&T$(F,"live");UD&&T$(F,"streaming");F.provider.videoData.iq&&F.UQ("ctrl",{mode:F.provider.videoData.iq},!0);if(F.provider.videoData.I6){var J=F.provider.videoData.I6.replace(/,/g,"_");F.UQ("ytp",{type:J},!0)}F.provider.videoData.Zh&&(J=F.provider.videoData.Zh.replace(/,/g, "."),F.UQ("ytrexp",{ids:J},!0));var b=F.provider.videoData;J=F.provider.rD.S("enable_white_noise")||F.provider.rD.S("enable_webgl_noop");b=g.KY(b)||g.ji(b)||g.Ge(b)||g.VR(b);(J||b)&&(J=(0,g.rr)())&&(F.C.gpu=[J]);hw(F.provider.videoData)&&g.VT(F,g.dr(F.provider),"dt",["1"]);F.provider.rD.hJ()&&(J=(0,g.jR)()-F.provider.rD.K7,F.UQ("playerage",{secs:Math.pow(1.6,Math.round(Math.log(J/1E3)/Math.log(1.6))).toFixed()}));F.T=!0;F.W=g.g$(function(){F.reportStats()},1E4)}; NC3=function(F,J,b){var I=g.dr(F.provider);zHJ(F,I,J,0,b);Bg(F,I);yf3(F)}; zHJ=function(F,J,b,I,u){var w=F.provider.rD.C.cbrver;F.provider.rD.C.cbr==="Chrome"&&/^96[.]/.test(w)&&b==="net.badstatus"&&/rc\.500/.test(u)&&lJC(F,3);F.provider.rD.S("html5_use_ump")&&/b248180278/.test(u)&&lJC(F,4);w=F.provider.getCurrentTime(F.adCpn||F.provider.videoData.clientPlaybackNonce);I=I===1?"fatal":"";b=[b,I,w.toFixed(3)];I&&(u+=";a6s."+A3());u&&b.push(fJz(u));g.VT(F,J,"error",b);F.T=!0}; Wyz=function(F){F.U>=0||(F.provider.rD.Vk||F.provider.wD.getVisibilityState()!==3?F.U=g.dr(F.provider):F.Jz=!0)}; dUY=function(F,J,b,I){if(b!==F.r0){J<F.D||(F.r0==="PL"?F.playTimeSecs+=J-F.D:F.r0==="B"&&F.isBuffering&&(F.isBuffering=!1,F.rebufferTimeSecs+=J-F.Om,!F.cN&&F.rebufferTimeSecs>=10&&F.playTimeSecs<=180&&(F.C.qoealert=["1"],F.cN=!0)),b!=="B"||F.r0!=="PL"&&F.r0!=="PB"||(F.isBuffering=!0),F.D=J);F.r0==="PL"&&(b==="B"||b==="S")||F.provider.rD.hJ()?Bg(F,J):(F.Um||b!=="PL"||(F.Um=!0,gbz(F,J,F.provider.wD.Jt())),KyY(F,J));b==="PL"&&g.Z_(F.y6);var u=[b];b==="S"&&I&&u.push("ss."+I);g.VT(F,J,"vps",u);F.r0=b; F.Om=J;F.D=J;F.T=!0}}; T$=function(F,J){var b=F.C.cat||[];b.push(J);F.C.cat=b}; SA=function(F,J,b,I,u,w){var M=g.dr(F.provider);b!==1&&b!==3&&b!==5||g.VT(F,M,"vps",[F.r0]);var q=F.C.xvt||[];q.push("t."+M.toFixed(3)+";m."+w.toFixed(3)+";g."+J+";tt."+b+";np.0;c."+I+";d."+u);F.C.xvt=q}; lJC=function(F,J){if(!F.bR){var b=F.C.fcnz;b||(b=[],F.C.fcnz=b);b.push(String(J));F.bR=!0}}; fJz=function(F){/[^a-zA-Z0-9;.!_-]/.test(F)&&(F=F.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return F}; EbC=function(F){this.provider=F;this.V=!1;this.C=0;this.Z=-1;this.y5=NaN;this.T=0;this.segments=[];this.W=this.D=0;this.previouslyEnded=!1;this.N=this.provider.wD.getVolume();this.Y=this.provider.wD.isMuted()?1:0;this.U=si(this.provider)}; YU=function(F){F.U.startTime=F.T;F.U.endTime=F.C;var J=!1;F.segments.length&&g.ck(F.segments).isEmpty()?(F.segments[F.segments.length-1].previouslyEnded&&(F.U.previouslyEnded=!0),F.segments[F.segments.length-1]=F.U,J=!0):F.segments.length&&F.U.isEmpty()||(F.segments.push(F.U),J=!0);J?F.U.endTime===0&&(F.previouslyEnded=!1):F.U.previouslyEnded&&(F.previouslyEnded=!0);F.D+=F.C-F.T;F.U=si(F.provider);F.U.previouslyEnded=F.previouslyEnded;F.previouslyEnded=!1;F.T=F.C}; G6C=function(F){j7z(F);F.W=g.g$(function(){F.update()},100); F.y5=g.dr(F.provider);F.U=si(F.provider)}; j7z=function(F){g.ii(F.W);F.W=NaN}; VS7=function(F,J,b){b-=F.y5;return J===F.C&&b>.5}; Pzo=function(F,J,b,I){this.rD=J;this.NW=b;this.segments=[];this.experimentIds=[];this.KW=this.Om=this.isFinal=this.delayThresholdMet=this.Um=this.Se=this.autoplay=this.autonav=!1;this.If="yt";this.W=[];this.V=this.N=null;this.sendVisitorIdHeader=this.Jz=!1;this.Y=this.pageId="";this.D=b==="watchtime";this.T=b==="playback";this.Gj=b==="atr";this.Vk=b==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Gj?"/api/stats/"+b:"//"+J.Dc+"/api/stats/"+b;I&&(this.Om=I.fs,I.rtn&&(this.V=I.rtn),this.D?(this.playerState= I.state,I.rti>0&&(this.N=I.rti)):(this.zU=I.mos,this.n7=I.volume,I.at&&(this.adType=I.at)),I.autonav&&(this.autonav=I.autonav),I.inview!=null&&(this.MI=I.inview),I.size&&(this.T1=I.size),I.playerwidth&&(this.playerWidth=I.playerwidth),I.playerheight&&(this.playerHeight=I.playerheight));this.g9=g.To(J.C);this.Y=xj(J.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Y==="all"||this.Y==="once")this.Q2=g.To(J.NW);this.GU=J.oI;this.experimentIds=l07(J.experiments);this.zj=J.Q2;this.If=J.Tj;this.region= J.region;this.userAge=J.userAge;this.nW=J.MJ;this.M0=dP();this.sendVisitorIdHeader=J.sendVisitorIdHeader;this.kQ=J.S("vss_pings_using_networkless")||J.S("kevlar_woffle");this.K7=J.S("vss_final_ping_send_and_write");this.WN=J.S("vss_use_send_and_write");this.pageId=J.pageId;this.xH=J.S("vss_playback_use_send_and_write");J.livingRoomAppMode&&(this.livingRoomAppMode=J.livingRoomAppMode);this.Uz=J.Z&&J.S("embeds_append_synth_ch_headers");g.dN(J)&&(this.qf=J.kQ);g.q1(g.S8(J))&&this.W.push(1);this.accessToken= g.ks(F);F.Ga[this.NW]?this.Z=F.Ga[this.NW]:F.Ga.playback&&(this.Z=F.Ga.playback);this.adFormat=F.adFormat;this.adQueryId=F.adQueryId;this.autoplay=Dh(F);this.T&&(this.Se=(F.S("html5_enable_log_server_autoplay")||F.S("enable_cleanup_masthead_autoplay_hack_fix"))&&F.dK&&$s(F)==="adunit"?!0:!1);this.autonav=F.isAutonav||this.autonav;this.contentVideoId=QR(F);this.clientPlaybackNonce=F.clientPlaybackNonce;this.Um=F.T0;F.W&&(this.Tj=F.W,this.cN=F.kZ);F.mdxEnvironment&&(this.mdxEnvironment=F.mdxEnvironment); this.C=F.KW;this.xm=F.xm;F.U&&(this.Ly=F.U.itag,F.Z&&F.Z.itag!==this.Ly&&(this.bR=F.Z.itag));F.C&&Mv(F.C)&&(this.offlineDownloadUserChoice="1");this.eventLabel=$s(F);this.KW=F.GU?!1:F.Vk;this.xo=F.Wu;if(J=ze(F))this.jZ=J;this.YH=F.BE;this.partnerId=F.partnerId;this.eventId=F.eventId;this.playlistId=F.Bi||F.playlistId;this.Xz=F.Xz;this.iq=F.iq;this.I6=F.I6;this.fN=F.fN;this.subscribed=F.subscribed;this.videoId=F.videoId;this.videoMetadata=F.videoMetadata;this.visitorData=F.visitorData;this.osid=F.osid; this.TP=F.TP;this.referrer=F.referrer;this.Yf=F.Tt||F.Yf;this.oI=F.KT;this.PC=F.PC;this.userGenderAge=F.userGenderAge;this.bd=F.bd;this.embedsRct=F.embedsRct;this.embedsRctn=F.embedsRctn;g.dN(this.rD)&&F.mutedAutoplay&&(F.S("embeds_enable_full_length_inline_muted_autoplay")&&F.mutedAutoplayDurationMode===2&&F.limitedPlaybackDurationInSeconds===0&&F.endSeconds===0?this.W.push(7):this.W.push(2));F.isEmbedsShortsMode(new g.gl(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.W.push(3);g.HE(F)&& this.W.push(4);this.dD=F.AQ;F.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=F.compositeLiveIngestionOffsetToken)}; BCa=function(F,J){var b=F.sendVisitorIdHeader?F.visitorData:void 0;return g.LH(F.rD,F.accessToken).then(function(I){return bSo(F.uri,F.rD,F.pageId,b,I,J,F.Uz)})}; S_a=function(F,J){return function(){F.rD.S("html5_simplify_pings")?(F.C=F.fW,F.y6=J(),F.M0=0,F.send()):BCa(F).then(function(b){var I=TCY(F);I.cmt=I.len;I.lact="0";var u=J().toFixed(3);I.rt=Number(u).toString();I=g.Os(F.uri,I);F.rD.S("vss_through_gel_double")&&rfk(I);F.kQ?(b==null&&(b={}),F.WN?xP().sendAndWrite(I,b):xP().sendThenWrite(I,b)):b?g.E6(I,b):g.Xp(I)})}}; TCY=function(F){var J={ns:F.If,el:F.eventLabel,cpn:F.clientPlaybackNonce,ver:2,cmt:F.U(F.C),fmt:F.Ly,fs:F.Om?"1":"0",rt:F.U(F.y6),adformat:F.adFormat,content_v:F.contentVideoId,euri:F.GU,lact:F.M0,live:F.jZ,cl:(728418168).toString(),mos:F.zU,state:F.playerState,volume:F.n7};F.subscribed&&(J.subscribed="1");Object.assign(J,F.g9);F.Y==="all"?Object.assign(J,F.Q2):F.Y==="once"&&F.T&&Object.assign(J,F.Q2);F.autoplay&&(J.autoplay="1");F.Se&&(J.sautoplay="1");F.Um&&(J.dni="1");!F.D&&F.qf&&(J.epm=s7Y[F.qf]); F.isFinal&&(J["final"]="1");F.KW&&(J.splay="1");F.xm&&(J.delay=F.xm);F.zj&&(J.hl=F.zj);F.region&&(J.cr=F.region);F.userGenderAge&&(J.uga=F.userGenderAge);F.userAge!==void 0&&F.nW&&(J.uga=F.nW+F.userAge);F.fW!==void 0&&(J.len=F.U(F.fW));!F.D&&F.experimentIds.length>0&&(J.fexp=F.experimentIds.toString());F.V!==null&&(J.rtn=F.U(F.V));F.Yf&&(J.feature=F.Yf);F.iq&&(J.ctrl=F.iq);F.I6&&(J.ytr=F.I6);F.bR&&(J.afmt=F.bR);F.offlineDownloadUserChoice&&(J.ODUC=F.offlineDownloadUserChoice);F.Kk&&(J.lio=F.U(F.Kk)); F.D?(J.idpj=F.xo,J.ldpj=F.YH,F.delayThresholdMet&&(J.dtm="1"),F.N!=null&&(J.rti=F.U(F.N)),F.bd&&(J.ald=F.bd),F.compositeLiveIngestionOffsetToken&&(J.clio=F.compositeLiveIngestionOffsetToken)):F.adType!==void 0&&(J.at=F.adType);F.T1&&(F.T||F.D)&&(J.size=F.T1);F.T&&F.W.length&&(J.pbstyle=F.W.join(","));F.MI!=null&&(F.T||F.D)&&(J.inview=F.U(F.MI));F.D&&(J.volume=$U(F,g.EG(F.segments,function(I){return I.volume})),J.st=$U(F,g.EG(F.segments,function(I){return I.startTime})),J.et=$U(F,g.EG(F.segments,function(I){return I.endTime})), Bc(F.segments,function(I){return I.playbackRate!==1})&&(J.rate=$U(F,g.EG(F.segments,function(I){return I.playbackRate}))),Bc(F.segments,function(I){return I.C!=="-"})&&(J.als=g.EG(F.segments,function(I){return I.C}).join(",")),Bc(F.segments,function(I){return I.previouslyEnded})&&(J.pe=g.EG(F.segments,function(I){return""+ +I.previouslyEnded}).join(","))); J.muted=$U(F,g.EG(F.segments,function(I){return I.muted?1:0})); Bc(F.segments,function(I){return I.visibilityState!==0})&&(J.vis=$U(F,g.EG(F.segments,function(I){return I.visibilityState}))); Bc(F.segments,function(I){return I.connectionType!==0})&&(J.conn=$U(F,g.EG(F.segments,function(I){return I.connectionType}))); Bc(F.segments,function(I){return I.U!==0})&&(J.blo=$U(F,g.EG(F.segments,function(I){return I.U}))); Bc(F.segments,function(I){return!!I.T})&&(J.blo=g.EG(F.segments,function(I){return I.T}).join(",")); Bc(F.segments,function(I){return!!I.compositeLiveStatusToken})&&(J.cbs=g.EG(F.segments,function(I){return I.compositeLiveStatusToken}).join(",")); Bc(F.segments,function(I){return I.Z!=="-"})&&(J.cc=g.EG(F.segments,function(I){return I.Z}).join(",")); Bc(F.segments,function(I){return I.clipId!=="-"})&&(J.clipid=g.EG(F.segments,function(I){return I.clipId}).join(",")); if(Bc(F.segments,function(I){return!!I.audioId})){var b="au"; F.T&&(b="au_d");J[b]=g.EG(F.segments,function(I){return I.audioId}).join(",")}Mk()&&F.Tj&&(J.ctt=F.Tj,J.cttype=F.cN,J.mdx_environment=F.mdxEnvironment); F.Vk&&(J.etype=F.eE!==void 0?F.eE:0);F.oI&&(J.uoo=F.oI);F.livingRoomAppMode&&F.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(J.clram=Y_Y[F.livingRoomAppMode]||F.livingRoomAppMode);F.Z?$Uv(F,J):(J.docid=F.videoId,J.referrer=F.referrer,J.ei=F.eventId,J.of=F.TP,J.osid=F.osid,J.vm=F.videoMetadata,F.adQueryId&&(J.aqi=F.adQueryId),F.autonav&&(J.autonav="1"),F.playlistId&&(J.list=F.playlistId),F.fN&&(J.ssrt="1"),F.PC&&(J.upt=F.PC));F.T&&(F.embedsRct&&(J.rct=F.embedsRct),F.embedsRctn&&(J.rctn= F.embedsRctn),F.compositeLiveIngestionOffsetToken&&(J.clio=F.compositeLiveIngestionOffsetToken));F.dD&&(J.host_cpn=F.dD);return J}; $Uv=function(F,J){if(J&&F.Z){var b=new Set(["q","feature","mos"]),I=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),u=new Set(["aqi","autonav","list","ssrt","upt"]);F.Z.ns==="3pp"&&(J.ns="3pp");for(var w=g.N(Object.keys(F.Z)),M=w.next();!M.done;M=w.next())M=M.value,I.has(M)||b.has(M)||u.has(M)&&!F.Z[M]||(J[M]=F.Z[M])}}; $U=function(F,J){return g.EG(J,F.U).join(",")}; rfk=function(F){F.indexOf("watchtime")!==-1&&g.AY("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:F}})}; Cza=function(F,J){F.attestationResponse&&BCa(F).then(function(b){b=b||{};b.method="POST";b.postParams={atr:F.attestationResponse};F.kQ?F.WN?xP().sendAndWrite(J,b):xP().sendThenWrite(J,b):g.E6(J,b)})}; Cj=function(F){g.R.call(this);this.provider=F;this.W="paused";this.D=NaN;this.V=[10,10,10,40];this.N=this.Y=0;this.eE=this.kQ=this.Gj=this.Tj=this.T=!1;this.U=this.Z=NaN;this.C=new EbC(F)}; DUJ=function(F){if(!F.T){F.provider.videoData.Yn===16623&&g.rQ(Error("Playback for EmbedPage"));var J=XJ(F,"playback");a:{if(F.provider.rD.S("web_player_use_server_vss_schedule")){var b,I=(b=F.provider.videoData.getPlayerResponse())==null?void 0:b.playbackTracking,u=I==null?void 0:I.videostatsScheduledFlushWalltimeSeconds;I=I==null?void 0:I.videostatsDefaultFlushIntervalSeconds;if(u&&u.length>0&&I){b=[];var w=F.provider.videoData.Wu,M=F.provider.videoData.BE,q=-w;u=g.N(u);for(var v=u.next();!v.done;v= u.next())v=v.value,b.push(v-q),q=v;b.push(I+M-w);b.push(I);F.V=b;break a}}F.V=[10+F.provider.videoData.Wu,10,10,40+F.provider.videoData.BE-F.provider.videoData.Wu,40]}G6C(F.C);J.V=QT(F);F.U>0&&(J.C-=F.U);J.send();F.provider.videoData.Ac&&(J=F.provider.rD,I=F.provider.videoData,b={html5:"1",video_id:I.videoId,cpn:I.clientPlaybackNonce,ei:I.eventId,ptk:I.Ac,oid:I.En,ptchn:I.MH,pltype:I.S4,content_v:QR(I)},I.s8&&Object.assign(b,{m:I.s8}),J=g.Os(J.ME+"ptracking",b),Xvv(F,J));F.provider.videoData.xm|| (Q7C(F),RHJ(F),F.t6());F.T=!0;J=F.C;J.C=J.provider.wD.Fb();J.y5=g.dr(J.provider);!(J.T===0&&J.C<5)&&J.C-J.T>2&&(J.T=J.C);J.V=!0;F.provider.rD.S("html5_log_vss_details")&&F.provider.wD.UQ("vssinit",{})}}; QT=function(F,J){J=J===void 0?NaN:J;var b=g.dr(F.provider);J=isNaN(J)?b:J;J=Math.ceil(J);var I=F.V[F.Y];F.Y+1<F.V.length&&F.Y++;var u=J+I;F.D=g.pl(function(){if(!F.iR()){F.D=NaN;var w=k6m(F),M=OSm(F,w);M.N=u;var q=F.N>1E3;!(w.length>1)&&w[0].isEmpty()||q||(M.V=QT(F,u));M.send();F.N++}},(u-b)*1E3); return F.Z=u}; Rm=function(F){g.m1(F.D);F.D=NaN}; k6m=function(F){F.C.update();F=F.C;F.segments.length&&F.C===F.T||YU(F);var J=F.segments;F.segments=[];return J}; XJ=function(F,J){var b=obk(F.provider);Object.assign(b,{state:F.W});J=new Pzo(F.provider.videoData,F.provider.rD,J,b);J.C=F.provider.wD.Fb();b=F.provider.videoData.clientPlaybackNonce;J.C=F.provider.wD.pV(b);F.provider.videoData.isLivePlayback||(J.fW=F.provider.wD.getDuration(b));F.provider.videoData.C&&(b=F.provider.videoData.C.Ze(J.C))&&(J.Kk=b-J.C);J.y6=g.dr(F.provider);J.segments=[si(F.provider)];return J}; OSm=function(F,J){var b=XJ(F,"watchtime");hHo(F)&&(b.delayThresholdMet=!0,F.Gj=!0);if(F.U>0){for(var I=g.N(J),u=I.next();!u.done;u=I.next())u=u.value,u.startTime-=F.U,u.endTime-=F.U;b.C-=F.U}else b.C=F.C.Lt();b.segments=J;return b}; DW=function(F,J){var b=cfG(F,!isNaN(F.Z));J&&(F.Z=NaN);return b}; cfG=function(F,J){var b=OSm(F,k6m(F));!isNaN(F.Z)&&J&&(b.N=F.Z);return b}; hHo=function(F){var J;if(J=F.provider.videoData.isLoaded()&&F.provider.videoData.xm&&F.T&&!F.Gj)J=F.C,J=J.D+J.provider.wD.Fb()-J.T>=F.provider.videoData.xm;return!!J}; Q7C=function(F){F.provider.videoData.youtubeRemarketingUrl&&!F.kQ&&(Xvv(F,F.provider.videoData.youtubeRemarketingUrl),F.kQ=!0)}; RHJ=function(F){F.provider.videoData.googleRemarketingUrl&&!F.eE&&(Xvv(F,F.provider.videoData.googleRemarketingUrl),F.eE=!0)}; UU_=function(F){F.provider.rD.S("html5_log_vss_details")&&F.provider.wD.UQ("vssfi",{});if(!F.iR()&&F.T){F.W="paused";var J=DW(F);J.isFinal=!0;J.send();F.dispose()}}; xUz=function(F,J){if(!F.iR())if(g.x(J.state,2)||g.x(J.state,512)){if(F.W="paused",g.e1(J,2)||g.e1(J,512))g.e1(J,2)&&(F.C.previouslyEnded=!0),F.T&&(Rm(F),DW(F).send(),F.Z=NaN)}else if(g.x(J.state,8)){F.W="playing";var b=F.T&&isNaN(F.D)?QT(F):NaN;!isNaN(b)&&(aJ(J,64)<0||aJ(J,512)<0)&&(F=cfG(F,!1),F.V=b,F.send())}else F.W="paused"}; nbk=function(F,J,b){if(!F.Tj){b||(b=XJ(F,"atr"));b.attestationResponse=J;try{b.send()}catch(I){if(I.message!=="Unknown Error")throw I;}F.Tj=!0}}; Xvv=function(F,J){var b=F.provider.rD;g.LH(F.provider.rD,g.ks(F.provider.videoData)).then(function(I){var u=F.provider.rD.pageId,w=F.provider.rD.sendVisitorIdHeader?F.provider.videoData.visitorData:void 0,M=F.provider.rD.S("vss_pings_using_networkless")||F.provider.rD.S("kevlar_woffle"),q=F.provider.rD.S("allow_skip_networkless");I=bSo(J,b,u,w,I);IJz(J,I,{token:F.provider.videoData.W,Ix:F.provider.videoData.kZ,mdxEnvironment:F.provider.videoData.mdxEnvironment},b,void 0,M&&!q,!1,!0)})}; tSC=function(){this.endTime=this.startTime=-1;this.Z="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.T=void 0;this.volume=this.connectionType=0;this.muted=!1;this.C=this.clipId="-";this.previouslyEnded=!1}; kU=function(F,J,b){this.videoData=F;this.rD=J;this.wD=b;this.C=void 0}; g.dr=function(F){return ZS_(F)()}; ZS_=function(F){if(!F.C){var J=g.Ha(function(I){var u=(0,g.jR)();I&&u<=631152E6&&(F.wD.UQ("ytnerror",{issue:28799967,value:""+u}),u=(new Date).getTime()+2);return u},F.rD.S("html5_validate_yt_now")),b=J(); F.C=function(){return Math.round(J()-b)/1E3}; F.wD.oZ()}return F.C}; obk=function(F){var J=F.wD.w$()||{};J.fs=F.wD.tO();J.volume=F.wD.getVolume();J.muted=F.wD.isMuted()?1:0;J.mos=J.muted;J.clipid=F.wD.Pz();var b;J.playerheight=((b=F.wD.getPlayerSize())==null?void 0:b.height)||0;var I;J.playerwidth=((I=F.wD.getPlayerSize())==null?void 0:I.width)||0;F=F.videoData;b={};F.U&&(b.fmt=F.U.itag,F.Z&&(F.Se?F.Z.itag!==F.U.itag:F.Z.itag!=F.U.itag)&&(b.afmt=F.Z.itag));b.ei=F.eventId;b.list=F.playlistId;b.cpn=F.clientPlaybackNonce;F.videoId&&(b.v=F.videoId);F.T8&&(b.infringe=1); (F.GU?0:F.Vk)&&(b.splay=1);(I=ze(F))&&(b.live=I);F.dK&&(b.sautoplay=1);F.NJ&&(b.autoplay=1);F.Xz&&(b.sdetail=F.Xz);F.partnerId&&(b.partnerid=F.partnerId);F.osid&&(b.osid=F.osid);F.UK&&(b.cc=g.Pgk(F.UK));return Object.assign(J,b)}; pv4=function(F){var J=aIa();if(J)return HSG[J]||HSG.other;if(g.jB(F.rD)){F=navigator.userAgent;if(/[Ww]ireless[)]/.test(F))return 3;if(/[Ww]ired[)]/.test(F))return 30}return 0}; si=function(F){var J=new tSC,b;J.Z=((b=obk(F).cc)==null?void 0:b.toString())||"-";J.playbackRate=F.wD.getPlaybackRate();b=F.wD.getVisibilityState();b!==0&&(J.visibilityState=b);F.rD.cN&&(J.U=1);J.T=F.videoData.xx;J.compositeLiveStatusToken=F.videoData.compositeLiveStatusToken;b=F.wD.getAudioTrack();b.j3&&b.j3.id&&b.j3.id!=="und"&&(J.audioId=b.j3.id);J.connectionType=pv4(F);J.volume=F.wD.getVolume();J.muted=F.wD.isMuted();J.clipId=F.wD.Pz()||"-";J.C=F.videoData.pM||"-";return J}; g.Oi=function(F,J){g.R.call(this);var b=this;this.provider=F;this.Z=!1;this.T=new Map;this.r0=new g.FC;this.Po={JgQ:function(){return b.qoe}, wl_:function(){return b.C}, iNR:function(){return b.U}}; this.provider.videoData.o8()&&!this.provider.videoData.qh&&(this.C=new Cj(this.provider),this.C.U=this.provider.videoData.xo/1E3,g.k(this,this.C),this.qoe=new g.Pg(this.provider,J),g.k(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.UV=this.provider.videoData.clientPlaybackNonce)&&this.T.set(this.UV,this.C));if(F.rD.playerCanaryState==="canary"||F.rD.playerCanaryState==="holdback")this.U=new Wg(this.provider),g.k(this,this.U)}; LyJ=function(F){return!!F.C&&!!F.qoe}; om=function(F){F.U&&cuk(F.U);F.qoe&&Wyz(F.qoe)}; FQ_=function(F){if(F.qoe){F=F.qoe;for(var J=F.provider.videoData,b=F.provider.rD,I=g.N(b.fL),u=I.next();!u.done;u=I.next())T$(F,u.value);if(F.provider.S("html5_enable_qoe_cat_list"))for(I=g.N(J.oV),u=I.next();!u.done;u=I.next())T$(F,u.value);else J.fL&&T$(F,F.provider.videoData.fL);J.MW()&&(I=J.C,qb(J)&&T$(F,"manifestless"),I&&yy(I)&&T$(F,"live-segment-"+yy(I).toFixed(1)));bE(J)?T$(F,"sabr"):F.dM(ei(J));if(OW(J)||J.vV())J.vV()&&T$(F,"ssa"),T$(F,"lifa");J.gatewayExperimentGroup&&(I=J.gatewayExperimentGroup, I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?I="spkadtrt":I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(I="spkadctrl"),T$(F,I));b.Tj!=="yt"&&(F.C.len=[J.lengthSeconds.toFixed(2)]);J.cotn&&!hw(J)&&F.pZ(!0);b.hJ()&&(J=aJm())&&F.UQ("cblt",{m:J});if(b.S("html5_log_screen_diagonal")){b=F.UQ;var w;J=((w=window.H5vccScreen)==null?0:w.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;b.call(F,"cbltdiag",{v:J})}}}; JXo=function(F){if(F.provider.wD.IH()){if(F.Z)return;F.Z=!0}F.C&&DUJ(F.C);if(F.U){F=F.U;var J=g.dr(F.provider);F.C<0&&(F.C=J,F.delay.start());F.U=J;F.Z=J}}; bjY=function(F,J){F.C&&(F=F.C,J===58?F.C.update():F.T&&(Rm(F),DW(F).send(),F.Z=NaN))}; IWa=function(F,J){if(g.e1(J,1024)||g.e1(J,512)||g.e1(J,4)){if(F.U){var b=F.U;b.U>=0||(b.C=-1,b.delay.stop())}F.qoe&&(b=F.qoe,b.Y||(b.U=-1))}if(F.provider.videoData.enableServerStitchedDai&&F.UV){var I;(I=F.T.get(F.UV))==null||xUz(I,J)}else F.C&&xUz(F.C,J);if(F.qoe){I=F.qoe;b=J.state;var u=g.dr(I.provider),w=I.getPlayerState(b);dUY(I,u,w,b.seekSource||void 0);w=b.e6;g.x(b,128)&&w&&(w.BG=w.BG||"",zHJ(I,u,w.errorCode,w.Zu,w.BG));(g.x(b,2)||g.x(b,128))&&I.reportStats(u);b.isPlaying()&&!I.Y&&(I.U>=0&& (I.C.user_intent=[I.U.toString()]),I.Y=!0);yf3(I)}F.U&&(I=F.U,UdG(I),I.playerState=J.state,I.U>=0&&g.e1(J,16)&&I.seekCount++,J.state.isError()&&I.send());F.provider.wD.IH()&&(F.r0=J.state)}; uJY=function(F){if(F.provider.videoData.enableServerStitchedDai&&F.UV){var J;(J=F.T.get(F.UV))!=null&&YU(J.C)}else F.C&&YU(F.C.C)}; wgv=function(F){F.U&&F.U.send();if(F.qoe){var J=F.qoe;if(J.T){J.r0==="PL"&&(J.r0="N");var b=g.dr(J.provider);g.VT(J,b,"vps",[J.r0]);J.Y||(J.U>=0&&(J.C.user_intent=[J.U.toString()]),J.Y=!0);J.provider.rD.hJ()&&J.UQ("finalized",{});J.WN=!0;J.reportStats(b)}}if(F.provider.videoData.enableServerStitchedDai)for(J=g.N(F.T.values()),b=J.next();!b.done;b=J.next())UU_(b.value);else F.C&&UU_(F.C);F.dispose()}; MAv=function(F,J){F.C&&nbk(F.C,J)}; AXk=function(F){if(!F.C)return null;var J=XJ(F.C,"atr");return function(b){F.C&&nbk(F.C,b,J)}}; qik=function(F,J,b,I){b.adFormat=b.If;var u=J.wD;J=new Cj(new kU(b,J.rD,{getDuration:function(){return b.lengthSeconds}, getCurrentTime:function(){return u.getCurrentTime()}, Fb:function(){return u.Fb()}, pV:function(){return u.pV()}, IH:function(){return u.IH()}, Jt:function(){return u.Jt()}, getPlayerSize:function(){return u.getPlayerSize()}, getAudioTrack:function(){return b.getAudioTrack()}, getPlaybackRate:function(){return u.getPlaybackRate()}, mH:function(){return u.mH()}, getVisibilityState:function(){return u.getVisibilityState()}, Iu:function(){return u.Iu()}, w$:function(){return u.w$()}, getVolume:function(){return u.getVolume()}, isMuted:function(){return u.isMuted()}, tO:function(){return u.tO()}, Pz:function(){return u.Pz()}, getProximaLatencyPreference:function(){return u.getProximaLatencyPreference()}, oZ:function(){u.oZ()}, UQ:function(w,M){u.UQ(w,M)}, Kt:function(){return u.Kt()}})); J.U=I;g.k(F,J);return J}; vUa=function(){this.O8=0;this.T=this.Oi=this.TH=this.U=NaN;this.C={};this.bandwidthEstimate=NaN}; hX=function(F,J,b){g.R.call(this);var I=this;this.rD=F;this.wD=J;this.U=b;this.C=new Map;this.UV="";this.Po={b7:function(){return Array.from(I.C.keys())}}}; aWY=function(F,J){F.C.has(J)&&(wgv(F.C.get(J)),F.C.delete(J))}; era=function(){this.C=g.IV;this.array=[]}; pgG=function(F,J,b){var I=[];for(J=KQC(F,J);J<F.array.length;++J){var u=F.array[J];(u.end<=b||u.contains(b))&&I.push(u);if(u.start>b)break}return I}; gUY=function(F,J){var b=[];F=g.N(F.array);for(var I=F.next();!I.done&&!(I=I.value,I.contains(J)&&b.push(I),I.start>J);I=F.next());return b}; mS4=function(F){return F.array.slice(KQC(F,0x7ffffffffffff),F.array.length)}; KQC=function(F,J){F=qL(F.array,function(b){return J-b.start||1}); return F<0?-(F+1):F}; yXv=function(F,J){var b=NaN;F=g.N(F.array);for(var I=F.next();!I.done;I=F.next())if(I=I.value,I.contains(J)&&(isNaN(b)||I.end<b)&&(b=I.end),I.start>J&&(isNaN(b)||I.start<b)){b=I.start;break}return b}; ijG=function(F,J){F.array=F.array.filter(function(b){return!J.has(b)})}; g.cg=function(F,J,b,I,u){g.R.call(this);this.N=F;this.Gj=J;this.W=b;this.Tj=I;this.Z=u;this.T=NaN;this.V=this.Y=this.started=!1;this.U=[];this.eE=new g.ty(this.sync,250,this);g.k(this,this.eE);this.D=new g.ty(this.sync,0,this);g.k(this,this.D);this.C=new era}; zr7=function(F){F.started=!0;F.sync()}; Nr7=function(F,J){F.started&&(F.sync(),g.x(J.oldState,16)&&(J=yXv(F.C,Math.max(F.T-2E3,0)),!isNaN(J)&&J<0x7ffffffffffff&&F.D.start()))}; lW3=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=b[1];b[0]===1?F.Tj(g.u6(I.namespace),I):F.Tj(g.wq(I.namespace),I)}}; g.Ui=function(F){var J=this;this.wD=F;this.Po={r3N:function(){return J.wD}}}; xU=function(F){F.wD.dispose()}; fWv=function(F){this.rD=F;this.T=this.U=this.mediaTime=NaN;this.Z=this.C=!1;this.D=.001;g.jB(F)&&(this.D=.01)}; nj=function(F,J){return J>F.mediaTime+F.D&&J<F.mediaTime+5}; TJ_=function(F,J,b,I,u){if(I=I>1)F.Z=!0;if((u===void 0?0:u)||isNaN(F.U))F.U=J;if(F.C)J!==F.mediaTime&&(F.C=!1);else if(J>0&&F.mediaTime===J){u=1500;if(F.rD.S("html5_buffer_underrun_transition_fix")){u=g.eB(F.rD.experiments,"html5_min_playback_advance_for_steady_state_secs");var w=g.eB(F.rD.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");u=u>0&&w>0&&Math.abs(J-F.U)<u?w:1500}return b-F.T>(I||!F.Z?u:400)}F.mediaTime=J;F.T=b;return!1}; WQa=function(F,J){this.videoData=F;this.C=J}; dS3=function(F,J,b){return J.b_(b).then(function(){return r$(new WQa(J,J.T))},function(I){I instanceof Error&&g.rQ(I); var u=P4('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),w=Tj('audio/mp4; codecs="mp4a.40.2"'),M=u||w,q=J.isLivePlayback&&!g.HG(F.D,!0);I="fmt.noneavailable";q?I="html5.unsupportedlive":M||(I="html5.missingapi");M=q||!M?2:1;u={buildRej:"1",a:J.wk(),d:!!J.y6,drm:J.So(),f18:J.IP.indexOf("itag=18")>=0,c18:u};J.C&&(J.So()?(u.f142=!!J.C.C["142"],u.f149=!!J.C.C["149"],u.f279=!!J.C.C["279"]):(u.f133=!!J.C.C["133"],u.f140=!!J.C.C["140"],u.f242=!!J.C.C["242"]),u.cAAC=w,u.cAVC=Tj('video/mp4; codecs="avc1.42001E"'), u.cVP9=Tj('video/webm; codecs="vp9"'));J.D&&(u.drmsys=J.D.keySystem,w=0,J.D.C&&(w=Object.keys(J.D.C).length),u.drmst=w);return new E5(I,u,M)})}; tX=function(F){this.data=window.Float32Array?new Float32Array(F):Array(F);this.U=this.C=F-1}; EUo=function(F){return F.data[F.C]||0}; jm7=function(F){this.D=F;this.T=this.U=0;this.Z=new tX(50)}; Hg=function(F,J,b){g.uA.call(this);this.videoData=F;this.experiments=J;this.W=b;this.U=[];this.Z=0;this.T=!0;this.D=!1;this.V=0;b=new G$z;F.latencyClass==="ULTRALOW"&&(b.Z=!1);F.nW?b.U=3:g.dS(F)&&(b.U=2);F.latencyClass==="NORMAL"&&(b.W=!0);var I=g.eB(J,"html5_liveness_drift_proxima_override");if(ei(F)!==0&&I){b.C=I;var u;((u=F.C)==null?0:P1k(u))&&b.C--}bE(F)&&J.pW("html5_sabr_parse_live_metadata_playback_boundaries")&&(b.N=!0);if(g.D$("trident/")||g.D$("edge/"))u=g.eB(J,"html5_platform_minimum_readahead_seconds")|| 3,b.T=Math.max(b.T,u);g.eB(J,"html5_minimum_readahead_seconds")&&(b.T=g.eB(J,"html5_minimum_readahead_seconds"));g.eB(J,"html5_maximum_readahead_seconds")&&(b.Y=g.eB(J,"html5_maximum_readahead_seconds"));J.pW("html5_force_adaptive_readahead")&&(b.Z=!0);if(u=g.eB(J,"html5_liveness_drift_chunk_override"))b.C=u;vE(F)&&(b.C=(b.C+1)/5,F.latencyClass==="LOW"&&(b.C*=2));if(F.latencyClass==="ULTRALOW"||F.latencyClass==="LOW")b.D=g.eB(J,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,b.V=g.eB(J, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=b;this.Y=this.policy.U!==1;this.C=ZW(this,VAo(this,isNaN(F.liveChunkReadahead)?3:F.liveChunkReadahead,F))}; Pmz=function(F,J){if(J)return J=F.videoData,J=VAo(F,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J),ZW(F,J);if(F.U.length){if(Math.min.apply(null,F.U)>1)return ZW(F,F.C-1);if(F.policy.Z)return ZW(F,F.C+1)}return F.C}; Br7=function(F,J){if(!F.U.length)return!1;var b=F.C;F.C=Pmz(F,J===void 0?!1:J);if(J=b!==F.C)F.U=[],F.Z=0;return J}; Lj=function(F,J){return J>=F.z8()-Trm(F)}; rXG=function(F,J,b){J=Lj(F,J);b||J?J&&(F.T=!0):F.T=!1;F.Y=F.policy.U===2||F.policy.U===3&&F.T}; Si7=function(F,J){J=Lj(F,J);F.D!==J&&F.publish("livestatusshift",J);F.D=J}; Trm=function(F){var J=F.policy.C;F.D||(J=Math.max(J-1,0));return J*FI(F)}; VAo=function(F,J,b){b.nW&&J--;vE(b)&&(J=1);if(ei(b)!==0&&(F=g.eB(F.experiments,"html5_live_chunk_readahead_proxima_override"))){J=F;var I;((I=b.C)==null?0:P1k(I))&&J++}return J}; FI=function(F){return F.videoData.C?yy(F.videoData.C)||5:5}; ZW=function(F,J){J=Math.max(Math.max(1,Math.ceil(F.policy.T/FI(F))),J);return Math.min(Math.min(8,Math.floor(F.policy.Y/FI(F))),J)}; G$z=function(){this.T=0;this.Y=Infinity;this.Z=!0;this.C=2;this.U=1;this.W=!1;this.V=10;this.N=!1;this.D=1}; IX=function(F){g.R.call(this);this.wD=F;this.C=0;this.U=null;this.W=this.Z=0;this.T={};this.rD=this.wD.J();this.D=new g.ty(this.Va,1E3,this);this.bR=new JZ({delayMs:g.eB(this.rD.experiments,"html5_seek_timeout_delay_ms")});this.WN=new JZ({delayMs:g.eB(this.rD.experiments,"html5_long_rebuffer_threshold_ms")});this.cN=bt(this,"html5_seek_set_cmt");this.zj=bt(this,"html5_seek_jiggle_cmt");this.Jz=bt(this,"html5_seek_new_elem");this.Kk=bt(this,"html5_unreported_seek_reseek");this.Gj=bt(this,"html5_long_rebuffer_jiggle_cmt"); this.fW=bt(this,"html5_long_rebuffer_ssap_clip_not_match");this.kQ=new JZ({delayMs:2E4});this.KW=bt(this,"html5_seek_new_elem_shorts");this.nW=bt(this,"html5_seek_new_media_source_shorts_reuse");this.oI=bt(this,"html5_seek_new_media_element_shorts_reuse");this.dD=bt(this,"html5_reseek_after_time_jump");this.Y=bt(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Tj=bt(this,"html5_gapless_slow_seek");this.N=bt(this,"html5_gapless_slice_append_stuck");this.eE=bt(this,"html5_gapless_slow_start"); this.V=bt(this,"html5_ads_preroll_lock_timeout");this.xm=bt(this,"html5_ssap_ad_longrebuffer_new_element");this.Um=new JZ({delayMs:g.eB(this.rD.experiments,"html5_skip_slow_ad_delay_ms")||5E3,rE:!this.rD.S("html5_report_slow_ads_as_error")});this.Q2=new JZ({delayMs:g.eB(this.rD.experiments,"html5_skip_slow_ad_delay_ms")||5E3,rE:!this.rD.S("html5_skip_slow_buffering_ad")});this.Om=new JZ({delayMs:g.eB(this.rD.experiments,"html5_slow_start_timeout_delay_ms")});this.qf=bt(this,"html5_slow_start_no_media_source"); g.k(this,this.D)}; bt=function(F,J){var b=g.eB(F.rD.experiments,J+"_delay_ms");F=F.rD.S(J+"_cfl");return new JZ({delayMs:b,rE:F})}; smk=function(F,J){F.C=J}; ut=function(F,J,b,I,u,w,M,q){J.test(b)?(F.je(u,J,M),J.rE||w()):(J.cG&&J.U&&!J.Z?(b=(0,g.jR)(),I?J.C||(J.C=b):J.C=0,w=!I&&b-J.U>J.cG,b=J.C&&b-J.C>J.hC||w?J.Z=!0:!1):b=!1,b&&(q=Object.assign({},F.Cy(J),q),q.wn=M,q.we=u,q.wsuc=I,F.wD.UQ("workaroundReport",q),I&&(J.reset(),F.T[u]=!1)))}; JZ=function(F){var J=F===void 0?{}:F;F=J.delayMs===void 0?0:J.delayMs;var b=J.hC===void 0?1E3:J.hC;var I=J.cG===void 0?3E4:J.cG;J=J.rE===void 0?!1:J.rE;this.C=this.U=this.T=this.startTimestamp=0;this.Z=!1;this.D=Math.ceil(F/1E3);this.hC=b;this.cG=I;this.rE=J}; Xg7=function(F){g.R.call(this);var J=this;this.wD=F;this.W=this.C=this.Zv=this.mediaElement=this.playbackData=null;this.Z=0;this.D=this.Tj=this.T=null;this.eE=!1;this.Um=0;this.Y=!1;this.timestampOffset=0;this.V=!0;this.zj=0;this.Jz=this.Om=!1;this.N=0;this.nW=!1;this.Gj=0;this.rD=this.wD.J();this.videoData=this.wD.getVideoData();this.policy=new Yiz;this.kQ=new IX(this.wD);this.bR=this.dD=this.qf=this.U=NaN;this.fW=new g.ty(function(){$SG(J,!1)},2E3); this.Q2=new g.ty(function(){wo(J)}); this.KW=new g.ty(function(){J.eE=!0;Cm4(J,{})}); this.cN=NaN;this.WN=new g.ty(function(){var b=J.rD.GU;b.C+=1E4/36E5;b.C-b.T>1/6&&(DO4(b),b.T=b.C);J.WN.start()},1E4); g.k(this,this.kQ);g.k(this,this.fW);g.k(this,this.KW);g.k(this,this.Q2);g.k(this,this.WN)}; DS4=function(F,J){F.playbackData=J;F.videoData.isLivePlayback&&(F.W=new jm7(function(){a:{if(F.playbackData&&F.playbackData.C.C){if(qb(F.videoData)&&F.Zv){var b=F.Zv.zS.X3()||0;break a}if(F.videoData.C){b=F.videoData.C.kQ;break a}}b=0}return b}),F.C=new Hg(F.videoData,F.rD.experiments,function(){return F.lC(!0)})); Mg(F.wD)?(J=Qmv(F),J.bM?(F.S("html5_sabr_enable_utc_seek_requests")&&bE(F.videoData)&&F.CI(J.bM,J.startSeconds),F.Z=J.startSeconds):J.startSeconds>0&&F.seekTo(J.startSeconds,{Ky:"seektimeline_startPlayback",seekSource:15}),F.V=!1):RrJ(F)||(F.Z=F.Z||(g.oH(F.videoData)?0:F.videoData.startSeconds)||0)}; OjJ=function(F,J){(F.Zv=J)?k$_(F,!0):AZ(F)}; oUz=function(F,J){g.Z_(F.kQ.D);F.S("html5_exponential_memory_for_sticky")&&(J.state.isPlaying()?g.Z_(F.WN):F.WN.stop());if(F.mediaElement)if(J.oldState.state===8&&AV(J.state)&&J.state.isBuffering()){J=F.mediaElement.getCurrentTime();var b=F.mediaElement.Z4();var I=F.S("manifestless_post_live_ufph")||F.S("manifestless_post_live")?wu(b,Math.max(J-3.5,0)):wu(b,J-3.5);I>=0&&J>b.end(I)-1.1&&I+1<b.length&&b.start(I+1)-b.end(I)<11&&(I=b.start(I+1)+.2,Math.abs(F.cN-I)<.2||(F.wD.UQ("seekover",{b:u1(b,"_"), cmt:J}),F.cN=I,F.seekTo(I,{sL:!0,Ky:"seektimeline_postLiveDisc"})))}else((b=J.state)==null?0:b.state===8)&&!F.Jz&&(F.videoData.limitedPlaybackDurationInSeconds>0?(qg(F.wD,F.getCurrentTime()+F.videoData.limitedPlaybackDurationInSeconds),F.Jz=!0):F.videoData.isLivePlayback&&F.videoData.endSeconds>0&&(qg(F.wD,F.getCurrentTime()+F.videoData.endSeconds),F.Jz=!0))}; cXG=function(F,J){var b=F.getCurrentTime(),I=F.isAtLiveHead(b);if(F.W&&I){var u=F.W;if(u.C&&!(b>=u.U&&b<u.T)){var w=u.C.Ea(b);w!==-1&&(u.U=u.C.getStartTime(w),u.T=u.U+u.C.getDuration(w),w=(0,g.jR)()/1E3-u.C.Ze(w),w-=u.D(),u.Z.add(w))}}F.C&&(I&&(u=F.C,w=hrC(F),u.Z++,u.Z<3||Date.now()-u.V<3E3||(u.V=Date.now(),u.U.push(w),u.U.length>50&&u.U.shift())),u=F.C,rXG(u,b,J===void 0?!0:J),Si7(u,b),J&&$SG(F,!0));I!==F.Om&&(J=F.getCurrentTime()-F.bR<=500,b=F.Um>=1E3,J||b||(J=F.wD.zF(),J.qoe&&(J=J.qoe,b=g.dr(J.provider), g.VT(J,b,"lh",[I?"1":"0"])),F.Om=I,F.Um++,F.bR=F.getCurrentTime()))}; $SG=function(F,J){if(F.C){var b=F.C;var I=F.getCurrentTime();!Lj(b,I)&&b.B0()?(b.policy.W&&(b.policy.C=Math.max(b.policy.C+b.policy.D,b.policy.V)),b=Infinity):b=I<b.videoData.Ho()?Math.min(b.videoData.Ho()+10,b.z8()):NaN;if(!isNaN(b)){if(F.Zv&&J&&(J=F.fW.isActive(),I=F.C.z8(),(I=iYa(F.Zv,I-F.Xq()))&&!J)){F.fW.start();F.wD.UQ("inBufferPtl",{cmt:F.getCurrentTime(),seekTo:I+F.Xq()});F.seekTo(I+F.Xq(),{Ky:"seektimeline_inBufferSeek"});return}F.seekTo(b,{Ky:"seektimeline_pegToLive"})}}}; k$_=function(F,J){if(F.C&&F.Zv){var b=!1;J?b=!0:F.videoData.isLowLatencyLiveStream||F.videoData.latencyClass==="LOW"||F.videoData.latencyClass==="ULTRALOW"?b=Br7(F.C):F.nW&&(F.nW=!1,b=Br7(F.C,!0));b&&(J=F.wD.zF(),b=F.C,b=FI(b)*b.C,J.qoe&&(J=J.qoe,g.VT(J,g.dr(J.provider),"lra",[b]),J.UQ("live-readahead-seconds",{v:b})));J=F.Zv;b=F.C.C;F=F.C;F=(F.C-1+F.policy.C)*FI(F);var I=NaN,u=J.Kk;u===2||u===-1?vE(J.wD.getVideoData())&&(I=J.policy.mE):--b;b=Math.max(b,0);u=J.D;u.Qi=b;u.N=I;J.V&&(J.V.Tj=F)}}; US7=function(F,J){F.Z=J}; Cm4=function(F,J){xSz(F,J).then(void 0,function(){AZ(F)}); nUm(F).then(function(b){tAG(F,b)},function(){AZ(F)}); F.wD.p9(J);F.rD.hJ()&&(J=F.Cy(),J["native"]=""+ +F.Y,J.tgt=""+F.U,J.otgt=""+(F.U+F.timestampOffset),F.C&&F.S("html5_high_res_seek_logging")&&(J.tht=""+F.C.W(),J.ht=""+F.C.z8(),J.adft=""+Trm(F.C)),F.S("html5_sabr_parse_live_metadata_playback_boundaries")&&F.videoData.C&&bE(F.videoData)&&(J.minst=""+F.videoData.C.rf,J.cminst=""+(F.videoData.C.Ho()+F.timestampOffset),J.maxst=""+F.videoData.C.G8,J.hts=""+F.videoData.C.eE,J.cmaxst=""+(F.videoData.C.lC()+F.timestampOffset)),F.wD.UQ("startSeek",J))}; xSz=function(F,J){F.Tj||(F.Zv?isFinite(F.U)?F.Tj=F.Zv.seek(F.U-F.timestampOffset,J):(Aw(F.videoData),F.Tj=tu(F.Zv),cE(F.videoData)||(F.U=F.Zv.getCurrentTime()+F.timestampOffset)):F.Tj=g.yX(F.U-F.timestampOffset));return F.Tj}; nUm=function(F){var J=F.T;J||(F.T=new xn,J=F.T,wo(F));return J}; vO=function(F,J,b){return isNaN(J)?NaN:g.AD(J,F.Ho(),F.lC(b))}; wo=function(F){if(F.T)if(F.videoData.isLivePlayback&&F.videoData.T&&!F.videoData.T.C&&F.mediaElement&&F.mediaElement.kR()>0&&tG(F.mediaElement)>0&&(F.U=vO(F,F.U,!1)),!F.mediaElement||!Zj7(F))F.Q2.start(750);else if(!isNaN(F.U)&&isFinite(F.U)){var J=F.dD-(F.U-F.timestampOffset);if(!(J===0||F.S("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005))if(J=F.mediaElement.getCurrentTime()-F.U,Math.abs(J)<=F.zj||F.S("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005)F.T&&F.T.resolve(F.mediaElement.getCurrentTime()); else{if(F.videoData.GS)F.videoData.GS=!1;else if(!Aw(F.videoData)&&F.U>=F.lC()-.1){F.U=F.lC();F.T.resolve(F.lC());F.wD.vk();return}try{var b=F.U-F.timestampOffset;F.mediaElement.seekTo(b);F.kQ.C=b;F.dD=b;F.Z=F.U;F.S("html5_enable_new_seek_timeline_logic")&&(F.Y=!1)}catch(I){}}}}; Zj7=function(F){if(!F.mediaElement||F.mediaElement.kR()===0||F.mediaElement.hasError())return!1;var J=F.mediaElement.getCurrentTime()>0;if(!(F.videoData.T&&F.videoData.T.C||F.videoData.isLivePlayback)&&F.videoData.So())return J;if(F.U>=0){var b=F.mediaElement.Me();if(b.length||!J)return Mt(b,F.U-F.timestampOffset)}return J}; tAG=function(F,J){F.D&&(F.D.resolve(J),F.wD.yv(),F.rD.hJ()&&(J=F.Cy(),J["native"]=""+ +F.Y,J.otgt=""+(F.U+F.timestampOffset),F.wD.UQ("seekEnd",J)));AZ(F)}; AZ=function(F){F.U=NaN;F.dD=NaN;F.T=null;F.Tj=null;F.D=null;F.eE=!1;F.Y=!1;F.zj=0;F.fW.stop();F.KW.stop()}; FPa=function(F,J,b){var I=F.mediaElement,u=J.type;switch(u){case "seeking":var w=I.getCurrentTime()+F.timestampOffset;if(!F.T||F.Y&&w!==F.U){var M=!!F.T;F.T=new xn;F.S("html5_enable_new_seek_timeline_logic")&&F.T.then(function(v){tAG(F,v)},function(){AZ(F)}); if(F.videoData.isAd()){var q;LHY({adCpn:F.videoData.clientPlaybackNonce,contentCpn:(q=F.videoData.AQ)!=null?q:""},J.C)}F.dD=w;smk(F.kQ,I.getCurrentTime());F.seekTo(w,{seekSource:104,Ky:"seektimeline_mediaElementEvent"});b&&HjJ(b,w*1E3,!!M);F.Y=!0}break;case "seeked":F.T&&F.T.resolve(F.mediaElement.getCurrentTime());break;case "loadedmetadata":Mg(F.wD)||LQC(F);wo(F);break;case "progress":wo(F);break;case "pause":F.N=F.getCurrentTime()}F.N&&((u==="play"||u==="playing"||u==="timeupdate"||u==="progress")&& F.getCurrentTime()-F.N>10&&(F.S("html5_enable_new_media_element_puase_jump")?(F.wD.je(new E5("qoe.restart",{reason:"pauseJump"})),F.wD.sV()):F.seekTo(F.N,{Ky:"pauseJump"})),u!=="pause"&&u!=="play"&&u!=="playing"&&u!=="progress"&&(F.N=0))}; JZY=function(F){return(EW(F.videoData)||!!F.videoData.liveUtcStartSeconds)&&(!!F.videoData.liveUtcStartSeconds||RrJ(F))&&!!F.videoData.C}; RrJ=function(F){return!!F.videoData.startSeconds&&isFinite(F.videoData.startSeconds)&&F.videoData.startSeconds>1E9}; Qmv=function(F){var J=0,b=NaN,I="";if(!F.V)return{startSeconds:J,bM:b,source:I};F.videoData.fW?J=F.videoData.qf:Aw(F.videoData)&&(J=Infinity);if(g.dS(F.videoData))return{startSeconds:J,bM:b,source:I};F.videoData.startSeconds?(I="ss",J=F.videoData.startSeconds):F.videoData.Uz&&(I="stss",J=F.videoData.Uz);F.videoData.liveUtcStartSeconds&&(b=F.videoData.liveUtcStartSeconds);if(isFinite(J)&&(J>F.lC()||J<F.Ho())){var u={};u.minSeekableTime=F.Ho();u.maxSeekableTime=F.lC();u.cmt=F.getCurrentTime();u.ss= J;u.utc=b;u.src=I;F.wD.UQ("startSecondsOutOfBounds",u);F.videoData.MW()&&(J=vO(F,J,!1))}return{startSeconds:J,bM:b,source:I}}; LQC=function(F){if(F.V)if(g.dS(F.videoData))F.V=!1;else{var J="ss",b=0,I;((I=F.videoData.C)==null?0:I.isManifestless)&&F.videoData.Kk&&!RrJ(F)&&(J="mss",b=F.videoData.Kk);(F.videoData.fW?F.S("html5_prioritize_windowed_st_start_seconds"):F.S("html5_prioritize_st_start_seconds"))&&!b&&F.videoData.Uz&&(J="stss",b=F.videoData.Uz);!b&&JZY(F)&&(b=F.videoData.liveUtcStartSeconds||F.videoData.Kk,J="utc",b=F.lC()-F.Ze(F.lC())+b);b||F.S("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!F.videoData.MW()|| !F.videoData.Uz||(J="stss",b=F.videoData.Uz);I={};if(b){if(b>F.lC()||b<F.Ho())I.minSeekableTime=F.Ho(),I.maxSeekableTime=F.lC(),I.cmt=F.getCurrentTime(),I.it=F.Ze(F.getCurrentTime()),I.ss=b,I.utc=JZY(F)?F.videoData.liveUtcStartSeconds||F.videoData.Kk:0,F.wD.UQ("startSecondsOutOfBounds",I),F.videoData.MW()&&(b=vO(F,b,!1));F.seekTo(b,{Ky:"seektimeline_startSeconds"});I[J]=b;F.wD.UQ("startSeconds",I);F.V=!1}else F.videoData.Kk&&(I[J]=F.videoData.Kk+F.Xq(),F.wD.UQ("startSeconds",I))}}; b1_=function(F,J){F.wD.UQ("sdai",{adj4t:J.toFixed(3)});F.qf=J;J+=1;F.U=J;F.Z=J;nUm(F).then(function(b){tAG(F,b)},function(){AZ(F)})}; hrC=function(F){return F.mediaElement?ZO(F.mediaElement):0}; Yiz=function(){}; aX=function(F){g.R.call(this);this.T=F;this.C=new Map;this.U=new g.ty(this.sample,250,this);g.k(this,this.U);this.start()}; eL=function(F,J){if((F=F.C.get(J))==null)F=void 0;else{F=F.buffer;for(J=[];F.U!==F.C;)F.U=(F.U+1)%F.data.length,J.push(F.data[F.U]);F=J}return F||[]}; K1=function(F,J){var b;return((b=F.C.get(J))==null?void 0:EUo(b.buffer))||0}; IxC=function(F){this.C=F;this.C_=NaN;this.buffer=new tX(100)}; p1=function(){this.finished=this.started=!1}; vco=function(F){function J(u){return b.Px&&(!I.qa||!I.PN.V)||b.Tj!=="yt"&&(I.partnerId===38&&b.playerStyle==="books"||I.partnerId===30&&b.playerStyle==="docs"||I.partnerId===33&&b.playerStyle==="google-live")?uI7(F,I,u):wOa(F,I).then(function(){go(F,I)},function(w){go(F,I,!0); throw w;})} var b=F.J(),I=F.getVideoData();I.iR();I.loading=!0;return ML_(F)?AZa(F,I).then(function(){go(F,I)},function(u){u=Gj(u); if(jg(u.severity))return go(F,I,!0),Promise.reject(u);u.errorCode==="onesie.response.badproxystatus"&&""+u.details.st==="3"&&(q$C=!0);F.handleError(u);return J("onesie")}):J("gvi")}; ML_=function(F){var J=F.J();if(J.S("html5_disable_onesie_when_no_subtlecrypto")&&!Ns()||J.S("html5_disable_onesie")||!J.S("html5_onesie")||!J.S("html5_onesie_inline")&&F.getVisibilityState()===5||J.Tj!=="yt")return!1;var b=J.T8;if(!b||!b.C)return F.handleError(new E5("onesie.unavailable.hotconfig",{key:"0"})),!1;if(b.C.D<(0,g.jR)()&&(F.UQ("okexp","1"),(b=F.f$())&&J.S("html5_prefer_trusted_host_on_key_expiration"))){b.U=!0;var I;(J=(I=b.C.get(0))==null?void 0:zK(I.location))&&!uh(J)&&b.C.delete(0)}if(q$C)return F.UQ("ost3", "1"),!1;I={};return Object.keys(I).length>0?(I.onesie="0",F.handleError(new E5("html5.missingapi",I)),!1):!0}; axz=function(F){var J=SV();sf(J,F);return g.IW(J,vXz())}; AZa=function(F,J){var b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ,F7,h;return g.S(function(L){if(L.C==1)return J.fetchType="onesie",b=Nwz(J,F.getPlayerSize(),F.getVisibilityState()),I=new nS(F,b),g.T(L,I.fetch(),2);u=L.U;w={player_response:u};J.loading=!1;M=F.t_.S$;if(I.qk){q=g.N(I.qk.entries());for(v=q.next();!v.done;v=q.next())a=v.value,e=g.N(a),K=e.next().value,p=e.next().value,m=K,y=p,M.C.set(m,y,180),m===J.videoId&&(f=y.nP(),J.ws=f);M.lB=I}d=g.N(I.iO.entries());for(G=d.next();!G.done;G= d.next())P=G.value,r=g.N(P),Q=r.next().value,D=r.next().value,t=Q,n=D,M.U.set(t,n,180);g.O9(J,w,!0);if(J.loading||DR(J))return L.return(Promise.resolve());M.C.removeAll();M.U.removeAll();J.ws=[];uk={};AJ="onesie.response";F7=0;J.errorCode?(AJ="auth",uk.ec=J.errorCode,uk.ed=J.errorDetail,uk.es=J.yx||"",F7=2):(uk.successButUnplayable="1",uk.disposed=""+ +J.iR(),uk.afmts=""+ +/adaptiveFormats/.test(u),uk.cpn=J.clientPlaybackNonce);h=new E5(AJ,uk,F7);return L.return(Promise.reject(h))})}; wOa=function(F,J){var b,I,u,w,M,q,v,a,e,K,p;return g.S(function(m){switch(m.C){case 1:b=J.isAd(),I=!b,u=b?1:3,w=0;case 2:if(!(w<u)){m.gD(4);break}if(!(w>0)){m.gD(5);break}return g.T(m,db(5E3),6);case 6:M=new g.hC("Retrying OnePlatform request",{attempt:w}),g.rQ(M);case 5:return g.lk(m,7),g.T(m,eOY(F,J),9);case 9:return m.return();case 7:q=g.dY(m);v=Gj(q);a=v.errorCode;e=F.J();K=e.S("html5_use_network_error_code_enums")?401:"401";I&&a==="manifest.net.badstatus"&&v.details.rc===K&&(I=!1,w===u-1&&(u+= 1));if(w===u-1)return p=KPm(b,v.details),p.details.backend="op",p.details.originec=a,m.return(Promise.reject(p));if(a==="auth"||a==="manifest.net.retryexhausted")return m.return(Promise.reject(v));F.handleError(v);if(jg(v.severity)){m.gD(4);break}case 3:w++;m.gD(2);break;case 4:return m.return(Promise.reject(KPm(b,{backend:"op"})))}})}; eOY=function(F,J){function b(AJ){AJ.readyState===2&&F.G$("ps_c")} var I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk;return g.S(function(AJ){switch(AJ.C){case 1:J.fetchType="gp";I=F.J();u=g.LH(I,g.ks(J));if(!u.C){w=u.getValue();AJ.gD(2);break}return g.T(AJ,u.C,3);case 3:w=AJ.U;case 2:return M=w,q=axz(M),v=Nwz(J,F.getPlayerSize(),F.getVisibilityState()),a=g.ZI(pO4),e=g.ks(J),K=(0,g.jR)(),p=!1,m="empty",y=0,F.G$("psns"),f={H_:b},g.T(AJ,g.cf(q,v,a,void 0,f),4);case 4:d=AJ.U;F.G$("psnr");if(J.iR())return AJ.return();d?"error"in d&&d.error?(p=!0,m="esf:"+d.error.message, y=d.error.code):d.errorMetadata&&(p=!0,m="its",y=d.errorMetadata.status):p=!0;if(p)return G=0,P=((0,g.jR)()-K).toFixed(),r={},r=I.S("html5_use_network_error_code_enums")?{backend:"op",rc:y,rt:P,reason:m,has_kpt:J.Um?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.cT("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:e?"1":"0",has_vvt:J.eE?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.iq||"",token_eq:e===g.ks(J)?"1":"0"}:{backend:"op", rc:""+y,rt:P,reason:m,has_kpt:J.Um?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.cT("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:e?"1":"0",has_vvt:J.eE?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.iq||"",token_eq:e===g.ks(J)?"1":"0"},Q="manifest.net.connect",y===429?(Q="auth",G=2):y>200&&(Q="manifest.net.badstatus",y===400&&(G=2)),AJ.return(Promise.reject(new E5(Q,r,G)));J.loading=!1;g.O9(J,{raw_player_response:d},!0); D=d;g.Bu(J.J())&&D&&D.trackingParams&&WX(D.trackingParams);if(J.errorCode)return t={ec:J.errorCode,ed:J.errorDetail,es:J.yx||""},AJ.return(Promise.reject(new E5("auth",t,2)));if(!J.loading&&!DR(J))return n=J.isAd()?"auth":"manifest.net.retryexhausted",uk=J.isAd()?2:1,AJ.return(Promise.reject(new E5(n,{successButUnplayable:"1",hasMedia:g.lE(J)?"1":"0"},uk)));g.N4(AJ)}})}; uI7=function(F,J,b){function I(y){y=Gj(y);if(jg(y.severity))return Promise.reject(y);F.handleError(y);return!1} function u(){return!0} var w,M,q,v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:var f=F.J(),d=F.getPlayerSize(),G=F.getVisibilityState();F.isFullscreen();var P=window.location.search;if(J.partnerId===38&&f.playerStyle==="books")P=J.videoId.indexOf(":"),P=g.Os("//play.google.com/books/volumes/"+J.videoId.slice(0,P)+"/content/media",{aid:J.videoId.slice(P+1),sig:J.gb});else if(J.partnerId===30&&f.playerStyle==="docs")P=g.Os("https://docs.google.com/get_video_info",{docid:J.videoId,authuser:J.rb,authkey:J.GJ,eurl:f.oI}); else if(J.partnerId===33&&f.playerStyle==="google-live")P=g.Os("//google-liveplayer.appspot.com/get_video_info",{key:J.videoId});else{f.Tj!=="yt"&&g.Td(Error("getVideoInfoUrl for invalid namespace: "+f.Tj));var r={html5:"1",video_id:J.videoId,cpn:J.clientPlaybackNonce,eurl:f.oI,ps:f.playerStyle,el:$s(J),hl:f.Q2,list:J.playlistId,agcid:J.jh,aqi:J.adQueryId,sts:20138,lact:dP()};Object.assign(r,f.C);f.forcedExperiments&&(r.forced_experiments=f.forcedExperiments);J.eE?(r.vvt=J.eE,J.mdxEnvironment&&(r.mdx_environment= J.mdxEnvironment)):g.ks(J)&&(r.access_token=g.ks(J));J.adFormat&&(r.adformat=J.adFormat);J.slotPosition>=0&&(r.slot_pos=J.slotPosition);J.breakType&&(r.break_type=J.breakType);J.xd!==null&&(r.ad_id=J.xd);J.oe!==null&&(r.ad_sys=J.oe);J.gL!==null&&(r.encoded_ad_playback_context=J.gL);f.captionsLanguagePreference&&(r.cc_lang_pref=f.captionsLanguagePreference);f.Um&&f.Um!==2&&(r.cc_load_policy=f.Um);var Q=g.Rg(g.Qe(),65);g.hP(f)&&Q!=null&&!Q&&(r.device_captions_on="1");f.mute&&(r.mute=f.mute);J.annotationsLoadPolicy&& f.annotationsLoadPolicy!==2&&(r.iv_load_policy=J.annotationsLoadPolicy);J.uK&&(r.endscreen_ad_tracking=J.uK);(Q=f.fW.get(J.videoId))&&Q.xE&&(r.ic_track=Q.xE);J.WN&&(r.itct=J.WN);Dh(J)&&(r.autoplay="1");J.mutedAutoplay&&(r.mutedautoplay=J.mutedAutoplay);J.isAutonav&&(r.autonav="1");J.CM&&(r.noiba="1");J.isMdxPlayback&&(r.mdx="1",r.ytr=J.I6);J.mdxControlMode&&(r.mdx_control_mode=J.mdxControlMode);J.lK&&(r.ytrcc=J.lK);J.b2&&(r.utpsa="1");J.isFling&&(r.is_fling="1");J.isInlinePlaybackNoAd&&(r.mute="1"); J.vnd&&(r.vnd=J.vnd);J.forceAdsUrl&&(Q=J.forceAdsUrl.split("|").length===3,r.force_ad_params=Q?J.forceAdsUrl:"||"+J.forceAdsUrl);J.Ly&&(r.preload=J.Ly);d.width&&(r.width=d.width);d.height&&(r.height=d.height);(J.GU?0:J.Vk)&&(r.splay="1");J.ypcPreview&&(r.ypc_preview="1");QR(J)&&(r.content_v=QR(J));J.nW&&(r.livemonitor=1);f.Gj&&(r.authuser=f.Gj);f.pageId&&(r.pageid=f.pageId);f.Jz&&(r.ei=f.Jz);f.Z&&(r.iframe="1");J.contentCheckOk&&(r.cco="1");J.racyCheckOk&&(r.rco="1");f.V&&J.IB&&(r.live_start_walltime= J.IB);f.V&&J.ZY&&(r.live_manifest_duration=J.ZY);f.V&&J.playerParams&&(r.player_params=J.playerParams);f.V&&J.cycToken&&(r.cyc=J.cycToken);f.V&&J.LT&&(r.tkn=J.LT);G!==0&&(r.vis=G);f.enableSafetyMode&&(r.enable_safety_mode="1");J.Um&&(r.kpt=J.Um);J.mq&&(r.kids_age_up_mode=J.mq);J.kidsAppInfo&&(r.kids_app_info=J.kidsAppInfo);J.Vj&&(r.upg_content_filter_mode="1");f.widgetReferrer&&(r.widget_referrer=f.widgetReferrer.substring(0,128));J.Tj?(d=J.Tj.latitudeE7!=null&&J.Tj.longitudeE7!=null?J.Tj.latitudeE7+ ","+J.Tj.longitudeE7:",",d+=","+(J.Tj.clientPermissionState||0)+","+(J.Tj.locationRadiusMeters||"")+","+(J.Tj.locationOverrideToken||"")):d=null;d&&(r.uloc=d);J.jn&&(r.internalipoverride=J.jn);f.embedConfig&&(r.embed_config=f.embedConfig);f.Mh&&(r.co_rel="1");f.ancestorOrigins.length>0&&(r.ancestor_origins=Array.from(f.ancestorOrigins).join(","));f.homeGroupInfo!==void 0&&(r.home_group_info=f.homeGroupInfo);f.livingRoomAppMode!==void 0&&(r.living_room_app_mode=f.livingRoomAppMode);f.enablePrivacyFilter&& (r.enable_privacy_filter="1");J.isLivingRoomDeeplink&&(r.is_living_room_deeplink="1");J.U8&&J.TX&&(r.clip=J.U8,r.clipt=J.TX);J.XZ&&(r.disable_watch_next="1");J.Ys&&(r.forced_by_var="1");for(var D in r)!gc3.has(D)&&r[D]&&String(r[D]).length>512&&(g.rQ(Error("GVI param too long: "+D)),r[D]="");D=f.ME;g.TB(f)&&(D=ZY(D.replace(/\b(?:www|web)([.-])/,"tv$1"))||f.ME);f=g.Os(D+"get_video_info",r);P&&(f=wQY(f,P));P=f}w=P;q=(M=J.isAd())?1:3;v=0;case 2:if(!(v<q)){y.gD(4);break}a=w;if(!(v>0)){y.gD(5);break}return g.T(y, db(5E3),6);case 6:e={playerretry:v,playerretrysrc:b},M||(e.recover="embedded"),a=ui(w,e);case 5:return g.T(y,mg7(J,a).then(u,I),7);case 7:if(K=y.U)return y.return();v++;y.gD(2);break;case 4:p=M?"auth":"manifest.net.retryexhausted";m=M?2:1;if(!M&&Math.random()<1E-4)try{g.rQ(new g.hC("b/152131571",btoa(w)))}catch(t){}return y.return(Promise.reject(new E5(p,{backend:"gvi"},m)))}})}; mg7=function(F,J){function b(d){return I(d.xhr)} function I(d){if(!F.iR()){d=d?d.status:-1;var G=0,P=((0,g.jR)()-e).toFixed();P=u.S("html5_use_network_error_code_enums")?{backend:"gvi",rc:d,rt:P}:{backend:"gvi",rc:""+d,rt:P};var r="manifest.net.connect";d===429?(r="auth",G=2):d>200&&(r="manifest.net.badstatus",d===400&&(G=2));return Promise.reject(new E5(r,P,G))}} var u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){if(d.C==1){F.fetchType="gvi";u=F.J();var G={};F.vO&&(G.ytrext=F.vO);(q=g.Vj(G)?void 0:G)?(w={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:q},M=ui(J,{action_display_post:1})):(w={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},M=J);v={};u.sendVisitorIdHeader&&F.visitorData&&(v["X-Goog-Visitor-Id"]=F.visitorData);(a=xj(u.experiments,"debug_sherlog_username"))&&(v["X-Youtube-Sherlog-Username"]=a);Object.keys(v).length> 0&&(w.headers=v);e=(0,g.jR)();return g.T(d,IZ(Vt,M,w).then(void 0,b),2)}K=d.U;if(!K||!K.responseText)return d.return(I(K));F.loading=!1;p=FF(K.responseText);g.O9(F,p,!0);if(F.errorCode)return m={ec:F.errorCode,ed:F.errorDetail,es:F.yx||""},d.return(Promise.reject(new E5("auth",m,2)));if(!F.loading&&!DR(F))return y=F.isAd()?"auth":"manifest.net.retryexhausted",f=F.isAd()?2:1,d.return(Promise.reject(new E5(y,{successButUnplayable:"1"},f)));g.N4(d)})}; KPm=function(F,J){return new E5(F?"auth":"manifest.net.retryexhausted",J,F?2:1)}; go=function(F,J,b){b=b===void 0?!1:b;var I,u,w,M;g.S(function(q){if(q.C==1){I=F.J();if(b&&(!g.U7(I)||$s(J)!=="embedded")||J.XZ||$s(J)!=="adunit"&&(g.jB(I)||CH(I)||g.sV(I)||g.TB(I)||cG(I)==="WEB_CREATOR"))return q.return();u=g.LH(I,g.ks(J));return u.C?g.T(q,u.C,3):(w=u.getValue(),q.gD(2))}q.C!=2&&(w=q.U);M=w;return q.return(yZ7(F,J,M))})}; yZ7=function(F,J,b){var I,u,w,M,q;return g.S(function(v){if(v.C==1){g.lk(v,2);I=axz(b);var a=J.J();g.Qe();var e={context:g.FE(J),videoId:J.videoId,racyCheckOk:J.racyCheckOk,contentCheckOk:J.contentCheckOk,autonavState:"STATE_NONE"};$s(J)==="adunit"&&(e.isAdPlayback=!0);a.embedConfig&&(e.serializedThirdPartyEmbedConfig=a.embedConfig);a.Mh&&(e.showContentOwnerOnly=!0);J.QC&&(e.showShortsOnly=!0);g.Rg(0,141)&&(e.autonavState=g.Rg(0,140)?"STATE_OFF":"STATE_ON");if(g.hP(a)){var K=g.Rg(0,65);K=K!=null? !K:!1;var p=!!g.S9("yt-player-sticky-caption");e.captionsRequested=K&&p}var m;if(a=(m=a.getWebPlayerContextConfig())==null?void 0:m.encryptedHostFlags)e.playbackContext={encryptedHostFlags:a};u=e;w=g.ZI(i1J);F.G$("wn_s");return g.T(v,g.cf(I,u,w),4)}if(v.C!=2)return M=v.U,F.G$("wn_r"),!M||"error"in M&&M.error||(q=M,g.Bu(J.J())&&q.trackingParams&&WX(q.trackingParams),g.O9(J,{raw_watch_next_response:M},!1)),g.Wa(v,0);g.dY(v);g.N4(v)})}; zOm=function(F){F.G$("vir");F.G$("ps_s");Oz("vir",void 0,"video_to_ad");var J=vco(F);J.then(function(){F.G$("virc");Oz("virc",void 0,"video_to_ad");F.G$("ps_r");Oz("ps_r",void 0,"video_to_ad")},function(){F.G$("virc"); Oz("virc",void 0,"video_to_ad")}); return J}; g.it=function(F,J,b,I,u,w,M,q,v,a){v=v===void 0?new g.RH(F):v;a=a===void 0?!0:a;g.uA.call(this);var e=this;this.rD=F;this.playerType=J;this.qW=b;this.DZ=I;this.getVisibilityState=w;this.visibility=M;this.t_=q;this.videoData=v;this.h1=a;this.logger=new g.Hl("VideoPlayer");this.dI=new fWv(this.rD);this.Le=null;this.JI=new im;this.nN=null;this.ji=new V3z(this.rD,this.DZ,this);this.Pr=!0;this.HN=this.Zv=null;this.CN=[];this.zz=new p1;this.Pg=this.g3=null;this.KA=new p1;this.Mw=null;this.f6=this.kc=!1; this.Eh=NaN;this.sB=!1;this.playerState=new g.FC;this.SA=[];this.Jl=new g.s5;this.Qd=new gaC(this);this.mediaElement=null;this.tY=new g.ty(this.htz,15E3,this);this.Ci=this.F9=!1;this.Wk=NaN;this.y4=!1;this.uu=0;this.X7=!1;this.bf=NaN;this.Yq=new aX(new Map([["bufferhealth",function(){return hrC(e.dY)}], ["bandwidth",function(){return e.tp()}], ["networkactivity",function(){return e.rD.schedule.Gj}], ["livelatency",function(){return e.isAtLiveHead()&&e.isPlaying()?NoG(e):NaN}], ["rawlivelatency",function(){return NoG(e)}]])); this.EN=0;this.loop=!1;this.playbackRate=1;this.s9=0;this.dY=new Xg7(this);this.eb=!1;this.Q3=[];this.gH=this.uY=0;this.aO=this.Of=!1;this.Oi=this.TH=0;this.Ox=-1;this.I1="";this.bI=new g.ty(this.bL,0,this);this.dN=!1;this.II=this.xl=null;this.t3I=[this.Jl,this.bI,this.tY,this.Yq];this.mN=this.D1=null;this.G0=function(){var K=e.zF();K.provider.rD.Vk||K.provider.wD.getVisibilityState()===3||(K.provider.rD.Vk=!0);uJY(K);if(K.U){var p=K.U;p.D&&p.C<0&&p.provider.wD.getVisibilityState()!==3&&cuk(p)}K.qoe&& (K=K.qoe,K.Jz&&K.U<0&&K.provider.rD.Vk&&Wyz(K),K.T&&Bg(K));e.Zv&&mP(e);e.rD.v0&&!e.videoData.backgroundable&&e.mediaElement&&!e.Hh()&&(e.isBackground()&&e.mediaElement.EP()?(e.UQ("bgmobile",{suspend:1}),e.Cc(!0,!0)):e.isBackground()||yM(e)&&e.UQ("bgmobile",{resume:1}))}; this.Po={mw:function(K){e.mw(K)}, unE:function(K){e.Le=K}, VD_:function(){return e.uN}, Db:function(){return e.Gk}, SS:function(){return e.HN}, NoI:function(){return e.Gx}, IQv:function(){return e.Pa}, FUG:function(){}, J:function(){return e.rD}, Qa:function(){return e.mediaElement}, B$R:function(K){e.X8(K)}, Nfz:function(){return e.DZ}}; this.logger.debug(function(){return"creating, type "+J}); this.f8=new g.cg(function(){return e.getCurrentTime()},function(){return e.getPlaybackRate()},function(){return e.getPlayerState()},function(K,p){K!==g.u6("endcr")||g.x(e.playerState,32)||e.vk(); u(K,p,e.playerType)},function(K,p){g.oH(e.videoData)&&e.UQ(K,p)}); g.k(this,this.f8);g.k(this,this.dY);lxz(this,v);this.videoData.subscribe("dataupdated",this.RxG,this);this.videoData.subscribe("dataloaded",this.Ha,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.UQ,this);this.videoData.subscribe("ctmpstr",this.fQ,this);this.g2();KVz(this.G0);this.visibility.subscribe("visibilitystatechange",this.G0);this.Gx=new g.ty(this.Xm,g.eB(this.rD.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Pa= new g.ty(this.Xm,g.eB(this.rD.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.P0=new g.Ui(this)}; lxz=function(F,J){if(F.playerType===2||F.rD.Yf)J.AK=!0;var b=SCz(J.If,J.KI,F.rD.Z,F.rD.V);b&&(J.adFormat=b);F.playerType===2&&(J.NJ=!0);if(F.isFullscreen()||F.rD.Z)b=g.S9("yt-player-autonavstate"),J.autonavState=b||(F.rD.Z?2:F.videoData.autonavState);J.endSeconds&&J.endSeconds>J.startSeconds&&qg(F,J.endSeconds)}; fx7=function(F){wgv(F.uN);g.q8(F.uN);for(var J=F.Gk,b=g.N(J.C.values()),I=b.next();!I.done;I=b.next())wgv(I.value);J.C.clear();g.q8(F.Gk)}; WPG=function(F){var J=F.videoData;zOm(F).then(void 0,function(b){F.videoData!==J||J.iR()||(b=Gj(b),b.errorCode==="auth"&&F.videoData.errorDetail?F.Je(b.errorCode,2,unescape(F.videoData.errorReason),dk(b.details),F.videoData.errorDetail,F.videoData.yx||void 0):F.handleError(b))})}; jXG=function(F){if(!g.x(F.playerState,128))if(F.videoData.isLoaded(),F.logger.debug("finished loading playback data"),F.CN=g.JL(F.videoData.kQ),g.lE(F.videoData)){F.qW.tick("bpd_s");zx(F).then(function(){F.qW.tick("bpd_c");if(!F.iR()){F.kc&&(F.gY(IY(IY(F.playerState,512),1)),yM(F));var I=F.videoData;I.endSeconds&&I.endSeconds>I.startSeconds&&qg(F,I.endSeconds);F.zz.finished=!0;Ng(F,"dataloaded");F.KA.Ax()&&dgm(F);hN3(F.ji,F.Pg)}}); F.S("html5_log_media_perf_info")&&F.UQ("loudness",{v:F.videoData.LF.toFixed(3)},!0);var J,b=(J=F.mediaElement)==null?void 0:J.Pb();b&&"disablePictureInPicture"in b&&F.S("html5_disable_pip_with_standard_api")&&(b.disablePictureInPicture=F.rD.ZY&&!F.videoData.backgroundable);Ecv(F)}else Ng(F,"dataloaded")}; zx=function(F){lt(F);F.Pg=null;var J=dS3(F.rD,F.videoData,F.Hh());F.g3=J;F.g3.then(function(b){Gx3(F,b)},function(b){F.iR()||(b=Gj(b),F.visibility.isBackground()?(f1(F,"vp_none_avail"),F.g3=null,F.zz.reset()):(F.zz.finished=!0,F.Je(b.errorCode,b.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",dk(b.details))))}); return J}; Gx3=function(F,J){if(!F.iR()&&!J.videoData.iR()){F.logger.debug("finished building playback data");F.Pg=J;DS4(F.dY,F.Pg);if(F.videoData.isLivePlayback){var b=VLv(F.t_.S$,F.videoData.videoId)||F.Zv&&!isNaN(F.Zv.Gj);b=F.S("html5_onesie_live")&&b;Mg(F)||F.videoData.Kk>0&&!qb(F.videoData)||b||F.seekTo(F.lC(),{Ky:"videoplayer_playbackData",seekSource:18})}if(F.videoData.T.C){if(F.S("html5_sabr_report_missing_url_as_error")&&qpG(F.videoData)){F.handleError(new E5("fmt.missing",{missabrurl:"1"},2));return}F.Zv? g.rQ(Error("Duplicated Loader")):(b=g.eB(F.rD.experiments,"html5_onesie_defer_content_loader_ms"))&&F.wK()&&VLv(F.t_.S$,F.videoData.AS)?g.pl(function(){F.iR()||F.Zv||Pto(F)},b):Pto(F)}else!F.videoData.T.C&&hw(F.videoData)&&F.N8(new w9(F.videoData.videoId||"",4)); F.Z$();X03(J).then(function(){var I={};F.KL(I);F.rD.hJ()&&F.S("html5_log_media_perf_info")&&F.UQ("av1Info",I);mP(F)})}}; dgm=function(F){F.iR();F.logger.debug("try finish readying playback");if(F.KA.finished)F.logger.debug("already finished readying");else if(F.zz.finished)if(g.x(F.playerState,128))F.logger.debug("cannot finish readying because of error");else if(F.CN.length)F.logger.debug(function(){return"cannot finish readying because of pending preroll: "+F.CN}); else if(F.f8.started||zr7(F.f8),F.Bx())F.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{F.Zv&&(F.f6=vmJ(F.Zv.timing));F.KA.finished||(F.KA.finished=!0);var J=F.S("html5_onesie_live")&&F.Zv&&!isNaN(F.Zv.Gj);!F.videoData.isLivePlayback||F.videoData.Kk>0&&!qb(F.videoData)||J||Mg(F)||(F.logger.debug("seek to head for live"),F.seekTo(Infinity,{Ky:"videoplayer_readying",seekSource:18}),F.isBackground()&&(F.Ci=!0));FQ_(F.zF());F.logger.debug("finished readying playback"); F.publish("playbackready",F);Dj("pl_c",F.qW.timerName)||(F.qW.tick("pl_c"),Oz("pl_c",void 0,"video_to_ad"));Dj("pbr",F.qW.timerName)||(F.qW.tick("pbr"),Oz("pbr",void 0,"video_to_ad"))}else F.logger.debug("playback data not loaded")}; qg=function(F,J){F.nN&&Bo3(F);F.nN=new g.b6(J*1E3,0x7ffffffffffff);F.nN.namespace="endcr";F.addCueRange(F.nN)}; Bo3=function(F){F.removeCueRange(F.nN);F.nN=null}; ToJ=function(F,J,b,I,u){var w=F.zF(u),M=g.oH(F.videoData)?w.getVideoData():F.videoData;M.U=b;var q=g.WO(F);b=new G1o(M,b,J,q?q.itag:"",I);F.rD.experiments.pW("html5_refactor_sabr_video_format_selection_logging")?(b.videoId=u,F.mN=b):w.K_(b);u=F.ji;u.U=0;u.C=0;F.publish("internalvideoformatchange",M,J==="m")}; g.WO=function(F){var J=E$(F);return Fh(J)||!F.Pg?null:g.xL(F.Pg.C.videoInfos,function(b){return J.Z(b)})}; E$=function(F){if(F.Pg){var J=F.ji;var b=F.Pg;F=F.YA();var I=T9m(J);if(Fh(I)){if(I=P23(J,b).compose(YEz(J,b)).compose(C2a(J,b)).compose(O7a(J,b.videoData)).compose(oa3(J,b.videoData,b)).compose(fj(J,b)).compose(SEm(J,b)),Fh(F)||J.S("html5_apply_pbr_cap_for_drm"))I=I.compose(so_(J,b))}else J.S("html5_perf_cap_override_sticky")&&(I=I.compose(fj(J,b))),J.S("html5_ustreamer_cap_override_sticky")&&(I=I.compose(so_(J,b)));I=I.compose(SEm(J,b));J=b.videoData.hG.compose(I).compose(b.videoData.VZ).compose(F)}else J= QE;return J}; FZa=function(F){var J=F.ji;F=F.videoData;var b=O7a(J,F);J.S("html5_disable_client_autonav_cap_for_onesie")||b.compose(oa3(J,F));return b}; mP=function(F){if(F.videoData.T&&F.videoData.T.C){var J=E$(F);F.Zv&&UF7(F.Zv,J)}}; rZ7=function(F){var J;return!!(F.S("html5_native_audio_track_switching")&&g.ia&&((J=F.videoData.U)==null?0:t1(J)))}; S$7=function(F){if(!rZ7(F))return!1;var J;F=(J=F.mediaElement)==null?void 0:J.audioTracks();return!!(F&&F.length>1)}; Y$G=function(F){var J=sXm(F);if(J)return F.videoData.getAvailableAudioTracks().find(function(b){return b.j3.getName()===J})}; sXm=function(F){var J;if(F=(J=F.mediaElement)==null?void 0:J.audioTracks())for(J=0;J<F.length;++J){var b=F[J];if(b.enabled)return b.label}}; $gG=function(F){var J,b=F.videoData.getAvailableAudioTracks(),I=F.videoData.HQ;I&&(J=b.find(function(w){return w.getLanguageInfo().id===I})); if(F.rD.experiments.pW("enable_audio_description_setting")&&g.Rg(g.Qe(),198)){b=g.N(b);for(var u=b.next();!u.done;u=b.next())if(u=u.value,u.D){J=u;break}}J||(F=F.getAudioTrack(),J=F.j3.isDefault?void 0:F);return J}; Pto=function(F){for(var J=F.videoData.C,b=g.N(Object.entries({cpn:F.videoData.clientPlaybackNonce,c:F.rD.C.c,cver:F.rD.C.cver})),I=b.next();!I.done;I=b.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;for(var w=g.N(Object.values(J.C)),M=w.next();!M.done;M=w.next())COz(M.value.gw,I,u);w=void 0;(w=J.Y)==null||COz(w,I,u)}b=F.rD;I=F.videoData;J=new g.R04(b);u=QZ7({hasSubfragmentedFmp4:I.hasSubfragmentedFmp4,I0:I.I0});J.Y=u;J.Gj=I.maxReadAheadMediaTimeMs/1E3||J.Gj;u=b.schedule;u.T.X3()===u.policy.T? J.Kk=10:J.Kk=I.minReadAheadMediaTimeMs/1E3||J.Kk;J.jm=I.readAheadGrowthRateMs/1E3||J.jm;J.mq=!Uo();g.jB(b)||!Uo()?(u=b.experiments,J.dD=8388608,J.cN=524288,J.Dc=5,J.zj=1048576,J.TZ=1.5,J.LW=4587520,hR()&&(J.LW=786432),J.N*=1.1,J.Tj*=1.1,J.YH=!0,J.ir=u.pW("persist_disable_player_preload_on_tv")||u.pW("persist_disable_player_preload_on_tv_for_living_room")||!1):b.U&&(J.N*=1.3,J.Tj*=1.3);g.B4&&g.D$("crkey")&&(u=b.C.cmodel==="CHROMECAST/ANCHOVY",J.dD=20971520,J.cN=1572864,u&&(J.LW=812500,J.xH=1E3,J.tG= 5,J.zj=2097152));g.Yj&&(J.YH=!0);b.supportsGaplessAudio()||(J.eD=!1);tg&&(J.g9=!0);J.K7=b.S("html5_peak_shave");I.fetchType==="onesie"&&b.S("html5_disable_peak_shave_for_onesie")&&(J.K7=!1);var q;u=(q=I.C)==null?void 0:vd(q);if(qb(I)){J.IP=!0;J.G8||(J.wX=!0);J.If=!0;J.XI=!0;J.N5=!0;if(I.latencyClass==="ULTRALOW"||I.latencyClass==="LOW"&&!b.S("html5_disable_low_pipeline"))J.Pn=2,J.xx=4;J.E2=I.defraggedFromSubfragments;if(I.Uo||b.S("html5_publish_all_cuepoints"))J.TX=!0;g.dS(I)&&(J.xm=!1);J.nL=g.dX(b)}I.isAd()&& (J.T8=0,J.iJ=0);J.LF=b.S("html5_enable_subsegment_readahead_v3")||b.S("html5_ultra_low_latency_subsegment_readahead")&&I.latencyClass==="ULTRALOW";J.T=b.hJ();Ll()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.C.cmodel)&&!b.S("html5_disable_move_pssh_to_moov")&&u&&(J.YH=!1);w=0;b.S("html5_live_use_alternate_bandwidth_window_sizes")&&(w=b.schedule.policy.C,I.isLivePlayback&&(w=g.eB(b.experiments,I.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":I.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window": "html5_live_normal_latency_bandwidth_window")||w));q=b.schedule;q.U.Z=qb(I)?.5:0;if(!q.policy.U&&w&&(q=q.T,w=Math.round(w*q.resolution),w!==q.C)){M=Array(w);var v=Math.min(w,q.T?q.C:q.U),a=q.U-v;a<0&&(a+=q.C);for(var e=0;e<v;++e)M[e]=q.values[(a+e)%q.C];for(;e<w;++e)M[e]=Infinity;q.C=w;q.values=M;q.U=v%w;q.T=v===w;q.Y8=!0;q.D=YRm(q)}I.isLivePlayback&&(J.eB=g.eB(b.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,J.KW=!1);I.So()&&(J.KW=!1);vE(I)&&(J.LF=!0,I.latencyClass=== "LOW"?J.M0=g.eB(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):I.latencyClass==="ULTRALOW"&&(J.M0=g.eB(b.experiments,"html5_jumbo_ull_subsegment_readahead_target")),J.aX=!0);I.MW()&&(J.jn=1.3);J.g9=J.g9||I.h5;J.Q2=(J.Q2||I.Q2)&&b.V;J.Wu=b.S("html5_sunset_aac_high_codec_family");J.U=g.oH(I);J.Om=I.Y||J.U&&!b.S("html5_enable_ssap_seteos");b.hJ()&&(J.bR=!0);I.Y&&!u&&(J.dk=!0);I.Y&&I.isAd()&&(J.N*=1.6,J.Tj*=1.6);hw(I)&&(J.Z=I.videoId,J.Ar=!0,J.PC=100,I.F$&&I.F$.length>0&&(J.D4=I.F$)); J.B9=I.PS;J.hN=j$(b,{},I.T||void 0,Jw(I));J.nW=Fc(I)&&g.sV(b);bE(I)&&(b.S("html5_sabr_allow_video_keyframe_without_audio")&&(J.xo=!0),b.S("html5_sabr_report_partial_segment_estimated_duration")&&(J.uK=!0),J.C=!0,J.lJ=b.S("html5_sabr_enable_utc_seek_requests"),J.fN=b.S("html5_sabr_enable_live_clock_offset"),J.Sl=b.S("html5_disable_client_resume_policy_for_sabr"),J.ul=b.S("html5_trigger_loader_when_idle_network"),J.cE=b.S("html5_sabr_parse_live_metadata_playback_boundaries"),J.LI=b.S("html5_enable_platform_backpressure_with_sabr"), J.c5=b.S("html5_consume_onesie_next_request_policy_for_sabr"),J.Ao=b.S("html5_sabr_report_next_ad_break_time"),J.GH=b.S("html5_log_high_res_buffer_timeline")&&b.hJ(),J.s8=b.S("html5_remove_stuck_slices_beyond_max_buffer_limits"),J.zd=b.S("html5_gapless_sabr_btl_last_slice")&&LC(I),J.QF=b.S("html5_reset_last_appended_slice_on_seek")&&LC(I),qb(I)?(J.XZ=!0,J.v0=b.S("html5_disable_variability_tracker_for_live"),J.Jz=b.S("html5_sabr_use_accurate_slice_info_params"),b.S("html5_simplified_backup_timeout_sabr_live")&& (J.Px=!0,J.xH=J.sW)):J.MI=b.S("html5_probe_request_on_sabr_request_progress"),J.Cu=b.S("html5_serve_start_seconds_seek_for_post_live_sabr"),J.Vk=b.S("html5_flush_index_on_updated_timestamp_offset"),J.qf=b.S("html5_enable_sabr_request_pipelining")&&!g.oH(I),J.Uk=b.S("html5_ignore_partial_segment_from_live_readahead"),J.KI=b.S("html5_use_non_active_broadcast_for_post_live"),J.WN=b.S("html5_use_centralized_player_time"),J.In=b.S("html5_consume_onesie_sabr_seek"),J.eE=b.S("html5_enable_sabr_seek_loader_refactor"), J.hG=b.S("html5_update_segment_start_time_from_media_header"),I.enableServerStitchedDai&&(J.D=!0,J.Op=b.S("html5_reset_server_stitch_state_for_non_sabr_seek"),J.ZT=b.S("html5_remove_ssdai_append_pause"),J.oI=b.S("html5_consume_ssdai_info_with_streaming"),J.R5=b.S("html5_process_all_cuepoints")));J.W=J.C&&b.S("html5_sabr_live");J.Um=g.wNC(I);g_(b.D,mp.BITRATE)&&(J.LW=NaN);if(q=g.eB(b.experiments,"html5_request_size_max_kb"))J.zj=q*1024;b.D.D?J.GU="; "+mp.EXPERIMENTAL.name+"=allowed":b.S("html5_enable_cobalt_tunnel_mode")&& (J.GU="; tunnelmode=true");q=I.serverPlaybackStartConfig;(q==null?0:q.enable)&&(q==null?0:q.playbackStartPolicy)&&(J.fL=!0,Ro(J,q.playbackStartPolicy,2));q=$gG(F);F.JI.removeAll();a:{b=F.t_.S$;if(I=F.videoData.videoId)if(u=b.C.get(I)){b.C.remove(I);b=u;break a}b=void 0}F.Zv=new g.wr(F,F.rD.schedule,J,F.videoData.C,F.videoData.T,E$(F),q,F.videoData.enableServerStitchedDai,b,F.videoData.zj);J=F.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&F.videoData.isLivePlayback&&F.wK()?!0:F.kc&& g.jB(F.rD)&&F.videoData.isLivePlayback;F.Zv.initialize(F.getCurrentTime(),E$(F),J);F.videoData.probeUrl&&(F.Zv.Jz=F.videoData.probeUrl);if(F.CN.length||F.kc)F.videoData.cotn||jL(F,!1);OjJ(F.dY,F.Zv);F.xl&&(mbv(F.Zv,new g.vg(F.xl)),F.UQ("sdai",{sdl:1}));F.II&&(F.Zv.pQ(F.II),F.dY.V=!1);g.UW(F.videoData)&&(F=F.Zv,F.policy.rZ=F.policy.jY)}; lt=function(F){F.Zv&&(F.Zv.dispose(),F.Zv=null,OjJ(F.dY,null));F.wZ()?Ctz(F):F.vl()}; Ctz=function(F){if(F.HN)if(F.logger.debug("release media source"),F.Ul(),F.HN.D)try{F.rD.hJ()&&F.UQ("rms",{l:"vprms",sr:F.wZ(),rs:ce(F.HN)});F.HN.clear();var J;(J=F.mediaElement)!=null&&(J.U=F.HN);F.HN=null}catch(b){J=new g.hC("Error while clearing Media Source in VideoPlayer: "+b.name+", "+b.message),J=Gj(J),F.handleError(J),F.vl()}else F.vl()}; XO_=function(F,J){J=J===void 0?!1:J;if(F.HN)return F.HN.T;F.logger.debug("update media source");a:{J=J===void 0?!1:J;try{g.O6()&&F.videoData.rH()&&jJa(F.mediaElement);var b=F.mediaElement.SS(F.cQ(),F.yw())}catch(u){if(N9G(F.Qd,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",u);F.Je("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}F.w5(b,!1,!1,J)}var I;return((I=F.SS())==null?void 0:I.T)||null}; QXo=function(F,J){J=J===void 0?!1:J;if(F.Zv){var b=F.getCurrentTime()-F.Xq();F.Zv.seek(b,{g$:J}).rX(function(){})}else Pto(F)}; DgG=function(F,J,b,I){b=b===void 0?!1:b;I=I===void 0?!1:I;if(F.HN&&(!J||F.HN===J)){F.logger.debug("media source opened");var u=F.getDuration();!u&&qb(F.videoData)&&(u=25200);if(F.HN.isView){var w=u;F.logger.debug(function(){return"Set media source duration to "+w+", video duration "+u}); w>F.HN.getDuration()&&ROa(F,w)}else ROa(F,u);o$z(F.Zv,F.HN,b,I);F.publish("mediasourceattached")}}; ROa=function(F,J){if(F.HN){F.HN.GI(J);var b;(b=F.Zv)!=null&&b.policy.WN&&(b.W=J)}}; n$v=function(F,J){ToJ(F,J.reason,J.C.info,J.token,J.videoId)}; kx7=function(F,J){F.rD.experiments.pW("enable_adb_handling_in_sabr")&&(F.pauseVideo(!0),F.Ir(),J&&F.Je("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; Ng=function(F,J){F.publish("internalvideodatachange",J===void 0?"dataupdated":J,F,F.videoData)}; O1J=function(F){for(var J=g.N("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),b=J.next();!b.done;b=J.next())F.Jl.B(F.mediaElement,b.value,F.X8,F);F.rD.fD&&F.mediaElement.Yx()&&(F.Jl.B(F.mediaElement,"webkitplaybacktargetavailabilitychanged",F.om_,F),F.Jl.B(F.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",F.JJv,F))}; hO3=function(F){g.ii(F.Eh);ocz(F)||(F.Eh=g.g$(function(){return ocz(F)},100))}; ocz=function(F){var J=F.mediaElement;J&&F.F9&&!F.videoData.Gj&&!Dj("vfp",F.qW.timerName)&&J.kR()>=2&&!J.isEnded()&&qt(J.Z4())>0&&F.qW.tick("vfp");return(J=F.mediaElement)&&!F.videoData.Gj&&J.getDuration()>0&&(J.isPaused()&&J.kR()>=2&&qt(J.Z4())>0&&(Dj("pbp",F.qW.timerName)||F.qW.tick("pbp"),!F.videoData.XI||F.sB||J.isSeeking()||(F.sB=!0,F.publish("onPlaybackPauseAtStart"))),J=J.getCurrentTime(),nj(F.dI,J))?(F.v8(),!0):!1}; UgC=function(F){F.zF().aP();if(Aw(F.videoData)&&Date.now()>F.s9+6283){if(!(!F.isAtLiveHead()||F.videoData.C&&pW(F.videoData.C))){var J=F.zF();if(J.qoe){J=J.qoe;var b=J.provider.wD.Jt(),I=g.dr(J.provider);gbz(J,I,b);b=b.T;isNaN(b)||g.VT(J,I,"e2el",[b.toFixed(3)])}}F.S("html5_alc_live_log_rawlat")?(J=F.videoData,J=g.dX(J.J())?!0:g.O7(J.J())?J.Gc==="6":!1):J=g.dX(F.rD);J&&F.UQ("rawlat",{l:K1(F.Yq,"rawlivelatency").toFixed(3)});F.s9=Date.now()}F.videoData.U&&t1(F.videoData.U)&&(J=F.I3())&&J.videoHeight!== F.gH&&(F.gH=J.videoHeight,ToJ(F,"a",cZo(F,F.videoData.bR)))}; cZo=function(F,J){if(J.C.video.quality==="auto"&&t1(J.getInfo())&&F.videoData.g9)for(var b=g.N(F.videoData.g9),I=b.next();!I.done;I=b.next())if(I=I.value,I.getHeight()===F.gH&&I.C.video.quality!=="auto")return I.getInfo();return J.getInfo()}; NoG=function(F){if(!Aw(F.videoData))return NaN;var J=0;F.Zv&&F.videoData.C&&(J=qb(F.videoData)?F.Zv.zS.X3()||0:F.videoData.C.kQ);return(0,g.jR)()/1E3-F.Ze()-J}; ncz=function(F){F.mediaElement&&F.mediaElement.Hh()&&(F.bf=(0,g.jR)());F.rD.lJ?g.pl(function(){xga(F)},0):xga(F)}; xga=function(F){var J;if((J=F.HN)==null||!J.yB()){if(F.mediaElement)try{F.Mw=F.mediaElement.playVideo()}catch(I){f1(F,"err."+I)}if(F.Mw){var b=F.Mw;b.then(void 0,function(I){F.logger.debug(function(){return"playMediaElement failed: "+I}); if(!g.x(F.playerState,4)&&!g.x(F.playerState,256)&&F.Mw===b)if(I&&I.name==="AbortError"&&I.message&&I.message.includes("load"))F.logger.debug(function(){return"ignore play media element failure: "+I.message}); else{var u="promise";I&&I.name&&(u+=";m."+I.name);f1(F,u);F.eb=!0;F.videoData.GU=!0}})}}}; f1=function(F,J){g.x(F.playerState,128)||(F.gY(wM(F.playerState,1028,9)),F.UQ("dompaused",{r:J}),F.publish("onAutoplayBlocked"))}; yM=function(F,J){J=J===void 0?!1:J;if(!F.mediaElement||!F.videoData.T)return!1;var b=J;b=b===void 0?!1:b;var I=null;var u;if((u=F.videoData.T)==null?0:u.C){I=XO_(F,b);var w;(w=F.Zv)==null||w.resume()}else lt(F),F.videoData.bR&&(I=F.videoData.bR.DB());u=F.mediaElement.EP();b=!1;u&&u.Hg(I)||(tLk(F,I),b=!0);g.x(F.playerState,2)||(I=F.dY,J=J===void 0?!1:J,I.D||!(I.Z>0)||I.mediaElement&&I.mediaElement.getCurrentTime()>0||(J={Ky:"seektimeline_resumeTime",g$:J},I.videoData.Gj||(J.seekSource=15),I.seekTo(I.Z, J)));a:{J=b;if(bE(F.videoData)){if(!F.videoData.So())break a}else if(!g.yR(F.videoData))break a;if(F.mediaElement)if((I=F.videoData.D)&&F.mediaElement.Yx()){u=F.mediaElement.Pb();if(F.Le)if(u!==F.Le.element)Gx(F);else if(J&&I.flavor==="fairplay"&&!oR())Gx(F);else break a;if(F.S("html5_report_error_for_unsupported_tvos_widevine")&&oR()&&I.flavor==="widevine")F.Je("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{F.Le=new I6a(u,F.videoData,F.rD);F.Le.subscribe("licenseerror", F.LJ,F);F.Le.subscribe("qualitychange",F.HyE,F);F.Le.subscribe("heartbeatparams",F.Nq,F);F.Le.subscribe("keystatuseschange",F.mw,F);F.Le.subscribe("ctmp",F.UQ,F);F.S("html5_widevine_use_fake_pssh")&&!F.videoData.isLivePlayback&&I.flavor==="widevine"&&F.Le.vc(new u2(Z1z,"cenc",!1));J=g.N(F.JI.keys);for(I=J.next();!I.done;I=J.next())I=F.JI.get(I.value),F.Le.vc(I);F.S("html5_eme_loader_sync")||F.JI.removeAll()}}else F.Je("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return b}; tLk=function(F,J){F.qW.tick("vta");Oz("vta",void 0,"video_to_ad");F.getCurrentTime()>0&&US7(F.dY,F.getCurrentTime());F.mediaElement.activate(J);F.HN&&Fs(0,4);!F.videoData.Gj&&F.playerState.isOrWillBePlaying()&&F.tY.start();if(rZ7(F)){var b;if(J=(b=F.mediaElement)==null?void 0:b.audioTracks())J.onchange=function(){F.publish("internalaudioformatchange",F.videoData,!0)}}}; Gx=function(F){F.Le&&(F.Le.dispose(),F.Le=null)}; H1G=function(F){var J=J===void 0?!1:J;F.logger.debug("reattachVideoSource");F.mediaElement&&(F.HN?(Gx(F),F.vl(),XO_(F,J)):(F.videoData.bR&&F.videoData.bR.TK(),F.mediaElement.stopVideo()),F.playVideo())}; LPa=function(F,J){F.rD.S("html5_log_rebuffer_reason")&&(J={r:J,lact:dP()},F.mediaElement&&(J.bh=ZO(F.mediaElement)),F.UQ("bufreason",J))}; FXC=function(F,J){if(F.rD.hJ()&&F.mediaElement){var b=F.mediaElement.Cy();b.omt=(F.mediaElement.getCurrentTime()+F.Xq()).toFixed(3);b.ps=F.playerState.state.toString(16);b.rt=(g.dr(F.zF().provider)*1E3).toFixed();b.e=J;F.Q3[F.uY++%5]=b}try{if(J==="timeupdate"||J==="progress")return}catch(I){}F.logger.debug(function(){return"video element event "+J})}; J2m=function(F){if(F.rD.hJ()){F.Q3.sort(function(I,u){return+I.rt-+u.rt}); for(var J=g.N(F.Q3),b=J.next();!b.done;b=J.next())b=b.value,F.UQ("vpe",Object.assign({t:b.rt},b));F.Q3=[];F.uY=0}}; bV4=function(F){if(g.D$("cobalt")&&g.D$("nintendo switch")){var J=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;F.UQ("nxdock",{d:J})}}; jL=function(F,J){var b;(b=F.Zv)==null||AX(b,J)}; mdm=function(F,J){return g.oH(F.videoData)&&F.II?F.II.handleError(J,void 0):!1}; Ecv=function(F){Mb(F.videoData,"html5_set_debugging_opt_in")&&(F=g.Qe(),g.Rg(0,183)||(kq(183,!0),F.save()))}; Iga=function(F){return g.oH(F.videoData)&&F.II?LS(F.II):F.videoData.lC()}; fha=function(F,J){F.t_.W9()||(F.UQ("sgap",{f:J}),F.t_.clearQueue(!1,J==="pe"))}; Mg=function(F){return F.S("html5_disable_video_player_initiated_seeks")&&bE(F.videoData)}; uN_=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"isLifaAdPlaying",function(){return J.api.isLifaAdPlaying()}); this.events.B(F,"serverstitchedvideochange",function(){J.api.isLifaAdPlaying()?(J.playbackRate=J.api.getPlaybackRate(),J.api.setPlaybackRate(1)):J.api.setPlaybackRate(J.playbackRate)}); this.playbackRate=1}; wUv=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"seekToChapterWithAnimation",function(b){J.seekToChapterWithAnimation(b)}); by(this.api,"seekToTimeWithAnimation",function(b,I){J.seekToTimeWithAnimation(b,I)}); by(this.api,"renderChapterSeekingAnimation",function(b,I,u){J.api.renderChapterSeekingAnimation(b,I,u)}); by(this.api,"setMacroMarkers",function(b){J.setMacroMarkers(F,b)}); by(this.api,"changeMarkerVisibility",function(b,I,u){J.changeMarkerVisibility(b,I,u)}); by(this.api,"isSameMarkerTypeVisible",function(b){return J.isSameMarkerTypeVisible(b)})}; Mn7=function(F,J,b){var I=F.api.getCurrentTime()*1E3<J?1:-1;F.api.renderChapterSeekingAnimation(I,b);F.api.seekTo(J/1E3,void 0,void 0,void 0,3)}; A2Y=function(F,J){var b,I;return(b=qs(F,"macroMarkersListEntity",J))==null?void 0:(I=b.markersList)==null?void 0:I.markerType}; qO4=function(F,J){var b=g.ZR.getState().entities;F=A2Y(b,F);J=g.N(J.cN);for(var I=J.next();!I.done;I=J.next())if(F===A2Y(b,I.value))return!0;return!1}; VM=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"videodatachange",function(){J.updateMetadata()}); this.events.B(F,"presentingplayerstatechange",function(){v0a(J)})}; PO=function(F,J){try{navigator.mediaSession.setActionHandler(F,J)}catch(b){}}; agC=function(F){PO("play",function(){F.api.playVideo()}); PO("pause",function(){F.api.pauseVideo()}); PO("seekbackward",function(){F.api.seekBy(-5*F.api.getPlaybackRate())}); PO("seekforward",function(){F.api.seekBy(5*F.api.getPlaybackRate())}); PO("seekto",function(J){((J=J.seekTime)||F.api.S("web_player_misc_bugfix_a")&&J!=null)&&F.api.seekTo(J)})}; eT7=function(F){var J,b,I,u;return(J=F.api.getVideoData().getWatchNextResponse())==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:(u=I.browserMediaSession)==null?void 0:u.browserMediaSessionRenderer}; KXa=function(F){var J=[];if(!F||!F.thumbnails)return J;F=g.N(F.thumbnails);for(var b=F.next();!b.done;b=F.next())b=b.value,b.url&&(!b.width||b.width<=0||!b.height||b.height<=0||g.LT(b.url)&&J.push({src:b.url||"",sizes:b.width+"x"+b.height,type:"image/jpeg"}));return J}; v0a=function(F){F=F.api.getPlayerStateObject();F=F.isCued()||F.isError()?"none":F.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=F}; pUz=function(F){var J=F.api.getProgressState().seekableEnd;J&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:J,playbackRate:F.api.getPlaybackRate(),position:F.api.getCurrentTime()})}; BO=function(F){oj.call(this,F);var J=this;this.U=new Map;this.T=this.C=void 0;this.compositeVideoState=null;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"modulecreated",function(b){var I;a:{var u,w,M,q=(u=J.api.getVideoData())==null?void 0:(w=u.getPlayerResponse())==null?void 0:(M=w.overlay)==null?void 0:M.playerControlsOverlayRenderer;if(q&&(u=g.O(q.compositeVideoOverlay,g07),u==null?0:(I=u.sources)==null?0:I.length))for(I=g.N(u==null?void 0:u.sources),u=I.next();!u.done;u=I.next())if(u= u.value,u.isActive){I=u;break a}I=void 0}b==="captions"&&(I==null?void 0:I.topLeftCornerX)!==void 0&&(I==null?void 0:I.topLeftCornerY)!==void 0&&(I==null?void 0:I.width)!==void 0&&(I==null?void 0:I.height)!==void 0&&J.api.po({top:I.topLeftCornerY,right:1-I.topLeftCornerX-I.width,bottom:1-I.topLeftCornerY-I.height,left:I.topLeftCornerX})}); this.events.B(F,"videodatachange",function(b){var I=J.api.getVideoData();J.C=void 0;J.U.clear();J.api.Yo("compositeembargo",1);var u=I==null?void 0:I.J5.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(u==null?0:u.length)?maz(J,u.filter(function(w){return y2_(J,w)})):(I==null?0:I.cueRanges)&&maz(J,I.cueRanges.filter(function(w){return y2_(J,w)})); b==="dataupdated"&&(I==null?void 0:I.compositeLiveStatusToken)!==J.T&&(J.T=I==null?void 0:I.compositeLiveStatusToken,J.api.B5())}); this.events.B(F,g.u6("compositeembargo"),function(b){var I;if(((I=J.C)==null?void 0:I.id)!==b.id&&(J.api.rT(!0),J.U.has(b.id))){var u=J.U.get(b.id);I=J.api.getVideoData();u=g.N(u);for(var w=u.next();!w.done;w=u.next()){var M=void 0;w=(M=w.value.compositeEmbargo)==null?void 0:M.embargoStatusToken;I.xx!==w&&(I.xx=w,J.api.B5());iVC(J,b)}}}); this.events.B(F,g.wq("compositeembargo"),function(b){var I;if(((I=J.C)==null?void 0:I.id)===b.id&&(J.api.rT(!1),J.U.has(b.id))){if(b=J.api.getVideoData())b.xx=void 0;J.api.B5();iVC(J)}}); this.events.B(F,"heartbeatRequest",function(b){J.compositeVideoState!==null&&(b.playbackState||(b.playbackState={}),b.playbackState.compositeVideoState=J.compositeVideoState)}); this.events.B(F,"onPlaybackAudioChange",function(){J.api.B5()}); by(F,"setCompositeParam",function(b){J.compositeVideoState=b})}; iVC=function(F,J){var b;((b=F.C)==null?void 0:b.id)!==(J==null?void 0:J.id)&&(F.C&&(F.U.delete(F.C.id),F.api.L4([F.C],1)),F.C=J)}; maz=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){var I=b.value,u=void 0;b=Number((u=I.playbackRelativePosition)==null?void 0:u.utcTimeMs)/1E3;var w=void 0;u=b+Number((w=I.duration)==null?void 0:w.seconds);w="composite_embargo_"+b;I.onEnter&&(I=I.onEnter.filter(F.Z),I.length&&(F.U.set(w,I),F.api.addUtcCueRange(w,b,u,"compositeembargo",!1)))}}; y2_=function(F,J){var b;return(b=J.onEnter)==null?void 0:b.some(F.Z)}; zTz=function(F){oj.call(this,F);by(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));by(this.api,"updateDownloadState",this.updateDownloadState.bind(this));by(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));by(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));by(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));by(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));by(this.api,"setUpPositionSyncInterval", this.setUpPositionSyncInterval.bind(this))}; Tx=function(F){oj.call(this,F);var J=this;by(F,"getAvailableQualityData",function(){return J.getAvailableQualityData()}); by(F,"getAvailableQualityDataAndMessaging",function(){return J.getAvailableQualityDataAndMessaging()})}; NAC=function(F,J,b){var I=[],u=J?156595:151874;F=g.N(F);for(var w=F.next();!w.done;w=F.next()){var M=w.value;w=M.video;M={formatId:M.id,qualityLabel:w.qualityLabel,quality:w.quality,isPlayable:J};if(w=b.get(w.qualityLabel))M.paygatedQualityDetails={paygatedIndicatorText:w.paygatedIndicatorText,endpoint:w.endpoint,veType:u,trackingParams:w.trackingParams};I.push(M)}return I}; lg_=function(F){for(var J=0,b=0;b<F.length;b++)if(F[b].paygatedQualityDetails){var I=F[b];F.splice(b,1);F.splice(J,0,I);J++}}; fga=function(F){var J=new Set,b=new Map,I={};F=g.N(F);for(var u=F.next();!u.done;u=F.next()){u=u.value;var w=u.quality,M=u.isPlayable,q=u.qualityLabel;q&&w&&(M&&b.has(w)&&b.get(w)!==q?J.add(w):M&&b.set(w,q),I[q]||(I[q]=u))}b=[];I=g.N(Object.values(I));for(F=I.next();!F.done;F=I.next())u=F.value,(F=u.quality)&&!J.has(F)&&(u.formatId=void 0),b.push(u);return b}; ro=function(F){oj.call(this,F);var J=this;this.T=1;this.qW=null;this.Po={BfQ:function(){return J.T}}; this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"d6de4videobindingchange",function(b){J.JM(b)}); this.events.B(F,"csiinitialized",function(){WX7(J)})}; WX7=function(F){if(da3()){F.qW=F.api.Iu();F.C=new xn;F.T=2;var J=g.eB(F.api.J().experiments,"html5_d6de4_defer_timeout_ms");F.qW.QJ("pt_pish");J?g.pl(function(){E07(F)},J):F.api.S("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){E07(F)}):E07(F)}}; E07=function(F){if(da3()){F.qW=F.api.Iu();var J=g.eB(F.api.J().experiments,"html5_d6de4_cloud_project_number");F.qW.QJ("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:J}).then(function(I){F.U=I;var u;(u=F.C)==null||u.resolve();F.qW.QJ("pt_pif")}).catch(function(I){SL(I,"player_start"); F.qW.QJ("pt_pie");var u;(u=F.C)==null||u.reject(I)})}catch(I){SL(I,"player_start_catch"); F.api.UQ("pfes",{});var b;(b=F.C)==null||b.reject(I)}}}; jsa=function(F,J){if(F.U&&!F.S("html5_disable_d6de4_mint_debug")){var b=J.videoId;F.T=3;F.qW.QJ("pt_ms");try{F.U.requestToken(b).then(function(I){F.qW.QJ("pt_mf");if(I=Iw(I))J.Cl={H7G:I}}).catch(function(I){F.qW.QJ("pt_me"); SL(I,"player_generate");F.handleError(I,J)})}catch(I){SL(I,"player_generate_catch"),F.handleError(I,J)}}}; GN7=function(F,J){F.api.S("html5_enable_d6de4_cold_start_and_error")&&(J.Cl={coldStartInfo:{clientState:F.T}})}; SL=function(F,J){F.message&&g.rQ(Error(J+"_"+F.message))}; da3=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; s$=function(F){g.U.call(this,{X:"button",Dv:["ytp-pip-button","ytp-button"],L:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},j:[Pak()]});var J=this;this.api=F;this.listen("click",this.onClick);var b=this.api.o6(),I=b.subscribe("visibilitystatechange",function(){J.VG(b.JN())}); this.addOnDisposeCallback(function(){b.gB(I)}); zP(F,this.element,this);this.VG(b.JN())}; Yc=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"standardControlsInitialized",function(){J.createButton()}); g.hP(this.api.J())&&(this.S("web_watch_pip")||this.S("web_shorts_pip"))&&by(this.api,"setDocumentPictureInPicture",function(b){J.setDocumentPictureInPicture(b)})}; Vn4=function(F){var J=F.api.getVideoData();F.button.wY(J.FK)}; Pda=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"musicDisableUi",function(){g.uG(J.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); by(this.api,"musicEnableUi",function(){g.Mr(J.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; XI=function(F,J,b){J=J===void 0?!0:J;b=b===void 0?!1:b;g.U.call(this,{X:"div",K:"ytp-suggested-action"});var I=this;this.G=F;this.Om=this.eE=this.Gj=this.Tj=this.Z=this.Y=this.expanded=this.enabled=this.Jz=!1;this.zj=this.G.S("delhi_modern_web_player")?40:34;this.bR=new g.ty(function(){I.badge.element.style.width=""},200,this); this.dD=new g.ty(function(){$c(I);C1(I)},200,this); this.dismissButton=new g.U({X:"button",Dv:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.k(this,this.dismissButton);this.T=new g.U({X:"div",K:"ytp-suggested-action-badge-expanded-content-container",j:[{X:"label",K:"ytp-suggested-action-badge-title",sQ:"{{badgeLabel}}"},this.dismissButton]});g.k(this,this.T);this.fW=new g.U({X:"div",K:"ytp-suggested-action-badge-icon-container",j:[J?{X:"div",K:"ytp-suggested-action-badge-icon"}:""]});g.k(this,this.fW);this.badge=new g.U({X:b?"div": "button",Dv:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],j:[this.fW,this.T]});g.k(this,this.badge);this.badge.Az(this.element);this.N=new g.ZU(this.badge,250,!1,100);g.k(this,this.N);this.nW=new g.ZU(this.T,250,!1,100);g.k(this,this.nW);this.cN=new g.n8(this.Zv_,null,this);g.k(this,this.cN);this.oI=new g.n8(this.h9,null,this);g.k(this,this.oI);g.k(this,this.bR);g.k(this,this.dD);this.G.createServerVe(this.badge.element,this.badge,!0);this.G.createServerVe(this.dismissButton.element, this.dismissButton,!0);this.B(this.G,"onHideControls",function(){I.jC(!1)}); this.B(this.G,"onShowControls",function(){I.jC(!0)}); this.B(this.badge.element,"click",this.aD);this.B(this.dismissButton.element,"click",this.tx);this.B(this.G,"pageTransition",this.ye);this.B(this.G,"appresize",this.sY);this.B(this.G,"fullscreentoggled",this.fyE);this.B(this.G,"cardstatechange",this.I7Q);this.B(this.G,"annotationvisibility",this.phW,this);this.B(this.G,"offlineslatestatechange",this.YVG,this)}; $c=function(F){g.qr(F.badge.element,"ytp-suggested-action-badge-with-controls",F.Gj||!F.Y)}; C1=function(F,J){var b=F.DS();F.expanded!==b&&(F.expanded=b,J===void 0||J?(F.cN.stop(),F.oI.stop(),F.bR.stop(),F.cN.start()):(F.T.wY(F.expanded),g.qr(F.badge.element,"ytp-suggested-action-badge-expanded",F.expanded)),F.gh())}; BAz=function(F){var J=F.text||"",b=g.c1("ytp-suggested-action-badge-title",F.element);b&&g.wK(b,J);F.badge.element.setAttribute("aria-label",J);F.dismissButton.element.setAttribute("aria-label",F.KW?F.KW:"")}; QM=function(F,J,b,I,u,w){var M={X:"div",K:"ytp-panel"};if(b){var q="ytp-panel-back-button";var v="ytp-panel-title";var a={X:"div",K:"ytp-panel-header",j:[{X:"div",Dv:["ytp-panel-back-button-container"],j:[{L:{"aria-label":"Back to previous menu"},X:"button",Dv:["ytp-button",q]}]},{X:"span",Dv:[v],L:F.S("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,j:[b]}]};if(u){var e="ytp-panel-options";a.j.push({X:"button",Dv:["ytp-button",e],j:[I]})}M.j=[a]}I=!1;w&&(w={X:"div", K:"ytp-panel-footer",j:[w]},I=!0,M.j?M.j.push(w):M.j=[w]);g.vi.call(this,M);this.content=J;I&&M.j?J.Az(this.element,M.j.length-1):J.Az(this.element);this.qn=!1;this.O6=I;b&&(b=this.RI(v),this.B(this.RI(q),"click",this.uw),this.B(b,"click",this.uw),this.qn=!0,u&&this.B(this.RI(e),"click",u));J.subscribe("size-change",this.gV,this);this.B(F,"fullscreentoggled",this.gV);this.G=F}; g.RX=function(F,J,b,I,u,w){J=J===void 0?null:J;var M={role:"menu"};J&&(M.id=J);J=new g.vi({X:"div",K:"ytp-panel-menu",L:M});QM.call(this,F,J,b,I,u,w);this.menuItems=J;this.items=[];g.k(this,this.menuItems)}; g.Dx=function(F){for(var J=g.N(F.items),b=J.next();!b.done;b=J.next())b.value.unsubscribe("size-change",F.tT,F);F.items=[];try{g.J6(F.menuItems.element)}catch(w){var I,u;g.rQ(new g.hC("Failed to remove menu items from panel menu.",{error:w.message,originalStack:w.stack,childToBeRemoved:(u=(I=F.menuItems.element.firstChild)==null?void 0:I.textContent)!=null?u:"child element not found"}))}F.menuItems.publish("size-change")}; TAa=function(F,J){return J.priority-F.priority}; g.kc=function(F,J){g.YJ.call(this,F,{X:"div",Dv:["ytp-popup",J||""]},100,!0);this.C=[];this.V=this.W=null;this.maxHeight=this.maxWidth=0;this.size=new g.gl(0,0);this.listen("keydown",this.cW)}; r2k=function(F){var J=F.C[F.C.length-1];if(J){g.lu(F.element,F.maxWidth||"100%",F.maxHeight||"100%");g.aN(J.element,"width","");g.aN(J.element,"height","");g.aN(J.element,"maxWidth","100%");g.aN(J.element,"maxHeight","100%");g.aN(J.content.element,"height","");var b=g.fL(J.element);b.width+=1;b.height+=1;g.aN(J.element,"width",b.width+"px");g.aN(J.element,"height",b.height+"px");g.aN(J.element,"maxWidth","");g.aN(J.element,"maxHeight","");var I=0;J.qn&&(I=g.fL(J.RI("ytp-panel-header")).height);var u= 0;J.O6&&(u=J.RI("ytp-panel-footer"),g.aN(u,"width",b.width+"px"),u=g.fL(u).height);g.aN(J.content.element,"height",b.height-I-u+"px");J.element instanceof HTMLElement&&(I=J.element,u=I.scrollWidth-I.clientWidth,I.offsetWidth-I.clientWidth>0&&u>0&&(b.width+=u,g.aN(J.element,"width",b.width+"px")));F.size=b}}; g.O$=function(F,J){var b=F.C[F.C.length-1];b!==J&&(F.C.push(J),SOC(F,b,J))}; g.oX=function(F){if(!(F.C.length<=1)){var J=F.C.pop(),b=F.C[0];F.C=[b];SOC(F,J,b,!0)}}; SOC=function(F,J,b,I){ssG(F);J&&(J.unsubscribe("size-change",F.vp,F),J.unsubscribe("back",F.qL,F));b.subscribe("size-change",F.vp,F);b.subscribe("back",F.qL,F);if(F.uT){g.uG(b.element,I?"ytp-panel-animate-back":"ytp-panel-animate-forward");b.Az(F.element);b.focus();F.element.scrollLeft=0;F.element.scrollTop=0;var u=F.size;r2k(F);g.lu(F.element,u);F.W=new g.ty(function(){YOk(F,J,b,I)},20,F); F.W.start()}else b.Az(F.element),J&&J.detach()}; YOk=function(F,J,b,I){F.W.dispose();F.W=null;g.uG(F.element,"ytp-popup-animating");I?(g.uG(J.element,"ytp-panel-animate-forward"),g.Mr(b.element,"ytp-panel-animate-back")):(g.uG(J.element,"ytp-panel-animate-back"),g.Mr(b.element,"ytp-panel-animate-forward"));g.lu(F.element,F.size);F.V=new g.ty(function(){g.Mr(F.element,"ytp-popup-animating");J.detach();g.An(J.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);F.V.dispose();F.V=null},250,F); F.V.start()}; ssG=function(F){F.W&&g.HQ(F.W);F.V&&g.HQ(F.V)}; hZ=function(F){g.kc.call(this,F,"ytp-shopping-product-menu");this.RH=new g.RX(this.G);g.k(this,this.RH);this.hide();g.O$(this,this.RH);g.Pp(this.G,this.element,4)}; Cdz=function(F,J,b){var I,u=J==null?void 0:(I=J.text)==null?void 0:I.simpleText;u&&(b=$aY(F,b,u,J==null?void 0:J.icon,J==null?void 0:J.secondaryIcon),J.navigationEndpoint&&b.listen("click",function(){F.G.jE("innertubeCommand",J.navigationEndpoint);F.hide()},F))}; XUo=function(F,J,b){var I,u=J==null?void 0:(I=J.text)==null?void 0:I.simpleText;u&&$aY(F,b,u,J==null?void 0:J.icon).listen("click",function(){var w;(J==null?void 0:(w=J.icon)==null?void 0:w.iconType)==="HIDE"?F.G.publish("featuredproductdismissed"):J.serviceEndpoint&&F.G.jE("innertubeCommand",J.serviceEndpoint);F.hide()},F)}; $aY=function(F,J,b,I,u){J=new g.Rj(g.Dd({},[],!1,!!u),J,b);u&&J.updateValue("secondaryIcon",Qso(u));J.setIcon(Qso(I));g.k(F,J);F.RH.V6(J,!0);return J}; Qso=function(F){if(!F)return null;switch(F.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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 fZ_();case "HIDE":return{X:"svg",L:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"g",j:[{X:"path",L:{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 fr()}}; cO=function(F){XI.call(this,F,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.U({X:"button",Dv:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.k(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.U({X:"img",K:"ytp-suggested-action-badge-img",L:{src:"{{url}}"}}); this.thumbnailImage.hide();g.k(this,this.thumbnailImage);this.thumbnailIcon=new g.U({X:"div",K:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.k(this,this.thumbnailIcon);this.banner=new g.U({X:"a",K:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{X:"div",K:"ytp-suggested-action-details",j:[{X:"text",K:"ytp-suggested-action-title",sQ:"{{title}}"},{X:"text",K:"ytp-suggested-action-subtitle",sQ:"{{subtitle}}"},{X:"text",K:"ytp-suggested-action-metadata-text", sQ:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.k(this,this.banner);this.banner.Az(this.T.element);this.B(this.G,"videodatachange",this.onVideoDataChange);this.B(this.G,g.u6("suggested_action_view_model"),this.qIQ);this.B(this.G,g.wq("suggested_action_view_model"),this.iyf);this.B(this.overflowButton.element,"click",this.Lr);this.B(F,"featuredproductdismissed",this.tx);this.G.createServerVe(this.banner.element,this.banner,!0)}; RT7=function(F){F.isInitialized&&(F.enabled=F.isVisible,F.eE=F.isVisible,C1(F),F.sY(),F.thumbnailImage.wY(F.isVisible),F.shouldHideDismissButton||F.dismissButton.wY(F.isVisible),F.shouldShowOverflowButton&&F.overflowButton.wY(F.isVisible))}; U$=function(){cO.apply(this,arguments)}; DaY=function(F){oj.call(this,F);this.C=new U$(this.api);g.k(this,this.C);g.Pp(this.api,this.C.element,4)}; xc=function(F){oj.call(this,F);var J=this;this.C="";this.T=!0;this.U=this.api.S("html5_enable_audio_track_stickiness_phase_two");var b=new g.s5(F);g.k(this,b);b.B(F,"internalaudioformatchange",function(I,u){kNz(J,I,u)}); b.B(F,"videoplayerreset",function(){OVk(J)}); b.B(F,"videodatachange",function(I,u){J.onVideoDataChange(I,u)})}; kNz=function(F,J,b){if(b){var I="";o0J(F,J)&&(I=J,F.U||(F.C=J),F.api.S("html5_sabr_enable_server_xtag_selection")&&(b=F.api.getVideoData(void 0,!0)))&&(b.HQ=J);if(F.U&&I&&hTo(F,I)){var u;A8(FR(F.api.J(),(u=F.api.getVideoData())==null?void 0:g.ks(u)),function(w){c2z(F,I,w)})}}}; OVk=function(F){if(F.C)Ua7(F);else{var J;if(F.U&&((J=Xa())==null?0:J.size)){var b;A8(FR(F.api.J(),(b=F.api.getVideoData())==null?void 0:g.ks(b)),function(I){if((I=xaJ(I))&&hTo(F,I)){var u=F.api.getVideoData(void 0,!0);u&&(u.HQ=I)}})}}}; Ua7=function(F){var J=F.api.getVideoData(void 0,!0);J&&(J.HQ=F.C)}; c2z=function(F,J,b){xaJ(b)!==J&&(n0k([{settingItemId:n1(b),settingOptionValue:{stringValue:J}}]),A8(F.n8(),function(I){w8G(I,n1(b),{stringValue:J})}))}; tnY=function(F,J){q7(A8(A8(F.n8(),function(b){return I4o(b,[n1(J)])}),function(b){if(b){b=g.N(b); for(var I=b.next();!I.done;I=b.next()){var u=I.value;I=u.key;u=u.value;I&&u&&n0k([{settingItemId:I,settingOptionValue:u}])}}}),function(){F.T=!0})}; o0J=function(F,J){F=F.api.getAvailableAudioTracks();F=g.N(F);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.getLanguageInfo().getId()===J)return b;return null}; xaJ=function(F){F=n1(F);var J=Xa();F=J?J.get(F):void 0;return F&&F.stringValue?F.stringValue:""}; n1=function(F){var J=(484).toString();F&&(J=(483).toString());return J}; hTo=function(F,J){var b;return J.split(".")[0]!==""&&((b=F.api.getVideoData())==null?void 0:!oU(b))}; n0k=function(F){var J=Xa();J||(J=new Map);F=g.N(F);for(var b=F.next();!b.done;b=F.next())b=b.value,J.set(b.settingItemId,b.settingOptionValue);J=JSON.stringify(Object.fromEntries(J));g.rm("yt-player-user-settings",J,2592E3)}; g.tZ=function(F,J,b,I,u,w,M){g.Rj.call(this,g.Dd({"aria-haspopup":"true"}),J,F);this.Rf=I;this.Y=!1;this.T=null;this.options={};this.U=new g.RX(b,void 0,F,u,w,M);g.k(this,this.U);this.listen("keydown",this.IS);this.listen("click",this.open)}; ZVJ=function(F){if(F.T){var J=F.options[F.T];J.element.getAttribute("aria-checked");J.element.setAttribute("aria-checked","false");F.T=null}}; HVk=function(F,J){g.tZ.call(this,"Sleep timer",g.Ia.SLEEP_TIMER,F,J);this.G=F;this.N={};this.W=this.Wz("Off");this.V=this.C="";F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.Z=new g.U({X:"div",Dv:["ytp-menuitem-label-wrapper"],j:[{X:"div",sQ:"End of video"},{X:"div",Dv:["ytp-menuitem-sublabel"],sQ:"{{content}}"}]});g.k(this,this.Z);this.listen("click",this.onClick);this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"presentingplayerstatechange",this.VG);this.B(F,"settingsMenuVisibilityChanged",this.Ys_);F.createClientVe(this.element,this,218889);this.VG();this.G.jE("onSleepTimerFeatureAvailable")}; LXY=function(F){var J="Off 10 15 20 30 45 60".split(" "),b;((b=F.G.getVideoData())==null?0:b.isLivePlayback)||J.push("End of video");b=F.G.getPlaylist();var I;b&&((I=b.listId)==null?void 0:I.type)!=="RD"&&J.push("End of playlist");F.Wx(g.EG(J,F.Wz));F.N=g.mF(J,F.Wz,F);J=F.Wz("End of video");F.options[J]&&g.Q_(F.options[J],F.Z)}; FGk=function(F,J){var b=F.N[J],I=b==="End of video"||b==="End of playlist";b==="Off"&&(F.C="");F.G.getPlayerState()!==0&&F.G.getPlayerState()!==5||!I?(F.W=J,g.tZ.prototype.qE.call(F,J),F.oQ(J),F.G.jE("onSleepTimerSettingsChanged",b)):F.G.jE("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; Zx=function(F){oj.call(this,F);var J=this;F.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new HVk(J.api,J.api.z6()),g.k(J,J.menuItem))}); F.addEventListener("openSettingsMenuItem",function(b){if(b==="menu_item_sleep_timer"){if(!J.menuItem){var I;(I=J.api.z6())==null||I.Bo()}J.menuItem.open()}}); by(F,"resetSleepTimerMenuSettings",function(){J.resetSleepTimerMenuSettings()}); by(F,"setSleepTimerTimeLeft",function(b){J.setSleepTimerTimeLeft(b)}); by(F,"setVideoTimeLeft",function(b){J.setVideoTimeLeft(b)})}; Jqa=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"onSnackbarMessage",function(b){switch(b){case 1:b=J.api.getPlayerStateObject(),b.isBuffering()&&g.x(b,8)&&g.x(b,16)&&J.api.jE("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.L1=function(F,J,b,I,u){J=J===void 0?!1:J;I=I===void 0?!1:I;u=u===void 0?!1:u;g.uA.call(this);this.N=u;this.V=!1;this.Z=new j9(this);this.D=this.W=null;this.T=this.U=!1;g.k(this,this.Z);this.target=F;this.C=J;this.Y=b||F;this.V=I;J&&(g.xM&&this.target.setAttribute("draggable","true"),u||(this.target.style.touchAction="none"));HO(this)}; FN=function(F){g.Ve(F.Z,!F.C)}; HO=function(F){F.D=null;F.W=null;F.B(J2("over"),F.YW);F.B("touchstart",F.tZ);F.C&&F.B(J2("down"),F.Sm_)}; bnC=function(F,J){for(var b=0;b<J.changedTouches.length;b++){var I=J.changedTouches[b];if(I.identifier===F.W)return I}return null}; J2=function(F){return window.navigator.msPointerEnabled?"MSPointer"+F.charAt(0).toUpperCase()+F.substring(1):"mouse"+F}; bd=function(F){return F&&Ib3?Xl(F)||document:document}; uG_=function(F,J){g.U.call(this,{X:"div",Dv:["ytp-overlay","ytp-speedmaster-overlay"],j:[{X:"div",K:"ytp-speedmaster-user-edu",j:[{X:"div",K:"ytp-speedmaster-label",sQ:J},{X:"div",K:"ytp-speedmaster-icon",sQ:"{{icon}}"}]}]});this.G=F;this.C=this.RI("ytp-speedmaster-user-edu");this.updateValue("icon",lZJ());g.uG(this.C,"ytp-speedmaster-has-icon");this.G.createClientVe(this.C,this,173040,!0);this.QN()}; ud=function(F){oj.call(this,F);var J=this;this.Z=this.T=!1;this.dD=g.eB(this.api.J().experiments,"speedmaster_touch_activation_ms")||500;this.Gj=g.eB(this.api.J().experiments,"speedmaster_cancellation_movement_dp")||10;this.qf=g.eB(this.api.J().experiments,"speedmaster_playback_rate")||2;this.U=new g.s5(F);g.k(this,this.U);this.N="2x";this.speedmasterUserEdu=new uG_(F,this.N);g.k(this,this.speedmasterUserEdu);g.Pp(this.api,this.speedmasterUserEdu.element,4);this.C=new g.L1(this.api.mG().N1,!0,null, !1,!0);g.k(this,this.C);this.delay=new g.ty(this.WN,this.dD,this);g.k(this,this.delay);this.U.B(F,"videodatachange",function(){Is(J)},this); this.U.B(F,"presentingplayerstatechange",function(){Is(J)},this); this.U.B(F,"autonavvisibility",function(){Is(J)},this); this.api.o6().subscribe("visibilitystatechange",function(){Is(J)}); this.U.B(F,"rootnodemousedown",function(b){J.V=b}); this.S("web_speedmaster_spacebar_control")&&(this.U.B(F,"keyboardserviceglobalkeydown",function(b,I){J.Tj=I;wmY(J,b,!0)},this),this.U.B(F,"keyboardserviceglobalkeyup",function(b){wmY(J,b,!1)},this))}; wA=function(F){F.delay.stop();F.C.unsubscribe("dragmove",F.W,F);F.C.unsubscribe("dragend",F.D,F);F.T&&(F.T=!1,F.speedmasterUserEdu.QN(),F.api.setPlaybackRate(F.kQ),F.api.showControls(),F.fW&&F.api.pauseVideo())}; wmY=function(F,J,b){b?J.keyCode!==32||J.repeat||F.T||!F.Z||g.Z_(F.delay):wA(F)}; Is=function(F){var J,b;var I=!!F.N&&!((J=F.api.getVideoData())==null?0:J.isLivePlayback)&&!F.api.w6()&&F.api.getPresentingPlayerType()!==2&&!g.x(F.api.getPlayerStateObject(),2)&&!((b=g.aj(F.api))==null?0:b.Ru())&&!F.api.isEmbedsShortsMode()&&NS(F.api.o6());F.Z!==I&&(F.Z=I,F.Z?F.C.subscribe("dragstart",F.eE,F):(F.C.unsubscribe("dragstart",F.eE,F),F.C.unsubscribe("dragmove",F.W,F),F.C.unsubscribe("dragend",F.D,F),wA(F)))}; McG=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"addPlayerResponseForAssociation",function(b){J.api.addPlayerResponseForAssociation(b)}); by(this.api,"finishSegmentByCpn",function(b,I,u){return J.api.finishSegmentByCpn(b,I,u)}); this.events.B(F,"modulecreated",function(b){if(b==="ad"&&(b=J.api.getVideoData(1))&&(b=b.getPlayerResponse())){var I;b=(I=b.adPlacements)!=null?I:[];I=g.N(b);for(var u=I.next();!u.done;u=I.next()){var w=b=void 0,M=void 0;if(u=(b=u.value.adPlacementRenderer)==null?void 0:(w=b.renderer)==null?void 0:(M=w.instreamVideoAdRenderer)==null?void 0:M.playerVars)b=FF(u),J.api.addPlayerResponseForAssociation({playerVars:b})}}}); this.events.B(F,"videodatachange",function(b,I){J.onVideoDataChange(b,I)})}; Ma=function(F,J,b){g.SX.call(this,J,F);this.C=b}; g.A2=function(F){nB.call(this);var J=this;this.C=F;this.D={};this.listener=function(b){J.dispatchEvent(new Ma(J,b.type,b))}}; qbG=function(F){var J=F.getVideoData(),b=F.Qa(),I=b.Pb(),u=F.J(),w=F.o0(),M=w.rh_,q=w.suI,v=K1(q,"bandwidth")*8/1024,a=K1(q,"networkactivity")/1024,e=K1(q,"bufferhealth"),K=w.d2,p=w.playerState.state.toString(16),m=b.getCurrentTime().toFixed(2),y=u1(b.Z4(),",",3),f="";if(J.isDaiEnabled()){J.enableServerStitchedDai&&(f+=J.vP?"DS":"SS");f=J.vV()?f+"LIFA, ":f+"DAI, ";var d=w.pH;d&&(f+=d)}OW(J)&&!J.vV()&&(f+="LIFAE, ");var G;((G=F.getVideoData(1))==null?0:g.oH(G))?(f+="SSAP, ",(d=w.pH)&&(f+=d)):bE(J)&& (f+="SABR, ");if(J.fetchType){switch(J.fetchType){case "onesie":d="o";break;case "gp":d="gp";break;default:d="gvi"}f+="vd:"+d+", "}u.PV&&(f=u.PV.xf?f+"wa, ":f+"w, ");f+="s:"+p+" t:"+m+" b:"+y+" ";b.isSeeking()&&(f+="S");b.isPaused()&&(f+="P");b.isEnded()&&(f+="E");F.isOrchestrationLeader()&&(f+=" L");(b=w.DC)&&(f+=" l:"+b.toFixed());b=w.currentTime;u=J.BO;b&&b>u.start&&b<u.end&&(f+=" as");b=f;f=g.tE(Sl)("_start",void 0);u=[];p=g.N(["pl_i","vir","or_p","orfb","pbs"]);for(m=p.next();!m.done;m=p.next())m= m.value,(y=g.tE(Sl)(m,void 0))&&f&&(y-=f,u.push(m+":"+Math.round(y)));f=u.join(" ");u=g.ow();p=g.V_(F).VEQ;m=J.T&&!J.T.C?"display:none":"";if((y=J.clientPlaybackNonce)&&y.length==16){y+="AAAA";d=0;G="";for(var P=0;P<20;P++)if(d=(d<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(y.charAt(P)),P%5==4){for(var r="",Q=0;Q<6;Q++)r="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(d&31)+r,d>>=5;G+=r}y=G.substr(0,4)+" "+G.substr(4,4)+" "+G.substr(8,4)+" "+(G.substr(12,4)+" "+G.substr(16, 4))}else y="";v={video_id_and_cpn:String(J.videoId)+" / "+y,codecs:"",dims_and_frames:"",bandwidth_kbps:v.toFixed(0)+" Kbps",buffer_health_seconds:e.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:K?"":"display:none",drm:K,debug_info:b,extra_debug_info:"",bandwidth_style:m,network_activity_style:m,network_activity_bytes:a.toFixed(0)+" KB",shader_info:p,shader_info_style:p?"":"display:none",playback_categories:""};a=I.clientWidth+"x"+I.clientHeight+(u>1?"*"+u.toFixed(2):"");e="-";M.totalVideoFrames&& (e=(M.droppedVideoFrames||0)+" dropped of "+M.totalVideoFrames);v.dims_and_frames=a+" / "+e;F=F.getVolume();M=uZ_(J);var D;a=((D=J.Z)==null?0:D.audio.C)?"DRC":Math.round(F*M)+"%";D=Math.round(F)+"% / "+a;F=J.LF.toFixed(1);isFinite(Number(F))&&(D+=" (content loudness "+F+"dB)");v.volume=D;v.resolution=I.videoWidth+"x"+I.videoHeight;if(I=J.U){if(D=I.video)F=D.fps,F>1&&(v.resolution+="@"+F),(F=w.DYD)&&F.video&&(v.resolution+=" / "+F.video.width+"x"+F.video.height,F.video.fps>1&&(v.resolution+="@"+F.video.fps)), v.codecs=Aqa(I),!J.Z||I.audio&&I.video?I.zg&&(v.codecs+=" / "+I.zg+"A"):v.codecs+=" / "+Aqa(J.Z),D.U||D.primaries?(F=D.U||"unknown",F==="smpte2084"?F+=" (PQ)":F==="arib-std-b67"&&(F+=" (HLG)"),v.color=F+" / "+(D.primaries||"unknown"),v.color_style=""):v.color_style="display:none";if(I.debugInfo)for(v.fmt_debug_info="",I=g.N(I.debugInfo),D=I.next();!D.done;D=I.next())D=D.value,v.fmt_debug_info+=D.label+":"+D.text+" ";v.fmt_debug_info_style=v.fmt_debug_info&&v.fmt_debug_info.length>0?"":"display:none"}I= J.isLivePlayback;D=J.SF;v.live_mode_style=I||D?"":"display:none";v.live_latency_style=I?"":"display:none";if(D)v.live_mode="Post-Live"+(qb(J)?" Manifestless":"");else if(I){D=K1(q,"livelatency");v.live_latency_secs=D.toFixed(2)+"s";I=qb(J)?"Manifestless, ":"";J.fW&&(I+="Windowed, ");F="Uncertain";if(D>=0&&D<120)if(J.latencyClass&&J.latencyClass!=="UNKNOWN")switch(J.latencyClass){case "NORMAL":F="Optimized for Normal Latency";break;case "LOW":F="Optimized for Low Latency";break;case "ULTRALOW":F="Optimized for Ultra Low Latency"; break;default:F="Unknown Latency Setting"}else F=J.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";I+=F;(D=w.xYj)&&(I+=", seq "+D.sequence);v.live_mode=I}!w.isGapless||LC(J)&&w.W9||(v.playback_categories+="Gapless ");v.playback_categories_style=v.playback_categories?"":"display:none";v.bandwidth_samples=eL(q,"bandwidth");v.network_activity_samples=eL(q,"networkactivity");v.live_latency_samples=eL(q,"livelatency");v.buffer_health_samples=eL(q,"bufferhealth");w=g.UW(J); if(J.cotn||w)v.cotn_and_local_media=(J.cotn?J.cotn:"null")+" / "+w;v.cotn_and_local_media_style=v.cotn_and_local_media?"":"display:none";Mb(J,"web_player_release_debug")?(v.release_name="youtube.player.web_20250218_01_RC00",v.release_style=""):v.release_style="display:none";v.debug_info&&f.length>0&&v.debug_info.length+f.length<=60?v.debug_info+=" "+f:v.extra_debug_info=f;v.extra_debug_info_style=v.extra_debug_info&&v.extra_debug_info.length>0?"":"display:none";return v}; Aqa=function(F){var J=/codecs="([^"]*)"/.exec(F.mimeType);return J&&J[1]?J[1]+" ("+F.itag+")":F.itag}; qa=function(F,J,b,I,u){g.U.call(this,{X:"div",K:"ytp-horizonchart"});this.V=J;this.sampleCount=b;this.Z=I;this.W=u;this.index=0;this.heightPx=-1;this.T=this.U=null;this.C=Math.round(F/b);this.element.style.width=this.C*this.sampleCount+"px";this.element.style.height=this.V+"em"}; vU=function(F,J){if(F.heightPx===-1){var b=null;try{b=g.H1("CANVAS"),F.U=b.getContext("2d")}catch(q){}if(F.U){var I=F.C*F.sampleCount;F.T=b;F.T.width=I;F.T.style.width=I+"px";F.element.appendChild(F.T)}else for(F.sampleCount=Math.floor(F.sampleCount/4),F.C*=4,b=0;b<F.sampleCount;b++)I=g.H1("SPAN"),I.style.width=F.C+"px",I.style.left=F.C*b+"px",F.element.appendChild(I)}b=F.element.clientHeight||24;b!==F.heightPx&&(F.heightPx=b,F.U&&(b=(window.devicePixelRatio||1)>1?2:1,F.T.height=F.heightPx*b,F.T.style.height= F.heightPx+"px",F.U.scale(1,b)));J=g.N(J);for(I=J.next();!I.done;I=J.next()){b=F;var u=F.index,w=I.value;for(I=0;I+2<b.Z.length&&b.Z[I+1]<w;)I++;w=Math.min(1,(w-b.Z[I])/(b.Z[I+1]-b.Z[I]));if(b.U)b.U.fillStyle=b.W[I],b.U.fillRect(u*b.C,0,b.C,b.heightPx),b.U.fillStyle=b.W[I+1],b.U.fillRect(u*b.C,b.heightPx*(1-w),b.C,b.heightPx);else{u=b.element.children[u];var M=window.devicePixelRatio||1;w=Math.min(b.heightPx,Math.round(b.heightPx*w*M)/M)||0;u.style.height=w+"px";u.style.backgroundColor=b.W[I+1];u.style.borderTop= "solid "+(b.heightPx-w)+"px "+b.W[I]}F.index=(F.index+1)%F.sampleCount}J=F.index;F.U?F.U.clearRect(J*F.C,0,F.C,F.heightPx):(F=F.element.children[J],F.style.height="0px",F.style.borderTop="")}; as=function(F){var J=null;J={X:"button",Dv:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],L:{title:"close"},sQ:"[X]"};g.U.call(this,{X:"div",Dv:["html5-video-info-panel","ytp-sfn"],j:[J,{X:"div",Dv:["html5-video-info-panel-content","ytp-sfn-content"],j:[{X:"div",j:[{X:"div",sQ:"Video ID / sCPN"},{X:"span",sQ:"{{video_id_and_cpn}}",K:"ytp-sfn-cpn"}]},{X:"div",j:[{X:"div",sQ:"Viewport / Frames"},{X:"span",sQ:"{{dims_and_frames}}"}]},{X:"div",j:[{X:"div",sQ:"Current / Optimal Res"},{X:"span", sQ:"{{resolution}}"}]},{X:"div",j:[{X:"div",sQ:"Volume / Normalized"},{X:"span",sQ:"{{volume}}"}]},{X:"div",j:[{X:"div",sQ:"Codecs"},{X:"span",sQ:"{{codecs}}"}]},{X:"div",L:{style:"{{shader_info_style}}"},j:[{X:"div",sQ:"Shader Info"},{X:"span",sQ:"{{shader_info}}"}]},{X:"div",L:{style:"{{color_style}}"},j:[{X:"div",sQ:"Color"},{X:"span",sQ:"{{color}}"}]},{X:"div",L:{style:"{{drm_style}}"},j:[{X:"div",sQ:"Protected"},{X:"span",sQ:"{{drm}}"}]},{X:"div",L:{style:"{{bandwidth_style}}"},j:[{X:"div",sQ:"Connection Speed"}, {X:"span",j:[{X:"span",sQ:"{{bandwidth_chart}}"},{X:"span",sQ:"{{bandwidth_kbps}}"}]}]},{X:"div",L:{style:"{{network_activity_style}}"},j:[{X:"div",sQ:"Network Activity"},{X:"span",j:[{X:"span",sQ:"{{network_activity_chart}}"},{X:"span",sQ:"{{network_activity_bytes}}"}]}]},{X:"div",j:[{X:"div",sQ:"Buffer Health"},{X:"span",j:[{X:"span",sQ:"{{buffer_health_chart}}"},{X:"span",sQ:"{{buffer_health_seconds}}"}]}]},{X:"div",L:{style:"{{live_latency_style}}"},j:[{X:"div",sQ:"Live Latency"},{X:"span",j:[{X:"span", sQ:"{{live_latency_chart}}"},{X:"span",sQ:"{{live_latency_secs}}"}]}]},{X:"div",L:{style:"{{live_mode_style}}"},j:[{X:"div",sQ:"Live Mode"},{X:"span",sQ:"{{live_mode}}"}]},{X:"div",L:{style:"{{playback_categories_style}}"},j:[{X:"div",sQ:"Playback Categories"},{X:"span",sQ:"{{playback_categories}}"}]},{X:"div",L:{style:"{{fmt_debug_info_style}}"},j:[{X:"div",sQ:"Format Debug Info"},{X:"span",sQ:"{{fmt_debug_info}}"}]},{X:"div",j:[{X:"div",sQ:"Mystery Text"},{X:"span",sQ:"{{debug_info}}"}]},{X:"div", L:{style:"{{extra_debug_info_style}}"},j:[{X:"div",sQ:""},{X:"span",j:[{X:"span",sQ:"{{extra_debug_info}}"}]}]},{X:"div",j:[{X:"div",sQ:"Date"},{X:"span",sQ:"{{date}}"}]},{X:"div",L:{style:"{{cotn_and_local_media_style}}"},j:[{X:"div",sQ:"COTN / Local Media"},{X:"span",sQ:"{{cotn_and_local_media}}"}]},{X:"div",L:{style:"{{release_style}}"},j:[{X:"div",sQ:"Player Release"},{X:"span",sQ:"{{release_name}}"}]}]}]});this.SE=F;this.position=0;this.W=!0;J?this.B(this.RI("ytp-sfn-close"),"click",this.hide): this.B(this.element,"click",this.hide);F=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];J="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var b=F.map(function(I){return I/4}); this.N={};this.C=new qa(300,1,150,F,J);g.k(this,this.C);this.updateValue("bandwidth_chart",this.C);this.T=new qa(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.k(this,this.T);this.updateValue("live_latency_chart",this.T);this.U=new qa(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.k(this,this.U);this.updateValue("buffer_health_chart",this.U);this.V=new qa(300,1,150,b,J);g.k(this,this.V);this.updateValue("network_activity_chart", this.V);this.delay=new g.ty(this.VG,500,this);g.k(this,this.delay);this.Z=new g.ty(this.Y,2E4,this);g.k(this,this.Z)}; eqa=function(F){oj.call(this,F);var J=this;by(F,"getStatsForNerds",function(){return qbG(J.api)}); Ij(F,"showVideoInfo",function(){vro(J,!0)}); Ij(F,"hideVideoInfo",function(){vro(J,!1)}); Ij(F,"isVideoInfoVisible",function(){return abo(J)})}; vro=function(F,J){var b=abo(F);F.C||(F.C=new as(F.api),g.k(F,F.C),g.Pp(F.api,F.C.element,4));F.C.wY(J);var I=dO(F.api.TF());I&&I.loaded&&b!==J&&I.NF();J&&F.api.UQ("sfn",{},!0)}; abo=function(F){var J;return!((J=F.C)==null||!J.uT)}; en=function(){g.R.call(this);this.U=null;this.startTime=this.duration=0;this.delay=new g.n8(this.C,null,this);g.k(this,this.delay)}; KG3=function(F,J){if(J.X==="path")return J.L.d;if(J.j)for(var b=0;b<J.j.length;b++){var I=J.j[b];if(I&&typeof I!=="string"&&(I=KG3(F,I)))return I}}; yqa=function(F,J,b){b=KG3(F,b);var I=J.getElementsByTagName("path")[0],u=I.getAttribute("d");if(I.getAttribute("id")){var w=wV();J=J.getElementsByTagName("use");for(var M=0;M<J.length;M++)J[M].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+w);I.setAttribute("id",w)}var q=pm7(u),v=pm7(b);grG(F,function(a){I.setAttribute("d",mHa(q,v,a))},200)}; grG=function(F,J,b){F.U=J;F.startTime=(0,g.jR)();F.duration=b;F.C()}; pm7=function(F){var J=[];F=F.match(inm);for(var b=0;b<F.length;b++){var I=F[b]===" "?NaN:Number(F[b]);J.push(isNaN(I)?F[b]:I)}return J}; mHa=function(F,J,b){for(var I="",u=0;u<F.length;u++){var w=F[u];I=typeof w==="number"?I+(w+(J[u]-w)*b):I+w}return I}; KV=function(F){g.U.call(this,{X:"button",Dv:["ytp-size-button","ytp-button"],L:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},sQ:"{{icon}}"});this.api=F;this.tD=null;this.transition=new en;g.k(this,this.transition);this.B(F,"sizestylechange",this.VG);this.B(F,"fullscreentoggled",this.VG);this.B(F,"presentingplayerstatechange",this.VG);F.createClientVe(this.element,this,139116);this.VG();this.listen("click",this.onClick);zP(F,this.element, this)}; zqm=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"standardControlsInitialized",function(){J.button=new KV(F);g.k(J,J.button);F.KO(J.button,"RIGHT_CONTROLS_RIGHT")})}; fbm=function(F){oj.call(this,F);var J=this,b={};this.W=(b.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},b.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(I){return Ns_(J,I)},b.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(I){return Ns_(J,I)},b); this.Z={};this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"videodatachange",function(I,u){if(I!=="dataupdated"||u.videoId!==J.videoId||!Mq(J.timelyActions,lbo(u)))J.onVideoDataChange(u)}); this.events.B(F,"presentingplayerstatechange",function(I){J.hh(I)}); this.events.B(F,g.u6("timelyAction"),function(I){J.onCueRangeEnter(I.getId())}); this.events.B(F,g.wq("timelyAction"),function(I){J.onCueRangeExit(I.getId())}); this.T=new g.U({X:"div",Dv:["ytp-player-content","ytp-timely-actions-content"]});this.T.hide();by(F,"insertTimelyActionUi",function(I){J.T.element.children.length>0&&g.J6(J.T.element);I.classList.add("ytp-timely-actions-overlay");J.T.element.appendChild(I)}); g.k(this,this.T);g.Pp(this.api,this.T.element,4)}; WGJ=function(F){F.timelyActions&&(F.Z=F.timelyActions.reduce(function(J,b){if(b.cueRangeId===void 0)return J;J[b.cueRangeId]=0;return J},{}))}; pV=function(F,J){if(F.timelyActions){F=g.N(F.timelyActions);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.cueRangeId===J)return b}}; dHz=function(F,J){if((F=pV(F,J))&&F.onCueRangeExit)return $W(F.onCueRangeExit)}; ErJ=function(F){if(F.C!==void 0){var J=(J=pV(F,F.C))&&J.onCueRangeEnter?$W(J.onCueRangeEnter):void 0;var b=pV(F,F.C);if(b&&b.additionalTrigger){var I=!1;for(var u=g.N(b.additionalTrigger),w=u.next();!w.done;w=u.next())w=w.value,w.type&&w.args&&F.W[w.type]!==void 0&&(I=I||F.W[w.type](w.args))}else I=!0;J&&I&&(F.api.jE("innertubeCommand",J),F.setTimeout(b),F.Z[F.C]!==void 0&&F.Z[F.C]++)}}; Ns_=function(F,J){return F.U===void 0?!1:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===5E3?F.U===72:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===1E4?F.U===74:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===5E3?F.U===71:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===1E4?F.U===73:!1}; lbo=function(F){if(F=F.getWatchNextResponse()){var J,b;F=(J=F.playerOverlays)==null?void 0:(b=J.playerOverlayRenderer)==null?void 0:b.timelyActionsOverlayViewModel;J=g.O(F,j9G);if(J!=null&&J.timelyActions)return J==null?void 0:J.timelyActions.map(function(I){return g.O(I,G4o)}).filter(function(I){return!!I})}}; Vca=function(F){oj.call(this,F);var J=this;Ij(this.api,"getPlaybackRate",function(){return J.api.getPlaybackRate()}); Ij(this.api,"setPlaybackRate",function(b){typeof b==="number"&&J.api.setPlaybackRate(b)})}; P_J=function(F){F=F.tF();if(!F)return!1;F=g.bi(F).exp||"";return F.includes("xpv")||F.includes("xpe")}; Bs3=function(F){F=g.N(g.gA(F,!0));for(var J=F.next();!J.done;J=F.next())if(P_J(J.value))return!0;return!1}; Ts3=function(F,J){F=g.N(g.gA(F,!0));for(var b=F.next();!b.done;b=F.next())if(b=b.value,P_J(b)){var I={potc:"1",pot:J};b.url&&(b.url=IR(b.url,I))}}; rqa=function(F){var J=new wjv,b={},I=(b["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",b);return new WR(J,F,function(){return I})}; Sba=function(F){return g.S(function(J){if(J.C==1)return g.lk(J,2),g.T(J,F,4);if(J.C!=2)return g.Wa(J,0);g.dY(J);g.N4(J)})}; yl=function(F){oj.call(this,F);var J=this;this.useLivingRoomPoToken=!1;this.Z=new g.m6;this.qW=null;this.V=!1;this.T=null;this.D=!1;var b=F.J().getWebPlayerContextConfig();this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"spsumpreject",function(I,u,w){J.D=u;I&&J.V&&!J.T&&(J.S("html5_generate_content_po_token")&&w?J.Bp(w):J.S("html5_generate_session_po_token")&&s9G(J));J.T||J.api.UQ("stp",{s:+J.V,b:+J.D})}); this.events.B(F,"poTokenVideoBindingChange",function(I){J.Bp(I)}); this.useLivingRoomPoToken=!(b==null||!b.useLivingRoomPoToken);F.addEventListener("csiinitialized",function(){J.qW=F.Iu();var I=(J.S("html5_generate_session_po_token")||J.S("html5_generate_content_po_token"))&&!J.useLivingRoomPoToken;try{if(J.S("html5_use_shared_owl_instance"))YbC(J);else if(I){J.qW.QJ("pot_isc");J.S("html5_new_wpo_client")||$H3(J);var u=g.eB(J.api.J().experiments,"html5_webpo_kaios_defer_timeout_ms");u?(J.S("html5_new_wpo_client")&&(J.U=UU()),g.pl(function(){mX(J)},u)):J.S("html5_webpo_idle_priority_job")? (J.S("html5_new_wpo_client")&&(J.U=UU()),g.tC(g.HK(),function(){mX(J)})):mX(J)}}catch(w){w instanceof Error&&g.rQ(w)}}); F.addEventListener("trackListLoaded",this.L8.bind(this));F.gm(this)}; C_a=function(F){var J=xj(F.experiments,"html5_web_po_request_key");return J?J:g.jB(F)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; id=function(F,J){if(F.S("html5_webpo_bge_ctmp")){var b,I={hwpo:!!F.C,hwpor:!((b=F.C)==null||!b.isReady())};F.api.UQ(J,I)}}; YbC=function(F){var J,b;g.S(function(I){if(I.C==1)return id(F,"swpo_i"),F.U=UU(),zN(F),g.T(I,PQ(),2);if(I.C!=3)return J=I.U,id(F,"swpo_co"),g.T(I,bLo(J),3);b=I.U;F.C=Xm3(F,b);id(F,"swpo_cc");F.C.ready().then(function(){F.Z.resolve();id(F,"swpo_re")}); g.pl(function(){mX(F);id(F,"swpo_si")},0); g.N4(I)})}; $H3=function(F){var J=F.api.J(),b=C_a(J),I=rqa(b);J=new tN({vJ:b,lB:I,onEvent:function(u){(u=Q9_[u])&&F.qW.QJ(u)}, onError:g.rQ,J$:NMz(J.experiments),l3:function(){return void F.api.UQ("itr",{})}, T6v:J.experiments.pW("html5_web_po_disable_remote_logging")||RqC.includes(g.Cu(J.ME)||"")});J.ready().then(function(){return void F.Z.resolve()}); g.k(F,J);F.C=J}; DH3=function(F){var J=F.api.J(),b=rqa(C_a(J)),I=b.vY.bind(b);b.vY=function(q){var v;return g.S(function(a){if(a.C==1)return g.T(a,I(q),2);v=a.U;F.api.UQ("itr",{});return a.return(v)})}; try{var u=new d8({lB:b,xu:{maxAttempts:5},qK:{disable:J.experiments.pW("html5_web_po_disable_remote_logging")||RqC.includes(g.Cu(J.ME)||""),jg:NMz(J.experiments),dW_:F.S("wpo_dis_lfdms")?0:1E3},DIv:g.rQ});var w=new cR({w0:u,lB:b,onError:g.rQ});Sba(w.Ey()).then(function(){return void F.Z.resolve()}); g.k(F,u);g.k(F,w);F.C=Xm3(F,w)}catch(q){g.rQ(q);var M;(M=u)==null||M.dispose()}}; mX=function(F){var J=F.api.J();F.qW.QJ("pot_ist");F.C?F.C.start():F.S("html5_new_wpo_client")&&DH3(F);F.S("html5_bandaid_attach_content_po_token")||(F.S("html5_generate_session_po_token")&&(zN(F),s9G(F)),J=g.eB(J.experiments,"html5_session_po_token_interval_time_ms")||0,J>0&&(F.W=g.g$(function(){zN(F)},J)),F.V=!0)}; zN=function(F){var J,b,I,u;g.S(function(w){if(!F.S("html5_generate_session_po_token")||F.useLivingRoomPoToken)return w.return();J=F.api.J();b=g.cT("EOM_VISITOR_DATA")||g.cT("VISITOR_DATA");I=J.Uk?J.datasyncId:b;u=xj(J.experiments,"html5_mock_content_binding_for_session_token")||J.livingRoomPoTokenId||I;J.jZ=Na(F,u);g.N4(w)})}; Na=function(F,J){if(!F.C)return F.U?F.U(J):"";try{var b=F.C.isReady();F.qW.QJ(b?"pot_cms":"pot_csms");var I="";I=F.S("html5_web_po_token_disable_caching")?F.C.fA({Gi:J}):F.C.fA({Gi:J,Oa:{DT:J,GFI:150,Fz:!0,l2:!0}});F.qW.QJ(b?"pot_cmf":"pot_csmf");if(b){var u;(u=F.T)==null||u.resolve();F.T=null;if(F.D){F.D=!1;var w;(w=F.api.app.F_())==null||w.AI(!1)}}return I}catch(M){return g.rQ(M),""}}; s9G=function(F){F.C&&(F.T=new xn,F.C.ready().then(function(){F.qW.QJ("pot_if");zN(F)}))}; Xm3=function(F,J){F.S("html5_web_po_token_disable_caching")||J.aA(150);var b=!1,I=Sba(J.Ey()).then(function(){b=!0}); return{isReady:function(){return b}, ready:function(){return I}, fA:function(u){return J.fA({Gi:u.Gi,xS:!0,Ft:!0,Oa:u.Oa?{DT:u.Oa.DT,Fz:u.Oa.Fz,l2:u.Oa.l2}:void 0})}, start:function(){}}}; k4C=function(F){oj.call(this,F);var J=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"heartbeatRequest",function(b){if(J.freePreviewUsageDetails.length||J.freePreviewWatchedDuration!==null)b.heartbeatRequestParams||(b.heartbeatRequestParams={}),b.heartbeatRequestParams.unpluggedParams||(b.heartbeatRequestParams.unpluggedParams={}),J.freePreviewUsageDetails.length>0?b.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= J.freePreviewUsageDetails:b.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+J.freePreviewWatchedDuration}}); by(F,"setFreePreviewWatchedDuration",function(b){J.freePreviewWatchedDuration=b}); by(F,"setFreePreviewUsageDetails",function(b){J.freePreviewUsageDetails=b})}; ld=function(F){g.R.call(this);this.features=[];var J=this.C,b=new NV(F),I=new ha(F),u=new Tx(F),w=new yl(F);var M=g.dX(F.J())?void 0:new ed(F);var q=new BO(F),v=new eqa(F),a=new Vca(F),e=new z9(F);var K=g.dX(F.J())?new k4C(F):void 0;var p=F.S("html5_enable_ssap")?new McG(F):void 0;var m=F.S("web_cinematic_watch_settings")&&(m=F.J().getWebPlayerContextConfig())!=null&&m.cinematicSettingsAvailable?new MV(F):void 0;var y=new iX(F);var f=F.S("enable_courses_player_overlay_purchase")?new m7G(F):void 0; var d=g.hP(F.J())?new e2k(F):void 0;var G=new Kc(F);var P=F.J().Z?new wXv(F):void 0;var r=g.dN(F.J())?new uaz(F):void 0;var Q=F.S("web_player_move_autonav_toggle")&&F.J().g9?new Zm7(F):void 0;var D=g.hP(F.J())?new wUv(F):void 0;var t=F.S("web_enable_speedmaster")&&g.hP(F.J())?new ud(F):void 0;var n=F.J().Tc?void 0:new zqm(F);var uk=F.S("report_pml_debug_signal")?new U0a(F):void 0;var AJ=new zTz(F),F7=new Yc(F);var h=F.S("enable_web_player_player_in_bar_feature")&&g.sV(F.J())?new Pda(F):void 0;var L= navigator.mediaSession&&window.MediaMetadata&&F.J().b1?new VM(F):void 0;var l=F.S("html5_enable_drc")&&!F.J().W?new aa(F):void 0;var c=new Uf(F);var Da=g.hP(F.J())?new DaY(F):void 0;var fz=F.S("html5_enable_d6de4")?new ro(F):void 0;var Kz=g.hP(F.J())&&F.S("web_sleep_timer")?new Zx(F):void 0;var Vz=g.dN(F.J())?new A8z(F):void 0;var Za=new xc(F),Ib=new AH(F),yU=new uN_(F);var E=F.S("enable_sabr_snackbar_message")?new Jqa(F):void 0;var V=F.S("web_enable_timely_actions")?new fbm(F):void 0;J.call(this, b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ,F7,h,void 0,L,l,c,void 0,Da,fz,Kz,Vz,void 0,Za,Ib,yU,void 0,E,V,new qV(F))}; fV=function(){this.U=this.C=NaN}; On3=function(F,J){this.rD=F;this.timerName="";this.T=!1;this.U=NaN;this.Z=new fV;this.C=J||null;this.T=!1}; orY=function(F,J,b){var I=g.Bu(J.PN)&&!J.PN.W;if(J.PN.PS&&(j8(J.PN)||J.PN.WN==="shortspage"||tP(J.PN)||I)&&!F.T){F.T=!0;F.W=J.clientPlaybackNonce;g.cT("TIMING_ACTION")||hE("TIMING_ACTION",F.rD.csiPageType);F.rD.csiServiceName&&hE("CSI_SERVICE_NAME",F.rD.csiServiceName);if(F.C){I=F.C.Iu();for(var u=g.N(Object.keys(I)),w=u.next();!w.done;w=u.next())w=w.value,XH(w,I[w],F.timerName);I=g.tE(XrG)(F.C.WY);g.Qk(I,F.timerName);I=F.C;I.U={};I.WY={}}g.Qk({playerInfo:{visibilityState:g.tE(CCv)()},playerType:"LATENCY_PLAYER_HTML5"}, F.timerName);F.D!==J.clientPlaybackNonce||Number.isNaN(F.U)||(Dj("_start",F.timerName)?b=g.tE(Sl)("_start",F.timerName)+F.U:g.rQ(new g.hC("attempted to log gapless pbs before CSI timeline started",{cpn:J.clientPlaybackNonce})));b&&!Dj("pbs",F.timerName)&&F.tick("pbs",b)}}; hq7=function(F,J,b,I,u,w,M){F=(F===b?"video":"ad")+"_to_"+(J===b?"video":"ad");if(F!=="video_to_ad"||w!=null&&w.Gj){w=F==="ad_to_video"?w:I;b=w==null?void 0:w.As;var q={};if(I==null?0:I.W)q.cttAuthInfo={token:I.W,videoId:I.videoId};u&&(q.startTime=u);Rr(F,q);var v,a,e;I={targetVideoId:(v=I==null?void 0:I.videoId)!=null?v:"empty_video",targetCpn:J,adVideoId:(a=w==null?void 0:w.videoId)!=null?a:"empty_video",adClientPlaybackNonce:(e=b==null?void 0:b.cpn)!=null?e:w==null?void 0:w.clientPlaybackNonce}; b&&(I.adBreakType=b.adBreakType,I.adType=b.adType);g.Qk(I,F);XH("pbs",M!=null?M:(0,g.jR)(),F)}}; WU=function(F){xKa();UKk();F.timerName=""}; cqk=function(F){if(F.C){var J=F.C;J.U={};J.WY={}}F.T=!1;F.D=void 0;F.U=NaN}; UHv=function(F,J){g.uA.call(this);this.PN=F;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.C=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.N={};this.U=0;if(F=J.session_data)this.sessionData=HT(F,"&");this.index=Math.max(0,Number(J.index)||0);this.loop=!!J.loop;this.startSeconds=Number(J.startSeconds)||0;this.title=J.playlist_title||"";this.description=J.playlist_description||"";this.author= J.author||J.playlist_author||"";J.video_id&&(this.items[this.index]=J);if(F=J.api)typeof F==="string"&&F.length===16?J.list="PL"+F:J.playlist=F;if(F=J.list)switch(J.listType){case "user_uploads":this.listId=new yE("UU","PLAYER_"+F);break;default:var b=J.playlist_length;b&&(this.length=Number(b)||0);this.listId=g.ir(F);if(F=J.video)this.items=F.slice(0),this.loaded=!0}else if(J.playlist){F=J.playlist.toString().split(",");this.index>0&&(this.items=[]);F=g.N(F);for(b=F.next();!b.done;b=F.next())(b= b.value)&&this.items.push({video_id:b});this.length=this.items.length;if(F=J.video)this.items=F.slice(0),this.loaded=!0}this.setShuffle(!!J.shuffle);if(F=J.suggestedQuality)this.quality=F;this.N=KC(J,"playlist_");this.T=(J=J.thumbnail_ids)?J.split(","):[]}; xHv=function(F){return!!(F.playlist||F.list||F.api)}; nrG=function(F){var J=F.index+1;return J>=F.length?0:J}; tcJ=function(F){var J=F.index-1;return J<0?F.length-1:J}; g.dA=function(F,J,b,I){J=J!==void 0?J:F.index;J=F.items&&J in F.items?F.items[F.order[J]]:null;var u=null;J&&(b&&(J.autoplay="1"),I&&(J.autonav="1"),u=new g.RH(F.PN,J),g.k(F,u),u.Ar=!0,u.startSeconds=F.startSeconds||u.clipStart||0,F.listId&&(u.playlistId=F.listId.toString()));return u}; Zn4=function(F,J){F.index=g.AD(J,0,F.length-1);F.startSeconds=0}; HnY=function(F,J){if(J.video&&J.video.length){F.title=J.title||"";F.description=J.description;F.views=J.views;F.likes=J.likes;F.dislikes=J.dislikes;F.author=J.author||"";var b=J.loop;b&&(F.loop=b);b=g.dA(F);F.items=[];for(var I=g.N(J.video),u=I.next();!u.done;u=I.next())if(u=u.value)u.video_id=u.encrypted_id,F.items.push(u);F.length=F.items.length;(J=J.index)?F.index=J:F.findIndex(b);F.setShuffle(!1);F.loaded=!0;F.U++;F.C&&F.C()}}; Jd_=function(F,J){var b,I,u,w,M,q,v;return g.S(function(a){if(a.C==1){b=g.IW();var e=F.J(),K={context:g.FE(F),playbackContext:{contentPlaybackContext:{ancestorOrigins:e.ancestorOrigins}}},p=e.getWebPlayerContextConfig();if(p==null?0:p.encryptedHostFlags)K.playbackContext.contentPlaybackContext.encryptedHostFlags=p.encryptedHostFlags;if(p==null?0:p.hideInfo)K.playerParams={showinfo:!1};e=e.embedConfig;p=J.docid||J.video_id||J.videoId||J.id;if(!p){p=J.raw_embedded_player_response;if(!p){var m=J.embedded_player_response; m&&(p=JSON.parse(m))}if(p){var y,f,d,G,P,r;p=((r=g.O((y=p)==null?void 0:(f=y.embedPreview)==null?void 0:(d=f.thumbnailPreviewRenderer)==null?void 0:(G=d.playButton)==null?void 0:(P=G.buttonRenderer)==null?void 0:P.navigationEndpoint,g.x$))==null?void 0:r.videoId)||null}else p=null}y=(y=p)?y:void 0;f=F.playlistId?F.playlistId:J.list;d=J.listType;if(f){var Q;d==="user_uploads"?Q={username:f}:Q={playlistId:f};LGa(e,y,J,Q);K.playlistRequest=Q}else J.playlist?(Q={templistVideoIds:J.playlist.toString().split(",")}, LGa(e,y,J,Q),K.playlistRequest=Q):y&&(Q={videoId:y},e&&(Q.serializedThirdPartyEmbedConfig=e),K.singleVideoRequest=Q);I=K;u=g.ZI(F9z);g.lk(a,2);return g.T(a,g.cf(b,I,u),4)}if(a.C!=2)return w=a.U,M=F.J(),J.raw_embedded_player_response=w,M.kQ=AC(J,g.dN(M)),M.T=M.kQ==="EMBEDDED_PLAYER_MODE_PFL",w&&(q=w,q.trackingParams&&WX(q.trackingParams)),a.return(new g.RH(M,J));v=g.dY(a);v instanceof Error||(v=Error("b259802748"));g.Td(v);return a.return(F)})}; LGa=function(F,J,b,I){b.index&&(I.playlistIndex=String(Number(b.index)+1));I.videoId=J?J:"";F&&(I.serializedThirdPartyEmbedConfig=F)}; g.jn=function(F,J){EO.get(F);EO.set(F,J)}; g.GN=function(F){g.uA.call(this);this.loaded=!1;this.player=F}; b9C=function(){this.U=[];this.C=[]}; g.gA=function(F,J){return J?F.C.concat(F.U):F.C}; g.Vl=function(F,J){switch(J.kind){case "asr":IB4(J,F.U);break;default:IB4(J,F.C)}}; IB4=function(F,J){g.xL(J,function(b){return F.Hg(b)})||J.push(F)}; g.PU=function(F){g.R.call(this);this.SE=F;this.U=new b9C;this.Z=null;this.D=[];this.Y=[]}; g.BU=function(F,J,b){g.PU.call(this,F);this.videoData=J;this.audioTrack=b;this.C=null;this.T=!1;this.D=J.Cu;this.Y=J.cO;this.T=g.Xc(J)}; g.TN=function(F,J){return Zf(F.info)?J?F.info.itag===J:!0:!1}; g.uiz=function(F,J){if(F.C!=null&&g.dX(J.J())&&!F.C.isManifestless&&F.C.C.rawcc!=null)return!0;if(!F.MW())return!1;J=!!F.C&&F.C.isManifestless&&Object.values(F.C.C).some(function(b){return g.TN(b,"386")}); F=!!F.C&&!F.C.isManifestless&&g.Buz(F.C);return J||F}; g.rA=function(F,J,b,I,u,w){g.PU.call(this,F);this.videoId=b;this.K6=u;this.eventId=w;this.W={};this.C=null;F=I||g.bi(J).hl||"";F=F.split("_").join("-");this.T=IR(J,{hl:F})}; wy7=function(F,J){this.U=F;this.C=J;this.onFailure=void 0}; MO4=function(F,J){return{xk:F.xk&&J.xk,PV:F.PV&&J.PV,sync:F.sync&&J.sync,streaming:F.streaming&&J.streaming}}; sO=function(F,J){var b=Adz,I=this;this.path=F;this.T=J;this.Z=b;this.capabilities={xk:!!this.T,PV:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.D=new wy7([{name:"compileStreaming",condition:function(u){return!!I.U&&u.streaming}, Bm:Sn.Yr("wmcx",function(){return WebAssembly.compileStreaming(fetch(I.path))}), onFailure:function(){return I.capabilities.streaming=!1}}, {name:"sync",condition:function(u){return u.sync}, Bm:function(){return A8(q3a(I),Sn.Yr("wmcs",function(u){return new WebAssembly.Module(u)}))}, onFailure:function(){return I.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, Bm:function(){return A8(q3a(I),Sn.Yr("wmca",function(u){return WebAssembly.compile(u)}))}, onFailure:function(){return I.capabilities.PV=!1}}]); this.W=new wy7([{name:"instantiateStreaming",condition:function(u){return u.PV&&u.streaming&&!I.U&&!I.C}, Bm:function(u,w){return Sn.Zq("wmix",function(){return WebAssembly.instantiateStreaming(fetch(I.path),w)}).then(function(M){I.C=Ix(M.module); return{instance:M.instance,xf:!1}})}, onFailure:function(){return I.capabilities.streaming=!1}}, {name:"sync",condition:function(u){return u.PV&&u.sync}, Bm:function(u,w){return A8(v3J(I,u),Sn.Yr("wmis",function(M){return{instance:new WebAssembly.Instance(M,w),xf:!1}}))}, onFailure:function(){return I.capabilities.sync=!1}}, {name:"async",condition:function(u){return u.PV}, Bm:function(u,w){return A8(A8(v3J(I,u),Sn.Yr("wmia",function(M){return WebAssembly.instantiate(M,w)})),function(M){return{instance:M, xf:!1}})}, onFailure:function(){return I.capabilities.PV=!1}}, {name:"asmjs",condition:function(u){return u.xk}, Bm:function(u,w){return Ix(Sn.Zq("wmij",function(){return I.T(w)}).then(function(M){return{instance:{exports:M}, xf:!0}}))}, onFailure:function(){return I.capabilities.xk=!1}}],function(u,w,M){return I.Z(M,u.instance.exports)})}; K9Y=function(F){var J=aBo;return J.instantiate(F?MO4(J.capabilities,F):J.capabilities,new eQz)}; q3a=function(F){if(F.U)return F.U;var J=fetch(F.path).then(function(b){return b.arrayBuffer()}).then(function(b){F.U=Ix(b); return b}).then(void 0,function(b){g.rQ(Error("wasm module fetch failure: "+b.message,{cause:b})); F.U=void 0;throw b;}); F.U=Ix(J);return F.U}; v3J=function(F,J){if(!J.PV)return uf(Error("wasm unavailable"));if(F.C)return F.C;F.C=q7(A8(F.compile(J),function(b){F.C=Ix(b);return b}),function(b){g.rQ(Error("wasm module compile failure: "+b.message,{cause:b})); F.C=void 0;throw b;}); return F.C}; py3=function(){}; g3z=function(){var F=this;this.proc_exit=function(){}; this.fd_write=function(J,b,I){if(!F.exports)return 1;J=new Uint32Array(F.exports.memory.buffer,b,I*2);b=[];for(var u=0;u<I;++u){var w=new Uint8Array(F.exports.memory.buffer,J[u*2],J[u*2+1]);w=g.Ev(w);b.push(w)}return b.reduce(function(M,q){return M+q.length},0)}}; eQz=function(){this.env=new py3;this.wasi_snapshot_preview1=new g3z}; Adz=function(F,J){F.wasi_snapshot_preview1.exports=J;F=Math.floor(Math.random()*256);var b=Math.floor(Math.random()*256),I=0;try{I=J.malloc(16);(new Uint8Array(J.memory.buffer,I,16)).fill(F);if(J.sentinel(I,16,b)!==b*16%256)return!1;for(var u=new Uint8Array(J.memory.buffer,I,16),w=0;w<16;w++)if(u[w]!==(F+b)%256)return!1;return!0}finally{I!==0&&J.free(I)}}; m24=function(F,J){this.instance=F;this.xf=J;this.exports=this.C=this.instance.exports}; i9k=function(F,J,b){b=b===void 0?!1:b;var I=I===void 0?!0:I;var u=Sn.EA();return A8(yd_(F,J,{xk:b,PV:!0,sync:!0,streaming:!0},I),function(w){Sn.Gy(w.xf?"winitjs":"winit",u);return w})}; yd_=function(F,J,b,I){I=I===void 0?!0:I;aBo||(aBo=new sO(F,J));return A8(K9Y(b),function(u){return new m24(u.instance,u.xf,I)})}; zQo=function(F,J){g.R.call(this);var b=this;this.G=F;this.C=J;this.WY={};this.U={};this.T=null;this.Z=new Set;this.D=new g.s5(this);this.Po={bNE:function(){return b.C}, lD:function(){return b.lD()}}; this.W=this.G.S("web_player_defer_modules");this.sz=new Map;g.k(this,this.D);this.D.B(F,"videodatachange",this.onVideoDataChange)}; g.Y0=function(F){return F.sz.get("captions")}; E33=function(F,J){switch(J){case "ad":return N1_(F);case "annotations_module":return F.G.isEmbedsShortsMode()?F=!1:(J=F.G,F=J.J(),J=J.getVideoData(),F=F.T||J.R1||F.controlsType==="3"?!1:F.fW.isEmpty()&&F.playerStyle!=="annotation-editor"&&F.playerStyle!=="live-dashboard"?!!J.Jz||!!g.BE(J)||!!g.Te(J):!0),F;case "asmjs":return F.G.J().S("html5_allow_asmjs");case "creatorendscreen":return lBY(F);case "embed":return g.dN(F.G.J());case "endscreen":return g.fBz(F);case "heartbeat":return F.Ew();case "kids":return CH(F.G.J()); case "remote":return F.G.J().LF;case "miniplayer":return F.G.J().showMiniplayerUiWhenMinimized;case "offline":return F.G.J().B9;case "captions":return W9a(F);case "unplugged":return g.TB(F.G.J());case "ux":return F.G.J().bR;case "webgl":return d27(F);case "ypc":return F.Gr();case "ypc_clickwrap":return F=F.G.getVideoData(),F.ir&&!F.wp;case "yto":return!!F.G.getVideoData().kQ.includes("yto");default:return g.Td(Error("Module descriptor "+J+" does not match")),!1}}; $0=function(F,J,b,I,u){var w;b=b===void 0?!1:b;I=I===void 0?!1:I;var M=F.sz.get(J);if(!M||I)if(u||(u=function(){$0(F,J,b,I)}),w||(w=function(){F.G.d6(J)}),M=M||jQ_(F,J,E33(F,J),u,w))F.sz.set(J,M),M.create(),F.G.publish("modulecreated",J),b&&F.G.SZ("onApiChange")}; VOY=function(F){var J=J===void 0?!1:J;var b,I,u,w,M;return g.S(function(q){if(q.C==1)return(b=F.sz.get("asmjs"))&&!J?q.return(b):(I=EO.get("asmjs"))!=null?(u=I,q.gD(2)):g.T(q,new Promise(function(v,a){GUa(F,"asmjs",function(){var e=EO.get("asmjs");e?v(e):a("cannot load module asmjs")},a)}),3); q.C!=2&&(u=q.U);w=u;if(!w)return q.return(Promise.reject("cannot load module asmjs"));M=new w(F.G);F.sz.set("asmjs",M);M.create();return q.return(M)})}; T1a=function(F){P7m(F)&&F.jd();B1C(F)&&($0(F,"captions",!0),$0(F,"endscreen"),F.kO(),$0(F,"creatorendscreen",!0))}; B1C=function(F){var J=F.G.getVideoData(),b=F.W&&!J.isInlinePlaybackNoAd;F.G.S("html5_defer_modules_on_ads_only")&&!J.isAd()&&(b=!1);return b}; P7m=function(F){F=F.G.getVideoData();var J;if(J=F.S("web_player_defer_ad")){if(g.te(F.kQ,"ad")||hSa(F)||F.enableServerStitchedDai)F=!1;else{J=F.playerResponse;F=F.startSeconds;var b=J==null?void 0:J.adPlacements;if(J=b){J=Number.MAX_VALUE;b=g.N(b);for(var I=b.next();!I.done;I=b.next())if(I=I.value.adPlacementRenderer){var u=void 0,w=(u=I.config)==null?void 0:u.adPlacementConfig;u=void 0;if(((u=w)==null?void 0:u.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var M=u=void 0;w=Number((u=w)==null?void 0:(M= u.adTimeOffset)==null?void 0:M.offsetStartMilliseconds)||0;M=u=void 0;I=Number(((u=I.renderer)==null?void 0:(M=u.adBreakServiceRenderer)==null?void 0:M.prefetchMilliseconds)||0);I=w-I;I<J&&(J=I)}}J=J-5E3<=F*1E3}F=J?!1:!0}J=F}return J}; W9a=function(F){var J=F.G.getVideoData();return!!J.zU||!!J.captionTracks.length||g.uiz(J,F.G)}; g.fBz=function(F){var J=F.G.J();if(J.T||tP(J)||J.W||!J.y6&&!J.n7)return!1;var b=F.G.getPresentingPlayerType();if(b===2)return!1;if(b===3)return J.S("desktop_enable_autoplay");F=F.G.getVideoData();if(!F)return!1;b=!F.isLiveDefaultBroadcast||J.S("allow_poltergust_autoplay");b=F.isLivePlayback&&(!J.S("allow_live_autoplay")||!b);J=F.isLivePlayback&&J.S("allow_live_autoplay_on_mweb");return!b||J}; g.GP=function(F){return F.sz.get("webgl")}; d27=function(F){var J=F.G.getVideoData();F=F.G.J();var b=g.f_k(),I=F.S("enable_spherical_kabuki"),u=g.nH(F);if(g.VR(J))return b||I||u;if(g.ji(J))return u||b||I;if(g.Ge(J))return u||b||!1;if(g.KY(J))return u||!1;b=J.U&&J.U.video&&J.U.video.isHdr();return u&&!g.yR(J)&&!b&&F.S("enable_webgl_noop")}; N1_=function(F){if(F.G.J().T)return!1;F=F.G.getVideoData(1);var J=F.getPlayerResponse();if(J){var b=J.adPlacements;if(b)for(var I=0;I<b.length;I++)if(b[I].adPlacementRenderer)return!0;if(J.adSlots)return!0}return g.oH(F)?!0:!1}; lBY=function(F){if(F.G.isEmbedsShortsMode())return!1;F=F.G;var J=F.J();if(J.T)return!1;var b;if(((b=J.getWebPlayerContextConfig())==null?0:b.embedsEnableEmc3ds)||J.controlsType==="3")return!1;if(J.playerStyle==="creator-endscreen-editor")return!0;b=F.getVideoData();return!!b&&(!!g.Jc_(b)||!!g.bm7(b))}; jQ_=function(F,J,b,I,u){try{if(b){var w=EO.get(J);if(w)return new w(F.G);GUa(F,J,I,u)}else F.G.d6(J)}catch(M){F.G.d6(J),g.Td(M)}return null}; CV=function(F,J,b){if(F.G.J().S("html5_dispose_modules_in_order"))for(var I=g.N(rdY),u=I.next();!u.done;u=I.next()){u=u.value;var w=F.sz.get(u);w&&(b||w.u7(J))&&(g.q8(w),F.sz.delete(u))}else for(I=g.N(F.sz),u=I.next();!u.done;u=I.next())w=g.N(u.value),u=w.next().value,(w=w.next().value)&&(b||w.u7(J))&&(g.q8(w),F.sz.delete(u))}; XN=function(F){return F.sz.get("ad")}; S3a=function(F){if(CH(F.G.J()))return F.sz.get("kids")}; dO=function(F){if(F.G.J().LF)return F.sz.get("remote")}; g.Ql=function(F){if(g.TB(F.G.J()))return F.sz.get("unplugged")}; PSC=function(F){if(F.G.J().bR)return F.sz.get("ux")}; sQv=function(F){if(F.G.J().showMiniplayerUiWhenMinimized)return F.sz.get("miniplayer")}; Rs=function(F){if(F.G.J().B9)return F.sz.get("offline")}; g.Dg=function(F){return F.sz.get("annotations_module")}; k0=function(F){return F.sz.get("creatorendscreen")}; $2J=function(F,J){var b=F.C.startsWith("https://")?F.C+"lib.wasm":F.C.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return i9k(b,function(I){var u=F.sz.get("asmjs");return u?Promise.resolve(u.a_(I)):Y3G(F).then(function(w){return w.a_(I)})},J)}; Y3G=function(F){var J,b;return g.S(function(I){if(I.C==1)return g.T(I,VOY(F),2);b=J=I.U;return I.return(b)})}; GUa=function(F,J,b,I){if(F.C){var u=C7v[J];Xyz(F,F.C+u,function(){F.Z.add(u);b.call(F)},I)}}; Xyz=function(F,J,b,I){function u(){F.iR()||I.call(F)} function w(){F.iR()||b.call(F)} for(var M=g.D8("SCRIPT"),q=!1,v,a=0;a<M.length;a++){var e=M[a];if(e.src===J||e.getAttribute("data-original-src")===J)v=e}v||(v=g.H1("SCRIPT"),v.setAttribute("data-original-src",J),q=!0);var K=v.onload;v.onload=function(f){Ic(w);K&&K.apply(window,[f])}; var p=v.onerror;v.onerror=function(f){if(Math.random()<.01){var d=new g.hC("Unable to load player module",J,document.location&&document.location.origin);g.Td(d)}Ic(u);p&&p(f)}; var m=v,y=m.onreadystatechange;m.onreadystatechange=function(f){switch(m.readyState){case "loaded":case "complete":Ic(w)}y&&y(f)}; q&&((M=F.G.J().cspNonce)&&v.setAttribute("nonce",M),g.k_(v,g.WT(J)),M=g.D8("HEAD")[0]||document.body,M.insertBefore(v,M.firstChild),F.addOnDisposeCallback(function(){v.parentNode&&v.parentNode.removeChild(v)}))}; QQJ=function(F,J,b,I,u){g.uA.call(this);var w=this;this.target=F;this.ZO=J;this.U=0;this.W=!1;this.Z=new g.K$(NaN,NaN);this.C=new g.s5(this);this.Gj=this.T=this.V=null;g.k(this,this.C);J=I||u?4E3:3E3;this.N=new g.ty(function(){OO(w,1,!1)},J,this); g.k(this,this.N);this.Tj=new g.ty(function(){OO(w,2,!1)},J,this); g.k(this,this.Tj);this.eE=new g.ty(function(){OO(w,512,!1)},J,this); g.k(this,this.eE);this.kQ=3E3;I||(this.T=this.C.B(F,"mouseover",this.YW),this.C.B(F,"mousemove",this.CY),this.C.B(F,"mouseleave",this.HkI));eu?this.C.B(F,"keypress",this.nQQ):this.C.B(F,"focusin",this.wr);this.D=this.C.B(F,"mousedown",this.j_);this.Y=this.C.B(F,"touchstart",this.aW,void 0,!0);OO(this,640,!0)}; RQz=function(F){OO(F,4,!1);F.V&&(F.C.iX(F.V),F.V=null,F.T=F.C.B(F.target,"mouseover",F.YW));F.T&&(F.C.iX(F.T),F.T=F.C.B(F.target,"mouseover",F.YW))}; OO=function(F,J,b){F.iR();var I=!F.U;b?(F.U|=J,J&1&&F.N.start(),J&2&&F.Tj.start()):(F.U&=~J,J&1&&F.N.stop(),J&2&&F.Tj.stop(),J&512&&F.eE.stop());F.U&512&&!(F.U&128)&&g.Z_(F.eE,F.kQ);J=!F.U;I!==J&&F.publish("autohideupdate",J)}; g.h2=function(F){g.U.call(this,{X:"button",Dv:["ytp-large-play-button","ytp-button"],L:{"aria-label":"Play",title:"Play"},j:["{{largePlayButtonChildren}}"]});this.api=F;this.B(F,"videodatachange",this.VG);this.B(F,"basechromeinitialized",this.yX_);F=this.api.J();F.Y&&os&&(this.listen("click",this.LR,this),this.listen("touchstart",this.p1f,this));g.Bu(F)&&g.uG(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.VG()}; g.cU=function(F){var J=F.J(),b=["ytp-cued-thumbnail-overlay"];J.W&&b.push("ytp-exp-contain-thumbnail");J.S("web_player_show_frame_zero_when_cued")&&b.push("ytp-exp-frame0");g.U.call(this,{X:"div",Dv:b,j:[{X:"div",K:"ytp-cued-thumbnail-overlay-image"}]});J=this.RI("ytp-cued-thumbnail-overlay");b=new g.h2(F);g.k(this,b);b.Az(J);this.Z=new g.s5(this);g.k(this,this.Z);this.api=F;this.W=this.RI("ytp-cued-thumbnail-overlay-image");this.T=b;this.U=new g.ZU(this,250);g.k(this,this.U);this.C=new g.ty(this.VG, 0,this);g.k(this,this.C);this.VG();this.B(F,"appresize",this.mO);this.B(F,"presentingplayerstatechange",this.onStateChange);this.B(F,"ypcStateChanged",this.qz_);j8(F.J())&&this.B(F,"videoplayerreset",this.onReset)}; D2a=function(F){if(!F.api.S("web_player_show_frame_zero_when_cued"))return!1;var J=F.api.getCurrentTime();F=F.api.getPlayerStateObject();F=g.x(F,64)&&g.x(F,1);return J===0&&F}; g.UO=function(F){g.U.call(this,{X:"div",Dv:["ytp-error"],L:{role:"alert"},j:[{X:"div",K:"ytp-error-content",j:[{X:"div",K:"ytp-error-icon-container",j:[{X:"svg",L:{fill:"#fff",viewBox:"0 0 48 48"},j:[{X:"path",L:{d:"M0 0h48v48H0V0z",fill:"none"}},{X:"path",L:{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"}}]}]},{X:"div",K:"ytp-error-content-wrap", j:[{X:"div",K:"ytp-error-content-wrap-reason",sQ:"{{content}}"},{X:"div",K:"ytp-error-content-wrap-subreason",sQ:"{{subreason}}"}]}]}]});this.api=F;this.keys=[];this.T=!1;F.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.uT)}; g.x0=function(F){F=F.split(kUJ);for(var J=[],b=0;b<F.length;b+=3){var I=F[b++].split("\n");J.push(I[0]);for(var u=1;u<I.length;u++)J.push({X:"br"}),J.push(I[u]);b<F.length&&J.push({X:"a",L:{href:F[b],target:F[b+1]},sQ:F[b+2]})}return{X:"span",j:J}}; t2=function(F,J,b,I,u,w,M){I=I===void 0?!1:I;u=u===void 0?!1:u;M=M===void 0?!0:M;u||(u=F.api.J().Z);var q=F.api.getVideoData();J=g.m8(g.nV[J]||"",I?{CPN:q.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);I=[];w&&I.push({X:"h2",sQ:w});I.push(J[0]);M&&I.push({X:"br"});I.push({X:"a",L:{href:b,target:u?"_blank":null},K:"ytp-error-link",sQ:J[2]});F.T=!0;I.push(J[4]);return{X:"span",j:I}}; O9z=function(F,J){for(var b=F.element.getElementsByTagName("a"),I=0;I<b.length;I++){var u=F.B(b[I],"click",J);F.keys.push(u)}}; o3_=function(F){for(var J=0;J<F.keys.length;J++)F.iX(F.keys[J]);F.keys=[]}; hQk=function(F){g.U.call(this,{X:"div",K:"ytp-paid-content-overlay",L:{"aria-live":"assertive","aria-atomic":"true"}});this.G=F;this.videoId=null;this.T=!1;this.innertubeCommand=this.r0=this.C=null;var J=F.J();F.S("enable_new_paid_product_placement")&&!g.U7(J)?(this.U=new g.U({X:"a",K:"ytp-paid-content-overlay-link",L:{href:"{{href}}",target:"_blank"},j:[{X:"div",K:"ytp-paid-content-overlay-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-paid-content-overlay-text",sQ:"{{text}}"},{X:"div",K:"ytp-paid-content-overlay-chevron", sQ:"{{chevron}}"}]}),this.B(this.U.element,"click",this.onClick)):this.U=new g.U({X:"div",Dv:["ytp-button","ytp-paid-content-overlay-text"],sQ:"{{text}}"});this.Z=new g.ZU(this.U,250,!1,100);g.k(this,this.U);this.U.Az(this.element);g.k(this,this.Z);this.G.createServerVe(this.element,this);this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"presentingplayerstatechange",this.Tb)}; U24=function(F,J){var b=kXa(J),I=OU7(J);if(!J.ir||!F.G.Bx())if(F.C||F.G.S("enable_paid_content_overlay_bugfix")){if(J.videoId&&J.videoId!==F.videoId){var u;(u=F.C)==null||g.L8(u);!F.G.S("enable_paid_content_overlay_bugfix")||b&&I?(F.videoId=J.videoId,F.T=!!I,F.T&&b&&cdk(F,I,b,J)):F.T=!1}}else b&&I&&!F.G.S("enable_paid_content_overlay_bugfix")&&cdk(F,I,b,J)}; cdk=function(F,J,b,I){F.C&&F.C.dispose();F.C=new g.ty(F.fk,J,F);g.k(F,F.C);I=iE(I);J=I==null?void 0:I.navigationEndpoint;var u;I=I==null?void 0:(u=I.icon)==null?void 0:u.iconType;var w;u=(w=g.O(J,g.S0))==null?void 0:w.url;F.G.setTrackingParams(F.element,(J==null?void 0:J.clickTrackingParams)||null);J&&!u?(F.innertubeCommand=J,u="#!"):F.innertubeCommand=null;var M;F.U.update({href:(M=u)!=null?M:"#",text:b,icon:I==="MONEY_HAND"?{X:"svg",L:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, j:[{X:"path",L:{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:u||F.innertubeCommand?g.yr():null})}; x2m=function(F,J){F.C&&(g.x(J,8)&&F.T?(F.T=!1,F.Bo(),F.C.start()):(g.x(J,2)||g.x(J,64))&&F.videoId&&(F.videoId=null))}; Zg=function(F){g.U.call(this,{X:"div",K:"ytp-spinner",j:[JH(),{X:"div",K:"ytp-spinner-message",sQ:"If playback doesn't begin shortly, try restarting your device."}]});this.api=F;this.message=this.RI("ytp-spinner-message");this.C=new g.ty(this.show,500,this);g.k(this,this.C);this.B(F,"presentingplayerstatechange",this.onStateChange);this.B(F,"playbackstalledatstart",this.U);this.aC(F.getPlayerStateObject())}; HU=function(F){var J=[{X:"div",Dv:["ytp-unmute-icon"],j:[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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"}}]}]}, {X:"div",Dv:["ytp-unmute-text"],sQ:"Tap to unmute"}];J.push({X:"div",Dv:["ytp-unmute-box"],j:[]});g.YJ.call(this,F,{X:"button",Dv:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],j:[{X:"div",K:"ytp-unmute-inner",j:J}]},100);this.C=this.clicked=!1;this.api=F;this.api.createClientVe(this.element,this,51663);this.B(F,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.B(F,"presentingplayerstatechange",this.hh);this.listen("click",this.onClick,this);F=F.isMutedByMutedAutoplay()&& !g.dN(this.api.J());this.wY(F);F&&n3C(this);this.T=F}; n3C=function(F){F.C||(F.C=!0,F.api.logVisibility(F.element,!0))}; g.LV=function(F){g.s5.call(this);var J=this;this.api=F;this.Hd=!1;this.CL=null;this.pn=!1;this.vg=null;this.YJ=this.tR=!1;this.UU=this.T_=null;this.Gt=NaN;this.wd=this.c$=!1;this.jk=0;this.aT=[];this.ZE=!1;this.KG={height:0,width:0};this.D6=480;this.XDf=["ytp-player-content","html5-endscreen","ytp-overlay"];this.SC={vz:!1};var b=F.J(),I=F.mG();this.KG=F.getPlayerSize();this.U$=new g.ty(this.Ut,0,this);g.k(this,this.U$);b.disableOrganicUi||(this.Fi=new g.cU(F),g.k(this,this.Fi),g.Pp(F,this.Fi.element, 4));if(tOa(this)){var u=new Zg(F);g.k(this,u);u=u.element;g.Pp(F,u,4)}var w=F.getVideoData();this.rq=new QQJ(I,function(q){return J.ZO(q)},w,b.R5,!1); g.k(this,this.rq);this.rq.subscribe("autohideupdate",this.lN,this);if(!b.disablePaidContentOverlay){var M=new hQk(F);g.k(this,M);g.Pp(F,M.element,4)}this.Xl=new HU(F);g.k(this,this.Xl);g.Pp(this.api,this.Xl.element,2);this.xb=this.api.isMutedByMutedAutoplay();this.B(F,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.hR=new g.ty(this.UW,200,this);g.k(this,this.hR);this.Mq=w.videoId;this.Fk=new g.ty(function(){J.jk=0},350); g.k(this,this.Fk);this.Ex=new g.ty(function(){J.wd||Z9o(J)},350,this); g.k(this,this.Ex);w=F.getRootNode();w.setAttribute("aria-label","YouTube Video Player");switch(b.color){case "white":g.uG(w,"ytp-color-white")}this.B(F,"appresize",this.mO);this.B(F,"presentingplayerstatechange",this.hh);this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"videoplayerreset",this.rFW);this.B(F,"autonavvisibility",function(){J.E1()}); this.B(F,"sizestylechange",function(){J.E1()}); this.B(I,"click",this.lgj,this);this.B(I,"dblclick",this.Q8R,this);this.B(I,"mousedown",this.VFG,this);b.Om&&(this.B(I,"gesturechange",this.SsN,this),this.B(I,"gestureend",this.HeE,this));this.YD=[I.N1];this.Fi&&this.YD.push(this.Fi.element);u&&this.YD.push(u);this.api.S("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(I.element,this,247482),this.api.logVisibility(I.element,!0))}; H9G=function(F,J){if(!J)return!1;var b=F.api.Qa();if(b.Yx()&&(b=b.Pb())&&g.uB(b,J))return b.controls;for(b=0;b<F.YD.length;b++)if(g.uB(F.YD[b],J))return!1;b=g.N(F.XDf);for(var I=b.next();!I.done;I=b.next())if(g.I3(J,I.value))return!1;return J===F.api.getRootNode()?!1:!0}; L9k=function(F){var J=F.api.getPresentingPlayerType()===2&&(F.api.mG().Sh||F.api.J().disableOrganicUi||!1)&&F.api.J().U&&os&&FG>=11;F=F.api.J().Y&&os;return!(!J&&!F)}; Jq=function(F,J){return!F.api.isInline()&&!H9G(F,dm(J))&&g.f0(J)}; Z9o=function(F){F.rq.q6();if(F.tR&&F.YJ)F.YJ=!1;else if(!F.api.J().qf&&!F.bJ()){var J=F.api.getPlayerStateObject();g.x(J,2)&&g.fE(F.api)||F.PP(J);!F.api.J().Om||J.isCued()||g.x(J,1024)?F.UW():F.hR.isActive()?(F.Fw(),F.hR.stop()):F.hR.start()}}; FWa=function(F,J){var b;if((b=F.api.getVideoData())==null?0:b.mutedAutoplay){var I,u;if((I=J.target)==null?0:(u=I.className)==null?0:u.includes("ytp-info-panel"))return!1}return g.f0(J)&&F.api.isMutedByMutedAutoplay()?(F.api.unMute(),F.api.getPresentingPlayerType()===2&&F.api.playVideo(),J=F.api.getPlayerStateObject(),!g.x(J,4)||g.x(J,8)||g.x(J,2)||F.UW(),!0):!1}; JUv=function(F,J,b){F.api.isFullscreen()?b<1-J&&F.api.toggleFullscreen():b>1+J&&F.api.toggleFullscreen()}; tOa=function(F){var J=k6()&&RR()>=67&&!F.api.J().Y;F=F.api.J().disableOrganicUi;return!g.D$("tizen")&&!tg&&!J&&!F}; b_=function(F,J){J=J===void 0?2:J;g.uA.call(this);this.api=F;this.C=null;this.eF=new j9(this);g.k(this,this.eF);this.U=upC;this.eF.B(this.api,"presentingplayerstatechange",this.ev);this.C=this.eF.B(this.api,"progresssync",this.Q6);this.Fa=J;this.Fa===1&&this.Q6()}; g.I9=function(F){g.U.call(this,{X:"div",j:[{X:"div",K:"ytp-bezel-text-wrapper",j:[{X:"div",K:"ytp-bezel-text",sQ:"{{title}}"}]},{X:"div",K:"ytp-bezel",L:{role:"status","aria-label":"{{label}}"},j:[{X:"div",K:"ytp-bezel-icon",sQ:"{{icon}}"}]}]});this.G=F;this.U=new g.ty(this.show,10,this);F=this.G.S("delhi_modern_web_player")?1E3:500;this.C=new g.ty(this.hide,F,this);g.k(this,this.U);g.k(this,this.C);this.hide()}; ws=function(F,J,b){if(J<=0){b=Gh();J="muted";var I=0}else b=b?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]},I=Math.floor(J),J=I+"volume";u_(F,b,J,I+"%")}; beY=function(F,J){J=J?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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"}}]}:lZJ();var b=F.G.getPlaybackRate(),I=g.m8("Speed is $RATE",{RATE:String(b)});u_(F,J,I,b+"x")}; IuG=function(F,J){J=J?"Subtitles/closed captions on":"Subtitles/closed captions off";u_(F,FBz(),J)}; u_=function(F,J,b,I){I=I===void 0?"":I;F.updateValue("label",b===void 0?"":b);F.updateValue("icon",J);g.L8(F.C);F.U.start();F.updateValue("title",I);g.qr(F.element,"ytp-bezel-text-hide",!I)}; ufv=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-button","ytp-cards-button"],L:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"span",K:"ytp-cards-button-icon-default",j:[{X:"div",K:"ytp-cards-button-icon",j:[F.J().S("player_new_info_card_format")?dPk():{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {X:"div",K:"ytp-cards-button-title",sQ:"Info"}]},{X:"span",K:"ytp-cards-button-icon-shopping",j:[{X:"div",K:"ytp-cards-button-icon",j:[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",K:"ytp-svg-shadow",L:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{X:"path",K:"ytp-svg-fill",L:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{X:"path",K:"ytp-svg-shadow-fill",L:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{X:"div", K:"ytp-cards-button-title",sQ:"Shopping"}]}]});this.G=F;this.T=J;this.C=null;this.U=new g.ZU(this,250,!0,100);g.k(this,this.U);g.qr(this.T,"ytp-show-cards-title",g.dN(F.J()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.QCf);this.Zf(!0)}; whz=function(F,J){g.U.call(this,{X:"div",K:"ytp-cards-teaser",j:[{X:"div",K:"ytp-cards-teaser-box"},{X:"div",K:"ytp-cards-teaser-text",j:F.J().S("player_new_info_card_format")?[{X:"button",K:"ytp-cards-teaser-info-icon",L:{"aria-label":"Show cards","aria-haspopup":"true"},j:[dPk()]},{X:"span",K:"ytp-cards-teaser-label",sQ:"{{text}}"},{X:"button",K:"ytp-cards-teaser-close-button",L:{"aria-label":"Close"},j:[g.iA()]}]:[{X:"span",K:"ytp-cards-teaser-label",sQ:"{{text}}"}]}]});var b=this;this.G=F;this.EV= J;this.Z=new g.ZU(this,250,!1,250);this.C=null;this.Y=new g.ty(this.J_Q,300,this);this.V=new g.ty(this.olQ,2E3,this);this.W=[];this.U=null;this.N=new g.ty(function(){b.element.style.margin="0"},250); this.onClickCommand=this.T=null;g.k(this,this.Z);g.k(this,this.Y);g.k(this,this.V);g.k(this,this.N);F.J().S("player_new_info_card_format")?(g.uG(F.getRootNode(),"ytp-cards-teaser-dismissible"),this.B(this.RI("ytp-cards-teaser-close-button"),"click",this.ZN),this.B(this.RI("ytp-cards-teaser-info-icon"),"click",this.bD),this.B(this.RI("ytp-cards-teaser-label"),"click",this.bD)):this.listen("click",this.bD);this.B(J.element,"mouseover",this.mB);this.B(J.element,"mouseout",this.b0);this.B(F,"cardsteasershow", this.Cx_);this.B(F,"cardsteaserhide",this.fk);this.B(F,"cardstatechange",this.RL);this.B(F,"presentingplayerstatechange",this.RL);this.B(F,"appresize",this.xe);this.B(F,"onShowControls",this.xe);this.B(F,"onHideControls",this.ow);this.listen("mouseenter",this.XH)}; Mez=function(F){g.U.call(this,{X:"button",Dv:[MH.BUTTON,MH.TITLE_NOTIFICATIONS],L:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{X:"div",K:MH.TITLE_NOTIFICATIONS_ON,L:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},j:[g.lA()]},{X:"div",K:MH.TITLE_NOTIFICATIONS_OFF,L:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},j:[{X:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{X:"path",L:{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=F;this.C=!1;F.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; AUC=function(F,J){F.C=J;F.element.classList.toggle(MH.NOTIFICATIONS_ENABLED,F.C);var b=F.api.getVideoData();b?(J=J?b.wI:b.Ie)?(F=F.api.n8())?ho(F,J):g.Td(Error("No innertube service available when updating notification preferences.")):g.Td(Error("No update preferences command available.")):g.Td(Error("No video data when updating notification preferences."))}; vN3=function(F,J,b){var I=I===void 0?800:I;var u=u===void 0?600:u;var w=document.location.protocol;F=dD_(w+"//"+F+"/signin?context=popup","feature",J,"next",w+"//"+location.hostname+"/post_login");qKm(F,b,I,u)}; qKm=function(F,J,b,I){b=b===void 0?800:b;I=I===void 0?600:I;if(F=g.C5(window,F,"loginPopup","width="+b+",height="+I+",resizable=yes,scrollbars=yes"))N$m(function(){J()}),F.moveTo((screen.width-b)/2,(screen.height-I)/2)}; g.Aq=function(F,J,b,I,u,w,M,q,v,a,e,K){F=F.charAt(0)+F.substring(1).toLowerCase();b=b.charAt(0)+b.substring(1).toLowerCase();if(J==="0"||J==="-1")J=null;if(I==="0"||I==="-1")I=null;var p=e.J(),m=p.userDisplayName&&g.Bu(p);g.U.call(this,{X:"div",Dv:["ytp-button","ytp-sb"],j:[{X:"div",K:"ytp-sb-subscribe",L:m?{title:g.m8("Subscribe as $USER_NAME",{USER_NAME:p.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Z7(p),"data-tooltip-opaque":String(g.dN(p)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},j:[{X:"div",K:"ytp-sb-text",j:[{X:"div",K:"ytp-sb-icon"},F]},J?{X:"div",K:"ytp-sb-count",sQ:J}:""]},{X:"div",K:"ytp-sb-unsubscribe",L:m?{title:g.m8("Subscribed as $USER_NAME",{USER_NAME:p.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Z7(p),"data-tooltip-opaque":String(g.dN(p)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},j:[{X:"div",K:"ytp-sb-text",j:[{X:"div",K:"ytp-sb-icon"},b]},I?{X:"div",K:"ytp-sb-count", sQ:I}:""]}],L:{"aria-live":"polite"}});var y=this;this.channelId=M;this.G=e;this.T=K;var f=this.RI("ytp-sb-subscribe"),d=this.RI("ytp-sb-unsubscribe");w&&g.uG(this.element,"ytp-sb-classic");if(u){q?this.C():this.U();var G=function(){if(p.Gj){var r=y.channelId;if(v||a){var Q={c:r};var D;g.GR.isInitialized()&&(D=zK_(Q));Q=D||"";if(D=e.getVideoData())if(D=D.subscribeCommand){var t=e.n8();t?(ho(t,D,{botguardResponse:Q,feature:v}),e.jE("SUBSCRIBE",r)):g.Td(Error("No innertube service available when updating subscriptions."))}else g.Td(Error("No subscribe command in videoData.")); else g.Td(Error("No video data available when updating subscription."))}d.focus();d.removeAttribute("aria-hidden");f.setAttribute("aria-hidden","true")}else vN3(g.Rw(y.G.J()),"sb_button",y.Z)},P=function(){var r=y.channelId; if(v||a){var Q=e.getVideoData();ho(e.n8(),Q.unsubscribeCommand,{feature:v});e.jE("UNSUBSCRIBE",r)}f.focus();f.removeAttribute("aria-hidden");d.setAttribute("aria-hidden","true")}; this.B(f,"click",G);this.B(d,"click",P);this.B(f,"keypress",function(r){r.keyCode===13&&G(r)}); this.B(d,"keypress",function(r){r.keyCode===13&&P(r)}); this.B(e,"SUBSCRIBE",this.C);this.B(e,"UNSUBSCRIBE",this.U);this.T&&m&&(CSz(e),zP(e,f,this),zP(e,d,this))}else g.uG(f,"ytp-sb-disabled"),g.uG(d,"ytp-sb-disabled")}; KWz=function(F){g.U.call(this,{X:"div",K:"ytp-title-channel",j:[{X:"div",K:"ytp-title-beacon"},{X:"a",K:"ytp-title-channel-logo",L:{href:"{{channelLink}}",target:F.J().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",K:"ytp-title-expanded-overlay",L:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{X:"div",K:"ytp-title-expanded-heading",j:[{X:"div",K:"ytp-title-expanded-title",j:[{X:"a",sQ:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:F.J().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",K:"ytp-title-expanded-subtitle",sQ:"{{expandedSubtitle}}",L:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var J=this;this.api=F;this.channel=this.RI("ytp-title-channel");this.U=this.RI("ytp-title-channel-logo");this.channelName=this.RI("ytp-title-expanded-title");this.W=this.RI("ytp-title-expanded-overlay");this.T=this.C=this.subscribeButton=null;this.Z=!1;F.createClientVe(this.U,this,36925);F.createClientVe(this.channelName,this, 37220);g.dN(this.api.J())&&auz(this);this.B(F,"videodatachange",this.VG);this.B(F,"videoplayerreset",this.VG);this.B(this.channelName,"click",function(b){J.api.logClick(J.channelName);g.C5(window,eXa(J));b.preventDefault()}); this.B(this.U,"click",this.woD);this.VG()}; ph3=function(F){if(!F.api.J().If){var J=F.api.getVideoData(),b=new g.Aq("Subscribe",null,"Subscribed",null,!0,!1,J.uB,J.subscribed,"channel_avatar",null,F.api,!0);F.api.createServerVe(b.element,F);var I;F.api.setTrackingParams(b.element,((I=J.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);F.B(b.element,"click",function(){F.api.logClick(b.element)}); F.subscribeButton=b;g.k(F,F.subscribeButton);F.subscribeButton.Az(F.W);F.subscribeButton.hide();var u=new Mez(F.api);F.C=u;g.k(F,u);u.Az(F.W);u.hide();F.B(F.api,"SUBSCRIBE",function(){J.Ok&&(u.show(),F.api.logVisibility(u.element,!0))}); F.B(F.api,"UNSUBSCRIBE",function(){J.Ok&&(u.hide(),F.api.logVisibility(u.element,!1),AUC(u,!1))})}}; auz=function(F){var J=F.api.J();ph3(F);F.updateValue("flyoutUnfocusable","true");F.updateValue("channelTitleFocusable","-1");F.updateValue("shouldHideExpandedTitleForA11y","true");F.updateValue("shouldHideExpandedSubtitleForA11y","true");J.U||J.zj||(F.B(F.channel,"mouseenter",F.qD),F.B(F.channel,"mouseleave",F.xJ),F.B(F.channel,"focusin",F.qD),F.B(F.channel,"focusout",function(b){F.channel.contains(b.relatedTarget)||F.xJ()})); F.T=new g.ty(function(){F.isExpanded()&&(F.api.logVisibility(F.channelName,!1),F.subscribeButton&&(F.subscribeButton.hide(),F.api.logVisibility(F.subscribeButton.element,!1)),F.C&&(F.C.hide(),F.api.logVisibility(F.C.element,!1)),F.channel.classList.remove("ytp-title-expanded"),F.channel.classList.add("ytp-title-show-collapsed"))},500); g.k(F,F.T);F.B(F.channel,gNY,function(){mpz(F)}); F.B(F.api,"onHideControls",F.vR);F.B(F.api,"appresize",F.vR);F.B(F.api,"fullscreentoggled",F.vR)}; mpz=function(F){F.channel.classList.remove("ytp-title-show-collapsed");F.channel.classList.remove("ytp-title-show-expanded")}; yU_=function(F){var J=F.api.getPlayerSize();return g.dN(F.api.J())&&J.width>=524}; eXa=function(F){var J=F.api.J(),b=F.api.getVideoData(),I=g.Hu(J)+b.Om;g.HE(b)&&(I="https://music.youtube.com"+b.Om);if(!g.dN(J))return I;J={};g.wO(F.api,"addEmbedsConversionTrackingParams",[J]);return g.Os(I,J)}; qH=function(F){var J=g.Dd({"aria-haspopup":"true"});g.Rj.call(this,J,F);this.listen("keydown",this.C)}; vm=function(F,J){F.element.setAttribute("aria-haspopup",String(J))}; ie4=function(F,J){g.U.call(this,{X:"div",K:"ytp-user-info-panel",L:{"aria-label":"User info"},j:F.J().Gj&&!F.S("embeds_web_always_enable_signed_out_state")?[{X:"div",K:"ytp-user-info-panel-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-user-info-panel-content",j:[{X:"div",K:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable}}",role:"text"},sQ:"{{watchingAsUsername}}"},{X:"div",K:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable2}}",role:"text"},sQ:"{{watchingAsEmail}}"}]}]:[{X:"div",K:"ytp-user-info-panel-icon", sQ:"{{icon}}"},{X:"div",K:"ytp-user-info-panel-content",j:[{X:"div",j:[{X:"text",L:{tabIndex:"{{userInfoFocusable}}"},sQ:"Signed out"}]},{X:"div",K:"ytp-user-info-panel-login",j:[{X:"a",L:{tabIndex:"{{userInfoFocusable2}}",role:"button"},sQ:F.J().If?"":"Sign in on YouTube"}]}]}]});this.SE=F;this.C=J;F.J().Gj||F.J().If||this.B(this.RI("ytp-user-info-panel-login"),"click",this.u8);this.closeButton=new g.U({X:"button",Dv:["ytp-collapse","ytp-button"],L:{title:"Close"},j:[g.j0()]});this.closeButton.Az(this.element); g.k(this,this.closeButton);this.B(window,"blur",this.hide);this.B(document,"click",this.s7);this.VG()}; Nha=function(F,J,b){g.RX.call(this,F);this.Rf=J;this.Fd=b;this.getVideoUrl=new qH(6);this.Lj=new qH(5);this.YZ=new qH(4);this.Cy=new qH(3);this.Fu=new g.Rj(g.Dd({href:"{{href}}",target:this.G.J().N},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Rj(g.Dd(),1,"Stats for nerds");this.I4=new g.vi({X:"div",Dv:["ytp-copytext","ytp-no-contextmenu"],L:{draggable:"false",tabindex:"1"},sQ:"{{text}}"});this.xa=new QM(this.G,this.I4);this.nf=this.u4=null;g.dN(this.G.J())&&(this.closeButton= new g.U({X:"button",Dv:["ytp-collapse","ytp-button"],L:{title:"Close"},j:[g.j0()]}),g.k(this,this.closeButton),this.closeButton.Az(this.element),this.closeButton.listen("click",this.Yh,this));g.dN(this.G.J())&&(this.T6=new g.Rj(g.Dd(),8,"Account"),g.k(this,this.T6),this.V6(this.T6,!0),this.T6.listen("click",this.j8Q,this),F.createClientVe(this.T6.element,this.T6,137682));this.G.J().Ar&&(this.YR=new Zd("Loop",7),g.k(this,this.YR),this.V6(this.YR,!0),this.YR.listen("click",this.KnW,this),F.createClientVe(this.YR.element, this.YR,28661));g.k(this,this.getVideoUrl);this.V6(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.dIR,this);F.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.k(this,this.Lj);this.V6(this.Lj,!0);this.Lj.listen("click",this.lyQ,this);F.createClientVe(this.Lj.element,this.Lj,28660);g.k(this,this.YZ);this.V6(this.YZ,!0);this.YZ.listen("click",this.Elz,this);F.createClientVe(this.YZ.element,this.YZ,28658);g.k(this,this.Cy);this.V6(this.Cy,!0);this.Cy.listen("click",this.MeE, this);g.k(this,this.Fu);this.V6(this.Fu,!0);this.Fu.listen("click",this.fgN,this);g.k(this,this.showVideoInfo);this.V6(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.noD,this);g.k(this,this.I4);this.I4.listen("click",this.Xoj,this);g.k(this,this.xa);J=document.queryCommandSupported&&document.queryCommandSupported("copy");U4k("Chromium")>=43&&(J=!0);U4k("Firefox")<=40&&(J=!1);J&&(this.u4=new g.U({X:"textarea",K:"ytp-html5-clipboard",L:{readonly:"",tabindex:"-1"}}),g.k(this,this.u4), this.u4.Az(this.element));var I;(I=this.T6)==null||I.setIcon(VRz());var u;(u=this.YR)==null||u.setIcon({X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.Cy.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{"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.Fu.setIcon(fZ_());this.showVideoInfo.setIcon(WHo());this.B(F,"onLoopChange",this.onLoopChange);this.B(F,"videodatachange",this.onVideoDataChange);zX7(this);this.gy(this.G.getVideoData())}; a9=function(F,J){var b=!1;if(F.u4){var I=F.u4.element;I.value=J;I.select();try{b=document.execCommand("copy")}catch(u){}}b?F.Rf.fk():(F.I4.Ce(J,"text"),g.O$(F.Rf,F.xa),bX(F.I4.element),F.u4&&(F.u4=null,zX7(F)));return b}; zX7=function(F){var J=!!F.u4;g.Q_(F.Cy,J?"Copy debug info":"Get debug info");vm(F.Cy,!J);g.Q_(F.YZ,J?"Copy embed code":"Get embed code");vm(F.YZ,!J);g.Q_(F.getVideoUrl,J?"Copy video URL":"Get video URL");vm(F.getVideoUrl,!J);g.Q_(F.Lj,J?"Copy video URL at current time":"Get video URL at current time");vm(F.Lj,!J);F.YZ.setIcon(J?zU7():null);F.getVideoUrl.setIcon(J?zh():null);F.Lj.setIcon(J?zh():null)}; lua=function(F){return g.dN(F.G.J())?F.T6:F.YR}; WWY=function(F,J){g.kc.call(this,F);this.Fd=J;this.Z=new g.s5(this);this.eE=new g.ty(this.X1f,1E3,this);this.Gj=this.T=null;g.k(this,this.Z);g.k(this,this.eE);F.createClientVe(this.element,this,28656);g.uG(this.element,"ytp-contextmenu");fuC(this);this.hide()}; fuC=function(F){g.Ve(F.Z);var J=F.G.J();J.playerStyle==="gvn"||J.U||J.zj||(J=F.G.mG(),F.Z.B(J,"contextmenu",F.etQ),F.Z.B(J,"touchstart",F.Pt,null,!0),F.Z.B(J,"touchmove",F.pK,null,!0),F.Z.B(J,"touchend",F.pK,null,!0))}; dpz=function(F){F.G.isFullscreen()?g.Pp(F.G,F.element,10):F.Az($J(F).body)}; ec=function(F,J,b){b=b===void 0?240:b;g.U.call(this,{X:"button",Dv:["ytp-button","ytp-copylink-button"],L:{title:"{{title-attr}}","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-copylink-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-copylink-title",sQ:"Copy link",L:{"aria-hidden":"true"}}]});this.api=F;this.C=J;this.U=b;this.visible=!1;this.tooltip=this.C.W1();J=F.J();this.tooltip.element.setAttribute("aria-live","polite");g.qr(this.element,"ytp-show-copylink-title",g.dN(J));F.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.B(F,"videodatachange",this.VG);this.B(F,"videoplayerreset",this.VG);this.B(F,"appresize",this.VG);this.VG();this.addOnDisposeCallback(g.iy(this.tooltip,this.element))}; ENk=function(F){var J=F.api.J(),b=F.api.getVideoData(),I=F.api.mG().getPlayerSize().width;J=J.T;return!!b.videoId&&I>=F.U&&b.lJ&&!g.tw(b)&&!F.api.isEmbedsShortsMode()&&!J}; jza=function(F){F.updateValue("icon",gV());if(F.api.J().U)F.tooltip.R$(F.element,"Link copied to clipboard");else{F.updateValue("title-attr","Link copied to clipboard");F.tooltip.Dl();F.tooltip.R$(F.element);var J=F.listen("mouseleave",function(){F.iX(J);F.VG();F.tooltip.DW()})}}; G3G=function(F,J){return g.S(function(b){if(b.C==1)return g.lk(b,2),g.T(b,navigator.clipboard.writeText(J),4);if(b.C!=2)return b.return(!0);g.dY(b);var I=b.return,u=!1,w=g.H1("TEXTAREA");w.value=J;w.setAttribute("readonly","");var M=F.api.getRootNode();M.appendChild(w);if(hY){var q=window.getSelection();q.removeAllRanges();var v=document.createRange();v.selectNodeContents(w);q.addRange(v);w.setSelectionRange(0,J.length)}else w.select();try{u=document.execCommand("copy")}catch(a){}M.removeChild(w); return I.call(b,u)})}; Kn=function(F){g.U.call(this,{X:"div",K:"ytp-doubletap-ui-legacy",j:[{X:"div",K:"ytp-doubletap-fast-forward-ve"},{X:"div",K:"ytp-doubletap-rewind-ve"},{X:"div",K:"ytp-doubletap-static-circle",j:[{X:"div",K:"ytp-doubletap-ripple"}]},{X:"div",K:"ytp-doubletap-overlay-a11y"},{X:"div",K:"ytp-doubletap-seek-info-container",j:[{X:"div",K:"ytp-doubletap-arrows-container",j:[{X:"span",K:"ytp-doubletap-base-arrow"},{X:"span",K:"ytp-doubletap-base-arrow"},{X:"span",K:"ytp-doubletap-base-arrow"}]},{X:"div", K:"ytp-doubletap-tooltip",j:[{X:"div",K:"ytp-seek-icon-text-container",j:[{X:"div",K:"ytp-seek-icon",sQ:"{{seekIcon}}"},{X:"div",K:"ytp-chapter-seek-text-legacy",sQ:"{{seekText}}"}]},{X:"div",K:"ytp-doubletap-tooltip-label",sQ:"{{seekTime}}"}]}]}]});this.G=F;this.Z=new g.ty(this.show,10,this);this.U=new g.ty(this.hide,700,this);this.V=this.T=0;this.Tj=this.W=!1;this.C=this.RI("ytp-doubletap-static-circle");g.k(this,this.Z);g.k(this,this.U);this.hide();this.Y=this.RI("ytp-doubletap-fast-forward-ve"); this.N=this.RI("ytp-doubletap-rewind-ve");this.G.createClientVe(this.Y,this,28240);this.G.createClientVe(this.N,this,28239);this.G.logVisibility(this.Y,!0);this.G.logVisibility(this.N,!0);this.W=F.S("web_show_cumulative_seek_time");this.Tj=F.S("web_center_static_circles")}; pn=function(F,J,b,I){if(I=I===void 0?null:I){var u=J===-1?F.N.visualElement:F.Y.visualElement;I={seekData:I};var w=g.W8();w&&g.tE(nO)(void 0,w,u,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",I,void 0)}F.T=J===F.V?F.T+b:b;F.V=J;u=F.G.mG().getPlayerSize();F.W?F.U.stop():g.L8(F.U);F.Z.start();F.element.setAttribute("data-side",J===-1?"back":"forward");g.uG(F.element,"ytp-time-seeking");F.C.style.width="110px";F.C.style.height="110px";I=u.width*.1-15;J===1?F.Tj?(F.C.style.right=I+"px",F.C.style.left=""): (F.C.style.right="",F.C.style.left=u.width*.8-30+"px"):J===-1&&(F.Tj?(F.C.style.right="",F.C.style.left=I+"px"):(F.C.style.right="",F.C.style.left=u.width*.1-15+"px"));F.C.style.top=u.height*.5+15+"px";Vem(F,F.W?F.T:b)}; PKC=function(F,J,b,I){I=I===void 0?null:I;g.L8(F.U);F.Z.start();switch(J){case -1:J="back";break;case 1:J="forward";break;default:J=""}F.element.setAttribute("data-side",J);F.C.style.width="0";F.C.style.height="0";g.uG(F.element,"ytp-chapter-seek");F.updateValue("seekText",b);F.updateValue("seekTime","");b=F.RI("ytp-seek-icon");if(I){a:if(I){switch(I){case "PREMIUM_STANDALONE":I={X:"svg",L:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},j:[{X:"path",L:{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"}},{X:"path",L:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":I={X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"rect",L:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"rect",L:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"path",L:{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"}},{X:"defs",j:[{X:"linearGradient",L:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},j:[{X:"stop",L:{offset:"0.3","stop-color":"#E1002D"}},{X:"stop",L:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}I=void 0}else I=null;F.updateValue("seekIcon",I);b.style.display="inline-block"}else b.style.display="none"}; Vem=function(F,J){J=g.m8("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:J.toString()});F.updateValue("seekTime",J)}; Bh7=function(F){XI.call(this,F,!1,!0);this.kQ=[];this.Kk=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.WN=new g.U({X:"div",K:"ytp-featured-product-open-in-new"});g.k(this,this.WN);this.countdownTimer=new g.U({X:"text",K:"ytp-featured-product-countdown",sQ:"{{content}}"});this.countdownTimer.hide();g.k(this,this.countdownTimer);this.U=new g.U({X:"div",K:"ytp-featured-product-trending",j:[{X:"div",K:"ytp-featured-product-trending-icon"},{X:"text",K:"ytp-featured-product-trending-text", sQ:"{{trendingOffer}}"}]});this.U.hide();g.k(this,this.U);this.overflowButton=new g.U({X:"button",Dv:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.k(this,this.overflowButton);this.V=new g.U({X:"text",K:"ytp-featured-product-exclusive-countdown",sQ:"{{content}}",L:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.k(this,this.V);this.W=new g.U({X:"div",K:"ytp-featured-product-exclusive-container",L:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, j:[{X:"div",K:"ytp-featured-product-exclusive-badge-container",j:[{X:"div",K:"ytp-featured-product-exclusive-badge",j:[{X:"text",K:"ytp-featured-product-exclusive-badge-text",sQ:"{{exclusive}}",L:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.W.hide();g.k(this,this.W);this.banner=new g.U({X:"a",K:"ytp-featured-product-container",j:[{X:"div",K:"ytp-featured-product-thumbnail",j:[{X:"img",L:{src:"{{thumbnail}}"}},this.WN]},{X:"div",K:"ytp-featured-product-details",j:[{X:"text",K:"ytp-featured-product-title", sQ:"{{title}}"},this.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",K:"ytp-featured-product-price-container",L:{"aria-label":"{{priceA11yText}}"},j:[{X:"text",K:"ytp-featured-product-price-when-promotion-text-enabled",sQ:"{{price}}",L:{"aria-hidden":"true"}},{X:"text",K:"ytp-featured-product-promotion-text",sQ:"{{promotionText}}",L:{"aria-hidden":"true"}}]}:{X:"div",L:{"aria-label":"{{priceA11yText}}"},j:[{X:"text",K:"ytp-featured-product-price",sQ:"{{price}}", L:{"aria-hidden":"true"}},{X:"text",K:"ytp-featured-product-sales-original-price",sQ:"{{salesOriginalPrice}}",L:{"aria-hidden":"true"}},{X:"text",K:"ytp-featured-product-price-drop-reference-price",sQ:"{{priceDropReferencePrice}}",L:{"aria-hidden":"true"}}]},this.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",K:"ytp-featured-product-when-promotion-text-enabled",j:[{X:"text",K:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",sQ:"{{affiliateDisclaimer}}"}, this.U,{X:"text",K:"ytp-featured-product-vendor-when-promotion-text-enabled",sQ:"{{vendor}}"}]}:{X:"div",j:[{X:"text",K:"ytp-featured-product-affiliate-disclaimer",sQ:"{{affiliateDisclaimer}}"},this.G.S("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.U,{X:"text",K:"ytp-featured-product-vendor",sQ:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.k(this,this.banner);this.banner.Az(this.T.element);this.B(this.G,g.u6("featured_product"),this.v7E);this.B(this.G, g.wq("featured_product"),this.t7);this.B(this.G,"videodatachange",this.onVideoDataChange);this.B(this.overflowButton.element,"click",this.RM);this.B(F,"featuredproductdismissed",this.tx)}; ThJ=function(F){var J,b;F=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData;var I,u,w;return(F==null||!F.affiliateDisclaimer)&&(F==null?0:(I=F.exclusivesData)==null?0:I.exclusiveOfferLabelText)&&(F==null?0:(u=F.exclusivesData)==null?0:u.expirationTimestampMs)&&(F==null?0:(w=F.exclusivesData)==null?0:w.exclusiveOfferCountdownText)?!0:!1}; SKG=function(F){var J,b,I,u,w=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:(I=b.itemData)==null?void 0:(u=I.exclusivesData)==null?void 0:u.expirationTimestampMs;J=(Number(w)-Date.now())/1E3;if(J>0){if(J<604800){var M,q,v,a;b=(M=F.C)==null?void 0:(q=M.bannerData)==null?void 0:(v=q.itemData)==null?void 0:(a=v.exclusivesData)==null?void 0:a.exclusiveOfferCountdownText;if(b!==void 0)for(M=Date.now(),q=g.N(b),v=q.next();!v.done;v=q.next())if(v=v.value,v!==void 0&&v.text!==void 0&&(a=Number(v.textDisplayStartTimestampMs), !isNaN(a)&&M>=a)){v.insertCountdown?(J=v.text.replace(/\$0/,String(ev({seconds:J}))),F.V.Ce(J)):F.V.Ce(v.text);F.V.show();break}}var e,K,p,m;F.W.update({exclusive:(e=F.C)==null?void 0:(K=e.bannerData)==null?void 0:(p=K.itemData)==null?void 0:(m=p.exclusivesData)==null?void 0:m.exclusiveOfferLabelText});F.W.show();gs(F);var y;(y=F.NW)==null||y.start()}else rUk(F)}; rUk=function(F){var J;(J=F.NW)==null||J.stop();F.V.hide();F.W.hide();mG(F)}; szo=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData;return F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(I==null||!I.priceReplacementText)&&(I==null?0:I.promotionText)?I==null?void 0:I.promotionText.content:null}; YKz=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData,u,w;if(!(I!=null&&I.priceReplacementText||F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(I==null?0:(u=I.dealsData)==null?0:(w=u.sales)==null?0:w.originalPrice)){var M,q;return I==null?void 0:(M=I.dealsData)==null?void 0:(q=M.sales)==null?void 0:q.originalPrice}return null}; $pk=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData,u,w,M,q;if(!((I==null?0:I.priceReplacementText)||F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(I==null?0:(u=I.dealsData)==null?0:(w=u.sales)==null?0:w.originalPrice))&&(I==null?0:(M=I.dealsData)==null?0:(q=M.priceDrop)==null?0:q.referencePrice)){var v,a;return I==null?void 0:(v=I.dealsData)==null?void 0:(a=v.priceDrop)==null?void 0:a.referencePrice}return null}; CKz=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData;if(I==null?0:I.priceReplacementText)return I==null?void 0:I.priceReplacementText;if((I==null?0:I.promotionText)&&F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var u;return(I==null?void 0:I.price)+" "+(I==null?void 0:(u=I.promotionText)==null?void 0:u.content)}var w,M;if(I==null?0:(w=I.dealsData)==null?0:(M=w.sales)==null?0:M.originalPrice){var q,v;return I==null?void 0:(q=I.dealsData)== null?void 0:(v=q.sales)==null?void 0:v.salesPriceAccessibilityLabel}var a,e;if(I==null?0:(a=I.dealsData)==null?0:(e=a.priceDrop)==null?0:e.referencePrice){var K,p;return(I==null?void 0:I.price)+" "+(I==null?void 0:(K=I.dealsData)==null?void 0:(p=K.priceDrop)==null?void 0:p.referencePrice)}return I==null?void 0:I.price}; Xho=function(F){if(F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J,b,I;return F.U.uT?null:(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:(I=b.itemData)==null?void 0:I.vendorName}var u,w,M,q,v,a;return F.U.uT||F.W.uT||((u=F.C)==null?0:(w=u.bannerData)==null?0:(M=w.itemData)==null?0:M.affiliateDisclaimer)?null:(q=F.C)==null?void 0:(v=q.bannerData)==null?void 0:(a=v.itemData)==null?void 0:a.vendorName}; RXY=function(F,J){y$(F);if(J){var b=g.ZR.getState().entities;b=qs(b,"featuredProductsEntity",J);if(b!=null&&b.productsData){J=[];b=g.N(b.productsData);for(var I=b.next();!I.done;I=b.next()){I=I.value;var u=void 0;if((u=I)!=null&&u.identifier&&I.featuredSegments){F.kQ.push(I);var w=void 0;u=g.N((w=I)==null?void 0:w.featuredSegments);for(w=u.next();!w.done;w=u.next()){var M=w.value;w=Qza(M.startTimeSec);w!==void 0&&(M=Qza(M.endTimeSec),J.push(new g.b6(w*1E3,M===void 0?0x7ffffffffffff:M*1E3,{id:I.identifier, namespace:"featured_product"})))}}}F.G.TU(J)}}}; mG=function(F){if(F.trendingOfferEntityKey){var J=g.ZR.getState().entities;if(J=qs(J,"trendingOfferEntity",F.trendingOfferEntityKey)){var b,I,u;J.encodedSkuId!==((b=F.C)==null?void 0:(I=b.bannerData)==null?void 0:(u=I.itemData)==null?void 0:u.encodedOfferSkuId)?gs(F):(F.U.update({trendingOffer:J.shortLabel+" \u2022 "+J.countLabel}),F.U.show(),F.banner.update({vendor:Xho(F)}))}else gs(F)}else gs(F)}; gs=function(F){F.U.hide();F.banner.update({vendor:Xho(F)})}; y$=function(F){F.kQ=[];F.t7();F.G.Yo("featured_product")}; Dp_=function(F){var J,b,I,u,w=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:(I=b.itemData)==null?void 0:(u=I.hiddenProductOptions)==null?void 0:u.dropTimestampMs;J=(Number(w)-Date.now())/1E3;F.countdownTimer.Ce(ev({seconds:J}));if(J>0){var M;(M=F.xm)==null||M.start()}}; k3Y=function(F){var J;(J=F.xm)==null||J.stop();F.countdownTimer.hide()}; Qza=function(F){if(F!==void 0&&F.trim()!==""&&(F=Math.trunc(Number(F.trim())),!(isNaN(F)||F<0)))return F}; Upa=function(F,J,b){g.U.call(this,{X:"div",Dv:["ytp-info-panel-action-item"],j:[{X:"div",K:"ytp-info-panel-action-item-disclaimer",sQ:"{{disclaimer}}"},{X:"a",Dv:["ytp-info-panel-action-item-button","ytp-button"],L:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{X:"div",K:"ytp-info-panel-action-item-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-info-panel-action-item-label",sQ:"{{label}}"}]}]});this.G=F;this.C=b;this.disclaimer=this.RI("ytp-info-panel-action-item-disclaimer");this.button= this.RI("ytp-info-panel-action-item-button");this.o8=!1;this.G.createServerVe(this.element,this,!0);this.listen("click",this.onClick);F="";b=g.O(J==null?void 0:J.onTap,sT);var I=g.O(b,g.S0);this.o8=!1;I?(F=I.url||"",F.startsWith("//")&&(F="https:"+F),this.o8=!0,g.Sp(this.button,g.Ty(F))):(I=g.O(b,Oe4))&&!this.C?((F=I.phoneNumbers)&&F.length>0?(F="sms:"+F[0],I.messageText&&(F+="?&body="+encodeURI(I.messageText))):F="",this.o8=!0,g.Sp(this.button,g.Ty(F,[oN4]))):(b=g.O(b,hXm))&&!this.C&&(F=b.phoneNumber? "tel:"+b.phoneNumber:"",this.o8=!0,g.Sp(this.button,g.Ty(F,[cU_])));var u;if(b=(u=J.disclaimerText)==null?void 0:u.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var w;this.update({label:(w=J.bodyText)==null?void 0:w.content,icon:fr(),disclaimer:b})}else{this.disclaimer.style.display="none";var M;this.update({label:(M=J.bodyText)==null?void 0:M.content,icon:fr()})}this.G.setTrackingParams(this.element,J.trackingParams||null);this.o8&&(this.U={externalLinkData:{url:F}})}; xpm=function(F,J){var b=wV();g.YJ.call(this,F,{X:"div",K:"ytp-info-panel-detail-skrim",j:[{X:"div",K:"ytp-info-panel-detail",L:{role:"dialog",id:b},j:[{X:"div",K:"ytp-info-panel-detail-header",j:[{X:"div",K:"ytp-info-panel-detail-title",sQ:"{{title}}"},{X:"button",Dv:["ytp-info-panel-detail-close","ytp-button"],L:{"aria-label":"Close"},j:[g.iA()]}]},{X:"div",K:"ytp-info-panel-detail-body",sQ:"{{body}}"},{X:"div",K:"ytp-info-panel-detail-items"}]}]},250);this.C=J;this.items=this.RI("ytp-info-panel-detail-items"); this.T=new g.s5(this);this.itemData=[];this.Z=b;this.B(this.RI("ytp-info-panel-detail-close"),"click",this.fk);this.B(this.RI("ytp-info-panel-detail-skrim"),"click",this.fk);this.B(this.RI("ytp-info-panel-detail"),"click",function(I){I.stopPropagation()}); g.k(this,this.T);this.G.createServerVe(this.element,this,!0);this.B(F,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",F.getVideoData());this.hide()}; nNC=function(F,J){F=g.N(F.itemData);for(var b=F.next();!b.done;b=F.next())b=b.value,b.G.logVisibility(b.element,J)}; Hez=function(F,J){g.U.call(this,{X:"div",K:"ytp-info-panel-preview",L:{"aria-live":"assertive","aria-atomic":"true","aria-owns":J.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-info-panel-preview-text",sQ:"{{text}}"},{X:"div",K:"ytp-info-panel-preview-chevron",sQ:"{{chevron}}"}]});var b=this;this.G=F;this.r0=this.C=this.videoId=null;this.Z=this.showControls=this.U=!1;this.B(this.element,"click",function(){F.logClick(b.element);F.bJ();CE(J)}); this.T=new g.ZU(this,250,!1,100);g.k(this,this.T);this.G.createServerVe(this.element,this,!0);this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"presentingplayerstatechange",this.Wt);this.B(this.G,"paidcontentoverlayvisibilitychange",this.WB);this.B(this.G,"infopaneldetailvisibilitychange",this.WB);var I=F.getVideoData()||{};tea(I)&&Zem(this,I);this.B(F,"onShowControls",this.gF);this.B(F,"onHideControls",this.kz)}; Zem=function(F,J){if(!J.ir||!F.G.Bx()){var b=J.Sj||1E4,I=tea(J);F.C?J.videoId&&J.videoId!==F.videoId&&(g.L8(F.C),F.videoId=J.videoId,I?(LWC(F,b,J),F.Bo()):(F.fk(),F.C.dispose(),F.C=null)):I&&(J.videoId&&(F.videoId=J.videoId),LWC(F,b,J),F.Bo())}}; tea=function(F){var J,b,I,u;return!!((J=F.xH)==null?0:(b=J.title)==null?0:b.content)||!!((I=F.xH)==null?0:(u=I.bodyText)==null?0:u.content)}; LWC=function(F,J,b){F.C&&F.C.dispose();F.C=new g.ty(F.jPI,J,F);g.k(F,F.C);var I;J=((I=b.xH)==null?void 0:I.trackingParams)||null;F.G.setTrackingParams(F.element,J);var u;var w,M;if(b==null?0:(w=b.xH)==null?0:(M=w.title)==null?0:M.content){var q;I=(u=b.xH)==null?void 0:(q=u.title)==null?void 0:q.content;var v,a;if((v=b.xH)==null?0:(a=v.bodyText)==null?0:a.content)I+=" \u2022 ";u=I}else u="";var e,K;b=((e=b.xH)==null?void 0:(K=e.bodyText)==null?void 0:K.content)||"";F.update({text:u+b,chevron:g.yr()})}; FJm=function(F,J){F.C&&(g.x(J,8)?(F.U=!0,F.Bo(),F.C.start()):(g.x(J,2)||g.x(J,64))&&F.videoId&&(F.videoId=null))}; i_=function(F){var J=null;try{J=F.toLocaleString("en",{style:"percent"})}catch(b){J=F.toLocaleString(void 0,{style:"percent"})}return J}; z4=function(F,J){var b=0;F=g.N(F);for(var I=F.next();!(I.done||I.value.startTime>J);I=F.next())b++;return b===0?b:b-1}; J74=function(F,J){for(var b=0,I=g.N(F),u=I.next();!u.done;u=I.next()){u=u.value;if(J<u.timeRangeStartMillis)return null;if(J>=u.timeRangeStartMillis&&J<u.timeRangeStartMillis+u.C)break;b++}b+1<F.length&&F[b+1].timeRangeStartMillis<=J&&b++;return b<F.length?b:null}; bRm=function(F,J){J=z4(F,J)+1;return J<F.length?J:-1}; IPC=function(F,J){return z4(F,J)-1}; um3=function(F,J){return new g.b6(F,J,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+F})}; MU4=function(F,J,b,I,u,w,M,q){g.s5.call(this);var v=this;this.api=F;this.contextMenu=b;this.rq=I;this.Fd=u;this.C=w;this.W=M;this.progressBar=q;this.D=new g.ty(function(){wnC(v,!1)},1E3); this.U="";this.T={hQ:!1};this.Z=!1;g.k(this,this.D);this.B(J,"mousedown",function(){NH(v,!1)}); this.B(b.element,"mousedown",function(){NH(v,!1)}); this.B(J,"keydown",this.Xe);this.B(b.element,"keydown",this.Xe);this.B(J,"keyup",this.s6);this.B(b.element,"keyup",this.s6)}; A7k=function(F,J){return J<0?0:Math.floor(Math.min(J,F.api.getDuration())*1E3)}; l_=function(F,J,b){var I=F.api.getCurrentTime(),u=A7k(F,I);F=A7k(F,I+J);return{startMediaTimeMs:u,endMediaTimeMs:F,seekSource:b}}; qgm=function(F){var J,b=(J=F.api.getVideoData())==null?void 0:J.vV();return F.api.getPresentingPlayerType(b)!==2}; NH=function(F,J){F.Z=J;g.qr(F.api.getRootNode(),"ytp-probably-keyboard-focus",J);g.qr(F.contextMenu.element,"ytp-probably-keyboard-focus",J)}; Wm=function(F,J,b,I){var u=g.Y0(F.api.TF());if(u&&u.loaded){var w=F.api.getSubtitlesUserSettings();u=void 0;for(var M=0;M<g.fn.length;M++){var q=g.fn[M];if(q.option===J){u=q.options;break}}M=void 0;for(q=0;q<u.length;q++)u[q].option===w[J]&&(M=q);if(I)if(b){if(M===0)return}else if(M===u.length-1)return;I={};I[J]=u[(M+(b?u.length-1:1))%u.length].option;F.api.updateSubtitlesUserSettings(I);wnC(F,!0);F.D.start()}}; wnC=function(F,J){g.Y0(F.api.TF())&&F.api.setOption("captions","sampleSubtitles",J)}; g.ds=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-button","ytp-overflow-button"],L:{title:"More","aria-haspopup":"true","aria-owns":J.element.id},j:[{X:"div",K:"ytp-overflow-icon",j:[{X:"svg",L:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},j:[{X:"path",L:{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 b=this;this.G=F;this.z7=J;this.C=this.visible=!1;F.createClientVe(this.element, this,16499);this.B(F,"videoplayerreset",this.VG);this.B(F,"appresize",this.VG);this.B(F,"fullscreentoggled",this.VG);this.B(F,"presentingplayerstatechange",this.VG);this.VG();zP(F,this.element,this);this.listen("click",function(){F.logClick(b.element);CE(J,b.element,!1)}); this.B(J.closeButton,"click",function(){b.focus()})}; vvJ=function(F){g.YJ.call(this,F,{X:"div",K:"ytp-overflow-panel",L:{id:wV(),role:"dialog"},j:[{X:"div",K:"ytp-overflow-panel-content",j:[{X:"div",K:"ytp-overflow-panel-action-buttons",sQ:"{{buttons}}"}]},{X:"button",Dv:["ytp-overflow-panel-close","ytp-button"],L:{title:"Close"},j:[g.iA()]}]},250);this.actionButtons=[];this.C=this.RI("ytp-overflow-panel-content");this.closeButton=this.RI("ytp-overflow-panel-close");this.B(this.closeButton,"click",this.fk);zP(F,this.closeButton,this);this.listen("click", this.A0);this.B(F,"videoplayerreset",this.hide);this.B(F,"fullscreentoggled",this.onFullscreenToggled);this.hide()}; aPJ=function(F,J){F.actionButtons.includes(J)||(F.actionButtons.push(J),F.updateValue("buttons",F.actionButtons))}; eD_=function(F,J){F=g.N(F.actionButtons);for(var b=F.next();!b.done;b=F.next())b.value.tJ(J)}; KJk=function(F,J,b){var I=g.dA(J,b),u=I.lr("default.jpg");g.U.call(this,{X:"a",Dv:["ytp-video-menu-item","ytp-button"],L:{role:"menuitemradio","aria-label":I.title,href:F.J().getVideoUrl(I.videoId,J.listId?J.listId.toString():null)},j:[{X:"div",K:"ytp-video-menu-item-index",sQ:String(b+1)},{X:"div",K:"ytp-video-menu-item-now-playing",sQ:"\u25b6"},{X:"div",K:"ytp-video-menu-item-thumbnail",L:{style:u?"background-image: url("+u+");":void 0}},{X:"div",K:"ytp-video-menu-item-title",sQ:I.title},{X:"div", K:"ytp-video-menu-item-author",sQ:I.author}]});this.api=F;this.index=b;this.listen("click",this.onClick)}; pnk=function(F){g.YJ.call(this,F,{X:"div",K:"ytp-playlist-menu",L:{role:"dialog",id:wV()},j:[{X:"div",K:"ytp-playlist-menu-header",j:[{X:"div",K:"ytp-playlist-menu-title",j:[F.J().T?{X:"span",K:"ytp-playlist-menu-title-name",sQ:"{{title}}"}:{X:"a",K:"ytp-playlist-menu-title-name",L:{href:"{{playlisturl}}"},sQ:"{{title}}"},{X:"button",Dv:["ytp-playlist-menu-close","ytp-button"],L:{"aria-label":"Close"},j:[g.iA()]}]},{X:"div",K:"ytp-playlist-menu-subtitle",sQ:"{{subtitle}}"}]},{X:"div",K:"ytp-playlist-menu-items", L:{role:"menu"}}]},250);this.api=F;this.T=this.selected=this.Z=this.playlist=null;this.items=this.RI("ytp-playlist-menu-items");this.C=new g.s5(this);this.playlistData=[];this.B(this.RI("ytp-playlist-menu-close"),"click",this.fk);var J=this.RI("ytp-playlist-menu-title-name");F.J().T||(this.T=this.B(J,"click",this.exR));g.k(this,this.C);this.hide()}; Eb=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-playlist-menu-button","ytp-button"],L:{title:"{{title}}","aria-owns":String(J.element.id),"aria-haspopup":"true","aria-label":"Playlist"},j:[{X:"div",K:"ytp-playlist-menu-button-icon",j:[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}]},{X:"div",K:"ytp-playlist-menu-button-text",sQ:"{{text}}"}]});var b=this;this.api=F;this.playlist=null;this.visible=!1;F.createClientVe(this.element,this,70344);this.B(F,"videodatachange",this.C);this.B(F,"videoplayerreset",this.C);this.B(F,"onPlaylistUpdate",this.C);this.B(F,"presentingplayerstatechange",this.VG);this.B(F,"appresize",this.VG);this.hide();this.C();zP(F,this.element,this);this.listen("click",function(){F.logClick(b.element);CE(J,b.element,!1)})}; gvm=function(F,J){g.U.call(this,{X:"div",K:"ytp-promotooltip-wrapper",j:[{X:"div",K:"ytp-promotooltip-container",j:[{X:"div",K:"ytp-promotooltip-content",j:[{X:"div",K:"ytp-promotooltip-title",sQ:"{{title}}"},{X:"div",K:"ytp-promotooltip-details",sQ:"{{details}}"}]},{X:"div",K:"ytp-promotooltip-buttons",j:[{X:"div",K:"ytp-promotooltip-dismiss-button",sQ:"{{dismissButtonText}}",L:{tabindex:"0"}},{X:"div",K:"ytp-promotooltip-accept-button",sQ:"{{acceptButtonText}}",L:{tabindex:"0","aria-haspopup":"true"}}]}]}, {X:"div",K:"ytp-promotooltip-pointer"}]});var b=this;this.tooltipRenderer=F;this.G=J;this.C=this.T=null;this.title=this.RI("ytp-promotooltip-title");this.details=this.RI("ytp-promotooltip-details");this.acceptButton=this.RI("ytp-promotooltip-accept-button");this.dismissButton=this.RI("ytp-promotooltip-dismiss-button");this.U=this.W=!1;this.Z=!0;this.Tj=this.V=this.N=this.Y=!1;this.Po={Iy:function(I){b.Iy(I)}}; this.wY(!1);F=this.tooltipRenderer.trackingParams||null;if(this.U=!!F)this.G.createServerVe(this.element,this,!0),this.G.setTrackingParams(this.element,F);this.B(J,"onShowControls",this.qg);this.B(J,"onHideControls",this.O7);this.B(J,"resize",this.mO);this.B(this.acceptButton,"click",this.xWf);this.B(this.dismissButton,"click",this.Rt_);this.B(document,"click",this.DN)}; mia=function(F){var J=document.querySelectorAll('[data-tooltip-target-id="'+F.tooltipRenderer.targetId+'"]');J=J.length>0?J[0]:null;var b=g.c1("ytp-chrome-bottom"),I=g.c1("ytp-ad-module");F.Z=!(b==null||!b.contains(J));F.Y=!(I==null||!I.contains(J));F.N=!(J==null||!J.hasAttribute("data-tooltip-target-fixed"));return J}; zDa=function(F,J,b){if(!F.W){if(J){F.tooltipRenderer=J;J=F.tooltipRenderer.text;var I=!1,u;(J==null?0:(u=J.runs)==null?0:u.length)&&J.runs[0].text&&(F.update({title:J.runs[0].text.toString()}),I=!0);g.Wc(F.title,I);J=F.tooltipRenderer.detailsText;u=!1;var w;if((J==null?0:(w=J.runs)==null?0:w.length)&&J.runs[0].text){I=J.runs[0].text.toString();w=I.indexOf("$TARGET_ICON");if(w>-1)if(F.tooltipRenderer.targetId){J=[];I=I.split("$TARGET_ICON");var M=new g.Mc({X:"span",K:"ytp-promotooltip-details-icon", j:[y7J[F.tooltipRenderer.targetId]]});g.k(F,M);for(var q=[],v=g.N(I),a=v.next();!a.done;a=v.next())a=new g.Mc({X:"span",K:"ytp-promotooltip-details-component",sQ:a.value}),g.k(F,a),q.push(a);I.length===2?(J.push(q[0].element),J.push(M.element),J.push(q[1].element)):I.length===1&&(w===0?(J.push(M.element),J.push(q[0].element)):(J.push(q[0].element),J.push(M.element)));w=J.length?J:null}else w=null;else w=I;if(w){if(typeof w!=="string")for(g.J6(F.details),u=g.N(w),w=u.next();!w.done;w=u.next())F.details.appendChild(w.value); else F.update({details:w});u=!0}}g.Wc(F.details,u);u=F.tooltipRenderer.acceptButton;w=!1;var e,K,p;((e=g.O(u,g.TX))==null?0:(K=e.text)==null?0:(p=K.runs)==null?0:p.length)&&g.O(u,g.TX).text.runs[0].text&&(F.update({acceptButtonText:g.O(u,g.TX).text.runs[0].text.toString()}),w=!0);g.Wc(F.acceptButton,w);e=F.tooltipRenderer.dismissButton;K=!1;var m,y,f;((m=g.O(e,g.TX))==null?0:(y=m.text)==null?0:(f=y.runs)==null?0:f.length)&&g.O(e,g.TX).text.runs[0].text&&(F.update({dismissButtonText:g.O(e,g.TX).text.runs[0].text.toString()}), K=!0);g.Wc(F.dismissButton,K)}b&&(F.T=b);F.C=mia(F);F.V=!1;F.G.J().S("web_player_hide_nitrate_promo_tooltip")||F.wY(!0);iRa(F);F.uT&&!F.Tj&&(F.Tj=!0,F.Po.Iy(0));F.U&&F.G.logVisibility(F.element,F.uT)}}; jc=function(F){F.wY(!1);F.U&&F.G.logVisibility(F.element,F.uT)}; N6m=function(F){var J,b,I,u=((J=g.O(F.acceptButton,g.TX))==null?void 0:(b=J.text)==null?void 0:(I=b.runs)==null?void 0:I.length)&&!!g.O(F.acceptButton,g.TX).text.runs[0].text,w,M,q;J=((w=g.O(F.dismissButton,g.TX))==null?void 0:(M=w.text)==null?void 0:(q=M.runs)==null?void 0:q.length)&&!!g.O(F.dismissButton,g.TX).text.runs[0].text;return u||J}; iRa=function(F){var J;if(!(J=!F.C)){J=F.C;var b=window.getComputedStyle(J);J=b.display==="none"||b.visibility==="hidden"||J.getAttribute("aria-hidden")==="true"}if(J||F.G.isMinimized())F.wY(!1);else if(J=g.fL(F.C),J.width&&J.height){F.G.kU(F.element,F.C);var I=F.G.mG().getPlayerSize().height;b=g.fL(F.RI("ytp-promotooltip-container")).height;F.Z?F.element.style.top=I-b-J.height-12+"px":F.N||(I=F.G.xK().height-b-J.height-12,F.element.style.top=I+"px");I=F.RI("ytp-promotooltip-pointer");var u=g.NB(F.C, F.G.getRootNode()),w=Number(F.element.style.left.replace(/[^\d\.]/g,""));F=F.G.isFullscreen()?18:12;I.style.left=u.x-w+J.width/2-F+"px";I.style.top=b+"px"}else F.wY(!1)}; G4=function(F){g.U.call(this,{X:"button",Dv:["ytp-replay-button","ytp-button"],L:{title:"Replay"},j:[g.dV()]});this.G=F;this.B(F,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.aC(F.getPlayerStateObject());zP(this.G,this.element,this)}; V$=function(F,J){J=J===void 0?240:J;g.U.call(this,{X:"button",Dv:["ytp-button","ytp-search-button"],L:{title:"Search","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-search-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-search-title",sQ:"Search"}]});this.api=F;this.U=J;this.visible=!1;this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",K:"ytp-svg-fill",L:{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"}}]}); F.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.C();this.B(F,"appresize",this.C);this.B(F,"videodatachange",this.C);zP(F,this.element,this)}; g.Pm=function(F,J,b,I){I=I===void 0?240:I;g.U.call(this,{X:"button",Dv:["ytp-button","ytp-share-button"],L:{title:"Share","aria-haspopup":"true","aria-owns":b.element.id,"data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-share-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-share-title",sQ:"Share"}]});this.api=F;this.C=J;this.T=b;this.Z=I;this.U=this.visible=!1;this.tooltip=this.C.W1();F.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.B(F,"videodatachange",this.VG); this.B(F,"videoplayerreset",this.VG);this.B(F,"appresize",this.VG);this.B(F,"presentingplayerstatechange",this.VG);this.VG();this.addOnDisposeCallback(g.iy(this.tooltip,this.element))}; lPG=function(F){var J=F.api.J(),b=F.api.getVideoData(),I=g.dN(J)&&g.Ef(F.api)&&g.x(F.api.getPlayerStateObject(),128);J=J.T||J.disableSharing&&F.api.getPresentingPlayerType()!==2||!b.showShareButton||b.lJ||I||g.tw(b)||F.U;I=F.api.mG().getPlayerSize().width;return!!b.videoId&&I>=F.Z&&!J}; fPv=function(F,J){J.name!=="InvalidStateError"&&J.name!=="AbortError"&&(J.name==="NotAllowedError"?(F.C.bJ(),CE(F.T,F.element,!1)):g.Td(J))}; diz=function(F,J){var b=wV(),I=F.J();b={X:"div",K:"ytp-share-panel",L:{id:wV(),role:"dialog","aria-labelledby":b},j:[{X:"div",K:"ytp-share-panel-inner-content",j:[{X:"div",K:"ytp-share-panel-title",L:{id:b},sQ:"Share"},{X:"a",Dv:["ytp-share-panel-link","ytp-no-contextmenu"],L:{href:"{{link}}",target:I.N,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},sQ:"{{linkText}}"},{X:"label",K:"ytp-share-panel-include-playlist",j:[{X:"input",K:"ytp-share-panel-include-playlist-checkbox",L:{type:"checkbox", checked:"true"}},"Include playlist"]},{X:"div",K:"ytp-share-panel-loading-spinner",j:[JH()]},{X:"div",K:"ytp-share-panel-service-buttons",sQ:"{{buttons}}"},{X:"div",K:"ytp-share-panel-error",sQ:"An error occurred while retrieving sharing information. Please try again later."}]},{X:"button",Dv:["ytp-share-panel-close","ytp-button"],L:{title:"Close"},j:[g.iA()]}]};g.YJ.call(this,F,b,250);var u=this;this.moreButton=null;this.api=F;this.tooltip=J.W1();this.T=[];this.W=this.RI("ytp-share-panel-inner-content"); this.closeButton=this.RI("ytp-share-panel-close");this.B(this.closeButton,"click",this.fk);this.addOnDisposeCallback(g.iy(this.tooltip,this.closeButton));this.Z=this.RI("ytp-share-panel-include-playlist-checkbox");this.B(this.Z,"click",this.VG);this.C=this.RI("ytp-share-panel-link");this.addOnDisposeCallback(g.iy(this.tooltip,this.C));this.api.createClientVe(this.C,this,164503);this.B(this.C,"click",function(w){w.preventDefault();u.api.logClick(u.C);var M=u.api.getVideoUrl(!0,!0,!1,!1);M=WJo(u,M); g.Fy(M,u.api,w)&&u.api.jE("SHARE_CLICKED")}); this.listen("click",this.i8);this.B(F,"videoplayerreset",this.hide);this.B(F,"fullscreentoggled",this.onFullscreenToggled);this.B(F,"onLoopRangeChange",this.sfQ);this.hide()}; jLz=function(F,J){EvG(F);for(var b=J.links||J.shareTargets,I=0,u={},w=0;w<b.length&&I<2;u={hY:void 0,Xi:void 0},w++){u.hY=b[w];a:switch(u.hY.img||u.hY.iconId){case "facebook":var M={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{X:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",L:{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":M={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{X:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",L:{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:M=null}if(M){var q=u.hY.sname||u.hY.serviceName;u.Xi=new g.U({X:"a",Dv:["ytp-share-panel-service-button","ytp-button"],L:{href:u.hY.url,target:"_blank",title:q},j:[M]});u.Xi.listen("click",function(e){return function(K){var p=e.hY.url;if(g.f0(K)){var m=m===void 0?{}:m;m.target=m.target||"YouTube";m.width=m.width||"600";m.height=m.height||"600";var y=m;y||(y={});m=window;var f=p instanceof Gy?p:g.Ty(typeof p.href!="undefined"?p.href:String(p));var d=self.crossOriginIsolated!== void 0,G="strict-origin-when-cross-origin";window.Request&&(G=(new Request("/")).referrerPolicy);var P=G==="unsafe-url";G=y.noreferrer;if(d&&G){if(P)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");G=!1}p=y.target||p.target;d=[];for(var r in y)switch(r){case "width":case "height":case "top":case "left":d.push(r+"="+y[r]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":d.push(r+(y[r]?"="+y[r]: ""));break;default:d.push(r+"="+(y[r]?1:0))}r=d.join(",");ob()&&m.navigator&&m.navigator.standalone&&p&&p!="_self"?(r=g.H1("A"),g.Sp(r,f),r.target=p,G&&(r.rel="noreferrer"),((y=y.attributionsrc)||y==="")&&r.setAttribute("attributionsrc",y),y=document.createEvent("MouseEvent"),y.initMouseEvent("click",!0,!0,m,1),r.dispatchEvent(y),m={}):G?(m=g.C5(m,"",p,r),y=g.VG(f),m&&(m.opener=null,y===""&&(y="javascript:''"),y=Y_('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ tQ(y)+'">'),(f=m.document)&&f.write&&(f.write($_(y)),f.close()))):((m=g.C5(m,f,p,r))&&y.noopener&&(m.opener=null),m&&y.noreferrer&&(m.opener=null));m&&(m.opener||(m.opener=window),m.focus());K.preventDefault()}}}(u)); u.Xi.addOnDisposeCallback(g.iy(F.tooltip,u.Xi.element));q==="Facebook"?F.api.createClientVe(u.Xi.element,u.Xi,164504):q==="Twitter"&&F.api.createClientVe(u.Xi.element,u.Xi,164505);F.B(u.Xi.element,"click",function(e){return function(){F.api.logClick(e.Xi.element)}}(u)); F.api.logVisibility(u.Xi.element,!0);F.T.push(u.Xi);I++}}var v=J.more||J.moreLink,a=new g.U({X:"a",Dv:["ytp-share-panel-service-button","ytp-button"],j:[{X:"span",K:"ytp-share-panel-service-button-more",j:[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{X:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",L:{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"}}]}]}],L:{href:v,target:"_blank",title:"More"}});a.listen("click",function(e){var K=v;F.api.logClick(F.moreButton.element);K=WJo(F,K);g.Fy(K,F.api,e)&&F.api.jE("SHARE_CLICKED")}); a.addOnDisposeCallback(g.iy(F.tooltip,a.element));F.api.createClientVe(a.element,a,164506);F.B(a.element,"click",function(){F.api.logClick(a.element)}); F.api.logVisibility(a.element,!0);F.T.push(a);F.moreButton=a;F.updateValue("buttons",F.T)}; WJo=function(F,J){var b={};g.dN(F.api.J())&&(g.wO(F.api,"addEmbedsConversionTrackingParams",[b]),J=g.Os(J,b));return J}; EvG=function(F){for(var J=g.N(F.T),b=J.next();!b.done;b=J.next())b=b.value,b.detach(),g.q8(b);F.T=[]}; Bm=function(F){return F===void 0||F.startSec===void 0||F.endSec===void 0?!1:!0}; G7z=function(F,J){F.startSec+=J;F.endSec+=J}; PYz=function(F){XI.call(this,F);this.U=this.C=this.isContentForward=this.V=!1;VUo(this);this.B(this.G,"changeProductsInVideoVisibility",this.wVN);this.B(this.G,"videodatachange",this.onVideoDataChange)}; B67=function(F){F.W&&F.fW.element.removeChild(F.W.element);F.W=void 0}; r77=function(F,J){return J.map(function(b){var I,u;if((b=(I=g.O(b,T6a))==null?void 0:(u=I.thumbnail)==null?void 0:u.thumbnails)&&b.length!==0)return b[0].url}).filter(function(b){return b!==void 0}).map(function(b){b=new g.U({X:"img", K:"ytp-suggested-action-product-thumbnail",L:{alt:"",src:b}});g.k(F,b);return b})}; SgC=function(F,J){F.isContentForward=J;g.qr(F.badge.element,"ytp-suggested-action-badge-content-forward",J)}; T4=function(F){var J=F.isContentForward&&!F.DS();g.qr(F.badge.element,"ytp-suggested-action-badge-preview-collapsed",J&&F.C);g.qr(F.badge.element,"ytp-suggested-action-badge-preview-expanded",J&&F.U)}; rs=function(F,J,b){return new g.b6(F*1E3,J*1E3,{priority:9,namespace:b})}; sL_=function(F){F.G.Yo("shopping_overlay_visible");F.G.Yo("shopping_overlay_preview_collapsed");F.G.Yo("shopping_overlay_preview_expanded");F.G.Yo("shopping_overlay_expanded")}; VUo=function(F){F.B(F.G,g.u6("shopping_overlay_visible"),function(){F.G0(!0)}); F.B(F.G,g.wq("shopping_overlay_visible"),function(){F.G0(!1)}); F.B(F.G,g.u6("shopping_overlay_expanded"),function(){F.eE=!0;C1(F)}); F.B(F.G,g.wq("shopping_overlay_expanded"),function(){F.eE=!1;C1(F)}); F.B(F.G,g.u6("shopping_overlay_preview_collapsed"),function(){F.C=!0;T4(F)}); F.B(F.G,g.wq("shopping_overlay_preview_collapsed"),function(){F.C=!1;T4(F)}); F.B(F.G,g.u6("shopping_overlay_preview_expanded"),function(){F.U=!0;T4(F)}); F.B(F.G,g.wq("shopping_overlay_preview_expanded"),function(){F.U=!1;T4(F)})}; CYJ=function(F){g.U.call(this,{X:"div",K:"ytp-shorts-title-channel",j:[{X:"a",K:"ytp-shorts-title-channel-logo",L:{href:"{{channelLink}}",target:F.J().N,"aria-label":"{{channelLogoLabel}}"}},{X:"div",K:"ytp-shorts-title-expanded-heading",j:[{X:"div",K:"ytp-shorts-title-expanded-title",j:[{X:"a",sQ:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:F.J().N,tabIndex:"0"}}]}]}]});var J=this;this.api=F;this.C=this.RI("ytp-shorts-title-channel-logo");this.channelName=this.RI("ytp-shorts-title-expanded-title"); this.subscribeButton=null;F.createClientVe(this.C,this,36925);this.B(this.C,"click",function(b){J.api.logClick(J.C);g.C5(window,Ygz(J));b.preventDefault()}); F.createClientVe(this.channelName,this,37220);this.B(this.channelName,"click",function(b){J.api.logClick(J.channelName);g.C5(window,Ygz(J));b.preventDefault()}); $ik(this);this.B(F,"videodatachange",this.VG);this.B(F,"videoplayerreset",this.VG);this.VG()}; $ik=function(F){if(!F.api.J().If){var J=F.api.getVideoData(),b=new g.Aq("Subscribe",null,"Subscribed",null,!0,!1,J.uB,J.subscribed,"channel_avatar",null,F.api,!0);F.api.createServerVe(b.element,F);var I;F.api.setTrackingParams(b.element,((I=J.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);F.B(b.element,"click",function(){F.api.logClick(b.element)}); F.subscribeButton=b;g.k(F,F.subscribeButton);F.subscribeButton.Az(F.element)}}; Ygz=function(F){var J=F.api.J(),b=F.api.getVideoData();b=g.Hu(J)+b.Om;if(!g.dN(J))return b;J={};g.wO(F.api,"addEmbedsConversionTrackingParams",[J]);return g.Os(b,J)}; Sc=function(F){g.YJ.call(this,F,{X:"button",Dv:["ytp-skip-intro-button","ytp-popup","ytp-button"],j:[{X:"div",K:"ytp-skip-intro-button-text",sQ:"Skip Intro"}]},100);var J=this;this.T=!1;this.C=new g.ty(function(){J.hide()},5E3); this.jZ=this.B9=NaN;g.k(this,this.C);this.V=function(){J.show()}; this.W=function(){J.hide()}; this.Z=function(){var b=J.G.getCurrentTime();b>J.B9/1E3&&b<J.jZ/1E3&&J.show()}; this.B(this.G,"videodatachange",function(b,I){J.xR(b,I)}); this.B(this.element,"click",function(){J.G.seekTo(J.jZ/1E3)}); this.hide()}; sb=function(F){g.U.call(this,{X:"button",Dv:["ytp-airplay-button","ytp-button"],L:{title:"AirPlay","data-priority":"10"},sQ:"{{icon}}"});this.G=F;this.listen("click",this.onClick);this.B(F,"airplayactivechange",this.VG);this.B(F,"airplayavailabilitychange",this.VG);this.VG();zP(F,this.element,this)}; QLJ=function(F){g.U.call(this,{X:"div",K:"ytp-gradient-bottom"});this.U=g.H1("CANVAS");this.C=this.U.getContext("2d",{willReadFrequently:!0});this.T=NaN;this.U.width=1;XnG(this,F.mG().getPlayerSize().height)}; XnG=function(F,J){if(F.C){J=Math.floor(J*.4);J=Math.max(J,47);var b=J+2;if(F.T!==b){F.T=b;F.U.height=b;F.C.clearRect(0,0,1,b);var I=F.C.createLinearGradient(0,2,0,2+J),u=J-42;I.addColorStop(0,"rgba(0, 0, 0, 0)");I.addColorStop(u/J,"rgba(0, 0, 0, 0.3)");I.addColorStop(1,"rgba(0, 0, 0, 0.68)");F.C.fillStyle=I;F.C.fillRect(0,2,1,J);F.element.style.height=b+"px";try{F.element.style.backgroundImage="url("+F.U.toDataURL()+")"}catch(w){}}}}; Yr=function(F,J,b,I){g.U.call(this,{X:"div",K:"ytp-chapter-container",j:[{X:"button",Dv:["ytp-chapter-title","ytp-button"],j:[{X:"span",L:{"aria-hidden":"true"},K:"ytp-chapter-title-prefix",sQ:"\u2022"},{X:"div",K:"ytp-chapter-title-content",sQ:"{{title}}",L:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:I}},{X:"div",K:"ytp-chapter-title-chevron",j:[{X:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{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.G=F;this.Z=J;this.W="";this.currentIndex=0;this.U=void 0;this.T=!0;this.Tj=this.RI("ytp-chapter-container");this.C=this.RI("ytp-chapter-title");this.eE=this.RI("ytp-chapter-title-content");this.updateVideoData("newdata",this.G.getVideoData());this.B(F,"videodatachange",this.updateVideoData);this.B(this.Tj,"click",this.onClick);this.B(F,g.u6(b),this.Q6);this.B(F,"onLoopRangeChange",this.Q6);this.B(F,"innertubeCommand",this.onClickCommand);(F=g.rN(this.G.J()))&&g.qr(this.C, "ytp-profile-page",!0);this.G.S("web_player_updated_entrypoint")&&g.qr(this.element,"ytp-xs-mono-button-style",!0);g.dN(this.G.J())||F||zP(this.G,this.eE,this)}; $r=function(F,J){Yr.call(this,F,J,"chapterCueRange","View chapter");this.V=""}; RDz=function(F,J,b,I,u){var w=J.pB/J.rows,M=Math.min(b/(J.Ju/J.columns),I/w),q=J.Ju*M,v=J.pB*M;q=Math.floor(q/J.columns)*J.columns;v=Math.floor(v/J.rows)*J.rows;var a=q/J.columns,e=v/J.rows,K=-J.column*a,p=-J.row*e;u&&w<=45&&(e-=1/M);a-=2/M;F=F.style;F.width=a+"px";F.height=e+"px";u||(I=(I-e)/2,b=(b-a)/2,F.marginTop=Math.floor(I)+"px",F.marginBottom=Math.ceil(I)+"px",F.marginLeft=Math.floor(b)+"px",F.marginRight=Math.ceil(b)+"px");F.background="url("+J.url+") "+K+"px "+p+"px/"+q+"px "+v+"px"}; Cn=function(F,J){g.U.call(this,{X:"div",K:"ytp-storyboard-framepreview",j:[{X:"div",K:"ytp-storyboard-framepreview-timestamp",sQ:"{{timestamp}}"},{X:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=F;this.Z=this.RI("ytp-storyboard-framepreview-img");this.U=null;this.T=NaN;this.events=new g.s5(this);this.C=new g.ZU(this,100);g.k(this,this.events);g.k(this,this.C);this.B(this.api,"presentingplayerstatechange",this.W);J&&this.B(this.element,"click",function(){J.FZ()})}; Dik=function(F,J){var b=!!F.U;F.U=J;F.U?(b||(F.events.B(F.api,"videodatachange",function(){Dik(F,F.api.Si())}),F.events.B(F.api,"progresssync",F.aP),F.events.B(F.api,"appresize",F.V)),F.T=NaN,k7Y(F),F.C.show(200)):(b&&g.Ve(F.events),F.C.hide(),F.C.stop())}; k7Y=function(F){var J=F.U,b=F.api.getCurrentTime(),I=F.api.mG().getPlayerSize(),u=Tt(J,I.width);u=v8a(J,u,b);F.update({timestamp:g.lD(b)});u!==F.T&&(F.T=u,AIv(J,u,I.width),J=wFa(J,u,I.width),RDz(F.Z,J,I.width,I.height))}; ORz=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-fullscreen-button","ytp-button"],L:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},sQ:"{{icon}}"});this.G=F;this.U=J;this.message=null;this.C=g.iy(this.U.W1(),this.element);this.T=new g.ty(this.t1,2E3,this);g.k(this,this.T);this.B(F,"fullscreentoggled",this.wT);this.B(F,"presentingplayerstatechange",this.VG);this.B(F,"resize",this.VG);this.listen("click",this.onClick);g.mu()&& (J=this.G.mG(),this.B(J,Rbk(),this.MS),this.B(J,QEm(document),this.Up));F.J().Om||F.J().Y||this.disable();F.createClientVe(this.element,this,139117);this.VG();this.wT(F.isFullscreen())}; XG=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-button","ytp-jump-button"],L:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j:[J>0?{X:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",Dv:["ytp-circle-arrow","ytp-svg-fill"],L:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {X:"text",Dv:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"7.05",y:"15.05"}}]}:{X:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",Dv:["ytp-circle-arrow","ytp-svg-fill"],L:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {X:"text",Dv:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"6.5",y:"15"}}]}]});var b=this;this.G=F;this.C=J;this.U=new g.ty(function(){b.T?(b.T=!1,b.U.start()):b.element.classList.remove("ytp-jump-spin","backwards")},250); this.T=!1;(J=J>0)?this.G.createClientVe(this.element,this,36843):this.G.createClientVe(this.element,this,36844);var I=g.m8(J?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.C).toString()});this.update({title:I,"data-title-no-tooltip":I,"aria-keyshortcuts":J?"\u2192":"\u2190"});this.Z=this.element.querySelector(".ytp-jump-button-text");this.Z.textContent=Math.abs(this.C).toString();this.listen("click",this.onClick,this);zP(F,this.element, this)}; ov3=function(F,J){J?F.element.classList.add("ytp-jump-button-enabled"):F.element.classList.remove("ytp-jump-button-enabled");F.G.logVisibility(F.element,J);F.G.Dl()}; Q$=function(F,J){Yr.call(this,F,J,"timedMarkerCueRange","View key moments");this.B(F,g.wq("timedMarkerCueRange"),this.Q6);this.B(F,"updatemarkervisibility",this.updateVideoData)}; hDa=function(F){var J,b=(J=F.G.getVideoData())==null?void 0:J.cN;if(b)for(F=F.Z.dD,b=g.N(b),J=b.next();!J.done;J=b.next())if(J=F[J.value]){var I=void 0,u=void 0,w=void 0;if(((I=J.onTap)==null?void 0:(u=I.innertubeCommand)==null?void 0:(w=u.changeEngagementPanelVisibilityAction)==null?void 0:w.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return J}}; R9=function(F){var J=F.S("web_enable_pip_on_miniplayer");g.U.call(this,{X:"button",Dv:["ytp-miniplayer-button","ytp-button"],L:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},j:[J?{X:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},j:[{X:"g",L:{transform:"translate(96, -96) scale(0.8)"},j:[{X:"path",G1:!0,L:{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"}}]}]}: Pak()]});this.G=F;this.visible=!1;this.listen("click",this.onClick);this.B(F,"fullscreentoggled",this.VG);this.updateValue("title",g.NZ(F,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});zP(F,this.element,this);F.createClientVe(this.element,this,62946);this.VG()}; Db=function(F,J,b){b=b===void 0?!1:b;g.U.call(this,{X:"button",Dv:["ytp-mute-button","ytp-button"],L:F.J().dD?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},sQ:"{{icon}}"});this.G=F;this.WN=b;this.C=null;this.Z=this.N=this.W=this.eE=NaN;this.Gj=this.V=null;this.T=[];this.U=[];this.visible=!1;this.Y=null;F.S("delhi_modern_web_player")&&this.update({"data-priority":3}); b=this.G.J();this.updateValue("icon",Gh());this.tooltip=J.W1();this.C=new g.Mc({X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"defs",j:[{X:"clipPath",L:{id:"ytp-svg-volume-animation-mask"},j:[{X:"path",L:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{X:"path",L:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{X:"path",K:"ytp-svg-volume-animation-mover",L:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{X:"clipPath",L:{id:"ytp-svg-volume-animation-slash-mask"}, j:[{X:"path",K:"ytp-svg-volume-animation-mover",L:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{X:"path",G1:!0,Dv:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{X:"path",G1:!0,Dv:["ytp-svg-fill","ytp-svg-volume-animation-hider"],L:{"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.k(this,this.C);this.V=this.C.RI("ytp-svg-volume-animation-speaker");this.Gj=this.V.getAttribute("d");this.T=g.kM("ytp-svg-volume-animation-mover",this.C.element);this.U=g.kM("ytp-svg-volume-animation-hider",this.C.element);this.kQ=new en;g.k(this,this.kQ);this.Tj=new en;g.k(this,this.Tj);this.listen("click",this.y_D);this.B(F,"appresize",this.c7);this.B(F,"onVolumeChange",this.onVolumeChange);var I=null;b.dD?this.addOnDisposeCallback(g.iy(J.W1(), this.element)):(J="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),I=new g.YJ(F,{X:"span",Dv:["ytp-popup","ytp-generic-popup"],L:{tabindex:"0"},j:[J[0],{X:"a",L:{href:"https://support.google.com/youtube/?p=noaudio",target:b.N},sQ:J[2]},J[4]]},100,!0),g.k(this,I),I.hide(),I.subscribe("show",function(u){F.rG(I,u)}),g.Pp(F,I.element,4)); this.message=I;F.createClientVe(this.element,this,28662);this.c7(F.mG().getPlayerSize());this.setVolume(F.getVolume(),F.isMuted())}; xiv=function(F,J){F.eE=J;var b=F.Gj;J&&(b+=mHa(c7Y,Uim,J));F.V.setAttribute("d",b)}; nvC=function(F,J){F.N=J;for(var b=20*J,I=0;I<F.T.length;I++)F.T[I].setAttribute("transform","translate("+b+", "+b+")");var u;J===1?u=Gh():u=F.C;for(b=0;b<F.U.length;b++){I=F.U[b];var w=void 0;if((w=I)==null?0:w.style)I.style.display=J===0?"none":""}u!==F.Y&&(F.updateValue("icon",u),F.Y=u)}; g.kr=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-play-button","ytp-button"],L:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},sQ:"{{icon}}"});this.G=F;this.C=null;this.transition=new en;this.tooltip=J.W1();g.k(this,this.transition);F.createClientVe(this.element,this,36842);F.S("embeds_use_parent_visibility_in_ve_logging")?F.logVisibility(this.element,this.D):F.logVisibility(this.element,!0);this.B(F,"fullscreentoggled",this.onVideoDataChange);this.B(F, "presentingplayerstatechange",this.onStateChange);this.B(F,"videodatachange",this.onVideoDataChange);this.aC(F.getPlayerStateObject());this.listen("click",this.UW,this);this.addOnDisposeCallback(g.iy(J.W1(),this.element))}; tU7=function(F){switch(F){case 1:return Wi();case 2:return Gl3();case 3:return g.dV();case 4:return TZz();default:return null}}; g.Ob=function(F,J,b){g.U.call(this,{X:"a",Dv:[b?"ytp-next-button":"ytp-prev-button","ytp-button"],L:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},j:[b?Nc():BZ7()]});var I=this;this.G=F;this.C=b;this.playlist=this.videoData=null;this.V= !1;this.Z=this.W=this.U=null;this.T=!1;this.tooltip=J.W1();b?F.createClientVe(this.element,this,6193):F.createClientVe(this.element,this,6194);this.B(F,"fullscreentoggled",this.onVideoDataChange);this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"onPlaylistUpdate",this.onVideoDataChange);this.B(F,"onLoopRangeChange",this.onVideoDataChange);this.C||this.B(F,"appresize",this.BI);this.B(F,"mdxpreviousnextchange",function(){ZRk(I);I.BI()}); this.onVideoDataChange()}; HRY=function(F){F.playlist&&F.playlist.unsubscribe("shuffle",F.onVideoDataChange,F)}; LJv=function(F){return!!F.playlist&&!F.C&&!!F.videoData&&!F.videoData.isLivePlayback&&F.G.getCurrentTime()>=3&&F.G.getPresentingPlayerType()!==2}; F0v=function(F){var J=dO(F.G.TF());return J?F.C?J.FI():J.Q5():!1}; ZRk=function(F){var J={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},b=F.playlist!=null&&F.playlist.FI();b=g.Ef(F.G)&&(!F.C||b);var I=F.C&&g.Bp(F.G),u=F0v(F),w=F.C&&F.G.getPresentingPlayerType()===5,M=g.NZ(F.G,"Next","SHIFT+n"),q=g.NZ(F.G,"Previous","SHIFT+p");if(w)J.title="Start video";else if(F.T)J.title="Replay";else if(b){var v=null;F.playlist&&(v=g.dA(F.playlist,F.C?nrG(F.playlist):tcJ(F.playlist)));if(v){if(v.videoId){var a=F.playlist.listId; J.url=F.G.J().getVideoUrl(v.videoId,a?a.toString():void 0)}J.text=v.title;J.duration=v.lengthText?v.lengthText:v.lengthSeconds?g.lD(v.lengthSeconds):null;J.preview=v.lr("mqdefault.jpg")}F.C?(J.title=M,J["data-title-no-tooltip"]="Next",J["aria-keyshortcuts"]="SHIFT+n"):(J.title=q,J["data-title-no-tooltip"]="Previous",J["aria-keyshortcuts"]="SHIFT+p")}else if(I){if(q=(v=F.videoData)==null?void 0:g.nC(v))J.url=q.t4(),J.text=q.title,J.duration=q.lengthText?q.lengthText:q.lengthSeconds?g.lD(q.lengthSeconds): null,J.preview=q.lr("mqdefault.jpg");J.title=M;J["data-title-no-tooltip"]="Next";J["aria-keyshortcuts"]="SHIFT+n"}J.disabled=!I&&!b&&!u&&!w;F.update(J);F.V=!!J.url;I||b||F.T||u||w?F.U||(F.U=g.iy(F.tooltip,F.element),F.W=F.listen("click",F.onClick,F)):F.U&&(F.U(),F.U=null,F.iX(F.W),F.W=null);F.tooltip.Dl();g.qr(F.element,"ytp-playlist-ui",F.C&&b)}; b43=function(F,J){g.U.call(this,{X:"div",K:"ytp-fine-scrubbing",j:[{X:"div",K:"ytp-fine-scrubbing-draggable",j:[{X:"div",K:"ytp-fine-scrubbing-thumbnails",L:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{X:"div",L:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"},{X:"div",K:"ytp-fine-scrubbing-seek-time",L:{"aria-hidden":"true"}, sQ:"{{seekTime}}"},{X:"div",K:"ytp-fine-scrubbing-play",j:[Wi()],L:{title:"Play from this position",role:"button"}},{X:"div",K:"ytp-fine-scrubbing-dismiss",j:[g.iA()],L:{title:"Exit precise seeking",role:"button"}}]});var b=this;this.api=F;this.W=this.RI("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.RI("ytp-fine-scrubbing-dismiss");this.Gj=this.RI("ytp-fine-scrubbing-draggable");this.playButton=this.RI("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.qf=this.C=0;this.fW=void 0; this.Tj=NaN;this.dD=this.N=this.T=this.Y=0;this.Z=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.zj=0;this.isEnabled=this.WN=!1;JFa(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.iy(J,this.dismissButton));this.addOnDisposeCallback(g.iy(J,this.playButton));this.kQ=new g.L1(this.Gj,!0);this.kQ.subscribe("dragstart",this.oT,this);this.kQ.subscribe("dragmove",this.vI,this);this.kQ.subscribe("dragend",this.Mg,this);this.B(F,"SEEK_COMPLETE",this.hI);F.S("web_fix_fine_scrubbing_false_play")&& this.B(F,"rootnodemousedown",function(I){b.eE=I}); this.W.addEventListener("keydown",function(){}); g.k(this,this.kQ);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; JFa=function(F,J){var b=g.lD(J),I=g.m8("Seek to $PROGRESS",{PROGRESS:g.lD(J,!0)});F.update({ariamin:0,ariamax:Math.floor(F.api.getDuration()),arianow:Math.floor(J),arianowtext:I,seekTime:b})}; INo=function(F){F.Tj=NaN;F.N=0;F.Y=F.T}; Mbz=function(F){var J=F.api.Si();if(J){var b=90*F.scale,I=Tt(J,160*F.scale);if(J=J.levels[I]){F.V=J.width;if(!F.Z.length){I=[];for(var u=r7(J,J.ll()),w=J.columns*J.rows,M=J.frameCount,q=0;q<=u;q++)for(var v=M<w?Math.ceil(M/J.columns):J.rows,a=0;a<J.rows;a++){var e=M<J.columns?M:J.columns,K={url:J.tF(q),column:0,columns:e,row:a,rows:v,Ju:J.width*e,pB:J.height*v};I.push(K);M-=e;if(M<=1)break}F.Z=I;F.frameCount=J.mm();F.interval=J.C/1E3||F.api.getDuration()/F.frameCount}for(;F.thumbnails.length>F.Z.length;)I= void 0,(I=F.thumbnails.pop())==null||I.dispose();for(;F.thumbnails.length<F.Z.length;)I=new u6o,F.thumbnails.push(I),I.Az(F.W),g.k(F,I);for(I=0;I<F.Z.length;I++)u=F.thumbnails[I].element,w=F.Z[I],M=F.V*F.scale,q=w.pB/w.rows,v=b/q,u.style.background="url("+w.url+") 0 "+-w.row*w.pB/w.rows*v+"px/"+M*J.columns+"px "+q*w.rows*v+"px",u.style.width=M*w.columns+"px",u.style.height=b+"px";o9(F,F.api.getCurrentTime());for(b=F.api.getVideoData().wX;F.U.length>b.length;)I=void 0,(I=F.U.pop())==null||I.dispose(); for(;F.U.length<b.length;)I=new wIa,F.U.push(new wIa),g.k(F,I);for(I=0;I<b.length;I++)u=b[I],F.U[I].update({chapterTitle:u.title}),u=Math.round(u.startTime/J.C),w=Math.floor(u/J.rows),g.aN(F.U[I].element,"transform","translateX("+u%J.rows*F.V*F.scale+"px)"),w<F.thumbnails.length&&F.thumbnails[w]&&F.U[I].Az(F.thumbnails[w].element);F.WN=!0}}}; o9=function(F,J){F.eE&&(F.eE.vz=!0);F.update({seekTime:g.lD(J)});var b=F.V*F.scale;J=J<F.interval/2?-J*b/F.interval*2+F.C/2:-J*b/F.interval-b/2+F.C/2;J=g.AD(J,AFa(F),F.C/2);F.Y=J;F.T=F.Y;g.aN(F.Gj,"transform","translateX("+(F.Y-F.C/2)+"px)");g.aN(F.Gj,"padding","0px "+F.C/2+"px");g.aN(F.W,"position","relative")}; quz=function(F,J){var b=F.V*F.scale;J-=F.C/2;return J>-b?-J/b*F.interval*.5:-(J+b/2)/b*F.interval}; AFa=function(F){return-((F.W.offsetWidth||(F.frameCount-1)*F.V*F.scale)-F.C/2)}; u6o=function(){g.U.call(this,{X:"div",K:"ytp-fine-scrubbing-thumbnail"})}; wIa=function(){g.U.call(this,{X:"div",K:"ytp-fine-scrubbing-chapter-title",j:[{X:"div",K:"ytp-fine-scrubbing-chapter-title-content",sQ:"{{chapterTitle}}"}]})}; vE7=function(F){g.U.call(this,{X:"div",K:"ytp-heat-map-chapter",j:[{X:"svg",K:"ytp-heat-map-svg",L:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},j:[{X:"defs",j:[{X:"clipPath",L:{id:"{{id}}"},j:[{X:"path",K:"ytp-heat-map-path",L:{d:"",fill:"white"}}]},{X:"linearGradient",L:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},j:[{X:"stop",L:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",L:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",K:"ytp-heat-map-graph",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",K:"ytp-heat-map-hover",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",K:"ytp-heat-map-play",L:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",K:"ytp-modern-heat-map",L:{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=F;this.Y=this.RI("ytp-heat-map-svg");this.W=this.RI("ytp-heat-map-path");this.Z=this.RI("ytp-heat-map-graph");this.V=this.RI("ytp-heat-map-play");this.C=this.RI("ytp-heat-map-hover");this.T=this.RI("ytp-modern-heat-map");this.o8=!1;this.U=60;F=""+g.n3(this);this.update({id:F});F="url(#"+F+")";this.Z.setAttribute("clip-path",F);this.V.setAttribute("clip-path",F);this.C.setAttribute("clip-path", F)}; aNa=function(F,J){J>0&&(F.U=J,F.Y.style.height=F.U+"px")}; hq=function(){g.U.call(this,{X:"div",K:"ytp-chapter-hover-container",j:[{X:"div",K:"ytp-progress-bar-padding"},{X:"div",K:"ytp-progress-list",j:[{X:"div",Dv:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",K:"ytp-progress-linear-live-buffer"},{X:"div",K:"ytp-load-progress"},{X:"div",K:"ytp-hover-progress"},{X:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.RI("ytp-progress-list");this.W=this.RI("ytp-progress-linear-live-buffer"); this.Z=this.RI("ytp-ad-progress-list");this.V=this.RI("ytp-load-progress");this.Y=this.RI("ytp-play-progress");this.T=this.RI("ytp-hover-progress");this.C=this.RI("ytp-chapter-hover-container")}; cm=function(F,J){g.aN(F.C,"width",J)}; enJ=function(F,J){g.aN(F.C,"margin-right",J+"px")}; K0Y=function(){this.U=this.position=this.T=this.C=this.Z=this.width=NaN}; pIC=function(){g.U.call(this,{X:"div",K:"ytp-timed-marker"});this.C=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.xr=function(F,J){g.vi.call(this,{X:"div",K:"ytp-progress-bar-container",L:{"aria-disabled":"true"},j:[{X:"div",Dv:["ytp-heat-map-container"],j:[{X:"div",K:"ytp-heat-map-edu"}]},{X:"div",Dv:["ytp-progress-bar"],L:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},j:[{X:"div",K:"ytp-chapters-container"},{X:"div",K:"ytp-timed-markers-container"},{X:"div",K:"ytp-clip-start-exclude"}, {X:"div",K:"ytp-clip-end-exclude"},{X:"div",K:"ytp-scrubber-container",j:[{X:"div",Dv:["ytp-scrubber-button","ytp-swatch-background-color"],j:[{X:"div",K:"ytp-scrubber-pull-indicator"},{X:"img",Dv:["ytp-decorated-scrubber-button"]}]}]}]},{X:"div",Dv:["ytp-fine-scrubbing-container"],j:[{X:"div",K:"ytp-fine-scrubbing-edu"}]},{X:"div",K:"ytp-bound-time-left",sQ:"{{boundTimeLeft}}"},{X:"div",K:"ytp-bound-time-right",sQ:"{{boundTimeRight}}"},{X:"div",K:"ytp-clip-start",L:{title:"{{clipstarttitle}}"},sQ:"{{clipstarticon}}"}, {X:"div",K:"ytp-clip-end",L:{title:"{{clipendtitle}}"},sQ:"{{clipendicon}}"}]});this.api=F;this.xH=!1;this.YH=this.Lv=this.KW=this.W=this.ir=0;this.Uz=null;this.xo=!1;this.qf={};this.Kk={};this.clipEnd=Infinity;this.Om=this.RI("ytp-clip-end");this.If=new g.L1(this.Om,!0);this.NW=this.RI("ytp-clip-end-exclude");this.T1=this.RI("ytp-clip-start-exclude");this.clipStart=0;this.xm=this.RI("ytp-clip-start");this.MI=new g.L1(this.xm,!0);this.N=this.nW=0;this.progressBar=this.RI("ytp-progress-bar");this.cN= {};this.dD={};this.Um=this.RI("ytp-chapters-container");this.D4=this.RI("ytp-timed-markers-container");this.C=[];this.V=[];this.zU={};this.jZ=null;this.Gj=-1;this.bR=this.kQ=0;this.Ly=this.Y=null;this.GU=this.RI("ytp-scrubber-button");this.Se=this.RI("ytp-decorated-scrubber-button");this.MJ=this.RI("ytp-scrubber-container");this.oI=new g.K$;this.n7=new K0Y;this.T=new BL(0,0);this.AJ=null;this.Tj=this.K7=!1;this.IP=null;this.eE=this.RI("ytp-heat-map-container");this.M0=this.RI("ytp-heat-map-edu"); this.Z=[];this.heatMarkersDecorations=[];this.Jz=this.RI("ytp-fine-scrubbing-container");this.y6=this.RI("ytp-fine-scrubbing-edu");this.U=void 0;this.WN=this.g9=this.fW=!1;this.tooltip=J.W1();this.addOnDisposeCallback(g.iy(this.tooltip,this.Om));g.k(this,this.If);this.If.subscribe("hoverstart",this.R2,this);this.If.subscribe("hoverend",this.PB,this);this.B(this.Om,"click",this.nZ);this.addOnDisposeCallback(g.iy(this.tooltip,this.xm));g.k(this,this.MI);this.MI.subscribe("hoverstart",this.R2,this); this.MI.subscribe("hoverend",this.PB,this);this.B(this.xm,"click",this.nZ);gEm(this);this.B(F,"resize",this.mO);this.B(F,"presentingplayerstatechange",this.ZWG);this.B(F,"videodatachange",this.xR);this.B(F,"videoplayerreset",this.e_Q);this.B(F,"cuerangesadded",this.njv);this.B(F,"cuerangesremoved",this.sPQ);this.B(F,"onLoopRangeChange",this.Lg);this.B(F,"innertubeCommand",this.onClickCommand);this.B(F,g.u6("timedMarkerCueRange"),this.T0E);this.B(F,"updatemarkervisibility",this.Wi);this.B(F,"serverstitchedvideochange", this.a4G);this.updateVideoData(F.getVideoData(),!0);this.Lg(F.getLoopRange());Ub(this)&&!this.U&&(this.U=new b43(this.api,this.tooltip),F=g.zv(this.element).x||0,this.U.mO(F,this.W),this.U.Az(this.Jz),g.k(this,this.U),this.B(this.U.dismissButton,"click",this.FZ),this.B(this.U.playButton,"click",this.MD),this.B(this.U.element,"dblclick",this.MD));this.api.createClientVe(this.eE,this,139609,!0);this.api.createClientVe(this.M0,this,140127,!0);this.api.createClientVe(this.y6,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; gEm=function(F){if(F.C.length===0){var J=new hq;F.C.push(J);g.k(F,J);J.Az(F.Um,0)}for(;F.C.length>1;)F.C.pop().dispose();cm(F.C[0],"100%");F.C[0].startTime=0;F.C[0].title=""}; mmz=function(F){var J=J===void 0?NaN:J;var b=new vE7(F.api);F.Z.push(b);g.k(F,b);b.Az(F.eE);J>=0&&(b.element.style.width=J+"px")}; yFa=function(F){for(;F.V.length;)F.V.pop().dispose()}; zn3=function(F){var J,b,I,u,w;return(w=g.O((u=g.O((J=F.getWatchNextResponse())==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,lr))==null?void 0:u.playerBar,i4z))==null?void 0:w.chapters}; Ntv=function(F){for(var J=F.C,b=[],I=0;I<J.length;I++)if(!isNaN(J[I].startTime)){var u=J[I].startTime;u=new g.b6(u,I===J.length-1?Infinity:J[I+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+u});b.push(u)}F.api.Yo("chapterCueRange");F.api.TU(b)}; Vb7=function(F,J){var b,I=(b=F.cN[J])==null?void 0:b.chapters;I&&(lNk(F,I),F.api.getVideoData().wX=F.C,Ntv(F));var u;if((b=(u=F.cN[J])==null?void 0:u.markers)&&J!=="HEATSEEKER"){yFa(F);u=g.N(b);for(b=u.next();!b.done;b=u.next())if(I=b.value,b=new pIC,I=g.O(I,g.fNC)){var w=void 0;b.title=((w=I.title)==null?void 0:w.simpleText)||"";w=void 0;b.timeRangeStartMillis=(w=I.timeRangeStartMillis)!=null?w:NaN;var M=w=void 0;b.onActiveCommand=(M=(w=I)==null?void 0:w.onActiveCommand)!=null?M:void 0;W0a(F,b)}dm7(F, F.V);u=F.V;b=F.zU;I=[];for(w=0;w<u.length;w++)!isNaN(u[w].timeRangeStartMillis)&&u[w].onActiveCommand&&(M=um3(u[w].timeRangeStartMillis,w===u.length-1?Infinity:u[w+1].timeRangeStartMillis),I.push(M),b[M.id]=u[w].onActiveCommand);F.api.TU(I)}var q;if(J=g.O((q=F.cN[J])==null?void 0:q.heatmap,EEa)){q=J.heatMarkers||[];var v;u=(v=J.minHeightDp)!=null?v:0;var a;v=(a=J.maxHeightDp)!=null?a:60;a=F.C.length;b=null;for(I=0;I<a;I++){M=F.C[I].startTime;var e=I===a-1?Infinity:F.C[I+1].startTime;I===F.Z.length&& mmz(F);w=[];b&&w.push(b);for(var K=g.N(q),p=K.next();!p.done;p=K.next()){p=p.value;var m=void 0,y=void 0,f=(y=(m=g.O(p,jBJ))==null?void 0:m.timeRangeStartMillis)!=null?y:-1;f>=M&&f<=e&&w.push(p)}v>0&&(F.eE.style.height=v+"px");M=F.Z[I];e=w;p=u;y=v;f=I===0;f=f===void 0?!1:f;aNa(M,y);K=e;m=M.U;f=f===void 0?!1:f;var d=1E3/K.length,G=[];G.push({x:0,y:100});for(var P=0;P<K.length;P++){var r=void 0,Q=((r=g.O(K[P],jBJ))==null?void 0:r.heatMarkerIntensityScoreNormalized)||0;r=(P+.5)*d;Q=100-g.AD(Q*100,p/ m*100,y/m*100);P!==0||f||G.push({x:0,y:Q});G.push({x:r,y:Q});P===K.length-1&&G.push({x:1E3,y:Q})}G.push({x:1E3,y:100});K=G;e=e.length===0?"":LAa(K);M.api.S("delhi_modern_web_player")?M.T.setAttribute("d",e):M.W.setAttribute("d",e);M.o8=e!=="";g.qr(M.api.getRootNode(),"ytp-heat-map",M.o8);g.qr(M.api.getRootNode(),"ytp-heat-map-played_bar",M.api.S("web_player_heat_map_played_bar")&&e!=="");M.api.S("delhi_modern_web_player")&&(M.T.style.display="block",M.Z.style.display="none",M.C.style.display="none"); w.length>0&&(b=w[w.length-1])}g.nn(F);q=[];J=g.N(J.heatMarkersDecorations||[]);for(u=J.next();!u.done;u=J.next())if(u=g.O(u.value,Gra))v=u.label,I=b=a=void 0,q.push({visibleTimeRangeStartMillis:(a=u.visibleTimeRangeStartMillis)!=null?a:-1,visibleTimeRangeEndMillis:(b=u.visibleTimeRangeEndMillis)!=null?b:-1,decorationTimeMillis:(I=u.decorationTimeMillis)!=null?I:NaN,label:v?g.Kr(v):""});F.heatMarkersDecorations=q}}; W0a=function(F,J){F.V.push(J);g.k(F,J);J.Az(F.D4,F.D4.children.length)}; dm7=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=tq(F,b.timeRangeStartMillis/(F.T.C*1E3),Zb(F));g.aN(b.element,"transform","translateX("+I+"px) scaleX(0.6)")}}; lNk=function(F,J){var b=0,I=!1;J=g.N(J);for(var u=J.next();!u.done;u=J.next()){u=u.value;if(g.O(u,Pjz)){u=g.O(u,Pjz);var w={startTime:NaN,title:null,onActiveCommand:void 0},M=u.title;w.title=M?g.Kr(M):"";M=u.timeRangeStartMillis;M!=null&&(w.startTime=M);w.onActiveCommand=u.onActiveCommand;u=w;b===0&&u.startTime!==0&&(F.C[b].startTime=0,F.C[b].title="",F.C[b].onActiveCommand=u.onActiveCommand,b++,I=!0);F.C.length<=b&&(w=new hq,F.C.push(w),g.k(F,w),w.Az(F.Um,F.Um.children.length));F.C[b].startTime= u.startTime;F.C[b].title=u.title?u.title:"";F.C[b].onActiveCommand=u.onActiveCommand;F.C[b].index=I?b-1:b}b++}for(;b<F.C.length;)F.C.pop().dispose();g.nn(F);Hm(F)}; g.nn=function(F){F.kQ=F.C.length-1;F.bR=0;Bt4(F,!0)&&Bt4(F,!1);for(var J=0,b=0;b<F.C.length;b++)if(F.C[b].width===0){if(b===F.C.length-1)for(var I=F.C.length-1;I>=0;I--)if(F.C[I].width>0){enJ(F.C[I],0);var u=Math.floor(F.C[I].width);F.C[I].width=u;cm(F.C[I],u+"px");break}F.C[b].width=0;cm(F.C[b],"0")}else b===F.C.length-1?(I=Math.floor(F.C[b].width+J),F.C[b].width=I,cm(F.C[b],I+"px")):(J=F.C[b].width+J,I=Math.round(J),J-=I,F.C[b].width=I,cm(F.C[b],I+"px"));b=0;if(F.Z.length===F.C.length)for(J=0;J< F.Z.length;J++)I=F.C[J].width,F.Z[J].element.style.width=I+"px",F.Z[J].element.style.left=b+"px",b+=I+Ln(F);F.api.S("delhi_modern_web_player")&&(F.C.length===1?F.C[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(F.C[0].U.classList.remove("ytp-progress-bar-end"),F.C[0].U.classList.add("ytp-progress-bar-start"),F.C[F.C.length-1].U.classList.add("ytp-progress-bar-end")))}; Bt4=function(F,J){var b=0,I=!1,u=F.C.length,w=F.T.C*1E3;w===0&&(w=F.api.getProgressState().seekableEnd*1E3);if(w>0&&F.W>0){for(var M=F.W-Ln(F)*F.kQ,q=F.bR===0?3:M*F.bR,v=g.N(F.C),a=v.next();!a.done;a=v.next())a.value.width=0;for(;b<u;){v=w-F.C[b].startTime;b<u-1&&(v=F.C[b+1].startTime-F.C[b].startTime,enJ(F.C[b],Ln(F)));g.qr(F.C[b].C,"ytp-exp-chapter-hover-container",F.C.length>1);a=(w===0?0:v/w*M)+F.C[b].width;if(a>q)F.C[b].width=a;else{F.C[b].width=0;var e=F,K=b,p=e.C[K-1];p!==void 0&&p.width>0? p.width+=a:K<e.C.length-1&&(e.C[K+1].width+=a);enJ(e.C[K],0);J&&(F.kQ--,v/w>F.bR&&(F.bR=v/w),I=!0)}b++}}return I}; Hm=function(F){if(F.W){var J=F.api.getProgressState(),b=F.api.getVideoData();if(!(b&&b.enableServerStitchedDai&&b.enablePreroll)||isFinite(J.current)){var I;if(((I=F.api.getVideoData())==null?0:nY(I))&&J.airingStart&&J.airingEnd)var u=Fi(F,J.airingStart,J.airingEnd);else if(F.api.getPresentingPlayerType()===2&&F.api.J().S("show_preskip_progress_bar_for_skippable_ads")){var w,M,q;u=(b=(u=F.api.getVideoData())==null?void 0:(w=u.getPlayerResponse())==null?void 0:(M=w.playerConfig)==null?void 0:(q=M.webPlayerConfig)== null?void 0:q.skippableAdProgressBarDuration)?Fi(F,J.seekableStart,b/1E3):Fi(F,J.seekableStart,J.seekableEnd)}else u=Fi(F,J.seekableStart,J.seekableEnd);w=Tg(u,J.loaded,0);J=Tg(u,J.current,0);M=F.T.U!==u.U||F.T.C!==u.C;F.T=u;Jd(F,J,w);M&&TtJ(F);rF3(F)}}}; Fi=function(F,J,b){return Suk(F)?new BL(Math.max(J,F.AJ.startTimeMs/1E3),Math.min(b,F.AJ.endTimeMs/1E3)):new BL(J,b)}; sBk=function(F,J){var b;if(((b=F.AJ)==null?void 0:b.type)==="repeatChapter"||(J==null?void 0:J.type)==="repeatChapter")J&&(J=F.C[z4(F.C,J.startTimeMs)],g.qr(J.C,"ytp-repeating-chapter",!1)),F.AJ&&(J=F.C[z4(F.C,F.AJ.startTimeMs)],g.qr(J.C,"ytp-repeating-chapter",!0)),F.C.forEach(function(I){g.qr(I.C,"ytp-exp-chapter-hover-container",!F.AJ)})}; IQ=function(F,J){var b=F.T;b=b.U+J.U*b.getLength();if(F.C.length>1){b=b7(F,J.T,!0);for(var I=0,u=0;u<b;u++)F.C[u].width>0&&(I+=F.C[u].width,I+=Ln(F));b=(F.C[b].startTime+(J.T-I)/F.C[b].width*((b===F.C.length-1?F.T.C*1E3:F.C[b+1].startTime)-F.C[b].startTime))/1E3||0}return b}; u7=function(F,J,b,I,u){J=J<0?0:Math.floor(Math.min(J,F.api.getDuration())*1E3);b=b<0?0:Math.floor(Math.min(b,F.api.getDuration())*1E3);F=F.progressBar.visualElement;I={seekData:{startMediaTimeMs:J,endMediaTimeMs:b,seekSource:I}};(J=g.W8())&&g.tE(nO)(void 0,J,F,u,I,void 0)}; Yu7=function(F,J,b){if(b>=F.C.length)return!1;var I=F.W-Ln(F)*F.kQ;return Math.abs(J-F.C[b].startTime/1E3)/F.T.C*I<4}; TtJ=function(F){F.GU.style.removeProperty("height");for(var J=g.N(Object.keys(F.qf)),b=J.next();!b.done;b=J.next())$ma(F,b.value);w1(F);Jd(F,F.N,F.nW)}; Zb=function(F){var J=F.oI.x;J=g.AD(J,0,F.W);F.n7.update(J,F.W);return F.n7}; Ad=function(F){return(F.Tj?135:90)-M2(F)}; M2=function(F){var J=48,b=F.api.J();F.Tj?J=54:g.dN(b)&&!b.U?J=40:F.api.S("delhi_modern_web_player")&&(J=68);return J}; Jd=function(F,J,b){F.N=J;F.nW=b;var I=Zb(F),u=F.T.C;var w=F.T;w=w.U+F.N*w.getLength();var M=g.m8("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.lD(w,!0),DURATION:g.lD(u,!0)}),q=z4(F.C,w*1E3);q=F.C[q].title;F.update({ariamin:Math.floor(F.T.U),ariamax:Math.floor(u),arianow:Math.floor(w),arianowtext:q?q+" "+M:M});u=F.clipStart;w=F.clipEnd;F.AJ&&F.api.getPresentingPlayerType()!==2&&(u=F.AJ.startTimeMs/1E3,w=F.AJ.endTimeMs/1E3);u=Tg(F.T,u,0);q=Tg(F.T,w,1);M=F.api.getVideoData();w=g.AD(J,u,q);b=(M==null? 0:g.UW(M))?1:g.AD(b,u,q);J=tq(F,J,I);g.aN(F.MJ,"transform","translateX("+J+"px)");F.api.S("delhi_modern_web_player")&&CjC(F,J);q2(F,I,u,w,"PLAY_PROGRESS");(M==null?0:nY(M))?(J=F.api.getProgressState().seekableEnd)&&q2(F,I,w,Tg(F.T,J),"LIVE_BUFFER"):q2(F,I,u,b,"LOAD_PROGRESS");if(F.api.S("web_player_heat_map_played_bar")){var v;(v=F.Z[0])!=null&&v.V.setAttribute("width",(w*100).toFixed(2)+"%")}}; CjC=function(F,J){J||(J=tq(F,F.N,Zb(F)));var b=F.xo?36:28,I=J-b/2;J+=b/2;F.Um.style.clipPath='path("M 0 0 L 0 8 L '+(I+" 8 C "+(I+6+" 8 "+(I+6)+" 0 "+I+" 0 L 0 0 M ")+(J+" 0 L ")+(F.W+" 0 L ")+(F.W+" 8 L ")+(J+" 8 C ")+(J-6+" 8 "+(J-6)+" 0 "+J+' 0")'))}; q2=function(F,J,b,I,u){var w=F.C.length,M=J.C-F.kQ*Ln(F),q=b*M;b=b7(F,q);var v=I*M;M=b7(F,v);u==="HOVER_PROGRESS"&&(M=b7(F,J.C*I,!0),v=J.C*I-XIa(F,J.C*I)*Ln(F));I=Math.max(q-QBY(F,b),0);for(q=b;q<w;q++)F.C[q].Pb(u).style.left=b===q?I+"px":"0";J=tq(F,F.N,J);for(w=b;w<M;w++){q=F.C[w].Pb(u);var a=F.C[w].width,e=w===b?a-I:a;vy(F,q,e,a);RnJ(F,q,e,a,w,J,u)}w=F.C[M].width;v=g.AD(v-QBY(F,M),0,w);b===M&&(v-=I);I=F.C[M].Pb(u);vy(F,I,v,w);RnJ(F,I,v,w,M,J,u);v=F.C.length;for(M+=1;M<v;M++)DmG(F,M,u);for(M=0;M< b;M++)DmG(F,M,u)}; QBY=function(F,J){if(J>=F.C.length)return F.W;for(var b=0,I=0;I<J;)b+=F.C[I].width,I++;return b}; DmG=function(F,J,b){b=F.C[J].Pb(b);vy(F,b,0,F.C[J].width)}; RnJ=function(F,J,b,I,u,w,M){M==="PLAY_PROGRESS"&&(b=!I||F.api.J().U?1:b/I,F.T1.clientWidth>0||F.NW.clientWidth>0?(w=J.clientWidth/b,F=-1*F.T1.clientWidth/b):(w/=b,F=-1*F.C[u].element.offsetLeft/b),g.aN(J,"background-size",w+"px"),g.aN(J,"background-position-x",F+"px"))}; vy=function(F,J,b,I,u){u||F.api.J().U?J.style.width=b+"px":g.aN(J,"transform","scalex("+(I?b/I:0)+")")}; b7=function(F,J,b){var I=0;(b===void 0?0:b)&&(J-=XIa(F,J)*Ln(F));b=g.N(F.C);for(var u=b.next();!u.done;u=b.next()){u=u.value;if(J>u.width)J-=u.width;else break;I++}return I===F.C.length?I-1:I}; tq=function(F,J,b){var I=J*F.T.C*1E3;for(var u=-1,w=g.N(F.C),M=w.next();!M.done;M=w.next())M=M.value,I>M.startTime&&M.width>0&&u++;I=u<0?0:u;u=b.C-Ln(F)*F.kQ;return J*u+Ln(F)*I+b.Z}; XIa=function(F,J){for(var b=F.C.length,I=0,u=g.N(F.C),w=u.next();!w.done;w=u.next())if(w=w.value,w.width!==0)if(J>w.width)J-=w.width,J-=Ln(F),I++;else break;return I===b?b-1:I}; g.kra=function(F,J,b,I){var u=F.W!==b,w=F.Tj!==I;F.ir=J;F.W=b;F.Tj=I;Ub(F)&&(J=F.U)!=null&&(J.scale=I?1.5:1);TtJ(F);F.C.length===1&&(F.C[0].width=b||0);u&&g.nn(F);F.U&&w&&Ub(F)&&(F.U.isEnabled&&(b=F.Tj?135:90,I=b-M2(F),F.Jz.style.height=b+"px",g.aN(F.eE,"transform","translateY("+-I+"px)"),g.aN(F.progressBar,"transform","translateY("+-I+"px)")),Mbz(F.U))}; w1=function(F){var J=!!F.AJ&&F.api.getPresentingPlayerType()!==2,b=F.clipStart,I=F.clipEnd,u=!0,w=!0;J&&F.AJ?(b=F.AJ.startTimeMs/1E3,I=F.AJ.endTimeMs/1E3):(u=b>F.T.U,w=F.T.C>0&&I<F.T.C);var M,q;if(((M=F.AJ)==null?0:M.postId)||((q=F.AJ)==null?void 0:q.type)==="repeatChapter")w=u=!1;g.qr(F.element,"ytp-loop-range-enabled",J);g.qr(F.element,"ytp-clip-start-enabled",u);g.qr(F.element,"ytp-clip-end-enabled",w);J=u?Tg(F.T,b,0):0;I=w?Tg(F.T,I,1):1;F.xm.style.left=Math.round(J*1E3)/10+"%";F.Om.style.left= Math.round(I*1E3)/10+"%";F.T1.style.width=Math.round(J*1E3)/10+"%";F.NW.style.left=Math.round(I*1E3)/10+"%";F.NW.style.width=Math.round((1-I)*1E3)/10+"%"}; rF3=function(F){var J;if((J=F.api.getVideoData())==null||!nY(J)){J=Zb(F);q2(F,J,F.N,Math.max(J.U,F.N),"HOVER_PROGRESS");for(var b=b7(F,J.C*F.N,!0),I=b7(F,J.T,!0),u=b;u<=I;u++)g.qr(F.C[u].T,"ytp-hover-progress-light",J.U>F.N);g.qr(F.GU,"ytp-scrubber-button-hover",b===I&&F.C.length>1);if(F.api.S("web_player_heat_map_played_bar")){var w;(w=F.Z[0])!=null&&w.C.setAttribute("width",(J.U*100).toFixed(2)+"%")}}}; $ma=function(F,J){var b=F.qf[J];J=F.Kk[J];var I=Zb(F),u=Tg(F.T,b.start/1E3,0),w=M0a(b,F.Tj)/I.width;var M=Tg(F.T,b.end/1E3,1);w!==Number.POSITIVE_INFINITY&&(u=g.AD(u,0,M-w));M=Math.min(M,u+w);b.color&&(J.style.background=b.color);b=u;J.style.left=Math.max(b*I.C+I.Z,0)+"px";vy(F,J,g.AD((M-b)*I.C+I.Z,0,I.width),I.width,!0)}; O4G=function(F,J){var b=J.getId();F.qf[b]===J&&(g.ID(F.Kk[b]),delete F.qf[b],delete F.Kk[b])}; Ub=function(F){var J=g.hP(F.api.J())&&(F.api.S("web_shorts_pip")||F.api.S("web_watch_pip")),b;return!((b=F.api.getVideoData())==null?0:b.isLivePlayback)&&!F.api.isMinimized()&&!F.api.isInline()&&(!F.api.JN()||!J)}; aQ=function(F){F.U&&(F.U.disable(),F.KW=0,F.eE.style.removeProperty("transform"),F.progressBar.style.removeProperty("transform"),F.Jz.style.removeProperty("height"),F.element.parentElement&&F.element.parentElement.style.removeProperty("height"))}; oEJ=function(F,J){var b=J/Ad(F)*M2(F);g.aN(F.progressBar,"transform","translateY("+-J+"px)");g.aN(F.eE,"transform","translateY("+-J+"px)");g.aN(F.Jz,"transform","translateY("+b+"px)");F.Jz.style.height=J+b+"px";F.element.parentElement&&(F.element.parentElement.style.height=M2(F)-b+"px")}; hnz=function(F,J){J?F.Y||(F.element.removeAttribute("aria-disabled"),F.Y=new g.L1(F.progressBar,!0),F.Y.subscribe("hovermove",F.eSG,F),F.Y.subscribe("hoverend",F.T9Q,F),F.Y.subscribe("dragstart",F.U0N,F),F.Y.subscribe("dragmove",F.XVv,F),F.Y.subscribe("dragend",F.ZeQ,F),F.api&&F.api.S("delhi_modern_web_player")&&(F.Ly=new g.L1(F.progressBar,!0),F.Ly.subscribe("hoverstart",function(){F.xo=!0;CjC(F)},F),F.Ly.subscribe("hoverend",function(){F.xo=!1; CjC(F)},F)),F.IP=F.listen("keydown",F.dF)):F.Y&&(F.element.setAttribute("aria-disabled","true"),F.iX(F.IP),F.Y.cancel(),F.Y.dispose(),F.Y=null)}; Ln=function(F){return F.api.S("delhi_modern_web_player")?4:F.Tj?3:2}; Suk=function(F){var J;return!((J=F.AJ)==null||!J.postId)&&F.api.getPresentingPlayerType()!==2}; eO=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-remote-button","ytp-button"],L:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},sQ:"{{icon}}"});this.G=F;this.Rf=J;this.C=null;this.B(F,"onMdxReceiversChange",this.VG);this.B(F,"presentingplayerstatechange",this.VG);this.B(F,"appresize",this.VG);F.createClientVe(this.element,this,139118);this.VG();this.listen("click",this.U,this);zP(F,this.element,this)}; K9=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-button","ytp-settings-button"],L:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":wV(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},j:[g.Ej()]});this.G=F;this.Rf=J;this.U=!0;this.listen("click",this.T);this.B(F,"onPlaybackQualityChange",this.updateBadge);this.B(F,"videodatachange",this.updateBadge);this.B(F,"webglsettingschanged",this.updateBadge);this.B(F,"appresize",this.C);zP(F,this.element,this);this.G.createClientVe(this.element, this,28663);this.updateBadge();this.C(F.mG().getPlayerSize())}; cFa=function(F,J){F.U=!!J;F.C(F.G.mG().getPlayerSize())}; p9=function(F,J){Zd.call(this,"Annotations",g.Ia.YX);this.G=F;this.Rf=J;this.C=!1;F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.B(F,"videodatachange",this.VG);this.B(F,"onApiChange",this.VG);this.subscribe("select",this.onSelect,this);this.VG()}; g1=function(F,J){g.tZ.call(this,"Audio track",g.Ia.AUDIO,F,J);this.G=F;this.tracks={};g.uG(this.element,"ytp-audio-menu-item");this.countLabel=new g.U({X:"div",j:[{X:"span",sQ:"Audio track"},{X:"span",K:"ytp-menuitem-label-count",sQ:"{{content}}"}]});F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.k(this,this.countLabel);g.Q_(this,this.countLabel);this.B(F,"videodatachange",this.VG);this.B(F,"onPlaybackAudioChange",this.VG);this.VG()}; m9=function(F,J){Zd.call(this,"Autoplay",g.Ia.m4);this.G=F;this.Rf=J;this.C=!1;this.T=[];this.B(F,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);F.createClientVe(this.element,this,113682);this.U()}; Umk=function(F,J){g.Rj.call(this,g.Dd({"aria-haspopup":"false"}),0,"More options");this.G=F;this.Rf=J;this.B(this.element,"click",this.onClick);this.Rf.V6(this)}; xmC=function(F,J){var b;g.hP(F.J())&&(b={X:"div",K:"ytp-panel-footer-content",j:[{X:"span",sQ:"Adjust download quality from your "},{X:"a",K:"ytp-panel-footer-content-link",sQ:"Settings",L:{href:"/account_downloads"}}]});g.tZ.call(this,"Quality",g.Ia.aM,F,J,void 0,void 0,b);this.G=F;this.Gj={};this.N={};this.Z={};this.kQ=new Set;this.C=this.W=!1;this.V="unknown";this.Tj="";this.eE=new g.hB;g.k(this,this.eE);this.W=this.G.S("web_player_use_new_api_for_quality_pullback");this.C=this.G.S("web_player_enable_premium_hbr_playback_cap"); F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.uG(this.U.element,"ytp-quality-menu");this.B(F,"videodatachange",this.Mc);this.B(F,"videoplayerreset",this.Mc);this.B(F,"onPlaybackQualityChange",this.NC);this.Mc();F.createClientVe(this.element,this,137721)}; tba=function(F,J,b){var I=F.Gj[J],u=g.CF[J];return nEm(F,I?I.qualityLabel:u?u+"p":"Auto",J,b)}; Z4k=function(F,J,b,I,u){var w=(J=F.C?F.Z[J]:F.N[J])&&J.quality,M=J&&J.qualityLabel;M=M?M:"Auto";I&&(M="("+M);F=nEm(F,M,w||"",u);I&&F.j.push(")");(I=(I=J&&J.paygatedQualityDetails)&&I.paygatedIndicatorText)&&b&&F.j.push({X:"div",K:"ytp-premium-label",sQ:I});return F}; nEm=function(F,J,b,I){J={X:"span",Dv:I,j:[J]};var u;I="ytp-swatch-color";if(F.W||F.C)I="ytp-swatch-color-white";b==="highres"?u="8K":b==="hd2880"?u="5K":b==="hd2160"?u="4K":b.indexOf("hd")===0&&b!=="hd720"&&(u="HD");u&&(J.j.push(" "),J.j.push({X:"sup",K:I,sQ:u}));return J}; yw=function(F,J,b,I,u){var w={X:"div",K:"ytp-input-slider-section",j:[{X:"input",K:"ytp-input-slider",L:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};u&&w.j.unshift(u);g.U.call(this,w);this.T=F;this.Z=J;this.W=b;this.initialValue=I;this.header=u;this.C=this.RI("ytp-input-slider");this.U=I?I:F;this.init();this.B(this.C,"input",this.V)}; L0J=function(F,J){F.U=J;F.updateValue("slidervalue",F.U);F.C.valueAsNumber=F.U;H43(F,J)}; H43=function(F,J){F.C.style.setProperty("--yt-slider-shape-gradient-percent",(J-F.T)/(F.Z-F.T)*100+"%")}; i7=function(F){yw.call(this,F.getAvailablePlaybackRates()[0],F.getAvailablePlaybackRates()[F.getAvailablePlaybackRates().length-1],.05,F.getPlaybackRate(),{X:"div",K:"ytp-speedslider-indicator-container",j:[{X:"div",K:"ytp-speedslider-badge"},{X:"p",K:"ytp-speedslider-text"}]});this.G=F;this.N=xXG(this.eE,this);g.uG(this.C,"ytp-speedslider");this.Y=this.RI("ytp-speedslider-text");this.kQ=this.RI("ytp-speedslider-badge");FfG(this);this.B(this.C,"change",this.Gj);this.B(this.C,"keydown",this.Tj)}; FfG=function(F){F.Y.textContent=F.U+"x";F.kQ.classList.toggle("ytp-speedslider-premium-badge",F.U>2&&F.G.S("enable_web_premium_varispeed"))}; zU=function(F,J,b,I,u,w,M){g.U.call(this,{X:"div",K:"ytp-slider-section",L:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{X:"div",K:"ytp-slider",j:[{X:"div",K:"ytp-slider-handle"}]}]});this.Y=F;this.N=J;this.U=b;this.T=I;this.Tj=u;this.WN=w;this.range=this.T-this.U;this.fW=this.RI("ytp-slider-section");this.Z=this.RI("ytp-slider");this.eE=this.RI("ytp-slider-handle");this.V=new g.L1(this.Z, !0);this.C=M?M:b;g.k(this,this.V);this.V.subscribe("dragmove",this.Qu,this);this.B(this.element,"keydown",this.Sv);this.B(this.element,"wheel",this.l8);this.init()}; N2=function(F){zU.call(this,.05,.05,F.getAvailablePlaybackRates()[0],F.getAvailablePlaybackRates()[F.getAvailablePlaybackRates().length-1],150,20,F.getPlaybackRate());this.G=F;this.W=g.H1("P");this.kQ=xXG(this.Gj,this);g.uG(this.Z,"ytp-speedslider");g.uG(this.W,"ytp-speedslider-text");F=this.W;var J=this.Z;J.parentNode&&J.parentNode.insertBefore(F,J.nextSibling);J0G(this);this.B(this.G,"onPlaybackRateChange",this.updateValues)}; J0G=function(F){F.W.textContent=bto(F,F.C)+"x"}; bto=function(F,J){F=Number(g.AD(J,F.U,F.T).toFixed(2));J=Math.floor((F+.001)*100%5+2E-15);var b=F;J!==0&&(b=F-J*.01);return Number(b.toFixed(2))}; IsY=function(F){g.vi.call(this,{X:"div",K:"ytp-speedslider-component"});F.S("web_settings_use_input_slider")?this.C=new i7(F):this.C=new N2(F);g.k(this,this.C);this.element.appendChild(this.C.element)}; u2a=function(F){var J=new IsY(F);QM.call(this,F,J,"Custom");g.k(this,J)}; w_v=function(F,J){var b=new u2a(F);g.tZ.call(this,"Playback speed",g.Ia.Ng,F,J,l7(F)?void 0:"Custom",l7(F)?void 0:function(){g.O$(J,b)}); var I=this;this.W=!1;g.k(this,b);this.V=new i7(F);g.k(this,this.V);F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.G=F;this.W=!1;this.Tj=null;l7(F)?(this.C=g.m8("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.G.getPlaybackRate().toString()}),this.Z=this.G.getPlaybackRate()):this.Z=this.C=null;this.N=this.G.getAvailablePlaybackRates();this.B(F,"presentingplayerstatechange",this.VG);var u;((u=this.G.getVideoData())==null?0:u.vV())&&this.B(F,"serverstitchedvideochange",this.VG);this.B(this.V.C,"change",function(){I.W=!0;I.VG()}); this.VG()}; A0z=function(F,J){var b=M_m(J);F.C&&(F.W||J===F.Z)?(F.oQ(F.C),F.Ce(J.toString())):F.oQ(b)}; vlY=function(F){F.Wx(F.N.map(M_m));F.C=null;F.Z=null;var J=F.G.getPlaybackRate();if(!F.N.includes(J)||l7(F.G))qcz(F,J),F.oQ(F.C)}; qcz=function(F,J){F.Z=J;F.C=g.m8("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:J.toString()});J=F.N.map(M_m);J.unshift(F.C);F.Wx(J)}; M_m=function(F){return F.toString()}; l7=function(F){return F.S("web_settings_menu_surface_custom_playback")}; asa=function(F){return F.S("web_settings_menu_surface_custom_playback")&&F.S("web_settings_use_input_slider")}; Kfv=function(F,J,b,I){var u=new g.RX(J,void 0,"Video Override");g.tZ.call(this,I.text||"",F,J,b,"Video Override",function(){g.O$(b,u)}); var w=this;g.uG(this.element,"ytp-subtitles-options-menu-item");this.setting=I.option.toString();F=I.options;this.settings=g.mF(F,this.IW,this);this.W=u;g.k(this,this.W);J=new g.Rj({X:"div",K:"ytp-menuitemtitle",sQ:"Allow for a different caption style if specified by the video."},0);g.k(this,J);this.W.V6(J,!0);this.Z=new g.Rj({X:"div",K:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},j:[{X:"div",K:"ytp-menuitem-label",sQ:"On"}]},-1);g.k(this,this.Z);this.W.V6(this.Z,!0);this.B(this.Z.element, "click",function(){e7_(w,!0)}); this.C=new g.Rj({X:"div",K:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},j:[{X:"div",K:"ytp-menuitem-label",sQ:"Off"}]},-2);g.k(this,this.C);this.W.V6(this.C,!0);this.B(this.C.element,"click",function(){e7_(w,!1)}); this.Wx(g.EG(F,this.IW))}; e7_=function(F,J){F.publish("settingChange",F.setting+"Override",!J);F.Rf.qL()}; f9=function(F,J){g.RX.call(this,F,void 0,"Options");var b=this;this.Hc={};for(var I=0;I<g.fn.length;I++){var u=g.fn[I],w=new Kfv(-I,F,J,u);g.k(this,w);w.subscribe("settingChange",this.p4,this);this.Hc[u.option.toString()]=w;this.V6(w,!0)}F=new g.Rj(g.Dd(),-g.fn.length,"Reset");g.k(this,F);F.listen("click",function(){b.p4("reset",!0)}); this.V6(F,!0)}; Wy=function(F,J){g.tZ.call(this,"Auto-translate",0,F,J);this.G=F;this.languages={};F.createClientVe(this.element,this,127301);F.logVisibility(this.element,!0)}; p_Y=function(F,J){F.languages=g.mF(J,F.C,F);F.Wx(g.EG(J,F.C))}; myv=function(F,J){var b=new f9(F,J),I=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],u;g.hP(F.J())&&(u={X:"div",K:"ytp-panel-footer-content",j:[{X:"span",sQ:I[0]},{X:"a",K:"ytp-panel-footer-content-link",sQ:"Settings",L:{href:"/account_playback"}},{X:"span",sQ:I[1]}]});g.tZ.call(this,"Subtitles/CC",g.Ia.SUBTITLES,F,J,"Options",function(){g.O$(J,b)},u); var w=this;this.G=F;this.Rf=J;this.tracks={};this.V=new g.ty(function(){gl7(w,!1)},3E3); g.k(this,this.V);this.countLabel=new g.U({X:"div",j:[{X:"span",sQ:"Subtitles/CC"},{X:"span",K:"ytp-menuitem-label-count",sQ:"{{content}}"}]});g.k(this,this.countLabel);g.Q_(this,this.countLabel);F.S("web_settings_menu_icons")&&this.setIcon(Lz4.includes("en")?{X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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"}}]}:{X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.C=new Wy(F,J);g.k(this,this.C);this.C.subscribe("select",this.Ht,this);this.W=b;g.k(this,this.W);this.W.subscribe("settingChange",this.p4,this);J.subscribe("show",this.pV_,this);this.B(F,"videodatachange",this.VG);this.B(F,"onApiChange",this.VG);this.B(F,"onCaptionsTrackListChanged", this.VG);this.B(F,"captionschanged",this.VG);F.createClientVe(this.element,this,127300);this.VG()}; y07=function(F){return Object.values(F.tracks).find(function(J){return J.languageCode==="en"&&J.kind==="asr"})}; d1=function(F,J){F.G.setOption("captions","track",J)}; gl7=function(F,J){F.G.setOption("captions","sampleSubtitles",J)}; itk=function(F){g.kc.call(this,F,"ytp-settings-menu");var J=this;this.RH=new g.RX(this.G);this.dn=this.settingsButton=null;this.isInitialized=this.AB=!1;g.k(this,this.RH);this.hide();g.O$(this,this.RH);F.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(b){J.G0(b)}); this.B(F,"highlightSettingsMenu",function(){J.AB=!0;J.Bo()}); this.B(F,"openSettingsMenuItem",function(b){if(b&&(J.AB=!0,J.Bo(),b==="menu_item_video_quality_advanced")){var I;(I=J.dn)==null||I.open()}})}; z7z=function(F,J){F.settingsButton=J;F.element.id=J.element.getAttribute("aria-controls")}; NHG=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-subtitles-button","ytp-button"],L:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j:[FBz()]});this.G=F;this.tooltip=J.W1();this.B(F,"videodatachange",this.VG);this.B(F,"appresize",this.VG);this.B(F,"promotooltipacceptbuttonclicked",this.Z7E);this.B(F,"onApiChange",this.VG);this.B(F,"onCaptionsTrackListChanged",this.VG);this.B(F,"captionschanged",this.VG); this.G.createClientVe(this.element,this,127299);this.VG();this.listen("click",this.onClick);this.addOnDisposeCallback(g.iy(J.W1(),this.element))}; ls3=function(F){return g.Y0(F.G.TF())!=null?g.Y0(F.G.TF()).S0()?!!F.G.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; g.E3=function(F,J,b){b=b===void 0?350:b;g.U.call(this,{X:"div",Dv:["ytp-time-display","notranslate"],j:[{X:"span",K:"ytp-time-wrapper",j:[{X:"span",K:"ytp-time-clip-icon",sQ:"{{clipicon}}"},{X:"span",K:"ytp-time-current",sQ:"{{currenttime}}"},{X:"span",K:"ytp-time-separator",sQ:" / "},{X:"span",K:"ytp-time-duration",sQ:"{{duration}}"}]},{X:"span",K:"ytp-clip-watch-full-video-button-separator",sQ:"\u2022"},{X:"span",K:"ytp-clip-watch-full-video-button",sQ:"{{watchfullvideo}}"}]});var I=this;this.api= F;this.N=b;this.liveBadge=new g.U({X:"button",Dv:["ytp-live-badge","ytp-button"],L:{disabled:"true"},sQ:"{{content}}"});this.C=null;this.uV=this.U=!1;this.Y=this.V=null;this.isPremiere=!1;this.W=this.Z=null;this.T=!1;this.AJ=null;this.Tj=this.RI("ytp-clip-watch-full-video-button");this.api.S("web_player_updated_entrypoint")&&g.qr(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.Ce("Live");g.k(this,this.liveBadge);this.api.S("web_player_updated_entrypoint")||this.api.S("delhi_modern_web_player")? this.liveBadge.Az(this.element.querySelector(".ytp-time-wrapper")):this.liveBadge.Az(this.element);this.tooltip=J.W1();this.liveBadge.listen("click",this.onClick.bind(this));this.api.S("delhi_modern_web_player")&&this.B(this.RI("ytp-time-current"),"click",this.sC_);this.B(this.Tj,"click",this.gHW);this.B(this.api,"serverstitchedvideochange",function(){fsm(I,I.api.getProgressState().isAtLiveHead)}); this.B(F,"presentingplayerstatechange",this.Q6);this.B(F,"appresize",this.Q6);this.B(F,"onLoopRangeChange",this.onLoopRangeChange);this.B(F,"videodatachange",this.onVideoDataChange);(J=F.getVideoData())&&this.updateVideoData(J);this.Q6();Wfo(this,F.getLoopRange())}; fsm=function(F,J){var b=F.liveBadge.element,I=F.api.isLifaAdPlaying();b.disabled=I||J;!jO(F)||F.Y===J&&F.V===F.isPremiere||(F.Y=J,F.V=F.isPremiere,F.Q6(),J?b.classList.add("ytp-live-badge-is-livehead"):b.classList.remove("ytp-live-badge-is-livehead"),F.liveBadge.Ce(F.isPremiere?"Premiere":"Live"),J?F.C&&(F.C(),F.C=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",F.C=g.iy(F.tooltip,F.liveBadge.element)))}; Wfo=function(F,J){var b=F.AJ!==J;F.AJ=J;b&&dy4(F)}; dy4=function(F){F.updateValue("clipicon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{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"}}]}); F.uV&&!F.U?F.updateValue("watchfullvideo","Watch live stream"):F.updateValue("watchfullvideo","Watch full video");g.qr(F.element,"ytp-clip",GU(F));g.qr(F.element,"ytp-live",jO(F))}; jO=function(F){var J=F.api.J().S("enable_linear_program_progress"),b=!F.api.S("clean_player_style_fix_on_web")||F.api.getPresentingPlayerType()!==2;return F.uV&&!GU(F)&&(!J||!F.U)&&b}; GU=function(F){return!!F.AJ&&!!F.AJ.postId&&F.api.getPresentingPlayerType()!==2&&(!F.AJ.type||F.AJ.type==="clips")}; jqa=function(F,J){g.U.call(this,{X:"div",K:"ytp-volume-panel",L:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{X:"div",K:"ytp-volume-slider",j:[{X:"div",K:"ytp-volume-slider-handle"}]}]});var b=this;this.api=F;this.V=J;this.YK=!1;this.N=this.volume=0;this.W=null;this.U=this.C=this.isDragging=!1;this.V=J;this.T=F.Ua();this.Y=this.RI("ytp-volume-slider");this.Tj=this.RI("ytp-volume-slider-handle"); this.Z=new g.L1(this.Y,!0);g.k(this,this.Z);this.Z.subscribe("dragstart",this.m0_,this);this.Z.subscribe("dragmove",this.h0,this);this.Z.subscribe("dragend",this.beD,this);this.B(F,"onVolumeChange",this.onVolumeChange);this.B(F,"appresize",this.rj);this.B(F,"fullscreentoggled",this.Up);this.B(F,"onShowControls",this.E$);this.B(F,"onHideControls",this.E$);this.B(this.element,"keydown",this.zb);this.B(this.element,"focus",function(){Vw(b,b.C,b.isDragging,!0,b.api.YK())}); this.B(this.element,"blur",function(){Vw(b,b.C,b.isDragging,!1,b.api.YK())}); this.rj(F.mG().getPlayerSize());ElJ(this,F.getVolume(),F.isMuted());zP(F,this.element,this)}; ElJ=function(F,J,b){var I=Math.floor(J),u=I+"% volume"+(b?" muted":"");b=b?0:J/100;F.updateValue("valuenow",I);F.updateValue("valuetext",u);F.Tj.style.left=(F.T?60:40)*b+"px";F.volume=J}; Gz7=function(F,J){g.qr(F.element,"ytp-volume-control-hover",J);Vw(F,J,F.isDragging,F.U,F.api.YK())}; Vw=function(F,J,b,I,u){var w=F.C||F.isDragging||F.U||F.YK;F.C=J;F.isDragging=b;F.U=I;F.YK=u;J=F.C||F.isDragging||F.U||F.YK;w!==J&&(J?F.W=F.B(F.element,"wheel",F.Vu):(F.iX(F.W),F.W=null),g.qr(F.V,"ytp-volume-slider-active",J))}; Py=function(F,J){var b=F.J(),I=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];b.T&&I.push("no-link");var u={title:"{{title}}",target:b.N,"data-priority":"5","data-sessionlink":"feature=player-button"};b.T||(u.href="{{url}}");g.U.call(this,{X:"a",Dv:I,L:u,sQ:"{{logoSvg}}"});this.C=null;this.api=F;this.visible=!1;b.T||(this.C=this.listen("click",this.onClick));this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"videoplayerreset",this.onVideoDataChange);this.B(F,"onLoopRangeChange", this.onVideoDataChange);this.B(F,"appresize",this.mO);this.onVideoDataChange();b.T||this.addOnDisposeCallback(g.iy(J.W1(),this.element));this.mO()}; V_C=function(F,J,b){g.s5.call(this);var I=this;this.G=F;this.kQ=J;this.rq=b;this.cN=NaN;this.eE=this.oI=this.playButton=this.D=this.W=this.KW=this.dD=this.Tj=this.N=this.C=this.nW=this.bR=null;this.T=new itk(this.G);this.progressBar=new g.xr(this.G,this.kQ);this.WN=new g.E3(this.G,this.kQ);this.Gj=new ORz(this.G,this.kQ);this.Y=new g.n8(this.KY,null,this);b=F.J();this.rq.subscribe("autohideupdate",this.lN,this);var u=!F.getPlayerStateObject().isCued(),w;F.J().S("html5_player_dynamic_bottom_gradient")? this.nW=w=new QLJ(F):w=new g.U({X:"div",K:"ytp-gradient-bottom"});g.k(this,w);g.Pp(F,w.element,9);this.qf=new g.ZU(w,250,u,100);g.k(this,this.qf);this.Z=new g.U({X:"div",K:"ytp-chrome-bottom",j:[{X:"div",K:"ytp-chrome-controls"}]});g.k(this,this.Z);g.Pp(F,this.Z.element,9);this.fW=new g.ZU(this.Z,250,u,100);g.k(this,this.fW);this.zj=this.Z.element.children[0];g.k(this,this.T);g.Pp(F,this.T.element,6);this.T.subscribe("show",function(q){I.G.Zf(!q);F.Rx(I.T,q)}); g.k(this,this.progressBar);this.progressBar.Az(this.Z.element,0);u=new Cn(F,J);g.k(this,u);g.Pp(F,u.element,4);u=new g.Mc({X:"div",K:"ytp-left-controls"});g.k(this,u);u.Az(this.zj);F.S("delhi_modern_web_player")||(w=new g.Ob(F,J,!1),g.k(this,w),w.Az(u.element));F.S("web_render_jump_buttons")&&(this.N=new XG(F,g.eB(F.J().experiments,"web_jump_button_backward_amount")||-10),g.k(this,this.N),this.N.Az(u.element));b.qf||(this.playButton=new g.kr(F,J),g.k(this,this.playButton),this.playButton.Az(u.element)); F.S("web_render_jump_buttons")&&(this.Tj=new XG(F,g.eB(F.J().experiments,"web_jump_button_forward_amount")||10),g.k(this,this.Tj),this.Tj.Az(u.element));F.S("delhi_modern_web_player_remove_nav_buttons")||(F.S("delhi_modern_web_player")&&(w=new g.Ob(F,J,!1),g.k(this,w),w.Az(u.element)),w=new g.Ob(F,J,!0),g.k(this,w),w.Az(u.element));if(!F.S("delhi_modern_web_player")&&(w=new g.U({X:"span",K:"ytp-volume-area"}),g.k(this,w),w.Az(u.element),!b.Se&&(this.C=new Db(F,J),g.k(this,this.C),this.C.Az(w.element), b.dD&&!b.Y))){var M=new jqa(F,this.Z.element);this.oI=M;g.k(this,M);M.Az(w.element);w=new g.L1(w.element);g.k(this,w);w.subscribe("hoverstart",function(){var q;(q=I.oI)==null||Gz7(q,!0)}); w=new g.L1(u.element);g.k(this,w);w.subscribe("hoverend",function(){var q;(q=I.oI)==null||Gz7(q,!1)})}g.k(this,this.WN); this.WN.Az(u.element);this.dD=new $r(F,this.progressBar);g.k(this,this.dD);this.dD.Az(u.element);b.S("web_key_moments_markers")&&(this.KW=new Q$(F,this.progressBar),g.k(this,this.KW),this.KW.Az(u.element));F.S("delhi_modern_web_player")?(this.U=new g.Mc({X:"div",K:"ytp-right-controls",j:[{X:"div",K:By.RIGHT_CONTROLS_LEFT},{X:"div",K:By.RIGHT_CONTROLS_RIGHT}]}),F.S("delhi_modern_web_player_right_controls_separate")&&g.uG(this.U.element,"ytp-right-controls-separate")):this.U=new g.Mc({X:"div",K:"ytp-right-controls"}); g.k(this,this.U);this.U.Az(this.zj);F.S("delhi_modern_web_player")&&(this.C=new Db(F,J),g.k(this,this.C),this.C.Az(this.U.RI(By.RIGHT_CONTROLS_LEFT)));this.Jz=new NHG(F,J);g.k(this,this.Jz);TU(this,this.Jz,"RIGHT_CONTROLS_LEFT");this.settingsButton=new K9(F,this.T);g.k(this,this.settingsButton);z7z(this.T,this.settingsButton);TU(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");u=F.getVideoData();if(b.Wu||u.T0&&b.controlsType==="1")this.W=new Py(F,J),g.k(this,this.W),this.W.Az(this.U.element);b.showMiniplayerButton&& (this.D=new R9(F),g.k(this,this.D),TU(this,this.D,"RIGHT_CONTROLS_RIGHT"));b.LF&&(J=new eO(F,this.T),g.k(this,J),TU(this,J,"RIGHT_CONTROLS_RIGHT"));b.fD&&(J=new sb(F),g.k(this,J),TU(this,J,"RIGHT_CONTROLS_RIGHT"));g.k(this,this.Gj);TU(this,this.Gj,"RIGHT_CONTROLS_RIGHT");g.k(this,this.Y);this.B(F,"appresize",this.mO);this.B(F,"fullscreentoggled",this.mO);this.B(F,"presentingplayerstatechange",this.OU);this.B(F,"videodatachange",this.onVideoDataChange);this.mO()}; Psv=function(F,J){if(F.G.getPlayerStateObject().isCued()||J){if(J){F.fW.hide();F.qf.hide();F.C&&F.C.tJ(!1);F.W&&F.W.tJ(!1);F.D&&F.D.tJ(!1);if(F.G.S("embeds_use_parent_visibility_in_ve_logging")){var b;(b=F.Gj)==null||b.tJ(!1);var I;(I=F.settingsButton)==null||I.tJ(!1);var u;(u=F.playButton)==null||u.tJ(!1)}F.G.DW(F.Pb())}}else if(!J){F.fW.show();F.qf.show();F.C&&F.C.tJ(!0);F.W&&F.W.tJ(!0);F.D&&F.D.tJ(!0);if(F.G.S("embeds_use_parent_visibility_in_ve_logging")){var w;(w=F.Gj)==null||w.tJ(!0);var M; (M=F.Jz)==null||M.tJ(!0);var q;(q=F.playButton)==null||q.tJ(!0)}F.lN()}}; THa=function(F){var J=F.G.mG().getPlayerSize().width;return Math.max(J-BH7(F)*2,100)}; BH7=function(F){var J=F.G.Ua(),b=F.G.getVideoData().T0,I=0;F.G.Ua()&&F.G.isEmbedsShortsMode()&&(I=(F.G.mG().getPlayerSize().width-F.G.getVideoContentRect().width)/2);return 12*(b?0:J?2:1)+I}; r0C=function(F){var J=F.G.Ua()?72:50;F=F.G.J();g.hP(F)&&(J=F.S("delhi_modern_web_player")?78:62,g.Bu(F)&&(J=54));return J}; TU=function(F,J,b){F.G.S("delhi_modern_web_player")?J.Az(F.U.RI(By[b])):J.Az(F.U.element)}; Sc3=function(F){XI.call(this,F,!1);var J=this;this.suggestedActions={};this.B(this.G,"videodatachange",this.onVideoDataChange);this.B(this.G,g.u6("suggested_action_button_visible"),function(b){b=b.id;J.text=b;BAz(J);J.onClickCommand=J.suggestedActions[b];J.enabled=!0;J.G0()}); this.B(this.G,g.wq("suggested_action_button_visible"),function(b){J.enabled=!1;J.G0();J.G.removeCueRange(b.id)})}; sqz=function(F){F.suggestedActions={};F.G.Yo("suggested_action_button_visible")}; SO=function(F){g.U.call(this,{X:"div",K:r1.TITLE,j:[{X:"div",K:r1.TEXT,j:[{X:"a",Dv:[r1.LINK,r1.SESSIONLINK],L:{target:F.J().N,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},sQ:"{{title}}"},{X:"div",K:r1.SUBTEXT,j:["{{subtextElement}}"]}]}]});this.api=F;this.C=null;this.link=this.RI(r1.LINK);F.createClientVe(this.element,this,23851);this.B(F,"videodatachange",this.VG);this.B(F,"videoplayerreset",this.VG);this.VG()}; Yca=function(F){F.updateValue("channelLink","");F.updateValue("channelName","");g.Bu(F.api.J())?F.updateValue("channelTitleFocusable","0"):F.updateValue("channelTitleFocusable","-1")}; g.s3=function(F,J){g.U.call(this,{X:"div",j:[{X:"div",K:"ytp-tooltip-text-wrapper",L:{"aria-hidden":"{{ariaHidden}}"},j:[{X:"div",K:"ytp-tooltip-edu",j:[{X:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",L:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{X:"span",sQ:"{{eduText}}"}]},{X:"div",K:"ytp-tooltip-image"},{X:"div",K:"ytp-tooltip-title",j:[{X:"span",sQ:"{{title}}"},{X:"div",K:"ytp-tooltip-keyboard-shortcut", sQ:"{{keyBoardShortcut}}"}]},{X:"div",K:"ytp-tooltip-bottom-text",j:[{X:"span",K:"ytp-tooltip-text",sQ:"{{text}}"},{X:"div",K:"ytp-tooltip-keyboard-shortcut",sQ:"{{keyBoardShortcut}}"}]}]},{X:"div",K:"ytp-tooltip-bg",j:[{X:"div",K:"ytp-tooltip-duration",sQ:"{{duration}}"}]}]});var b=this;this.api=F;this.qf=J;this.Tj=function(I){(I=I.relatedTarget)&&g.uB(b.C,I)||b.QN()}; this.W=function(I){b.type===3&&b.QN();(I=I.currentTarget)&&I.nodeType===1&&!b.type&&(I.removeEventListener("mouseover",b.W),I.addEventListener("mouseout",b.Tj),I.removeEventListener("focus",b.W),I.addEventListener("blur",b.Tj),$yo(b,I,2))}; this.eE=function(){b.QN()}; this.type=this.C=null;this.N=!1;this.U=null;this.T="";this.Y=!0;this.scale=1;this.env=this.api.J();this.WN=this.env.U;this.bg=this.RI("ytp-tooltip-bg");this.fW=this.RI("ytp-tooltip-edu");this.image=this.RI("ytp-tooltip-image");this.text=this.RI("ytp-tooltip-text");this.bottomText=this.RI("ytp-tooltip-bottom-text");this.title=this.RI("ytp-tooltip-title");this.V=new g.ZU(this,100);this.Z=NaN;this.Cw=this.api.mG().getPlayerSize().width;this.Gj=new g.ty(this.LGv,250,this);this.kQ=new g.ty(this.QN,5E3, this);g.k(this,this.V);g.k(this,this.Gj);g.k(this,this.kQ);lb&&(F=this.RI("ytp-tooltip-text"),F.setAttribute("role","text"),F.setAttribute("aria-live","polite"))}; g.iy=function(F,J){if(F.WN)return function(){}; J.addEventListener("mouseover",F.W);J.addEventListener("focus",F.W);var b=J.getAttribute("title");b&&!J.hasAttribute("aria-label")&&J.setAttribute("aria-label",b);return function(){F.C===J&&F.QN();J.removeEventListener("mouseover",F.W);J.removeEventListener("focus",F.W)}}; $yo=function(F,J,b,I){if(J&&!J.hasAttribute)F=new g.hC("showElementTooltip called with non-element.",J.toString()),g.Td(F);else{isNaN(F.Z)||(F.Z=NaN,F.bg.style.background="");F.C=J;F.N=!!I;I?F.T=I:(F.T=J.getAttribute("title"),J.removeAttribute("title"));g.bG(F.element,"ytp-tooltip");var u=J.getAttribute("data-tooltip-image");u&&(F.image.style.backgroundImage="url("+u+")");I?F.update({ariaHidden:"false"}):F.update({ariaHidden:"true"});g.qr(F.element,"ytp-tooltip-image-enabled",!!u);J=J.getAttribute("data-tooltip-opaque"); g.qr(F.element,"ytp-tooltip-opaque",!!J);F.type=b;F.api.addEventListener("appresize",F.eE);F.Y&&(CsG(F),F.V.show(0))}}; CsG=function(F){if(F.C){var J=F.C.getAttribute("data-tooltip-text");if(F.T&&F.C.getAttribute("aria-label")!==F.T)var b=F.T;var I=F.C.getAttribute("aria-keyshortcuts"),u=F.C.getAttribute("data-title-no-tooltip");I&&u&&(b=g.m8("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:u,SHORTCUT_KEY:I}));b&&F.C.setAttribute("aria-label",b);if(J&&!F.N){I=F.C;F.updateValue("text",J);b=I.getAttribute("data-duration");F.update({title:F.T,duration:b});I=I.getAttribute("data-preview");u=243*F.scale;var w= 141*F.scale;F.bg.style.width=u+"px";F.bg.style.height=w+"px";F.bg.style.backgroundImage=I?"url("+I+")":"";F.bg.style.backgroundSize=u+"px "+w+"px";g.wD(F.element,["ytp-text-detail","ytp-preview"]);g.qr(F.element,"ytp-has-duration",!!b)}else F.updateValue("text",F.T),I&&F.env.S("delhi_modern_web_player")&&(F.updateValue("text",u),F.updateValue("keyBoardShortcut",I.toUpperCase())),g.An(F.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);X_o(F,!!J)}}; X_o=function(F,J,b,I){var u=Math.min(F.Cw,300*F.scale);F.element.style.maxWidth=J?"":u+"px";F.qf.kU(F.element,F.C,b,F.type===1,I);F.element.style.top?g.uG(F.element,"ytp-bottom"):F.element.style.bottom&&g.uG(F.element,"ytp-top");F.type===3&&F.kQ.start()}; Qqv=function(F,J){g.qr(F.element,"ytp-preview",J>=0);if(!(J<0||J===F.Z)){F.Z=J;J=243*F.scale;var b=141*F.scale,I=wFa(F.U,F.Z,J);RDz(F.bg,I,J,b,!0);F.Gj.start()}}; R7z=function(F){var J=F.C;F.type===3&&F.kQ.stop();F.api.removeEventListener("appresize",F.eE);F.N||J.setAttribute("title",F.T);F.T="";F.C=null;F.updateValue("keyBoardShortcut","")}; kzJ=function(F){g.U.call(this,{X:"button",Dv:["ytp-watch-later-button","ytp-button"],L:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-watch-later-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-watch-later-title",sQ:"Watch later"}]});this.G=F;this.icon=null;this.visible=this.isRequestPending=this.C=!1;CSz(F);F.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.B(F,"videoplayerreset",this.onReset);this.B(F,"appresize", this.QT);this.B(F,"videodatachange",this.QT);this.B(F,"presentingplayerstatechange",this.QT);this.QT();F=this.G.J();var J=g.S9("yt-player-watch-later-pending");F.Z&&J?(G0z(),DyJ(this)):this.VG(2);g.qr(this.element,"ytp-show-watch-later-title",g.dN(F));zP(this.G,this.element,this)}; Ot4=function(F){var J=F.G.getPlayerSize(),b=F.G.J(),I=F.G.getVideoData(),u=g.dN(b)&&g.Ef(F.G)&&g.x(F.G.getPlayerStateObject(),128),w=b.T;return b.YH&&J.width>=240&&!I.isAd()&&I.YH&&!u&&!g.tw(I)&&!F.G.isEmbedsShortsMode()&&!w}; olm=function(F,J){vN3(g.Rw(F.G.J()),"wl_button",function(){G0z({videoId:J});window.location.reload()})}; DyJ=function(F){if(!F.isRequestPending){F.isRequestPending=!0;F.VG(3);var J=F.G.getVideoData();J=F.C?J.removeFromWatchLaterCommand:J.addToWatchLaterCommand;var b=F.G.n8(),I=F.C?function(){F.C=!1;F.isRequestPending=!1;F.VG(2);F.G.J().V&&F.G.jE("WATCH_LATER_VIDEO_REMOVED")}:function(){F.C=!0; F.isRequestPending=!1;F.VG(1);F.G.J().U&&F.G.R$(F.element);F.G.J().V&&F.G.jE("WATCH_LATER_VIDEO_ADDED")}; ho(b,J).then(I,function(){F.isRequestPending=!1;F.VG(4,"An error occurred. Please try again later.");F.G.J().V&&F.G.jE("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; h7C=function(F,J){if(J!==F.icon){switch(J){case 3:var b=JH();break;case 1:b=gV();break;case 2:b={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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:b={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path", G1:!0,L:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}F.updateValue("icon",b);F.icon=J}}; g.Y3=function(){g.LV.apply(this,arguments);this.BH=(this.uy=g.dN(this.api.J()))&&(this.api.J().U||Hx()||tR());this.VI=48;this.hU=69;this.oU=this.yN=null;this.hx=[];this.zY=this.BD=this.Ko=this.zX=this.Fd=null;this.FR=[];this.contextMenu=this.cg=this.overflowButton=this.z7=this.EV=this.searchButton=this.copyLinkButton=this.shareButton=this.J6=this.AX=this.title=this.channelAvatar=this.YG=this.tooltip=null;this.RA=!1;this.Ee=this.SV=this.W2=this.At=null;this.eW=this.Hd=this.pn=!1}; c0_=function(F){var J=F.api.J(),b=g.x(F.api.getPlayerStateObject(),128);return J.Z&&b&&!F.api.isFullscreen()}; Uy_=function(F){if(F.Ru()&&!F.api.isEmbedsShortsMode()&&F.z7){var J=F.api.S("web_player_hide_overflow_button_if_empty_menu");!F.J6||J&&!Ot4(F.J6)||aPJ(F.z7,F.J6);!F.shareButton||J&&!lPG(F.shareButton)||aPJ(F.z7,F.shareButton);!F.copyLinkButton||J&&!ENk(F.copyLinkButton)||aPJ(F.z7,F.copyLinkButton)}else{if(F.z7){J=F.z7;for(var b=g.N(J.actionButtons),I=b.next();!I.done;I=b.next())I.value.detach();J.actionButtons=[]}F.searchButton&&!g.uB(F.AX.element,F.searchButton.element)&&F.searchButton.Az(F.AX.element); F.J6&&!g.uB(F.AX.element,F.J6.element)&&F.J6.Az(F.AX.element);F.shareButton&&!g.uB(F.AX.element,F.shareButton.element)&&F.shareButton.Az(F.AX.element);F.copyLinkButton&&!g.uB(F.AX.element,F.copyLinkButton.element)&&F.copyLinkButton.Az(F.AX.element)}}; xyG=function(F,J,b){J=b?J.lastElementChild:J.firstElementChild;for(var I=null;J;){if(pL(J,"display")!=="none"&&J.getAttribute("aria-hidden")!=="true"){var u=void 0;J.tabIndex>=0?u=J:u=xyG(F,J,b);u&&(I?b?u.tabIndex>I.tabIndex&&(I=u):u.tabIndex<I.tabIndex&&(I=u):I=u)}J=b?J.previousElementSibling:J.nextElementSibling}return I}; nla=function(F,J,b){if(F.api.S("web_player_nitrate_promo_tooltip")&&F.api.getPresentingPlayerType(!0)!==2){var I=F.api.getVideoData(1);if(I==null?0:I.tooltipRenderer){I=I.tooltipRenderer;var u;if(u=!F.Ee){if(!(J=!J)){var w,M,q;J=((w=I.tooltipDisplayStrategy)==null?void 0:w.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((M=I.promoConfig)==null?void 0:M.promoId)!=="dtip-edu-player-iseecaptions"&&((q=I.promoConfig)==null?void 0:q.promoId)!=="dtip-edu-player-tc-m2"}u=J}u&&(F.Ee=new gvm(I,F.api), g.k(F,F.Ee),g.Pp(F.api,F.Ee.element,9));var v;(v=F.Ee)==null||zDa(v,I,b)}}}; g.$3=function(F){g.GN.call(this,F);this.chrome=null;this.load()}; t_7=function(){for(var F=C9.length;F<4;F++){var J=g.H1("VIDEO");J.load();C9.push(new g.A2(J))}}; Zta=function(F,J,b,I){var u=b.getVideoData(),w=J.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};var M=w.T;if(J.Fb()>I/1E3+1)return{msg:"in-the-past"};if(w.isLivePlayback&&!isFinite(I))return{msg:"live-infinite"};(I=J.Qa())&&I.isView()&&(I=I.mediaElement);if(I&&I.mQ().length>12&&g.yR(u))return{msg:"played-ranges"};if(!u.T)return null;if(!M)return{msg:"no-pvd-formats"};if(!u.T.C||!M.C)return{msg:"non-dash"};I=M.videoInfos[0];var q=u.T.videoInfos[0];F.V&&LC(w)&&(I=J.cQ(),q= b.cQ());if(!I||!q)return{msg:"no-video-info"};if(F.T&&(c4(I)||c4(q)))return{msg:"av1"};J=F.C&&w.yM()&&Qh();if(q.containerType!==I.containerType)if(J)w.UQ("sgap",{ierr:"container"});else return{msg:"container"};if(F.U&&!J&&(q.YQ!==I.YQ||q.YQ===""||I.YQ===""))return{msg:"codec"};if(F.Z&&q.video&&I.video&&Math.abs(q.video.width/q.video.height-I.video.width/I.video.height)>.01)return{msg:"ratio"};if(g.yR(w)&&g.yR(u))return{msg:"content-protection"};M=M.C[0];u=u.T.C[0];b=M.audio;var v=u.audio;if(b.sampleRate!== v.sampleRate&&!g.B4)if(J)w.UQ("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:M.itag,cr:b.sampleRate,ni:u.itag,nr:v.sampleRate};return(b.numChannels||2)!==(v.numChannels||2)?{msg:"channel-count"}:F.D&&w.yM()&&I.video.fps!==q.video.fps?{msg:"fps"}:null}; Htz=function(F,J,b){var I=F.getVideoData(),u=J.getVideoData();if(!I.J().supportsGaplessShorts())return{nq:"env"};if(b.W){if(I.NJ&&!I.isAd()||u.NJ&&!u.isAd())return{nq:"autoplay"}}else if(I.NJ||u.NJ)return{nq:"autoplay"};if(!I.Y)return{nq:"client"};if(!F.W9())return{nq:"no-empty"};F=Zta(b,F,J,Infinity);return F!=null?{nq:F.msg}:null}; Xi=function(F){g.R.call(this);this.app=F;this.D=this.Z=this.U=this.C=null;this.T=1;this.events=new g.s5(this);this.events.B(this.app.SE,g.wq("gaplessshortslooprange"),this.Y);g.k(this,this.events)}; Lfk=function(){this.Z=this.W=this.T=this.V=this.D=this.U=this.C=!1}; Fna=function(F){var J=new Lfk;J.C=F.S("h5_gapless_support_types_diff");J.D=F.S("h5_gapless_error_on_fps_diff");J.V=F.S("html5_gapless_use_format_info_fix");J.T=F.S("html5_gapless_disable_on_av1")&&!F.S("html5_gapless_enable_on_av1");J.U=F.S("html5_gapless_check_codec_diff_strictly");J.W=F.S("html5_gapless_on_ad_autoplay");J.Z=F.S("html5_gapless_disable_diff_aspect_radio");return J}; g.Qw=function(F,J,b,I){I=I===void 0?!1:I;nB.call(this);this.mediaElement=F;this.start=J;this.end=b;this.C=I}; JKz=function(F,J,b,I,u,w){w=w===void 0?0:w;g.R.call(this);var M=this;this.policy=F;this.C=J;this.U=b;this.t_=u;this.D=w;this.Z=this.T=null;this.currentVideoDuration=this.W=-1;this.V=!1;this.O1=new xn;this.Pu=I-J.Xq()*1E3;this.O1.then(void 0,function(){}); this.timeout=new g.ty(function(){M.Wh("timeout")},1E4); g.k(this,this.timeout);this.Y=isFinite(I);this.status={status:0,error:null}}; u3k=function(F){var J,b,I,u,w,M,q,v,a,e;return g.S(function(K){if(K.C==1){if(F.iR())return K.return(Promise.reject(Error(F.status.error||"disposed")));F.timeout.start();J=g.RQ.EA();return g.T(K,F.O1,2)}g.RQ.Gy("gtfta",J);b=F.C.Qa();if(b.isEnded())return F.Wh("ended_in_finishTransition"),K.return(Promise.reject(Error(F.status.error||"")));if(!F.Z||!kn(F.Z))return F.Wh("next_mse_closed"),K.return(Promise.reject(Error(F.status.error||"")));if(F.U.SS()!==F.Z)return F.Wh("next_mse_mismatch"),K.return(Promise.reject(Error(F.status.error|| "")));I=bZm(F);u=I.UR;w=I.Jn;M=I.CK;F.C.rg(!1,!0);q=I3Y(b,u,M,!F.U.getVideoData().isAd());F.U.setMediaElement(q);(v=F.C.Lu())&&F.U.ol(v.aq,v.bN);F.Y&&(F.U.seekTo(F.U.getCurrentTime()+.001,{sL:!0,rd:3,Ky:"gapless_pseudo"}),q.play(),r$());a=b.Cy();a.cpn=F.C.getVideoData().clientPlaybackNonce;a.st=""+u;a.et=""+M;F.U.UQ("gapless",a);F.C.UQ("gaplessTo",{cpn:F.U.getVideoData().clientPlaybackNonce});e=F.C.getPlayerType()===F.U.getPlayerType();F.C.y3(w,!0,!1,e,F.U.getVideoData().clientPlaybackNonce);F.U.y3(F.U.getCurrentTime(), !0,!0,e,F.C.getVideoData().clientPlaybackNonce);F.U.n9();g.qf(function(){!F.U.getVideoData().Gj&&F.U.getPlayerState().isOrWillBePlaying()&&F.U.v8()}); DB(F,6);F.dispose();return K.return(Promise.resolve())})}; qMv=function(F){if(F.U.getVideoData().T){var J=F.t_.J().S("html5_gapless_suspend_next_loader")&&F.D===1;F.U.w5(F.Z,J,wZG(F));DB(F,3);Mxo(F);var b=AKY(F);J=b.MF;b=b.kT;J.subscribe("updateend",F.S7,F);b.subscribe("updateend",F.S7,F);F.S7(J);F.S7(b)}}; Mxo=function(F){F.C.unsubscribe("internalvideodatachange",F.Vx,F);F.U.unsubscribe("internalvideodatachange",F.Vx,F);F.t_.J().S("html5_gapless_use_format_info_fix")&&(F.C.unsubscribe("internalvideoformatchange",F.Vx,F),F.U.unsubscribe("internalvideoformatchange",F.Vx,F));F.C.unsubscribe("mediasourceattached",F.Vx,F);F.U.unsubscribe("statechange",F.wj,F)}; I3Y=function(F,J,b,I){F=F.isView()?F.mediaElement:F;return new g.Qw(F,J,b,I)}; DB=function(F,J){J<=F.status.status||(F.status={status:J,error:null},J===5&&F.O1.resolve())}; wZG=function(F){return F.t_.J().S("html5_gapless_no_clear_buffer_timeline")&&F.D===1&&bE(F.C.getVideoData())}; bZm=function(F){var J=F.C.Qa();J=J.isView()?J.start:0;var b=F.C.getVideoData().isLivePlayback?Infinity:F.C.LP(!0);b=Math.min(F.Pu/1E3,b)+J;var I=F.Y?100:0;F=b-F.U.Fb()+I;return{uc:J,UR:F,Jn:b,CK:Infinity}}; AKY=function(F){return{MF:F.T.C.Us,kT:F.T.U.Us}}; k3=function(F){g.R.call(this);var J=this;this.app=F;this.D=this.U=this.C=null;this.Y=!1;this.T=this.Z=null;this.V=Fna(this.app.J());this.W=function(){g.qf(function(){vxk(J)})}}; a3m=function(F,J,b,I,u){I=I===void 0?0:I;u=u===void 0?0:u;F.W9()||O3(F);F.Z=new xn;F.C=J;var w=b,M=u===0;M=M===void 0?!0:M;var q=F.app.F_(),v=q.getVideoData().isLivePlayback?Infinity:q.LP(!0)*1E3;w>v&&(w=v-200,F.Y=!0);M&&q.getCurrentTime()>=w/1E3?F.W():(F.U=q,M&&(M=w,w=F.U,F.app.SE.addEventListener(g.u6("vqueued"),F.W),M=isFinite(M)||M/1E3>w.getDuration()?M:0x8000000000000,F.D=new g.b6(M,0x8000000000000,{namespace:"vqueued"}),w.addCueRange(F.D)));M=I/=1E3;w=J.getVideoData().C;I&&w&&F.U&&(q=I,v=0, J.getVideoData().isLivePlayback&&(M=Math.min(b/1E3,F.U.LP(!0)),v=Math.max(0,M-F.U.getCurrentTime()),q=Math.min(I,J.LP()+v)),M=ZBz(w,q)||I,M!==I&&F.C.UQ("qvaln",{st:I,at:M,rm:v,ct:q}));J=M;I=F.C;I.getVideoData().Ly=!0;I.getVideoData().Y=!0;I.PE(!0);w={};F.U&&(w=F.U.Iv(),M=F.U.getVideoData().clientPlaybackNonce,w={crt:(w*1E3).toFixed(),cpn:M});I.UQ("queued",w);J!==0&&I.seekTo(J+.01,{sL:!0,rd:3,Ky:"videoqueuer_queued"});F.T=new JKz(F.V,F.app.F_(),F.C,b,F.app,u);b=F.T;b.status.status!==Infinity&&(DB(b, 1),b.C.subscribe("internalvideodatachange",b.Vx,b),b.U.subscribe("internalvideodatachange",b.Vx,b),b.t_.J().S("html5_gapless_use_format_info_fix")&&(b.C.subscribe("internalvideoformatchange",b.Vx,b),b.U.subscribe("internalvideoformatchange",b.Vx,b)),b.C.subscribe("mediasourceattached",b.Vx,b),b.U.subscribe("statechange",b.wj,b),b.C.subscribe("newelementrequired",b.Mz,b),b.Vx());return F.Z}; vxk=function(F){var J,b,I,u,w,M,q,v,a;g.S(function(e){switch(e.C){case 1:if(F.iR()||!F.Z||!F.C)return e.return();F.Y&&F.app.F_().vk(!0,!1);b=F.app.J().S("html5_force_csdai_gapful_transition")&&((J=F.app.F_())==null?void 0:J.getVideoData().isDaiEnabled());I=null;if(!F.T||b){e.gD(2);break}g.lk(e,3);return g.T(e,u3k(F.T),5);case 5:g.Wa(e,2);break;case 3:I=u=g.dY(e);case 2:if(!F.C)return e.return();g.RQ.Zq("vqsp",function(){F.app.LA(F.C)}); if(!F.C)return e.return();w=F.C.Qa();F.app.J().S("html5_gapless_seek_on_negative_time")&&w&&w.getCurrentTime()<-.01&&F.C.seekTo(0);g.RQ.Zq("vqpv",function(){F.app.playVideo()}); if(I||b)F.C?(M=I?I.message:"forced",(q=F.U)==null||q.UQ("gapfulfbk",{r:M}),F.C.lz(M)):(v=F.U)==null||v.UQ("gapsp",{});a=F.Z;O3(F);a&&a.resolve();return e.return(Promise.resolve())}})}; O3=function(F,J){J=J===void 0?!1:J;if(F.U){if(F.D){var b=F.U;F.app.SE.removeEventListener(g.u6("vqueued"),F.W);b.removeCueRange(F.D)}F.U=null;F.D=null}F.T&&(F.T.status.status!==6&&(b=F.T,b.status.status!==Infinity&&b.D!==1&&b.Wh("Canceled")),F.T=null);F.Z=null;F.C&&!J&&F.C!==F.app.Nf()&&F.C!==F.app.F_()&&xU(F.C);F.C&&J&&F.C.vl();F.C=null;F.Y=!1}; e93=function(F){var J;return((J=F.T)==null?void 0:J.currentVideoDuration)||-1}; Kn3=function(F,J,b){if(F.W9())return"qie";if(F.C==null||F.C.wD.iR()||F.C.getVideoData()==null)return"qpd";if(J.videoId!==F.C.B1())return"vinm";if(e93(F)<=0)return"ivd";if(b!==1)return"upt";if((b=F.T)==null)F=void 0;else if(b.getStatus().status!==5)F="niss";else if(Zta(b.policy,b.C,b.U,b.Pu)!=null)F="pge";else{J=AKY(b);F=J.MF;var I=J.kT;J=g.eB(b.t_.J().experiments,"html5_shorts_gapless_next_buffer_in_seconds");b=b.W+J;I=Mt(I.N0(),b);F=Mt(F.N0(),b);F=!(J>0)||I&&F?null:"neb"}return F!=null?F:null}; pZm=function(){g.uA.call(this);var F=this;this.fullscreen=0;this.Z=this.T=this.pictureInPicture=this.C=this.U=this.inline=!1;this.D=function(){F.G0()}; KVz(this.D);this.W=this.getVisibilityState(this.Hh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.JN(),this.n$(),this.I9(),this.tD())}; NS=function(F){return!(F.isMinimized()||F.isInline()||F.isBackground()||F.JN()||F.n$()||F.I9()||F.tD())}; gx3=function(F,J){g.R.call(this);this.T=this.Z=null;this.C=F;this.U=J}; Npz=function(F){var J=F.experiments,b=J.pW.bind(J);mTG=b("html5_use_async_stopVideo");yKG=b("html5_pause_for_async_stopVideo");iZk=b("html5_not_reset_media_source");b("html5_listen_for_audio_output_changed")&&(BJ3=!0);Oo=b("html5_not_reset_media_source");z97=b("html5_not_reset_media_source");KB=b("html5_retain_source_buffer_appends_for_debugging");Ib3=b("web_watch_pip");b("html5_mediastream_applies_timestamp_offset")&&(p7=!0);var I=g.eB(J,"html5_cobalt_override_quic");I&&jA("QUIC",+(I>0));(I=g.eB(J, "html5_cobalt_audio_write_ahead_ms"))&&jA("Media.AudioWriteDurationLocal",I);(I=b("html5_cobalt_enable_decode_to_texture"))&&jA("Media.PlayerConfiguration.DecodeToTexturePreferred",I?1:0);(F.hJ()||b("html5_log_cpu_info"))&&vbJ();Error.stackTraceLimit=50;var u=g.eB(J,"html5_idle_rate_limit_ms");u&&Object.defineProperty(window,"requestIdleCallback",{value:function(w){return window.setTimeout(w,u)}}); GAo(F.D);N$=b("html5_use_ump_request_slicer");iaY=b("html5_record_now");b("html5_disable_streaming_xhr")&&(UD=!1);b("html5_byterate_constraints")&&(La=!0);b("html5_use_non_active_broadcast_for_post_live")&&(km=!0);b("html5_sunset_aac_high_codec_family")&&(Df["141"]="a");b("html5_enable_encrypted_av1")&&(h1=!0)}; l3C=function(F){return F.slice(12).replace(/_[a-z]/g,function(J){return J.toUpperCase().replace("_","")}).replace("Dot",".")}; f3m=function(F){var J={},b;for(b in F.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var I=l3C(b),u=g.eB(F.experiments,b);I&&u&&(J[I]=jA(I,u))}return J}; oQ=function(F,J,b,I,u){u=u===void 0?[]:u;g.R.call(this);this.rD=F;this.V2=J;this.Z=b;this.segments=u;this.C=void 0;this.U=new Map;u.length&&(this.C=u[0])}; Wnm=function(F){if(!(F.segments.length<2)){var J=F.segments.shift();if(J){var b=J.C,I=[];if(b.size){b=g.N(b.values());for(var u=b.next();!u.done;u=b.next()){u=g.N(u.value);for(var w=u.next();!w.done;w=u.next()){w=w.value;for(var M=g.N(w.segments),q=M.next();!q.done;q=M.next())(q=hd(q.value))&&I.push(q);w.removeAll()}}}(b=hd(J))&&I.push(b);I=g.N(I);for(b=I.next();!b.done;b=I.next())F.U.delete(b.value);J.dispose()}}}; cy=function(F,J,b,I){if(!F.C||J>b)return!1;J=new oQ(F.rD,J,b,F.C,I);I=g.N(I);for(b=I.next();!b.done;b=I.next()){b=b.value;var u=hd(b);u&&u!==hd(F.C)&&F.U.set(u,[b])}F=F.C;F.C.has(J.Ez())?F.C.get(J.Ez()).push(J):F.C.set(J.Ez(),[J]);return!0}; bm=function(F,J){return F.U.get(J)}; dTk=function(F,J,b){F.U.set(J,b)}; U3=function(F,J,b,I,u,w){return new ExJ(b,b+(I||0),!I,J,F,u,w)}; ExJ=function(F,J,b,I,u,w,M){g.R.call(this);this.V2=F;this.T=J;this.U=b;this.type=I;this.Z=u;this.videoData=w;this.Gg=M;this.C=new Map;m7(w)}; hd=function(F){return F.videoData.clientPlaybackNonce}; jC7=function(F){if(F.C.size)for(var J=g.N(F.C.values()),b=J.next();!b.done;b=J.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())I.value.dispose()}F.C.clear()}; GQ_=function(F){this.end=this.start=F}; g.x3=function(){this.C=new Map;this.T=new Map;this.U=new Map}; g.n9=function(F,J,b,I){g.R.call(this);var u=this;this.api=F;this.rD=J;this.playback=b;this.app=I;this.fW=new g.x3;this.U=new Map;this.W=[];this.D=[];this.T=new Map;this.NW=new Map;this.Tj=new Map;this.KW=null;this.Kk=NaN;this.Q2=this.xm=null;this.Om=new g.ty(function(){Vx_(u,u.Kk,u.xm||void 0)}); this.events=new g.s5(this);this.Um=15E3;this.Gj=new g.ty(function(){u.WN=!0;u.playback.lP(u.Um);PNz(u);u.rk(!1)},this.Um); this.WN=!1;this.V=new Map;this.bR=[];this.eE=null;this.g9=new Set;this.qf=[];this.If=[];this.y6=[];this.Se=[];this.C=void 0;this.kQ=0;this.zj=!0;this.N=!1;this.dD=[];this.oI=new Set;this.Ly=new Set;this.M0=new Set;this.x_=0;this.Jz=new Set;this.MI=0;this.Bu=this.T1=!1;this.GF=this.Z="";this.nW=null;this.Po={aQG:function(){return u.U}, ZNE:function(){return u.W}, mpG:function(){return u.T}, t9:function(w){u.onCueRangeEnter(u.U.get(w))}, JOQ:function(w){u.onCueRangeExit(u.U.get(w))}, TOQ:function(w,M){u.U.set(w,M)}, ZPG:function(w){u.GF=w}, O0:function(){return u.O0()}, b1j:function(w){return u.Tj.get(w)}}; this.playback.getPlayerType();this.playback.Ow(this);this.cN=this.rD.hJ();g.k(this,this.Om);g.k(this,this.events);g.k(this,this.Gj);this.events.B(this.api,g.u6("serverstitchedcuerange"),this.onCueRangeEnter);this.events.B(this.api,g.wq("serverstitchedcuerange"),this.onCueRangeExit)}; SMo=function(F,J,b,I,u,w,M,q){var v=Bp3(F,w,w+u);F.WN&&F.Ck({adaftto:1});b||F.Ck({missadcon:1,enter:w,len:u,aid:q});F.Y&&!F.Y.hj&&(F.Y.hj=q);F.Bu&&F.Ck({adfbk:1,enter:w,len:u,aid:q});var a=F.playback;M=M===void 0?w+u:M;w===M&&!u&&F.rD.S("html5_allow_zero_duration_ads_on_timeline")&&F.Ck({attl0d:1});w>M&&td(F,{reason:"enterTime_greater_than_return",V2:w,Xd:M});var e=a.Ho()*1E3;w<e&&td(F,{reason:"enterTime_less_than_minSeekableTime",enterMs:w,minSkMs:e},F.rD.S("html5_report_ssdai_timeline_error_as_fatal")); a=a.getDuration()*1E3;M>a&&td(F,{reason:"parent_return_greater_than_content_duration",Xd:M,y3D:a});a=null;e=g.AL(F.D,{Xd:w},function(K,p){return K.Xd-p.Xd}); e>=0&&(a=F.D[e],a.Xd>w&&Tp_(F,J.video_id||"",w,M,a));if(v&&a)for(e=0;e<F.qf.length;e++){if(F.qf[e].identifier===v.identifier){F.qf.splice(e,1);break}}else if(v)return F.Ck({rejectAttl:1}),q&&!Bc(F.Se,function(K){return K===q})&&(F.Ck({rejectAdBreakAttl:q},!0),F.Se.push(q)),ZB(F),""; v="ss_childplayback_"+rKY++;F.rD.S("html5_enable_ssap_entity_id")?(J=new g.RH(F.rD,J),e=J.clientPlaybackNonce):(J.cpn||(J.cpn=g.Nq(16)),e=J.cpn,J=new g.RH(F.rD,J));J.r9=v;b={r9:v,playerType:I,durationMs:u,V2:w,Xd:M,cpn:e,videoData:J,errorCount:0,ssdaiAdsConfig:b};g.eJ(F.D,b,function(K,p){return K.V2===p.V2?K.durationMs-p.durationMs:K.V2-p.V2}); F.T.set(e,b);F.NW.set(v,b);F.Ck({attlDone:M-w,acpn:e,et:w,prt:M});q?b.i7=q:a?b.i7=a.i7:b.i7=b.cpn;if(w=b.i7)(I=F.Tj.get(w))?(I.push(b),g.vW(I,function(K,p){return K.V2-p.V2})):F.Tj.set(w,[b]); F.Gj.isActive()&&(F.WN=!1,F.Gj.stop(),PNz(F),F.rk(!0));return v}; Hy=function(F,J,b){return{ssvc:J,cpn:(b==null?void 0:b.cpn)||"",vid:(b==null?void 0:b.videoData.videoId)||"",ct:(F.playback.getCurrentTime()||0).toFixed(3),cmt:(F.playback.Fb()||0).toFixed(3)}}; L9=function(F,J){F.api.yW();F.api.publish("serverstitchedvideochange",J.r9,J.l7)}; JU=function(F,J,b){var I=F.N,u=F.O0(),w=F.Z;F.Z="";var M=J.au-b.au;Math.abs(M)>.5&&F.Ck({ttdtb:1,delta:M,cpn:u.cpn,enter:J.adCpn,exit:b.adCpn,seek:I,skip:w});F.api.S("html5_ssdai_enable_media_end_cue_range")&&F.api.ey();if(J.isAd&&b.isAd){u=!!w;if(J.adCpn&&b.adCpn){var q=F.T.get(J.adCpn);var v=F.T.get(b.adCpn)}u?F.Ck({igtransskip:1,enter:J.adCpn,exit:b.adCpn,seek:I,skip:w}):Ff(F,v,q,b.au,J.au,I,u)}else if(!J.isAd&&b.isAd){F.GF=u.cpn;F.api.publish("serverstitchedvideochange");q=Hy(F,"a2c");F.Ck(q); F.x_=0;if(q=b.Os)F.kQ=q.end;var a;b.adCpn&&(a=F.T.get(b.adCpn));a&&F.playback.QE(a,u,b.au,J.au,I,!!w)}else if(J.isAd&&!b.isAd){var e;J.adCpn&&(e=F.T.get(J.adCpn));e&&(F.kQ=0,F.GF=e.cpn,L9(F,e),a=Hy(F,"c2a",e),F.Ck(a),F.x_=1,F.playback.QE(u,e,b.au,J.au,I,!!w))}}; bK=function(F,J,b){b=b===void 0?0:b;var I=g.AL(F.D,{V2:(J+b)*1E3},function(q,v){return q.V2-v.V2}); I=I<0?(I+2)*-1:I;if(I>=0)for(var u=J*1E3,w=I;w<=I+1&&w<F.D.length;w++){var M=F.D[w];if(u>=M.V2-b*1E3&&u<=M.Xd+b*1E3)return{MQ:M,K3:J}}return{MQ:void 0,K3:J}}; YMk=function(F,J){var b="";(J=sC7(F,J))&&(b=J.getId());return b?F.T.get(b):void 0}; sC7=function(F,J){if(F.GF){var b=F.U.get(F.GF);if(b&&b.start-200<=J&&b.end+200>=J)return b}F=g.N(F.U.values());for(b=F.next();!b.done;b=F.next())if(b=b.value,b.start<=J&&b.end>=J)return b}; Vx_=function(F,J,b){var I=F.Q2||F.app.F_().getPlayerState();Iz(F,!0);F.playback.seekTo(J,b);F=F.app.F_();J=F.getPlayerState();I.isOrWillBePlaying()&&!J.isOrWillBePlaying()?F.playVideo():I.isPaused()&&!J.isPaused()&&F.pauseVideo()}; Iz=function(F,J){F.Kk=NaN;F.xm=null;F.Om.stop();F.KW&&J&&F.KW.P2();F.Q2=null;F.KW=null}; $T_=function(F){var J=J===void 0?-1:J;var b=b===void 0?Infinity:b;for(var I=[],u=g.N(F.D),w=u.next();!w.done;w=u.next())w=w.value,(w.V2<J||w.Xd>b)&&I.push(w);F.D=I;I=g.N(F.U.values());for(u=I.next();!u.done;u=I.next())u=u.value,u.start>=J&&u.end<=b&&(F.playback.removeCueRange(u),F.U.delete(u.getId()),F.Ck({rmAdCR:1}));I=bK(F,J/1E3);J=I.MQ;I=I.K3;if(J&&(I=I*1E3-J.V2,u=J.V2+I,J.durationMs=I,J.Xd=u,I=F.U.get(J.cpn))){u=g.N(F.W);for(w=u.next();!w.done;w=u.next())w=w.value,w.start===I.end?w.start=J.V2+ J.durationMs:w.end===I.start&&(w.end=J.V2);I.start=J.V2;I.end=J.V2+J.durationMs}if(J=bK(F,b/1E3).MQ){var M;I="playback_timelinePlaybackId_"+J.r9+"_video_id_"+((M=J.videoData)==null?void 0:M.videoId)+"_durationMs_"+J.durationMs+"_enterTimeMs_"+J.V2+"_parentReturnTimeMs_"+J.Xd;F.AN("Invalid_clearEndTimeMs_"+b+"_that_falls_during_"+I+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; CNk=function(F){F.fW.clearAll();F.U.clear();F.W=[];F.D=[];F.T.clear();F.NW.clear();F.Tj.clear();F.V.clear();F.bR=[];F.eE=null;F.g9.clear();F.qf=[];F.If=[];F.y6=[];F.Se=[];F.dD=[];F.oI.clear();F.Ly.clear();F.M0.clear();F.Jz.clear();F.WN=!1;F.C=void 0;F.kQ=0;F.zj=!0;F.N=!1;F.x_=0;F.MI=0;F.T1=!1;F.Bu=!1;F.Z="";F.Gj.isActive()&&ZB(F)}; QC4=function(F,J,b,I,u,w){if(!F.Bu)if(g.XZk(F,b))F.Ck({gdu:"undec",seg:b,itag:u});else if(J=uK(F,J,b,I,w),!(F.playback.getVideoData().vV()&&(J==null?0:J.L$)))return J}; uK=function(F,J,b,I,u){var w=F.V.get(b);if(!w){if(w=R93(F,J))return w;J=F.El(b-1,I!=null?I:2);if(u)return F.Ck({misscue:u,sq:b,type:I,prevsstate:J==null?void 0:J.W$,prevrecord:F.V.has(b-1)}),F.V.get(b-1);if((J==null?void 0:J.W$)===2)return F.Ck({adnf:1,sq:b,type:I,prevrecord:F.V.has(b-1)}),F.V.get(b-1)}return w}; R93=function(F,J){J+=F.Kc();if(F.playback.getVideoData().vV())a:{var b=1;b=b===void 0?0:b;var I=J*1E3;F=g.N(F.D);for(var u=F.next();!u.done;u=F.next()){u=u.value;var w=u.l7?u.l7*1E3:u.V2;if(I>=u.V2-b*1E3&&I<=w+u.durationMs+b*1E3){b={MQ:u,K3:J};break a}}b={MQ:void 0,K3:J}}else F.rD.S("html5_use_time_without_threshold_first")&&(b=bK(F,J)),F.rD.S("html5_use_time_without_threshold_first")&&((I=b)==null?0:I.MQ)||(b=bK(F,J,1));var M;return(M=b)==null?void 0:M.MQ}; DTC=function(F,J){J=J===void 0?"":J;var b=Iw(J)||void 0;if(!J||!b){var I;F.Ck({adcfg:(I=J)==null?void 0:I.length,dcfg:b==null?void 0:b.length})}return b}; kQm=function(F){if(F.dD.length)for(var J=g.N(F.dD),b=J.next();!b.done;b=J.next())F.onCueRangeExit(b.value);J=g.N(F.U.values());for(b=J.next();!b.done;b=J.next())F.playback.removeCueRange(b.value);J=g.N(F.W);for(b=J.next();!b.done;b=J.next())F.playback.removeCueRange(b.value);F.U.clear();F.W=[];F.fW.clearAll();F.C||(F.zj=!0)}; Ff=function(F,J,b,I,u,w,M){if(J&&b){F.GF=b.cpn;L9(F,b);var q=Hy(F,"a2a",b);F.Ck(q);F.x_++;F.playback.QE(J,b,I||0,u||0,!!w,!!M)}else F.Ck({misspbkonadtrans:1,enter:(b==null?void 0:b.cpn)||"",exit:(J==null?void 0:J.cpn)||"",seek:w,skip:M})}; ox7=function(F,J,b,I){if(I)for(I=0;I<F.W.length;){var u=F.W[I];if(u.start<J&&u.end>b){var w=u.end;u.end=J;OZz(F,b,w)}else if(u.start>=J&&u.start<b&&u.end>b)u.start=b;else if(u.end>J&&u.end<=b&&u.start<J)u.end=J;else if(u.start>=J&&u.end<=b){F.playback.removeCueRange(u);if(F.dD.includes(u))F.onCueRangeExit(u);F.W.splice(I,1);continue}I++}else OZz(F,J,b)}; OZz=function(F,J,b){J=F.B$(J,b);b=!0;g.eJ(F.W,J,function(M,q){return M.start-q.start}); for(var I=0;I<F.W.length;){if(I>0){var u=F.W[I],w=F.W[I-1];if(Math.round(w.end/1E3)>=Math.round(u.start/1E3)){w.end=u.end;u!==J?F.playback.removeCueRange(u):b=!1;F.W.splice(I,1);continue}}I++}if(b)for(F.playback.addCueRange(J),J=F.playback.oG("serverstitchedcuerange",36E5),J=g.N(J),b=J.next();!b.done;b=J.next())F.U.delete(b.value.getId())}; wh=function(F,J,b){if(b===void 0||!b){b=g.N(F.bR);for(var I=b.next();!I.done;I=b.next()){I=I.value;if(J>=I.start&&J<=I.end)return;if(J===I.end+1){I.end+=1;return}}F.bR.push(new GQ_(J))}}; g.XZk=function(F,J){F=g.N(F.bR);for(var b=F.next();!b.done;b=F.next())if(b=b.value,J>=b.start&&J<=b.end)return!0;return!1}; Tp_=function(F,J,b,I,u){var w;J={reason:"overlapping_playbacks",xbG:J,V2:b,Xd:I,vfW:u.r9,ofG:((w=u.videoData)==null?void 0:w.videoId)||"",xpQ:u.durationMs,FwE:u.V2,BoW:u.Xd};td(F,J)}; td=function(F,J,b){F.playback.Qb(J,b)}; h9C=function(F,J){var b=[];F=F.Tj.get(J);if(!F)return[];F=g.N(F);for(J=F.next();!J.done;J=F.next())J=J.value,J.cpn&&b.push(J.cpn);return b}; cKv=function(F,J,b){var I=0;F=F.Tj.get(b);if(!F)return-1;F=g.N(F);for(b=F.next();!b.done;b=F.next()){if(b.value.cpn===J)return I;I++}return-1}; UTm=function(F,J){var b=0;F=F.Tj.get(J);if(!F)return 0;F=g.N(F);for(J=F.next();!J.done;J=F.next())J=J.value,J.durationMs!==0&&J.Xd!==J.V2&&b++;return b}; xTY=function(F,J,b){var I=!1;if(b&&(b=F.Tj.get(b))){b=g.N(b);for(var u=b.next();!u.done;u=b.next())u=u.value,u.durationMs!==0&&u.Xd!==u.V2&&(u=u.cpn,J===u&&(I=!0),I&&!F.Ly.has(u)&&(F.Ck({decoratedAd:u}),F.Ly.add(u)))}}; PNz=function(F){F.cN&&F.Ck({adf:"0_"+((new Date).getTime()/1E3-F.MI)+"_isTimeout_"+F.WN})}; Bp3=function(F,J,b){if(F.qf.length)for(var I=g.N(F.qf),u=I.next(),w={};!u.done;w={C$:void 0},u=I.next()){w.C$=u.value;u=w.C$.startSecs*1E3;var M=w.C$.Bg*1E3+u;if(J>u&&J<M||b>u&&b<M)return Bc(F.y6,function(q){return function(v){return v.identifier===q.C$.identifier}}(w))||(F.Ck({adskip:J}),F.y6.push(w.C$)),w.C$}}; ZB=function(F){F.WN=!1;F.Gj.isActive()&&PNz(F);F.Gj.stop();F.rk(!1)}; nx4=function(){g.n9.apply(this,arguments)}; Ln4=function(F,J,b){g.R.call(this);var I=this;this.api=F;this.timeline=J;this.playback=b;this.xZ=new Map;this.iF=new Map;this.zp=new Map;this.events=new g.s5(this);this.x_=0;this.Ny=this.GF="";this.A7=[];this.JD=new Set;this.xi=new g.ty(function(){I.api.playVideo(1,I.api.S("html5_ssap_keep_media_on_finish_segment"));I.api.UQ("ssap",{nve:""+I.GF});txz(I,4)},3E4); this.al="";this.g5=new Set;this.AL=!0;this.Fm=new Map;this.dS=new Set;this.UF=this.OA=!1;this.XP="";this.Lo=null;this.Po={svQ:function(){return I.iF}, t9:function(u){if(u=I.iF.get(u))I.onCueRangeEnter(u)}, onCueRangeEnter:function(u){I.onCueRangeEnter(u)}, L5G:function(){return I.OA}}; this.playback.getPlayerType();ZZY(this);J.T=void 0;this.events.B(this.api,g.u6("ssap"),this.onCueRangeEnter);this.events.B(this.api,"internalAbandon",this.ID);this.api.S("html5_ssap_timeline_handle_error_and_abandon")&&this.events.B(this.api,"presentingplayerstatechange",this.hh);g.k(this,this.xi);this.zsv=g.eB(F.J().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.OS=F.S("html5_disable_ssap_append_pause");this.OA=HZ7(this)}; Frv=function(F,J,b,I){for(var u=g.N(I),w=u.next();!w.done;w=u.next()){var M=w.value;M.U||((w=hd(M),M=M.getVideoData(),w&&M&&F.playback.wD.Db().g2(w,M,2),M)?w||(M=void 0,F.api.UQ("ssap",{macac:w,maccc:(M=F.timeline.C)==null?void 0:hd(M)})):(M=void 0,F.api.UQ("ssap",{mvac:w,mvcc:(M=F.timeline.C)==null?void 0:hd(M)})))}return cy(F.timeline,J,b,I)}; bs3=function(F,J){if(!F.JD.has(F.GF)){var b=0,I=0,u=bm(F.timeline,F.GF);if(u==null?0:u.length)for(u=g.N(u),u=u.next();!u.done;u=u.next()){I=u.value;b=I.Ez();I=I.jo();break}if(!(I>0&&I>J*1E3+F.zsv)&&(I=JlG(F,b))){J=!1;b=void 0;I=g.N(I.segments);for(u=I.next();!u.done;u=I.next()){u=u.value;if(J){b=u;break}hd(u)===F.GF&&(J=!0)}I=void 0;if(b)I=hd(b);else if(J){var w;I=(w=F.timeline.C)==null?void 0:hd(w)}if(I)F.finishSegmentByCpn(F.GF,I,2,void 0);else{var M;F.api.UQ("ssap",{mfnc:1,mfncc:(M=F.timeline.C)== null?void 0:hd(M)})}}}}; HZ7=function(F){return F.api.S("html5_force_ssap_gapful_switch")||F.api.S("html5_ssap_enable_legacy_browser_logic")&&!Qh()}; wbo=function(F,J,b,I){F.zp.set(J,I);IKC(F,J,b);urz(F,b)}; V5=function(F,J){F=bm(F.timeline,J);return(F==null?0:F.length)?F[0].Ez():0}; Pl=function(F,J){var b=b===void 0?!1:b;var I=F.timeline.C;if(!I)return{clipId:"",ac:0};var u=MFk(F,J,b);if(u)return{clipId:hd(u)||"",ac:u.Ez()};F.api.UQ("mci",{cs:hd(I),mt:J,tl:iz(F),invt:!!b});return{clipId:"",ac:0}}; LS=function(F){var J=F.timeline.C;if(!J)return 0;F=0;if(J.C.size===0)return(J.jo()-J.Ez())/1E3;J=J.C.values();J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())I=I.value,F+=(I.jo()-I.Ez())/1E3}return F}; qA3=function(F,J){return(F=Ala(F,J*1E3))?F.Ez():0}; vtG=function(F,J){var b=bm(F.timeline,J);J=0;if(b==null?0:b.length)for(F=g.N(b),b=F.next();!b.done;b=F.next())b=b.value,J+=(b.jo()-b.Ez())/1E3;else return LS(F);return J}; Ala=function(F,J){if(F=bm(F.timeline,F.GF)){F=g.N(F);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.Ez()<=J&&b.jo()>=J)return b}}; aKz=function(F){var J=F.playback.getVideoData();F.GF&&(F=F.xZ.get(F.GF))&&(J=F);return J}; JlG=function(F,J,b){b=b===void 0?!1:b;var I=F.timeline.C;if(I){I=I.C;var u=Array.from(I.keys());g.vW(u);J=g.AL(u,J);J=I.get(u[J<0?(J+2)*-1:J]);if(!b&&J){b=g.N(J);for(J=b.next();!J.done;J=b.next())if(J=J.value,J.Ez()!==J.jo())return J;return F.timeline}return J&&J.length>0?J[J.length-1]:void 0}}; MFk=function(F,J,b){b=b===void 0?!1:b;var I=JlG(F,J,b);if(I){if(F=I.segments,F.length){for(var u=g.N(F),w=u.next();!w.done;w=u.next())if(w=w.value,w.Ez()<=J&&w.jo()>J)return w;if(b&&I.Ez()===I.jo())return F[0]}}else F.api.UQ("ssap",{ctnf:1})}; txz=function(F,J){var b;if(F.al)for(b=F.A7.shift();b&&b!==F.al;)b=F.A7.shift();else b=F.A7.shift();if(b){if(F.JD.has(b))eI3(F,b);else if(J===3||J===4)F.xi.stop(),F.api.playVideo(1,F.api.S("html5_ssap_keep_media_on_finish_segment"));F.zp.set(F.GF,J);F.api.UQ("ssap",{onvftn:1});urz(F,b);return!1}F.api.UQ("ssap",{onvftv:1});F.xi.stop();return!0}; eI3=function(F,J){J=bm(F.timeline,J);if(J==null?0:J.length)F.api.pauseVideo(),F.xi.start(J[0].Gg)}; urz=function(F,J){var b=F.playback.getVideoData(),I=b.clientPlaybackNonce;F.Lo&&(F.events.iX(F.Lo),F.Lo=null,F.playback.oO());var u=F.GF,w=!1;if(u==="")u=I,w=!0;else if(u===void 0){var M=F.playback.wD.Db().UV;M&&F.timeline.U.has(M)&&(u=M);F.api.UQ("ssap",{mcc:u+";"+J});F.playback.je(new E5("ssap.timelineerror",{e:"missing_current_cpn",pcpn:u,ccpn:J}))}if(u===J)w&&b&&Kr_(F,b,w);else{M=F.zp.get(u);if(!w&&(!M||M!==3&&M!==5&&M!==6&&M!==7)){var q=F.api.ey(F.GF);F.api.UQ("ssap",{nmec:q,cpc:F.GF,ec:J})}M&& M!==2||F.g_();F.GF=J;F.g_();J=bm(F.timeline,F.GF);if(J==null?0:J.length){J=J[0];q=J.getType();u!==I&&(F.Ny=u,b=F.xZ.get(u));M?F.zp.delete(u):M=w?1:2;F.api.S("html5_ssap_pacf_qoe_ctmp")&&q===2&&!J.U&&(F.Lo=F.events.B(F.api,"onVideoProgress",F.kUz));F.api.UQ("ssapt",{ostro:M,pcpn:u,ccpn:F.GF});a:{var v=F.GF;if(!F.iF.has(v))for(var a=g.N(F.iF),e=a.next();!e.done;e=a.next()){var K=g.N(e.value);e=K.next().value;K=K.next().value;if(K.getId().includes(v)){v=e;break a}}}e=v;a=F.api.J().S("html5_ssap_insert_su_before_nonvideo")&& e!==F.GF;K=F.playback.wD.Db();if(K.UV!==e){var p=K.zF(K.UV);v=K.zF(e);K.UV=e;v!==p&&(p.qoe&&(e=p.qoe,e.provider.rD.hJ()&&e.UQ("ssap",{qoesus:"1",vid:e.provider.videoData.videoId}),a&&(a=g.dr(e.provider),dUY(e,a,"SU")),isNaN(e.W)||g.ii(e.W)),v.resume())}a=Math.max(0,Mp(F,u));v=F.playback.getCurrentTime();e=Math.max(0,v-V5(F,F.GF)/1E3);v=J.getVideoData();K=M===3||M===5||M===6||M===7;F.api.S("html5_ssap_skip_illegal_seeking")&&(p=F.playback.getPlayerState(),p=!g.x(p,8)&&g.x(p,16),K=K||p,p&&F.api.UQ("ssap", {iis:1}));p=F.playback;var m=u,y=F.GF,f=F.playback.getPlayerState();p.wD.Db().wS(m,y,a,e,!1,K,f,!0);F.api.UQ("ssapt",{ostri:M,pcpn:u,ccpn:F.GF});var d;a=u;e=F.GF;K=(d=F.Fm.get(u))!=null?d:(0,g.jR)();hq7(a,e,I,v,K,b);F.Fm.delete(u);w?b=void 0:b||F.api.UQ("ssap",{pvdm:u+";"+F.GF,pvdmc:F.GF===I?"1":"0"});F.api.UQ("ssap",{tpac:u+";"+F.GF,tpcc:I,tpv:(v==null?0:v.o8())?"1":"0"},!1,1);F.api.J().S("html5_ssap_cleanup_player_switch_ad_player")&&F.api.yW();F.api.publish("videodatachange","newdata",v,q,b,M); J.U||F.playback.getVideoData().publish("dataupdated");F.JD.delete(u);F.al="";v&&q===1?Kr_(F,v):F.playback.UQ("ssap",{nis:F.GF});q===2?F.x_++:F.x_=0}}}; Kr_=function(F,J,b){b=b===void 0?!1:b;if(J.startSeconds&&F.AL){var I=J.startSeconds;J=bm(F.timeline,J.clientPlaybackNonce);if(J==null?0:J.length)I+=J[0].Ez()/1E3,F.api.S("htm5_ssap_ignore_initial_seek_if_too_big")&&I>=F.Lt()||(F.playback.seekTo(I,{Ki:!0}),F.AL=!1,F.playback.UQ("ssap",{is:F.GF,co:b?"1":"0",tse:I.toFixed()}))}}; IKC=function(F,J,b){J=bm(F.timeline,J);if(J!=null&&J.length&&(J=JlG(F,J[0].Ez()))){J=g.N(J.segments);for(var I=J.next();!I.done;I=J.next()){I=I.value;if(hd(I)===b)break;if(I=hd(I)){var u=F.iF.get(I);u&&F.playback.removeCueRange(u);F.iF.delete(I)}}}}; B0=function(F){return F.playback.getVideoData().clientPlaybackNonce}; sZk=function(F,J){if(F.OA&&F.GF!==J)return!1;if(F.OS)return!0;if(J=F.iF.get(J))if(J=J.getId().split(","),J.length>1)for(var b=0;b<J.length;b++){var I=b<J.length-1?J[b+1]:"";if(F.JD.has(J[b]))return J[b]===F.GF&&!F.JD.has(I)}return!0}; HjJ=function(F,J,b){MFk(F,J)||F.playback.UQ("ssap",{ilgsk:J.toFixed(),mep:b?"1":"0",tl:iz(F)})}; Mp=function(F,J){J=J||F.GF;var b=F.xZ.get(J);return b?b.KW:J!==B0(F)?0:F.playback.getVideoData().KW}; iz=function(F){var J=F.GF;J||(J=F.playback.getVideoData().clientPlaybackNonce);var b,I,u=Array.from((I=(b=F.timeline.C)==null?void 0:b.C.values())!=null?I:[]);b=[];if(u==null?0:u.length)for(I=g.N(u),u=I.next();!u.done;u=I.next())if(u=u.value,u.length&&u[0]&&(u=u[0].segments,u.length)){u=g.N(u);for(var w=u.next();!w.done;w=u.next()){var M=w.value;w="st."+M.Ez()+";";w+="et."+M.jo()+";";var q=hd(M);q&&(w+="cpn."+q+";",w+="a."+(J===q?1:0)+";");if(M=M.getVideoData())q=void 0,w+="vid."+((q=M.videoId)!= null?q:"nvd");b.push(w)}}return(b.length?b.join(","):"empty."+J)+";cpcpn."+F.h4()}; ZZY=function(F){F.playback.hc(Array.from(F.iF.values()));F.iF.clear()}; gtz=function(F,J,b,I){g.R.call(this);var u=this;this.api=F;this.rD=J;this.C=b;this.app=I;this.D=new Map;this.U=[];this.T=this.V=null;this.Tj=NaN;this.W=this.Z=this.N=null;this.Y=new g.ty(function(){pbv(u,u.Tj,u.N||void 0)}); this.eE=[];this.Gj=new g.ty(function(){var w=u.eE.pop();if(w){var M=w.r9,q=w.playerVars;w=w.playerType;q&&(q.prefer_gapless=!0,u.api.preloadVideoByPlayerVars(q,w,NaN,"",M),u.eE.length&&g.Z_(u.Gj,4500))}}); this.events=new g.s5(this);this.Po={UPN:function(){return u.U}}; this.C.getPlayerType();g.k(this,this.Y);g.k(this,this.Gj);g.k(this,this.events);this.events.B(this.api,g.u6("childplayback"),this.onCueRangeEnter);this.events.B(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.B(this.api,"presentingplayerstatechange",this.hh)}; zI4=function(F,J,b,I,u,w){var M=J.cpn,q=J.docid||J.video_id||J.videoId||J.id,v=F.C;w=w===void 0?u+I:w;if(u>w)return AU(F,"enterAfterReturn enterTimeMs="+u+" is greater than parentReturnTimeMs="+w.toFixed(3),M,q),"";var a=v.Ho()*1E3;if(u<a)return AU(F,"enterBeforeMinSeekable enterTimeMs="+u+" is less than parentMinSeekableTimeMs="+a,M,q),"";a=v.getDuration()*1E3;if(w>a)return v="returnAfterDuration parentReturnTimeMs="+w.toFixed(3)+" is greater than parentDurationMs="+a+". And timestampOffset in seconds is "+ v.Xq(),AU(F,v,M,q),"";a=null;for(var e=g.N(F.U),K=e.next();!K.done;K=e.next()){K=K.value;if(u>=K.V2&&u<K.Xd)return AU(F,"overlappingEnter",M,q),"";if(w<=K.Xd&&w>K.V2)return AU(F,"overlappingReturn",M,q),"";if(w===K.V2)return AU(F,"outOfOrder",M,q),"";u===K.Xd&&(a=K)}M="cs_childplayback_"+m3m++;q={Os:qp(I,!0),Pu:Infinity,target:null};var p={r9:M,playerVars:J,playerType:b,durationMs:I,V2:u,Xd:w,vn:q};F.U=F.U.concat(p).sort(function(f,d){return f.V2-d.V2}); a?ylJ(F,a,{Os:qp(a.durationMs,!0),Pu:a.vn.Pu,target:p}):(J={Os:qp(u,!1),Pu:u,target:p},F.D.set(J.Os,J),v.addCueRange(J.Os));J=!0;if(F.C===F.app.F_()&&(v=v.getCurrentTime()*1E3,v>=p.V2&&v<p.Xd)){var m=F.app.F_().getPlayerState(),y=v-p.V2;Ic(function(){isa(F,p,y/1E3,{},m)}); J=!1}J&&(F.eE.unshift(p),g.Z_(F.Gj,0));return M}; qp=function(F,J){return new g.b6(Math.max(0,F-5E3),J?0x8000000000000:F-1,{namespace:"childplayback",priority:9})}; NnJ=function(F,J,b,I){F.T=I;F.api.VY(F.C,b,J)}; lKY=function(F,J,b,I){F.T=I;I=J.r9;var u=J.playerVars,w=J.playerType;F.V=J;u&&(F.rD.S("html5_enable_ssap_entity_id")&&(u.cached_load=!0),F.api.enqueueVideoByPlayerVars(u,w,b,I))}; ylJ=function(F,J,b){var I=J.vn;J.vn=b;vh(F,J)&&(b=F.app.F_(),I.Os===F.T&&az(F),b.removeCueRange(I.Os),b.addCueRange(J.vn.Os))}; az=function(F){F.V=null;F.T=null;F.api.W9()||F.api.clearQueue()}; fK4=function(F,J){vh(F,J)||AU(F,"childPlaybackIsNotPresenting");return J.Xd===J.V2+J.durationMs?J.V2+F.app.F_().getCurrentTime()*1E3:J.Xd}; Wr7=function(F,J){var b=0;F=g.N(F.U);for(var I=F.next();!I.done;I=F.next()){I=I.value;var u=I.V2/1E3+b,w=u+I.durationMs/1E3;if(u>J)break;if(w>J)return{MQ:I,K3:J-u};b=w-I.Xd/1E3}return{MQ:null,K3:J-b}}; pbv=function(F,J,b){b=b===void 0?{}:b;var I=F.W||F.app.F_().getPlayerState();ee(F,!0);J=isFinite(J)?J:F.C.z8();var u=Wr7(F,J);J=u.K3;var w=(u=u.MQ)&&!vh(F,u)||!u&&F.C!==F.app.F_(),M=J*1E3;M=F.T&&F.T.start<=M&&M<=F.T.end;!w&&M||az(F);u?isa(F,u,J,b,I):d3z(F,J,b,I)}; d3z=function(F,J,b,I){var u=F.C;u!==F.app.F_()&&F.app.Hk();u.seekTo(J,Object.assign({},{Ky:"application_timelinemanager"},b));Etz(F,I)}; isa=function(F,J,b,I,u){var w=vh(F,J);if(!w){J.playerVars.prefer_gapless=!0;F.rD.S("html5_enable_ssap_entity_id")&&(J.playerVars.cached_load=!0);var M=new g.RH(F.rD,J.playerVars);M.r9=J.r9;F.api.Ml(M,J.playerType)}M=F.app.F_();w||M.addCueRange(J.vn.Os);M.seekTo(b,Object.assign({},{Ky:"application_timelinemanager"},I));Etz(F,u)}; Etz=function(F,J){F=F.app.F_();var b=F.getPlayerState();J.isOrWillBePlaying()&&!b.isOrWillBePlaying()?F.playVideo():J.isPaused()&&!b.isPaused()&&F.pauseVideo()}; ee=function(F,J){F.Tj=NaN;F.N=null;F.Y.stop();F.Z&&J&&F.Z.P2();F.W=null;F.Z=null}; vh=function(F,J){F=F.app.F_();return!!F&&F.getVideoData().r9===J.r9}; j54=function(F){var J=F.U.find(function(u){return vh(F,u)}); if(J){var b=F.app.F_();az(F);var I=new g.FC(8);J=fK4(F,J)/1E3;d3z(F,J,{},I);b.UQ("forceParentTransition",{childPlayback:1});F.C.UQ("forceParentTransition",{parentPlayback:1})}}; VFo=function(F,J,b){J=J===void 0?-1:J;b=b===void 0?Infinity:b;for(var I=J,u=b,w=g.N(F.D),M=w.next();!M.done;M=w.next()){var q=g.N(M.value);M=q.next().value;q=q.next().value;q.Pu>=I&&q.target&&q.target.Xd<=u&&(F.C.removeCueRange(M),F.D.delete(M))}I=J;u=b;w=[];M=g.N(F.U);for(q=M.next();!q.done;q=M.next())if(q=q.value,q.V2>=I&&q.Xd<=u){var v=F;v.V===q&&az(v);vh(v,q)&&v.app.Hk()}else w.push(q);F.U=w;I=Wr7(F,J/1E3);J=I.MQ;I=I.K3;J&&(I*=1E3,GYa(F,J,I,J.Xd===J.V2+J.durationMs?J.V2+I:J.Xd));(J=Wr7(F,b/1E3).MQ)&& AU(F,"Invalid clearEndTimeMs="+b+" that falls during playback={timelinePlaybackId="+(J.r9+" video_id="+J.playerVars.video_id+" durationMs="+J.durationMs+" enterTimeMs="+J.V2+" parentReturnTimeMs="+J.Xd+"}.Child playbacks can only have duration updated not their start."))}; GYa=function(F,J,b,I){J.durationMs=b;J.Xd=I;I={Os:qp(b,!0),Pu:b,target:null};ylJ(F,J,I);vh(F,J)&&F.app.F_().getCurrentTime()*1E3>b&&(J=fK4(F,J)/1E3,b=F.app.F_().getPlayerState(),d3z(F,J,{},b))}; AU=function(F,J,b,I){F.C.UQ("timelineerror",{e:J,cpn:b?b:void 0,videoId:I?I:void 0})}; BnC=function(F){F&&F!=="web"&&PZ7.includes(F)}; gh=function(F,J){g.R.call(this);var b=this;this.data=[];this.T=F||NaN;this.U=J||null;this.C=new g.ty(function(){Ke(b);pe(b)}); g.k(this,this.C)}; Tn4=function(F){Ke(F);return F.data.map(function(J){return J.value})}; Ke=function(F){var J=(0,g.jR)();F.data.forEach(function(b){b.expire<J&&mW(F,b,!0)}); F.data=g.qN(F.data,function(b){return!(b.expire<J)})}; mW=function(F,J,b){b&&F.U&&F.U(J.value)}; pe=function(F){F.C.stop();var J=Infinity;for(var b=g.N(F.data),I=b.next();!I.done;I=b.next())I=I.value,I.expire<J&&(J=I.expire);J&&isFinite(J)&&(J=Math.max(J-Date.now(),100),F.C.start(J))}; yd=function(){g.R.call(this);this.C=new gh(5,null);g.k(this,this.C);this.U=new gh(15,null);g.k(this,this.U)}; VLv=function(F,J){return J?!!F.C.get(J):!1}; rlC=function(F,J){F.dataset.version=J}; YAa=function(F){g.U.call(this,{X:"div",Dv:["html5-video-player"],L:{tabindex:F.J().disableOrganicUi?"":"-1",id:F.webPlayerContextConfig?F.webPlayerContextConfig.rootElementId:F.config.attrs.id},j:[{X:"div",K:g.QA.VIDEO_CONTAINER,L:{"data-layer":"0"}}]});var J=this;this.app=F;this.N1=this.RI(g.QA.VIDEO_CONTAINER);this.n_=new g.uu(0,0,0,0);this.UI=null;this.zN=new g.uu(0,0,0,0);this.DF=this.zq=this.hq=NaN;this.Sh=this.HG=this.DE=this.ij=!1;this.JU=NaN;this.Gq=!1;this.Kx=null;this.Ds=function(){J.element.focus({preventScroll:!0})}; this.Zz=function(){J.app.SE.publish("playerUnderlayVisibilityChange","visible");J.UI.classList.remove(g.QA.VIDEO_CONTAINER_TRANSITIONING);J.UI.removeEventListener(uX,J.Zz);J.UI.removeEventListener("transitioncancel",J.Zz)}; var b=this.element.addEventListener,I=this.element.removeEventListener;this.addEventListener=function(w,M,q){b.apply(J.element,[w,M,q])}; this.removeEventListener=function(w,M,q){I.apply(J.element,[w,M,q])}; var u=F.J();u.transparentBackground&&this.EW("ytp-transparent");u.controlsType==="0"&&this.EW("ytp-hide-controls");g.uG(this.element,"ytp-exp-bottom-control-flexbox");g.uG(this.element,"ytp-modern-caption");u.S("enable_new_paid_product_placement")&&!g.U7(u)&&g.uG(this.element,"ytp-exp-ppp-update");u.S("html5_enable_ssap")&&g.uG(this.element,"ytp-ssap");g.uG(this.element,"ytp-livebadge-color");u.S("delhi_modern_web_player")&&g.uG(this.element,"ytp-delhi-modern");rlC(this.element,SAa(F));this.WU=!1; this.gG=new g.gl(NaN,NaN);s5z(this);this.B(F.SE,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; s5z=function(F){function J(){F.UI&&iK(F);z3(F)!==F.Gq&&F.resize()} function b(M,q){F.xR(M,q)} function I(M){M.getVideoData()&&F.updateVideoData(M.getVideoData())} function u(){F.zN=new g.uu(0,0,0,0);F.n_=new g.uu(0,0,0,0)} var w=F.app.SE;w.addEventListener("initializingmode",u);w.addEventListener("videoplayerreset",I);w.addEventListener("videodatachange",b);w.addEventListener("presentingplayerstatechange",J);F.addOnDisposeCallback(function(){w.removeEventListener("initializingmode",u);w.removeEventListener("videoplayerreset",I);w.removeEventListener("videodatachange",b);w.removeEventListener("presentingplayerstatechange",J)})}; CZ7=function(F){var J=F.app.F_(),b=J=J?J.getVideoData():null;if(J==null?0:g.oH(J))b=F.app.SE.getVideoData();if(b){if(g.ji(b)||g.Ge(b)||g.VR(b))return 16/9;if(HC(b)&&b.T.C)return F=b.T.videoInfos[0].video,$3k(F.width,F.height)}return(F=F.UI)?$3k(F.videoWidth,F.videoHeight):16/9}; Xb7=function(F,J,b,I){var u=b,w=$3k(J.width,J.height);F.ij?u=b<w?Infinity:0:isNaN(F.DF)?isNaN(F.zq)||(u=F.zq):u=F.DF;isFinite(u)||(u=Math.max(b,w));F=u>w?{width:J.width,height:J.width/u,aspectRatio:u}:u<w?{width:J.height*u,height:J.height,aspectRatio:u}:{width:J.width,height:J.height,aspectRatio:w};I||isNaN(b)||(b>u?F.width=F.height*b:b<u&&(F.height=F.width/b),F.aspectRatio=b);return F}; $3k=function(F,J){return Math.abs(Q5Y*J-F)<1||Math.abs(Q5Y/F-J)<1?Q5Y:F/J}; z3=function(F){if(F.app.getAppState()===1)return!1;if(F.app.getAppState()===6)return!0;var J=F.app.F_();if(!J||J.Bx())return!1;F=F.app.SE.getPlayerStateObject();J=!g.x(F,2)||J&&J.getVideoData().Y;var b=g.x(F,1024);return F&&J&&!b&&!F.isCued()}; iK=function(F){var J=F.app.J().controlsType==="3"&&!F.Sh&&z3(F)&&!F.app.f_||!1;F.UI.controls=J;F.UI.tabIndex=J?0:-1;F.app.J().Z&&(F.UI.ariaHidden=J||F.app.J().S("video_element_aria_hidden_ks")?"false":"true");J?F.UI.removeEventListener("focus",F.Ds):F.UI.addEventListener("focus",F.Ds)}; RIv=function(F){var J=F.lk(),b=1,I=!1,u=Xb7(F,J,F.getVideoAspectRatio()),w=F.app.J(),M=w.S("enable_desktop_player_underlay"),q=WUa(),v=g.eB(w.experiments,"player_underlay_min_player_width");v=M&&F.DE&&F.getPlayerSize().width>v;if(z3(F)){var a=CZ7(F);var e=isNaN(a)||g.c$||xi&&g.ia||v;hY&&!g.iV(601)?a=u.aspectRatio:e=e||w.controlsType==="3";e?v?(e=w.S("place_shrunken_video_on_left_of_player")?16:F.getPlayerSize().width-J.width-16,a=Math.max((F.getPlayerSize().height-J.height)/2,0),e=new g.uu(e,a,J.width, J.height),F.UI.style.setProperty("border-radius","12px")):e=new g.uu(0,0,J.width,J.height):(b=u.aspectRatio/a,e=new g.uu((J.width-u.width/b)/2,(J.height-u.height)/2,u.width/b,u.height),b===1&&g.ia&&(a=e.width-J.height*a,a>0&&(e.width+=a,e.height+=a)));g.qr(F.element,"ytp-fit-cover-video",Math.max(e.width-u.width,e.height-u.height)<1);if(q||F.WU)F.UI.style.display="";F.Gq=!0}else{e=-J.height;hY?e*=window.devicePixelRatio:g.x2&&(e-=window.screen.height);e=new g.uu(0,e,J.width,J.height);if(q||F.WU)F.UI.style.display= "none";F.Gq=!1}qB(F.zN,e)||(F.zN=e,g.TB(w)?(F.UI.style.setProperty("width",e.width+"px","important"),F.UI.style.setProperty("height",e.height+"px","important")):g.lu(F.UI,e.getSize()),I=new g.K$(e.left,e.top),g.yf(F.UI,Math.round(I.x),Math.round(I.y)),I=!0);J=new g.uu((J.width-u.width)/2,(J.height-u.height)/2,u.width,u.height);qB(F.n_,J)||(F.n_=J,I=!0);g.aN(F.UI,"transform",b===1?"":"scaleX("+b+")");M&&v!==F.HG&&(v&&(F.UI.addEventListener(uX,F.Zz),F.UI.addEventListener("transitioncancel",F.Zz),F.UI.classList.add(g.QA.VIDEO_CONTAINER_TRANSITIONING)), F.HG=v,F.app.SE.publish("playerUnderlayVisibilityChange",F.HG?"transitioning":"hidden"));return I}; D3a=function(){this.csn=g.W8();this.clientPlaybackNonce=null;this.elements=new Set;this.T=new Set;this.C=new Set;this.U=new Set}; kYz=function(F){if(F.csn!==g.W8())if(F.csn==="UNDEFINED_CSN")F.csn=g.W8();else{var J=g.W8(),b=g.fO();if(J&&b){F.csn=J;for(var I=g.N(F.elements),u=I.next();!u.done;u=I.next())(u=u.value.visualElement)&&u.isClientVe()&&J&&b&&(g.Nk("combine_ve_grafts")?fa(N7(),u,b):g.tE(g.oO)(void 0,J,b,u))}if(J)for(F=g.N(F.C),b=F.next();!b.done;b=F.next())(b=b.value.visualElement)&&b.isClientVe()&&g.H8(J,b)}}; g.Np=function(F,J,b,I){g.R.call(this);var u=this;this.logger=new g.Hl("App");this.f_=this.FY=!1;this.tB={};this.UA=[];this.yn=!1;this.mf=null;this.intentionalPlayback=!1;this.fB=!0;this.Q0=!1;this.Rb=this.Aq=null;this.QR=!0;this.mediaElement=this.AJ=null;this.hE=NaN;this.Ry=!1;this.m1=this.pX=this.II=this.jF=this.screenLayer=this.playlist=null;this.e0=[];this.EF=0;this.Po={v8N:function(){return u.z0}, IH:function(){return u.II}, pQ:function(M){u.II=M}, Cn:function(M,q){u.II&&u.II.Cn(M,q)}}; this.logger.debug("constructor begin");this.config=nQm(J||{});this.webPlayerContextConfig=b;qJC();J=this.config.args||{};this.rD=new X_(J,b,b?b.canaryState:this.config.assets.player_canary_state,I,this);g.k(this,this.rD);Npz(this.rD);I=f3m(this.rD);this.rD.hJ()&&this.e0.push({key:"h5vcc",value:I});this.rD.experiments.pW("jspb_serialize_with_worker")&&o6m();this.rD.experiments.pW("gzip_gel_with_worker")&&Yko();this.rD.U&&!OsJ&&(window.addEventListener(lb?"touchstart":"click",t_7,{capture:!0,passive:!0}), OsJ=!0);this.S("html5_onesie")&&(this.GV=new G6(this.rD),g.k(this,this.GV));this.q7=JC(j8(this.rD)&&!0,J.enablesizebutton);this.u5=JC(!1,J.player_wide);this.visibility=new pZm;g.k(this,this.visibility);this.S("web_log_theater_mode_visibility")&&this.Wp(JC(!1,J.player_wide));this.FY=JC(!1,J.external_list);this.events=new g.s5(this);g.k(this,this.events);this.S("start_client_gcf")&&(Gf(Tf(),{lE:MK,fS:u$Y()}),this.bv=Tf().resolve(MK),AE4(this.bv));this.ae_=new MZ;g.k(this,this.ae_);this.sT=new D3a;I= new Aa;this.SE=new g.ly(this,I);g.k(this,this.SE);this.template=new YAa(this);g.k(this,this.template);this.appState=1;this.wg=ot3(this);g.k(this,I);I={};this.XQ=(I.internalvideodatachange=this.wz,I.playbackready=this.jfQ,I.playbackstarted=this.nm_,I.statechange=this.a7W,I);this.Nr=new ld(this.SE);this.HV=hIk(this);I=this.S("html5_load_wasm");J=this.S("html5_allow_asmjs");if(I&&clz||J)this.rD.Lv=$2J(this.HV,J),q7(A8(this.rD.Lv,function(M){u.rD.PV=M;var q;(q=u.F_())==null||q.UQ("wasm",{a:M.xf})}),function(M){g.rQ(M); M="message"in M&&M.message||M.toString()||"";var q;(q=u.F_())==null||q.UQ("wasm",{e:M})}); else if(I&&!clz){var w;(w=this.F_())==null||w.UQ("wasm",{e:"wasm unavailable"})}this.qW=new On3(this.rD,this.HV);this.SE.publish("csiinitialized");w=10;g.jB(this.rD)&&(w=3);cu(this.rD)&&(w=g.eB(this.rD.experiments,"tvhtml5_unplugged_preload_cache_size"));w=new gh(w,function(M){M!==u.F4(M.getPlayerType())&&xU(M)}); g.k(this,w);this.z0=new gx3(w,{});w=U33(this);this.z0.uM(w.P0);x3_(this);w={};this.Af=(w.airplayactivechange=this.onAirPlayActiveChange,w.airplayavailabilitychange=this.onAirPlayAvailabilityChange,w.beginseeking=this.TT,w.sabrCaptionsDataLoaded=this.Yc,w.endseeking=this.Pv,w.internalAbandon=this.ID,w.internalaudioformatchange=this.dC,w.internalvideodatachange=this.onVideoDataChange,w.internalvideoformatchange=this.K_,w.liveviewshift=this.VeQ,w.playbackstalledatstart=this.N9I,w.progresssync=this.udN, w.onAbnormalityDetected=this.Ir,w.onSnackbarMessage=this.onSnackbarMessage,w.onLoadProgress=this.onLoadProgress,w.SEEK_COMPLETE=this.hI,w.SEEK_TO=this.ooR,w.onVideoProgress=this.onVideoProgress,w.onLoadedMetadata=this.onLoadedMetadata,w.onAutoplayBlocked=this.onAutoplayBlocked,w.onPlaybackPauseAtStart=this.NYQ,w.playbackready=this.IyQ,w.statechange=this.jU,w.newelementrequired=this.ER,w.heartbeatparams=this.Nq,w.videoelementevent=this.X8,w.drmoutputrestricted=this.onDrmOutputRestricted,w.signatureexpired= this.agQ,w.nonfatalerror=this.jC_,w.reloadplayer=this.qsE,w);this.Qt=new g.s5(this);g.k(this,this.Qt);this.S$=new yd;g.k(this,this.S$);this.Dw=this.BY=-1;this.Co=new g.ty(this.template.resize,16,this.template);g.k(this,this.Co);this.xl=new gtz(this.SE,this.rD,this.Nf(),this);this.wf=new oQ(this.rD);this.s2=new k3(this);g.k(this,this.s2);this.Nm=new Xi(this);g.k(this,this.Nm);BnC(this.rD.C.c);this.events.B(this.SE,g.u6("appapi"),this.yJG);this.events.B(this.SE,g.wq("appapi"),this.pb_);this.events.B(this.SE, g.u6("appprogressboundary"),this.s8D);this.events.B(this.SE,g.wq("applooprange"),this.eL);this.events.B(this.SE,"presentingplayerstatechange",this.hh);this.events.B(this.SE,"resize",this.MFR);this.template.Az(Rf(document,F));this.events.B(this.SE,"offlineslatestatechange",this.ayN);this.events.B(this.SE,"sabrCaptionsTrackChanged",this.tFR);this.events.B(this.SE,"sabrCaptionsBufferedRangesUpdated",this.K1E);this.HV.G.J().B9&&$0(this.HV,"offline");this.rD.bR&&g.jn("ux",g.$3);F=g.eB(this.rD.experiments, "html5_defer_fetch_att_ms");this.rQ=new g.ty(this.IeQ,F,this);g.k(this,this.rQ);this.Yl().o8()&&(g.Yq()&&this.Yl().kQ.push("remote"),ntC(this));this.qW.tick("fs");tFk(this);this.rD.bR&&$0(this.HV,"ux",!0);g.dN(this.HV.G.J())&&$0(this.HV,"embed");this.S("web_player_sentinel_is_uniplayer")||g.rQ(new g.hC("Player experiment flags missing","web_player_sentinel_is_uniplayer"));F=this.S("web_player_sentinel_yt_experiments_sync");w=g.Nk("web_player_sentinel_yt_experiments_sync");F!==w&&g.rQ(new g.hC("b/195699950", {yt:F,player:w}));b||g.rQ(new g.hC("b/179532961"));this.sf=ZsY(this);if(b=g.eB(this.rD.experiments,"html5_block_pip_safari_delay"))this.HL=new g.ty(this.Wy,b,this),g.k(this,this.HL);SN=this.rD.MI;b=g.eB(this.rD.experiments,"html5_performance_impact_profiling_timer_ms");b>0&&(this.w1=new g.fu(b),g.k(this,this.w1),this.events.B(this.w1,"tick",function(){u.UB&&Hs7.Gy("apit",u.UB);u.UB=Hs7.EA()})); this.SE.publish("applicationInitialized");this.logger.debug("constructor end")}; ZsY=function(F){function J(b){b.stack&&b.stack.indexOf("player")!==-1&&(F.F_()||F.Nf()).Wv(b)} SQ.subscribe("handleError",J);xD.push(J);return function(){SQ.unsubscribe("handleError",J);var b=xD.indexOf(J);b!==-1&&xD.splice(b,1)}}; U33=function(F){var J=new g.RH(F.rD,F.config.args);F.SE.publish("initialvideodatacreated",J);return g.lK(F,1,J)}; x3_=function(F){var J=F.Nf();J.setPlaybackRate(F.rD.Z?1:Lra(F,Number(g.S9("yt-player-playback-rate"))||1));J.Sn(F.XQ,F);J.XR()}; hIk=function(F){var J="",b=SAa(F);b.indexOf("//")===0&&(b=F.rD.protocol+":"+b);var I=b.lastIndexOf("/base.js");I!==-1&&(J=b.substring(0,I+1));if(b=Error().stack)if(b=b.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))b=b[1],b.includes(J)||g.rQ(Error("Player module URL mismatch: "+(b+" vs "+J+".")));J=new zQo(F.SE,J);Fvk(F,J);return J}; Fvk=function(F,J){var b={};b=(b.destroyed=function(){F.onApiChange()},b); J.T=b}; ot3=function(F){if(F.rD.storeUserVolume){F=g.S9("yt-player-volume")||{};var J=F.volume;F={volume:isNaN(J)?100:g.AD(Math.floor(J),0,100),muted:!!F.muted}}else F={volume:100,muted:F.rD.mute};return F}; fe=function(F){F.mediaElement=F.rD.deviceIsAudioOnly?new g.A2(g.H1("AUDIO")):C9.pop()||new g.A2(g.H1("VIDEO"));g.k(F,F.mediaElement);var J=F.F_();J&&J.setMediaElement(F.mediaElement);try{F.rD.Se?(F.pX&&F.events.iX(F.pX),F.pX=F.events.B(F.mediaElement,"volumechange",F.vlD)):(F.mediaElement.sA(F.wg.muted),F.mediaElement.setVolume(F.wg.volume/100))}catch(u){F.Wh("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(u&&typeof u==="object"&&"message"in u&&typeof u.message==="string"&&u.message.replace(/[;:,]/g, "_")));return}g.Ve(F.Qt);JOm(F);J=F.template;var b=F.mediaElement.Pb();J.UI=b;J.Sh=!1;J.UI.parentNode||bB(J.N1,J.UI,0);J.zN=new g.uu(0,0,0,0);RIv(J);iK(J);b=J.UI;g.uG(b,"video-stream");g.uG(b,g.QA.MAIN_VIDEO);var I=J.app.J();I.rZ&&b.setAttribute("data-no-fullscreen","true");I.S("html5_local_playsinline")?"playsInline"in VZ()&&(b.playsInline=!0):I.DY&&(b.setAttribute("webkit-playsinline",""),b.setAttribute("playsinline",""));I.fN&&J.UI&&J.B(b,"click",b.play,b);try{F.mediaElement.activate()}catch(u){F.Wh("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(u&&typeof u==="object"&&"message"in u&&typeof u.message==="string"&&u.message.replace(/[;:,]/g,"_")))}}; Ilz=function(F){if(!bha(F)){var J=F.Nf().Qa();J&&(J=J.X5(),J instanceof Promise&&J.catch(function(){})); Wh(F,qO(F.getPlayerStateObject()))}}; JOm=function(F){var J=F.mediaElement;rk()?F.Qt.B(J,"webkitpresentationmodechanged",F.F1Q):window.document.pictureInPictureEnabled&&(F.Qt.B(J,"enterpictureinpicture",function(){F.mU(!0)}),F.Qt.B(J,"leavepictureinpicture",function(){F.mU(!1)})); x6&&(F.Qt.B(J,"webkitbeginfullscreen",function(){F.wT(3)}),F.Qt.B(J,"webkitendfullscreen",function(){F.wT(0)}))}; uMa=function(F,J){var b=J.getPlayerType(),I=F.z0.F4(b);J!==F.Nf()&&J!==I&&(I==null||xU(I),F.z0.U[b]=J)}; wHG=function(F,J){J=J===void 0?!0:J;F.logger.debug("start clear presenting player");var b;if(b=F.m1){b=F.m1;var I=F.mediaElement;b=!!I&&I===b.mediaElement}b&&(F.rg(),fe(F));if(b=F.F_())b.rg(!J),b.TW(F.Af,F),b.getPlayerType()!==1&&xU(b);F.z0.T=null;F.logger.debug("finish clear presenting player")}; g.lK=function(F,J,b,I){var u=F.qW;J===2&&(u=new On3(F.rD));return new g.it(F.rD,J,u,F.template,function(w,M,q){F.SE.publish(w,M,q)},function(){return F.SE.getVisibilityState()},F.visibility,F,b,I)}; MGo=function(F,J,b,I){F=g.lK(F,J,b,I);F.XR();return F}; dh=function(F,J){return F.Uo(J)?F.Nf():J}; EK=function(F,J){var b=F.F_(),I=F.Nf();return b&&J===I&&F.Uo(J)&&F.Uo(b)?b:J}; vh_=function(F){F.logger.debug("start application playback");if(F.Nf().getPlayerState().isError())F.logger.debug("start application playback done, player in error state");else{var J=je(F);F.Yl().isLoaded();J&&F.uJ(6);AOv(F);P7m(F.HV)||qIm(F)}}; qIm=function(F){if(!je(F)){var J=XN(F.HV);J&&!J.created&&N1_(F.HV)&&(F.logger.debug("reload ad module"),J.create())}}; AOv=function(F){F.logger.debug("start presenter playback");var J=F.getVideoData(),b=F.HV;P7m(b)||b.jd();!clz&&b.G.S("html5_allow_asmjs")&&Y3G(b);$0(b,"embed");$0(b,"kids");$0(b,"remote");$0(b,"miniplayer");$0(b,"offline");$0(b,"unplugged");$0(b,"ypc",!1,!0);$0(b,"ypc_clickwrap",!1,!0);$0(b,"yto",!1,!0);$0(b,"webgl",!1,!0);B1C(b)||($0(b,"captions",!0),$0(b,"endscreen"),b.lD()||b.kO(),$0(b,"creatorendscreen",!0));b.FA();F.SE.publish("videoready",J)}; G3=function(F){F=F.Yl();F.o8();return RU(F)}; tFk=function(F){F.logger.debug("start prepare initial playback");F.Uy();var J=F.config.args;fe(F);var b=F.Yl();F.SE.SZ("onVolumeChange",F.wg);if(J&&xHv(J)){var I=k2(F.rD);I&&!F.FY&&(J.fetch=0);var u=g.dN(F.rD);u&&!F.FY&&(J.fetch=0);Vd(F,J);g.dN(F.rD)&&F.qW.tick("ep_pr_s");if(!I||F.FY)if(u&&!F.FY)alk(F);else if(!b.o8())F.playlist.onReady(function(){Ph(F)})}F.LA(F.Nf()); g.x(F.Nf().getPlayerState(),128)||(J=vyv(!F.rD.deviceIsAudioOnly),J==="fmt.noneavailable"?F.Wh("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):J==="html5.missingapi"?F.Wh(J,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):b&&b.o8()&&G3(F)&&(F.rD.IP||F.rD.D4)?Bh(F):b.jY?F.S("embeds_enable_full_length_inline_muted_autoplay")?F.SE.mutedAutoplay({durationMode:b.mutedAutoplayDurationMode}):F.SE.mutedAutoplay():g.S9("yt-player-playback-on-reload")?(g.AY("embedsItpPlayedOnReload",{playedOnReload:!0, isLoggedIn:!!F.rD.Gj}),g.rm("yt-player-playback-on-reload",!1),Bh(F)):tP(F.rD)||e3Y(F),g.hP(F.rD)||cG(F.rD)==="MWEB"?(g.tC(g.HK(),function(){T3(F)}),g.tC(g.HK(),function(){iJG()})):(T3(F),iJG()),F.logger.debug("finish prepare initial playback"))}; T3=function(F){if(!F.S("use_rta_for_player"))if(F.S("fetch_att_independently"))g.Z_(F.rQ);else{var J=F.getVideoData().botguardData;J&&g.TR(J,F.rD,F.getVideoData().vQ||"")}}; e3Y=function(F){F.logger.debug("start initialize to CUED mode");F.SE.publish("initializingmode");F.uJ(2);F.S("embeds_web_enable_defer_loading_remote_js")&&g.U7(F.rD)?g.tC(g.HK(),function(){$0(F.HV,"remote")}):$0(F.HV,"remote"); $0(F.HV,"miniplayer");F.logger.debug("initialized to CUED mode")}; Bh=function(F){F.logger.debug("start initialize application playback");var J=F.Nf();if(g.x(J.getPlayerState(),128))return!1;var b=J.getVideoData();G3(F)&&F.rD.D4&&(C9.length&&F.f_?(rh(F,{muted:!1,volume:F.wg.volume},!1),Se(F,!1)):C9.length||F.wg.muted||(rh(F,{muted:!0,volume:F.wg.volume},!1),Se(F,!0)));G3(F)&&g.dN(F.rD)&&b.mutedAutoplay&&(rh(F,{muted:!0,volume:F.wg.volume},!1),Se(F,!0));b.tE&&rh(F,{muted:!0,volume:F.wg.volume},!1);Kvk(F,1,b,!1);F.SE.publish("initializingmode");F.LA(F.Nf());F.uJ(3); var I;if(!(I=!F.rD.OM)){if(I=F.m1){I=F.m1;var u=F.mediaElement;I=!!u&&u===I.mediaElement}I=I&&F.yn}I&&(F.rg(),fe(F),J.setMediaElement(F.mediaElement));J.Df();if(g.x(J.getPlayerState(),128))return!1;b.XI||Wh(F,3);return F.yn=!0}; je=function(F){F=dO(F.HV);return!!F&&F.loaded}; pHY=function(F,J){if(!F.AJ)return!1;var b=F.AJ.startTimeMs*.001-1,I=F.AJ.endTimeMs*.001;F.AJ.type==="repeatChapter"&&I--;return Math.abs(J-b)<=1E-6||Math.abs(J-I)<=1E-6||J>=b&&J<=I}; yOa=function(F){var J=F.F_();J&&LC(J.getVideoData())&&!J.YM()&&(J=gha(F)*1E3-F.getVideoData().YC,F.S("html5_gapless_new_slr")?(F=F.Nm,mz_(F.app,"gaplessshortslooprange"),J=new g.b6(0,J,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(F=F.app.F_())&&F.addCueRange(J)):F.setLoopRange({startTimeMs:0,endTimeMs:J,type:"shortsLoop"}))}; ihG=function(F){var J=F.Nf();if(!(g.x(J.getPlayerState(),64)&&F.Yl().isLivePlayback&&F.AJ.startTimeMs<5E3)){if(F.AJ.type==="repeatChapter"){var b,I=(b=PSC(F.TF()))==null?void 0:b.p8(),u;b=(u=F.getVideoData())==null?void 0:u.wX;I instanceof g.LV&&b&&(u=b[z4(b,F.AJ.startTimeMs)],I.renderChapterSeekingAnimation(0,u.title));isNaN(Number(F.AJ.loopCount))?F.AJ.loopCount=0:F.AJ.loopCount++;F.AJ.loopCount===1&&F.SE.jE("innertubeCommand",F.getVideoData().OD)}I={Ky:"application_loopRangeStart"};if(F.AJ.type=== "clips"||F.AJ.type==="shortsLoop")I.seekSource=58;J.seekTo(F.AJ.startTimeMs*.001,I)}}; Lra=function(F,J){var b=F.SE.getAvailablePlaybackRates();J=Number(J.toFixed(2));F=b[0];b=b[b.length-1];J<=F?J=F:J>=b?J=b:(F=Math.floor(J*100+.001)%5,J=F===0?J:Math.floor((J-F*.01)*100+.001)/100);return J}; gha=function(F,J){J=F.F4(J);if(!J)return 0;J=dh(F,J);return sK(F,J.LP(),J)}; sK=function(F,J,b){if(F.Uo(b)){b=b.getVideoData();if(YN(F))b=J;else{F=F.xl;for(var I=g.N(F.U),u=I.next();!u.done;u=I.next())if(u=u.value,b.r9===u.r9){J+=u.V2/1E3;break}I=J;F=g.N(F.U);for(u=F.next();!u.done;u=F.next()){u=u.value;if(b.r9===u.r9)break;var w=u.V2/1E3;if(w<J)I+=u.durationMs/1E3+w-u.Xd/1E3;else break}b=I}return b}return J}; z33=function(F,J){if(F.getPresentingPlayerType()===3)return qO(dO(F.HV).r0);if((F.getVideoData().enableServerStitchedDai||g.oH(F.getVideoData()))&&J===2){var b,I;return((b=F.jF)==null?0:b.zc(F.getCurrentTime()))||((I=F.II)==null?0:I.zc())?F.BY:-1}return J!==2||F.Uo()?F.BY:F.Dw}; ntC=function(F){F.logger.debug("reset for new application playback");$N(F);F.setLoopVideo(!1);F.setLoopRange(null);F.SE.publish("legacyadtrackingpingreset");F.tB={};F.UA=[];cqk(F.qW);if(F.jF){var J=F.jF,b=F.Nf();b.getPlayerType();Iz(J,!1);$T_(J);CNk(J);J.playback=b}J=F.xl;F=F.Nf();F.getPlayerType()!==1&&AU(J,"invalidParentVideoPlayerType");ee(J,!1);VFo(J);J.C=F}; alk=function(F,J){var b=(J?J:F.Yl()).w7;F.qW.tick("ep_pr_r");if(b!=null&&(HnY(F.playlist,b),F.Q0))F.playlist.onReady(function(){Ph(F,J)})}; Vd=function(F,J){F.playlist&&(g.q8(F.playlist),F.playlist=null);J&&(F.FY&&(J.fetch=0),F.playlist=new UHv(F.rD,J))}; Nxk=function(F){var J,b=Number((J=F.getVideoData().progressBarEndPosition)==null?void 0:J.utcTimeMillis)/1E3;!isNaN(b)&&(J=F.Ze())&&(J-=F.getCurrentTime(),b=(b-J)*1E3,J=F.tB.progressEndBoundary,(J==null?void 0:J.start)!==b&&(J&&F.hc([J]),b=new g.b6(b,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),F.Nf().addCueRange(b),F.tB.progressEndBoundary=b))}; Wh=function(F,J){F.logger.debug(function(){return"set external state "+J}); var b=F.F_();if(b){var I=b.getPlayerType();if(I===2&&!F.Uo()){F.Dw!==J&&(F.Dw=J,F.SE.SZ("onAdStateChange",J));return}if(I===2&&F.Uo()||I===5||I===6||I===7)if(J===-1||J===0||J===5)return}if(J===0){if(F.AJ)return;if((b==null?0:b.iS())&&g.jB(F.rD)){F.playVideo();return}}F.BY!==J&&(F.BY=J,F.SE.SZ("onStateChange",J))}; llY=function(F,J,b,I,u){I=I===void 0?Infinity:I;u=u===void 0?0:u;F.logger.debug(function(){return"Enqueuing playerType="+b+" at time="+I+"\n videoId="+J.videoId}); var w=F.F_();b=b||w.getPlayerType();(w=Kvk(F,b,J,!0))||(w=MGo(F,b,J).P0);var M=F.Nf();if(b===2&&M){var q=w.getVideoData();M.Bl(q.clientPlaybackNonce,q.If||"",q.breakType||0,q.LF,q.videoId||"")}F.VY(w,I,0,u)}; flz=function(F,J,b,I,u){var w="";w=F.rD.S("html5_autonav_autoplay_in_preload_key")?Ce(F,b,J):Xf(F,b,J.videoId,J.r9);F.logger.debug(function(){return"start preload video "+w+", trigger="+u}); var M="",q=F.F_();if(q&&(M=F.rD.S("html5_autonav_autoplay_in_preload_key")?Ce(F,q.getPlayerType(),q.getVideoData()):Xf(F,q.getPlayerType(),q.getVideoData().videoId,q.getVideoData().r9),w===M))return q.PE(!0),J.dispose(),null;J.Ly=!0;J=MGo(F,b,J);b===1&&cu(F.rD)||J.PE(!0);F.z0.C.set(w,J.P0,I||3600);return J}; WvY=function(F,J,b,I){var u=M1(b);return Xf(F,J,u,I,b.autonav==="1"||b.autonav===!0,b.autoplay==="1"||b.autoplay===!0||b.autoplay===1)}; Ce=function(F,J,b){return Xf(F,J,b.videoId,b.r9,b.isAutonav,b.dK)}; Xf=function(F,J,b,I,u,w){u=u===void 0?!1:u;w=w===void 0?!1:w;J=J+"_"+b+"_"+I;F.rD.S("html5_autonav_autoplay_in_preload_key")&&(J+="_"+ +u+ +w);return J}; Kvk=function(F,J,b,I){var u=F.rD.S("html5_autonav_autoplay_in_preload_key")?Ce(F,J,b):Xf(F,J,b.videoId,b.r9);var w=F.z0.C.get(u)||null;if(!w||w.wD.iR())return null;F.z0.C.remove(u);if(g.x(w.getPlayerState(),128))return xU(w),null;if(w===F.F4(J))return F.qW.infoGel({isCacheHit:!0}),w;if((w.getVideoData().oauthToken||b.oauthToken)&&w.getVideoData().oauthToken!==b.oauthToken)return null;J===1&&$N(F);I||F.LA(w,!0);F.qW.infoGel({isCacheHit:!0});return w}; dzJ=function(F,J){var b;return J&&F.rD.ZY&&!((b=F.getVideoData())==null?0:b.backgroundable)}; Ehv=function(F,J){return dzJ(F,J)?(F.HL?F.HL.start():F.Wy(),!0):!1}; Qd=function(F,J,b){J&&(J=F.F4(b))&&J===F.Nf()&&(J.getVideoData().Vk=!0)}; Rz=function(F,J,b){b=b===void 0?1:b;F.logger.debug(function(){return"start cue video, vid "+J.videoId+", type "+b}); if(J.o8()){var I=g.lK(F,b,J).P0;F.cancelPlayback(4,b);F.LA(I);I.XR();if(b===1){F.uJ(1);if(g.dN(F.rD)&&!xs(J)){J.dispose();xU(F.Nf());return}e3Y(F)}F.logger.debug("finish cue video")}else F.logger.debug(function(){return"invalid VideoData in cueVideo"}),J.dispose(),(I=F.F4(b))&&xU(I),Aca(F.Yl())&&b===2&&F.yW()}; j_z=function(F,J,b,I,u){J=jnY(J,b,I,u);(b=g.dN(F.rD)&&!F.rD.eE)&&!F.FY&&(J.fetch=0);Vd(F,J);g.dN(F.rD)&&F.qW.tick("ep_a_pr_s");if(b&&!F.FY)b=F.Yl(),Jd_(b,J).then(function(w){F.Q0=!0;alk(F,w)}); else F.playlist.onReady(function(){Ph(F)}); g.dN(F.rD)&&F.qW.tick("ep_a_pr_r")}; Ph=function(F,J){var b=g.dN(F.rD)&&!F.rD.eE,I=b&&J?J:g.dA(F.playlist);J=b&&J?J:F.getVideoData();I&&(J.NJ&&(F.rD.IP||F.rD.D4)||!F.fB?(J=J.Vk,I=F.Ml(I,1),J&&Qd(F,I)):Rz(F,I,1));g.dN(F.rD)&&F.qW.tick("ep_p_l");F.Q0=!1;F.SE.IC("onPlaylistUpdate")}; bha=function(F){if(F.playlist&&g.Bu(F.rD)&&F.im()){var J=F.rD.S("html5_player_autonav_logging");F.nextVideo(!1,J);return!0}return!1}; GO_=function(F,J,b,I,u,w,M){J={id:J,namespace:M!=null?M:"appapi"};w==="chapter"?(J.style=Js.CHAPTER_MARKER,J.visible=!0):isNaN(u)||(w==="ad"?J.style=Js.AD_MARKER:(J.style=Js.TIME_MARKER,J.color=u),J.visible=!0);F.dO([new g.b6(b*1E3,I*1E3,J)],1);return!0}; VG7=function(F,J,b,I,u,w){w=w===void 0?!0:w;var M=F.Ze();if(!M)return w&&F.getVideoData().isLivePlayback&&F.UA.push({id:J,I4G:b,NqI:I}),!1;w=M-F.getCurrentTime();return GO_(F,J,b-w,I-w,void 0,void 0,u)}; Pl_=function(F,J){F.UA=g.qN(F.UA,function(M){return M.id!==J}); for(var b=F.Nf(),I=b.Y4(),u=0;u<I.length;u++){var w=I[u];if(w.getId()===J)return b.removeCueRange(w),Du(F,"cuerangesremoved",[w]),!0}return!1}; mz_=function(F,J,b){var I=F.F4(b);I&&(J=I.Yo(J),b&&F.getPresentingPlayerType()!==b||Du(F,"cuerangesremoved",J))}; Bxz=function(F){var J=(0,g.jR)(),b=F.getCurrentTime();F=F.getVideoData();b=1E3*(b-F.startSeconds);F.isLivePlayback&&(b=0);return J-Math.max(b,0)}; rh=function(F,J,b){F.rD.dD&&(F.wg=J,J.muted||Se(F,!1),b&&F.rD.storeUserVolume&&!F.rD.Se&&(b={volume:Math.floor(J.volume),muted:J.muted},b.unstorable||(g.rm("yt-player-volume",b),g.rm("yt-player-volume",b,2592E3))),Tx3(F),b=g.B4&&F.mediaElement&&!F.mediaElement.dB(),F.rD.Se&&!b||F.SE.SZ("onVolumeChange",{muted:J.muted,volume:J.volume,unstorable:!F.rD.storeUserVolume}))}; Tx3=function(F){var J=F.getVideoData();if(!J.T8){J=F.rD.Se?1:uZ_(J);var b=F.mediaElement;b.sA(F.wg.muted);try{b.setVolume(F.wg.volume*J/100)}catch(I){g.rQ(new g.hC("b183742307","multiplier: "+J+", volume: "+F.wg.volume))}}}; Se=function(F,J){J!==F.f_&&(F.f_=J,F.SE.IC("onMutedAutoplayChange",J))}; eV=function(F){return F.f_&&F.getVideoData().mutedAutoplay}; rO7=function(F){var J=ye(!0);return J&&(J===F.template.element||F.mediaElement&&J===F.mediaElement.Pb())?J:null}; s_C=function(F,J){var b=window.screen&&window.screen.orientation;if((F.rD.S("lock_fullscreen2")||F.rD.Y)&&b&&b.lock&&(!g.B4||!SIa))if(J){J=b.type.indexOf("portrait")===0;var I=F.template.getVideoAspectRatio(),u=J;I<1?u=!0:I>1&&(u=!1);if(!F.Ry||u!==J){b=b.lock(u?"portrait":"landscape");if(b!=null)b["catch"](function(){}); F.Ry=!0}}else F.Ry&&(F.Ry=!1,b.unlock())}; Du=function(F,J,b){F.SE.publish(J,b);var I=g.jB(F.rD)||g.TB(F.rD)||g.sV(F.rD);if(b&&I){switch(J){case "cuerangemarkersupdated":var u="onCueRangeMarkersUpdated";break;case "cuerangesadded":u="onCueRangesAdded";break;case "cuerangesremoved":u="onCueRangesRemoved"}u&&F.SE.jE(u,b.map(function(w){return{getId:function(){return this.id}, end:w.end,id:w.getId(),namespace:w.namespace==="ad"?"ad":"",start:w.start,style:w.style,visible:w.visible}}))}}; kN=function(F,J,b,I,u,w){b=b===void 0?!0:b;var M=F.F4(u);M&&(M.getPlayerType()===2&&!F.Uo(M)||g.dS(M.getVideoData()))||(F.getPresentingPlayerType()===3?dO(F.HV).Lx("control_seek",J,b):(M&&M===F.Nf()&&F.AJ&&!pHY(F,J)&&F.setLoopRange(null),F.seekTo(J,b,I,u,w)))}; YIa=function(F,J,b,I){b&&(F.rg(),fe(F));b=F.F_();b.SW(J);var u=F.getVideoData(),w={};w.video_id=u.videoId;w.adformat=u.adFormat;u.isLivePlayback||(w.start=b.getCurrentTime(),w.resume="1");u.isLivePlayback&&qb(u)&&g.dX(F.rD)&&(w.live_utc_start=b.Ze(),w.resume="1");u.eE&&(w.vvt=u.eE);u.W&&(w.vss_credentials_token=u.W,w.vss_credentials_token_type=u.kZ);u.oauthToken&&(w.oauth_token=u.oauthToken);u.Ys&&(w.force_gvi=u.Ys);w.autoplay=1;w.reload_count=u.T1+1;w.reload_reason=J;u.KT&&(w.unplugged_partner_opt_out= u.KT);u.Lv&&(w.ypc_is_premiere_trailer=u.Lv);u.playerParams&&(w.player_params=u.playerParams);F.loadVideoByPlayerVars(w,void 0,!0,void 0,void 0,I);J==="signature"&&F.jF&&qIm(F)}; $zC=function(F,J){F.Yl().autonavState=J;g.rm("yt-player-autonavstate",J);F.SE.publish("autonavchange",J)}; Cla=function(F){var J=F.getVideoData().T8,b=F.rD.cN,I=F.isInline()&&!F.getVideoData().Tv,u=F.mediaElement;J||b||I?u.Zw():(u.PL(),rh(F,F.wg))}; $N=function(F){var J=XN(F.TF());J&&J.created&&(F.logger.debug("reset ad module"),J.destroy())}; YN=function(F){return F.getVideoData().enableServerStitchedDai&&!!F.jF}; XHm=function(F,J){J.bounds=F.getBoundingClientRect();for(var b=g.N(["display","opacity","visibility","zIndex"]),I=b.next();!I.done;I=b.next())I=I.value,J[I]=pL(F,I);J.hidden=!!F.hidden}; SAa=function(F){if(F.webPlayerContextConfig){var J=F.webPlayerContextConfig.trustedJsUrl;return J?fX(J).toString():F.webPlayerContextConfig.jsUrl}return F.config.assets&&F.config.assets.js?F.config.assets.js:""}; Q_a=function(F,J){var b=F.F4(1);if(b){if(b.getVideoData().clientPlaybackNonce===J)return b;if((F=F.s2.C)&&F.getVideoData().clientPlaybackNonce===J)return F}return null}; R3_=function(F){return F.name==="TypeError"&&F.stack.includes("/s/player/")&&RR()<=105}; Dza=function(F){return F.isTimeout?"NO_BID":"ERR_BID"}; kO4=function(){var F=null;SYm().then(function(J){return F=J},function(J){return F=Dza(J)}); return F}; OhY=function(){var F=db(1E3,"NO_BID");return Nf(LCm([SYm(),F]).rX(Dza),function(){F.cancel()})}; OK=function(F){return F.g9?g.Rg(g.Qe(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; oz=function(F){this.player=F;this.T=this.C=1}; cOm=function(F,J,b,I,u,w){J.client||(J.client={});F.player.J().S("h5_remove_url_for_get_ad_break")||(J.client.originalUrl=b);var M=w$(b),q=g.Cu(b)?!1:!0;(M||q)&&typeof Intl!=="undefined"&&(J.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);q=g.Cu(b)?!1:!0;if(M||q||I!==""){var v={};b=LX(aR(I)).split("&");var a=new Map;b.forEach(function(e){e=e.split("=");e.length>1&&a.set(e[0].toString(),decodeURIComponent(e[1].toString()))}); a.has("bid")&&(v.bid=a.get("bid"));v.params=[];oh_.forEach(function(e){a.has(e)&&(e={key:e,value:a.get(e)},v.params.push(e))}); h3z(F,v);J.adSignalsInfo=v}J.client.unpluggedAppInfo||(J.client.unpluggedAppInfo={});J.client.unpluggedAppInfo.enableFilterMode=!1;b=u.C.cosver;b!=null&&b!=="cosver"&&(J.client.osVersion=b);b=u.C.cplatform;b!=null&&b!=="cplatform"&&b!==""&&(J.client.platform=b);b=u.C.cmodel;b!=null&&b!=="cmodel"&&(J.client.deviceModel=b);b=u.C.cplayer;b!=null&&b!=="cplayer"&&(J.client.playerType=b);b=u.C.cbrand;b!=null&&b!=="cbrand"&&(J.client.deviceMake=b);J.user||(J.user={});J.user.lockedSafetyMode=!1;(u.S("embeds_web_enable_iframe_api_send_full_embed_url")|| u.S("embeds_enable_autoplay_and_visibility_signals"))&&g.Bu(u)&&rjz(J,w,F.player.getPlayerState(1))}; nhz=function(F,J){var b=!1;if(J==="")return b;J.split(",").forEach(function(I){var u={},w={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},M="ACTIVE";I[0]==="!"&&(I=I.substring(1),M="INACTIVE");I=I.split("-");I.length<3||(I[0]in Uzk&&(w.clientName=Uzk[I[0]]),I[1]in xzY&&(w.platform=xzY[I[1]]),w.applicationState=M,w.clientVersion=I.length>2?I[2]:"",u.remoteClient=w,F.remoteContexts?F.remoteContexts.push(u):F.remoteContexts=[u],b=!0)}); return b}; Zh3=function(F){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in tG3))return!1;F=F.split(RegExp("[:&]"));var J=tG3.FLAG_AUTO_CAPTIONS_DEFAULT_ON,b="f"+(1+Math.floor(J/31)).toString();J=1<<Math.floor(J%31);for(var I=0,u=F.length;I<u;I++){var w=F[I].split("=");if(w[0]===b&&parseInt("0x"+w[1],16)&J)return!0}return!1}; h3z=function(F,J){F=F.player.J();if(g.O7(F)||cu(F)){F=g.cT("INNERTUBE_CONTEXT");var b,I;(F==null?0:(b=F.adSignalsInfo)==null?0:b.advertisingId)&&typeof(F==null?void 0:(I=F.adSignalsInfo)==null?void 0:I.limitAdTracking)!=="undefined"&&(J.advertisingId=F.adSignalsInfo.advertisingId,J.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",J.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}; wD4=function(F,J,b,I,u){var w=b.DRIFT_FROM_HEAD_MS&&!Number.isNaN(b.DRIFT_FROM_HEAD_MS)?Math.trunc(b.DRIFT_FROM_HEAD_MS):0,M=Hhm.exec(J);M=M!=null&&M.length>=2?M[1]:"";var q=Lvv.test(J),v=Flk.exec(J);v=v!=null&&v.length>=2?v[1]:"";var a=JTk.exec(J);a=a!=null&&a.length>=2&&!Number.isNaN(Number(a[1]))?Number(a[1]):1;var e=bNz.exec(J);e=e!=null&&e.length>=2?e[1]:"0";var K=Y2(F.player.J().ME),p=F.player.getVideoData(1),m=g.UV(p.WN,!0),y="BISCOTTI_ID"in b?b.BISCOTTI_ID:"";cOm(F,m,J,y.toString(),F.player.J(), p);p={splay:!1,lactMilliseconds:b.LACT.toString(),playerHeightPixels:Math.trunc(b.P_H),playerWidthPixels:Math.trunc(b.P_W),vis:Math.trunc(b.VIS),signatureTimestamp:20138,autonavState:OK(F.player.J())};I&&(I={},nhz(I,b.YT_REMOTE)&&(p.mdxContext=I));if(I=IEv.includes(K)?void 0:g.$6("PREF")){for(var f=I.split(RegExp("[:&]")),d=0,G=f.length;d<G;d++){var P=f[d].split("=");if((P[0].toUpperCase()==="SML"||P[0].toUpperCase()==="GSML")&&P.length>1&&P[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}p.autoCaptionsDefaultOn= Zh3(I)}J=ugv.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&v&&(m.user.credentialTransferTokens=[{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:p};M={adBlock:Math.trunc(b.AD_BLOCK),params:M,breakIndex:a,breakPositionMs:e,clientPlaybackNonce:b.CPN,topLevelDomain:K,isProxyAdTagRequest:q,context:m,adSignalsInfoString:LX(aR(y.toString())),overridePlaybackContext:J};u!==void 0&&(M.cueProcessedMs=Math.round(u).toString());v&&(M.videoId=v);b.LIVE_TARGETING_CONTEXT&&(M.liveTargetingParams=b.LIVE_TARGETING_CONTEXT); b.AD_BREAK_LENGTH&&(M.breakLengthMs=Math.trunc(b.AD_BREAK_LENGTH*1E3).toString());w&&(M.driftFromHeadMs=w.toString());M.currentMediaTimeMs=Math.round(F.player.getCurrentTime(1)*1E3);(F=F.player.getGetAdBreakContext())&&(M.getAdBreakContext=F);return M}; MHa=function(){oz.apply(this,arguments)}; ATa=function(F,J,b,I,u){var w=b.SN;var M=b.Os;var q=F.player.J().jm,v=0;b.cueProcessedMs&&M&&!w&&(b=M.end-M.start,b>0&&(v=Math.floor(b/1E3)));var a={AD_BLOCK:u,AD_BREAK_LENGTH:w?w.Bg:v,AUTONAV_STATE:OK(F.player.J()),CA_TYPE:"image",CPN:F.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:F.player.mJ()*1E3,LACT:dP(),LIVE_INDEX:w?F.T++:1,LIVE_TARGETING_CONTEXT:w&&w.context?w.context:"",MIDROLL_POS:M?Math.round(M.start/1E3):0,MIDROLL_POS_MS:M?Math.round(M.start):0,VIS:F.player.getVisibilityState(), P_H:F.player.mG().lk().height,P_W:F.player.mG().lk().width,YT_REMOTE:q?q.join(","):""},e=vx(qk);Object.keys(e).forEach(function(K){e[K]!=null&&(a[K.toUpperCase()]=e[K].toString())}); I!==""&&(a.BISCOTTI_ID=I);I={};AR(J)&&(I.sts="20138",(F=F.player.J().forcedExperiments)&&(I.forced_experiments=F));return ui(g.TM(J,a),I)}; q8G=function(F,J){var b=F.player.J(),I,u=(I=F.player.getVideoData(1))==null?void 0:I.oauthToken;return g.LH(b,u).then(function(w){if(w&&Mk()){var M=SV();sf(M,w)}return g.cf(F.player.n8(M),J,"/youtubei/v1/player/ad_break").then(function(q){return q})})}; vwv=function(F){this.EQ=F}; aEm=function(F){this.G=F}; eVz=function(F){this.EQ=F}; pDz=function(F){g.R.call(this);this.C=F;this.t0=KlJ(this)}; KlJ=function(F){var J=new ei3(F.C.py);g.k(F,J);F=g.N([new vwv(F.C.EQ),new aEm(F.C.G),new eVz(F.C.EQ),new BP(F.C.pD,F.C.Rk),new r0,new YG(F.C.RP,F.C.SB,F.C.EQ),new TI,new PP]);for(var b=F.next();!b.done;b=F.next())Kiz(J,b.value);F=g.N(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(b=F.next();!b.done;b=F.next())Sk(J,b.value,function(){}); return J}; hU=function(F){var J=F.QG,b=F.uR;F=F.P1;var I=new VKY,u={P9:new A5k(J.get(),b),uR:b};return{S3:new tc(b,F,J,u),context:u,Zl:I}}; ch=function(F,J,b,I,u){g.R.call(this);this.U=J;this.OQ=b;this.QG=I;this.cV=u;this.listeners=[];var w=new j9(this);g.k(this,w);w.B(F,"internalAbandon",this.ID);this.addOnDisposeCallback(function(){g.Ve(w)})}; UK=function(F){this.G=F;this.adVideoId=this.C=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.U=this.T=!1;this.adFormat=null;this.Z="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; gwz=function(F){F.contentCpn=null;F.adCpn=null;F.videoId=null;F.adVideoId=null;F.adFormat=null;F.Z="AD_PLACEMENT_KIND_UNKNOWN";F.actionType="unknown_type";F.T=!1;F.U=!1}; mAo=function(F,J){F=g.N(J);for(J=F.next();!J.done;J=F.next())if((J=J.value.renderer)&&(J.instreamVideoAdRenderer||J.linearAdSequenceRenderer||J.sandwichedLinearAdRenderer||J.instreamSurveyAdRenderer)){XH("ad_i");g.Qk({isMonetized:!0});break}}; yTC=function(F){var J;(J=F.G.getVideoData(1))!=null&&J.Gj&&(F.U=!1,J={},F.C&&F.videoId&&(J.cttAuthInfo={token:F.C,videoId:F.videoId}),Rr("video_to_ad",J))}; kO=function(F){F.U=!1;var J={};F.C&&F.videoId&&(J.cttAuthInfo={token:F.C,videoId:F.videoId});Rr("ad_to_video",J);iNk(F)}; iNk=function(F){if(F.T)if(F.Z==="AD_PLACEMENT_KIND_START"&&F.actionType==="video_to_ad")Yk("video_to_ad");else{var J={adBreakType:zA(F.Z),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:F.videoStreamType};F.actionType==="ad_to_video"?(F.contentCpn&&(J.targetCpn=F.contentCpn),F.videoId&&(J.targetVideoId=F.videoId)):(F.adCpn&&(J.targetCpn=F.adCpn),F.adVideoId&&(J.targetVideoId=F.adVideoId));F.adFormat&&(J.adType=F.adFormat);F.contentCpn&& (J.clientPlaybackNonce=F.contentCpn);F.videoId&&(J.videoId=F.videoId);F.adCpn&&(J.adClientPlaybackNonce=F.adCpn);F.adVideoId&&(J.adVideoId=F.adVideoId);g.Qk(J,F.actionType)}}; xN=function(F){g.R.call(this);this.G=F;this.C=new Map;this.U=new j9(this);g.k(this,this.U);this.U.B(this.G,g.u6("ad"),this.onCueRangeEnter,this);this.U.B(this.G,g.wq("ad"),this.onCueRangeExit,this)}; zV4=function(F,J,b,I,u){g.b6.call(this,J,b,{id:F,namespace:"ad",priority:u,visible:I})}; ne=function(F){this.G=F}; tU=function(F){this.G=F;g.eB(this.G.J().experiments,"tv_pacf_logging_sample_rate")}; fF=function(F,J){J=J===void 0?!1:J;return F.G.J().S("html5_ssap_force_ads_ctmp")?!0:(J||F.G.J().hJ())&&F.G.J().S("html5_ssap_pacf_qoe_ctmp")}; Zu=function(F){var J,b;return(b=(J=F.G.getVideoData(1))==null?void 0:g.oH(J))!=null?b:!1}; Un=function(F,J){return F.G.J().S(J)}; Nva=function(F){return F.G.J().S("substitute_ad_cpn_macro_in_ssdai")}; mz=function(F){var J,b,I;return((J=F.G.getVideoData(1).getPlayerResponse())==null?void 0:(b=J.playerConfig)==null?void 0:(I=b.daiConfig)==null?void 0:I.enableServerStitchedDai)||!1}; zxo=function(F){return F.G.J().S("html5_enable_vod_slar_with_notify_pacf")}; lE_=function(F){return F.G.J().S("html5_recognize_predict_start_cue_point")}; x8=function(F){return F.G.J().experiments.pW("enable_desktop_player_underlay")}; fEo=function(F){return F.G.J().experiments.pW("html5_load_empty_player_in_media_break_sub_lra")}; TA=function(F){return F.G.J().experiments.pW("html5_load_ads_instead_of_cue")}; rM=function(F){return F.G.J().experiments.pW("html5_preload_ads")}; on=function(F){return F.G.J().experiments.pW("enable_ads_control_flow_deterministic_id_generation")}; Wl3=function(F){return F.G.J().experiments.pW("enable_desktop_discovery_video_abandon_pings")||g.O7(F.G.J())}; dA7=function(F){return F.G.J().experiments.pW("enable_progres_commands_lr_feeds")}; Ew_=function(F){return F.G.J().experiments.pW("html5_cuepoint_identifier_logging")}; jvv=function(F){switch(F){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}}; GH3=function(){g.uA.call(this);var F=this;this.C={};this.addOnDisposeCallback(function(){for(var J=g.N(Object.keys(F.C)),b=J.next();!b.done;b=J.next())delete F.C[b.value]})}; Hh=function(){if(VHk===null){VHk=new GH3;VF(f8).U="b";var F=VF(f8),J=gi(F)=="h"||gi(F)=="b",b=!(Sw(),!1);J&&b&&(F.D=!0,F.W=new s2m)}return VHk}; P4v=function(F,J,b){F.C[J]=b}; Bv3=function(F){switch(F){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}}; Le=function(F,J,b){this.OQ=F;this.G=J;this.uR=b;this.U=new Set;this.C=new Map;Hh().subscribe("adactiveviewmeasurable",this.rM,this);Hh().subscribe("adfullyviewableaudiblehalfdurationimpression",this.I7,this);Hh().subscribe("adviewableimpression",this.CQ,this);Hh().subscribe("adaudioaudible",this.LB,this);Hh().subscribe("adaudiomeasurable",this.NO,this)}; J7=function(F,J,b){var I=b.Mi,u=b.cP,w=b.listener,M=b.uv;b=b.Tf===void 0?!1:b.Tf;if(F.C.has(J))q_("Unexpected registration of layout in LidarApi");else{if(M){if(F.U.has(M))return;F.U.add(M)}F.C.set(J,w);wf(Sw().Dy,"fmd",1);oIk(VF(f8),I);var q=b?J:void 0;P4v(Hh(),J,{nt:function(){if(!u)return{};var v=F.G.getPresentingPlayerType(!0),a;return(a=F.G.getVideoData(v))!=null&&a.isAd()?{currentTime:F.OQ.get().getCurrentTimeSec(v,!1,q),duration:u,isPlaying:Fm(F.OQ.get(),v).isPlaying(),isVpaid:!1,isYouTube:!0, volume:F.OQ.get().isMuted()?0:F.OQ.get().getVolume()/100}:{}}})}}; bY=function(F,J){F.C.has(J)?(F.C.delete(J),delete Hh().C[J]):q_("Unexpected unregistration of layout in LidarApi")}; Tvk=function(F,J){if(F.G.isLifaAdPlaying()){var b=F.G.xK(!0,!0);F.Ei(J,b.width*.5*1.1,b.height*.25*1.1,b.width*.5*.9,b.height*.5*.9)}}; svC=function(F,J,b){var I={};rTz(F,I,J,b);S84(I);I.LACT=IL(function(){return dP().toString()}); I.VIS=IL(function(){return F.getVisibilityState().toString()}); I.SDKV="h.3.0";I.VOL=IL(function(){return F.isMuted()?"0":Math.round(F.getVolume()).toString()}); I.VED="";return I}; Y8C=function(F,J){var b={};if(J)return b;if(!F.kind)return g.Td(Error("AdPlacementConfig without kind")),b;if(F.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||F.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!F.adTimeOffset||!F.adTimeOffset.offsetStartMilliseconds)return g.Td(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=IL(vj(Math.round(L5(F.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=IL(vj("0"));return b}; IL=function(F){return{toString:function(){return F()}}}; $A3=function(F,J,b){function I(q,v){(v=b[v])&&(w[q]=v)} function u(q,v){(v=b[v])&&(w[q]=M(v))} if(!b||g.Vj(b))return F;var w=Object.assign({},F),M=J?encodeURIComponent:function(q){return q}; u("DV_VIEWABILITY","doubleVerifyViewability");u("IAS_VIEWABILITY","integralAdsViewability");u("MOAT_INIT","moatInit");u("MOAT_VIEWABILITY","moatViewability");I("GOOGLE_VIEWABILITY","googleViewability");I("VIEWABILITY","viewability");return w}; rTz=function(F,J,b,I){J.CPN=IL(function(){var u;(u=F.getVideoData(1))?u=u.clientPlaybackNonce:(g.rQ(Error("Video data is null.")),u=null);return u}); J.AD_MT=IL(function(){if(I!=null)var u=I;else{var w=b;F.J().S("html5_ssap_use_cpn_to_get_time")||(w=void 0);if(F.J().S("enable_h5_shorts_ad_fill_ad_mt_macro")||F.J().S("enable_desktop_discovery_pings_ad_mt_macro")||g.O7(F.J())){var M=F.getPresentingPlayerType(!0),q;u=((q=F.getVideoData(M))==null?0:q.isAd())?C4m(F,M,w):0}else u=C4m(F,2,w)}return Math.round(Math.max(0,u*1E3)).toString()}); J.MT=IL(function(){return Math.round(Math.max(0,F.getCurrentTime(1,!1)*1E3)).toString()}); J.P_H=IL(function(){return F.mG().lk().height.toString()}); J.P_W=IL(function(){return F.mG().lk().width.toString()}); J.PV_H=IL(function(){return F.mG().getVideoContentRect().height.toString()}); J.PV_W=IL(function(){return F.mG().getVideoContentRect().width.toString()})}; S84=function(F){F.CONN=IL(vj("0"));F.WT=IL(function(){return Date.now().toString()})}; C4m=function(F,J,b){return b!==void 0?F.getCurrentTime(J,!1,b):F.getCurrentTime(J,!1)}; XD4=function(){}; QvJ=function(F,J,b,I,u){var w,M,q,v,a,e,K,p,m,y,f,d,G;g.S(function(P){switch(P.C){case 1:w=!!J.scrubReferrer;M=g.TM(J.baseUrl,$A3(b,w,I));q={};if(!J.headers){P.gD(2);break}v=F.Z();if(!v.C){a=v.getValue();P.gD(3);break}return g.T(P,v.C,4);case 4:a=P.U;case 3:e=a;K=g.N(J.headers);for(p=K.next();!p.done;p=K.next())switch(m=p.value,m.headerType){case "VISITOR_ID":g.cT("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.cT("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.cT("EOM_VISITOR_DATA")&&(q["X-Goog-EOM-Visitor-Id"]= g.cT("EOM_VISITOR_DATA"));break;case "USER_AUTH":e&&(q.Authorization="Bearer "+e);break;case "PLUS_PAGE_ID":(y=F.D())&&(q["X-Goog-PageId"]=y);break;case "AUTH_USER":f=F.C();!e&&f&&(q["X-Goog-AuthUser"]=f);break;case "DATASYNC_ID":if(d=void 0,(d=F.T())==null?0:d.pW("enable_datasync_id_header_in_web_vss_pings"))G=F.U(),w$(M)&&g.cT("LOGGED_IN")&&G&&(q["X-YouTube-DataSync-Id"]=G)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];case 2:g.Xp(M,void 0,w,Object.keys(q).length!== 0?q:void 0,"",!0,u),g.N4(P)}})}; RVo=function(F,J,b,I,u){this.Z=F;this.D=J;this.C=b;this.U=I;this.T=u}; DAa=function(F,J){this.C=F;this.uR=J}; uY=function(F,J,b,I,u,w,M){var q=q===void 0?new RVo(function(){var v=F.J(),a=F.getVideoData(1);return g.LH(v,a?g.ks(a):"")},function(){return F.J().pageId},function(){return F.J().Gj},function(){var v; return(v=F.J().datasyncId)!=null?v:""},function(){return F.J().experiments}):q; this.G=F;this.U=J;this.X4=b;this.QG=I;this.S3=u;this.uR=w;this.Zl=M;this.Z=q;this.hM=null;this.C=new Map;this.T=new DAa(q,this.uR)}; ONz=function(F,J,b,I,u){var w=dw(F.U.get(),b);w?(b=Vp(F,kHY(w),w,void 0,void 0,I),J.hasOwnProperty("baseUrl")?F.Z.send(J,b):F.T.send(J,b,{},u)):q_("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b})}; yr7=function(F,J,b,I,u,w){I=I===void 0?[]:I;var M=dw(F.U.get(),J);if(M){var q=F.X4.get().RQ(J,b),v=Vp(F,kHY(M),M,u,w);I.forEach(function(a,e){a.baseUrl&&(F.T.send(a.baseUrl,v,q,a.attributionSrcMode),a.serializedAdPingMetadata&&F.S3.A3("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,M,new tla(a,e),void 0,void 0,M.adLayoutLoggingData))})}else q_("Trying to track from an unknown layout.",void 0,void 0,{layoutId:J, trackingType:b})}; l6=function(F,J){F.G.sendVideoStatsEngageEvent(J,void 0,2)}; tV=function(F,J){g.AY("adsClientStateChange",J)}; owz=function(F,J){F.C.has(J.qe())?q_("Trying to register an existing AdErrorInfoSupplier."):F.C.set(J.qe(),J)}; hVG=function(F,J){F.C.delete(J.qe())||q_("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Lx=function(F,J,b){typeof b==="string"?F.G.getVideoData(1).fQ(J,b):F.G.getVideoData(1).UQ(J,b)}; kHY=function(F){var J=uL(F.clientMetadata,"metadata_type_ad_placement_config");F=uL(F.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:J,Jb:F}}; Vp=function(F,J,b,I,u,w){var M=b?cTC(F):{},q=b?UA7(F,b.layoutId):{},v=xAJ(F),a,e=u!=null?u:(a=gM(F.QG.get(),2))==null?void 0:a.clientPlaybackNonce;F.G.J().S("enable_player_logging_lr_home_infeed_ads")&&!e&&(e=gM(F.QG.get(),1).clientPlaybackNonce);u=void 0;if(b){var K;if((K=F.Zl.C.get(b.layoutId))==null?0:K.Tf)u=b.layoutId}K={};F=Object.assign({},svC(F.G,u,I),Y8C(J.adPlacementConfig,(b==null?void 0:b.renderingContent)!==void 0),q,M,v,(K.FINAL=IL(function(){return"1"}),K.AD_CPN=IL(function(){return e|| ""}),K)); (b==null?void 0:b.renderingContent)!==void 0||(F.SLOT_POS=IL(function(){return(J.Jb||0).toString()})); b={};w=Object.assign({},F,w);F=g.N(Object.values(nwY));for(I=F.next();!I.done;I=F.next())I=I.value,M=w[I],M!=null&&M.toString()!=null&&(b[I]=M.toString());return b}; cTC=function(F){var J={},b,I=(b=F.hM)==null?void 0:b.EJ/1E3;I!=null&&(J.SURVEY_ELAPSED_MS=IL(function(){return Math.round(I*1E3).toString()})); J.SURVEY_LOCAL_TIME_EPOCH_S=IL(function(){return Math.round(Date.now()/1E3).toString()}); return J}; UA7=function(F,J){F=F.C.get(J);if(!F)return{};F=F.Vw();if(!F)return{};J={};return J.YT_ERROR_CODE=F.UE.toString(),J.ERRORCODE=F.a$.toString(),J.ERROR_MSG=F.errorMessage,J}; xAJ=function(F){var J={},b=F.G.getVideoData(1);J.ASR=IL(function(){var I;return(I=b==null?void 0:b.cE)!=null?I:null}); J.EI=IL(function(){var I;return(I=b==null?void 0:b.eventId)!=null?I:null}); return J}; w6=function(F,J,b){g.R.call(this);this.G=F;this.CP=J;this.uR=b;this.listeners=[];this.D5=null;this.r4=new Map;J=new g.s5(this);g.k(this,J);J.B(F,"videodatachange",this.PxG);J.B(F,"serverstitchedvideochange",this.JFN);this.Hm=gM(this)}; gM=function(F,J){var b=F.G.getVideoData(J);return b?F.b_(b,J||F.G.getPresentingPlayerType(!0)):null}; tH7=function(F,J,b){var I=F.b_(J,b);F.Hm=I;F.listeners.forEach(function(u){u.CZ(I)})}; ZNz=function(F){switch(F){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}}; Mi=function(F,J,b){g.R.call(this);this.G=F;this.QG=J;this.uR=b;this.listeners=[];this.xN=[];this.C=function(){q_("Called 'doUnlockPreroll' before it's initialized.")}; J=new j9(this);b=new g.s5(this);g.k(this,b);g.k(this,J);J.B(F,"progresssync",this.G$G);J.B(F,"presentingplayerstatechange",this.CC_);J.B(F,"fullscreentoggled",this.onFullscreenToggled);J.B(F,"onVolumeChange",this.onVolumeChange);J.B(F,"minimized",this.Kv);J.B(F,"overlayvisibilitychange",this.bq);J.B(F,"shortsadswipe",this.c9);J.B(F,"resize",this.mO);b.B(F,g.u6("appad"),this.nF)}; A7=function(F){Zu(F.uR.get())||F.C()}; HNa=function(F,J){F.xN=F.xN.filter(function(b){return b!==J})}; qi=function(F,J,b){return F.getCurrentTimeSec(J,b)}; LlC=function(F,J){var b;J=(b=F.QG.get().r4.get(J))!=null?b:null;if(J===null)return q_("Expected ad video start time on playback timeline"),0;F=F.G.getCurrentTime(2,!0);return F<J?0:F-J}; Fm=function(F,J){return F.G.getPlayerStateObject(J)}; Fmo=function(F){var J=F.G.mG().lk();F=F.G.xK(!0,!0);return J.height-(F.height+F.top)}; J4Y=function(F){F.G.cueVideoByPlayerVars({videoId:"empty_video"},2)}; REJ=function(F,J){var b=F.G.J();g.Pu(b)||b.controlsType!=="3"||F.G.mG().GY(J)}; vn=function(F,J){g.uG(F.G.getRootNode(),J)}; aL=function(F,J){g.Mr(F.G.getRootNode(),J)}; bya=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);I=Ri(function(){return new N0(F)}); g.k(this,I);var a=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,a);var e=Ri(function(){return new ZX}); g.k(this,e);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var K=Ri(function(){return new KT(w.uR)}); g.k(this,K);var p=Ri(function(){return new ey(M,a,q,w.uR,K,null,null,null,null)}); g.k(this,p);this.QG=Ri(function(){return new w6(J,e,w.uR)}); g.k(this,this.QG);var m=hU({QG:this.QG,uR:this.uR,P1:K}),y=m.context,f=m.Zl;this.S3=m.S3;this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,f)}); g.k(this,this.EQ);this.Dg=new z2(I,p,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var d=new ch(J,this.Dg,this.OQ,this.QG);this.FW=Ri(function(){return d}); this.wM=d;this.Ld=new lS(I,a,this.h_,this.FW,y);g.k(this,this.Ld);this.Es=new S5(this.uR,I,a,p,this.QG,this.Ld,b);g.k(this,this.Es);this.JX={xG:new Map,Y6:new Map,Rn:new Map,ud:new Map,i4:new Map};this.listeners=[];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:null,Rk:{dA:function(){}}, pD:v.get(),RP:this.QG.get()}}; eU=function(F,J){g.R.call(this);this.Gf=J;this.Gf.get().addListener(this)}; KR=function(F){this.C=F}; I2a=function(F,J){if(!F)return{GX:[],adSlots:[],Hp:!0,ssdaiAdsConfig:void 0};F.trackingParams&&WX(F.trackingParams);if(F.adThrottled)return{GX:[],adSlots:[],Hp:!0,ssdaiAdsConfig:void 0};var b,I=(b=F.adSlots)!=null?b:[],u;b=(u=F.playerAds)!=null?u:[];if(!(b&&b.length||I.length))return{GX:[],adSlots:I,Hp:!1,ssdaiAdsConfig:void 0};u=b.map(function(M){return M.adPlacementRenderer}).filter(function(M){return!(!M||!M.renderer)}); if(!u.length&&!I.length)return{GX:[],adSlots:I,Hp:!1,ssdaiAdsConfig:void 0};if(J.end>0){var w=J.end.toString();u.forEach(function(M){(M=M.config&&M.config.adPlacementConfig)&&M.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&M.adTimeOffset&&M.adTimeOffset.offsetEndMilliseconds==="-1"&&M.adTimeOffset.offsetEndMilliseconds!==w&&(M.adTimeOffset.offsetEndMilliseconds=w)}); I.map(function(M){return g.O(M,sx)}).forEach(function(M){var q; (M=M==null?void 0:(q=M.slotEntryTrigger)==null?void 0:q.mediaTimeRangeTrigger)&&M.offsetEndMilliseconds==="-1"&&(M.offsetEndMilliseconds=w)})}return{GX:u, adSlots:I,Hp:!1,ssdaiAdsConfig:F.ssdaiAdsConfig}}; pR=function(F){g.R.call(this);this.G=F;this.listeners=[];this.C=new j9(this);g.k(this,this.C);this.C.B(this.G,"aduxclicked",this.onAdUxClicked);this.C.B(this.G,"aduxmouseover",this.C9);this.C.B(this.G,"aduxmouseout",this.rz);this.C.B(this.G,"muteadaccepted",this.vmz)}; uOC=function(F,J,b){J=g.EG(J,function(I){return new X$C(I,b,I.id)}); F.G.jE("onAdUxUpdate",J)}; g6=function(F,J){F=g.N(F.listeners);for(var b=F.next();!b.done;b=F.next())J(b.value)}; mJ=function(F,J){this.U=F;this.T=J===void 0?!1:J;this.C={}}; wwo=function(F,J){var b=F.startSecs+F.Bg;b=b<=0?null:b;if(b===null)return null;switch(F.event){case "start":case "continue":case "stop":break;case "predictStart":if(J)break;return null;default:return null}J=Math.max(F.startSecs,0);return{US:new f6(J,b),tER:new YZ(J,b-J,F.context,F.identifier,F.event,F.C)}}; MC_=function(){this.C=[]}; gkv=function(F,J,b){var I=g.AL(F.C,J);if(I>=0)return J;J=-I-1;return J>=F.C.length||F.C[J]>b?null:F.C[J]}; ya=function(F,J,b){g.R.call(this);this.G=F;this.uR=J;this.EQ=b;this.listeners=[];this.Z=!1;this.KX=[];this.C=null;this.D=new mJ(this,lE_(J.get()));this.T=new MC_;this.U=null}; A4k=function(F,J){F.KX.push(J);for(var b=!1,I=g.N(F.listeners),u=I.next();!u.done;u=I.next())b=u.value.FB(J)||b;F.Z=b;Ew_(F.uR.get())&&Lx(F.EQ.get(),"onci","cpi."+J.identifier+";cpe."+J.event+";cps."+J.startSecs+";cbi."+b)}; vH_=function(F,J){tV(F.EQ.get(),{cuepointTrigger:{event:q2G(J.event),cuepointId:J.identifier,totalCueDurationMs:J.Bg*1E3,playheadTimeMs:J.C,cueStartTimeMs:J.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:F.G.getVideoData(1).clientPlaybackNonce}})}; q2G=function(F){switch(F){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 wU(F,"Unexpected cuepoint event")}}; iY=function(F){this.G=F}; a2C=function(F,J){F.G.cueVideoByPlayerVars(J,2)}; z7=function(F){this.G=F}; Ni=function(F){this.G=F}; ejm=function(F){switch(F){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:wU(F,"unknown transitionReason")}}; Kma=function(F){this.G=F}; pwG=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.Gf=Ri(function(){return new hj}); g.k(this,this.Gf);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var y=hU({QG:this.QG,uR:this.uR,P1:m}),f=y.context,d=y.Zl;this.S3=y.S3;this.cV=Ri(function(){return new ya(J,w.uR,w.EQ)}); g.k(this,this.cV);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);y=Ri(function(){return new ey(M,e,q,w.uR,m,"SLOT_TYPE_ABOVE_FEED",w.OQ,w.M_,w.oH)}); g.k(this,y);this.p7=Ri(function(){return new cq(w.uR)}); this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,d)}); g.k(this,this.EQ);this.a5=new iS(y6,lY,function(P,r,Q,D){return Ux(q.get(),P,r,Q,D)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var G=new ch(J,this.Dg,this.OQ,this.QG,this.cV);this.FW=Ri(function(){return G}); this.wM=G;this.M_=new gw(a,e,this.FW,this.cV,this.OQ,this.uR,this.EQ,this.RC);g.k(this,this.M_);this.Ld=new lS(a,e,this.h_,this.FW,f);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ,w.RC)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.E8=new T2(F);g.k(this,this.E8);this.NE=new Sy(F,this.FW,f);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,f);g.k(this,this.bx);this.KB=new Yf(F,this.QG);g.k(this,this.KB);this.oH=new XZ(F,this.cV,this.OQ,this.EQ,this.FW);g.k(this,this.oH);this.ix=new $f(F);g.k(this,this.ix);this.z$=new kf(F);g.k(this,this.z$);this.Y0=new Cm(F);g.k(this,this.Y0);this.rW=new DX(F);g.k(this,this.rW); this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.B4=Ri(function(){return new CA_(w.sI,w.EQ,F,v,w.X4)}); g.k(this,this.B4);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.n4=Ri(function(){return new Mh(F,w.z$,w.ix,w.QG,w.RC,w.OQ,w.EQ,K,w.cV,w.X4,w.p7,w.NI,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,v,f,d)}); g.k(this,this.n4);this.WR=Ri(function(){return new Zro(w.OQ,w.EQ,w.D7,w.uR,w.X4,w.QG)}); g.k(this,this.WR);this.Gh=Ri(function(){return new Qr7(w.sI,w.OQ,w.EQ,v,w.X4,w.E8,w.rW,w.D7,w.uR,b)}); g.k(this,this.Gh);this.u9=Ri(function(){return new XiJ(w.sI,w.EQ,v)}); g.k(this,this.u9);this.cI=new eU(F,this.Gf,M);g.k(this,this.cI);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.M_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_ABOVE_FEED",this.Oz],["SLOT_TYPE_FORECASTING",this.Oz], ["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz],["SLOT_TYPE_PLAYER_UNDERLAY",this.Oz],["SLOT_TYPE_PLAYBACK_TRACKING",this.Oz],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.E8],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.bx],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.bx],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.bx],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.bx],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.KB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.KB],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.rW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.oH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.oH],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.oH],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.oH],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.oH]]),ud:new Map([["SLOT_TYPE_ABOVE_FEED",this.g0], ["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF],["SLOT_TYPE_PLAYER_UNDERLAY",this.g0],["SLOT_TYPE_PLAYBACK_TRACKING",this.g0],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.g0]]),i4:new Map([["SLOT_TYPE_ABOVE_FEED",this.B4],["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_PLAYER_BYTES",this.n4],["SLOT_TYPE_PLAYBACK_TRACKING",this.WR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.WR],["SLOT_TYPE_IN_PLAYER",this.Gh],["SLOT_TYPE_PLAYER_UNDERLAY",this.u9]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:this.Gf.get(),Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; gH3=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);var y=Ri(function(){return new ey(M,e,q,w.uR,m,null,null,w.M_,w.oH)}); g.k(this,y);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.Gf=Ri(function(){return new hj}); g.k(this,this.Gf);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var f=hU({QG:this.QG,uR:this.uR,P1:m}),d=f.context,G=f.Zl;this.S3=f.S3;this.cV=Ri(function(){return new ya(J,w.uR,w.EQ)}); this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,G)}); g.k(this,this.EQ);this.p7=Ri(function(){return new cq(w.uR)}); g.k(this,this.p7);this.a5=new iS(y6,lY,function(r,Q,D,t){return Ux(q.get(),r,Q,D,t)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var P=new ch(J,this.Dg,this.OQ,this.QG,this.cV);this.FW=Ri(function(){return P}); this.wM=P;this.M_=new gw(a,e,this.FW,this.cV,this.OQ,this.uR,this.EQ);g.k(this,this.M_);this.Ld=new lS(a,e,this.h_,this.FW,d);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.E8=new T2(F);g.k(this,this.E8);this.NE=new Sy(F,this.FW,d);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,d);g.k(this,this.bx);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.rW=new DX(F);g.k(this,this.rW);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.z$=new kf(F);g.k(this,this.z$);this.oH=new XZ(F,this.cV,this.OQ,this.EQ,this.FW);g.k(this,this.oH);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.Gh=Ri(function(){return new RJG(w.sI,w.OQ,w.EQ,v,w.X4,w.E8,w.rW,w.D7,w.uR,b)}); g.k(this,this.Gh);this.n4=Ri(function(){return new Ab(F,w.z$,w.ix,w.EQ,w.X4,w.p7,w.NI,w.QG,w.OQ,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,w.RC,d,G)}); g.k(this,this.n4);this.cI=new eU(F,this.Gf,M);g.k(this,this.cI);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.M_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz], ["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.E8],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.rW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.oH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.oH],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.oH],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.oH],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.oH]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]), i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_IN_PLAYER",this.Gh],["SLOT_TYPE_PLAYER_BYTES",this.n4]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:this.Gf.get(),Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; moG=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);var y=Ri(function(){return new ey(M,e,q,w.uR,m,null,null,null,null)}); g.k(this,y);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var f=hU({QG:this.QG,uR:this.uR,P1:m}),d=f.context,G=f.Zl;this.S3=f.S3;this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,G)}); g.k(this,this.EQ);this.p7=Ri(function(){return new cq(w.uR)}); g.k(this,this.p7);this.a5=new iS(y6,lY,function(r,Q,D,t){return Ux(q.get(),r,Q,D,t)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var P=new ch(J,this.Dg,this.OQ,this.QG);this.FW=Ri(function(){return P}); this.wM=P;this.Ld=new lS(a,e,this.h_,this.FW,d);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.NE=new Sy(F,this.FW,d);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,d);g.k(this,this.bx);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.CE=Ri(function(){return new t0o(w.sI,w.OQ,w.EQ,v,b,w.uR)}); g.k(this,this.CE);this.n4=Ri(function(){return new Ab(F,w.z$,w.ix,w.EQ,w.X4,w.p7,w.NI,w.QG,w.OQ,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,w.RC,d,G)}); g.k(this,this.n4);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.bx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_ABOVE_FEED",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]),i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_IN_PLAYER", this.CE],["SLOT_TYPE_PLAYER_BYTES",this.n4]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:null,Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; y4C=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.Ma=Ri(function(){return new Kma(J)}); g.k(this,this.Ma);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);var y=Ri(function(){return new ey(M,e,q,w.uR,m,null,null,null,null)}); g.k(this,y);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var f=hU({QG:this.QG,uR:this.uR,P1:m}),d=f.context,G=f.Zl;this.S3=f.S3;this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,G)}); g.k(this,this.EQ);this.p7=Ri(function(){return new cq(w.uR)}); g.k(this,this.p7);this.a5=new iS(EYa,lY,function(r,Q,D,t){return cp3(q.get(),r,Q,D,t)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var P=new ch(J,this.Dg,this.OQ,this.QG);this.FW=Ri(function(){return P}); this.wM=P;this.Ld=new lS(a,e,this.h_,this.FW,d);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.NE=new Sy(F,this.FW,d);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,d);g.k(this,this.bx);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.n4=Ri(function(){return new Ab(F,w.z$,w.ix,w.EQ,w.X4,w.p7,w.NI,w.QG,w.OQ,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,w.RC,d,G)}); g.k(this,this.n4);this.zw=Ri(function(){return new kp4(w.sI,w.OQ,w.EQ,v,w.Ma,b,w.QG)}); g.k(this,this.zw);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.bx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]),i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_IN_PLAYER",this.zw],["SLOT_TYPE_PLAYER_BYTES", this.n4]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:null,Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; iy4=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.Ma=Ri(function(){return new Kma(J)}); g.k(this,this.Ma);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var y=hU({QG:this.QG,uR:this.uR,P1:m}),f=y.context,d=y.Zl;this.S3=y.S3;this.cV=Ri(function(){return new ya(J,w.uR,w.EQ)}); g.k(this,this.cV);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);y=Ri(function(){return new ey(M,e,q,w.uR,m,null,w.OQ,w.M_,w.oH,3)}); g.k(this,y);this.p7=Ri(function(){return new cq(w.uR)}); this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,d)}); g.k(this,this.EQ);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var G=new ch(J,this.Dg,this.OQ,this.QG,this.cV);this.FW=Ri(function(){return G}); this.wM=G;this.a5=new iS(jdk,lY,function(P,r,Q,D){return cp3(q.get(),P,r,Q,D)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.M_=new gw(a,e,this.FW,this.cV,this.OQ,this.uR,this.EQ,this.RC);g.k(this,this.M_);this.Ld=new lS(a,e,this.h_,this.FW,f);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ,w.RC)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.NE=new Sy(F,this.FW,f);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,f);g.k(this,this.bx);this.KB=new Yf(F,this.QG);g.k(this,this.KB);this.oH=new XZ(F,this.cV,this.OQ,this.EQ,this.FW);g.k(this,this.oH);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.n4=Ri(function(){return new Mh(F,w.z$,w.ix,w.QG,w.RC,w.OQ,w.EQ,K,w.cV,w.X4,w.p7,w.NI,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,v,f,d)}); g.k(this,this.n4);this.Gh=Ri(function(){return new Op4(w.sI,w.OQ,w.EQ,v,w.Ma,b,w.uR,w.QG)}); g.k(this,this.Gh);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.M_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.KB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.KB],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.oH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.oH],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.oH],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.oH],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.oH]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]),i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_PLAYER_BYTES",this.n4],["SLOT_TYPE_IN_PLAYER",this.Gh]])};this.listeners=[v.get()]; this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:null,Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; NW7=function(F,J,b,I){function u(){return w.U} g.R.call(this);var w=this;F.J().experiments.pW("html5_dispose_of_manager_before_dependency")?(this.C=zja(u,F,J,b,I),this.U=(new DY(this.C)).T(),g.k(this,this.U),g.k(this,this.C)):(this.C=zja(u,F,J,b,I),g.k(this,this.C),this.U=(new DY(this.C)).T(),g.k(this,this.U))}; fR=function(F){return F.C.Zd}; zja=function(F,J,b,I,u){try{var w=J.J();if(g.hP(w))var M=new pwG(F,J,b,I,u);else if(g.U7(w))M=new gH3(F,J,b,I,u);else if(CH(w))M=new moG(F,J,b,I,u);else if(g.sV(w))M=new y4C(F,J,b,I,u);else if(g.TB(w))M=new iy4(F,J,b,I,u);else throw new TypeError("Unknown web interface");return M}catch(q){return M=J.J(),q_("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:M.C.cplatform,interface:M.C.c,RvN:M.C.cver,PyI:M.C.ctheme,Gz_:M.C.cplayer,nIE:M.playerStyle}),new bya(F,J,b,I,u)}}; l2z=function(F){R4.call(this,F)}; f2z=function(F,J,b,I,u){xS.call(this,F,{X:"div",K:"ytp-ad-timed-pie-countdown-container",j:[{X:"svg",K:"ytp-ad-timed-pie-countdown",L:{viewBox:"0 0 20 20"},j:[{X:"circle",K:"ytp-ad-timed-pie-countdown-background",L:{r:"10",cx:"10",cy:"10"}},{X:"circle",K:"ytp-ad-timed-pie-countdown-inner",L:{r:"5",cx:"10",cy:"10"}},{X:"circle",K:"ytp-ad-timed-pie-countdown-outer",L:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",J,b,I,u);this.Z=this.RI("ytp-ad-timed-pie-countdown-container");this.T=this.RI("ytp-ad-timed-pie-countdown-inner"); this.W=this.RI("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()}; Wmo=function(F,J,b,I,u,w){a4.call(this,F,{X:"div",K:"ytp-ad-action-interstitial",L:{tabindex:"0"},j:[{X:"div",K:"ytp-ad-action-interstitial-background-container"},{X:"div",K:"ytp-ad-action-interstitial-slot",j:[{X:"div",K:"ytp-ad-action-interstitial-instream-info"},{X:"div",K:"ytp-ad-action-interstitial-card",j:[{X:"div",K:"ytp-ad-action-interstitial-image-container"},{X:"div",K:"ytp-ad-action-interstitial-headline-container"},{X:"div",K:"ytp-ad-action-interstitial-description-container"},{X:"div", K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",J,b,I);this.HA=u;this.qm=w;this.navigationEndpoint=this.C=this.skipButton=this.U=this.actionButton=null;this.dD=this.RI("ytp-ad-action-interstitial-instream-info");this.qf=this.RI("ytp-ad-action-interstitial-image-container");this.N=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-action-interstitial-image");g.k(this,this.N);this.N.Az(this.qf);this.WN=this.RI("ytp-ad-action-interstitial-headline-container"); this.W=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-action-interstitial-headline");g.k(this,this.W);this.W.Az(this.WN);this.eE=this.RI("ytp-ad-action-interstitial-description-container");this.T=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-action-interstitial-description");g.k(this,this.T);this.T.Az(this.eE);this.nW=this.RI("ytp-ad-action-interstitial-background-container");this.KW=new $S(this.api,this.layoutId,this.interactionLoggingClientData, this.vN,"ytp-ad-action-interstitial-background",!0);g.k(this,this.KW);this.KW.Az(this.nW);this.oI=this.RI("ytp-ad-action-interstitial-action-button-container");this.slot=this.RI("ytp-ad-action-interstitial-slot");this.aH=this.RI("ytp-ad-action-interstitial-card");this.Z=new j9;g.k(this,this.Z);this.hide()}; do_=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; VCC=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-overlay-slot",j:[{X:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",J,b,I);this.N=[];this.nW=this.WN=this.Z=this.oI=this.dD=null;this.KW=!1;this.W=null;this.eE=0;F=this.RI("ytp-ad-overlay-container");this.qf=new IJ(F,45E3,6E3,.3,.4);g.k(this,this.qf);this.T=EH7(this);g.k(this,this.T);this.T.Az(F);this.U=j$k(this);g.k(this,this.U);this.U.Az(F);this.C=GW_(this);g.k(this,this.C);this.C.Az(F);this.hide()}; EH7=function(F){var J=new g.vi({X:"div",K:"ytp-ad-text-overlay",j:[{X:"div",K:"ytp-ad-overlay-ad-info-button-container"},{X:"div",K:"ytp-ad-overlay-close-container",j:[{X:"button",K:"ytp-ad-overlay-close-button",j:[Vr(Pna)]}]},{X:"div",K:"ytp-ad-overlay-title",sQ:"{{title}}"},{X:"div",K:"ytp-ad-overlay-desc",sQ:"{{description}}"},{X:"div",Dv:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],sQ:"{{displayUrl}}"}]});F.B(J.RI("ytp-ad-overlay-title"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-link"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-close-container"),"click",F.JZ);J.hide();return J}; j$k=function(F){var J=new g.vi({X:"div",Dv:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],j:[{X:"div",K:"ytp-ad-overlay-ad-info-button-container"},{X:"div",K:"ytp-ad-overlay-close-container",j:[{X:"button",K:"ytp-ad-overlay-close-button",j:[Vr(Pna)]}]},{X:"div",K:"ytp-ad-overlay-text-image",j:[{X:"img",L:{src:"{{imageUrl}}"}}]},{X:"div",K:"ytp-ad-overlay-title",sQ:"{{title}}"},{X:"div",K:"ytp-ad-overlay-desc",sQ:"{{description}}"},{X:"div",Dv:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], sQ:"{{displayUrl}}"}]});F.B(J.RI("ytp-ad-overlay-title"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-link"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-close-container"),"click",F.JZ);F.B(J.RI("ytp-ad-overlay-text-image"),"click",F.w1G);J.hide();return J}; GW_=function(F){var J=new g.vi({X:"div",K:"ytp-ad-image-overlay",j:[{X:"div",K:"ytp-ad-overlay-ad-info-button-container"},{X:"div",K:"ytp-ad-overlay-close-container",j:[{X:"button",K:"ytp-ad-overlay-close-button",j:[Vr(Pna)]}]},{X:"div",K:"ytp-ad-overlay-image",j:[{X:"img",L:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});F.B(J.RI("ytp-ad-overlay-image"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-close-container"),"click",F.JZ);J.hide();return J}; BWz=function(F,J){if(J){var b=g.O(J,PF)||null;b==null?g.Td(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(J=g.c1("video-ads ytp-ad-module")||null,J==null?g.Td(Error("Could not locate the root ads container element to attach the ad info dialog.")):(F.WN=new g.vi({X:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.k(F,F.WN),F.WN.Az(J),J=new hr(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.WN.element,!1),g.k(F,J),J.init(bA("ad-info-hover-text-button"),b,F.macros), F.W?(J.Az(F.W,0),J.subscribe("f",F.FOW,F),J.subscribe("e",F.x3,F),F.B(F.W,"click",F.BwI),F.B(g.c1("ytp-ad-button",J.element),"click",function(){var I;if(g.O((I=g.O(b.button,g.TX))==null?void 0:I.serviceEndpoint,xPC))F.KW=F.api.getPlayerState(1)===2,F.api.pauseVideo();else F.api.onAdUxClicked("ad-info-hover-text-button",F.layoutId)}),F.nW=J):g.Td(Error("Ad info button container within overlay ad was not present."))))}else g.rQ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; r4C=function(F,J){if(TWC(F,d6)||F.api.isMinimized())return!1;var b=e0(J.title),I=e0(J.description);if(g.d5(b)||g.d5(I))return!1;F.createServerVe(F.T.element,J.trackingParams||null);F.T.updateValue("title",e0(J.title));F.T.updateValue("description",e0(J.description));F.T.updateValue("displayUrl",e0(J.displayUrl));J.navigationEndpoint&&g.bV(F.N,J.navigationEndpoint);F.T.show();F.qf.start();F.logVisibility(F.T.element,!0);F.B(F.T.element,"mouseover",function(){F.eE++}); return!0}; S2_=function(F,J){if(TWC(F,d6)||F.api.isMinimized())return!1;var b=e0(J.title),I=e0(J.description);if(g.d5(b)||g.d5(I))return!1;F.createServerVe(F.U.element,J.trackingParams||null);F.U.updateValue("title",e0(J.title));F.U.updateValue("description",e0(J.description));F.U.updateValue("displayUrl",e0(J.displayUrl));F.U.updateValue("imageUrl",KHo(J.image));J.navigationEndpoint&&g.bV(F.N,J.navigationEndpoint);F.oI=J.imageNavigationEndpoint||null;F.U.show();F.qf.start();F.logVisibility(F.U.element,!0); F.B(F.U.element,"mouseover",function(){F.eE++}); return!0}; s$C=function(F,J){if(F.api.isMinimized())return!1;var b=p$z(J.image),I=b;b.width<d6.width&&(I=d6);if(b.width===0||b.height===0||TWC(F,I))return!1;F.createServerVe(F.C.element,J.trackingParams||null);F.C.updateValue("imageUrl",KHo(J.image));F.C.updateValue("width",b.width);F.C.updateValue("height",b.height);J.navigationEndpoint&&g.bV(F.N,J.navigationEndpoint);g.aN(F.C.RI("ytp-ad-image-overlay"),"max-width",b.width+"px");F.C.show();F.logVisibility(F.C.element,!0);F.B(F.C.element,"mouseover",function(){F.eE++; F.api.C9("invideo-overlay",F.layoutId)}); F.B(F.C.element,"mouseout",function(){F.api.rz("invideo-overlay",F.layoutId)}); return!0}; TWC=function(F,J){var b=F.api.mG().lk(),I=F.api.xK(!0,!1);return(J=ej(b,b.height-(I.height+I.top),J))?(F.dD&&J&&(b=g.To(F.macros),b.ERRORCODE=J.a$.toString(),b.ERROR_MSG=J.errorMessage,F.layoutId?oi(F.vN,F.dD,F.layoutId,b):g.Td(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; Wn=function(F,J,b){var I=g.To(F.macros),u=g.fL(J);I.AW={toString:function(){return u.width.toString()}}; I.AH={toString:function(){return u.height.toString()}}; var w=g.NB(b,J).floor();I.I_X={toString:function(){return w.x.toString()}}; I.NX={toString:function(){return w.x.toString()}}; I.I_Y={toString:function(){return w.y.toString()}}; I.NY={toString:function(){return w.y.toString()}}; I.NM={toString:function(){return F.eE.toString()}}; J=g.N(F.N);for(b=J.next();!b.done;b=J.next())b=b.value,F.layoutId?oi(F.vN,b,F.layoutId,I):g.Td(Error("Missing layoutId for invideo_overlay_ad."));F.api.pauseVideo()}; Y2o=function(F,J){F=F.api.getRootNode();g.qr(F,"ytp-ad-overlay-open",J);g.qr(F,"ytp-ad-overlay-closed",!J)}; $o3=function(F,J,b,I,u){xS.call(this,F,{X:"div",K:"ytp-ad-message-overlay",j:[{X:"div",K:"ytp-ad-message-slot"}]},"ad-message",J,b,I,u);var w=this;this.W=-1;this.T=0;this.eE=!1;this.WN=this.RI("ytp-ad-message-slot");this.U=new g.vi({X:"span",K:"ytp-ad-message-container"});this.U.Az(this.WN);g.k(this,this.U);this.messageText=new ci(this.api,this.layoutId,this.interactionLoggingClientData,I,"ytp-ad-message-text");g.k(this,this.messageText);this.messageText.Az(this.U.element);this.Z=new g.ZU(this.U, 400,!1,100,function(){w.hide()}); g.k(this,this.Z);this.hide()}; Cn4=function(F,J){F=F.api.getRootNode();g.qr(F,"ytp-ad-overlay-open",J);g.qr(F,"ytp-ad-overlay-closed",!J)}; Xwz=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-underlay-companion",j:[{X:"div",K:"ytp-ad-underlay-side-container",j:[{X:"div",K:"ytp-ad-underlay-image-container"},{X:"div",K:"ytp-ad-underlay-description-container"},{X:"div",K:"ytp-ad-underlay-headline-container"},{X:"div",K:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",J,b,I);this.actionButton=null;this.WN=this.RI("ytp-ad-underlay-image-container");this.T=new $S(this.api,this.layoutId,this.interactionLoggingClientData, this.vN,"ytp-ad-underlay-image");g.k(this,this.T);this.T.Az(this.WN);this.eE=this.RI("ytp-ad-underlay-headline-container");this.U=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-underlay-headline");g.k(this,this.U);this.U.Az(this.eE);this.N=this.RI("ytp-ad-underlay-description-container");this.Z=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-underlay-description");g.k(this,this.Z);this.Z.Az(this.N);this.W=this.RI("ytp-ad-underlay-action-button-container"); this.C=this.RI("ytp-ad-underlay-side-container");this.hide()}; Q$C=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; Eg=function(F,J,b,I,u,w){w=w===void 0?function(){}:w; a4.call(this,F,{X:"div",K:"ytp-ad-survey-answer"},"survey-answer",J,b,I);this.index=u;this.onSelected=w;this.C=null;this.toggledLoggingParams="";this.answer=this.RI("ytp-ad-survey-answer");this.hide()}; Rjz=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",J,b,I);this.button=null;this.C=this.RI("ytp-ad-survey-none-of-the-above");this.hide()}; jU=function(F,J,b,I){var u=["ytp-ad-survey-submit-button"];u.push("ytp-ad-survey-submit-button-rounded");Pi.call(this,F,J,b,I,u,"survey-submit")}; G7=function(F,J,b,I,u){a4.call(this,F,{X:"div",K:"ytp-ad-survey-player-overlay",j:[{X:"div",K:"ytp-ad-survey-player-overlay-instream-info"},{X:"div",K:"ytp-ad-survey-player-overlay-skip-preview-submit",j:[{X:"div",K:"ytp-ad-survey-player-overlay-skip-or-preview"},{X:"div",K:"ytp-ad-survey-player-overlay-submit"}]},{X:"div",K:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",J,b,I);this.Z=u;this.U=this.C=null;this.T=this.RI("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.RI("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.RI("ytp-ad-survey-player-overlay-submit");g.k(this,this.Z);this.hide()}; Va=function(F,J,b,I,u,w){w=w===void 0?function(){}:w; a4.call(this,F,{X:"div",K:"ytp-ad-survey-question",j:[{X:"div",Dv:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{X:"div",Dv:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{X:"div",Dv:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{X:"div",K:"ytp-ad-survey-question-background"}]},u,J,b,I);this.WN=w;this.Z=null;this.U=[];this.C=null;this.N=this.api.J().experiments.pW("a11y_h5_associate_survey_question");this.question=this.RI("ytp-ad-survey-question"); this.qf=this.RI("ytp-ad-survey-question-background");this.questionText=this.RI("ytp-ad-survey-question-text");this.answers=this.RI("ytp-ad-survey-answers");this.playerOverlay=this.RI("ytp-ad-survey-question-player-overlay");this.T=Date.now()}; DoC=function(F,J){J=g.Kr(J);g.wK(F.questionText,J);F.N&&F.questionText.setAttribute("id",bA("survey-question-text"))}; kWa=function(F,J,b,I){I=new Eg(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,I,F.WN);I.Az(F.answers);I.init(bA("survey-answer"),J,b);F.N&&(J=F.questionText.getAttribute("id"),J!=null&&(I.C!==null?I.C.U.setAttribute("aria-describedby",J):I.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",J)));F.U.push(I)}; oHa=function(F,J){if(J){var b=J.background;b&&g.O(b,Oya)&&(b=(b=g.O(b,Oya).image)&&YS(b)||"",g.d5(b)?g.rQ(Error("Found ThumbnailDetails without valid image URL")):g.aN(F.qf,"backgroundImage","url("+b+")"));if(J.durationMilliseconds==null||J.durationMilliseconds===void 0||J.durationMilliseconds===0)g.Td(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(J)));else{F.T=g.L3();F.C=new zg(F.api,J.durationMilliseconds);g.k(F,F.C);if(F.C&&J.instreamAdPlayerOverlay&&g.O(J.instreamAdPlayerOverlay, VB))try{var I=new G7(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.C);I.Az(F.playerOverlay);I.init(bA("survey-player-overlay"),g.O(J.instreamAdPlayerOverlay,VB),F.macros);F.Z=I;g.k(F,I);F.H3()}catch(u){g.Td(Error("ISAPOR had an error when initializing. Error: "+(u+" SurveyAdQuestionCommon: "+JSON.stringify(J))))}else g.Td(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(J)));F.C&&J.durationMilliseconds&&J.durationMilliseconds>0?(J=new rJ(F.api,F.C),J.Az(F.playerOverlay), g.k(F,J)):g.Td(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(J)))}}else g.Td(Error("addCommonComponents() needs to be called before starting countdown."))}; hj3=function(F){function J(b){return{toString:function(){return b()}}} F.macros.SURVEY_LOCAL_TIME_EPOCH_S=J(function(){var b=new Date;return(Math.round(b.valueOf()/1E3)+-1*b.getTimezoneOffset()*60).toString()}); F.macros.SURVEY_ELAPSED_MS=J(function(){return(Date.now()-F.T).toString()})}; c4z=function(F,J,b,I,u){Va.call(this,F,J,b,I,"survey-question-multi-select");this.eE=u;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; Uo4=function(F,J,b){F.noneOfTheAbove=new Rjz(F.api,F.layoutId,F.interactionLoggingClientData,F.vN);F.noneOfTheAbove.Az(F.answers);F.noneOfTheAbove.init(bA("survey-none-of-the-above"),J,b)}; nHk=function(F){F.U.forEach(function(J){J.C.toggleButton(!1)}); xoo(F,!0)}; xoo=function(F,J){var b=F.Z;F=tC7(F);J=J===void 0?!1:J;b.C&&(F?b.C.hide():b.C.show(),J&&b.C instanceof gJ&&!b.C.Z&&ID7(b.C,!1));b.U&&(F?b.U.show():b.U.hide())}; tC7=function(F){return F.U.some(function(J){return J.C.isToggled()})||F.noneOfTheAbove.button.isToggled()}; Pn=function(F,J,b,I,u){Va.call(this,F,J,b,I,"survey-question-single-select",function(M){w.api.J().S("supports_multi_step_on_desktop")&&u([M])}); var w=this;this.hide()}; Bn=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-survey",j:[{X:"div",K:"ytp-ad-survey-questions"}]},"survey",J,b,I);this.questions=[];this.U=[];this.conditioningRules=[];this.C=0;this.W=this.RI("ytp-ad-survey-questions");this.api.J().S("fix_survey_color_contrast_on_destop")&&this.RI("ytp-ad-survey").classList.add("color-contrast-fix");this.api.J().S("web_enable_speedmaster")&&this.RI("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Lmv=function(F,J){var b=F.U[J],I;(I=F.T)==null||I.dispose();g.O(b,GX)?Zyo(F,g.O(b,GX),F.macros):g.O(b,j5)&&Hyz(F,g.O(b,j5),F.macros);F.C=J}; Zyo=function(F,J,b){var I=new Pn(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.Z.bind(F));I.Az(F.W);I.init(bA("survey-question-single-select"),J,b);F.api.J().S("supports_multi_step_on_desktop")?F.T=I:F.questions.push(I);g.k(F,I)}; Hyz=function(F,J,b){var I=new c4z(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.Z.bind(F));I.Az(F.W);I.init(bA("survey-question-multi-select"),J,b);F.api.J().S("supports_multi_step_on_desktop")?F.T=I:F.questions.push(I);g.k(F,I)}; T7=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-survey-interstitial",j:[{X:"div",K:"ytp-ad-survey-interstitial-contents",j:[{X:"div",K:"ytp-ad-survey-interstitial-logo",j:[{X:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",J,b,I);this.C=this.actionButton=null;this.interstitial=this.RI("ytp-ad-survey-interstitial");this.U=this.RI("ytp-ad-survey-interstitial-contents");this.text=this.RI("ytp-ad-survey-interstitial-text"); this.logoImage=this.RI("ytp-ad-survey-interstitial-logo-image");this.transition=new g.ZU(this,500,!1,300);g.k(this,this.transition)}; F3_=function(F,J){J=J&&YS(J)||"";if(g.d5(J))g.rQ(Error("Found ThumbnailDetails without valid image URL"));else{var b=F.style;F=F.style.cssText;var I=document.implementation.createHTMLDocument("").createElement("DIV");I.style.cssText=F;F=kvv(I.style);b.cssText=[F,'background-image:url("'+J+'");'].join("")}}; Jmk=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; r6=function(F,J,b,I,u,w){w=w===void 0?0:w;xS.call(this,F,{X:"div",K:"ytp-preview-ad",j:[{X:"div",K:"ytp-preview-ad__text"}]},"preview-ad",J,b,I,u);var M=this;this.eE=w;this.U=0;this.Z=-1;this.T=this.RI("ytp-preview-ad__text");switch(this.eE){case 1:this.T.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.ZU(this,400,!1,100,function(){M.hide()}); g.k(this,this.transition);this.hide()}; SU=function(F,J,b,I){a4.call(this,F,{X:"img",K:"ytp-ad-avatar"},"ad-avatar",J,b,I);this.hide()}; bPo=function(F){switch(F.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}}; sg=function(F,J,b,I,u,w){u=u===void 0?!1:u;w=w===void 0?!1:w;a4.call(this,F,{X:"button",K:"ytp-ad-button-vm"},"ad-button",J,b,I);this.buttonText=this.buttonIcon=null;this.hide();this.C=u;this.U=w}; I9C=function(F,J,b,I,u){xS.call(this,F,{X:"div",Dv:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],j:[{X:"div",K:"ytp-ad-avatar-lockup-card__avatar_and_text_container",j:[{X:"div",K:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",J,b,I,u);this.startMilliseconds=0;this.adAvatar=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adAvatar);bB(this.element,this.adAvatar.element,0);this.headline=new j1(this.api,this.layoutId, this.interactionLoggingClientData,this.vN);g.k(this,this.headline);this.headline.Az(this.RI("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.description);this.description.Az(this.RI("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new sg(this.api, this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adButton);this.adButton.Az(this.element);this.hide()}; Yv=function(F,J,b,I){a4.call(this,F,{X:"button",K:"ytp-skip-ad-button",j:[{X:"div",K:"ytp-skip-ad-button__text"}]},"skip-button",J,b,I);var u=this;this.U=!1;this.Z=this.RI("ytp-skip-ad-button__text");this.transition=new g.ZU(this,500,!1,100,function(){u.hide()}); g.k(this,this.transition);this.C=new IJ(this.element,15E3,5E3,.5,.5,!0);g.k(this,this.C);this.hide()}; uDk=function(F,J,b,I,u){xS.call(this,F,{X:"div",K:"ytp-skip-ad"},"skip-ad",J,b,I,u);this.skipOffsetMilliseconds=0;this.Z=this.isSkippable=!1;var w;if((w=this.api.getVideoData())==null?0:w.isDaiEnabled())this.Z=this.api.J().S("clean_player_style_fix_on_web");if(this.Z||!this.api.J().experiments.pW("disable_ad_preview_for_instream_ads"))this.U=new r6(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C),g.k(this,this.U),this.U.Az(this.element);this.T=new Yv(this.api,this.layoutId, this.interactionLoggingClientData,this.vN);g.k(this,this.T);this.T.Az(this.element);this.hide()}; $v=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-visit-advertiser-link"},"visit-advertiser-link",J,b,I);this.hide();this.api.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; CR=function(F,J,b,I,u){a4.call(this,F,{X:"div",K:"ytp-ad-player-overlay-layout",j:[{X:"div",K:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",K:"ytp-ad-player-overlay-layout__ad-info-container"},{X:"div",K:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",K:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",J,b,I);this.U=u;this.WN=this.RI("ytp-ad-player-overlay-layout__player-card-container");this.C=this.RI("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.RI("ytp-ad-player-overlay-layout__skip-or-preview-container");this.eE=this.RI("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; wJk=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-grid-card-text",j:[{X:"div",K:"ytp-ad-grid-card-text__metadata",j:[{X:"div",K:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",K:"ytp-ad-grid-card-text__metadata__description",j:[{X:"div",K:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",K:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",K:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",J,b,I);this.headline=new j1(this.api,this.layoutId,this.interactionLoggingClientData, this.vN);g.k(this,this.headline);this.headline.Az(this.RI("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0);g.k(this,this.moreInfoButton);this.moreInfoButton.Az(this.RI("ytp-ad-grid-card-text__button"))}; Xm=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",J,b,I);this.C=[]}; Qa=function(F,J,b,I,u,w,M){xS.call(this,F,w,M,J,b,I,u);this.playerProgressOffsetMs=0;this.U=!1}; MTk=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; Am3=function(F,J,b,I,u){Qa.call(this,F,J,b,I,u,{X:"div",K:"ytp-display-underlay-text-grid-cards",j:[{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container",j:[{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header",j:[{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Xm(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adGridCardCollection);this.adGridCardCollection.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adButton);this.adButton.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.T=this.RI("ytp-display-underlay-text-grid-cards__content_container");this.Z=this.RI("ytp-display-underlay-text-grid-cards__content_container__header")}; RL=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-details-line"},"ad-details-line",J,b,I);this.C=[];this.hide()}; DP=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-image-background",j:[{X:"img",K:"ytp-image-background-image"}]},"image-background",J,b,I);this.hide()}; qBJ=function(F,J,b,I,u){xS.call(this,F,{X:"svg",K:"ytp-timed-pie-countdown",L:{viewBox:"0 0 20 20"},j:[{X:"circle",K:"ytp-timed-pie-countdown__background",L:{r:"10",cx:"10",cy:"10"}},{X:"circle",K:"ytp-timed-pie-countdown__inner",L:{r:"5",cx:"10",cy:"10"}},{X:"circle",K:"ytp-timed-pie-countdown__outer",L:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",J,b,I,u);this.T=this.RI("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()}; kv=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout",L:{tabindex:"0"},j:[{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content",j:[{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",j:[{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",J,b,I);this.U=null;this.Z=this.RI("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.T=new j9;g.k(this,this.T);this.hide()}; v1o=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; a9Y=function(F){if(!F.adAvatar||!g.O(F.adAvatar,Og))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!F.headline)return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!F.adBadge||!g.O(F.adBadge,oL))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!F.adButton||!g.O(F.adButton,h7))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!F.adInfoRenderer|| !g.O(F.adInfoRenderer,PF))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;F=F.durationMilliseconds||0;return typeof F!=="number"||F<=0?(g.Td(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+F)),!1):!0}; cn=function(F,J,b){R4.call(this,F);this.api=F;this.vN=J;this.U={};F=new g.U({X:"div",Dv:["video-ads","ytp-ad-module"]});g.k(this,F);tg&&g.uG(F.element,"ytp-ads-tiny-mode");this.D=new yv(F.element);g.k(this,this.D);g.Pp(this.api,F.element,4);x8(b)&&(b=new g.U({X:"div",Dv:["ytp-ad-underlay"]}),g.k(this,b),this.T=new yv(b.element),g.k(this,this.T),g.Pp(this.api,b.element,0));g.k(this,Slv())}; e_m=function(F,J){F=g.P1(F.U,J.id,null);F==null&&g.rQ(Error("Component not found for element id: "+J.id));return F||null}; K3z=function(F){g.GN.call(this,F);var J=this;this.U=null;this.created=!1;this.T=F.J().S("h5_use_refactored_get_ad_break")?new MHa(this.player):new oz(this.player);this.Z=function(){if(J.U!=null)return J.U;var I=new pDz({Rk:fR(J.C).Rk,RP:fR(J.C).RP,G:J.player,SB:fR(J.C).SB,EQ:J.C.C.EQ,pD:fR(J.C).pD,py:J.C.C.py});J.U=I.t0;return J.U}; this.C=new NW7(this.player,this,this.T,this.Z);g.k(this,this.C);var b=F.J();!En(b)||g.TB(b)||CH(b)||(g.k(this,new cn(F,fR(this.C).vN,fR(this.C).SB)),g.k(this,new l2z(F)))}; pJ_=function(F){F.created!==F.loaded&&q_("Created and loaded are out of sync")}; ym4=function(F){g.GN.prototype.load.call(F);var J=fR(F.C).SB;try{F.player.getRootNode().classList.add("ad-created")}catch(v){q_(v instanceof Error?v:String(v))}var b=F.player.getVideoData(1),I=b&&b.videoId||"",u=b&&b.getPlayerResponse()||{},w=(!F.player.J().experiments.pW("debug_ignore_ad_placements")&&u&&u.adPlacements||[]).map(function(v){return v.adPlacementRenderer}),M=((u==null?void 0:u.adSlots)||[]).map(function(v){return g.O(v,sx)}); u=u.playerConfig&&u.playerConfig.daiConfig&&u.playerConfig.daiConfig.enableDai||!1;b&&b.MW();w=g1a(w,M,J,fR(F.C).Xg);M=b&&b.clientPlaybackNonce||"";b=b&&b.Ta||!1;if(fF(J,!0)&&b){var q;J={};(q=F.player.getVideoData())==null||q.UQ("p_cpb",(J.cc=M,J))}q=1E3*F.player.getDuration(1);mWz(F);F.C.C.wM.a6(M,q,b,w.Oh,w.Y$,w.Oh,u,I)}; mWz=function(F){var J,b;if(b=(J=F.player.getVideoData(1))==null||!J.Ta)J=F.player.J(),b=En(J)&&!g.dX(J)&&J.playerStyle==="desktop-polymer";b&&(F=F.player.getInternalApi(),F.addEventListener("updateKevlarOrC3Companion",vPz),F.addEventListener("updateEngagementPanelAction",aDz),F.addEventListener("changeEngagementPanelVisibility",eoa),window.addEventListener("yt-navigate-start",prz))}; Ug=function(F,J){J===F.fP&&(F.fP=void 0)}; iPo=function(F){var J=fR(F.C).Dg,b=J.Z().GR("SLOT_TYPE_PLAYER_BYTES",1);J=gM(J.QG.get(),1).clientPlaybackNonce;var I=!1;b=g.N(b);for(var u=b.next();!u.done;u=b.next()){u=u.value;var w=u.slotType==="SLOT_TYPE_PLAYER_BYTES"&&u.slotEntryTrigger instanceof fi?u.slotEntryTrigger.fI:void 0;w&&w===J&&(I&&q_("More than 1 preroll playerBytes slot detected",u),I=!0)}I||A7(fR(F.C).p_)}; z_3=function(F){if(Zu(fR(F.C).SB))return!0;var J="";F=g.N(fR(F.C).pD.ML.keys());for(var b=F.next();!b.done;b=F.next()){b=b.value;if(b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.BN==="core")return!0;J+=b.slotType+" "}Math.random()<.01&&q_("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:J});return!1}; NzY=function(F){F=g.N(fR(F.C).pD.ML.values());for(var J=F.next();!J.done;J=F.next())if(J.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; dJz=function(F,J,b,I,u,w){b=b===void 0?[]:b;I=I===void 0?"":I;u=u===void 0?"":u;var M=fR(F.C).SB,q=F.player.getVideoData(1);q&&q.getPlayerResponse();q&&q.MW();b=g1a(J,b,M,fR(F.C).Xg);Vt4(fR(F.C).Es,I,b.Oh,b.Y$,J,u,w)}; g1a=function(F,J,b,I){J={Oh:[],Y$:J};F=g.N(F);for(var u=F.next();!u.done;u=F.next())if((u=u.value)&&u.renderer!=null){var w=u.renderer;if(!b.G.J().S("html5_enable_vod_lasr_with_notify_pacf")){var M=void 0,q=void 0,v=void 0,a=void 0,e=I;g.O((a=w.sandwichedLinearAdRenderer)==null?void 0:a.adVideoStart,an)?(M=g.O((v=w.sandwichedLinearAdRenderer)==null?void 0:v.adVideoStart,an),M=kuk(M,e),g.CO(w.sandwichedLinearAdRenderer.adVideoStart,an,M)):g.O((q=w.linearAdSequenceRenderer)==null?void 0:q.adStart,an)&& (v=g.O((M=w.linearAdSequenceRenderer)==null?void 0:M.adStart,an),M=kuk(v,e),g.CO(w.linearAdSequenceRenderer.adStart,an,M))}J.Oh.push(u)}return J}; g.xv=function(F){if(typeof DOMParser!="undefined")return UQ(new DOMParser,Y0z(F),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.nR=function(F){g.R.call(this);this.callback=F;this.C=new Nr(0,0,.4,0,.2,1,1,1);this.delay=new g.n8(this.next,window,this);g.k(this,this.delay)}; g.l94=function(F){var J=F.J();return J.y6&&!J.T&&g.dN(J)?F.isEmbedsShortsMode()?(F=F.xK(),Math.min(F.width,F.height)>=315):!F.Ru():!1}; g.t7=function(F){g.U.call(this,{X:"div",K:"ytp-more-videos-view",L:{tabIndex:"-1"}});var J=this;this.api=F;this.U=!0;this.T=new g.s5(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.Z=this.scrollPosition=0;this.title=new g.U({X:"h2",K:"ytp-related-title",sQ:"{{title}}"});this.previous=new g.U({X:"button",Dv:["ytp-button","ytp-previous"],L:{"aria-label":"Show previous suggested videos"},j:[g.mh()]});this.V=new g.nR(function(b){J.suggestions.element.scrollLeft=-b}); this.next=new g.U({X:"button",Dv:["ytp-button","ytp-next"],L:{"aria-label":"Show more suggested videos"},j:[g.yr()]});g.k(this,this.T);this.W=F.J().Z;g.k(this,this.title);this.title.Az(this.element);this.suggestions=new g.U({X:"div",K:"ytp-suggestions"});g.k(this,this.suggestions);this.suggestions.Az(this.element);g.k(this,this.previous);this.previous.Az(this.element);this.previous.listen("click",this.fC,this);g.k(this,this.V);f9J(this);g.k(this,this.next);this.next.Az(this.element);this.next.listen("click", this.iG,this);this.T.B(this.api,"appresize",this.mO);this.T.B(this.api,"fullscreentoggled",this.Up);this.T.B(this.api,"videodatachange",this.onVideoDataChange);this.mO(this.api.mG().getPlayerSize());this.onVideoDataChange()}; f9J=function(F){for(var J={t8:0};J.t8<16;J={t8:J.t8},++J.t8){var b=new g.U({X:"a",K:"ytp-suggestion-link",L:{href:"{{link}}",target:F.api.J().N,"aria-label":"{{aria_label}}"},j:[{X:"div",K:"ytp-suggestion-image"},{X:"div",K:"ytp-suggestion-overlay",L:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},j:[{X:"div",K:"ytp-suggestion-title",sQ:"{{title}}"},{X:"div",K:"ytp-suggestion-author",sQ:"{{author_and_views}}"},{X:"div",L:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration", sQ:"{{duration}}"}]}]});g.k(F,b);var I=b.RI("ytp-suggestion-link");g.aN(I,"transitionDelay",J.t8/20+"s");F.T.B(I,"click",function(u){return function(w){var M=u.t8;if(F.U){var q=F.suggestionData[M],v=q.sessionData;F.W&&F.api.S("web_player_log_click_before_generating_ve_conversion_params")?(F.api.logClick(F.C[M].element),M=q.t4(),q={},g.jV(F.api,q),M=g.Os(M,q),g.Fy(M,F.api,w)):g.LE(w,F.api,F.W,v||void 0)&&F.api.yp(q.videoId,v,q.playlistId)}else w.preventDefault(),document.activeElement.blur()}}(J)); b.Az(F.suggestions.element);F.C.push(b);F.api.createServerVe(b.element,b)}}; W3a=function(F){if(F.api.J().S("web_player_log_click_before_generating_ve_conversion_params"))for(var J=Math.floor(-F.scrollPosition/(F.Z+8)),b=Math.min(J+F.columns,F.suggestionData.length)-1;J<=b;J++)F.api.logVisibility(F.C[J].element,!0)}; g.ZP=function(F){var J=F.api.Ua()?32:16;J=F.Y/2+J;F.next.element.style.bottom=J+"px";F.previous.element.style.bottom=J+"px";J=F.scrollPosition;var b=F.containerWidth-F.suggestionData.length*(F.Z+8);g.qr(F.element,"ytp-scroll-min",J>=0);g.qr(F.element,"ytp-scroll-max",J<=b)}; E1z=function(F){for(var J=F.suggestionData.length,b=0;b<J;++b){var I=void 0,u=void 0,w=void 0;I=F;var M=I.api.J(),q=I.suggestionData[b],v=I.C[b];w=I.api.isEmbedsShortsMode()?q.shortViewCount||"":q.shortViewCount?q.author+" \u2022 "+q.shortViewCount:q.author;v.element.style.display="";g.aN(v.RI("ytp-suggestion-link"),"display","inline-block");dWv.test(q.title)&&(v.RI("ytp-suggestion-title").dir="rtl");dWv.test(w)&&(v.RI("ytp-suggestion-author").dir="rtl");u=q.isLivePlayback?"Live":q.lengthSeconds? g.lD(q.lengthSeconds):"";var a=q.t4(I.api.isEmbedsShortsMode());if(g.dN(M)&&!M.S("web_player_log_click_before_generating_ve_conversion_params")){var e={};g.wO(I.api,"addEmbedsConversionTrackingParams",[e]);a=g.Os(a,e)}M.S("web_player_log_click_before_generating_ve_conversion_params")&&(M=(M=q.sessionData)&&M.itct)&&I.api.setTrackingParams(v.element,M);v.update({author_and_views:w,duration:u,link:a,title:q.title,aria_label:q.ariaLabel||q.title,is_live:q.isLivePlayback,aria_hidden:!!q.ariaLabel,blink_rendering_hack:g.B4|| g.fH?"will-change: opacity":void 0});u=v.RI("ytp-suggestion-image");I=I.api.isEmbedsShortsMode()?q.lr("hq2.jpg"):q.lr();u.style.backgroundImage=I?"url("+I+")":""}if(J<16)for(;J<16;++J)g.aN(F.C[J].RI("ytp-suggestion-link"),"display","none");g.ZP(F)}; Fok=[];aG=typeof Object.defineProperties=="function"?Object.defineProperty:function(F,J,b){if(F==Array.prototype||F==Object.prototype)return F;F[J]=b.value;return F}; g.q4=b3v(this);K3("Symbol",function(F){function J(w){if(this instanceof J)throw new TypeError("Symbol is not a constructor");return new b(I+(w||"")+"_"+u++,w)} function b(w,M){this.C=w;aG(this,"description",{configurable:!0,writable:!0,value:M})} if(F)return F;b.prototype.toString=function(){return this.C}; var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",u=0;return J}); K3("Symbol.iterator",function(F){if(F)return F;F=Symbol("Symbol.iterator");for(var J="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b<J.length;b++){var I=g.q4[J[b]];typeof I==="function"&&typeof I.prototype[F]!="function"&&aG(I.prototype,F,{configurable:!0,writable:!0,value:function(){return IaC(JJa(this))}})}return F}); var u73=typeof Object.create=="function"?Object.create:function(F){function J(){} J.prototype=F;return new J},jPG=function(){function F(){function b(){} new b;Reflect.construct(b,[],function(){}); return new b instanceof b} if(typeof Reflect!="undefined"&&Reflect.construct){if(F())return Reflect.construct;var J=Reflect.construct;return function(b,I,u){b=J(b,I);u&&Reflect.setPrototypeOf(b,u.prototype);return b}}return function(b,I,u){u===void 0&&(u=b); u=u73(u.prototype||Object.prototype);return Function.prototype.apply.call(b,u,I)||u}}(),GGk; if(typeof Object.setPrototypeOf=="function")GGk=Object.setPrototypeOf;else{var VTG;a:{var PcY={a:!0},BzJ={};try{BzJ.__proto__=PcY;VTG=BzJ.a;break a}catch(F){}VTG=!1}GGk=VTG?function(F,J){F.__proto__=J;if(F.__proto__!==J)throw new TypeError(F+" is not extensible");return F}:null}var p3=GGk,TzY=typeof Object.assign=="function"?Object.assign:function(F,J){for(var b=1;b<arguments.length;b++){var I=arguments[b]; if(I)for(var u in I)gY(I,u)&&(F[u]=I[u])}return F}; K3("Object.assign",function(F){return F||TzY}); mo.prototype.Y=function(F){this.U=F}; mo.prototype.return=function(F){this.T={return:F};this.C=this.D}; mo.prototype.gD=function(F){this.C=F}; K3("globalThis",function(F){return F||g.q4}); K3("Reflect",function(F){return F?F:{}}); K3("Reflect.construct",function(){return jPG}); K3("Reflect.setPrototypeOf",function(F){return F?F:p3?function(J,b){try{return p3(J,b),!0}catch(I){return!1}}:null}); K3("Promise",function(F){function J(M){this.C=0;this.T=void 0;this.U=[];this.V=!1;var q=this.Z();try{M(q.resolve,q.reject)}catch(v){q.reject(v)}} function b(){this.C=null} function I(M){return M instanceof J?M:new J(function(q){q(M)})} if(F)return F;b.prototype.U=function(M){if(this.C==null){this.C=[];var q=this;this.T(function(){q.D()})}this.C.push(M)}; var u=g.q4.setTimeout;b.prototype.T=function(M){u(M,0)}; b.prototype.D=function(){for(;this.C&&this.C.length;){var M=this.C;this.C=[];for(var q=0;q<M.length;++q){var v=M[q];M[q]=null;try{v()}catch(a){this.Z(a)}}}this.C=null}; b.prototype.Z=function(M){this.T(function(){throw M;})}; J.prototype.Z=function(){function M(a){return function(e){v||(v=!0,a.call(q,e))}} var q=this,v=!1;return{resolve:M(this.Gj),reject:M(this.D)}}; J.prototype.Gj=function(M){if(M===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(M instanceof J)this.WN(M);else{a:switch(typeof M){case "object":var q=M!=null;break a;case "function":q=!0;break a;default:q=!1}q?this.eE(M):this.W(M)}}; J.prototype.eE=function(M){var q=void 0;try{q=M.then}catch(v){this.D(v);return}typeof q=="function"?this.fW(q,M):this.W(M)}; J.prototype.D=function(M){this.Y(2,M)}; J.prototype.W=function(M){this.Y(1,M)}; J.prototype.Y=function(M,q){if(this.C!=0)throw Error("Cannot settle("+M+", "+q+"): Promise already settled in state"+this.C);this.C=M;this.T=q;this.C===2&&this.kQ();this.N()}; J.prototype.kQ=function(){var M=this;u(function(){if(M.Tj()){var q=g.q4.console;typeof q!=="undefined"&&q.error(M.T)}},1)}; J.prototype.Tj=function(){if(this.V)return!1;var M=g.q4.CustomEvent,q=g.q4.Event,v=g.q4.dispatchEvent;if(typeof v==="undefined")return!0;typeof M==="function"?M=new M("unhandledrejection",{cancelable:!0}):typeof q==="function"?M=new q("unhandledrejection",{cancelable:!0}):(M=g.q4.document.createEvent("CustomEvent"),M.initCustomEvent("unhandledrejection",!1,!0,M));M.promise=this;M.reason=this.T;return v(M)}; J.prototype.N=function(){if(this.U!=null){for(var M=0;M<this.U.length;++M)w.U(this.U[M]);this.U=null}}; var w=new b;J.prototype.WN=function(M){var q=this.Z();M.T5(q.resolve,q.reject)}; J.prototype.fW=function(M,q){var v=this.Z();try{M.call(q,v.resolve,v.reject)}catch(a){v.reject(a)}}; J.prototype.then=function(M,q){function v(p,m){return typeof p=="function"?function(y){try{a(p(y))}catch(f){e(f)}}:m} var a,e,K=new J(function(p,m){a=p;e=m}); this.T5(v(M,a),v(q,e));return K}; J.prototype.catch=function(M){return this.then(void 0,M)}; J.prototype.T5=function(M,q){function v(){switch(a.C){case 1:M(a.T);break;case 2:q(a.T);break;default:throw Error("Unexpected state: "+a.C);}} var a=this;this.U==null?w.U(v):this.U.push(v);this.V=!0}; J.resolve=I;J.reject=function(M){return new J(function(q,v){v(M)})}; J.race=function(M){return new J(function(q,v){for(var a=g.N(M),e=a.next();!e.done;e=a.next())I(e.value).T5(q,v)})}; J.all=function(M){var q=g.N(M),v=q.next();return v.done?I([]):new J(function(a,e){function K(y){return function(f){p[y]=f;m--;m==0&&a(p)}} var p=[],m=0;do p.push(void 0),m++,I(v.value).T5(K(p.length-1),e),v=q.next();while(!v.done)})}; return J}); K3("Object.setPrototypeOf",function(F){return F||p3}); K3("Symbol.dispose",function(F){return F?F:Symbol("Symbol.dispose")}); K3("SuppressedError",function(F){function J(b,I,u){if(!(this instanceof J))return new J(b,I,u);u=Error(u);"stack"in u&&(this.stack=u.stack);this.message=u.message;this.error=b;this.suppressed=I} if(F)return F;g.z(J,Error);J.prototype.name="SuppressedError";return J}); K3("Array.prototype.find",function(F){return F?F:function(J,b){return m4a(this,J,b).mZ}}); K3("WeakMap",function(F){function J(v){this.C=(q+=Math.random()+1).toString();if(v){v=g.N(v);for(var a;!(a=v.next()).done;)a=a.value,this.set(a[0],a[1])}} function b(){} function I(v){var a=typeof v;return a==="object"&&v!==null||a==="function"} function u(v){if(!gY(v,M)){var a=new b;aG(v,M,{value:a})}} function w(v){var a=Object[v];a&&(Object[v]=function(e){if(e instanceof b)return e;Object.isExtensible(e)&&u(e);return a(e)})} if(function(){if(!F||!Object.seal)return!1;try{var v=Object.seal({}),a=Object.seal({}),e=new F([[v,2],[a,3]]);if(e.get(v)!=2||e.get(a)!=3)return!1;e.delete(v);e.set(a,4);return!e.has(v)&&e.get(a)==4}catch(K){return!1}}())return F; var M="$jscomp_hidden_"+Math.random();w("freeze");w("preventExtensions");w("seal");var q=0;J.prototype.set=function(v,a){if(!I(v))throw Error("Invalid WeakMap key");u(v);if(!gY(v,M))throw Error("WeakMap key fail: "+v);v[M][this.C]=a;return this}; J.prototype.get=function(v){return I(v)&&gY(v,M)?v[M][this.C]:void 0}; J.prototype.has=function(v){return I(v)&&gY(v,M)&&gY(v[M],this.C)}; J.prototype.delete=function(v){return I(v)&&gY(v,M)&&gY(v[M],this.C)?delete v[M][this.C]:!1}; return J}); K3("Map",function(F){function J(){var q={};return q.previous=q.next=q.head=q} function b(q,v){var a=q[1];return IaC(function(){if(a){for(;a.head!=q[1];)a=a.previous;for(;a.next!=a.head;)return a=a.next,{done:!1,value:v(a)};a=null}return{done:!0,value:void 0}})} function I(q,v){var a=v&&typeof v;a=="object"||a=="function"?w.has(v)?a=w.get(v):(a=""+ ++M,w.set(v,a)):a="p_"+v;var e=q[0][a];if(e&&gY(q[0],a))for(q=0;q<e.length;q++){var K=e[q];if(v!==v&&K.key!==K.key||v===K.key)return{id:a,list:e,index:q,entry:K}}return{id:a,list:e,index:-1,entry:void 0}} function u(q){this[0]={};this[1]=J();this.size=0;if(q){q=g.N(q);for(var v;!(v=q.next()).done;)v=v.value,this.set(v[0],v[1])}} if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var q=Object.seal({x:4}),v=new F(g.N([[q,"s"]]));if(v.get(q)!="s"||v.size!=1||v.get({x:4})||v.set({x:4},"t")!=v||v.size!=2)return!1;var a=v.entries(),e=a.next();if(e.done||e.value[0]!=q||e.value[1]!="s")return!1;e=a.next();return e.done||e.value[0].x!=4||e.value[1]!="t"||!a.next().done?!1:!0}catch(K){return!1}}())return F; var w=new WeakMap;u.prototype.set=function(q,v){q=q===0?0:q;var a=I(this,q);a.list||(a.list=this[0][a.id]=[]);a.entry?a.entry.value=v:(a.entry={next:this[1],previous:this[1].previous,head:this[1],key:q,value:v},a.list.push(a.entry),this[1].previous.next=a.entry,this[1].previous=a.entry,this.size++);return this}; u.prototype.delete=function(q){q=I(this,q);return q.entry&&q.list?(q.list.splice(q.index,1),q.list.length||delete this[0][q.id],q.entry.previous.next=q.entry.next,q.entry.next.previous=q.entry.previous,q.entry.head=null,this.size--,!0):!1}; u.prototype.clear=function(){this[0]={};this[1]=this[1].previous=J();this.size=0}; u.prototype.has=function(q){return!!I(this,q).entry}; u.prototype.get=function(q){return(q=I(this,q).entry)&&q.value}; u.prototype.entries=function(){return b(this,function(q){return[q.key,q.value]})}; u.prototype.keys=function(){return b(this,function(q){return q.key})}; u.prototype.values=function(){return b(this,function(q){return q.value})}; u.prototype.forEach=function(q,v){for(var a=this.entries(),e;!(e=a.next()).done;)e=e.value,q.call(v,e[1],e[0],this)}; u.prototype[Symbol.iterator]=u.prototype.entries;var M=0;return u}); K3("Set",function(F){function J(b){this.C=new Map;if(b){b=g.N(b);for(var I;!(I=b.next()).done;)this.add(I.value)}this.size=this.C.size} if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),I=new F(g.N([b]));if(!I.has(b)||I.size!=1||I.add(b)!=I||I.size!=1||I.add({x:4})!=I||I.size!=2)return!1;var u=I.entries(),w=u.next();if(w.done||w.value[0]!=b||w.value[1]!=b)return!1;w=u.next();return w.done||w.value[0]==b||w.value[0].x!=4||w.value[1]!=w.value[0]?!1:u.next().done}catch(M){return!1}}())return F; J.prototype.add=function(b){b=b===0?0:b;this.C.set(b,b);this.size=this.C.size;return this}; J.prototype.delete=function(b){b=this.C.delete(b);this.size=this.C.size;return b}; J.prototype.clear=function(){this.C.clear();this.size=0}; J.prototype.has=function(b){return this.C.has(b)}; J.prototype.entries=function(){return this.C.entries()}; J.prototype.values=function(){return this.C.values()}; J.prototype.keys=J.prototype.values;J.prototype[Symbol.iterator]=J.prototype.values;J.prototype.forEach=function(b,I){var u=this;this.C.forEach(function(w){return b.call(I,w,w,u)})}; return J}); K3("Math.log2",function(F){return F?F:function(J){return Math.log(J)/Math.LN2}}); K3("Object.values",function(F){return F?F:function(J){var b=[],I;for(I in J)gY(J,I)&&b.push(J[I]);return b}}); K3("Object.is",function(F){return F?F:function(J,b){return J===b?J!==0||1/J===1/b:J!==J&&b!==b}}); K3("Array.prototype.includes",function(F){return F?F:function(J,b){var I=this;I instanceof String&&(I=String(I));var u=I.length;b=b||0;for(b<0&&(b=Math.max(b+u,0));b<u;b++){var w=I[b];if(w===J||Object.is(w,J))return!0}return!1}}); K3("String.prototype.includes",function(F){return F?F:function(J,b){return T_(this,J,"includes").indexOf(J,b||0)!==-1}}); K3("Array.from",function(F){return F?F:function(J,b,I){b=b!=null?b:function(q){return q}; var u=[],w=typeof Symbol!="undefined"&&Symbol.iterator&&J[Symbol.iterator];if(typeof w=="function"){J=w.call(J);for(var M=0;!(w=J.next()).done;)u.push(b.call(I,w.value,M++))}else for(w=J.length,M=0;M<w;M++)u.push(b.call(I,J[M],M));return u}}); K3("Object.entries",function(F){return F?F:function(J){var b=[],I;for(I in J)gY(J,I)&&b.push([I,J[I]]);return b}}); K3("Number.isFinite",function(F){return F?F:function(J){return typeof J!=="number"?!1:!isNaN(J)&&J!==Infinity&&J!==-Infinity}}); K3("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); K3("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); K3("Number.isInteger",function(F){return F?F:function(J){return Number.isFinite(J)?J===Math.floor(J):!1}}); K3("Number.isSafeInteger",function(F){return F?F:function(J){return Number.isInteger(J)&&Math.abs(J)<=Number.MAX_SAFE_INTEGER}}); K3("String.prototype.startsWith",function(F){return F?F:function(J,b){var I=T_(this,J,"startsWith");J+="";var u=I.length,w=J.length;b=Math.max(0,Math.min(b|0,I.length));for(var M=0;M<w&&b<u;)if(I[b++]!=J[M++])return!1;return M>=w}}); K3("String.prototype.endsWith",function(F){return F?F:function(J,b){var I=T_(this,J,"endsWith");J+="";b===void 0&&(b=I.length);b=Math.max(0,Math.min(b|0,I.length));for(var u=J.length;u>0&&b>0;)if(I[--b]!=J[--u])return!1;return u<=0}}); K3("Array.prototype.entries",function(F){return F?F:function(){return Sz(this,function(J,b){return[J,b]})}}); K3("Math.imul",function(F){return F?F:function(J,b){J=Number(J);b=Number(b);var I=J&65535,u=b&65535;return I*u+((J>>>16&65535)*u+I*(b>>>16&65535)<<16>>>0)|0}}); K3("Math.trunc",function(F){return F?F:function(J){J=Number(J);if(isNaN(J)||J===Infinity||J===-Infinity||J===0)return J;var b=Math.floor(Math.abs(J));return J<0?-b:b}}); K3("Math.clz32",function(F){return F?F:function(J){J=Number(J)>>>0;if(J===0)return 32;var b=0;(J&4294901760)===0&&(J<<=16,b+=16);(J&4278190080)===0&&(J<<=8,b+=8);(J&4026531840)===0&&(J<<=4,b+=4);(J&3221225472)===0&&(J<<=2,b+=2);(J&2147483648)===0&&b++;return b}}); K3("Math.log10",function(F){return F?F:function(J){return Math.log(J)/Math.LN10}}); K3("Number.isNaN",function(F){return F?F:function(J){return typeof J==="number"&&isNaN(J)}}); K3("Array.prototype.keys",function(F){return F?F:function(){return Sz(this,function(J){return J})}}); K3("Array.prototype.values",function(F){return F?F:function(){return Sz(this,function(J,b){return b})}}); K3("Array.prototype.fill",function(F){return F?F:function(J,b,I){var u=this.length||0;b<0&&(b=Math.max(0,u+b));if(I==null||I>u)I=u;I=Number(I);I<0&&(I=Math.max(0,u+I));for(b=Number(b||0);b<I;b++)this[b]=J;return this}}); K3("Int8Array.prototype.fill",sm);K3("Uint8Array.prototype.fill",sm);K3("Uint8ClampedArray.prototype.fill",sm);K3("Int16Array.prototype.fill",sm);K3("Uint16Array.prototype.fill",sm);K3("Int32Array.prototype.fill",sm);K3("Uint32Array.prototype.fill",sm);K3("Float32Array.prototype.fill",sm);K3("Float64Array.prototype.fill",sm); K3("Object.fromEntries",function(F){return F?F:function(J){var b={};if(!(Symbol.iterator in J))throw new TypeError(""+J+" is not iterable");J=J[Symbol.iterator].call(J);for(var I=J.next();!I.done;I=J.next()){I=I.value;if(Object(I)!==I)throw new TypeError("iterable for fromEntries should yield objects");b[I[0]]=I[1]}return b}}); K3("String.prototype.replaceAll",function(F){return F?F:function(J,b){if(J instanceof RegExp&&!J.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return J instanceof RegExp?this.replace(J,b):this.replace(new RegExp(String(J).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),b)}}); K3("String.prototype.repeat",function(F){return F?F:function(J){var b=T_(this,null,"repeat");if(J<0||J>1342177279)throw new RangeError("Invalid count value");J|=0;for(var I="";J;)if(J&1&&(I+=b),J>>>=1)b+=b;return I}}); K3("Promise.prototype.finally",function(F){return F?F:function(J){return this.then(function(b){return Promise.resolve(J()).then(function(){return b})},function(b){return Promise.resolve(J()).then(function(){throw b; })})}}); K3("String.prototype.padStart",function(F){return F?F:function(J,b){var I=T_(this,null,"padStart");J-=I.length;b=b!==void 0?String(b):" ";return(J>0&&b?b.repeat(Math.ceil(J/b.length)).substring(0,J):"")+I}}); K3("Array.prototype.findIndex",function(F){return F?F:function(J,b){return m4a(this,J,b).zy}}); K3("Math.sign",function(F){return F?F:function(J){J=Number(J);return J===0||isNaN(J)?J:J>0?1:-1}}); K3("WeakSet",function(F){function J(b){this.C=new WeakMap;if(b){b=g.N(b);for(var I;!(I=b.next()).done;)this.add(I.value)}} if(function(){if(!F||!Object.seal)return!1;try{var b=Object.seal({}),I=Object.seal({}),u=new F([b]);if(!u.has(b)||u.has(I))return!1;u.delete(b);u.add(I);return!u.has(b)&&u.has(I)}catch(w){return!1}}())return F; J.prototype.add=function(b){this.C.set(b,!0);return this}; J.prototype.has=function(b){return this.C.has(b)}; J.prototype.delete=function(b){return this.C.delete(b)}; return J}); K3("Array.prototype.copyWithin",function(F){function J(b){b=Number(b);return b===Infinity||b===-Infinity?b:b|0} return F?F:function(b,I,u){var w=this.length;b=J(b);I=J(I);u=u===void 0?w:J(u);b=b<0?Math.max(w+b,0):Math.min(b,w);I=I<0?Math.max(w+I,0):Math.min(I,w);u=u<0?Math.max(w+u,0):Math.min(u,w);if(b<I)for(;I<u;)I in this?this[b++]=this[I++]:(delete this[b++],I++);else for(u=Math.min(u,w+I-b),b+=u-I;u>I;)--u in this?this[--b]=this[u]:delete this[--b];return this}}); K3("Int8Array.prototype.copyWithin",YC);K3("Uint8Array.prototype.copyWithin",YC);K3("Uint8ClampedArray.prototype.copyWithin",YC);K3("Int16Array.prototype.copyWithin",YC);K3("Uint16Array.prototype.copyWithin",YC);K3("Int32Array.prototype.copyWithin",YC);K3("Uint32Array.prototype.copyWithin",YC);K3("Float32Array.prototype.copyWithin",YC);K3("Float64Array.prototype.copyWithin",YC);K3("Array.prototype.at",function(F){return F?F:$C}); K3("Int8Array.prototype.at",C3);K3("Uint8Array.prototype.at",C3);K3("Uint8ClampedArray.prototype.at",C3);K3("Int16Array.prototype.at",C3);K3("Uint16Array.prototype.at",C3);K3("Int32Array.prototype.at",C3);K3("Uint32Array.prototype.at",C3);K3("Float32Array.prototype.at",C3);K3("Float64Array.prototype.at",C3);K3("String.prototype.at",function(F){return F?F:$C}); K3("Array.prototype.findLastIndex",function(F){return F?F:function(J,b){return yJo(this,J,b).zy}}); K3("Int8Array.prototype.findLastIndex",X7);K3("Uint8Array.prototype.findLastIndex",X7);K3("Uint8ClampedArray.prototype.findLastIndex",X7);K3("Int16Array.prototype.findLastIndex",X7);K3("Uint16Array.prototype.findLastIndex",X7);K3("Int32Array.prototype.findLastIndex",X7);K3("Uint32Array.prototype.findLastIndex",X7);K3("Float32Array.prototype.findLastIndex",X7);K3("Float64Array.prototype.findLastIndex",X7);K3("Number.parseInt",function(F){return F||parseInt});var nu,xC,i3a;nu=nu||{};g.Qz=this||self;xC="closure_uid_"+(Math.random()*1E9>>>0);i3a=0;g.z(uW,Error);g.R.prototype.iJ=!1;g.R.prototype.iR=function(){return this.iJ}; g.R.prototype.dispose=function(){this.iJ||(this.iJ=!0,this.X_())}; g.R.prototype[Symbol.dispose]=function(){this.dispose()}; g.R.prototype.addOnDisposeCallback=function(F,J){this.iJ?J!==void 0?F.call(J):F():(this.In||(this.In=[]),J&&(F=F.bind(J)),this.In.push(F))}; g.R.prototype.X_=function(){if(this.In)for(;this.In.length;)this.In.shift()()};var d47;g.z(em,g.R);em.prototype.share=function(){if(this.iR())throw Error("E:AD");this.Z++;return this}; em.prototype.dispose=function(){--this.Z||g.R.prototype.dispose.call(this)}; d47=Symbol.dispose;ECk.prototype.Ic=function(F,J){this.C.Ic("/client_streamz/bg/frs",F,J)}; jGa.prototype.Ic=function(F,J,b,I,u,w){this.C.Ic("/client_streamz/bg/wrl",F,J,b,I,u,w)}; G_Y.prototype.C=function(F,J){this.U.ge("/client_streamz/bg/ec",F,J)}; Vzo.prototype.Ic=function(F,J,b,I){this.C.Ic("/client_streamz/bg/el",F,J,b,I)}; PkG.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/cec",F,J,b)}; BY4.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/po/csc",F,J,b)}; TYJ.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/po/ctav",F,J,b)}; rJ_.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/po/cwsc",F,J,b)};g.Fb(iW,Error);iW.prototype.name="CustomError";var bGG;var Y4=void 0,sq,SXm=typeof TextDecoder!=="undefined",Ckk,$44=typeof String.prototype.isWellFormed==="function",YmG=typeof TextEncoder!=="undefined";var GV=String.prototype.trim?function(F){return F.trim()}:function(F){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(F)[1]},BUY=/&/g,TUz=/</g,r_z=/>/g,SFa=/"/g,sFv=/'/g,YFz=/\x00/g,Pvv=/[\x00&<>"']/;var rmv=Om(1,!0),TV=Om(610401301,!1);Om(899588437,!1);var SBC=Om(725719775,!1);Om(651175828,!1);Om(722764542,!1);Om(2147483644,!1);Om(2147483645,!1);Om(2147483646,rmv);Om(2147483647,!0);var r5=!!g.kC("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Sm,sPC=g.Qz.navigator;Sm=sPC?sPC.userAgentData||null:null;var Z3J,Gi,Bc;Z3J=Array.prototype.indexOf?function(F,J){return Array.prototype.indexOf.call(F,J,void 0)}:function(F,J){if(typeof F==="string")return typeof J!=="string"||J.length!=1?-1:F.indexOf(J,0); for(var b=0;b<F.length;b++)if(b in F&&F[b]===J)return b;return-1}; g.YB4=Array.prototype.lastIndexOf?function(F,J){return Array.prototype.lastIndexOf.call(F,J,F.length-1)}:function(F,J){var b=F.length-1; b<0&&(b=Math.max(0,F.length+b));if(typeof F==="string")return typeof J!=="string"||J.length!=1?-1:F.lastIndexOf(J,b);for(;b>=0;b--)if(b in F&&F[b]===J)return b;return-1}; g.gy=Array.prototype.forEach?function(F,J,b){Array.prototype.forEach.call(F,J,b)}:function(F,J,b){for(var I=F.length,u=typeof F==="string"?F.split(""):F,w=0;w<I;w++)w in u&&J.call(b,u[w],w,F)}; g.qN=Array.prototype.filter?function(F,J,b){return Array.prototype.filter.call(F,J,b)}:function(F,J,b){for(var I=F.length,u=[],w=0,M=typeof F==="string"?F.split(""):F,q=0;q<I;q++)if(q in M){var v=M[q]; J.call(b,v,q,F)&&(u[w++]=v)}return u}; g.EG=Array.prototype.map?function(F,J,b){return Array.prototype.map.call(F,J,b)}:function(F,J,b){for(var I=F.length,u=Array(I),w=typeof F==="string"?F.split(""):F,M=0;M<I;M++)M in w&&(u[M]=J.call(b,w[M],M,F)); return u}; Gi=Array.prototype.reduce?function(F,J,b){return Array.prototype.reduce.call(F,J,b)}:function(F,J,b){var I=b; (0,g.gy)(F,function(u,w){I=J.call(void 0,I,u,w,F)}); return I}; Bc=Array.prototype.some?function(F,J){return Array.prototype.some.call(F,J,void 0)}:function(F,J){for(var b=F.length,I=typeof F==="string"?F.split(""):F,u=0;u<b;u++)if(u in I&&J.call(void 0,I[u],u,F))return!0; return!1}; g.jw=Array.prototype.every?function(F,J,b){return Array.prototype.every.call(F,J,b)}:function(F,J,b){for(var I=F.length,u=typeof F==="string"?F.split(""):F,w=0;w<I;w++)if(w in u&&!J.call(b,u[w],w,F))return!1; return!0};yI[" "]=function(){};var eu,xi,SIa,$Wa,Cc7,XJJ,lb,tg,QPo;g.fH=Cz();g.K6=k_J();g.c$=YL("Edge");g.x2=g.c$||g.K6;eu=YL("Gecko")&&!(jm(g.Bk(),"WebKit")&&!YL("Edge"))&&!(YL("Trident")||YL("MSIE"))&&!YL("Edge");g.xM=jm(g.Bk(),"WebKit")&&!YL("Edge");xi=he();SIa=nCm();g.Z$=x4z();$Wa=O1();Cc7=YL("iPad");XJJ=YL("iPod");lb=ob();tg=jm(g.Bk(),"KaiOS"); a:{var R_v="",DW_=function(){var F=g.Bk();if(eu)return/rv:([^\);]+)(\)|;)/.exec(F);if(g.c$)return/Edge\/([\d\.]+)/.exec(F);if(g.K6)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F);if(g.xM)return/WebKit\/(\S+)/.exec(F);if(g.fH)return/(?:Version)[ \/]?(\S+)/.exec(F)}(); DW_&&(R_v=DW_?DW_[1]:"");if(g.K6){var Hn,kG7=g.Qz.document;Hn=kG7?kG7.documentMode:void 0;if(Hn!=null&&Hn>parseFloat(R_v)){QPo=String(Hn);break a}}QPo=R_v}var vLo=QPo,Ae3={};var x6,nl;g.Yj=Xb();x6=O1()||YL("iPod");nl=YL("iPad");g.Wu=oCC();g.B4=Rb();g.ia=DH()&&!ob();var etC={},ff=null,KRG=eu||g.xM||typeof g.Qz.btoa=="function";var fH_=typeof Uint8Array!=="undefined",m83=!g.K6&&typeof btoa==="function",N5G=/[-_.]/g,izo={"-":"+",_:"/",".":"="},EX={};dy.prototype.isEmpty=function(){return this.C==null}; dy.prototype.sizeBytes=function(){var F=Gw(this);return F?F.length:0}; var d8J;var jbC=void 0;var ry=typeof Symbol==="function"&&typeof Symbol()==="symbol",GV4=new Set,OPC=Tw("jas",void 0,!0,!0),IM=Tw(void 0,"1oa",!0),oy=Tw(void 0,Symbol(),!0),ifG=Tw(void 0,"0actk"),Zz4=Tw(void 0,"8utk");Math.max.apply(Math,g.W(Object.values({HD_:1,Qcj:2,lY_:4,DQ_:8,qYG:16,RkN:32,hVI:64,acI:128,JDE:256,o0z:512,SkW:1024,E0_:2048,FJQ:4096,l2G:8192,p9R:16384})));var SJ=ry?OPC:"z_W",PWa={z_W:{value:0,configurable:!0,writable:!0,enumerable:!1}},Vm3=Object.defineProperties;var j2={},UF,o1z=[];YK(o1z,55);UF=Object.freeze(o1z);var WFo=Object.freeze({});var S1v=UX(function(F){return typeof F==="number"}),reo=UX(function(F){return typeof F==="string"}),sbY=UX(function(F){return typeof F==="boolean"}),bf=UX(function(F){return F!=null&&typeof F==="object"&&typeof F.then==="function"}),J8=UX(function(F){return!!F&&(typeof F==="object"||typeof F==="function")});var xK=typeof g.Qz.BigInt==="function"&&typeof g.Qz.BigInt(0)==="bigint";var fI=UX(function(F){return xK?F>=h_k&&F<=cm_:F[0]==="-"?Y1z(F,UW7):Y1z(F,xW4)}),UW7=Number.MIN_SAFE_INTEGER.toString(),h_k=xK?BigInt(Number.MIN_SAFE_INTEGER):void 0,xW4=Number.MAX_SAFE_INTEGER.toString(),cm_=xK?BigInt(Number.MAX_SAFE_INTEGER):void 0;var PVm=typeof Uint8Array.prototype.slice==="function",tL=0,Ze=0,bIz;var mL=typeof BigInt==="function"?BigInt.asIntN:void 0,nLJ=typeof BigInt==="function"?BigInt.asUintN:void 0,za=Number.isSafeInteger,qu=Number.isFinite,iv=Math.trunc,Rt7=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var P3;var Ta,gK3;g.A=Gwz.prototype;g.A.init=function(F,J,b,I){I=I===void 0?{}:I;this.FJ=I.FJ===void 0?!1:I.FJ;F&&(F=fG(F),this.U=F.buffer,this.D=F.gk,this.Z=J||0,this.T=b!==void 0?this.Z+b:this.U.length,this.C=this.Z)}; g.A.free=function(){this.clear();Bo.length<100&&Bo.push(this)}; g.A.clear=function(){this.U=null;this.D=!1;this.C=this.T=this.Z=0;this.FJ=!1}; g.A.reset=function(){this.C=this.Z}; g.A.AF=function(){var F=this.W;F||(F=this.U,F=this.W=new DataView(F.buffer,F.byteOffset,F.byteLength));return F}; var Bo=[];Tb.prototype.free=function(){this.C.clear();this.U=this.Z=-1;LR.length<100&&LR.push(this)}; Tb.prototype.reset=function(){this.C.reset();this.T=this.C.C;this.U=this.Z=-1}; var LR=[];g.A=CG.prototype;g.A.toJSON=function(){return B3(this)}; g.A.G7=function(F){return JSON.stringify(B3(this,F))}; g.A.clone=function(){var F=this.Z7;return new this.constructor(Yp(F,F[SJ]|0,!1))}; g.A.gk=function(){return!!((this.Z7[SJ]|0)&2)}; g.A.DM=j2;g.A.toString=function(){return this.Z7.toString()};var $LG,XWz;RM.prototype.length=function(){return this.C.length}; RM.prototype.end=function(){var F=this.C;this.C=[];return F};var x4=Uq(),n1a=Uq(),tTm=Uq(),ZPz=Uq(),HP_=Uq(),L3k=Uq(),FoW=Uq(),JJH=Uq();var ULC=tx(function(F,J,b,I,u){if(F.U!==2)return!1;SD(F,uP(J,I,b),u);return!0},cL4),xL3=tx(function(F,J,b,I,u){if(F.U!==2)return!1; SD(F,uP(J,I,b),u);return!0},cL4),w3=Symbol(),JQ=Symbol(),tJo=Symbol(),LF4=Symbol(),Zw,Ho;var b3t=q9(function(F,J,b){if(F.U!==1)return!1;a0(J,b,VH(F.C));return!0},ep,FoW),IaL=q9(function(F,J,b){if(F.U!==1)return!1; F=VH(F.C);a0(J,b,F===0?void 0:F);return!0},ep,FoW),u7z=q9(function(F,J,b,I){if(F.U!==1)return!1; Jx(J,b,I,VH(F.C));return!0},ep,FoW),waR=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,d4(F.C));return!0},K5,HP_),Mze=q9(function(F,J,b){if(F.U!==0)return!1; F=d4(F.C);a0(J,b,F===0?void 0:F);return!0},K5,HP_),AJe=q9(function(F,J,b,I){if(F.U!==0)return!1; Jx(J,b,I,d4(F.C));return!0},K5,HP_),qmU=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,Eq(F.C));return!0},p5,ZPz),vCR=q9(function(F,J,b){if(F.U!==0)return!1; F=Eq(F.C);a0(J,b,F===0?void 0:F);return!0},p5,ZPz),aaW=q9(function(F,J,b,I){if(F.U!==0)return!1; Jx(J,b,I,Eq(F.C));return!0},p5,ZPz),evz=q9(function(F,J,b){if(F.U!==1)return!1; a0(J,b,Gb(F.C));return!0},function(F,J,b){oK4(F,b,tmv(J))},L3k),Kom=v9(function(F,J,b){if(F.U!==1&&F.U!==2)return!1; J=t_(J,J[SJ]|0,b,!1);if(F.U==2)for(b=Eq(F.C)>>>0,b=F.C.C+b;F.C.C<b;)J.push(Gb(F.C));else J.push(Gb(F.C));return!0},function(F,J,b){J=AQ(tmv,J,!1); if(J!=null)for(var I=0;I<J.length;I++)oK4(F,b,J[I])},L3k),pat=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,Po(F.C));return!0},Iz_,n1a),gCe=q9(function(F,J,b,I){if(F.U!==0)return!1; Jx(J,b,I,Po(F.C));return!0},Iz_,n1a),F6=q9(function(F,J,b){if(F.U!==2)return!1; a0(J,b,$4(F));return!0},ueG,tTm),m4k=v9(function(F,J,b){if(F.U!==2)return!1; F=$4(F);t_(J,J[SJ]|0,b,!1).push(F);return!0},function(F,J,b){J=AQ(dU,J,!0); if(J!=null)for(var I=0;I<J.length;I++){var u=F,w=b,M=J[I];M!=null&&co(u,w,Xao(M))}},tTm),yJR=q9(function(F,J,b,I){if(F.U!==2)return!1; Jx(J,b,I,$4(F));return!0},ueG,tTm),JF,bj=void 0; bj=bj===void 0?x4:bj;JF=new nG(function(F,J,b,I,u){if(F.U!==2)return!1;I=sF(void 0,I,!0);t_(J,J[SJ]|0,b,!0).push(I);SD(F,I,u);return!0},function(F,J,b,I,u){if(Array.isArray(J))for(var w=0;w<J.length;w++)w34(F,J[w],b,I,u)},bj); var IB=tx(function(F,J,b,I,u,w){if(F.U!==2)return!1;LI(J,J[SJ]|0,w,b);J=uP(J,I,b);SD(F,J,u);return!0},w34),i3k=q9(function(F,J,b){if(F.U!==2)return!1; a0(J,b,syY(F));return!0},function(F,J,b){J=HzJ(J); J!=null&&co(F,b,fG(J).buffer)},JJH),zvL=v9(function(F,J,b){if(F.U!==2)return!1; F=syY(F);t_(J,J[SJ]|0,b,!1).push(F);return!0},function(F,J,b){J=AQ(HzJ,J,!1); if(J!=null)for(var I=0;I<J.length;I++){var u=F,w=b,M=J[I];M!=null&&co(u,w,fG(M).buffer)}},JJH),uj=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,Eq(F.C)>>>0);return!0},function(F,J,b){J=KI(J); J!=null&&J!=null&&(hx(F,b,0),k4(F.C,J))},Uq()),NYL=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,Eq(F.C));return!0},function(F,J,b){J=e2(J); J!=null&&(J=parseInt(J,10),hx(F,b,0),Rmz(F.C,J))},Uq());g.z(A_Y,CG);g.z(mk,CG);var lw=[1,2,3];var laR=[0,lw,yJR,aaW,gCe];var fae=[0,JF,[0,b3t,waR]];g.z(yG,CG);var N9=[1,2,3];var Wob=[0,N9,AJe,u7z,IB,fae];g.z(iw,CG);var d4b=[0,JF,laR,Wob];var ECW=[0,[1,2,3],IB,[0,F6,-1,pat],IB,[0,F6,-1,qmU,pat],IB,[0,F6]];g.z(zy,CG);zy.prototype.LN=function(){var F=c3(this,3,dU,3,!0);OX(F);return F[void 0]};zy.prototype.C=M2o([0,F6,ECW,m4k,JF,d4b,evz,Kom]);g.z(vpz,CG);var zWa=globalThis.trustedTypes,f5;d3.prototype.toString=function(){return this.C+""};Gy.prototype.toString=function(){return this.C}; var fzG=new Gy("about:invalid#zClosurez");var cU_=B9("tel"),oN4=B9("sms"),lz_=[B9("data"),B9("http"),B9("https"),B9("mailto"),B9("ftp"),new P9(function(F){return/^[^:]*([/?#]|$)/.test(F)})],WLY=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;sQ.prototype.toString=function(){return this.C+""};QG.prototype.toString=function(){return this.C+""};OQ.prototype.toString=function(){return this.C};var hQ={};g.jGk=String.prototype.repeat?function(F,J){return F.repeat(J)}:function(F,J){return Array(J+1).join(F)};g.A=Fl.prototype;g.A.isEnabled=function(){if(!g.Qz.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{xD:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.A.set=function(F,J,b){var I=!1;if(typeof b==="object"){var u=b.dkW;I=b.secure||!1;var w=b.domain||void 0;var M=b.path||void 0;var q=b.xD}if(/[;=\s]/.test(F))throw Error('Invalid cookie name "'+F+'"');if(/[;\r\n]/.test(J))throw Error('Invalid cookie value "'+J+'"');q===void 0&&(q=-1);b=w?";domain="+w:"";M=M?";path="+M:"";I=I?";secure":"";q=q<0?"":q==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+q*1E3)).toUTCString();this.C.cookie=F+"="+J+b+M+q+I+(u!=null?";samesite="+ u:"")}; g.A.get=function(F,J){for(var b=F+"=",I=(this.C.cookie||"").split(";"),u=0,w;u<I.length;u++){w=GV(I[u]);if(w.lastIndexOf(b,0)==0)return w.slice(b.length);if(w==F)return""}return J}; g.A.remove=function(F,J,b){var I=this.get(F)!==void 0;this.set(F,"",{xD:0,path:J,domain:b});return I}; g.A.b7=function(){return JD(this).keys}; g.A.td=function(){return JD(this).values}; g.A.isEmpty=function(){return!this.C.cookie}; g.A.clear=function(){for(var F=JD(this).keys,J=F.length-1;J>=0;J--)this.remove(F[J])}; var s6=new Fl(typeof document=="undefined"?null:document);be.prototype.compress=function(F){var J,b,I,u;return g.S(function(w){switch(w.C){case 1:return J=new CompressionStream("gzip"),b=(new Response(J.readable)).arrayBuffer(),I=J.writable.getWriter(),g.T(w,I.write((new TextEncoder).encode(F)),2);case 2:return g.T(w,I.close(),3);case 3:return u=Uint8Array,g.T(w,b,4);case 4:return w.return(new u(w.U))}})}; be.prototype.isSupported=function(F){return F<1024?!1:typeof CompressionStream!=="undefined"};g.z(If,CG);ue.prototype.setInterval=function(F){this.intervalMs=F;this.bC&&this.enabled?(this.stop(),this.start()):this.bC&&this.stop()}; ue.prototype.start=function(){var F=this;this.enabled=!0;this.bC||(this.bC=setTimeout(function(){F.tick()},this.intervalMs),this.U=this.C())}; ue.prototype.stop=function(){this.enabled=!1;this.bC&&(clearTimeout(this.bC),this.bC=void 0)}; ue.prototype.tick=function(){var F=this;if(this.enabled){var J=Math.max(this.C()-this.U,0);J<this.intervalMs*.8?this.bC=setTimeout(function(){F.tick()},this.intervalMs-J):(this.bC&&(clearTimeout(this.bC),this.bC=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.bC=void 0};g.z(wl,CG);g.z(MD,CG);g.A=g.K$.prototype;g.A.clone=function(){return new g.K$(this.x,this.y)}; g.A.Hg=function(F){return F instanceof g.K$&&p$(this,F)}; g.A.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.A.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.A.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.A.scale=function(F,J){this.x*=F;this.y*=typeof J==="number"?J:F;return this};g.A=g.gl.prototype;g.A.clone=function(){return new g.gl(this.width,this.height)}; g.A.aspectRatio=function(){return this.width/this.height}; g.A.isEmpty=function(){return!yj(this)}; g.A.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.A.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.A.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.A.scale=function(F,J){this.width*=F;this.height*=typeof J==="number"?J:F;return this};var Uu7="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");YM.prototype.toString=function(){return this.C}; var sa={};new YM(sa,"");var npC=/^[a-z][a-z\d-]*$/i,t27="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),HIo="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),FC4=["action","formaction","href"];var Iwk={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.A=C$.prototype;g.A.Pb=function(F){return Rf(this.C,F)}; g.A.getElementsByTagName=function(F,J){return(J||this.C).getElementsByTagName(String(F))}; g.A.RI=function(F){return g.c1(F,this.C)}; g.A.setProperties=Ua;g.A.createElement=function(F){return tD(this.C,F)}; g.A.appendChild=g.F9;g.A.append=function(F,J){Axz(Xl(F),F,arguments,1)}; g.A.canHaveChildren=function(F){if(F.nodeType!=1)return!1;switch(F.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.A.removeNode=g.ID;g.A.getChildren=function(F){return F.children!=void 0?F.children:Array.prototype.filter.call(F.childNodes,function(J){return J.nodeType==1})}; g.A.contains=g.uB;g.z(qI,CG);qI.prototype.Go=function(){return g4(this,1)};g.z(vz,CG);g.z(aD,CG);g.z(eX,CG);var elz=["platform","platformVersion","architecture","model","uaFullVersion"],pb=new aD,Kb=null;g.z(gK,CG);g.z(po4,CG);g.z(yx,CG);g.z(iB,CG);iB.prototype.S=function(){return w4(this,po4,7)!==void 0}; iB.prototype.kM=function(){return MX(this,If,16)};g.z(zE,CG);zE.prototype.Cf=function(F){return zb(this,2,F)};NI.prototype.Cf=function(F){this.C.Cf(F);return this}; NI.prototype.build=function(F,J,b,I,u,w){J=J===void 0?0:J;b=b===void 0?0:b;I=I===void 0?null:I;u=u===void 0?0:u;w=w===void 0?0:w;var M=MX(this.C,gK,1);if(w4(M,eX,11)!==void 0){M=fb(this);var q=new qI;q=zb(q,1,this.U);q=RF(q,2,A_(this.isFinal));b=RF(q,3,aF(b>0?b:void 0));b=RF(b,4,aF(u>0?u:void 0));b=RF(b,5,aF(w>0?w:void 0));u=b.Z7;w=u[SJ]|0;b=w&2?b:new b.constructor(Yp(u,w,!0));Ax(M,qI,10,b)}M=this.C.clone();b=Date.now().toString();M=RF(M,4,lv(b));F=vo(M,iB,3,F.slice());I&&(M=new wl,I=RF(M,13,aF(I)), M=new MD,I=Ax(M,wl,2,I),M=new yx,I=Ax(M,MD,1,I),I=zb(I,2,9),Ax(F,yx,18,I));J&&mC(F,14,J);return F};var $Xa=function(){if(!g.Qz.addEventListener||!Object.defineProperty)return!1;var F=!1,J=Object.defineProperty({},"passive",{get:function(){F=!0}}); try{var b=function(){}; g.Qz.addEventListener("test",b,J);g.Qz.removeEventListener("test",b,J)}catch(I){}return F}();var gNY=iGz("AnimationEnd"),uX=iGz("TransitionEnd");g.Wz.prototype.U=0;g.Wz.prototype.reset=function(){this.C=this.T=this.Z;this.U=0}; g.Wz.prototype.getValue=function(){return this.T};g.z(zlY,CG);var G_5=g3(zlY);g.z(N47,CG);var wt=new function(){this.C=N47;this.isRepeated=0;this.U=MX;this.defaultValue=void 0};g.z(jX,g.R);g.A=jX.prototype;g.A.X_=function(){this.i6();this.U.stop();this.WN.stop();g.R.prototype.X_.call(this)}; g.A.dispatch=function(F){if(F instanceof iB)this.log(F);else try{var J=new iB,b=F.G7();var I=yH(J,8,b);this.log(I)}catch(u){}}; g.A.log=function(F){if(this.fW){F=F.clone();var J=this.zj++;F=mC(F,21,J);this.componentId&&yH(F,26,this.componentId);J=F;if(dLJ(J)==null){var b=Date.now();b=Number.isFinite(b)?b.toString():"0";RF(J,1,lv(b))}U8a(Xe(J,15))!=null||mC(J,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=this.experimentIds.clone(),Ax(J,If,16,b));J=this.C.length-1E3+1;J>0&&(this.C.splice(0,J),this.Z+=J);this.C.push(F);this.aU||this.U.enabled||this.U.start()}}; g.A.flush=function(F,J){var b=this;if(this.C.length===0)F&&F();else if(this.kQ&&this.N)this.T.U=3,E4_(this);else{var I=Date.now();if(this.dD>I&&this.Gj<I)J&&J("throttled");else{this.network&&(typeof this.network.Go==="function"?mX_(this.T,this.network.Go()):this.T.U=0);var u=this.T.build(this.C,this.Z,this.W,this.gM,this.eE,this.Tj),w=this.o3();if(w&&this.qf===w)J&&J("stale-auth-token");else{this.C=[];this.U.enabled&&this.U.stop();this.Z=0;I=u.G7();var M;this.V&&this.V.isSupported(I.length)&&(M=this.V.compress(I)); var q=WCa(this,I,w),v=function(K){b.D.reset();b.U.setInterval(b.D.getValue());if(K){var p=null;try{var m=JSON.stringify(JSON.parse(K.replace(")]}'\n","")));p=G_5(m)}catch(d){}if(p){K=Number;var y="-1";y=y===void 0?"0":y;var f;m=(f=dLJ(p))!=null?f:y;f=K(m);f>0&&(b.Gj=Date.now(),b.dD=b.Gj+f);p=wt.C?wt.U(p,wt.C,175237375):wt.U(p,175237375,null);if(p=p===null?void 0:p)p=Ae(p,1,-1),p!==-1&&(b.D=new g.Wz(p<1?1:p,3E5,.1),b.U.setInterval(b.D.getValue()))}}F&&F();b.W=0},a=function(K,p){var m=w5(u,iB,3); var y;var f=(y=U8a(Xe(u,14)))!=null?y:void 0;g.dK(b.D);b.U.setInterval(b.D.getValue());K===401&&w&&(b.qf=w);f&&(b.Z+=f);p===void 0&&(p=b.isRetryable(K));p&&(b.C=m.concat(b.C),b.aU||b.U.enabled||b.U.start());J&&J("net-send-failed",K);++b.W},e=function(){b.network&&b.network.send(q,v,a)}; M?M.then(function(K){q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=K;q.Sw=2;e()},function(){e()}):e()}}}}; g.A.i6=function(){this.T.isFinal=!0;this.flush();this.T.isFinal=!1}; g.A.isRetryable=function(F){return 500<=F&&F<600||F===401||F===0};GE.prototype.send=function(F,J,b){var I=this,u,w,M,q,v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:return w=(u=I.Xo?new AbortController:void 0)?setTimeout(function(){u.abort()},F.timeoutMillis):void 0,g.lk(y,2,3),M=Object.assign({},{method:F.requestType, headers:Object.assign({},F.requestHeaders)},F.body&&{body:F.body},F.withCredentials&&{credentials:"include"},{signal:F.timeoutMillis&&u?u.signal:null}),g.T(y,fetch(F.url,M),5);case 5:q=y.U;if(q.status!==200){(v=b)==null||v(q.status);y.gD(3);break}if((a=J)==null){y.gD(7);break}return g.T(y,q.text(),8);case 8:a(y.U);case 7:case 3:g.Em(y);clearTimeout(w);g.jz(y,0);break;case 2:e=g.dY(y);switch((K=e)==null?void 0:K.name){case "AbortError":(p=b)==null||p(408);break;default:(m=b)==null||m(400)}y.gD(3)}})}; GE.prototype.Go=function(){return 4};g.z(Vx,g.R);Vx.prototype.aJ=function(){this.D=!0;return this}; Vx.prototype.build=function(){this.network||(this.network=new GE);var F=new jX({logSource:this.logSource,o3:this.o3?this.o3:kaJ,sessionIndex:this.sessionIndex,mEQ:this.x6,Wc:this.Z,aU:!1,aJ:this.D,XA:this.XA,network:this.network});g.k(this,F);if(this.U){var J=this.U,b=fb(F.T);yH(b,7,J)}F.V=new be;this.componentId&&(F.componentId=this.componentId);this.gM&&(F.gM=this.gM);this.pageId&&(F.pageId=this.pageId);this.C&&((b=this.C)?(F.experimentIds||(F.experimentIds=new If),J=F.experimentIds,b=b.G7(),yH(J, 4,b)):F.experimentIds&&RF(F.experimentIds,4));this.T&&(F.kQ=F.N);yx7(F.T);this.network.Cf&&this.network.Cf(this.logSource);this.network.n7G&&this.network.n7G(F);return F};g.z(Pz,g.R);Pz.prototype.flush=function(F){F=F||[];if(F.length){for(var J=new vpz,b=[],I=0;I<F.length;I++){var u=F[I],w=g.KLa(u);b.push(w);u.clear()}vo(J,zy,1,b);this.C.dispatch(J);this.C.flush()}};g.A=Bz.prototype;g.A.W6=function(F){var J=g.Ba.apply(1,arguments),b=this.Fh(J);b?b.push(new B4z(F)):this.eH(F,J)}; g.A.eH=function(F){this.C.set(this.MC(g.Ba.apply(1,arguments)),[new B4z(F)])}; g.A.Fh=function(){var F=this.MC(g.Ba.apply(0,arguments));return this.C.has(F)?this.C.get(F):void 0}; g.A.RY=function(){var F=this.Fh(g.Ba.apply(0,arguments));return F&&F.length?F[0]:void 0}; g.A.clear=function(){this.C.clear()}; g.A.MC=function(){var F=g.Ba.apply(0,arguments);return F?F.join(","):"key"};g.z(TE,Bz);TE.prototype.T=function(F){var J=g.Ba.apply(1,arguments),b=0,I=this.RY(J);I&&(b=I.C);this.eH(b+F,J)};g.z(rK,Bz);rK.prototype.Ic=function(F){this.W6(F,g.Ba.apply(1,arguments))};g.SX.prototype.stopPropagation=function(){this.U=!0}; g.SX.prototype.preventDefault=function(){this.defaultPrevented=!0};g.Fb(sP,g.SX); sP.prototype.init=function(F,J){var b=this.type=F.type,I=F.changedTouches&&F.changedTouches.length?F.changedTouches[0]:null;this.target=F.target||F.srcElement;this.currentTarget=J;J=F.relatedTarget;J||(b=="mouseover"?J=F.fromElement:b=="mouseout"&&(J=F.toElement));this.relatedTarget=J;I?(this.clientX=I.clientX!==void 0?I.clientX:I.pageX,this.clientY=I.clientY!==void 0?I.clientY:I.pageY,this.screenX=I.screenX||0,this.screenY=I.screenY||0):(this.clientX=F.clientX!==void 0?F.clientX:F.pageX,this.clientY= F.clientY!==void 0?F.clientY:F.pageY,this.screenX=F.screenX||0,this.screenY=F.screenY||0);this.button=F.button;this.keyCode=F.keyCode||0;this.key=F.key||"";this.charCode=F.charCode||(b=="keypress"?F.keyCode:0);this.ctrlKey=F.ctrlKey;this.altKey=F.altKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.pointerId=F.pointerId||0;this.pointerType=F.pointerType;this.state=F.state;this.C=F;F.defaultPrevented&&sP.k7.preventDefault.call(this)}; sP.prototype.stopPropagation=function(){sP.k7.stopPropagation.call(this);this.C.stopPropagation?this.C.stopPropagation():this.C.cancelBubble=!0}; sP.prototype.preventDefault=function(){sP.k7.preventDefault.call(this);var F=this.C;F.preventDefault?F.preventDefault():F.returnValue=!1};var T4C="closure_listenable_"+(Math.random()*1E6|0);var rxC=0;g.A=Cb.prototype;g.A.add=function(F,J,b,I,u){var w=F.toString();F=this.listeners[w];F||(F=this.listeners[w]=[],this.C++);var M=Qx(F,J,I,u);M>-1?(J=F[M],b||(J.Ux=!1)):(J=new Sqv(J,this.src,w,!!I,u),J.Ux=b,F.push(J));return J}; g.A.remove=function(F,J,b,I){F=F.toString();if(!(F in this.listeners))return!1;var u=this.listeners[F];J=Qx(u,J,b,I);return J>-1?($e(u[J]),g.ZH(u,J),u.length==0&&(delete this.listeners[F],this.C--),!0):!1}; g.A.removeAll=function(F){F=F&&F.toString();var J=0,b;for(b in this.listeners)if(!F||b==F){for(var I=this.listeners[b],u=0;u<I.length;u++)++J,$e(I[u]);delete this.listeners[b];this.C--}return J}; g.A.ze=function(F,J,b,I){F=this.listeners[F.toString()];var u=-1;F&&(u=Qx(F,J,b,I));return u>-1?F[u]:null}; g.A.hasListener=function(F,J){var b=F!==void 0,I=b?F.toString():"",u=J!==void 0;return g.le(this.listeners,function(w){for(var M=0;M<w.length;++M)if(!(b&&w[M].type!=I||u&&w[M].capture!=J))return!0;return!1})};var UP="closure_lm_"+(Math.random()*1E6|0),nb={},Xo_=0,t6="__closure_events_fn_"+(Math.random()*1E9>>>0);g.Fb(g.Zr,g.R);g.Zr.prototype[T4C]=!0;g.A=g.Zr.prototype;g.A.addEventListener=function(F,J,b,I){g.Dr(this,F,J,b,I)}; g.A.removeEventListener=function(F,J,b,I){RlJ(this,F,J,b,I)}; g.A.dispatchEvent=function(F){var J=this.XS;if(J){var b=[];for(var I=1;J;J=J.XS)b.push(J),++I}J=this.G3;I=F.type||F;if(typeof F==="string")F=new g.SX(F,J);else if(F instanceof g.SX)F.target=F.target||J;else{var u=F;F=new g.SX(I,J);g.Sq(F,u)}u=!0;var w;if(b)for(w=b.length-1;!F.U&&w>=0;w--){var M=F.currentTarget=b[w];u=Hz(M,I,!0,F)&&u}F.U||(M=F.currentTarget=J,u=Hz(M,I,!0,F)&&u,F.U||(u=Hz(M,I,!1,F)&&u));if(b)for(w=0;!F.U&&w<b.length;w++)M=F.currentTarget=b[w],u=Hz(M,I,!1,F)&&u;return u}; g.A.X_=function(){g.Zr.k7.X_.call(this);this.dT&&this.dT.removeAll(void 0);this.XS=null}; g.A.listen=function(F,J,b,I){return this.dT.add(String(F),J,!1,b,I)}; g.A.Sk=function(F,J,b,I){return this.dT.add(String(F),J,!0,b,I)}; g.A.iX=function(F,J,b,I){this.dT.remove(String(F),J,b,I)}; g.A.ze=function(F,J,b,I){return this.dT.ze(String(F),J,b,I)}; g.A.hasListener=function(F,J){return this.dT.hasListener(F!==void 0?String(F):void 0,J)};var FQ=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(F){return F&&AsyncContext.Snapshot.wrap(F)}:function(F){return F};Lb.prototype.get=function(){if(this.U>0){this.U--;var F=this.C;this.C=F.next;F.next=null}else F=this.T();return F};var b5;u5.prototype.add=function(F,J){var b=cxv.get();b.set(F,J);this.U?this.U.next=b:this.C=b;this.U=b}; u5.prototype.remove=function(){var F=null;this.C&&(F=this.C,this.C=this.C.next,this.C||(this.U=null),F.next=null);return F}; var cxv=new Lb(function(){return new wb},function(F){return F.reset()}); wb.prototype.set=function(F,J){this.C=F;this.scope=J;this.next=null}; wb.prototype.reset=function(){this.next=this.scope=this.C=null};var Mf,Az=!1,o4o=new u5;n43.prototype.reset=function(){this.context=this.U=this.T=this.C=null;this.Z=!1}; var tDv=new Lb(function(){return new n43},function(F){F.reset()}); g.gb.prototype.then=function(F,J,b){return AQJ(this,FQ(typeof F==="function"?F:null),FQ(typeof J==="function"?J:null),b)}; g.gb.prototype.$goog_Thenable=!0;g.A=g.gb.prototype;g.A.finally=function(F){var J=this;F=FQ(F);return new Promise(function(b,I){b53(J,function(u){F();b(u)},function(u){F(); I(u)})})}; g.A.rX=function(F,J){return AQJ(this,null,FQ(F),J)}; g.A.catch=g.gb.prototype.rX;g.A.cancel=function(F){if(this.C==0){var J=new l5(F);g.qf(function(){Ii_(this,J)},this)}}; g.A.BqD=function(F){this.C=0;pu(this,2,F)}; g.A.vjQ=function(F){this.C=0;pu(this,3,F)}; g.A.YV=function(){for(var F;F=uvv(this);)w9z(this,F,this.C,this.V);this.W=!1}; var qaz=N8;g.Fb(l5,iW);l5.prototype.name="cancel";g.Fb(g.fu,g.Zr);g.A=g.fu.prototype;g.A.enabled=!1;g.A.J_=null;g.A.setInterval=function(F){this.gg=F;this.J_&&this.enabled?(this.stop(),this.start()):this.J_&&this.stop()}; g.A.EjN=function(){if(this.enabled){var F=g.L3()-this.k9;F>0&&F<this.gg*.8?this.J_=this.tM.setTimeout(this.GD,this.gg-F):(this.J_&&(this.tM.clearTimeout(this.J_),this.J_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}}; g.A.start=function(){this.enabled=!0;this.J_||(this.J_=this.tM.setTimeout(this.GD,this.gg),this.k9=g.L3())}; g.A.stop=function(){this.enabled=!1;this.J_&&(this.tM.clearTimeout(this.J_),this.J_=null)}; g.A.X_=function(){g.fu.k7.X_.call(this);this.stop();delete this.tM};g.z(g.Es,g.R);g.A=g.Es.prototype;g.A.sendIsolatedPayload=function(F){this.D=F;this.T=1}; g.A.AM=function(){var F=this.U.values();F=[].concat(g.W(F)).filter(function(J){return J.C.size}); F.length&&this.V.flush(F,this.D);e64(F);this.Z=0;this.C.enabled&&this.C.stop()}; g.A.Qx=function(F){var J=g.Ba.apply(1,arguments);this.U.has(F)||this.U.set(F,new TE(F,J))}; g.A.w4=function(F){var J=g.Ba.apply(1,arguments);this.U.has(F)||this.U.set(F,new rK(F,J))}; g.A.ge=function(F){this.lI(F,1,g.Ba.apply(1,arguments))}; g.A.lI=function(F,J){var b=g.Ba.apply(2,arguments),I=a8C(this,F);I&&I instanceof TE&&(I.T(J,b),vMo(this))}; g.A.Ic=function(F,J){var b=g.Ba.apply(2,arguments),I=a8C(this,F);I&&I instanceof rK&&(I.Ic(J,b),vMo(this))};g.z(jP,Error);jP.prototype.toString=function(){var F="RpcError("+(p14(this.code)||String(this.code))+")";this.message&&(F+=": "+this.message);return F};gMk.prototype.G7=function(F){var J=[];VX(this,F,J);return J.join("")}; var i$o={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},yD3=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var VzR;g.Fb(Pj,Nl7);Pj.prototype.C=function(){return new XMLHttpRequest}; VzR=new Pj;var YV=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),jfm=/#|$/,Gov=/[?&]($|#)/;g.Fb(g.Us,g.Zr);var sfC=/^https?$/i,Pkb=["POST","PUT"],Pev=[];g.A=g.Us.prototype;g.A.v6=function(){this.dispose();g.Hk(Pev,this)}; g.A.send=function(F,J,b,I){if(this.C)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+F);J=J?J.toUpperCase():"GET";this.Y=F;this.Z="";this.U=0;this.eE=!1;this.T=!0;this.C=this.WN?this.WN.C():VzR.C();this.C.onreadystatechange=FQ((0,g.tJ)(this.zm,this));try{this.getStatus(),this.Gj=!0,this.C.open(J,String(F),!0),this.Gj=!1}catch(M){this.getStatus();rDa(this,M);return}F=b||"";b=new Map(this.headers);if(I)if(Object.getPrototypeOf(I)===Object.prototype)for(var u in I)b.set(u, I[u]);else if(typeof I.keys==="function"&&typeof I.get==="function"){u=g.N(I.keys());for(var w=u.next();!w.done;w=u.next())w=w.value,b.set(w,I.get(w))}else throw Error("Unknown input type for opt_headers: "+String(I));I=Array.from(b.keys()).find(function(M){return"content-type"==M.toLowerCase()}); u=g.Qz.FormData&&F instanceof g.Qz.FormData;!g.te(Pkb,J)||I||u||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");J=g.N(b);for(I=J.next();!I.done;I=J.next())b=g.N(I.value),I=b.next().value,b=b.next().value,this.C.setRequestHeader(I,b);this.kQ&&(this.C.responseType=this.kQ);"withCredentials"in this.C&&this.C.withCredentials!==this.V&&(this.C.withCredentials=this.V);try{this.W&&(clearTimeout(this.W),this.W=null),this.Tj>0&&(this.getStatus(),this.W=setTimeout(this.hk.bind(this), this.Tj)),this.getStatus(),this.N=!0,this.C.send(F),this.N=!1}catch(M){this.getStatus(),rDa(this,M)}}; g.A.hk=function(){typeof nu!="undefined"&&this.C&&(this.Z="Timed out after "+this.Tj+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.A.abort=function(F){this.C&&this.T&&(this.getStatus(),this.T=!1,this.D=!0,this.C.abort(),this.D=!1,this.U=F||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),xV(this))}; g.A.X_=function(){this.C&&(this.T&&(this.T=!1,this.D=!0,this.C.abort(),this.D=!1),xV(this,!0));g.Us.k7.X_.call(this)}; g.A.zm=function(){this.iR()||(this.Gj||this.N||this.D?Sav(this):this.k$j())}; g.A.k$j=function(){Sav(this)}; g.A.isActive=function(){return!!this.C}; g.A.isComplete=function(){return g.tz(this)==4}; g.A.getStatus=function(){try{return g.tz(this)>2?this.C.status:-1}catch(F){return-1}}; g.A.getResponseHeader=function(F){if(this.C&&this.isComplete())return F=this.C.getResponseHeader(F),F===null?void 0:F}; g.A.getLastError=function(){return typeof this.Z==="string"?this.Z:String(this.Z)};Jv.prototype.send=function(F,J,b){J=J===void 0?function(){}:J; b=b===void 0?function(){}:b; Bla(F.url,function(I){I=I.target;ZL(I)?J(g.Hj(I)):b(I.getStatus())},F.requestType,F.body,F.requestHeaders,F.timeoutMillis,F.withCredentials)}; Jv.prototype.Go=function(){return 1};I6.prototype.done=function(){this.logger.Fg(this.event,b3()-this.startTime)}; g.z(u3,em);g.z(M6,u3);g.A=M6.prototype;g.A.VV=function(){}; g.A.n1=function(){}; g.A.Fg=function(){}; g.A.AN=function(){}; g.A.oE=function(){}; g.A.sX=function(F,J,b){return b}; g.A.X9=function(){}; g.A.U4=function(){}; g.A.ZM=function(){}; g.A.YE=function(){}; g.z(Av,u3);g.A=Av.prototype;g.A.update=function(F){this.logger.dispose();this.logger=F}; g.A.n1=function(F){this.logger.n1(F)}; g.A.Fg=function(F,J){this.logger.Fg(F,J)}; g.A.AN=function(F){this.logger.AN(F)}; g.A.oE=function(){this.logger.oE()}; g.A.sX=function(F,J,b){return this.logger.sX(F,J,b)}; g.A.X9=function(F){this.logger.X9(F)}; g.A.U4=function(F){this.logger.U4(F)}; g.A.ZM=function(F){this.logger.ZM(F)}; g.A.YE=function(F){this.logger.YE(F)}; g.A.DL=function(F){this.logger instanceof a6&&this.logger.DL(F)}; g.A.VV=function(F){this.logger.VV(F)}; g.z(q6,g.R);g.z(vR,u3);g.A=vR.prototype;g.A.DL=function(F){this.uF=F}; g.A.VV=function(F){this.metrics.whE.Ic(F,this.bk)}; g.A.n1=function(F){this.metrics.eventCount.C(F,this.bk)}; g.A.Fg=function(F,J){this.metrics.pp.Ic(J,F,this.uF,this.bk)}; g.A.AN=function(F){this.metrics.errorCount.C(F,this.uF,this.bk)}; g.A.sX=function(F,J,b){function I(M){if(!u.iR()){var q=b3()-w;u.metrics.TBR.Ic(q,F,J,M,u.uF,u.bk)}} var u=this,w=b3();b.then(function(){I(0)},function(M){M instanceof jP?I(M.code):I(-1)}); return b}; g.A.X9=function(F){this.metrics.Z8v.C(F,this.uF,this.bk)}; g.A.U4=function(F){this.metrics.V7.C(F,this.uF,this.bk)}; g.A.ZM=function(F){this.metrics.ecG.C(F,this.uF,this.bk)}; g.z(a6,vR);a6.prototype.YE=function(F){var J=this;this.C.dispose();this.U&&this.service.dispose();this.service=this.options.SK("46",this.options.J$.concat(F));this.C=new q6(function(){return void J.service.AM()},this.options.Tg); this.metrics=$Da(this.service);this.T=F}; a6.prototype.oE=function(){X14(this.C)};g.z(eW,CG);g.z(K2,CG);g.z(p2,CG);var BY8=g3(p2),R6k=function(F){return UX(function(J){return J instanceof F&&!((J.Z7[SJ]|0)&2)})}(p2); p2.messageId="bfkj";g.z(M8,CG);g.z(g8,CG);var DDa=g3(g8);g.z(y3,g.R);y3.prototype.snapshot=function(F){if(this.iR())throw Error("Already disposed");this.logger.n1("n");var J=this.logger.share();return this.T.then(function(b){var I=b.M3;return new Promise(function(u){var w=new I6(J,"n");I(function(M){w.done();J.VV(M.length);J.oE();J.dispose();u(M)},[F.Gi, F.hV,F.Hw,F.tV])})})}; y3.prototype.BA=function(F){var J=this;if(this.iR())throw Error("Already disposed");this.logger.n1("n");var b=w8(this.logger,function(){return J.Z([F.Gi,F.hV,F.Hw,F.tV])},"n"); this.logger.VV(b.length);this.logger.oE();return b}; y3.prototype.qw=function(F){this.T.then(function(J){var b;(b=J.dY_)==null||b(F)})}; y3.prototype.OO=function(){return this.logger.share()};g.z(l3,CG);g.z(f2,CG);WR.prototype.s5=function(F,J){var b=this,I,u,w,M,q;return g.S(function(v){if(v.C==1){var a=new l3;I=iP(a,1,b.vJ);F&&iP(I,2,F);J&&iP(I,3,J);u=b.C();return g.T(v,b.client.create(I,u),2)}w=v.U;M=VI(xp(w,2));if(M.length){a=v.return;var e=new Uint8Array(M.length);for(var K=0;K<M.length;K++)e[K]=M[K]+97;if(g.Qz.TextDecoder)e=(new TextDecoder).decode(e);else if(e.length<=8192)e=String.fromCharCode.apply(null,e);else{K="";for(var p=0;p<e.length;p+=8192)K+=String.fromCharCode.apply(null,Array.prototype.slice.call(e, p,p+8192));e=K}e=BY8(e);return a.call(v,e)}q=MX(w,p2,1);if(!q)throw Error("Missing field");return v.return(q)})}; WR.prototype.vY=function(F){var J=this,b,I;return g.S(function(u){b=J.C();var w=new f2;w=iP(w,1,J.vJ);I=iP(w,2,F);w=u.return;var M=J.client;M=FIa(M.C,M.U+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",I,b||{},TYe);return w.call(u,M)})};g.z(d8,g.R);d8.prototype.snapshot=function(F){var J=this;return g.S(function(b){switch(b.C){case 1:if(J.iR())throw Error("Already disposed");if(J.U||J.V){b.gD(2);break}return g.T(b,J.D.promise,2);case 2:if(!J.U){b.gD(4);break}return g.T(b,J.U.snapshot(F),5);case 5:return b.return(b.U);case 4:throw J.V;}})}; d8.prototype.qw=function(F){var J,b;(J=this.U)==null||(b=J.qw)==null||b.call(J,F)}; d8.prototype.handleError=function(F){if(!this.iR()){this.V=F;this.D.resolve();var J,b;(b=(J=this.options).DIv)==null||b.call(J,F)}}; d8.prototype.OO=function(){return this.logger.share()}; var xDa={rwI:432E5,F6:3E5,nH:10,c6:1E4,Ia:3E4,Iv_:3E4,mk_:6E4,oa:1E3,vK:6E4,J9:6E5,yX:.25,BK:2,maxAttempts:10};var rJV,Ir_=(rJV=Math.imul)!=null?rJV:function(F,J){return F*J|0},V3=[196, 200,224,18];BR.prototype.G7=function(){return String(this.C)+","+this.U.join()}; BR.prototype.wB=function(F,J){var b=void 0;if(this.U[this.C]!==F){var I=this.U.indexOf(F);I!==-1?(this.U.splice(I,1),I<this.C&&this.C--,this.U.splice(this.C,0,F)):(b=this.U[this.C],this.U[this.C]=F)}this.C=(this.C+1)%this.maxItems;F=bba("iU5q-!O9@$",this.G7());b&&F&&J(b);return F};var ge7={toString:function(F){var J=[],b=0;F-=-2147483648;J[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(F%52);for(F=Math.floor(F/52);F>0;)J[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(F%62),F=Math.floor(F/62);return J.join("")}};var y6a;g.z(r8,g.R);r8.prototype.fA=function(F,J){var b=this.iy(F);J==null||J(b);return w8(this.logger,function(){return g.zw(b,2)},this.T)}; y6a=Symbol.dispose;g.z(Y9,r8);Y9.prototype.iy=function(F,J){var b=this;this.logger.n1(this.C);++this.D>=this.W&&this.U.resolve();var I=F();F=w8(this.logger,function(){return b.Z(I)},"C"); if(F===void 0)throw new uW(17,"YNJ:Undefined");if(!(F instanceof Uint8Array))throw new uW(18,"ODM:Invalid");J==null||J(F);return F}; g.z($9,r8);$9.prototype.iy=function(){return this.Z}; g.z(C2,r8);C2.prototype.iy=function(){var F=this;return w8(this.logger,function(){return lV(F.Z)},"d")}; C2.prototype.fA=function(){return this.Z}; g.z(X5,r8);X5.prototype.iy=function(){if(this.Z)return this.Z;this.Z=ibz(this,function(F){return"_"+mI_(F)}); return ibz(this,function(F){return F})}; g.z(DF,r8);DF.prototype.iy=function(F){var J=F();if(J.length>118)throw new uW(19,"DFO:Invalid");F=Math.floor(Date.now()/1E3);var b=[Math.random()*255,Math.random()*255],I=b.concat([this.Z&255,this.clientState],[F>>24&255,F>>16&255,F>>8&255,F&255]);F=new Uint8Array(2+I.length+J.length);F[0]=34;F[1]=I.length+J.length;F.set(I,2);F.set(J,2+I.length);J=F.subarray(2);for(I=b=b.length;I<J.length;++I)J[I]^=J[I%b];this.logger.X9(this.clientState);return F};var dIk={rr:3E4,UEQ:2E4};g.z(k9,g.R);k9.prototype.aA=function(F){if(!(F>150))try{this.cache=new ark(F,this.logger)}catch(J){this.reportError(new uW(22,"GBJ:init",J))}}; k9.prototype.reportError=function(F){this.logger.AN(F.code);this.onError(F);return F}; g.z(cR,k9);cR.prototype.Ey=function(){return this.Z.promise}; cR.prototype.iy=function(F){return OU(this,Object.assign({},F),!1)}; cR.prototype.fA=function(F){return OU(this,Object.assign({},F),!0)}; var EeJ=function(F){return UX(function(J){if(!J8(J))return!1;for(var b=g.N(Object.entries(F)),I=b.next();!I.done;I=b.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;if(!(I in J)){if(u.WUN===!0)continue;return!1}if(!u(J[I]))return!1}return!0})}({w0:function(F){return UX(function(J){return J instanceof F})}(d8)},"");g.z(x9,CG);var Smt=g3(x9);VXC.prototype.getMetadata=function(){return this.metadata};n2.prototype.getMetadata=function(){return this.metadata}; n2.prototype.getStatus=function(){return this.status};tv.prototype.V=function(F,J){J=J===void 0?{}:J;return new VXC(F,this,J)}; tv.prototype.getName=function(){return this.name};var sGe=new tv("/google.internal.waa.v1.Waa/Create",l3,x9,function(F){return F.G7()},Smt);g.z(ZF,CG);var TYe=new tv("/google.internal.waa.v1.Waa/GenerateIT",f2,ZF,function(F){return F.G7()},g3(ZF));var uQ7=new Set(["SAPISIDHASH","APISIDHASH"]);var Zb7=Promise;g.z(HR,CG);HR.prototype.getValue=function(){var F=Xe(this,2);if(Array.isArray(F)||F instanceof CG)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return xp(this,2)};g.z(L2,CG);L2.prototype.getMessage=function(){return pG(this,2)}; var sDJ=g3(L2);FB.prototype.d$=function(F,J){F=="data"?this.T.push(J):F=="metadata"?this.D.push(J):F=="status"?this.W.push(J):F=="end"?this.Z.push(J):F=="error"&&this.U.push(J);return this}; FB.prototype.removeListener=function(F,J){F=="data"?wR(this.T,J):F=="metadata"?wR(this.D,J):F=="status"?wR(this.W,J):F=="end"?wR(this.Z,J):F=="error"&&wR(this.U,J);return this}; FB.prototype.cancel=function(){this.C.abort()}; FB.prototype.cancel=FB.prototype.cancel;FB.prototype.removeListener=FB.prototype.removeListener;FB.prototype.on=FB.prototype.d$;g.z(BKG,Error);g.Fb(g.Ml,Nl7);g.Ml.prototype.C=function(){var F=new AN(this.Z,this.T);this.U&&F.setCredentialsMode(this.U);return F}; g.Ml.prototype.setCredentialsMode=function(F){this.U=F}; g.Fb(AN,g.Zr);g.A=AN.prototype;g.A.open=function(F,J){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Tj=F;this.N=J;this.readyState=1;ql(this)}; g.A.send=function(F){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.C=!0;var J={headers:this.Y,method:this.Tj,credentials:this.D,cache:void 0};F&&(J.body=F);(this.eE||g.Qz).fetch(new Request(this.N,J)).then(this.PRj.bind(this),this.My.bind(this))}; g.A.abort=function(){this.response=this.responseText="";this.Y=new Headers;this.status=0;this.T&&this.T.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.C&&this.readyState!=4&&(this.C=!1,vt(this));this.readyState=0}; g.A.PRj=function(F){if(this.C&&(this.Z=F,this.U||(this.status=this.Z.status,this.statusText=this.Z.statusText,this.U=F.headers,this.readyState=2,ql(this)),this.C&&(this.readyState=3,ql(this),this.C)))if(this.responseType==="arraybuffer")F.arrayBuffer().then(this.u_W.bind(this),this.My.bind(this));else if(typeof g.Qz.ReadableStream!=="undefined"&&"body"in F){this.T=F.body.getReader();if(this.W){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.V=new TextDecoder;YPv(this)}else F.text().then(this.Gjv.bind(this),this.My.bind(this))}; g.A.rzQ=function(F){if(this.C){if(this.W&&F.value)this.response.push(F.value);else if(!this.W){var J=F.value?F.value:new Uint8Array(0);if(J=this.V.decode(J,{stream:!F.done}))this.response=this.responseText+=J}F.done?vt(this):ql(this);this.readyState==3&&YPv(this)}}; g.A.Gjv=function(F){this.C&&(this.response=this.responseText=F,vt(this))}; g.A.u_W=function(F){this.C&&(this.response=F,vt(this))}; g.A.My=function(){this.C&&vt(this)}; g.A.setRequestHeader=function(F,J){this.Y.append(F,J)}; g.A.getResponseHeader=function(F){return this.U?this.U.get(F.toLowerCase())||"":""}; g.A.getAllResponseHeaders=function(){if(!this.U)return"";for(var F=[],J=this.U.entries(),b=J.next();!b.done;)b=b.value,F.push(b[0]+": "+b[1]),b=J.next();return F.join("\r\n")}; g.A.setCredentialsMode=function(F){this.D=F}; Object.defineProperty(AN.prototype,"withCredentials",{get:function(){return this.D==="include"}, set:function(F){this.setCredentialsMode(F?"include":"same-origin")}});g.a2.prototype.toString=function(){var F=[],J=this.D;J&&F.push(iF(J,Ymb,!0),":");var b=this.C;if(b||J=="file")F.push("//"),(J=this.Y)&&F.push(iF(J,Ymb,!0),"@"),F.push(g.x_(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b=this.T,b!=null&&F.push(":",String(b));if(b=this.U)this.C&&b.charAt(0)!="/"&&F.push("/"),F.push(iF(b,b.charAt(0)=="/"?$48:CkW,!0));(b=this.Z.toString())&&F.push("?",b);(b=this.W)&&F.push("#",iF(b,XaR));return F.join("")}; g.a2.prototype.resolve=function(F){var J=this.clone(),b=!!F.D;b?g.eh(J,F.D):b=!!F.Y;b?J.Y=F.Y:b=!!F.C;b?g.KM(J,F.C):b=F.T!=null;var I=F.U;if(b)g.pM(J,F.T);else if(b=!!F.U){if(I.charAt(0)!="/")if(this.C&&!this.U)I="/"+I;else{var u=J.U.lastIndexOf("/");u!=-1&&(I=J.U.slice(0,u+1)+I)}u=I;if(u==".."||u==".")I="";else if(g.E1(u,"./")||g.E1(u,"/.")){I=Wk(u,"/");u=u.split("/");for(var w=[],M=0;M<u.length;){var q=u[M++];q=="."?I&&M==u.length&&w.push(""):q==".."?((w.length>1||w.length==1&&w[0]!="")&&w.pop(), I&&M==u.length&&w.push("")):(w.push(q),I=!0)}I=w.join("/")}else I=u}b?J.U=I:b=F.Z.toString()!=="";b?gR(J,F.Z.clone()):b=!!F.W;b&&(J.W=F.W);return J}; g.a2.prototype.clone=function(){return new g.a2(this)}; var Ymb=/[#\/\?@]/g,CkW=/[#\?:]/g,$48=/[#\?]/g,CBo=/[#\?@]/g,XaR=/#/g;g.A=yu.prototype;g.A.add=function(F,J){lF(this);this.T=null;F=fM(this,F);var b=this.C.get(F);b||this.C.set(F,b=[]);b.push(J);this.U=this.U+1;return this}; g.A.remove=function(F){lF(this);F=fM(this,F);return this.C.has(F)?(this.T=null,this.U=this.U-this.C.get(F).length,this.C.delete(F)):!1}; g.A.clear=function(){this.C=this.T=null;this.U=0}; g.A.isEmpty=function(){lF(this);return this.U==0}; g.A.forEach=function(F,J){lF(this);this.C.forEach(function(b,I){b.forEach(function(u){F.call(J,u,I,this)},this)},this)}; g.A.b7=function(){lF(this);for(var F=Array.from(this.C.values()),J=Array.from(this.C.keys()),b=[],I=0;I<J.length;I++)for(var u=F[I],w=0;w<u.length;w++)b.push(J[I]);return b}; g.A.td=function(F){lF(this);var J=[];if(typeof F==="string")QDo(this,F)&&(J=J.concat(this.C.get(fM(this,F))));else{F=Array.from(this.C.values());for(var b=0;b<F.length;b++)J=J.concat(F[b])}return J}; g.A.set=function(F,J){lF(this);this.T=null;F=fM(this,F);QDo(this,F)&&(this.U=this.U-this.C.get(F).length);this.C.set(F,[J]);this.U=this.U+1;return this}; g.A.get=function(F,J){if(!F)return J;F=this.td(F);return F.length>0?String(F[0]):J}; g.A.toString=function(){if(this.T)return this.T;if(!this.C)return"";for(var F=[],J=Array.from(this.C.keys()),b=0;b<J.length;b++){var I=J[b],u=g.x_(I);I=this.td(I);for(var w=0;w<I.length;w++){var M=u;I[w]!==""&&(M+="="+g.x_(I[w]));F.push(M)}}return this.T=F.join("&")}; g.A.clone=function(){var F=new yu;F.T=this.T;this.C&&(F.C=new Map(this.C),F.U=this.U);return F};g.Fb(g.dR,g.R);var QGk=[];g.A=g.dR.prototype;g.A.listen=function(F,J,b,I){Array.isArray(J)||(J&&(QGk[0]=J.toString()),J=QGk);for(var u=0;u<J.length;u++){var w=g.Dr(F,J[u],b||this.handleEvent,I||!1,this.U||this);if(!w)break;this.C[w.key]=w}return this}; g.A.Sk=function(F,J,b,I){return kEJ(this,F,J,b,I)}; g.A.iX=function(F,J,b,I,u){if(Array.isArray(J))for(var w=0;w<J.length;w++)this.iX(F,J[w],b,I,u);else b=b||this.handleEvent,I=g.Um(I)?!!I.capture:!!I,u=u||this.U||this,b=ke(b),I=!!I,J=Ye(F)?F.ze(J,b,I,u):F?(F=OP(F))?F.ze(J,b,I,u):null:null,J&&(xe(J),delete this.C[J.key])}; g.A.removeAll=function(){g.ie(this.C,function(F,J){this.C.hasOwnProperty(J)&&xe(F)},this); this.C={}}; g.A.X_=function(){g.dR.k7.X_.call(this);this.removeAll()}; g.A.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Oba.prototype.isInputValid=function(){return this.T};E4.prototype.isInputValid=function(){return this.C!=3}; E4.prototype.Aw=function(){return this.W}; E4.prototype.V4=function(){return!0}; E4.prototype.parse=function(F){function J(v){v&128&&jh(w,M,q,"invalid tag");(v&7)!=2&&jh(w,M,q,"invalid wire type");w.T=v>>>3;w.T!=1&&w.T!=2&&w.T!=15&&jh(w,M,q,"unexpected tag");w.C=1;w.U=0;w.Z=0} function b(v){w.Z++;w.Z==5&&v&240&&jh(w,M,q,"message length too long");w.U|=(v&127)<<(w.Z-1)*7;v&128||(w.C=2,w.Y=0,typeof Uint8Array!=="undefined"?w.D=new Uint8Array(w.U):w.D=Array(w.U),w.U==0&&u())} function I(v){w.D[w.Y++]=v;w.Y==w.U&&u()} function u(){if(w.T<15){var v={};v[w.T]=w.D;w.V.push(v)}w.C=0} for(var w=this,M=F instanceof Array?F:new Uint8Array(F),q=0;q<M.length;){switch(w.C){case 3:jh(w,M,q,"stream already broken");break;case 0:J(M[q]);break;case 1:b(M[q]);break;case 2:I(M[q]);break;default:throw Error("unexpected parser state: "+w.C);}w.N++;q++}F=w.V;w.V=[];return F.length>0?F:null};Gm.prototype.isInputValid=function(){return this.C===null}; Gm.prototype.Aw=function(){return this.C}; Gm.prototype.V4=function(){return!1}; Gm.prototype.parse=function(F){this.C!==null&&hh_(this,F,"stream already broken");var J=null;try{var b=this.T;b.T||oe3(b,F,"stream already broken");b.C+=F;var I=Math.floor(b.C.length/4);if(I==0)var u=null;else{try{var w=gLa(b.C.slice(0,I*4))}catch(M){oe3(b,b.C,M.message)}b.U+=I*4;b.C=b.C.slice(I*4);u=w}J=u===null?null:this.Z.parse(u)}catch(M){hh_(this,F,M.message)}this.U+=F.length;return J};var Rvk={INIT:0,rI:1,Ye:2,VW:3,nX:4,jK:5,STRING:6,yA:7,ue:8,dj:9,le:10,Qr:11,hm:12,z_:13,KS:14,xv:15,k$:16,gj:17,W4:18,nY:19,ph:20};g.A=Pt.prototype;g.A.isInputValid=function(){return this.D!=3}; g.A.Aw=function(){return this.N}; g.A.done=function(){return this.D===2}; g.A.V4=function(){return!1}; g.A.parse=function(F){function J(){for(;p<F.length;)if(Vu(F[p]))p++,w.T++;else break;return p<a} function b(){for(var y;;){y=F[p++];if(!y)break;w.T++;switch(w.C){case v.INIT:y==="{"?w.C=v.Ye:y==="["?w.C=v.nX:Vu(y)||Bt(w,F,p);continue;case v.yA:case v.Ye:if(Vu(y))continue;if(w.C===v.yA)M.push(v.ue);else if(y==="}"){u("{}");w.C=I();continue}else M.push(v.VW);y==='"'?w.C=v.STRING:Bt(w,F,p);continue;case v.ue:case v.VW:if(Vu(y))continue;y===":"?(w.C===v.VW&&(M.push(v.VW),w.U++),w.C=v.rI):y==="}"?(w.U--,u(),w.C=I()):y===","?(w.C===v.VW&&M.push(v.VW),w.C=v.yA):Bt(w,F,p);continue;case v.nX:case v.rI:if(Vu(y))continue; if(w.C===v.nX)if(w.U++,w.C=v.rI,y==="]"){w.U--;if(w.U===0){w.C=v.jK;return}u("[]");w.C=I();continue}else M.push(v.jK);y==='"'?w.C=v.STRING:y==="{"?w.C=v.Ye:y==="["?w.C=v.nX:y==="t"?w.C=v.dj:y==="f"?w.C=v.hm:y==="n"?w.C=v.k$:y!=="-"&&("0123456789".indexOf(y)!==-1?w.C=v.ph:Bt(w,F,p));continue;case v.jK:if(y===",")M.push(v.jK),w.C=v.rI,w.U===1&&(K=p);else if(y==="]"){w.U--;if(w.U===0)return;u();w.C=I()}else if(Vu(y))continue;else Bt(w,F,p);continue;case v.STRING:var f=p;a:for(;;){for(;w.Y>0;)if(y=F[p++], w.Y===4?w.Y=0:w.Y++,!y)break a;if(y==='"'&&!w.V){w.C=I();break}if(y==="\\"&&!w.V&&(w.V=!0,y=F[p++],!y))break;if(w.V)if(w.V=!1,y==="u"&&(w.Y=1),y=F[p++])continue;else break;q.lastIndex=p;y=q.exec(F);if(!y){p=F.length+1;break}p=y.index+1;y=F[y.index];if(!y)break}w.T+=p-f;continue;case v.dj:if(!y)continue;y==="r"?w.C=v.le:Bt(w,F,p);continue;case v.le:if(!y)continue;y==="u"?w.C=v.Qr:Bt(w,F,p);continue;case v.Qr:if(!y)continue;y==="e"?w.C=I():Bt(w,F,p);continue;case v.hm:if(!y)continue;y==="a"?w.C=v.z_: Bt(w,F,p);continue;case v.z_:if(!y)continue;y==="l"?w.C=v.KS:Bt(w,F,p);continue;case v.KS:if(!y)continue;y==="s"?w.C=v.xv:Bt(w,F,p);continue;case v.xv:if(!y)continue;y==="e"?w.C=I():Bt(w,F,p);continue;case v.k$:if(!y)continue;y==="u"?w.C=v.gj:Bt(w,F,p);continue;case v.gj:if(!y)continue;y==="l"?w.C=v.W4:Bt(w,F,p);continue;case v.W4:if(!y)continue;y==="l"?w.C=I():Bt(w,F,p);continue;case v.nY:y==="."?w.C=v.ph:Bt(w,F,p);continue;case v.ph:if("0123456789.eE+-".indexOf(y)!==-1)continue;else p--,w.T--,w.C= I();continue;default:Bt(w,F,p)}}} function I(){var y=M.pop();return y!=null?y:v.rI} function u(y){w.U>1||(y||(y=K===-1?w.Z+F.substring(e,p):F.substring(K,p)),w.Tj?w.W.push(y):w.W.push(JSON.parse(y)),K=p)} for(var w=this,M=w.eE,q=w.Gj,v=Rvk,a=F.length,e=0,K=-1,p=0;p<a;)switch(w.D){case 3:return Bt(w,F,p),null;case 2:return J()&&Bt(w,F,p),null;case 0:if(J()){var m=F[p++];w.T++;if(m==="["){w.D=1;e=p;w.C=v.nX;continue}else Bt(w,F,p)}return null;case 1:return b(),w.U===0&&w.C==v.jK?(w.D=2,w.Z=F.substring(p)):w.Z=K===-1?w.Z+F.substring(e):F.substring(K),w.W.length>0?(m=w.W,w.W=[],m):null}return null};Tm.prototype.isInputValid=function(){return this.D===null}; Tm.prototype.Aw=function(){return this.D}; Tm.prototype.V4=function(){return!1}; Tm.prototype.parse=function(F){function J(v){w.U=6;w.D="The stream is broken @"+w.C+"/"+M+". Error: "+v+". With input:\n";throw Error(w.D);} function b(){w.T=new Pt({GaE:!0,gJ:!0})} function I(v){if(v)for(var a=0;a<v.length;a++){var e={};e[1]=v[a];w.Z.push(e)}} function u(v){if(v){(w.W||v.length>1)&&J("extra status: "+v);w.W=!0;var a={};a[2]=v[0];w.Z.push(a)}} for(var w=this,M=0;M<F.length;){var q;if(q=w.U!==2){a:{for(;M<F.length;){if(!Vu(F[M])){q=!0;break a}M++;w.C++}q=!1}q=!q}if(q)return null;switch(w.U){case 6:J("stream already broken");break;case 0:F[M]==="["?(w.U=1,M++,w.C++):J("unexpected input token");break;case 1:F[M]==="["?(w.U=2,b()):F[M]===","||F.slice(M,M+5)=="null,"?w.U=3:F[M]==="]"?(w.U=5,M++,w.C++):J("unexpected input token");break;case 2:q=w.T.parse(F.substring(M));I(q);w.T.done()?(w.U=3,q=w.T.Z,w.C+=F.length-M-q.length,F=q,M=0):(w.C+=F.length- M,M=F.length);break;case 3:F[M]===","||F.slice(M,M+5)=="null,"?(w.U=4,b(),w.T.parse("["),M+=F[M]===","?1:5,w.C++):F[M]==="]"&&(w.U=5,M++,w.C++);break;case 4:q=w.T.parse(F.substring(M));u(q);w.T.done()?(w.U=5,q=w.T.Z,w.C+=F.length-M-q.length,F=q,M=0):(w.C+=F.length-M,M=F.length);break;case 5:J("extra input after stream end")}}return w.Z.length>0?(F=w.Z,w.Z=[],F):null};rR.prototype.qt=function(){return this.C}; rR.prototype.getStatus=function(){return this.D}; rR.prototype.Tj=function(F){F=F.target;try{if(F==this.C)a:{var J=g.tz(this.C),b=this.C.U,I=this.C.getStatus(),u=g.Hj(this.C);F=[];if(g.Lu(this.C)instanceof Array){var w=g.Lu(this.C);w.length>0&&w[0]instanceof Uint8Array&&(this.N=!0,F=w)}if(!(J<3||J==3&&!u&&F.length==0))if(I=I==200||I==206,J==4&&(b==8?Sh(this,7):b==7?Sh(this,8):I||Sh(this,3)),this.U||(this.U=c6a(this.C),this.U==null&&Sh(this,5)),this.D>2)CM(this);else{if(F.length>this.T){var M=F.length;b=[];try{if(this.U.V4())for(var q=0;q<M;q++){var v= this.U.parse(Array.from(F[q]));v&&(b=b.concat(v))}else{v="";if(!this.W){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.W=new TextDecoder}for(q=0;q<M;q++)v+=this.W.decode(F[q],{stream:J==4&&q==M-1});b=this.U.parse(v)}F.splice(0,M);b&&this.Z(b)}catch(e){Sh(this,5);CM(this);break a}}else if(u.length>this.T){q=u.slice(this.T);this.T=u.length;try{var a=this.U.parse(q);a!=null&&this.Z&&this.Z(a)}catch(e){Sh(this,5);CM(this);break a}}J==4?(u.length!= 0||this.N?Sh(this,2):Sh(this,4),CM(this)):Sh(this,1)}}}catch(e){Sh(this,6),CM(this)}};g.A=UIa.prototype;g.A.d$=function(F,J){var b=this.U[F];b||(b=[],this.U[F]=b);b.push(J);return this}; g.A.addListener=function(F,J){this.d$(F,J);return this}; g.A.removeListener=function(F,J){var b=this.U[F];b&&g.Hk(b,J);(F=this.C[F])&&g.Hk(F,J);return this}; g.A.once=function(F,J){var b=this.C[F];b||(b=[],this.C[F]=b);b.push(J);return this}; g.A.uqW=function(F){var J=this.U.data;J&&xIa(F,J);(J=this.C.data)&&xIa(F,J);this.C.data=[]}; g.A.Igv=function(){switch(this.T.getStatus()){case 1:XB(this,"readable");break;case 5:case 6:case 4:case 7:case 3:XB(this,"error");break;case 8:XB(this,"close");break;case 2:XB(this,"end")}};neo.prototype.serverStreaming=function(F,J,b,I){var u=this,w=F.substring(0,F.length-I.name.length);return tXz(function(M){var q=M.m$,v=M.getMetadata(),a=JzG(u,!1);v=buz(u,v,a,w+q.getName());var e=IL4(a,q.U,!0);M=q.C(M.xC);a.send(v,"POST",M);return e},this.Z).call(this,I.V(J,b))};wjv.prototype.create=function(F,J){return FIa(this.C,this.U+"/$rpc/google.internal.waa.v1.Waa/Create",F,J||{},sGe)};var D4e=1,ct=new WeakMap;g.z(Qu,g.R);Qu.prototype.signal=function(){var F=new DV(!1);this.signals.add(F);g.k(this,F);return F}; Qu.prototype.C_=function(F){return R2(this,F).C_()}; g.z(DV,g.R);g.A=DV.prototype;g.A.sj=function(){var F=this,J=D4e++;ko(function(){MPm(F,J)}); return J}; g.A.detach=function(F){var J=this;ko(function(){var b=J.slots.get(F);b&&b.jb()})}; g.A.value=function(F){return this.promise(!0,F)}; g.A.C_=function(){return this.Pf}; g.A.next=function(F){return this.promise(!1,F)}; g.A.promise=function(F,J){var b=this,I=JQa();ko(function(){if(b.iR())I.reject(new l5("Signal initially disposed"));else if(J&&J.iR())I.reject(new l5("Owner initially disposed"));else if(F&&b.Py&&b.Ai)I.resolve(b.Pf);else if(b.CX.add(I),Nf(I.promise,function(){b.CX.delete(I)}),J){var u=function(){I.reject(new l5("Owner asynchronously disposed"))}; Nf(I.promise,function(){var w=ct.get(J);w&&g.Hk(w,u)}); vVC(J,u)}}); return I.promise}; g.A.X_=function(){var F=this;g.R.prototype.X_.call(this);ko(function(){for(var J=g.N(F.slots.values()),b=J.next();!b.done;b=J.next())b=b.value.jb,b();F.slots.clear();J=g.N(F.CX);for(b=J.next();!b.done;b=J.next())b.value.reject(new l5("Signal asynchronously disposed"));F.CX.clear()})}; var o2=[],hN=!1;g.z(U4,g.R);U4.prototype.start=function(){var F=this;if(this.iR())throw new nM("Cannot start a disposed timer.");if(!this.W){this.Z=0;if(this.V){var J=Date.now();this.handle=setInterval(function(){F.Z=F.milliseconds>0?Math.trunc((Date.now()-J)/F.milliseconds):F.Z+1;var b;(b=F.U)==null||b.resolve();F.U=void 0;if(F.T){var I;(I=F.C)!=null&&O4(R2(I,F.T),F)}F.e3.aZ(F)},this.milliseconds)}else this.handle=setTimeout(function(){F.state=3; F.handle=void 0;F.Z=1;var b;(b=F.U)==null||b.resolve();F.U=void 0;if(F.T){var I;(I=F.C)!=null&&O4(R2(I,F.T),F)}F.e3.aZ(F)},this.milliseconds); this.state=1}}; U4.prototype.cancel=function(){if(this.W){this.clear();this.state=2;var F;(F=this.U)==null||F.reject(new xo);var J;(J=this.e3.Gm)==null||J.call(this);if(this.D){var b;(b=this.C)!=null&&O4(R2(b,this.D))}}}; U4.prototype.X_=function(){this.clear();var F;(F=this.U)==null||F.reject(new nM);this.state=4;g.R.prototype.X_.call(this)}; U4.prototype.clear=function(){this.V?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.q4.Object.defineProperties(U4.prototype,{W:{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.Z}}, Y:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.U!=null||(this.U=new g.m6),this.U.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new xo("Timer has been cancelled."));case 4:return Promise.reject(new nM("Timer has been disposed."));default:wU(this.state)}}}, aZ:{configurable:!0,enumerable:!0,get:function(){if(this.iR())throw new nM("Cannot attach a signal to a disposed timer.");this.T||(this.C!=null||(this.C=new Qu(this)),this.T=this.C.signal());return this.T}}, Gm:{configurable:!0,enumerable:!0,get:function(){if(this.iR())throw new nM("Cannot attach a signal to a disposed timer.");this.D||(this.C!=null||(this.C=new Qu(this)),this.D=this.C.signal());return this.D}}}); g.z(xo,iW);g.z(nM,iW);g.z(tN,k9);g.A=tN.prototype;g.A.isReady=function(){return!!this.C}; g.A.ready=function(){var F=this;return g.S(function(J){return g.T(J,F.T.promise,0)})}; g.A.s5=function(F){return KIa(this,this.logger.sX("c",F===void 0?1:F,this.lB.s5(z5().C,null)),new uW(10,"JVZ:Timeout"))}; g.A.prefetch=function(){this.state===1&&(this.wL=this.s5())}; g.A.start=function(){if(this.state===1){this.state=2;var F=new I6(this.logger,"r");this.ready().finally(function(){return void F.done()}); gV7(this)}}; g.A.iy=function(F){mfo(this,F);return OU(this,eB3(F),!1)}; g.A.fA=function(F){mfo(this,F);return OU(this,eB3(F),!0)};var Nb_={NONE:0,wSE:1},LIG={ZG:0,ehf:1,Tej:2,Zj_:3},sG={jR:"a",LSv:"d",VIDEO:"v"};Ht.prototype.isVisible=function(){return this.We?this.BV>=.3:this.BV>=.5};var q5={tm_:0,D_Q:1},Zu3={NONE:0,XxW:1,Q5D:2};LM.prototype.getValue=function(){return this.U}; g.z(FV,LM);FV.prototype.T=function(F){this.U===null&&g.jq(this.Z,F)&&(this.U=F)}; g.z(Jh,LM);Jh.prototype.T=function(F){this.U===null&&typeof F==="number"&&(this.U=F)}; g.z(bT,LM);bT.prototype.T=function(F){this.U===null&&typeof F==="string"&&(this.U=F)};II.prototype.disable=function(){this.U=!1}; II.prototype.enable=function(){this.U=!0}; II.prototype.isEnabled=function(){return this.U}; II.prototype.reset=function(){this.C={};this.U=!0;this.T={}};var rj=document,K_=window;var JNk=!g.K6&&!DH();vY.prototype.now=function(){return 0}; vY.prototype.U=function(){return 0}; vY.prototype.T=function(){return 0}; vY.prototype.C=function(){return 0};g.z(ew,vY);ew.prototype.now=function(){return aI()&&K_.performance.now?K_.performance.now():vY.prototype.now.call(this)}; ew.prototype.U=function(){return aI()&&K_.performance.memory?K_.performance.memory.totalJSHeapSize||0:vY.prototype.U.call(this)}; ew.prototype.T=function(){return aI()&&K_.performance.memory?K_.performance.memory.usedJSHeapSize||0:vY.prototype.T.call(this)}; ew.prototype.C=function(){return aI()&&K_.performance.memory?K_.performance.memory.jsHeapSizeLimit||0:vY.prototype.C.call(this)};var WIv=eP(function(){var F=!1;try{var J=Object.defineProperty({},"passive",{get:function(){F=!0}}); g.Qz.addEventListener("test",null,J)}catch(b){}return F});dfC.prototype.isVisible=function(){return mx(rj)===1};var jcJ={i8E:"allow-forms",flG:"allow-modals",Mo_:"allow-orientation-lock",E4j:"allow-pointer-lock",dJE:"allow-popups",llD:"allow-popups-to-escape-sandbox",QQz:"allow-presentation",Sa_:"allow-same-origin",H8D:"allow-scripts",VoG:"allow-top-navigation",hcj:"allow-top-navigation-by-user-activation"},Bb7=eP(function(){return Gqv()});var scz=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");lT.prototype.tF=function(F,J,b){F=F+"//"+J+b;var I=Xjk(this)-b.length;if(I<0)return"";this.C.sort(function(a,e){return a-e}); b=null;J="";for(var u=0;u<this.C.length;u++)for(var w=this.C[u],M=this.U[w],q=0;q<M.length;q++){if(!I){b=b==null?w:b;break}var v=C5Y(M[q],this.T,",$");if(v){v=J+v;if(I>=v.length){I-=v.length;F+=v;J=this.T;break}b=b==null?w:b}}I="";b!=null&&(I=""+J+"trn="+b);return F+I};PY.prototype.setInterval=function(F,J){return K_.setInterval(F,J)}; PY.prototype.clearInterval=function(F){K_.clearInterval(F)}; PY.prototype.setTimeout=function(F,J){return K_.setTimeout(F,J)}; PY.prototype.clearTimeout=function(F){K_.clearTimeout(F)};g.z(Ti,CG);Ti.prototype.C=M2o([0,IaL,Mze,-2,vCR]);var Hu_={Jdj:1,Zp:2,ekW:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};F67.prototype.fq=function(F){if(typeof F==="string"&&F.length!=0){var J=this.Dy;if(J.U){F=F.split("&");for(var b=F.length-1;b>=0;b--){var I=F[b].split("="),u=decodeURIComponent(I[0]);I.length>1?(I=decodeURIComponent(I[1]),I=/^[0-9]+$/g.exec(I)?parseInt(I,10):I):I=1;(u=J.C[u])&&u.T(I)}}}};var Mm=null;var C_=g.Qz.performance,k_e=!!(C_&&C_.mark&&C_.measure&&C_.clearMarks),YI=eP(function(){var F;if(F=k_e){var J=J===void 0?window:J;if(Mm===null){Mm="";try{F="";try{F=J.top.location.hash}catch(I){F=J.location.hash}if(F){var b=F.match(/\bdeid=([\d,]+)/);Mm=b?b[1]:""}}catch(I){}}J=Mm;F=!!J.indexOf&&J.indexOf("1337")>=0}return F}); $I.prototype.disable=function(){this.C=!1;this.events!==this.U.google_js_reporting_queue&&(YI()&&g.gy(this.events,MWm),this.events.length=0)}; $I.prototype.start=function(F,J){if(!this.C)return null;var b=u53()||IFm();F=new wRv(F,J,b);J="goog_"+F.label+"_"+F.uniqueId+"_start";C_&&YI()&&C_.mark(J);return F}; $I.prototype.end=function(F){if(this.C&&typeof F.value==="number"){var J=u53()||IFm();F.duration=J-F.value;J="goog_"+F.label+"_"+F.uniqueId+"_end";C_&&YI()&&C_.mark(J);!this.C||this.events.length>2048||this.events.push(F)}};Avz.prototype.l5=function(F,J,b,I,u){u=u||this.Zk;try{var w=new lT;w.C.push(1);w.U[1]=f_("context",F);J.error&&J.meta&&J.id||(J=new DA(kI(J)));if(J.msg){var M=J.msg.substring(0,512);w.C.push(2);w.U[2]=f_("msg",M)}var q=J.meta||{};if(this.Uj)try{this.Uj(q)}catch(m){}if(I)try{I(q)}catch(m){}I=[q];w.C.push(3);w.U[3]=I;var v=$fJ();if(v.U){var a=v.U.url||"";w.C.push(4);w.U[4]=f_("top",a)}var e={url:v.C.url||""};if(v.C.url){var K=v.C.url.match(YV);var p=Bj(K[1],null,K[3],K[4])}else p="";a=[e,{url:p}];w.C.push(5); w.U[5]=a;Jva(this.C,u,w,b)}catch(m){try{Jva(this.C,u,{context:"ecmserr",rctx:F,msg:kI(m),url:v&&v.C.url},b)}catch(y){}}return this.zK}; g.z(DA,b2J);var QF,RI,XV=new $I;QF=new function(){var F="https:";K_&&K_.location&&K_.location.protocol==="http:"&&(F="http:");this.U=F;this.C=.01}; RI=new Avz;K_&&K_.document&&(K_.document.readyState=="complete"?v9C():XV.C&&gf(K_,"load",function(){v9C()}));var K67=Date.now(),n_=-1,UG=-1,BR4,th=-1,xI=!1;g.A=ZA.prototype;g.A.getHeight=function(){return this.bottom-this.top}; g.A.clone=function(){return new ZA(this.top,this.right,this.bottom,this.left)}; g.A.contains=function(F){return this&&F?F instanceof ZA?F.left>=this.left&&F.right<=this.right&&F.top>=this.top&&F.bottom<=this.bottom:F.x>=this.left&&F.x<=this.right&&F.y>=this.top&&F.y<=this.bottom:!1}; g.A.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.A.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.A.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.A.scale=function(F,J){J=typeof J==="number"?J:F;this.left*=F;this.right*=F;this.top*=J;this.bottom*=J;return this};JW.prototype.Hg=function(F,J){return!!F&&(!(J===void 0?0:J)||this.volume==F.volume)&&this.T==F.T&&L_(this.C,F.C)&&!0};bu.prototype.Pb=function(){return this.V}; bu.prototype.Hg=function(F,J){return this.Z.Hg(F.Z,J===void 0?!1:J)&&this.V==F.V&&L_(this.T,F.T)&&L_(this.W,F.W)&&this.C==F.C&&this.D==F.D&&this.U==F.U&&this.Y==F.Y};var O3t={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},j7={rP:"start",PT:"firstquartile",yu:"midpoint",Cz:"thirdquartile",COMPLETE:"complete",ERROR:"error",J0:"metric",PAUSE:"pause",b8:"resume",LY:"skip",ew:"viewable_impression",Yz:"mute",UC:"unmute",Ri:"fullscreen",uG:"exitfullscreen",IL:"bufferstart",NB:"bufferfinish",kF:"fully_viewable_audible_half_duration_impression",oM:"measurable_impression",pm:"abandon",sD:"engagedview",qx:"impression",UD:"creativeview",Bt:"loaded", jm_:"progress",CLOSE:"close",HFN:"collapse",lWW:"overlay_resize",Qm_:"overlay_unmeasurable_impression",SYQ:"overlay_unviewable_impression",VS_:"overlay_viewable_immediate_impression",HcW:"overlay_viewable_end_of_session_impression",TJ:"custom_metric_viewable",nm:"audio_audible",b9:"audio_measurable",aL:"audio_impression"},D5z="start firstquartile midpoint thirdquartile resume loaded".split(" "),kim=["start","firstquartile","midpoint","thirdquartile"],rNk=["abandon"],c2={UNKNOWN:-1,rP:0,PT:1,yu:2, Cz:3,COMPLETE:4,J0:5,PAUSE:6,b8:7,LY:8,ew:9,Yz:10,UC:11,Ri:12,uG:13,kF:14,oM:15,pm:16,sD:17,qx:18,UD:19,Bt:20,TJ:21,IL:22,NB:23,aL:27,b9:28,nm:29};var g9J={PkI:"addEventListener",H4W:"getMaxSize",Vij:"getScreenSize",h3G:"getState",z3W:"getVersion",rrN:"removeEventListener",VBG:"isViewable"};g.A=g.uu.prototype;g.A.clone=function(){return new g.uu(this.left,this.top,this.width,this.height)}; g.A.contains=function(F){return F instanceof g.K$?F.x>=this.left&&F.x<=this.left+this.width&&F.y>=this.top&&F.y<=this.top+this.height:this.left<=F.left&&this.left+this.width>=F.left+F.width&&this.top<=F.top&&this.top+this.height>=F.top+F.height}; g.A.getSize=function(){return new g.gl(this.width,this.height)}; g.A.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.A.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.A.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.A.scale=function(F,J){J=typeof J==="number"?J:F;this.left*=F;this.width*=F;this.top*=J;this.height*=J;return this};var zPz={};VWk.prototype.update=function(F){F&&F.document&&(this.V=IN(!1,F,this.isMobileDevice),this.C=IN(!0,F,this.isMobileDevice),B84(this,F),P3a(this,F))};sN.prototype.cancel=function(){BY().clearTimeout(this.C);this.C=null}; sN.prototype.schedule=function(){var F=this,J=BY(),b=Sw().C.C;this.C=J.setTimeout(rf(b,oI(143,function(){F.U++;F.T.sample()})),pR3())};g.A=Yg.prototype;g.A.WO=function(){return!1}; g.A.initialize=function(){return this.isInitialized=!0}; g.A.gE=function(){return this.C.WN}; g.A.N4=function(){return this.C.Tj}; g.A.R6=function(F,J){if(!this.Tj||(J===void 0?0:J))this.Tj=!0,this.WN=F,this.Y=0,this.C!=this||CL(this)}; g.A.getName=function(){return this.C.dD}; g.A.bH=function(){return this.C.hA()}; g.A.hA=function(){return{}}; g.A.UT=function(){return this.C.Y}; g.A.EZ=function(){var F=Tv();F.C=IN(!0,this.T,F.isMobileDevice)}; g.A.d8=function(){P3a(Tv(),this.T)}; g.A.mT=function(){return this.Z.C}; g.A.sample=function(){}; g.A.isActive=function(){return this.C.W}; g.A.Qf=function(F){var J=this.C;this.C=F.UT()>=this.Y?F:this;J!==this.C?(this.W=this.C.W,CL(this)):this.W!==this.C.W&&(this.W=this.C.W,CL(this))}; g.A.e$=function(F){if(F.U===this.C){var J=!this.Z.Hg(F,this.N);this.Z=F;J&&SUG(this)}}; g.A.s1=function(){return this.N}; g.A.dispose=function(){this.kQ=!0}; g.A.iR=function(){return this.kQ};g.A=Xw.prototype;g.A.observe=function(){return!0}; g.A.unobserve=function(){}; g.A.Ei=function(F){this.D=F}; g.A.dispose=function(){if(!this.iR()){var F=this.U;g.Hk(F.D,this);F.N&&this.s1()&&rv7(F);this.unobserve();this.Gj=!0}}; g.A.iR=function(){return this.Gj}; g.A.bH=function(){return this.U.bH()}; g.A.UT=function(){return this.U.UT()}; g.A.gE=function(){return this.U.gE()}; g.A.N4=function(){return this.U.N4()}; g.A.Qf=function(){}; g.A.e$=function(){this.Sy()}; g.A.s1=function(){return this.kQ};g.A=Qf.prototype;g.A.UT=function(){return this.C.UT()}; g.A.gE=function(){return this.C.gE()}; g.A.N4=function(){return this.C.N4()}; g.A.create=function(F,J,b){var I=null;this.C&&(I=this.fM(F,J,b),$g(this.C,I));return I}; g.A.l0=function(){return this.A5()}; g.A.A5=function(){return!1}; g.A.init=function(F){return this.C.initialize()?($g(this.C,this),this.Z=F,!0):!1}; g.A.Qf=function(F){F.UT()==0&&this.Z(F.gE(),this)}; g.A.e$=function(){}; g.A.s1=function(){return!1}; g.A.dispose=function(){this.D=!0}; g.A.iR=function(){return this.D}; g.A.bH=function(){return{}};RN.prototype.add=function(F,J,b){++this.T;F=new YUz(F,J,b);this.C.push(new YUz(F.U,F.C,F.T+this.T/4096));this.U=!0;return this};RPJ.prototype.toString=function(){var F="//pagead2.googlesyndication.com//pagead/gen_204",J=kg(this.C);J.length>0&&(F+="?"+J);return F};ON.prototype.update=function(F,J,b){F&&(this.C+=J,this.U+=J,this.Z+=J,this.T=Math.max(this.T,this.Z));if(b===void 0?!F:b)this.Z=0};var hPz=[1,.75,.5,.3,0];oN.prototype.update=function(F,J,b,I,u,w){w=w===void 0?!0:w;J=u?Math.min(F,J):J;for(u=0;u<this.U.length;u++){var M=this.U[u],q=J>0&&J>=M;M=!(F>0&&F>=M)||b;this.C[u].update(w&&q,I,!w||M)}};tW.prototype.update=function(F,J,b,I){this.V=this.V!=-1?Math.min(this.V,J.BV):J.BV;this.eE=Math.max(this.eE,J.BV);this.Gj=this.Gj!=-1?Math.min(this.Gj,J.N_):J.N_;this.WN=Math.max(this.WN,J.N_);this.bR.update(J.N_,b.N_,J.C,F,I);this.qf+=F;J.BV===0&&(this.dD+=F);this.U.update(J.BV,b.BV,J.C,F,I);b=I||b.We!=J.We?b.isVisible()&&J.isVisible():b.isVisible();J=!J.isVisible()||J.C;this.KW.update(b,F,J)}; tW.prototype.kI=function(){return this.KW.T>=this.nW};if(rj&&rj.URL){var oCL=rj.URL,hv5;if(hv5=!!oCL){var cJk;a:{if(oCL){var U4W=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var AF=U4W.exec(decodeURIComponent(oCL));if(AF){cJk=AF[1]&&AF[1].length>1?AF[1].substring(1):"true";break a}}catch(F){}}cJk=""}hv5=cJk.length>0}RI.zK=!hv5};var x4U=new ZA(0,0,0,0);var L6v=new ZA(0,0,0,0);g.z(JS,g.R);g.A=JS.prototype; g.A.X_=function(){if(this.f4.C){if(this.QO.Jq){var F=this.f4.C;F.removeEventListener&&F.removeEventListener("mouseover",this.QO.Jq,p_());this.QO.Jq=null}this.QO.Bd&&(F=this.f4.C,F.removeEventListener&&F.removeEventListener("mouseout",this.QO.Bd,p_()),this.QO.Bd=null)}this.Eu&&this.Eu.dispose();this.JF&&this.JF.dispose();delete this.W8;delete this.Ql;delete this.Pi;delete this.f4.EG;delete this.f4.C;delete this.QO;delete this.Eu;delete this.JF;delete this.Dy;g.R.prototype.X_.call(this)}; g.A.IG=function(){return this.JF?this.JF.C:this.position}; g.A.fq=function(F){Sw().fq(F)}; g.A.s1=function(){return!1}; g.A.wl=function(){return new tW}; g.A.v9=function(){return this.W8}; g.A.x5=function(F){return IVm(this,F,1E4)}; g.A.VG=function(F,J,b,I,u,w,M){this.Pc||(this.NN&&(F=this.AU(F,b,u,M),I=I&&this.HD.BV>=(this.We()?.3:.5),this.Ww(w,F,I),this.y5=J,F.BV>0&&-1===this.BU&&(this.BU=J),this.aj==-1&&this.kI()&&(this.aj=J),this.i5==-2&&(this.i5=LL(this.IG())?F.BV:-1),this.HD=F),this.Ql(this))}; g.A.Ww=function(F,J,b){this.v9().update(F,J,this.HD,b)}; g.A.Cb=function(){return new Ht}; g.A.AU=function(F,J,b,I){b=this.Cb();b.C=J;J=BY().U;J=mx(rj)===0?-1:J.isVisible()?0:1;b.U=J;b.BV=this.va(F);b.We=this.We();b.N_=I;return b}; g.A.va=function(F){return this.opacity===0&&M5(this.Dy,"opac")===1?0:F}; g.A.We=function(){return!1}; g.A.iM=function(){return this.oQQ||this.pNW}; g.A.YW=function(){cY()}; g.A.iN=function(){cY()}; g.A.E0=function(){return 0}; g.A.kI=function(){return this.W8.kI()}; g.A.NZ=function(){var F=this.NN;F=(this.hasCompleted||this.iR())&&!F;var J=Sw().U!==2||this.h4G;return this.Pc||J&&F?2:this.kI()?4:3}; g.A.yY=function(){return 0};g.I8.prototype.next=function(){return g.qm}; g.qm={done:!0,value:void 0};g.I8.prototype.WF=function(){return this};g.z(voz,Ht);var vI=e$k([void 0,1,2,3,4,8,16]),aB=e$k([void 0,4,8,16]),nC1={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:AS("p0",aB),p1:AS("p1",aB),p2:AS("p2",aB),p3:AS("p3",aB),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:MN("mtos1",[0,2,4],!1,aB),mtos2:MN("mtos2",[0,2,4],!1,aB),mtos3:MN("mtos3",[0,2,4],!1,aB),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:AS("a0",aB),a1:AS("a1",aB),a2:AS("a2",aB),a3:AS("a3",aB),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:AS("c0",aB),c1:AS("c1",aB),c2:AS("c2",aB),c3:AS("c3",aB),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:AS("qmtos",vI),qnc:AS("qnc",vI),qmv:AS("qmv",vI),qnv:AS("qnv",vI), 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:AS("ss0",aB),ss1:AS("ss1",aB),ss2:AS("ss2",aB),ss3:AS("ss3",aB),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"},tzz=Object.assign({},nC1,{avid:vj("audio"),avas:"avas",vs:"vs"}),Z3e={atos:"atos",avt:MN("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(F,J){return function(b){return b[F]===void 0&&J!==void 0?J:b[F]}}("ss",0), t:"t"};e7.prototype.getValue=function(){return this.U}; e7.prototype.update=function(F,J){F>=32||(this.C&1<<F&&!J?this.U&=~(1<<F):this.C&1<<F||!J||(this.U|=1<<F),this.C|=1<<F)};g.z(Kq,tW); Kq.prototype.update=function(F,J,b,I){if(!J.paused){tW.prototype.update.call(this,F,J,b,I);var u=w2(J)&&w2(b),w=(I?Math.min(J.BV,b.BV):b.BV)>=.5;Pc(J.volume)&&(this.Z=this.Z!=-1?Math.min(this.Z,J.volume):J.volume,this.W=Math.max(this.W,J.volume));w&&(this.kQ+=F,this.N+=u?F:0);this.C.update(J.BV,b.BV,J.C,F,I,u);this.T.update(!0,F);this.D.update(u,F);this.Tj.update(b.fullscreen,F);this.cN.update(u&&!w,F);F=Math.floor(J.mediaTime/1E3);this.fW.update(F,J.isVisible());this.oI.update(F,J.BV>=1);this.Jz.update(F, w2(J))}};iMk.prototype.U=function(F){this.T||(this.C(F)?(F=PTk(this.N,this.Z,F),this.D|=F,F=F==0):F=!1,this.T=F)};g.z(g2,iMk);g2.prototype.C=function(){return!0}; g2.prototype.W=function(){return!1}; g2.prototype.getId=function(){var F=this,J=Go(j7,function(b){return b==F.Z}); return c2[J].toString()}; g2.prototype.toString=function(){var F="";this.W()&&(F+="c");this.T&&(F+="s");this.D>0&&(F+=":"+this.D);return this.getId()+F};g.z(ma,g2);ma.prototype.U=function(F,J){J=J===void 0?null:J;J!=null&&this.V.push(J);g2.prototype.U.call(this,F)};g.z(yC,z$o);yC.prototype.U=function(){return null}; yC.prototype.T=function(){return[]};g.z(iR,Xw);g.A=iR.prototype;g.A.qV=function(){if(this.element){var F=this.element,J=this.U.C.T;try{try{var b=E9_(F.getBoundingClientRect())}catch(a){b=new ZA(0,0,0,0)}var I=b.right-b.left,u=b.bottom-b.top,w=fF4(F,J),M=w.x,q=w.y;var v=new ZA(Math.round(q),Math.round(M+I),Math.round(q+u),Math.round(M))}catch(a){v=x4U.clone()}this.T=v;this.C=s6C(this,this.T)}}; g.A.RJ=function(){this.W=this.U.Z.C}; g.A.Nn=function(F){var J=M5(this.Dy,"od")==1;return H2Y(F,this.W,this.element,J)}; g.A.gQ=function(){this.timestamp=cY()}; g.A.Sy=function(){this.gQ();this.qV();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var F=this.element;var J=new g.gl(F.videoWidth,F.videoHeight);F=this.C;var b=HY(F),I=F.getHeight(),u=J.width;J=J.height;u<=0||J<=0||b<=0||I<=0||(u/=J,J=b/I,F=F.clone(),u>J?(b/=u,I=(I-b)/2,I>0&&(I=F.top+I,F.top=Math.round(I),F.bottom=Math.round(I+b))):(I*=u,b=Math.round((b-I)/2),b>0&&(b=F.left+b,F.left=Math.round(b),F.right=Math.round(b+I))));this.C=F}this.RJ(); F=this.C;b=this.W;F=F.left<=b.right&&b.left<=F.right&&F.top<=b.bottom&&b.top<=F.bottom?new ZA(Math.max(F.top,b.top),Math.min(F.right,b.right),Math.min(F.bottom,b.bottom),Math.max(F.left,b.left)):new ZA(0,0,0,0);b=F.top>=F.bottom||F.left>=F.right?new ZA(0,0,0,0):F;F=this.U.Z;J=u=I=0;if((this.C.bottom-this.C.top)*(this.C.right-this.C.left)>0)if(this.Nn(b))b=new ZA(0,0,0,0);else{I=Tv().Z;J=new ZA(0,I.height,I.width,0);var w;I=FL(b,(w=this.D)!=null?w:this.C);u=FL(b,Tv().C);J=FL(b,J)}w=b.top>=b.bottom|| b.left>=b.right?new ZA(0,0,0,0):Fw(b,-this.C.left,-this.C.top);Su()||(u=I=0);this.N=new bu(F,this.element,this.C,w,I,u,this.timestamp,J)}; g.A.getName=function(){return this.U.getName()};var H3b=new ZA(0,0,0,0);g.z(zZ,iR);g.A=zZ.prototype;g.A.observe=function(){this.Z();return!0}; g.A.e$=function(){iR.prototype.Sy.call(this)}; g.A.gQ=function(){}; g.A.qV=function(){}; g.A.Sy=function(){this.Z();iR.prototype.Sy.call(this)}; g.A.Qf=function(F){F=F.isActive();F!==this.Y&&(F?this.Z():(Tv().C=new ZA(0,0,0,0),this.C=new ZA(0,0,0,0),this.W=new ZA(0,0,0,0),this.timestamp=-1));this.Y=F};var eb={},PF7=(eb.firstquartile=0,eb.midpoint=1,eb.thirdquartile=2,eb.complete=3,eb);g.z(lR,JS);g.A=lR.prototype;g.A.s1=function(){return!0}; g.A.ZX=function(){return this.vS==2}; g.A.x5=function(F){return IVm(this,F,Math.max(1E4,this.T/3))}; g.A.VG=function(F,J,b,I,u,w,M){var q=this,v=this.V(this)||{};g.Sq(v,u);this.T=v.duration||this.T;this.N=v.isVpaid||this.N;this.dD=v.isYouTube||this.dD;BY();this.bR=!1;u=lVm(this,J);NRa(this)===1&&(w=u);JS.prototype.VG.call(this,F,J,b,I,v,w,M);this.OT&&this.OT.T&&g.gy(this.W,function(a){a.U(q)})}; g.A.Ww=function(F,J,b){JS.prototype.Ww.call(this,F,J,b);d2(this).update(F,J,this.HD,b);this.nW=w2(this.HD)&&w2(J);this.WN==-1&&this.oI&&(this.WN=this.v9().T.C);this.Cv.T=0;F=this.kI();J.isVisible()&&a8(this.Cv,"vs");F&&a8(this.Cv,"vw");Pc(J.volume)&&a8(this.Cv,"am");w2(J)?a8(this.Cv,"a"):a8(this.Cv,"mut");this.o9&&a8(this.Cv,"f");J.U!=-1&&(a8(this.Cv,"bm"),J.U==1&&(a8(this.Cv,"b"),w2(J)&&a8(this.Cv,"umutb")));w2(J)&&J.isVisible()&&a8(this.Cv,"avs");this.nW&&F&&a8(this.Cv,"avw");J.BV>0&&a8(this.Cv, "pv");E0(this,this.v9().T.C,!0)&&a8(this.Cv,"gdr");xg(this.v9().U,1)>=2E3&&a8(this.Cv,"pmx");this.bR&&a8(this.Cv,"tvoff")}; g.A.wl=function(){return new Kq}; g.A.v9=function(){return this.W8}; g.A.Cb=function(){return new voz}; g.A.AU=function(F,J,b,I){F=JS.prototype.AU.call(this,F,J,b,I===void 0?-1:I);F.fullscreen=this.o9;F.paused=this.ZX();F.volume=b.volume;Pc(F.volume)||(this.Um++,J=this.HD,Pc(J.volume)&&(F.volume=J.volume));b=b.currentTime;F.mediaTime=b!==void 0&&b>=0?b:-1;return F}; g.A.va=function(F){return Tv(),this.o9?1:JS.prototype.va.call(this,F)}; g.A.E0=function(){return 1}; g.A.getDuration=function(){return this.T}; g.A.NZ=function(){return this.Pc?2:Wja(this)?5:this.kI()?4:3}; g.A.yY=function(){return this.cN?this.v9().D.T>=2E3?4:3:2}; g.A.Ei=function(F){this.JF&&this.JF.Ei(F)};var LoR=g.L3();R$G.prototype.reset=function(){this.C=[];this.U=[]}; var TZ=VF(R$G);g.z(s0,Qf);g.A=s0.prototype;g.A.getName=function(){return(this.U?this.U:this.C).getName()}; g.A.bH=function(){return(this.U?this.U:this.C).bH()}; g.A.UT=function(){return(this.U?this.U:this.C).UT()}; g.A.init=function(F){var J=!1;(0,g.gy)(this.T,function(b){b.initialize()&&(J=!0)}); J&&(this.Z=F,$g(this.C,this));return J}; g.A.dispose=function(){(0,g.gy)(this.T,function(F){F.dispose()}); Qf.prototype.dispose.call(this)}; g.A.l0=function(){return Bc(this.T,function(F){return F.WO()})}; g.A.A5=function(){return Bc(this.T,function(F){return F.WO()})}; g.A.fM=function(F,J,b){return new iR(F,this.C,J,b)}; g.A.e$=function(F){this.U=F.U};var noY={threshold:[0,.3,.5,.75,1]};g.z(YR,iR);g.A=YR.prototype;g.A.observe=function(){var F=this;this.eE||(this.eE=cY());if(eP4(298,function(){return thv(F)}))return!0; this.U.R6("msf");return!1}; g.A.unobserve=function(){if(this.Z&&this.element)try{this.Z.unobserve(this.element),this.Y?(this.Y.unobserve(this.element),this.Y=null):this.V&&(this.V.disconnect(),this.V=null)}catch(F){}}; g.A.Sy=function(){var F=$R(this);F.length>0&&Cq(this,F);iR.prototype.Sy.call(this)}; g.A.qV=function(){}; g.A.Nn=function(){return!1}; g.A.RJ=function(){}; g.A.bH=function(){var F={};return Object.assign(this.U.bH(),(F.niot_obs=this.eE,F.niot_cbk=this.Tj,F))}; g.A.getName=function(){return"nio"};g.z(XL,Qf);XL.prototype.getName=function(){return"nio"}; XL.prototype.A5=function(){return!Tv().U&&this.C.C.T.IntersectionObserver!=null}; XL.prototype.fM=function(F,J,b){return new YR(F,this.C,J,b)};g.z(QC,Yg);QC.prototype.mT=function(){return Tv().C}; QC.prototype.WO=function(){var F=HM3();this.Y!==F&&(this.C!=this&&F>this.C.Y&&(this.C=this,CL(this)),this.Y=F);return F==2};R8.prototype.sample=function(){O0(this,r2(),!1)}; R8.prototype.Z=function(){var F=Su(),J=cY();F?(xI||(n_=J,g.gy(TZ.C,function(b){var I=b.v9();I.zj=pq(I,J,b.vS!=1)})),xI=!0):(this.V=IA7(this,J),xI=!1,BR4=J,g.gy(TZ.C,function(b){b.NN&&(b.v9().Y=J)})); O0(this,r2(),!F)}; var DS=VF(R8);var wYa=null,K8="",ef=!1;var qGz=Ahz().s0,hS=Ahz().uS;var eAa={i4E:"visible",rNR:"audible",oZ_:"time",JrQ:"timetype"},Kxz={visible:function(F){return/^(100|[0-9]{1,2})$/.test(F)}, audible:function(F){return F=="0"||F=="1"}, timetype:function(F){return F=="mtos"||F=="tos"}, time:function(F){return/^(100|[0-9]{1,2})%$/.test(F)||/^([0-9])+ms$/.test(F)}}; aAm.prototype.setTime=function(F,J,b){J=="ms"?(this.T=F,this.Z=-1):(this.T=-1,this.Z=F);this.D=b===void 0?"tos":b;return this};g.z(nq,g2);nq.prototype.getId=function(){return this.V}; nq.prototype.W=function(){return!0}; nq.prototype.C=function(F){var J=F.v9(),b=F.getDuration();return Bc(this.Y,function(I){if(I.C!=void 0)var u=gIC(I,J);else b:{switch(I.D){case "mtos":u=I.U?J.D.T:J.T.C;break b;case "tos":u=I.U?J.D.C:J.T.C;break b}u=0}u==0?I=!1:(I=I.T!=-1?I.T:b!==void 0&&b>0?I.Z*b:-1,I=I!=-1&&u>=I);return I})};g.z(tS,ptC);tS.prototype.C=function(F){var J=new Kj4;J.C=v2(F,nC1);J.U=v2(F,Z3e);return J};g.z(ZS,g2);ZS.prototype.C=function(F){return Wja(F)};g.z(H2,z$o);g.z(Lq,g2);Lq.prototype.C=function(F){return F.v9().kI()};g.z(F0,ma);F0.prototype.C=function(F){var J=g.te(this.V,M5(Sw().Dy,"ovms"));return!F.Pc&&(F.vS!=0||J)};g.z(Jy,H2);Jy.prototype.U=function(){return new F0(this.C)}; Jy.prototype.T=function(){return[new Lq("viewable_impression",this.C),new ZS(this.C)]};g.z(bo,zZ);bo.prototype.Z=function(){var F=g.kC("ima.admob.getViewability"),J=M5(this.Dy,"queryid");typeof F==="function"&&J&&F(J)}; bo.prototype.getName=function(){return"gsv"};g.z(IE,Qf);IE.prototype.getName=function(){return"gsv"}; IE.prototype.A5=function(){var F=Tv();Sw();return F.U&&!1}; IE.prototype.fM=function(F,J,b){return new bo(this.C,J,b)};g.z(uo,zZ);uo.prototype.Z=function(){var F=this,J=g.kC("ima.bridge.getNativeViewability"),b=M5(this.Dy,"queryid");typeof J==="function"&&b&&J(b,function(I){g.Vj(I)&&F.V++;var u=I.opt_nativeViewVisibleBounds||{},w=I.opt_nativeViewHidden;F.C=j6k(I.opt_nativeViewBounds||{});var M=F.U.Z;M.C=w?H3b.clone():j6k(u);F.timestamp=I.opt_nativeTime||-1;Tv().C=M.C;I=I.opt_nativeVolume;I!==void 0&&(M.volume=I)})}; uo.prototype.getName=function(){return"nis"};g.z(wi,Qf);wi.prototype.getName=function(){return"nis"}; wi.prototype.A5=function(){var F=Tv();Sw();return F.U&&!1}; wi.prototype.fM=function(F,J,b){return new uo(this.C,J,b)};g.z(Mw,Yg);g.A=Mw.prototype;g.A.WO=function(){return this.U.P5!=null}; g.A.hA=function(){var F={};this.fW&&(F.mraid=this.fW);this.Gj&&(F.mlc=1);F.mtop=this.U.rXI;this.V&&(F.mse=this.V);this.qf&&(F.msc=1);F.mcp=this.U.compatibility;return F}; g.A.Ui=function(F){var J=g.Ba.apply(1,arguments);try{return this.U.P5[F].apply(this.U.P5,J)}catch(b){hh(538,b,.01,function(I){I.method=F})}}; g.A.initialize=function(){var F=this;if(this.isInitialized)return!this.N4();this.isInitialized=!0;if(this.U.compatibility===2)return this.V="ng",this.R6("w"),!1;if(this.U.compatibility===1)return this.V="mm",this.R6("w"),!1;Tv().Y=!0;this.T.document.readyState&&this.T.document.readyState=="complete"?zAC(this):Hc(this.T,"load",function(){BY().setTimeout(oI(292,function(){return zAC(F)}),100)},292); return!0}; g.A.EZ=function(){var F=Tv(),J=d5m(this,"getMaxSize");F.C=new ZA(0,J.width,J.height,0)}; g.A.d8=function(){Tv().Z=d5m(this,"getScreenSize")}; g.A.dispose=function(){lA3(this);Yg.prototype.dispose.call(this)};var nVY=new function(F,J){this.key=F;this.defaultValue=J===void 0?!1:J;this.valueType="boolean"}("45378663");g.A=qw.prototype;g.A.iU=function(F){bR(F,!1);ook(F)}; g.A.PH=function(){}; g.A.zM=function(F,J,b,I){var u=this;F=new lR(K_,F,b?J:-1,7,this.m7(),this.By());F.Dj=I;iu_(F.Dy);wf(F.Dy,"queryid",F.Dj);F.fq("");MhG(F,function(){return u.ZJ.apply(u,g.W(g.Ba.apply(0,arguments)))},function(){return u.kj_.apply(u,g.W(g.Ba.apply(0,arguments)))}); (I=VF(S7).C)&&bMY(F,I);this.T&&(F.Ei(this.T),this.T=null);F.f4.EG&&VF(Ljz);return F}; g.A.Qf=function(F){switch(F.UT()){case 0:if(F=VF(S7).C)F=F.C,g.Hk(F.D,this),F.N&&this.s1()&&rv7(F);aE();break;case 2:kR()}}; g.A.e$=function(){}; g.A.s1=function(){return!1}; g.A.kj_=function(F,J){F.Pc=!0;switch(F.E0()){case 1:BfC(F,J);break;case 2:this.zO(F)}}; g.A.MEQ=function(F){var J=F.V(F);J&&(J=J.volume,F.cN=Pc(J)&&J>0);j2a(F,0);return GZ(F,"start",Su())}; g.A.Fs=function(F,J,b){O0(DS,[F],!Su());return this.lS(F,J,b)}; g.A.lS=function(F,J,b){return GZ(F,b,Su())}; g.A.OWW=function(F){return yP(F,"firstquartile",1)}; g.A.DfG=function(F){F.oI=!0;return yP(F,"midpoint",2)}; g.A.EQ_=function(F){return yP(F,"thirdquartile",3)}; g.A.gQQ=function(F){var J=yP(F,"complete",4);fq(F);return J}; g.A.WGz=function(F){F.vS=3;return GZ(F,"error",Su())}; g.A.v3=function(F,J,b){J=Su();if(F.ZX()&&!J){var I=F.v9(),u=cY();I.Y=u}O0(DS,[F],!J);F.ZX()&&(F.vS=1);return GZ(F,b,J)}; g.A.fvz=function(F,J){J=this.Fs(F,J||{},"skip");fq(F);return J}; g.A.qQG=function(F,J){bR(F,!0);return this.Fs(F,J||{},"fullscreen")}; g.A.AzG=function(F,J){bR(F,!1);return this.Fs(F,J||{},"exitfullscreen")}; g.A.GO=function(F,J,b){J=F.v9();var I=cY();J.zj=pq(J,I,F.vS!=1);O0(DS,[F],!Su());F.vS==1&&(F.vS=2);return GZ(F,b,Su())}; g.A.iWG=function(F){O0(DS,[F],!Su());return F.U()}; g.A.VU=function(F){O0(DS,[F],!Su());this.hf(F);fq(F);return F.U()}; g.A.ZJ=function(){}; g.A.zO=function(){}; g.A.hf=function(){}; g.A.Qe=function(){}; g.A.Ln=function(){}; g.A.By=function(){this.C||(this.C=this.Ln());return this.C==null?new yC:new Jy(this.C)}; g.A.m7=function(){return new tS};g.z(io,g2);io.prototype.C=function(F){return F.yY()==4};g.z(zM,ma);zM.prototype.C=function(F){F=F.yY();return F==3||F==4};g.z(Nw,H2);Nw.prototype.U=function(){return new zM(this.C)}; Nw.prototype.T=function(){return[new io(this.C)]};g.z(lo,ptC);lo.prototype.C=function(F){F&&(F.e===28&&(F=Object.assign({},F,{avas:3})),F.vs===4||F.vs===5)&&(F=Object.assign({},F,{vs:3}));var J=new Kj4;J.C=v2(F,tzz);J.U=v2(F,Z3e);return J};sIv.prototype.U=function(){return g.kC(this.C)};g.z(f8,qw);g.A=f8.prototype;g.A.PH=function(F,J){var b=this,I=VF(S7);if(I.C!=null)switch(I.C.getName()){case "nis":var u=XY7(this,F,J);break;case "gsv":u=CTm(this,F,J);break;case "exc":u=QIo(this,F)}u||(J.opt_overlayAdElement?u=void 0:J.opt_adElement&&(u=rhv(this,F,J.opt_adElement,J.opt_osdId)));u&&u.E0()==1&&(u.V==g.ac&&(u.V=function(w){return b.Qe(w)}),$5Y(this,u,J)); return u}; g.A.Qe=function(F){F.U=0;F.kQ=0;if(F.Z=="h"||F.Z=="n"){Sw();F.Jz&&(Sw(),gi(this)!="h"&&gi(this));var J=g.kC("ima.common.getVideoMetadata");if(typeof J==="function")try{var b=J(F.Dj)}catch(u){F.U|=4}else F.U|=2}else if(F.Z=="b")if(J=g.kC("ytads.bulleit.getVideoMetadata"),typeof J==="function")try{b=J(F.Dj)}catch(u){F.U|=4}else F.U|=2;else if(F.Z=="ml")if(J=g.kC("ima.common.getVideoMetadata"),typeof J==="function")try{b=J(F.Dj)}catch(u){F.U|=4}else F.U|=2;else F.U|=1;F.U||(b===void 0?F.U|=8:b===null? F.U|=16:g.Vj(b)?F.U|=32:b.errorCode!=null&&(F.kQ=b.errorCode,F.U|=64));b==null&&(b={});J=b;F.Y=0;for(var I in O3t)J[I]==null&&(F.Y|=O3t[I]);SGa(J,"currentTime");SGa(J,"duration");Pc(b.volume)&&Pc()&&(b.volume*=NaN);return b}; g.A.Ln=function(){Sw();gi(this)!="h"&&gi(this);var F=RAo(this);return F!=null?new sIv(F):null}; g.A.zO=function(F){!F.C&&F.Pc&&mU(this,F,"overlay_unmeasurable_impression")&&(F.C=!0)}; g.A.hf=function(F){F.OH&&(F.kI()?mU(this,F,"overlay_viewable_end_of_session_impression"):mU(this,F,"overlay_unviewable_impression"),F.OH=!1)}; g.A.ZJ=function(){}; g.A.zM=function(F,J,b,I){if(tPz()){var u=M5(Sw().Dy,"mm"),w={};(u=(w[sG.jR]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",w[sG.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",w)[u])&&oIk(this,u);this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&hh(1044,Error())}F=qw.prototype.zM.call(this,F,J,b,I);this.D&&(J=this.W,F.D==null&&(F.D=new ANG),J.C[F.Dj]=F.D,F.D.D=LoR);return F}; g.A.iU=function(F){F&&F.E0()==1&&this.D&&delete this.W.C[F.Dj];return qw.prototype.iU.call(this,F)}; g.A.By=function(){this.C||(this.C=this.Ln());return this.C==null?new yC:this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Nw(this.C):new Jy(this.C)}; g.A.m7=function(){return this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new lo:new tS}; g.A.Ei=function(F,J,b,I,u){J=new ZA(b,J+I,b+u,J);(F=B2(TZ,F))?F.Ei(J):this.T=J}; var FR8=OG(193,chJ,void 0,TfG);g.RG("Goog_AdSense_Lidar_sendVastEvent",FR8);var JeH=oI(194,function(F,J){J=J===void 0?{}:J;F=O_Y(VF(f8),F,J);return hA4(F)}); g.RG("Goog_AdSense_Lidar_getViewability",JeH);var bzz=OG(195,function(){return oVC()}); g.RG("Goog_AdSense_Lidar_getUrlSignalsArray",bzz);var IHe=oI(196,function(){return JSON.stringify(oVC())}); g.RG("Goog_AdSense_Lidar_getUrlSignalsList",IHe);var U5a=(new Date("2024-01-01T00:00:00Z")).getTime();var twv=AJJ(["//tpc.googlesyndication.com/sodar/",""]);g.z(BQ,g.R);BQ.prototype.Ey=function(){return this.wpc.f()}; BQ.prototype.aA=function(F){this.wpc.c(F)}; BQ.prototype.iy=function(F){return this.wpc.m(F2a(F))}; BQ.prototype.fA=function(F){return this.wpc.mws(F2a(F))}; g.z(VP,g.R);VP.prototype.snapshot=function(F){return this.w0.s(Object.assign({},F.Gi&&{c:F.Gi},F.hV&&{s:F.hV},F.tV!==void 0&&{p:F.tV}))}; VP.prototype.qw=function(F){this.w0.e(F)}; VP.prototype.OO=function(){return this.w0.l()};var Hq7=(new Date).getTime();var IGm="://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(" "),uwv=/\bocr\b/;var MuG=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var fGo=0,lGm=0,W2m=0;var AW7=Object.assign({},{attributes:{},handleError:function(F){throw F;}},{S0Q:!0, VlE:!0,Sg:!1,DbG:!1,PSQ:!1,EfQ:!1,H1I:SBC});var Sf=null,YQ=!1,zYJ=1,X0=Symbol("SIGNAL"),K4={version:0,iAQ:0,Y8:!1,K8:void 0,fU:void 0,TI:void 0,KJ:0,BS:void 0,zZ:void 0,hn:!1,zD:!1,kind:"unknown",Dh:function(){return!1}, iY:function(){}, K0:function(){}, Ml_:function(){}};var p4=Symbol("UNSET"),gt=Symbol("COMPUTING"),m0=Symbol("ERRORED");Object.assign({},K4,{value:p4,Y8:!0,error:null,eP:ri,kind:"computed",Dh:function(F){return F.value===p4||F.value===gt}, iY:function(F){if(F.value===gt)throw Error("Detected cycle in computations.");var J=F.value;F.value=gt;var b=eY4(F),I=!1;try{var u=F.nz();sY(null);I=J!==p4&&J!==m0&&u!==m0&&F.eP(J,u)}catch(w){u=m0,F.error=w}finally{K2z(F,b)}I?F.value=J:(F.value=u,F.version++)}});var yWv=Object.assign({},K4,{eP:ri,value:void 0,kind:"signal"});Object.assign({},K4,{value:p4,Y8:!0,error:null,eP:ri,Dh:function(F){return F.value===p4||F.value===gt}, iY:function(F){if(F.value===gt)throw Error("Detected cycle in computations.");var J=F.value;F.value=gt;var b=eY4(F);try{var I=F.source();var u=F.nz(I,J===p4||J===m0?void 0:{source:F.TqN,value:J});F.TqN=I}catch(w){u=m0,F.error=w}finally{K2z(F,b)}J!==p4&&u!==m0&&F.eP(J,u)?F.value=J:(F.value=u,F.version++)}});Object.assign({},K4,{zD:!0,hn:!1,K0:function(F){F.schedule!==null&&F.schedule(F.LUD)}, evW:!1,O1z:function(){}});var dB7=Symbol("updater");g.z(RE,g.Zr);RE.prototype.dispose=function(){window.removeEventListener("offline",this.T);window.removeEventListener("online",this.T);this.Xa.q_(this.D);delete RE.instance}; RE.prototype.Vi=function(){return this.C}; RE.prototype.Va=function(){var F=this;this.D=this.Xa.Ti(function(){var J;return g.S(function(b){if(b.C==1)return F.C?((J=window.navigator)==null?0:J.onLine)?b.gD(3):g.T(b,QP(F),3):g.T(b,QP(F),3);F.Va();g.N4(b)})},3E4)};kQ.prototype.set=function(F,J){J=J===void 0?!0:J;0<=F&&F<52&&Number.isInteger(F)&&this.data[F]!==J&&(this.data[F]=J,this.C=-1)}; kQ.prototype.get=function(F){return!!this.data[F]};var oE;g.Fb(g.n8,g.R);g.A=g.n8.prototype;g.A.start=function(){this.stop();this.Z=!1;var F=Vu_(this),J=PuG(this);F&&!J&&this.U.mozRequestAnimationFrame?(this.C=g.Dr(this.U,"MozBeforePaint",this.T),this.U.mozRequestAnimationFrame(null),this.Z=!0):this.C=F&&J?F.call(this.U,this.T):this.U.setTimeout(UXa(this.T),20)}; g.A.stop=function(){if(this.isActive()){var F=Vu_(this),J=PuG(this);F&&!J&&this.U.mozRequestAnimationFrame?xe(this.C):F&&J?J.call(this.U,this.C):this.U.clearTimeout(this.C)}this.C=null}; g.A.isActive=function(){return this.C!=null}; g.A.zE=function(){this.Z&&this.C&&xe(this.C);this.C=null;this.W.call(this.D,g.L3())}; g.A.X_=function(){this.stop();g.n8.k7.X_.call(this)};g.Fb(g.ty,g.R);g.A=g.ty.prototype;g.A.Od=0;g.A.X_=function(){g.ty.k7.X_.call(this);this.stop();delete this.C;delete this.U}; g.A.start=function(F){this.stop();this.Od=g.Wj(this.T,F!==void 0?F:this.gg)}; g.A.stop=function(){this.isActive()&&g.Qz.clearTimeout(this.Od);this.Od=0}; g.A.isActive=function(){return this.Od!=0}; g.A.S_=function(){this.Od=0;this.C&&this.C.call(this.U)};g.F4.prototype[Symbol.iterator]=function(){return this}; g.F4.prototype.next=function(){var F=this.C.next();return{value:F.done?void 0:this.U.call(void 0,F.value),done:F.done}};g.Fb(g.vV,g.Zr);g.A=g.vV.prototype;g.A.isPlaying=function(){return this.C==1}; g.A.isPaused=function(){return this.C==-1}; g.A.pJ=function(){this.Jr("begin")}; g.A.ly=function(){this.Jr("end")}; g.A.onFinish=function(){this.Jr("finish")}; g.A.onStop=function(){this.Jr("stop")}; g.A.Jr=function(F){this.dispatchEvent(F)};var ube=eP(function(){var F=g.H1("DIV"),J=g.xM?"-webkit":eu?"-moz":null,b="transition:opacity 1s linear;";J&&(b+=J+"-transition:opacity 1s linear;");J=LLC({style:b});if(F.nodeType===1&&/^(script|style)$/i.test(F.tagName))throw Error("");F.innerHTML=$_(J);return g.KL(F.firstChild,"transition")!=""});g.Fb(a3,g.vV);g.A=a3.prototype;g.A.play=function(){if(this.isPlaying())return!1;this.pJ();this.Jr("play");this.startTime=g.L3();this.C=1;if(ube())return g.aN(this.U,this.W),this.T=g.Wj(this.zxG,void 0,this),!0;this.QA(!1);return!1}; g.A.zxG=function(){g.fL(this.U);rWo(this.U,this.V);g.aN(this.U,this.Z);this.T=g.Wj((0,g.tJ)(this.QA,this,!1),this.D*1E3)}; g.A.stop=function(){this.isPlaying()&&this.QA(!0)}; g.A.QA=function(F){g.aN(this.U,"transition","");g.Qz.clearTimeout(this.T);g.aN(this.U,this.Z);this.endTime=g.L3();this.C=0;if(F)this.onStop();else this.onFinish();this.ly()}; g.A.X_=function(){this.stop();a3.k7.X_.call(this)}; g.A.pause=function(){};var sNa={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};eM("Element","attributes")||eM("Node","attributes");eM("Element","innerHTML")||eM("HTMLElement","innerHTML");eM("Node","nodeName");eM("Node","nodeType");eM("Node","parentNode");eM("Node","childNodes");eM("HTMLElement","style")||eM("Element","style");eM("HTMLStyleElement","sheet");var RYm=$BJ("getPropertyValue"),DB4=$BJ("setProperty");eM("Element","namespaceURI")||eM("Node","namespaceURI");var QNG={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var hYa,dWv,ogC,OL3,cWz;hYa=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]");dWv=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.wkz=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.p6=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]");ogC=/^http:\/\/.*/;g.Mmb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");OL3=/\s+/;cWz=/[\d\u06f0-\u06f9]/;m5.prototype.WF=function(){return new yN(this.U())}; m5.prototype[Symbol.iterator]=function(){return new iG(this.U())}; m5.prototype.C=function(){return new iG(this.U())}; g.z(yN,g.I8);yN.prototype.next=function(){return this.U.next()}; yN.prototype[Symbol.iterator]=function(){return new iG(this.U)}; yN.prototype.C=function(){return new iG(this.U)}; g.z(iG,m5);iG.prototype.next=function(){return this.T.next()};Nr.prototype.clone=function(){return new Nr(this.C,this.V,this.T,this.D,this.Z,this.W,this.U,this.Y)}; Nr.prototype.Hg=function(F){return this.C==F.C&&this.V==F.V&&this.T==F.T&&this.D==F.D&&this.Z==F.Z&&this.W==F.W&&this.U==F.U&&this.Y==F.Y};f6.prototype.clone=function(){return new f6(this.start,this.end)}; f6.prototype.getLength=function(){return this.end-this.start};(function(){if(SIa){var F=/Windows NT ([0-9.]+)/;return(F=F.exec(g.Bk()))?F[1]:"0"}return xi?(F=/1[0|1][_.][0-9_.]+/,(F=F.exec(g.Bk()))?F[0].replace(/_/g,"."):"10"):g.Z$?(F=/Android\s+([^\);]+)(\)|;)/,(F=F.exec(g.Bk()))?F[1]:""):$Wa||Cc7||XJJ?(F=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(F=F.exec(g.Bk()))?F[1].replace(/_/g,"."):""):""})();var xB7=function(){if(g.Yj)return WV(/Firefox\/([0-9.]+)/);if(g.K6||g.c$||g.fH)return vLo;if(g.B4){if(ob()||he()){var F=WV(/CriOS\/([0-9.]+)/);if(F)return F}return WV(/Chrome\/([0-9.]+)/)}if(g.ia&&!ob())return WV(/Version\/([0-9.]+)/);if(x6||nl){if(F=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Bk()))return F[1]+"."+F[2]}else if(g.Wu)return(F=WV(/Android\s+([0-9.]+)/))?F:WV(/Version\/([0-9.]+)/);return""}();g.Fb(g.EJ,g.R);g.A=g.EJ.prototype;g.A.subscribe=function(F,J,b){var I=this.U[F];I||(I=this.U[F]=[]);var u=this.W;this.C[u]=F;this.C[u+1]=J;this.C[u+2]=b;this.W=u+3;I.push(u);return u}; g.A.unsubscribe=function(F,J,b){if(F=this.U[F]){var I=this.C;if(F=F.find(function(u){return I[u+1]==J&&I[u+2]==b}))return this.gB(F)}return!1}; g.A.gB=function(F){var J=this.C[F];if(J){var b=this.U[J];this.Z!=0?(this.T.push(F),this.C[F+1]=function(){}):(b&&g.Hk(b,F),delete this.C[F],delete this.C[F+1],delete this.C[F+2])}return!!J}; g.A.publish=function(F,J){var b=this.U[F];if(b){var I=Array(arguments.length-1),u=arguments.length,w;for(w=1;w<u;w++)I[w-1]=arguments[w];if(this.V)for(w=0;w<b.length;w++)u=b[w],ng7(this.C[u+1],this.C[u+2],I);else{this.Z++;try{for(w=0,u=b.length;w<u&&!this.iR();w++){var M=b[w];this.C[M+1].apply(this.C[M+2],I)}}finally{if(this.Z--,this.T.length>0&&this.Z==0)for(;b=this.T.pop();)this.gB(b)}}return w!=0}return!1}; g.A.clear=function(F){if(F){var J=this.U[F];J&&(J.forEach(this.gB,this),delete this.U[F])}else this.C.length=0,this.U={}}; g.A.X_=function(){g.EJ.k7.X_.call(this);this.clear();this.T.length=0};g.jM.prototype.set=function(F,J){J===void 0?this.C.remove(F):this.C.set(F,g.Gq(J))}; g.jM.prototype.get=function(F){try{var J=this.C.get(F)}catch(b){return}if(J!==null)try{return JSON.parse(J)}catch(b){throw"Storage: Invalid value was encountered";}}; g.jM.prototype.remove=function(F){this.C.remove(F)};g.Fb(G8,g.jM);G8.prototype.set=function(F,J){G8.k7.set.call(this,F,ZLY(J))}; G8.prototype.U=function(F){F=G8.k7.get.call(this,F);if(F===void 0||F instanceof Object)return F;throw"Storage: Invalid value was encountered";}; G8.prototype.get=function(F){if(F=this.U(F)){if(F=F.data,F===void 0)throw"Storage: Invalid value was encountered";}else F=void 0;return F};g.Fb(VN,G8);VN.prototype.set=function(F,J,b){if(J=ZLY(J)){if(b){if(b<g.L3()){VN.prototype.remove.call(this,F);return}J.expiration=b}J.creation=g.L3()}VN.k7.set.call(this,F,J)}; VN.prototype.U=function(F,J){var b=VN.k7.U.call(this,F);if(b)if(!J&&g.HLm(b))VN.prototype.remove.call(this,F);else return b};g.Fb(g.PV,VN);g.Fb(BV,L2v);BV.prototype[Symbol.iterator]=function(){return g.z8(this.WF(!0)).C()}; BV.prototype.clear=function(){var F=Array.from(this);F=g.N(F);for(var J=F.next();!J.done;J=F.next())this.remove(J.value)};g.Fb(T8,BV);g.A=T8.prototype;g.A.isAvailable=function(){var F=this.C;if(F)try{F.setItem("__sak","1");F.removeItem("__sak");var J=!0}catch(b){J=b instanceof DOMException&&(b.name==="QuotaExceededError"||b.code===22||b.code===1014||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&F&&F.length!==0}else J=!1;return this.U=J}; g.A.set=function(F,J){rD(this);try{this.C.setItem(F,J)}catch(b){if(this.C.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; g.A.get=function(F){rD(this);F=this.C.getItem(F);if(typeof F!=="string"&&F!==null)throw"Storage mechanism: Invalid value was encountered";return F}; g.A.remove=function(F){rD(this);this.C.removeItem(F)}; g.A.WF=function(F){rD(this);var J=0,b=this.C,I=new g.I8;I.next=function(){if(J>=b.length)return g.qm;var u=b.key(J++);if(F)return g.uR(u);u=b.getItem(u);if(typeof u!=="string")throw"Storage mechanism: Invalid value was encountered";return g.uR(u)}; return I}; g.A.clear=function(){rD(this);this.C.clear()}; g.A.key=function(F){rD(this);return this.C.key(F)};g.Fb(SM,T8);g.Fb(Fav,T8);g.Fb(sJ,BV);sJ.prototype.set=function(F,J){this.U.set(this.C+F,J)}; sJ.prototype.get=function(F){return this.U.get(this.C+F)}; sJ.prototype.remove=function(F){this.U.remove(this.C+F)}; sJ.prototype.WF=function(F){var J=this.U[Symbol.iterator](),b=this,I=new g.I8;I.next=function(){var u=J.next();if(u.done)return u;for(u=u.value;u.slice(0,b.C.length)!=b.C;){u=J.next();if(u.done)return u;u=u.value}return g.uR(F?u.slice(b.C.length):b.U.get(u))}; return I};$d.prototype.getValue=function(){return this.U}; $d.prototype.clone=function(){return new $d(this.C,this.U)};g.A=C6.prototype;g.A.wB=function(F,J){var b=this.C;b.push(new $d(F,J));F=b.length-1;J=this.C;for(b=J[F];F>0;){var I=F-1>>1;if(J[I].C>b.C)J[F]=J[I],F=I;else break}J[F]=b}; g.A.remove=function(){var F=this.C,J=F.length,b=F[0];if(!(J<=0)){if(J==1)F.length=0;else{F[0]=F.pop();F=0;J=this.C;for(var I=J.length,u=J[F];F<I>>1;){var w=F*2+1,M=F*2+2;w=M<I&&J[M].C<J[w].C?M:w;if(J[w].C>u.C)break;J[F]=J[w];F=w}J[F]=u}return b.getValue()}}; g.A.td=function(){for(var F=this.C,J=[],b=F.length,I=0;I<b;I++)J.push(F[I].getValue());return J}; g.A.b7=function(){for(var F=this.C,J=[],b=F.length,I=0;I<b;I++)J.push(F[I].C);return J}; g.A.clone=function(){return new C6(this)}; g.A.isEmpty=function(){return this.C.length===0}; g.A.clear=function(){this.C.length=0};g.z(X4,C6);X4.prototype.enqueue=function(F,J){this.wB(F,J)};QN.S6=void 0;QN.getInstance=function(){return QN.S6?QN.S6:QN.S6=new QN}; QN.prototype.C=0;var R3={},Aez=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";R3.assign=function(F){for(var J=Array.prototype.slice.call(arguments,1);J.length;){var b=J.shift();if(b){if(typeof b!=="object")throw new TypeError(b+"must be non-object");for(var I in b)Object.prototype.hasOwnProperty.call(b,I)&&(F[I]=b[I])}}return F}; R3.V0=function(F,J){if(F.length===J)return F;if(F.subarray)return F.subarray(0,J);F.length=J;return F}; var q1m={t2:function(F,J,b,I,u){if(J.subarray&&F.subarray)F.set(J.subarray(b,b+I),u);else for(var w=0;w<I;w++)F[u+w]=J[b+w]}, AA:function(F){var J,b;var I=b=0;for(J=F.length;I<J;I++)b+=F[I].length;var u=new Uint8Array(b);I=b=0;for(J=F.length;I<J;I++){var w=F[I];u.set(w,b);b+=w.length}return u}},vLR={t2:function(F,J,b,I,u){for(var w=0;w<I;w++)F[u+w]=J[b+w]}, AA:function(F){return[].concat.apply([],F)}}; R3.aV_=function(){Aez?(R3.R4=Uint8Array,R3.hg=Uint16Array,R3.CC=Int32Array,R3.assign(R3,q1m)):(R3.R4=Array,R3.hg=Array,R3.CC=Array,R3.assign(R3,vLR))}; R3.aV_();var aHm=!0;try{new Uint8Array(1)}catch(F){aHm=!1};var e4={};e4=function(F,J,b,I){var u=F&65535|0;F=F>>>16&65535|0;for(var w;b!==0;){w=b>2E3?2E3:b;b-=w;do u=u+J[I++]|0,F=F+u|0;while(--w);u%=65521;F%=65521}return u|F<<16|0};for(var KX={},yq,etL=[],ij=0;ij<256;ij++){yq=ij;for(var KRb=0;KRb<8;KRb++)yq=yq&1?3988292384^yq>>>1:yq>>>1;etL[ij]=yq}KX=function(F,J,b,I){b=I+b;for(F^=-1;I<b;I++)F=F>>>8^etL[(F^J[I])&255];return F^-1};var bJ={};bJ={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 n6=[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],HV=[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],dN7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],KaC=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Mj=Array(576);DC(Mj);var AE=Array(60);DC(AE);var ZC=Array(512);DC(ZC);var xd=Array(256);DC(xd);var tn=Array(29);DC(tn);var L6=Array(30);DC(L6);var lSJ,fSa,Wam,N2o=!1;var iJ;iJ=[new y9(0,0,0,0,function(F,J){var b=65535;for(b>F.NQ-5&&(b=F.NQ-5);;){if(F.nk<=1){pX(F);if(F.nk===0&&J===0)return 1;if(F.nk===0)break}F.Wb+=F.nk;F.nk=0;var I=F.dX+b;if(F.Wb===0||F.Wb>=I)if(F.nk=F.Wb-I,F.Wb=I,qj(F,!1),F.a8.eZ===0)return 1;if(F.Wb-F.dX>=F.QM-262&&(qj(F,!1),F.a8.eZ===0))return 1}F.wB=0;if(J===4)return qj(F,!0),F.a8.eZ===0?3:4;F.Wb>F.dX&&qj(F,!1);return 1}), new y9(4,4,8,4,gF),new y9(4,5,16,8,gF),new y9(4,6,32,32,gF),new y9(4,4,16,16,mM),new y9(8,16,32,32,mM),new y9(8,16,128,128,mM),new y9(8,32,128,256,mM),new y9(32,128,258,1024,mM),new y9(32,258,258,4096,mM)];var z8C={};z8C=function(){this.input=null;this.CO=this.zi=this.a7=0;this.output=null;this.CS=this.eZ=this.MK=0;this.msg="";this.state=null;this.wU=2;this.d9=0};var ERo=Object.prototype.toString; zT.prototype.push=function(F,J){var b=this.a8,I=this.options.chunkSize;if(this.ended)return!1;var u=J===~~J?J:J===!0?4:0;typeof F==="string"?b.input=JSY(F):ERo.call(F)==="[object ArrayBuffer]"?b.input=new Uint8Array(F):b.input=F;b.a7=0;b.zi=b.input.length;do{b.eZ===0&&(b.output=new R3.R4(I),b.MK=0,b.eZ=I);F=iq3(b,u);if(F!==1&&F!==0)return this.ly(F),this.ended=!0,!1;if(b.eZ===0||b.zi===0&&(u===4||u===2))if(this.options.qP==="string"){var w=R3.V0(b.output,b.MK);J=w;w=w.length;if(w<65537&&(J.subarray&& aHm||!J.subarray))J=String.fromCharCode.apply(null,R3.V0(J,w));else{for(var M="",q=0;q<w;q++)M+=String.fromCharCode(J[q]);J=M}this.chunks.push(J)}else J=R3.V0(b.output,b.MK),this.chunks.push(J)}while((b.zi>0||b.eZ===0)&&F!==1);if(u===4)return(b=this.a8)&&b.state?(I=b.state.status,I!==42&&I!==69&&I!==73&&I!==91&&I!==103&&I!==113&&I!==666?F=Ip(b,-2):(b.state=null,F=I===113?Ip(b,-3):0)):F=-2,this.ly(F),this.ended=!0,F===0;u===2&&(this.ly(0),b.eZ=0);return!0}; zT.prototype.ly=function(F){F===0&&(this.result=this.options.qP==="string"?this.chunks.join(""):R3.AA(this.chunks));this.chunks=[];this.err=F;this.msg=this.a8.msg};var lJ="@@redux/INIT"+Nj(),T2Y="@@redux/REPLACE"+Nj();var rS7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var pkb=[0,i3k,-3,uj];g.z(dF,CG);dF.prototype.getType=function(){return g4(this,11)};var cMa=function(){var F=[0,NYL,zvL,F6,i3k,F6,-1,uj,i3k,uj,-1,NYL,uj,zvL,JF,pkb,F6,-1,uj];return function(J,b){if(LR.length){var I=LR.pop();Tym(I,b);I.C.init(J,void 0,void 0,b);J=I}else J=new Tb(J,b);try{var u=new dF,w=u.Z7;I0(F)(w,J);var M=u}finally{J.free()}return M}}();var $Nz=-1869581410;var xPC=new g.Ek("adInfoDialogEndpoint");var gW3=new g.Ek("adPingingEndpoint");var YVo=new g.Ek("crossDeviceProgressCommand");var HS=new g.Ek("actionCompanionAdRenderer");var A1=new g.Ek("adActionInterstitialRenderer");var gLk=new g.Ek("adDurationRemainingRenderer");var PF=new g.Ek("adHoverTextButtonRenderer");var cY4=new g.Ek("adInfoDialogRenderer");var an=new g.Ek("adMessageRenderer");var BF=new g.Ek("adPreviewRenderer");var Fj=new g.Ek("adsEngagementPanelRenderer");var A3z=new g.Ek("dismissablePanelTextPortraitImageRenderer");var wA4=new g.Ek("adsEngagementPanelSectionListViewModel");var m8z=new g.Ek("flyoutCtaRenderer");var Li=new g.Ek("imageCompanionAdRenderer");var wk=new g.Ek("instreamAdPlayerOverlayRenderer");var Oya=new g.Ek("instreamSurveyAdBackgroundImageRenderer");var VB=new g.Ek("instreamSurveyAdPlayerOverlayRenderer");var iM=new g.Ek("instreamSurveyAdRenderer"),GX=new g.Ek("instreamSurveyAdSingleSelectQuestionRenderer"),j5=new g.Ek("instreamSurveyAdMultiSelectQuestionRenderer"),zr=new g.Ek("instreamSurveyAdAnswerRenderer"),yee=new g.Ek("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var me=new g.Ek("instreamVideoAdRenderer");var izR=new g.Ek("textOverlayAdContentRenderer"),ztW=new g.Ek("enhancedTextOverlayAdContentRenderer"),N5b=new g.Ek("imageOverlayAdContentRenderer");var MM=new g.Ek("playerOverlayLayoutRenderer");var qM=new g.Ek("videoInterstitialButtonedCenteredLayoutRenderer");var K_C=new g.Ek("aboveFeedAdLayoutRenderer");var pA3=new g.Ek("belowPlayerAdLayoutRenderer");var eMY=new g.Ek("inPlayerAdLayoutRenderer");var lM=new g.Ek("playerBytesAdLayoutRenderer");var gFa=new g.Ek("playerBytesSequenceItemAdLayoutRenderer");var dc=new g.Ek("playerUnderlayAdLayoutRenderer");var yB=new g.Ek("adIntroRenderer");var AI=new g.Ek("playerBytesSequentialLayoutRenderer");var c37=new g.Ek("slidingTextPlayerOverlayRenderer");var zX=new g.Ek("surveyTextInterstitialRenderer");var Ex=new g.Ek("videoAdTrackingRenderer");var lHb=new g.Ek("simpleAdBadgeRenderer");var IS=new g.Ek("skipAdRenderer"),fHV=new g.Ek("skipButtonRenderer");var sx=new g.Ek("adSlotRenderer");var fU=new g.Ek("squeezebackPlayerSidePanelRenderer");var WRW=new g.Ek("timedPieCountdownRenderer");var Og=new g.Ek("adAvatarViewModel");var oL=new g.Ek("adBadgeViewModel");var h7=new g.Ek("adButtonViewModel");var d8e=new g.Ek("adDetailsLineViewModel");var ELb=new g.Ek("adDisclosureBannerViewModel");var jbL=new g.Ek("adPodIndexViewModel");var GV8=new g.Ek("imageBackgroundViewModel");var Vmz=new g.Ek("adGridCardCollectionViewModel");var PWH=new g.Ek("adGridCardTextViewModel");var B5R=new g.Ek("adPreviewViewModel");var T5U=new g.Ek("playerAdAvatarLockupCardButtonedViewModel");var reR=new g.Ek("skipAdButtonViewModel");var S1t=new g.Ek("skipAdViewModel");var sb5=new g.Ek("timedPieCountdownViewModel");var Y1m=new g.Ek("visitAdvertiserLinkViewModel");var JI=new g.Ek("bannerImageLayoutViewModel");var bM=new g.Ek("topBannerImageTextIconButtonedLayoutViewModel");var Ik=new g.Ek("adsEngagementPanelLayoutViewModel");var WF=new g.Ek("displayUnderlayTextGridCardsLayoutViewModel");g.fY=new g.Ek("browseEndpoint");var $8W=new g.Ek("confirmDialogEndpoint");var yC7=new g.Ek("rawColdConfigGroup");var m1z=new g.Ek("rawHotConfigGroup");g.p0=new g.Ek("commandExecutorCommand");g.z(Q8k,CG);var tYJ={uaE:0,fXQ:1,KqD:32,osz:61,aXI:67,p5Q:103,y6N:86,zPE:42,tnD:60,EsN:62,vsG:73,Fq_:76,YvW:88,jk_:90,bLG:99,Vnf:98,nsj:100,BKI:102,m$G:41,c6N:69,LqI:70,NKR:71,k6Q:2,gKW:27,ANDROID:3,toN:54,xJj:14,n4W:91,FPN:55,BBW:24,v4R:20,o4G:18,yhz:21,pDG:104,b8j:30,LPN:29,NB_:28,A6G:101,IlG:34,alR:36,JhD:38,IOS:5,uI_:15,DhR:92,G8_:40,RT_:25,k8f:17,gRj:19,WI_:64,A4R:66,ODR:26,fY_:22,MBQ:33,ERG:68,dhN:35,qkD:53,iDG:37,Ps_:39,cr_:7,LJ_:57,NeQ:43,r6Q:59,Icz:93,chz:74,C1N:75,w5G:85,U$E:65,ePf:80,ZLD:8,bjD:10, skQ:58,X5_:63,TKQ:72,mJj:23,CSG:11,w0j:13,lj_:12,maE:16,hPG:56,J6D:31,G6Q:77,KtR:84,x$N:87,x_I:89,tiG:94,LII:95};g.z(j4,CG);j4.prototype.kp=function(){return pG(this,3)}; j4.prototype.iL=function(){return pG(this,5)}; j4.prototype.j2=function(F){return yH(this,5,F)};g.z(GT,CG);g.z(R8G,CG);g.z(V9,CG);g.A=V9.prototype;g.A.getDeviceId=function(){return pG(this,6)}; g.A.kM=function(F){var J=c3(this,9,e2,3,!0);OX(J,F);return J[F]}; g.A.getPlayerType=function(){return g4(this,36)}; g.A.setHomeGroupInfo=function(F){return Ax(this,R8G,81,F)}; g.A.clearLocationPlayabilityToken=function(){return RF(this,89)};g.z(PT,CG);PT.prototype.getValue=function(){return pG(this,bP(this,pKY)===2?2:-1)}; var pKY=[2,3,4,5,6];g.z(BT,CG);BT.prototype.setTrackingParams=function(F){return RF(this,1,T5z(F,!1))};g.z(TT,CG);g.z(rF,CG);rF.prototype.kM=function(F){var J=c3(this,5,KI,3,!0);OX(J,F);return J[F]};g.z(S4,CG);S4.prototype.getToken=function(){return eD(this,2)}; S4.prototype.setToken=function(F){return yH(this,2,F)};g.z(sk,CG);sk.prototype.setSafetyMode=function(F){return zb(this,5,F)};g.z(YD,CG);YD.prototype.r5=function(F){return Ax(this,V9,1,F)};var rc=new g.Ek("thumbnailLandscapePortraitRenderer");g.CWe=new g.Ek("changeEngagementPanelVisibilityAction");var zoz=new g.Ek("continuationCommand");g.XkV=new g.Ek("openPopupAction");g.Nm=new g.Ek("webCommandMetadata");var jk7=new g.Ek("metadataBadgeRenderer");var iAm=new g.Ek("signalServiceEndpoint");var sT=new g.Ek("innertubeCommand");var wro=new g.Ek("loggingDirectives");var jE3={XS_:"EMBEDDED_PLAYER_MODE_UNKNOWN",TZG:"EMBEDDED_PLAYER_MODE_DEFAULT",Z4R:"EMBEDDED_PLAYER_MODE_PFP",e3D:"EMBEDDED_PLAYER_MODE_PFL"};var HUJ=new g.Ek("channelThumbnailEndpoint");var ZUY=new g.Ek("embeddedPlayerErrorMessageRenderer");var UEm=new g.Ek("embeddedPlayerOverlayVideoDetailsRenderer"),Lez=new g.Ek("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),FzY=new g.Ek("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var Wea=new g.Ek("embedsInfoPanelRenderer");var Qb1=new g.Ek("feedbackEndpoint");var Rtb=new g.Ek("callToActionButtonViewModel");var D8L=new g.Ek("interactionLoggingCommandMetadata");var fkm={HLQ:"WEB_DISPLAY_MODE_UNKNOWN",d$G:"WEB_DISPLAY_MODE_BROWSER",Qkj:"WEB_DISPLAY_MODE_MINIMAL_UI",SvN:"WEB_DISPLAY_MODE_STANDALONE",lXD:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z($D,CG);$D.prototype.getPlayerType=function(){return g4(this,7)}; $D.prototype.B1=function(){return pG(this,19)}; $D.prototype.setVideoId=function(F){return yH(this,19,F)};g.z(Q9,CG);g.z(Rp,CG);g.z(Dk,CG); var kVb=[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 Oze=new g.Ek("loggingContext");g.z(kD,CG);g.z(Ok,CG);Ok.prototype.B1=function(){return eD(this,bP(this,Ak)===1?1:-1)}; Ok.prototype.setVideoId=function(F){return FW(this,1,Ak,W3(F))}; Ok.prototype.getPlaylistId=function(){return eD(this,bP(this,Ak)===2?2:-1)}; var Ak=[1,2];g.z(DNa,CG);var ti=new g.Ek("changeKeyedMarkersVisibilityCommand");var oLb=new g.Ek("changeMarkersVisibilityCommand");var V57=new g.Ek("loadMarkersCommand");var hte=new g.Ek("suggestedActionDataViewModel");var G4o=new g.Ek("timelyActionViewModel");var j9G=new g.Ek("timelyActionsOverlayViewModel");var T6a=new g.Ek("productListItemRenderer");var ceV=new g.Ek("shoppingOverlayRenderer");var xEm=new g.Ek("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var U8k=new g.Ek("adFeedbackEndpoint");var x8U=new g.Ek("menuEndpoint");var hXm=new g.Ek("phoneDialerEndpoint");var Oe4=new g.Ek("sendSmsEndpoint");var cIz=new g.Ek("copyTextEndpoint");var nLe=new g.Ek("shareEndpoint"),tmt=new g.Ek("shareEntityEndpoint"),Zz8=new g.Ek("shareEntityServiceEndpoint"),Hze=new g.Ek("webPlayerShareEntityServiceEndpoint");g.S0=new g.Ek("urlEndpoint");g.x$=new g.Ek("watchEndpoint");var LRL=new g.Ek("watchPlaylistEndpoint");g.FF8=new g.Ek("offlineOrchestrationActionCommand");var g07=new g.Ek("compositeVideoOverlayRenderer");var JL1=new g.Ek("miniplayerRenderer");var o8k=new g.Ek("paidContentOverlayRenderer");var bfW=new g.Ek("playerMutedAutoplayOverlayRenderer"),Ie1=new g.Ek("playerMutedAutoplayEndScreenRenderer");var XS7=new g.Ek("unserializedPlayerResponse"),uP5=new g.Ek("unserializedPlayerResponse");var wWU=new g.Ek("playlistEditEndpoint");var lj;g.TX=new g.Ek("buttonRenderer");lj=new g.Ek("toggleButtonRenderer");var uS3=new g.Ek("counterfactualRenderer");var MJ8=new g.Ek("resolveUrlCommandMetadata");var ALb=new g.Ek("modifyChannelNotificationPreferenceEndpoint");var p8m=new g.Ek("pingingEndpoint");var qXR=new g.Ek("unsubscribeEndpoint");g.WE=new g.Ek("subscribeButtonRenderer");var vKV=new g.Ek("subscribeEndpoint");var pXY=new g.Ek("buttonViewModel");var Mta=new g.Ek("qrCodeRenderer");var HxY={pxf:"LIVING_ROOM_APP_MODE_UNSPECIFIED",oRW:"LIVING_ROOM_APP_MODE_MAIN",vRQ:"LIVING_ROOM_APP_MODE_KIDS",J4D:"LIVING_ROOM_APP_MODE_MUSIC",y4Q:"LIVING_ROOM_APP_MODE_UNPLUGGED",BXW:"LIVING_ROOM_APP_MODE_GAMING"};var Ncv=new g.Ek("autoplaySwitchButtonRenderer");var lr,i4z,ham,Pjz;lr=new g.Ek("decoratedPlayerBarRenderer");i4z=new g.Ek("chapteredPlayerBarRenderer");ham=new g.Ek("multiMarkersPlayerBarRenderer");Pjz=new g.Ek("chapterRenderer");g.fNC=new g.Ek("markerRenderer");var aeb=new g.Ek("decoratedPlayheadRenderer");var dEC=new g.Ek("desktopOverlayConfigRenderer");var qvG=new g.Ek("engagementPanelSectionListRenderer");var fpJ=new g.Ek("gatedActionsOverlayViewModel");var jBJ=new g.Ek("heatMarkerRenderer");var EEa=new g.Ek("heatmapRenderer");var GXz=new g.Ek("watchToWatchTransitionRenderer");var n8C=new g.Ek("playlistPanelRenderer");var emR=new g.Ek("productUpsellSuggestedActionViewModel");var KF5=new g.Ek("suggestedActionTimeRangeTrigger"),pWt=new g.Ek("suggestedActionsRenderer"),gKz=new g.Ek("suggestedActionRenderer");var Gra=new g.Ek("timedMarkerDecorationRenderer");var q5a=new g.Ek("cipher");var QSk=new g.Ek("playerVars");var mLL=new g.Ek("playerVars");var f4=g.Qz.window,yLH,ifb,op=(f4==null?void 0:(yLH=f4.yt)==null?void 0:yLH.config_)||(f4==null?void 0:(ifb=f4.ytcfg)==null?void 0:ifb.data_)||{};g.RG("yt.config_",op);var xD=[];var Zqo=/^[\w.]*$/,UN7={q:!0,search_query:!0},cSC=String(HT);var qk=new function(){var F=window.document;this.C=window;this.U=F}; g.RG("yt.ads_.signals_.getAdSignalsString",function(F){return LX(aR(F))});g.L3();var Lak="XMLHttpRequest"in g.Qz?function(){return new XMLHttpRequest}:null;var zm5="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.W(zm5);var I_m={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"},u03="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.W(zm5)),KUG=!1,Jy4=wQY,vQG=d$;g.z(Gk,iW);Bx.prototype.then=function(F,J,b){return this.C?this.C.then(F,J,b):this.T===1&&F?(F=F.call(b,this.U))&&typeof F.then==="function"?F:r$(F):this.T===2&&J?(F=J.call(b,this.U))&&typeof F.then==="function"?F:Tk(F):this}; Bx.prototype.getValue=function(){return this.U}; Bx.prototype.$goog_Thenable=!0;var SN=!1;var hY=x6||nl;var dw3=/^([0-9\.]+):([0-9\.]+)$/;g.z(ag,iW);ag.prototype.name="BiscottiError";g.z(vK,iW);vK.prototype.name="BiscottiMissingError";var VfJ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},e9=null;var jFv=AJJ(["data-"]),CoJ={};var NyH=0,Kw=g.xM?"webkit":eu?"moz":g.K6?"ms":g.fH?"o":"",leR=g.kC("ytDomDomGetNextId")||function(){return++NyH}; g.RG("ytDomDomGetNextId",leR);var Dwz={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};zD.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; zD.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; zD.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var N1=g.Qz.ytEventsEventsListeners||{};g.RG("ytEventsEventsListeners",N1);var oQC=g.Qz.ytEventsEventsCounter||{count:0};g.RG("ytEventsEventsCounter",oQC);var xwC=eP(function(){var F=!1;try{var J=Object.defineProperty({},"passive",{get:function(){F=!0}}); window.addEventListener("test",null,J)}catch(b){}return F}),hbz=eP(function(){var F=!1; try{var J=Object.defineProperty({},"capture",{get:function(){F=!0}}); window.addEventListener("test",null,J)}catch(b){}return F});var WI;WI=window;g.jR=WI.ytcsi&&WI.ytcsi.now?WI.ytcsi.now:WI.performance&&WI.performance.timing&&WI.performance.now&&WI.performance.timing.navigationStart?function(){return WI.performance.timing.navigationStart+WI.performance.now()}:function(){return(new Date).getTime()};g.Fb(Ey,g.R);Ey.prototype.N=function(F){F.C===void 0&&kMv(F);var J=F.C;F.U===void 0&&kMv(F);this.C=new g.K$(J,F.U)}; Ey.prototype.IG=function(){return this.C||new g.K$}; Ey.prototype.Tj=function(){if(this.C){var F=(0,g.jR)();if(this.Z!=0){var J=this.W,b=this.C,I=J.x-b.x;J=J.y-b.y;I=Math.sqrt(I*I+J*J)/(F-this.Z);this.U[this.T]=Math.abs((I-this.D)/this.D)>.5?1:0;for(b=J=0;b<4;b++)J+=this.U[b]||0;J>=3&&this.V();this.D=I}this.Z=F;this.W=this.C;this.T=(this.T+1)%4}}; Ey.prototype.X_=function(){g.ii(this.Y);g.fw(this.eE)};g.z(j9,g.R);j9.prototype.B=function(F,J,b,I,u){b=g.tE((0,g.tJ)(b,I||this.Um));b={target:F,name:J,callback:b};var w;u&&xwC()&&(w={passive:!0});F.addEventListener(J,b.callback,w);this.V.push(b);return b}; j9.prototype.iX=function(F){for(var J=0;J<this.V.length;J++)if(this.V[J]==F){this.V.splice(J,1);F.target.removeEventListener(F.name,F.callback);break}}; j9.prototype.X_=function(){g.Ve(this);g.R.prototype.X_.call(this)};PK.prototype.clone=function(){var F=new PK,J;for(J in this)if(this.hasOwnProperty(J)){var b=this[J];F[J]=oG(b)=="object"?g.To(b):b}return F};var lXY=["att/get"],F9z=["embedded_player"],JkG=["account/get_setting_values"],feV=["share/get_share_panel"],WFR=["share/get_web_player_share_panel"],dLe=["feedback"],EKb=["notification/modify_channel_preference"],pO4=["player"],jyV=["browse/edit_playlist"],unz=["account/set_setting"],Gwm=["subscription/subscribe"],VJ8=["subscription/unsubscribe"],i1J=["next","unplugged/watch_next"];var TD;g.BK=eP(function(){try{var F=new SM;var J=F.isAvailable()?F:null}catch(b){return null}return J?new g.PV(J):null}); TD=eP(function(){var F=new Fav;return F.isAvailable()?new g.PV(F):null});g.PV1=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.RG("yt.msgs_",g.PV1);Cw.prototype.Du=function(F,J){F={};var b=[];"USER_SESSION_ID"in op&&b.push({key:"u",value:g.cT("USER_SESSION_ID")});if(b=kaJ(b))F.Authorization=b,b=J=J==null?void 0:J.sessionIndex,b===void 0&&(b=Number(g.cT("SESSION_INDEX",0)),b=isNaN(b)?0:b),g.Nk("voice_search_auth_header_removal")||(F["X-Goog-AuthUser"]=b.toString()),"INNERTUBE_HOST_OVERRIDE"in op||(F["X-Origin"]=window.location.origin),J===void 0&&"DELEGATED_SESSION_ID"in op&&(F["X-Goog-PageId"]=g.cT("DELEGATED_SESSION_ID"));return F};var aK={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Dv=g.kC("ytglobal.prefsUserPrefsPrefs_")||{};g.RG("ytglobal.prefsUserPrefsPrefs_",Dv);var Xt;g.A=F5J.prototype;g.A.get=function(F,J){og(F);Oy(F);F=Dv[F]!==void 0?Dv[F].toString():null;return F!=null?F:J?J:""}; g.A.set=function(F,J){og(F);Oy(F);if(J==null)throw Error("ExpectedNotNull");Dv[F]=J.toString()}; g.A.remove=function(F){og(F);Oy(F);delete Dv[F]}; g.A.save=function(){var F=!0;g.Nk("web_secure_pref_cookie_killswitch")&&(F=!1);g.Y6(this.C,this.dump(),63072E3,this.U,F)}; g.A.clear=function(){g.c_a(Dv)}; g.A.dump=function(){var F=[],J;for(J in Dv)Dv.hasOwnProperty(J)&&F.push(J+"="+encodeURIComponent(String(Dv[J])));return F.join("&")}; g.A.parse=function(F){F=decodeURIComponent(F).split("&");for(var J=0;J<F.length;J++){var b=F[J].split("="),I=b[0];(b=b[1])&&(Dv[I]=b.toString())}};var IC7={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"},WMa={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},djY={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},wVa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.z(g.hC,Error);xq.prototype.Ti=function(F,J){return nw(F,1,J)}; xq.prototype.z3=function(F){(F=this.C.get(F))&&F()};g.kC("yt.scheduler.instance.timerIdMap_");g.z(Zv,xq);Zv.prototype.q_=function(F){if(F===void 0||!Number.isNaN(Number(F))){var J=g.kC("yt.scheduler.instance.cancelJob");J?J(F):g.m1(F)}}; Zv.prototype.start=function(){var F=g.kC("yt.scheduler.instance.start");F&&F()}; Zv.prototype.pause=function(){var F=g.kC("yt.scheduler.instance.pause");F&&F()}; g.D_=g.HK();JY.prototype.set=function(F,J,b,I){b=b||31104E3;this.remove(F);if(this.C)try{this.C.set(F,J,Date.now()+b*1E3);return}catch(w){}var u="";if(I)try{u=escape(g.Gq(J))}catch(w){return}else u=escape(J);g.Y6(F,u,b,this.U)}; JY.prototype.get=function(F,J){var b=void 0,I=!this.C;if(!I)try{b=this.C.get(F)}catch(u){I=!0}if(I&&(b=g.$6(F))&&(b=unescape(b),J))try{b=JSON.parse(b)}catch(u){this.remove(F),b=void 0}return b}; JY.prototype.remove=function(F){this.C&&this.C.remove(F);g.Cl(F,"/",this.U)}; JY.prototype.getCreationTime=function(F){return this.C&&(F=(this.C.U(F)||{}).creation,typeof F==="number")?F:null};var ba=function(){var F;return function(){F||(F=new JY("ytidb"));return F}}();var qP=[],ua,v$=!1;var dt={},vd_=(dt.AUTH_INVALID="No user identifier specified.",dt.EXPLICIT_ABORT="Transaction was explicitly aborted.",dt.IDB_NOT_SUPPORTED="IndexedDB is not supported.",dt.MISSING_INDEX="Index not created.",dt.MISSING_OBJECT_STORES="Object stores not created.",dt.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",dt.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",dt.UNKNOWN_ABORT= "Transaction was aborted for unknown reasons.",dt.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",dt.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",dt.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",dt.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",dt),Eu={},aCz=(Eu.AUTH_INVALID="ERROR",Eu.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Eu.EXPLICIT_ABORT="IGNORED", Eu.IDB_NOT_SUPPORTED="ERROR",Eu.MISSING_INDEX="WARNING",Eu.MISSING_OBJECT_STORES="ERROR",Eu.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Eu.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Eu.QUOTA_EXCEEDED="WARNING",Eu.QUOTA_MAYBE_EXCEEDED="WARNING",Eu.UNKNOWN_ABORT="WARNING",Eu.INCOMPATIBLE_DB_VERSION="WARNING",Eu),jb={},e4m=(jb.AUTH_INVALID=!1,jb.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,jb.EXPLICIT_ABORT=!1,jb.IDB_NOT_SUPPORTED=!1,jb.MISSING_INDEX=!1,jb.MISSING_OBJECT_STORES=!1,jb.DB_DELETED_BY_MISSING_OBJECT_STORES= !1,jb.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,jb.QUOTA_EXCEEDED=!1,jb.QUOTA_MAYBE_EXCEEDED=!0,jb.UNKNOWN_ABORT=!0,jb.INCOMPATIBLE_DB_VERSION=!1,jb);g.z(g.gZ,g.hC);g.z(mH,g.gZ);g.z(yb,Error);var K5z=["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.fD.all=function(F){return new g.fD(new la(function(J,b){var I=[],u=F.length;u===0&&J(I);for(var w={K$:0};w.K$<F.length;w={K$:w.K$},++w.K$)g.fD.resolve(F[w.K$]).then(function(M){return function(q){I[M.K$]=q;u--;u===0&&J(I)}}(w)).catch(function(M){b(M)})}))}; g.fD.resolve=function(F){return new g.fD(new la(function(J,b){F instanceof g.fD?F.then(J,b):J(F)}))}; g.fD.reject=function(F){return new g.fD(new la(function(J,b){b(F)}))}; g.fD.prototype.then=function(F,J){var b=this,I=F!=null?F:gd3,u=J!=null?J:pVv;return new g.fD(new la(function(w,M){b.state.status==="PENDING"?(b.C.push(function(){mrz(b,b,I,w,M)}),b.U.push(function(){ynY(b,b,u,w,M)})):b.state.status==="FULFILLED"?mrz(b,b,I,w,M):b.state.status==="REJECTED"&&ynY(b,b,u,w,M)}))}; g.fD.prototype.catch=function(F){return this.then(void 0,F)};g.A=W5a.prototype;g.A.add=function(F,J,b){return g.B$(this,[F],{mode:"readwrite",Em:!0},function(I){return I.objectStore(F).add(J,b)})}; g.A.clear=function(F){return g.B$(this,[F],{mode:"readwrite",Em:!0},function(J){return J.objectStore(F).clear()})}; g.A.close=function(){this.C.close();var F;((F=this.options)==null?0:F.closed)&&this.options.closed()}; g.A.count=function(F,J){return g.B$(this,[F],{mode:"readonly",Em:!0},function(b){return b.objectStore(F).count(J)})}; g.A.delete=function(F,J){return g.B$(this,[F],{mode:"readwrite",Em:!0},function(b){return b.objectStore(F).delete(J)})}; g.A.get=function(F,J){return g.B$(this,[F],{mode:"readonly",Em:!0},function(b){return b.objectStore(F).get(J)})}; g.A.getAll=function(F,J,b){return g.B$(this,[F],{mode:"readonly",Em:!0},function(I){return I.objectStore(F).getAll(J,b)})}; g.A.objectStoreNames=function(){return Array.from(this.C.objectStoreNames)}; g.A.getName=function(){return this.C.name}; g.A=Gl.prototype;g.A.add=function(F,J){return dZ(this.C.add(F,J))}; g.A.autoIncrement=function(){return this.C.autoIncrement}; g.A.clear=function(){return dZ(this.C.clear()).then(function(){})}; g.A.count=function(F){return dZ(this.C.count(F))}; g.A.delete=function(F){return F instanceof IDBKeyRange?G87(this,F):dZ(this.C.delete(F))}; g.A.get=function(F){return dZ(this.C.get(F))}; g.A.getAll=function(F,J){return"getAll"in IDBObjectStore.prototype?dZ(this.C.getAll(F,J)):VMk(this,F,J)}; g.A.index=function(F){try{return new rnm(this.C.index(F))}catch(J){if(J instanceof Error&&J.name==="NotFoundError")throw new yb(F,this.C.name);throw J;}}; g.A.getName=function(){return this.C.name}; g.A.keyPath=function(){return this.C.keyPath}; SR.prototype.abort=function(){this.C.abort();this.U=!0;throw new g.gZ("EXPLICIT_ABORT");}; SR.prototype.objectStore=function(F){F=this.C.objectStore(F);var J=this.T.get(F);J||(J=new Gl(F),this.T.set(F,J));return J}; g.A=rnm.prototype;g.A.count=function(F){return dZ(this.C.count(F))}; g.A.delete=function(F){return g.Xs(this,{query:F},function(J){return J.delete().then(function(){return g.$u(J)})})}; g.A.get=function(F){return dZ(this.C.get(F))}; g.A.getAll=function(F,J){return"getAll"in IDBIndex.prototype?dZ(this.C.getAll(F,J)):SJa(this,F,J)}; g.A.keyPath=function(){return this.C.keyPath}; g.A.unique=function(){return this.C.unique}; Qb.prototype.delete=function(){return dZ(this.cursor.delete()).then(function(){})}; Qb.prototype.getValue=function(){return this.cursor.value}; Qb.prototype.update=function(F){return dZ(this.cursor.update(F))};DZ.prototype.U=function(F,J,b){b=b===void 0?{}:b;return YJ_(F,J,b)}; DZ.prototype.delete=function(F){F=F===void 0?{}:F;return Re(this.name,F)}; DZ.prototype.open=function(){function F(){var w,M,q,v,a,e,K,p,m,y;return g.S(function(f){switch(f.C){case 1:return M=(w=Error().stack)!=null?w:"",g.lk(f,2),g.T(f,b.U(b.name,b.options.version,u),4);case 4:for(var d=q=f.U,G=b.options,P=[],r=g.N(Object.keys(G.ET)),Q=r.next();!Q.done;Q=r.next()){Q=Q.value;var D=G.ET[Q],t=D.G0G===void 0?Number.MAX_VALUE:D.G0G;!(d.C.version>=D.Sp)||d.C.version>=t||d.C.objectStoreNames.contains(Q)||P.push(Q)}v=P;if(v.length===0){f.gD(5);break}a=Object.keys(b.options.ET); e=q.objectStoreNames();if(b.D<g.li("ytidb_reopen_db_retries",0))return b.D++,q.close(),ae(new g.gZ("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:b.name,expectedObjectStores:a,foundObjectStores:e})),f.return(F());if(!(b.Z<g.li("ytidb_remake_db_retries",1))){f.gD(6);break}b.Z++;return g.T(f,b.delete(),7);case 7:return ae(new g.gZ("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:b.name,expectedObjectStores:a,foundObjectStores:e})),f.return(F());case 6:throw new mH(e,a);case 5:return f.return(q);case 2:K= g.dY(f);if(K instanceof DOMException?K.name!=="VersionError":"DOMError"in self&&K instanceof DOMError?K.name!=="VersionError":!(K instanceof Object&&"message"in K)||K.message!=="An attempt was made to open a database using a lower version than the existing version."){f.gD(8);break}return g.T(f,b.U(b.name,void 0,Object.assign({},u,{upgrade:void 0})),9);case 9:p=f.U;m=p.C.version;if(b.options.version!==void 0&&m>b.options.version+1)throw p.close(),b.T=!1,$rv(b,m);return f.return(p);case 8:throw J(), K instanceof Error&&!g.Nk("ytidb_async_stack_killswitch")&&(K.stack=K.stack+"\n"+M.substring(M.indexOf("\n")+1)),zl(K,b.name,"",(y=b.options.version)!=null?y:-1);}})} function J(){b.C===I&&(b.C=void 0)} var b=this;if(!this.T)throw $rv(this);if(this.C)return this.C;var I,u={blocking:function(w){w.close()}, closed:J,ivv:J,upgrade:this.options.upgrade};return this.C=I=F()};var Ol=new DZ("YtIdbMeta",{ET:{databases:{Sp:1}},upgrade:function(F,J){J(1)&&g.Vb(F,"databases",{keyPath:"actualName"})}});var xu,Ul=new function(){}(new function(){});new g.m6;g.z(ZZ,DZ);ZZ.prototype.U=function(F,J,b){b=b===void 0?{}:b;return(this.options.shared?h4z:oda)(F,J,Object.assign({},b))}; ZZ.prototype.delete=function(F){F=F===void 0?{}:F;return(this.options.shared?ndv:cnC)(this.name,F)};var Bye={},Z6z=g.H$("ytGcfConfig",{ET:(Bye.coldConfigStore={Sp:1},Bye.hotConfigStore={Sp:1},Bye),shared:!1,upgrade:function(F,J){J(1)&&(g.sl(g.Vb(F,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.sl(g.Vb(F,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.z(Fp,g.R);Fp.prototype.X_=function(){for(var F=g.N(this.U),J=F.next();!J.done;J=F.next()){var b=this.C;J=b.indexOf(J.value);J>=0&&b.splice(J,1)}this.U.length=0;g.R.prototype.X_.call(this)};MK.prototype.j2=function(F){this.hotHashData=F;g.RG("yt.gcf.config.hotHashData",this.hotHashData||null)};var Ty1=typeof TextEncoder!=="undefined"?new TextEncoder:null,Rzm=Ty1?function(F){return Ty1.encode(F)}:function(F){F=g.lW(F); for(var J=new Uint8Array(F.length),b=0;b<J.length;b++)J[b]=F[b];return J};var ZA7={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},LEY={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};e6.prototype.G7=function(){return{version:this.version,args:this.args}};KA.prototype.toString=function(){return this.topic};var rL1=g.kC("ytPubsub2Pubsub2Instance")||new g.EJ;g.EJ.prototype.subscribe=g.EJ.prototype.subscribe;g.EJ.prototype.unsubscribeByKey=g.EJ.prototype.gB;g.EJ.prototype.publish=g.EJ.prototype.publish;g.EJ.prototype.clear=g.EJ.prototype.clear;g.RG("ytPubsub2Pubsub2Instance",rL1);var mE=g.kC("ytPubsub2Pubsub2SubscribedKeys")||{};g.RG("ytPubsub2Pubsub2SubscribedKeys",mE);var lC=g.kC("ytPubsub2Pubsub2TopicToKeys")||{};g.RG("ytPubsub2Pubsub2TopicToKeys",lC);var GTo=g.kC("ytPubsub2Pubsub2IsAsync")||{}; g.RG("ytPubsub2Pubsub2IsAsync",GTo);g.RG("ytPubsub2Pubsub2SkipSubKey",null);var dL=void 0,Wr=void 0;var CJJ=g.li("max_body_size_to_compress",5E5),XTC=g.li("min_body_size_to_compress",500),Vn=!0,rL=0,TS=0,DjC=g.li("compression_performance_threshold_lr",250),kT_=g.li("slow_compressions_before_abandon_count",4),j6=!1,GS=new Map,Pr=1,Qpz=!0;g.A=sZ.prototype;g.A.writeThenSend=function(F,J){var b=this;J=J===void 0?{}:J;if(S6(this)&&this.C){var I={url:F,options:J,timestamp:this.now(),status:"NEW",sendCount:0};this.T7.set(I,this.mp).then(function(u){I.id=u;b.zn.Vi()&&b.Cx(I)}).catch(function(u){b.Cx(I); YP(b,u)})}else this.sendFn(F,J)}; g.A.sendThenWrite=function(F,J,b){var I=this;J=J===void 0?{}:J;if(S6(this)&&this.C){var u={url:F,options:J,timestamp:this.now(),status:"NEW",sendCount:0};this.pW&&this.pW("nwl_skip_retry")&&(u.skipRetry=b);if(this.zn.Vi()||this.pW&&this.pW("nwl_aggressive_send_then_write")&&!u.skipRetry){if(!u.skipRetry){var w=J.onError?J.onError:function(){}; J.onError=function(M,q){return g.S(function(v){if(v.C==1)return g.T(v,I.T7.set(u,I.mp).catch(function(a){YP(I,a)}),2); w(M,q);g.N4(v)})}}this.sendFn(F,J,u.skipRetry)}else this.T7.set(u,this.mp).catch(function(M){I.sendFn(F,J,u.skipRetry); YP(I,M)})}else b=this.pW&&this.pW("nwl_skip_retry")&&b,this.sendFn(F,J,b)}; g.A.sendAndWrite=function(F,J){var b=this;J=J===void 0?{}:J;if(S6(this)&&this.C){var I={url:F,options:J,timestamp:this.now(),status:"NEW",sendCount:0},u=!1,w=J.onSuccess?J.onSuccess:function(){}; I.options.onSuccess=function(M,q){I.id!==void 0?b.T7.wE(I.id,b.mp):u=!0;b.zn.jV&&b.pW&&b.pW("vss_network_hint")&&b.zn.jV(!0);w(M,q)}; this.sendFn(I.url,I.options,void 0,!0);this.T7.set(I,this.mp).then(function(M){I.id=M;u&&b.T7.wE(I.id,b.mp)}).catch(function(M){YP(b,M)})}else this.sendFn(F,J,void 0,!0)}; g.A.VD=function(){var F=this;if(!S6(this))throw Error("IndexedDB is not supported: throttleSend");this.U||(this.U=this.Xa.Ti(function(){var J;return g.S(function(b){if(b.C==1)return g.T(b,F.T7.FX("NEW",F.mp),2);if(b.C!=3)return J=b.U,J?g.T(b,F.Cx(J),3):(F.MV(),b.return());F.U&&(F.U=0,F.VD());g.N4(b)})},this.xT))}; g.A.MV=function(){this.Xa.q_(this.U);this.U=0}; g.A.Cx=function(F){var J=this,b;return g.S(function(I){switch(I.C){case 1:if(!S6(J))throw Error("IndexedDB is not supported: immediateSend");if(F.id===void 0){I.gD(2);break}return g.T(I,J.T7.u4j(F.id,J.mp),3);case 3:(b=I.U)||J.SG(Error("The request cannot be found in the database."));case 2:if(J.Nw(F,J.zl)){I.gD(4);break}J.SG(Error("Networkless Logging: Stored logs request expired age limit"));if(F.id===void 0){I.gD(5);break}return g.T(I,J.T7.wE(F.id,J.mp),5);case 5:return I.return();case 4:F.skipRetry|| (F=xjz(J,F));if(!F){I.gD(0);break}if(!F.skipRetry||F.id===void 0){I.gD(8);break}return g.T(I,J.T7.wE(F.id,J.mp),8);case 8:J.sendFn(F.url,F.options,!!F.skipRetry),g.N4(I)}})}; g.A.Nw=function(F,J){F=F.timestamp;return this.now()-F>=J?!1:!0}; g.A.wy=function(){var F=this;if(!S6(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.T7.FX("QUEUED",this.mp).then(function(J){J&&!F.Nw(J,F.d1)?F.Xa.Ti(function(){return g.S(function(b){if(b.C==1)return J.id===void 0?b.gD(2):g.T(b,F.T7.JC(J.id,F.mp),2);F.wy();g.N4(b)})}):F.zn.Vi()&&F.VD()})};var $P;var Nm3={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 SX1={},uFC=g.H$("ServiceWorkerLogsDatabase",{ET:(SX1.SWHealthLog={Sp:1},SX1),shared:!0,upgrade:function(F,J){J(1)&&g.sl(g.Vb(F,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Qn={},a$4=0;var RK;kP.prototype.requestComplete=function(F,J){J&&(this.U=!0);F=this.removeParams(F);this.C.get(F)||this.C.set(F,J)}; kP.prototype.isEndpointCFR=function(F){F=this.removeParams(F);return(F=this.C.get(F))?!1:F===!1&&this.U?!0:null}; kP.prototype.removeParams=function(F){return F.split("?")[0]}; kP.prototype.removeParams=kP.prototype.removeParams;kP.prototype.isEndpointCFR=kP.prototype.isEndpointCFR;kP.prototype.requestComplete=kP.prototype.requestComplete;kP.getInstance=OZ;g.z(oK,g.Zr);g.A=oK.prototype;g.A.Vi=function(){return this.C.Vi()}; g.A.jV=function(F){this.C.C=F}; g.A.j5=function(){var F=window.navigator.onLine;return F===void 0?!0:F}; g.A.QX=function(){this.U=!0}; g.A.listen=function(F,J){return this.C.listen(F,J)}; g.A.sO=function(F){F=QP(this.C,F);F.then(function(J){g.Nk("use_cfr_monitor")&&OZ().requestComplete("generate_204",J)}); return F}; oK.prototype.sendNetworkCheckRequest=oK.prototype.sO;oK.prototype.listen=oK.prototype.listen;oK.prototype.enableErrorFlushing=oK.prototype.QX;oK.prototype.getWindowStatus=oK.prototype.j5;oK.prototype.networkStatusHint=oK.prototype.jV;oK.prototype.isNetworkAvailable=oK.prototype.Vi;oK.getInstance=px4;g.z(g.hB,g.Zr);g.hB.prototype.Vi=function(){var F=g.kC("yt.networkStatusManager.instance.isNetworkAvailable");return F?F.bind(this.U)():!0}; g.hB.prototype.jV=function(F){var J=g.kC("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);J&&J(F)}; g.hB.prototype.sO=function(F){var J=this,b;return g.S(function(I){b=g.kC("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(J.U);return g.Nk("skip_network_check_if_cfr")&&OZ().isEndpointCFR("generate_204")?I.return(new Promise(function(u){var w;J.jV(((w=window.navigator)==null?void 0:w.onLine)||!0);u(J.Vi())})):b?I.return(b(F)):I.return(!0)})};var cr;g.z(UZ,sZ);UZ.prototype.writeThenSend=function(F,J){J||(J={});J=nA(F,J);g.Uy()||(this.C=!1);sZ.prototype.writeThenSend.call(this,F,J)}; UZ.prototype.sendThenWrite=function(F,J,b){J||(J={});J=nA(F,J);g.Uy()||(this.C=!1);sZ.prototype.sendThenWrite.call(this,F,J,b)}; UZ.prototype.sendAndWrite=function(F,J){J||(J={});J=nA(F,J);g.Uy()||(this.C=!1);sZ.prototype.sendAndWrite.call(this,F,J)}; UZ.prototype.awaitInitialization=function(){return this.T.promise};var zya=g.Qz.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.RG("ytNetworklessLoggingInitializationOptions",zya);g.tB.prototype.isReady=function(){!this.config_&&gDk()&&(this.config_=g.qK());return!!this.config_};var sy5,LA,JA;sy5=g.Qz.ytPubsubPubsubInstance||new g.EJ;LA=g.Qz.ytPubsubPubsubSubscribedKeys||{};JA=g.Qz.ytPubsubPubsubTopicToKeys||{};g.FT=g.Qz.ytPubsubPubsubIsSynchronous||{};g.EJ.prototype.subscribe=g.EJ.prototype.subscribe;g.EJ.prototype.unsubscribeByKey=g.EJ.prototype.gB;g.EJ.prototype.publish=g.EJ.prototype.publish;g.EJ.prototype.clear=g.EJ.prototype.clear;g.RG("ytPubsubPubsubInstance",sy5);g.RG("ytPubsubPubsubTopicToKeys",JA);g.RG("ytPubsubPubsubIsSynchronous",g.FT); g.RG("ytPubsubPubsubSubscribedKeys",LA);var E6J={};g.z(mA,g.R);mA.prototype.append=function(F){if(!this.U)throw Error("This does not support the append operation");F=F.Pb();this.Pb().appendChild(F)}; g.z(yv,mA);yv.prototype.Pb=function(){return this.C};g.z(VNa,g.R);var i0=Date.now().toString();var WB={};var Vv=Symbol("injectionDeps");Ew.prototype.toString=function(){return"InjectionToken("+this.name+")"}; rRJ.prototype.resolve=function(F){return F instanceof jZ?PB(this,F.key,[],!0):PB(this,F,[])};var BB;var rP=window;var CJ=g.Nk("web_enable_lifecycle_monitoring")&&SZ()!==0,QRv=g.Nk("web_enable_lifecycle_monitoring");$k_.prototype.cancel=function(){for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J=J.value,J.jobId===void 0||J.KZ||this.scheduler.q_(J.jobId),J.KZ=!0;this.U.resolve()};g.A=XT.prototype;g.A.install=function(F){this.plugins.push(F);return this}; g.A.uninstall=function(){var F=this;g.Ba.apply(0,arguments).forEach(function(J){J=F.plugins.indexOf(J);J>-1&&F.plugins.splice(J,1)})}; g.A.transition=function(F,J){var b=this;CJ&&sRz(this.state);var I=this.transitions.find(function(w){return Array.isArray(w.from)?w.from.find(function(M){return M===b.state&&w.qP===F}):w.from===b.state&&w.qP===F}); if(I){this.U&&(Ci_(this.U),this.U=void 0);RyJ(this,F,J);this.state=F;CJ&&YB(this.state);I=I.action.bind(this);var u=this.plugins.filter(function(w){return w[F]}).map(function(w){return w[F]}); I(Xx3(this,u),J)}else throw Error("no transition specified from "+this.state+" to "+F);}; g.A.DkN=function(F){var J=g.Ba.apply(1,arguments);g.HK();for(var b=g.N(F),I=b.next(),u={};!I.done;u={QV:void 0},I=b.next())u.QV=I.value,Anz(function(w){return function(){Ru(w.QV.name);kB(function(){return w.QV.callback.apply(w.QV,g.W(J))}); Dn(w.QV.name)}}(u))}; g.A.qoQ=function(F){var J=g.Ba.apply(1,arguments),b,I,u,w;return g.S(function(M){M.C==1&&(g.HK(),b=g.N(F),I=b.next(),u={});if(M.C!=3){if(I.done)return M.gD(0);u.f3=I.value;u.Jj=void 0;w=function(q){return function(){Ru(q.f3.name);var v=kB(function(){return q.f3.callback.apply(q.f3,g.W(J))}); bf(v)?q.Jj=g.Nk("web_lifecycle_error_handling_killswitch")?v.then(function(){Dn(q.f3.name)}):v.then(function(){Dn(q.f3.name)},function(a){Y6C(a); Dn(q.f3.name)}):Dn(q.f3.name)}}(u); Anz(w);return u.Jj?g.T(M,u.Jj,3):M.gD(3)}u={f3:void 0,Jj:void 0};I=b.next();return M.gD(2)})}; g.A.u$=function(F){var J=g.Ba.apply(1,arguments),b=this,I=F.map(function(u){return{Pd:function(){Ru(u.name);kB(function(){return u.callback.apply(u,g.W(J))}); Dn(u.name)}, priority:Qv(b,u)}}); I.length&&(this.U=new $k_(I))}; g.q4.Object.defineProperties(XT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ou;g.z(Ow,XT);Ow.prototype.D=function(F,J){var b=this;this.C=g.tC(0,function(){b.currentState==="application_navigating"&&b.transition("none")},5E3); F(J==null?void 0:J.event)}; Ow.prototype.W=function(F,J){this.C&&(g.D_.q_(this.C),this.C=null);F(J==null?void 0:J.event)};var mi=[];g.RG("yt.logging.transport.getScrapedGelPayloads",function(){return mi});hA.prototype.storePayload=function(F,J){F=cB(F);this.store[F]?this.store[F].push(J):(this.U={},this.store[F]=[J]);this.C++;g.Nk("more_accurate_gel_parser")&&(J=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(J));return F}; hA.prototype.smartExtractMatchingEntries=function(F){if(!F.keys.length)return[];for(var J=xB(this,F.keys.splice(0,1)[0]),b=[],I=0;I<J.length;I++)this.store[J[I]]&&F.sizeLimit&&(this.store[J[I]].length<=F.sizeLimit?(b.push.apply(b,g.W(this.store[J[I]])),delete this.store[J[I]]):b.push.apply(b,g.W(this.store[J[I]].splice(0,F.sizeLimit))));this.C-=b.length;(F==null?0:F.sizeLimit)&&b.length<(F==null?void 0:F.sizeLimit)&&(F.sizeLimit-=b.length,b.push.apply(b,g.W(this.smartExtractMatchingEntries(F)))); return b}; hA.prototype.extractMatchingEntries=function(F){F=xB(this,F);for(var J=[],b=0;b<F.length;b++)this.store[F[b]]&&(J.push.apply(J,g.W(this.store[F[b]])),delete this.store[F[b]]);this.C-=J.length;return J}; hA.prototype.getSequenceCount=function(F){F=xB(this,F);for(var J=0,b=0;b<F.length;b++){var I=void 0;J+=((I=this.store[F[b]])==null?void 0:I.length)||0}return J}; hA.prototype.getSequenceCount=hA.prototype.getSequenceCount;hA.prototype.extractMatchingEntries=hA.prototype.extractMatchingEntries;hA.prototype.smartExtractMatchingEntries=hA.prototype.smartExtractMatchingEntries;hA.prototype.storePayload=hA.prototype.storePayload;var M9_=g.li("initial_gel_batch_timeout",2E3),wKz=g.li("gel_queue_timeout_max_ms",6E4),ACz=g.li("gel_min_batch_size",5),IO=void 0,zfJ=new nJ,iwo=new nJ,utC=new nJ,Iv7=new nJ,wQ,eQ=!0,gQ=1,Zn=new Map,v8=g.Qz.ytLoggingTransportTokensToCttTargetIds_||{};g.RG("ytLoggingTransportTokensToCttTargetIds_",v8);var qY=g.Qz.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.RG("ytLoggingTransportTokensToJspbCttTargetIds_",qY);var Fn={},kkm=!1;var y7=g.Qz.ytLoggingGelSequenceIdObj_||{};g.RG("ytLoggingGelSequenceIdObj_",y7);var Zw_=[];var rCo,Gr=g.Qz.ytLoggingDocDocumentNonce_;Gr||(Gr=g.Nq(16),g.RG("ytLoggingDocDocumentNonce_",Gr));rCo=Gr;var P8m={ZG:0,qJQ:1,xLW:2,pY:3,n_G:4,D$D:5,PBG:6,SHARE:7,mQG:8,snI:9,P1R:10,zkE: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 fvJ=1;g.A=zd.prototype;g.A.getAsJson=function(){var F={};this.C.trackingParams!==void 0?F.trackingParams=this.C.trackingParams:(F.veType=this.C.veType,this.C.veCounter!==void 0&&(F.veCounter=this.C.veCounter),this.C.elementIndex!==void 0&&(F.elementIndex=this.C.elementIndex));this.C.dataElement!==void 0&&(F.dataElement=this.C.dataElement.getAsJson());this.C.youtubeData!==void 0&&(F.youtubeData=this.C.youtubeData);this.C.isCounterfactual&&(F.isCounterfactual=!0);return F}; g.A.getAsJspb=function(){var F=new BT;this.C.trackingParams!==void 0?F.setTrackingParams(this.C.trackingParams):(this.C.veType!==void 0&&RF(F,2,aF(this.C.veType)),this.C.veCounter!==void 0&&RF(F,6,aF(this.C.veCounter)),this.C.elementIndex!==void 0&&RF(F,3,aF(this.C.elementIndex)),this.C.isCounterfactual&&RF(F,5,A_(!0)));if(this.C.dataElement!==void 0){var J=this.C.dataElement.getAsJspb();Ax(F,BT,7,J)}this.C.youtubeData!==void 0&&Ax(F,Q8k,8,this.C.jspbYoutubeData);return F}; g.A.toString=function(){return JSON.stringify(this.getAsJson())}; g.A.isClientVe=function(){return!this.C.trackingParams&&!!this.C.veType}; g.A.getLoggingDirectives=function(){return this.C.loggingDirectives};g.RG("yt_logging_screen.getRootVeType",jg7);g.RG("yt_logging_screen.getCurrentCsn",g.W8);g.RG("yt_logging_screen.getCttAuthInfo",dQ);g.RG("yt_logging_screen.setCurrentScreen",SyY);var $1G="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var hfG=[{Vl:function(F){return"Cannot read property '"+F.key+"'"}, Dz:{Error:[{NL:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{NL:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{NL:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{NL:/\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"]},{NL:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{NL:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{NL:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Vl:function(F){return"Cannot call '"+F.key+"'"}, Dz:{TypeError:[{NL:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{NL:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{NL:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{NL:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{NL:/\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"]}, {NL:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Vl:function(F){return F.key+" is not defined"}, Dz:{ReferenceError:[{NL:/(.*) is not defined/,groups:["key"]},{NL:/Can't find variable: (.*)/,groups:["key"]}]}}];var RfG={D_:[],Jg:[{callback:C8_,weight:500}]};var jQ;var SQ=new g.EJ;var cCo=new Set,OwY=0,nqv=0,x1z=0,oqa=[],t97=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Lua=new g.Ek("parallelCommand");var bDG=new g.Ek("performOnceCommand");var JY_=new g.Ek("serialCommand");var YW=void 0;var YXt=g.N(Eg_({},"Z39Sdf"));YXt.next();YXt.next();var $Lb=g.N(Eg_(null,"qqrkLd"));$Lb.next();$Lb.next();g.z(Xn,e6);var jpJ=new KA("screen-created",Xn),tk=[],uso=vuv,Z4=0,RO=new Map,D4=new Map,kW=new Map;g.Fb(g.uA,g.R);g.A=g.uA.prototype;g.A.subscribe=function(F,J,b){return this.iR()?0:this.jm.subscribe(F,J,b)}; g.A.unsubscribe=function(F,J,b){return this.iR()?!1:this.jm.unsubscribe(F,J,b)}; g.A.gB=function(F){return this.iR()?!1:this.jm.gB(F)}; g.A.publish=function(F,J){return this.iR()?!1:this.jm.publish.apply(this.jm,arguments)}; g.A.Sn=function(F,J){for(var b in F)this.subscribe(b,F[b],J)}; g.A.TW=function(F,J){for(var b in F)this.unsubscribe(b,F[b],J)};var Q5Y=16/9,Vq=[.25,.5,.75,1,1.25,1.5,1.75,2],CVk=Vq.concat([3,4,5,6,7,8,9,10,15]),XWU=Vq.concat([2.5,3,3.5,4]),Qym=Vq.concat([2.5,3]);var aZk=1;g.z(g.Mc,g.R);g.A=g.Mc.prototype; g.A.createElement=function(F,J){J=J||F.X==="svg";var b=F.K,I=F.Dv;if(J){var u=document.createElementNS("http://www.w3.org/2000/svg",F.X);g.x2&&(F.L||(F.L={}),F.L.focusable="false")}else u=g.H1(F.X);if(b){if(b=Ar(this,u,"class",b))qc(this,u,"class",b),this.Q2[b]=u}else if(I){b=g.N(I);for(var w=b.next();!w.done;w=b.next())this.Q2[w.value]=u;qc(this,u,"class",I.join(" "))}I=F.sQ;b=F.j;if(I)J=Ar(this,u,"child",I),J!==void 0&&u.appendChild(g.L$(J));else if(b)for(I=0,b=g.N(b),w=b.next();!w.done;w=b.next())if(w= w.value)if(typeof w==="string")w=Ar(this,u,"child",w),w!=null&&u.appendChild(g.L$(w));else if(w.element)u.appendChild(w.element);else{var M=w;w=this.createElement(M,J);u.appendChild(w);M.G1&&(M=wV(),w.id=M,w=document.createElementNS("http://www.w3.org/2000/svg","use"),w.setAttribute("class","ytp-svg-shadow"),w.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+M),bB(u,w,I++))}if(F=F.L)for(J=u,I=g.N(Object.keys(F)),b=I.next();!b.done;b=I.next())b=b.value,w=F[b],qc(this,J,b,typeof w==="string"? Ar(this,J,b,w):w);return u}; g.A.RI=function(F){return this.Q2[F]}; g.A.Az=function(F,J){typeof J==="number"?bB(F,this.element,J):F.appendChild(this.element)}; g.A.detach=function(){g.ID(this.element)}; g.A.update=function(F){for(var J=g.N(Object.keys(F)),b=J.next();!b.done;b=J.next())b=b.value,this.updateValue(b,F[b])}; g.A.updateValue=function(F,J){(F=this.Vk["{{"+F+"}}"])&&qc(this,F[0],F[1],J)}; g.A.X_=function(){this.Q2={};this.Vk={};this.detach();g.R.prototype.X_.call(this)};g.z(g.U,g.Mc);g.A=g.U.prototype;g.A.Ce=function(F,J){this.updateValue(J||"content",F)}; g.A.show=function(){this.uT||(g.aN(this.element,"display",""),this.uT=!0)}; g.A.hide=function(){this.uT&&(g.aN(this.element,"display","none"),this.uT=!1)}; g.A.wY=function(F){F?this.show():this.hide()}; g.A.tJ=function(F){this.D=F}; g.A.listen=function(F,J,b){return this.B(this.element,F,J,b)}; g.A.B=function(F,J,b,I){b=(0,g.tJ)(b,I||this);I={target:F,type:J,listener:b};this.listeners.push(I);F.addEventListener(J,b);return I}; g.A.iX=function(F){var J=this;this.listeners.forEach(function(b,I){b===F&&(b=J.listeners.splice(I,1)[0],b.target.removeEventListener(b.type,b.listener))})}; g.A.focus=function(){this.element.focus()}; g.A.X_=function(){for(;this.listeners.length;){var F=this.listeners.pop();F&&F.target.removeEventListener(F.type,F.listener)}g.Mc.prototype.X_.call(this)};g.z(g.vi,g.U);g.vi.prototype.subscribe=function(F,J,b){return this.zj.subscribe(F,J,b)}; g.vi.prototype.unsubscribe=function(F,J,b){return this.zj.unsubscribe(F,J,b)}; g.vi.prototype.gB=function(F){return this.zj.gB(F)}; g.vi.prototype.publish=function(F){return this.zj.publish.apply(this.zj,[F].concat(g.W(g.Ba.apply(1,arguments))))};var RmU=new WeakSet;g.z(a4,g.vi);g.A=a4.prototype;g.A.bind=function(F){this.Jz||F.renderer&&this.init(F.id,F.renderer,{},F);return Promise.resolve()}; g.A.init=function(F,J,b){this.Jz=F;this.element.setAttribute("id",this.Jz);this.cN&&g.uG(this.element,this.cN);this.Tj=J&&J.adRendererCommands;this.fW=J.interaction;var I;((I=this.fW)==null?0:I.onTap)&&g.uG(this.element,"ytp-ad-component--clickable");this.macros=b;this.Y=J.trackingParams||null;var u,w;this.V=(w=(u=g.O(J.rendererContext,Oze))==null?void 0:u.loggingDirectives)!=null?w:J.loggingDirectives;this.Y!=null?this.createServerVe(this.element,this.Y):this.V&&(F=this.element,J=this.V,this.api.createServerVe(F, this,!0),this.api.setTrackingParams(F,J.trackingParams||null))}; g.A.clear=function(){}; g.A.hide=function(){g.vi.prototype.hide.call(this);(this.Y!=null||this.V)&&this.logVisibility(this.element,!1)}; g.A.show=function(){g.vi.prototype.show.call(this);if(!this.Um){this.Um=!0;var F=this.Tj&&this.Tj.impressionCommand,J,b=(J=this.fW)==null?void 0:J.onFirstVisible;F?this.jj(F):b&&(F=$W(b))&&this.jj(F)}(this.Y!=null||this.V)&&this.logVisibility(this.element,!0)}; g.A.onClick=function(F){if((this.Y||this.V)&&!RmU.has(F)){var J=this.element;this.api.hasVe(J)&&this.uT&&this.api.logClick(J,this.interactionLoggingClientData);RmU.add(F)}var b=this.Tj&&this.Tj.clickCommand,I;J=(I=this.fW)==null?void 0:I.onTap;if(b)J=this.fE(b),this.jj(J);else{if(I=J)a:{I=this.element;F=F.composedPath();F=g.N(F);for(b=F.next();!b.done;b=F.next()){b=b.value;if(b===I)break;if(b.className.indexOf("ytp-ad-component--clickable")>=0){I=!1;break a}}I=!0}I&&(J=$W(J))&&this.jj(J)}}; g.A.fE=function(F){return F}; g.A.Ff=function(F){var J=this.Gj;J.V=!0;J.U=F.touches.length;J.C.isActive()&&(J.C.stop(),J.D=!0);F=F.touches;J.W=Pia(J,F)||F.length!=1;var b=F.item(0);J.W||!b?(J.Y=Infinity,J.N=Infinity):(J.Y=b.clientX,J.N=b.clientY);for(b=J.T.length=0;b<F.length;b++){var I=F.item(b);J.T.push(I.identifier)}}; g.A.xY=function(F){var J=this.Gj;F=F.changedTouches.item(0);var b;if(b=ob()){b=g.Bk();var I="";if(nCm())I=/Windows (?:NT|Phone) ([0-9.]+)/,I=(b=I.exec(b))?b[1]:"0.0";else if(ob())I=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,I=(b=I.exec(b))&&b[1].replace(/_/g,".");else if(he())I=/Mac OS X ([0-9_.]+)/,I=(b=I.exec(b))?b[1].replace(/_/g,"."):"10";else if(jm(g.Bk(),"KaiOS"))I=/(?:KaiOS)\/(\S+)/i,I=(b=I.exec(b))&&b[1];else if(x4z())I=/Android\s+([^\);]+)(\)|;)/,I=(b=I.exec(b))&&b[1];else if(kL()?Sm.platform=== "Chrome OS":YL("CrOS"))I=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,I=(b=I.exec(b))&&b[1];b=!(g.Pk(I||"",8)>=0)}if(b||F&&Math.pow(F.clientX-J.Y,2)+Math.pow(F.clientY-J.N,2)>25)J.Z=!0}; g.A.Kr=function(F){if(this.Gj){var J=this.Gj,b=F.changedTouches;b&&J.V&&J.U==1&&!J.Z&&!J.D&&!J.W&&Pia(J,b)&&(J.Tj=F,J.C.start());J.U=F.touches.length;J.U===0&&(J.V=!1,J.Z=!1,J.T.length=0);J.D=!1}}; g.A.jj=function(F){this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(new g.hC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.A.createServerVe=function(F,J){this.api.createServerVe(F,this);this.api.setTrackingParams(F,J)}; g.A.logVisibility=function(F,J){this.api.hasVe(F)&&this.api.logVisibility(F,J,this.interactionLoggingClientData)}; g.A.X_=function(){this.clear(null);this.iX(this.bR);for(var F=g.N(this.kQ),J=F.next();!J.done;J=F.next())this.iX(J.value);g.vi.prototype.X_.call(this)};g.z(Pi,a4); Pi.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.C=J;if(J.text==null&&J.icon==null)g.rQ(Error("ButtonRenderer did not have text or an icon set."));else{switch(J.style||null){case "STYLE_UNKNOWN":F="ytp-ad-button-link";break;default:F=null}F!=null&&g.uG(this.element,F);J.text!=null&&(F=g.Kr(J.text),g.d5(F)||(this.element.setAttribute("aria-label",F),this.T=new g.vi({X:"span",K:"ytp-ad-button-text",sQ:F}),g.k(this,this.T),this.T.Az(this.element)));J.accessibilityData&&J.accessibilityData.accessibilityData&& J.accessibilityData.accessibilityData.label&&!g.d5(J.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",J.accessibilityData.accessibilityData.label);J.icon!=null&&(J=Vr(J.icon,this.Z),J!=null&&(this.U=new g.vi({X:"span",K:"ytp-ad-button-icon",j:[J]}),g.k(this,this.U)),this.W?bB(this.element,this.U.element,0):this.U.Az(this.element))}}; Pi.prototype.clear=function(){this.hide()}; Pi.prototype.onClick=function(F){a4.prototype.onClick.call(this,F);F=g.N(rYY(this));for(var J=F.next();!J.done;J=F.next())J=J.value,this.layoutId?this.vN.executeCommand(J,this.layoutId):g.Td(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(Bi,g.R);Bi.prototype.X_=function(){this.U&&g.fw(this.U);this.C.clear();Th=null;g.R.prototype.X_.call(this)}; Bi.prototype.register=function(F,J){J&&this.C.set(F,J)}; var Th=null;g.z(sj,a4); sj.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);F=J.hoverText||null;J=J.button&&g.O(J.button,g.TX)||null;J==null?g.Td(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,void 0,void 0,void 0,void 0,this.T),g.k(this,this.button),this.button.init(bA("button"),J,this.macros),F&&this.button.element.setAttribute("aria-label",g.Kr(F)),this.button.Az(this.element),this.N&&!g.I3(this.button.element, "ytp-ad-clickable")&&g.uG(this.button.element,"ytp-ad-clickable"),this.T&&(g.uG(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.S("clean_player_style_fix_on_web")&&g.uG(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),F&&(this.U=new g.vi({X:"div",K:"ytp-ad-hover-text-container"}),this.W&&(J=new g.vi({X:"div",K:"ytp-ad-hover-text-callout"}),J.Az(this.U.element),g.k(this,J)),g.k(this,this.U),this.U.Az(this.element),J=rV(F),bB(this.U.element,J,0)), this.show())}; sj.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();a4.prototype.hide.call(this)}; sj.prototype.show=function(){this.button&&this.button.show();a4.prototype.show.call(this)};g.z($S,a4); $S.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);b=(F=J.thumbnail)&&YS(F)||"";g.d5(b)?Math.random()<.01&&g.rQ(Error("Found AdImage without valid image URL")):(this.C?g.aN(this.element,"backgroundImage","url("+b+")"):Ua(this.element,{src:b}),Ua(this.element,{alt:F&&F.accessibility&&F.accessibility.label||""}),J&&J.adRendererCommands&&J.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; $S.prototype.clear=function(){this.hide()};g.z(Cr,a4);g.A=Cr.prototype;g.A.hide=function(){a4.prototype.hide.call(this);this.T&&this.T.focus()}; g.A.show=function(){this.T=document.activeElement;a4.prototype.show.call(this);this.Z.focus()}; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.U=J;J.dialogMessages||J.title!=null?J.confirmLabel==null?g.Td(Error("ConfirmDialogRenderer.confirmLabel was not set.")):J.cancelLabel==null?g.Td(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$PY(this,J):g.Td(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.A.clear=function(){g.Ve(this.C);this.hide()}; g.A.eX=function(){this.hide()}; g.A.S8=function(){var F=this.U.cancelEndpoint;F&&(this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.A.Zs=function(){var F=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;F&&(this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(XX,a4);g.A=XX.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.T=J;if(J.defaultText==null&&J.defaultIcon==null)g.Td(Error("ToggleButtonRenderer must have either text or icon set."));else if(J.defaultIcon==null&&J.toggledIcon!=null)g.Td(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(J.style){switch(J.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":F="ytp-ad-toggle-button-default-style";break;default:F=null}F!=null&&g.uG(this.Z,F)}F={};J.defaultText? (b=g.Kr(J.defaultText),g.d5(b)||(F.buttonText=b,this.api.J().experiments.pW("a11y_h5_associate_survey_question")||this.C.setAttribute("aria-label",b),this.api.J().experiments.pW("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",b))):g.Wc(this.WN,!1);J.defaultTooltip&&(F.tooltipText=J.defaultTooltip,this.C.hasAttribute("aria-label")||this.U.setAttribute("aria-label",J.defaultTooltip));J.defaultIcon?(b=Vr(J.defaultIcon),this.updateValue("untoggledIconTemplateSpec",b),J.toggledIcon?(this.eE= !0,b=Vr(J.toggledIcon),this.updateValue("toggledIconTemplateSpec",b)):(g.Wc(this.N,!0),g.Wc(this.W,!1)),g.Wc(this.C,!1)):g.Wc(this.U,!1);g.Vj(F)||this.update(F);J.isToggled&&(g.uG(this.Z,"ytp-ad-toggle-button-toggled"),this.toggleButton(J.isToggled));Qr(this);this.B(this.element,"change",this.H7);this.show()}}; g.A.onClick=function(F){this.kQ.length>0&&(this.toggleButton(!this.isToggled()),this.H7());a4.prototype.onClick.call(this,F)}; g.A.H7=function(){g.qr(this.Z,"ytp-ad-toggle-button-toggled",this.isToggled());for(var F=g.N(Caz(this,this.isToggled())),J=F.next();!J.done;J=F.next())J=J.value,this.layoutId?this.vN.executeCommand(J,this.layoutId):g.Td(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Qr(this)}; g.A.clear=function(){this.hide()}; g.A.toggleButton=function(F){g.qr(this.Z,"ytp-ad-toggle-button-toggled",F);this.C.checked=F;Qr(this)}; g.A.isToggled=function(){return this.C.checked};g.z(R4,j9);R4.prototype.W=function(F){if(Array.isArray(F)){F=g.N(F);for(var J=F.next();!J.done;J=F.next())J=J.value,J instanceof X$C&&this.Z(J)}};g.z(DU,a4);g.A=DU.prototype;g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);J.reasons?J.confirmLabel==null?g.Td(Error("AdFeedbackRenderer.confirmLabel was not set.")):(J.cancelLabel==null&&g.rQ(Error("AdFeedbackRenderer.cancelLabel was not set.")),J.title==null&&g.rQ(Error("AdFeedbackRenderer.title was not set.")),kl_(this,J)):g.Td(Error("AdFeedbackRenderer.reasons were not set."))}; g.A.clear=function(){WK(this.W);WK(this.N);this.Z.length=0;this.hide()}; g.A.hide=function(){this.C&&this.C.hide();this.U&&this.U.hide();a4.prototype.hide.call(this);this.T&&this.T.focus()}; g.A.show=function(){this.C&&this.C.show();this.U&&this.U.show();this.T=document.activeElement;a4.prototype.show.call(this);this.W.focus()}; g.A.kP=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.A.GUv=function(){this.hide()}; kS.prototype.Pb=function(){return this.C.element}; kS.prototype.getCommand=function(){return this.U}; kS.prototype.isChecked=function(){return this.T.checked};g.z(Oj,Cr);Oj.prototype.eX=function(F){Cr.prototype.eX.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Oj.prototype.S8=function(F){Cr.prototype.S8.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Oj.prototype.Zs=function(F){Cr.prototype.Zs.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(o4,a4);g.A=o4.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.W=J;if(J.dialogMessage==null&&J.title==null)g.Td(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{J.confirmLabel==null&&g.rQ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(F=J.closeOverlayRenderer&&g.O(J.closeOverlayRenderer,g.TX)||null)this.C=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.k(this,this.C),this.C.init(bA("button"),F,this.macros),this.C.Az(this.element);J.title&&(F=g.Kr(J.title),this.updateValue("title",F));if(J.adReasons)for(F=J.adReasons,b=0;b<F.length;b++){var I=rV(F[b]);if(!g.d5(I.textContent)){var u=Z8("LI");u.appendChild(I);this.qf.appendChild(u)}}else g.Wc(this.qf,!1);J.dialogMessage&&(F=rV(J.dialogMessage,!0),this.KW.appendChild(F));J.confirmLabel&&(F=g.Kr(J.confirmLabel),this.updateValue("confirmLabel",F));J.muteAdRenderer&&(J=g.O(J.muteAdRenderer,g.TX)||null)&& (F=J.navigationEndpoint&&g.O(J.navigationEndpoint,U8k)||null,b=J.navigationEndpoint&&g.O(J.navigationEndpoint,$8W)||null,F==null&&b==null?g.rQ(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(F?ODk(this,F):b&&ouC(this,b),this.T=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-info-dialog-mute-button"],"button",!0),g.k(this,this.T),this.T.init(bA("button"),J,this.macros),this.T.listen("click", this.pof,this),this.T.Az(this.oI)));hU4(this)}}; g.A.clear=function(){WK(this.N);this.hide()}; g.A.hide=function(){this.U?this.U.hide():this.Z&&this.Z.hide();this.C&&this.C.hide();this.T&&this.T.hide();a4.prototype.hide.call(this);this.eE&&this.eE.focus()}; g.A.show=function(){this.C&&this.C.show();this.T&&this.T.show();if(!this.dD){for(var F=g.N(this.W&&this.W.impressionEndpoints||[]),J=F.next();!J.done;J=F.next())J=J.value,this.layoutId?this.vN.executeCommand(J,this.layoutId):g.Td(Error("Missing layoutId for ad info dialog."));this.dD=!0}this.eE=document.activeElement;a4.prototype.show.call(this);this.N.focus()}; g.A.Ve=function(){if(this.W&&this.W.confirmServiceEndpoint){var F=this.W.confirmServiceEndpoint;this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()}; g.A.pof=function(){var F=this.U?this.U:this.Z;F&&!F.uT&&(this.hide(),F.show())};g.z(hr,sj);hr.prototype.init=function(F,J,b){sj.prototype.init.call(this,F,J,b);F=J.button&&g.O(J.button,g.TX)||null;F!=null&&(tR_(this,F,b),this.api.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())}; hr.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();sj.prototype.hide.call(this)}; hr.prototype.show=function(){this.button&&this.button.show();sj.prototype.show.call(this)}; hr.prototype.clear=function(){this.hide()};g.z(ci,a4); ci.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.C=J;this.isTemplated()||g.wK(this.element,e0(this.C));if(J.backgroundImage&&(F=(F=J.backgroundImage.thumbnail)?YS(F):"",b=(b=this.api.getVideoData(1))&&b.Px,F&&b&&(this.element.style.backgroundImage="url("+F+")",this.element.style.backgroundSize="100%"),J.style&&J.style.adTextStyle))switch(J.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(F=g.Zi(J.targetId))&&this.element.setAttribute("data-tooltip-target-id",F); J&&J.adRendererCommands&&J.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()}; ci.prototype.isTemplated=function(){return this.C.isTemplated||!1}; ci.prototype.clear=function(){this.hide()};var upC={seekableStart:0,seekableEnd:1,current:0};g.z(xS,a4);xS.prototype.clear=function(){this.dispose()};g.z(g.ZU,g.R);g.A=g.ZU.prototype;g.A.show=function(F){this.state!==1&&this.state!==2&&(this.state===4&&this.Mo(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.C&&this.C()):this.element.uT||(Hi(this,!0),this.state=1,F?this.delay.start(F):this.Mo()))}; g.A.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.uT&&(Hi(this,!0),this.state=4,this.delay.start(this.T)))}; g.A.Mo=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:Hi(this,!1);this.state=3;this.delay.start(this.U);break;case 3:this.state=null;this.C&&this.C();break;case 4:this.element.hide();Hi(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}}; g.A.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.Mo()}; g.A.X_=function(){this.element.iR()||this.element.element.removeAttribute("aria-hidden");g.R.prototype.X_.call(this)};g.z(Lr,xS);g.A=Lr.prototype; g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);F=J.durationMilliseconds;typeof F==="number"&&F<0&&g.Td(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+F));this.nW&&(this.Z?g.uG(this.U.element,"modern-countdown-next-to-thumbnail"):g.uG(this.U.element,"countdown-next-to-thumbnail"));F=J.durationMilliseconds;this.qf=F==null||F===0?this.C.YO():F;if(J.templatedCountdown)var I=J.templatedCountdown.templatedAdText;else J.staticPreview&&(I=J.staticPreview); this.T.init(bA("ad-text"),I,b);(I=this.api.getVideoData(1))&&I.Px&&J.thumbnail?this.W.init(bA("ad-image"),J.thumbnail,b):(this.eE.hide(),this.Z&&this.nW&&g.uG(this.T.element,"ytp-ad-preview-text-modern-postroll"))}; g.A.clear=function(){this.hide()}; g.A.hide=function(){this.U.hide();this.T.hide();this.W.hide();tr(this);xS.prototype.hide.call(this)}; g.A.show=function(){nr(this);this.U.show();this.T.show();this.W.show();xS.prototype.show.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C!=null){var F=this.C.getProgressState();F!=null&&F.current!=null&&(F=1E3*F.current,!this.KW&&F>=this.qf?(this.WN.hide(),this.KW=!0,this.publish("i")):this.T&&this.T.isTemplated()&&(F=Math.max(0,Math.ceil((this.qf-F)/1E3)),F!=this.oI&&(Uj(this.T,{TIME_REMAINING:String(F)}),this.oI=F)))}};g.z(J5,xS);g.A=J5.prototype; g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if((F=J.actionButton&&g.O(J.actionButton,g.TX))&&F.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null)if(J.image&&J.image.thumbnail){var u=J.image.thumbnail.thumbnails;u!=null&&u.length>0&&g.d5(g.Zi(u[0].url))&&(u[0].url=I.profilePicture)}else g.rQ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.T.init(bA("ad-image"),J.image,b);this.W.init(bA("ad-text"), J.headline,b);this.Z.init(bA("ad-text"),J.description,b);this.U.init(bA("button"),F,b);b=cQ(this.U.element);hy(this.U.element,b+" This link opens in new tab");this.eE=F.navigationEndpoint;this.api.cz()||this.show();this.api.J().S("enable_larger_flyout_cta_on_desktop")&&(this.RI("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.RI("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.RI("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.RI("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.RI("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.RI("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.RI("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Kg.bind(this));this.WN=J.startMs||0;nr(this)}else g.Td(Error("FlyoutCtaRenderer has no valid action button."));else g.Td(Error("FlyoutCtaRenderer has no description AdText."));else g.Td(Error("FlyoutCtaRenderer has no headline AdText."));else g.rQ(Error("FlyoutCtaRenderer has no image."))}; g.A.onClick=function(F){xS.prototype.onClick.call(this,F);this.api.pauseVideo();!g.uB(this.U.element,F.target)&&this.eE&&(this.layoutId?this.vN.executeCommand(this.eE,this.layoutId):g.Td(Error("Missing layoutId for flyout cta.")))}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();(F&&F.current||this.qf)&&1E3*F.current>=this.WN&&(tr(this),g.Mr(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}}; g.A.Cj=function(){this.clear()}; g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Kg.bind(this))}; g.A.show=function(){this.U&&this.U.show();xS.prototype.show.call(this)}; g.A.hide=function(){this.U&&this.U.hide();xS.prototype.hide.call(this)}; g.A.Kg=function(F){F=="hidden"?this.show():this.hide()};g.z(bD,a4);g.A=bD.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.C=J;if(this.C.rectangle)for(F=this.C.likeButton&&g.O(this.C.likeButton,lj),J=this.C.dislikeButton&&g.O(this.C.dislikeButton,lj),this.T.init(bA("toggle-button"),F,b),this.U.init(bA("toggle-button"),J,b),this.B(this.element,"change",this.xL),this.Z.show(100),this.show(),b=g.N(this.C&&this.C.impressionCommands||[]),F=b.next();!F.done;F=b.next())F=F.value,this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(Error("Missing layoutId for instream user sentiment."))}; g.A.clear=function(){this.hide()}; g.A.hide=function(){this.T.hide();this.U.hide();a4.prototype.hide.call(this)}; g.A.show=function(){this.T.show();this.U.show();a4.prototype.show.call(this)}; g.A.xL=function(){TjG(this.element,"ytp-ad-instream-user-sentiment-selected");this.C.postMessageAction&&this.api.jE("onYtShowToast",this.C.postMessageAction);this.Z.hide()}; g.A.onClick=function(F){this.kQ.length>0&&this.xL();a4.prototype.onClick.call(this,F)};g.z(IJ,g.R);g.A=IJ.prototype;g.A.X_=function(){this.reset();g.R.prototype.X_.call(this)}; g.A.reset=function(){g.Ve(this.Z);this.W=!1;this.C&&this.C.stop();this.D.stop();this.T&&(this.T=!1,this.V.play())}; g.A.start=function(){this.reset();this.Z.B(this.U,"mouseover",this.B7,this);this.Z.B(this.U,"mouseout",this.FM,this);this.Tj&&(this.Z.B(this.U,"focusin",this.B7,this),this.Z.B(this.U,"focusout",this.FM,this));this.C?this.C.start():(this.W=this.T=!0,g.aN(this.U,{opacity:this.N}))}; g.A.B7=function(){this.T&&(this.T=!1,this.V.play());this.D.stop();this.C&&this.C.stop()}; g.A.FM=function(){this.W?this.D.start():this.C&&this.C.start()}; g.A.wQ=function(){this.T||(this.T=!0,this.Y.play(),this.W=!0)};var FEa=[new uD("b.f_",!1,0),new uD("j.s_",!1,2),new uD("r.s_",!1,4),new uD("e.h_",!1,6),new uD("i.s_",!0,8),new uD("s.t_",!1,10),new uD("p.h_",!1,12),new uD("s.i_",!1,14),new uD("f.i_",!1,16),new uD("a.b_",!1,18),new uD("a.o_",!1),new uD("g.o_",!1,22),new uD("p.i_",!1,24),new uD("p.m_",!1),new uD("i.k_",!0,28),new uD("n.k_",!0,20),new uD("i.f_",!1),new uD("a.s_",!0),new uD("m.c_",!1),new uD("n.h_",!1,26),new uD("o.p_",!1)].reduce(function(F,J){F[J.U]=J;return F},{});g.z(K0,xS);g.A=K0.prototype; g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);this.eE=J;(this.WN=bAG(this))&&g.rQ(Error("hasAdControlInClickCommands_ is true."));if(!J||g.Vj(J))g.Td(Error("SkipButtonRenderer was not specified or empty."));else if(!J.message||g.Vj(J.message))g.Td(Error("SkipButtonRenderer.message was not specified or empty."));else{F=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};J=Vr(F);J==null?g.Td(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+F.iconType+".")): (this.Z=new g.vi({X:"button",Dv:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],j:[{X:"span",K:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",j:[J]}]}),g.k(this,this.Z),this.Z.Az(this.T.element),this.U=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-skip-button-text"),this.W&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"),this.U.init(bA("ad-text"),this.eE.message,b),g.k(this,this.U),bB(this.Z.element,this.U.element, 0));var I=I===void 0?null:I;b=this.api.J();!(this.kQ.length>0)&&b.U&&(tg?0:"ontouchstart"in document.documentElement&&(EV_()||yF()))&&(this.iX(this.bR),I&&this.iX(I),this.kQ=[this.B(this.element,"touchstart",this.Ff,this),this.B(this.element,"touchmove",this.xY,this),this.B(this.element,"touchend",this.Kr,this)])}}; g.A.clear=function(){this.qf.reset();this.hide()}; g.A.hide=function(){this.T.hide();this.U&&this.U.hide();tr(this);xS.prototype.hide.call(this)}; g.A.onClick=function(F){if(this.Z!=null){if(F){var J=F||window.event;J.returnValue=!1;J.preventDefault&&J.preventDefault()}var b;if(HD7(F,{contentCpn:((b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)||""})===0)this.api.jE("onAbnormalityDetected");else if(xS.prototype.onClick.call(this,F),this.publish("j"),this.api.jE("onAdSkip"),this.KW||!this.WN)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.A.fE=function(F){if(!this.KW)return this.WN&&q_("SkipButton click commands not pruned while ALC exist"),F;var J,b=(J=g.O(F,g.p0))==null?void 0:J.commands;if(!b)return F;F=[];for(J=0;J<b.length;J++){var I=b[J];I.adLifecycleCommand&&JB3(I.adLifecycleCommand)||I.pingingEndpoint||I.adPingingEndpoint||F.push(I)}return{commandExecutorCommand:{commands:F}}}; g.A.show=function(){this.qf.start();this.T.show();this.U&&this.U.show();nr(this);xS.prototype.show.call(this);this.oI&&this.api.J().S("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}; g.A.Cj=function(){this.publish("k")}; g.A.Nh=function(){};g.z(gJ,xS);g.A=gJ.prototype; g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);F=J&&J.preskipRenderer&&g.O(J.preskipRenderer,BF)||{};(F=g.Vj(F)?null:F)?(this.W=F.durationMilliseconds!=null&&F.durationMilliseconds!==void 0?F.durationMilliseconds:5E3,this.U=new Lr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C,xj(this.api.J().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&En(this.api.J())),this.U.init(bA("preskip-component"),F,b),FY(this.U),g.k(this,this.U),this.U.Az(this.element)): J.skipOffsetMilliseconds&&(this.W=J.skipOffsetMilliseconds);F=J&&J.skippableRenderer&&g.O(J.skippableRenderer,fHV)||{};F=g.Vj(F)?null:F;F==null?g.Td(Error("SkipButtonRenderer was not set in player response.")):(this.T=new K0(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C,this.eE),this.T.init(bA("skip-button"),F,b),g.k(this,this.T),this.T.Az(this.element),this.api.J().experiments.pW("enable_skip_to_next_messaging")&&(J=g.Zi(J.targetId))&&(b=this.T,b.Z!=null&&(b.oI=!0,b.Z.element.setAttribute("data-tooltip-target-id", J),b.Z.element.setAttribute("data-tooltip-target-fixed",""))),this.show())}; g.A.show=function(){this.Z&&this.T?this.T.show():this.U&&this.U.show();nr(this);xS.prototype.show.call(this)}; g.A.Cj=function(){}; g.A.clear=function(){this.U&&this.U.clear();this.T&&this.T.clear();tr(this);xS.prototype.hide.call(this)}; g.A.hide=function(){this.U&&this.U.hide();this.T&&this.T.hide();tr(this);xS.prototype.hide.call(this)}; g.A.Nh=function(){1E3*this.C.getProgressState().current>=this.W&&ID7(this,!0)};g.z(mN,Pi);mN.prototype.init=function(F,J,b){Pi.prototype.init.call(this,F,J,b);F=!1;J.text!=null&&(F=g.Kr(J.text),F=!g.d5(F));F?J.navigationEndpoint==null?g.rQ(Error("No visit advertiser clickthrough provided in renderer,")):J.style!=="STYLE_UNKNOWN"?g.rQ(Error("Button style was not a link-style type in renderer,")):this.show():g.rQ(Error("No visit advertiser text was present in the renderer."))};g.z(ym,a4); ym.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);F=J.text;g.d5(e0(F))?g.rQ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(F&&F.text&&(J=F.text,this.T&&!this.U&&(J=this.api.J(),J=F.text+" "+(J&&J.U?"\u2022":"\u00b7")),J={text:J,isTemplated:F.isTemplated},F.style&&(J.style=F.style),F.targetId&&(J.targetId=F.targetId),F=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),F.init(bA("simple-ad-badge"),J,b),F.Az(this.element),g.k(this,F)),this.show())}; ym.prototype.clear=function(){this.hide()};g.z(iD,I4);g.z(zg,g.uA);g.A=zg.prototype;g.A.YO=function(){return this.durationMs}; g.A.stop=function(){this.C&&this.eF.iX(this.C)}; g.A.Q6=function(F){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:F.current};this.publish("h")}; g.A.getProgressState=function(){return this.U}; g.A.BW=function(F){g.e1(F,2)&&this.publish("g")};g.z(N_,g.uA);g.A=N_.prototype;g.A.YO=function(){return this.durationMs}; g.A.start=function(){this.C||(this.C=!0,this.bC.start())}; g.A.stop=function(){this.C&&(this.C=!1,this.bC.stop())}; g.A.Q6=function(){this.EJ+=100;var F=!1;this.EJ>this.durationMs&&(this.EJ=this.durationMs,this.bC.stop(),F=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.EJ/1E3};this.publish("h");F&&this.publish("g")}; g.A.getProgressState=function(){return this.U};g.z(WL,xS);g.A=WL.prototype;g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);var I;if(J==null?0:(I=J.templatedCountdown)==null?0:I.templatedAdText){F=J.templatedCountdown.templatedAdText;if(!F.isTemplated){g.rQ(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);this.U.init(bA("ad-text"),F,{});this.U.Az(this.element);g.k(this,this.U)}this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C!=null){var F=this.C.getProgressState();if(F!=null&&F.current!=null&&this.U){var J=this.C instanceof zg?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:F.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.C instanceof N_?F.seekableEnd:this.api.getDuration(2,!1);F=F.current;J=this.api.J().experiments.pW("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(J-F,0):J-F;Uj(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.lD(J)), TIME_REMAINING:String(Math.ceil(J))})}}}; g.A.show=function(){nr(this);xS.prototype.show.call(this)};g.z(dJ,ci);dJ.prototype.onClick=function(F){ci.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType)};g.z(j1,a4);j1.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(F=J.content){g.wK(this.element,F);var b,I;J=((b=J.interaction)==null?void 0:(I=b.accessibility)==null?void 0:I.label)||F;this.element.setAttribute("aria-label",J)}else g.Td(Error("AdSimpleAttributedString does not have text content"))}; j1.prototype.clear=function(){this.hide()}; j1.prototype.onClick=function(F){a4.prototype.onClick.call(this,F)};g.z(Gg,a4); Gg.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});(F=J.label)&&F.content&&!g.d5(F.content)?(this.adBadgeText.init(bA("ad-simple-attributed-string"),new EV(F)),(J=J.adPodIndex)&&J.content&&!g.d5(J.content)&&(this.C=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),this.C.Az(this.element),g.k(this,this.C),this.C.element.classList.add("ytp-ad-badge__pod-index"),this.C.init(bA("ad-simple-attributed-string"),new EV(J))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Td(Error("No label is returned in AdBadgeViewModel."))}; Gg.prototype.show=function(){this.adBadgeText.show();var F;(F=this.C)==null||F.show();a4.prototype.show.call(this)}; Gg.prototype.hide=function(){this.adBadgeText.hide();var F;(F=this.C)==null||F.hide();a4.prototype.hide.call(this)};g.z(Vm,a4); Vm.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});(F=J.adPodIndex)&&F.content&&!g.d5(F.content)&&(this.C=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),this.C.Az(this.element),g.k(this,this.C),this.C.init(bA("ad-simple-attributed-string"),new EV(F)),(this.api.J().S("clean_player_style_fix_on_web")?J.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.U||J.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.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; Vm.prototype.show=function(){var F;(F=this.C)==null||F.show();a4.prototype.show.call(this)}; Vm.prototype.hide=function(){var F;(F=this.C)==null||F.hide();a4.prototype.hide.call(this)};g.z(PL,a4); PL.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J!=null&&J.text){var b;if(((b=J.text)==null?0:b.content)&&!g.d5(J.text.content)){this.C=new g.vi({X:"div",K:"ytp-ad-disclosure-banner__text",sQ:J.text.content});g.k(this,this.C);this.C.Az(this.element);var I,u;F=((I=J.interaction)==null?void 0:(u=I.accessibility)==null?void 0:u.label)||J.text.content;this.element.setAttribute("aria-label",F);var w;if((w=J.interaction)==null?0:w.onTap)this.U=new g.vi({X:"div",K:"ytp-ad-disclosure-banner__chevron",j:[g.yr()]}), g.k(this,this.U),this.U.Az(this.element);this.show()}}else g.Td(Error("No banner text found in AdDisclosureBanner."))}; PL.prototype.clear=function(){this.hide()};BL.prototype.getLength=function(){return this.C-this.U};g.z(rJ,g.vi);rJ.prototype.Q6=function(){var F=this.U.getProgressState(),J=F.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.J().S("show_preskip_progress_bar_for_skippable_ads")&&(J=this.T?this.T/1E3:F.seekableEnd);F=Tg(new BL(F.seekableStart,J),F.current,0);this.progressBar.style.width=F*100+"%"}; rJ.prototype.onStateChange=function(){g.TB(this.api.J())||(this.api.getPresentingPlayerType()===2?this.C===-1&&(this.show(),this.C=this.U.subscribe("h",this.Q6,this),this.Q6()):this.C!==-1&&(this.hide(),this.U.gB(this.C),this.C=-1))};g.z(S1,a4); S1.prototype.init=function(F,J,b,I){a4.prototype.init.call(this,F,J,b);b=!0;if(J.skipOrPreviewRenderer){var u=J.skipOrPreviewRenderer;F=g.O(u,IS);u=g.O(u,BF);F?(u=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,this.eE),u.Az(this.N),u.init(bA("skip-button"),F,this.macros),g.k(this,u)):u&&!this.api.J().experiments.pW("disable_ad_preview_for_instream_ads")&&(F=new Lr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,!1),F.Az(this.N),F.init(bA("ad-preview"),u, this.macros),FY(F),g.k(this,F));if(F=g.O(J.skipOrPreviewRenderer,IS)){b=!1;var w=F.skipOffsetMilliseconds}}J.brandInteractionRenderer&&(F=J.brandInteractionRenderer.brandInteractionRenderer,u=new bD(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),u.Az(this.qf),u.init(bA("instream-user-sentiment"),F,this.macros),g.k(this,u));if(F=g.O(J,m8z))if(F=g.O(F,m8z))u=new J5(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,!!J.showWithoutLinkedMediaLayout),g.k(this,u), u.Az(this.W),u.init(bA("flyout-cta"),F,this.macros);F=(this.api.J().S("disable_ad_duration_remaining_for_instream_video_ads")||J.adPodIndex!==void 0)&&!1;I=I&&I.videoAdDurationSeconds;if(J.adBadgeRenderer){var M=J.adBadgeRenderer;u=g.O(M,oL);u!=null?(M=new Gg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,F),g.k(this,M),M.Az(this.C),M.init(bA("ad-badge"),u,this.macros),this.T=M.element):(u=M.simpleAdBadgeRenderer,u==null&&(u={text:{text:"Ad",isTemplated:!1}}),M=new ym(this.api,this.layoutId, this.interactionLoggingClientData,this.vN,!0),g.k(this,M),M.Az(this.C),M.init(bA("simple-ad-badge"),u,this.macros))}J.adPodIndex&&(u=g.O(J.adPodIndex,jbL),u!=null&&(b=new Vm(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,b),g.k(this,b),b.Az(this.C),b.init(bA("ad-pod-index"),u)));J.adDurationRemaining&&!J.showWithoutLinkedMediaLayout&&(b=J.adDurationRemaining.adDurationRemainingRenderer,b==null&&(b={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}), I=new WL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,I,F),g.k(this,I),I.Az(this.C),I.init(bA("ad-duration-remaining"),b,this.macros),F&&I.element.classList.add("ytp-ad-duration-remaining-autohide"));J.adInfoRenderer&&(I=g.O(J.adInfoRenderer,PF))&&(b=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,F),g.k(this,b),this.api.J().S("enable_ad_pod_index_autohide")&&this.T!==null?this.C.insertBefore(b.element,this.T.nextSibling):b.Az(this.C), b.init(bA("ad-info-hover-text-button"),I,this.macros));J.visitAdvertiserRenderer&&(b=g.O(J.visitAdvertiserRenderer,g.TX))&&(u=M6z(this)&&this.Z?this.Z:this.C)&&(I=new mN(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,I),I.Az(u),I.init(bA("visit-advertiser"),b,this.macros),OY(I.element),b=cQ(I.element),hy(I.element,b+" This link opens in new tab"));!(I=this.api.J())||g.Pu(I)||I.controlsType!="3"&&!I.disableOrganicUi||(w=new rJ(this.api,this.U,w,F),w.Az(this.dD),g.k(this, w));J.adDisclosureBannerRenderer&&(J=g.O(J.adDisclosureBannerRenderer,ELb))&&(w=new PL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),w.Az(this.WN),w.init(bA("ad-disclosure-banner"),J),g.k(this,w));this.api.J().S("enable_updated_html5_player_focus_style")&&g.uG(this.element,"ytp-ad-player-overlay-updated-focus-style");F&&this.api.J().U&&this.C.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; S1.prototype.clear=function(){this.hide()};C0.prototype.set=function(F,J,b){b=b!==void 0?Date.now()+b:void 0;this.C.set(F,J,b)}; C0.prototype.get=function(F){return this.C.get(F)}; C0.prototype.remove=function(F){this.C.remove(F)};var DI=null,ky=null,OV=null,KE7=null;g.RG("yt.www.ads.eventcache.getLastCompanionData",function(){return DI}); g.RG("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.RG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ky}); g.RG("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return OV}); g.RG("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return KE7});var gPk=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);oJ.prototype.handleResponse=function(F,J){if(!J)throw Error("request needs to be passed into ConsistencyService");var b,I;J=((b=J.K1.context)==null?void 0:(I=b.request)==null?void 0:I.consistencyTokenJars)||[];var u;(F=(u=F.responseContext)==null?void 0:u.consistencyTokenJar)&&this.replace(J,F)}; oJ.prototype.replace=function(F,J){F=g.N(F);for(var b=F.next();!b.done;b=F.next())delete this.C[b.value.encryptedTokenJarContents];yBz(this,J)};var DLV=window.location.hostname.split(".").slice(-2).join("."),PI;cL.getInstance=function(){PI=g.kC("yt.clientLocationService.instance");PI||(PI=new cL,g.RG("yt.clientLocationService.instance",PI));return PI}; g.A=cL.prototype; g.A.setLocationOnInnerTubeContext=function(F){F.client||(F.client={});if(this.C)F.client.locationInfo||(F.client.locationInfo={}),F.client.locationInfo.latitudeE7=Math.floor(this.C.coords.latitude*1E7),F.client.locationInfo.longitudeE7=Math.floor(this.C.coords.longitude*1E7),F.client.locationInfo.horizontalAccuracyMeters=Math.round(this.C.coords.accuracy),F.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.T||this.locationPlayabilityToken)F.client.locationPlayabilityToken=this.T|| this.locationPlayabilityToken}; g.A.handleResponse=function(F){var J;F=(J=F.responseContext)==null?void 0:J.locationPlayabilityToken;F!==void 0&&(this.locationPlayabilityToken=F,this.C=void 0,g.cT("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=h5(this))&&this.localStorage.set("yt-location-playability-token",F,15552E3):g.Y6("YT_CL",JSON.stringify({loctok:F}),15552E3,DLV,!0))}; g.A.clearLocationPlayabilityToken=function(F){F==="TVHTML5"?(this.localStorage=h5(this))&&this.localStorage.remove("yt-location-playability-token"):g.Cl("YT_CL");this.T=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)}; g.A.getCurrentPositionFromGeolocation=function(){var F=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var J=!1,b=1E4;g.cT("INNERTUBE_CLIENT_NAME")==="MWEB"&&(J=!0,b=15E3);return new Promise(function(I,u){navigator.geolocation.getCurrentPosition(function(w){F.C=w;I(w)},function(w){u(w)},{enableHighAccuracy:J, maximumAge:0,timeout:b})})}; g.A.createUnpluggedLocationInfo=function(F){var J={};F=F.coords;if(F==null?0:F.latitude)J.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)J.longitudeE7=Math.floor(F.longitude*1E7);if(F==null?0:F.accuracy)J.locationRadiusMeters=Math.round(F.accuracy);return J}; g.A.createLocationInfo=function(F){var J={};F=F.coords;if(F==null?0:F.latitude)J.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)J.longitudeE7=Math.floor(F.longitude*1E7);return J};g.A=fDm.prototype;g.A.contains=function(F){return Object.prototype.hasOwnProperty.call(this.C,F)}; g.A.get=function(F){if(this.contains(F))return this.C[F]}; g.A.set=function(F,J){this.C[F]=J}; g.A.b7=function(){return Object.keys(this.C)}; g.A.remove=function(F){delete this.C[F]};n0.prototype.getModuleId=function(F){return F.serviceId.getModuleId()}; n0.prototype.get=function(F){a:{var J=this.mappings.get(F.toString());switch(J.type){case "mapping":F=J.value;break a;case "factory":J=J.value();this.mappings.set(F.toString(),{type:"mapping",value:J});F=J;break a;default:F=wU(J)}}return F}; n0.prototype.registerService=function(F,J){this.mappings.set(F.toString(),{type:"mapping",value:J});return F}; new n0;var BI={},WE4=(BI.WEB_UNPLUGGED="^unplugged/",BI.WEB_UNPLUGGED_ONBOARDING="^unplugged/",BI.WEB_UNPLUGGED_OPS="^unplugged/",BI.WEB_UNPLUGGED_PUBLIC="^unplugged/",BI.WEB_CREATOR="^creator/",BI.WEB_KIDS="^kids/",BI.WEB_EXPERIMENTS="^experiments/",BI.WEB_MUSIC="^music/",BI.WEB_REMIX="^music/",BI.WEB_MUSIC_EMBEDDED_PLAYER="^music/",BI.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",BI);HL.prototype.D=function(F,J,b){J=J===void 0?{}:J;b=b===void 0?aK:b;var I={context:g.UV(F.clickTrackingParams,!1,this.Z)};var u=this.U(F);if(u){this.C(I,u,J);var w;J=g.ZI(this.T());(u=(w=g.O(F.commandMetadata,g.Nm))==null?void 0:w.apiUrl)&&(J=u);w=zbY(XF(J));F=Object.assign({},{command:F},void 0);I={input:w,w_:Qt(w),K1:I,config:F};I.config.R3?I.config.R3.identity=b:I.config.R3={identity:b};return I}g.Td(new g.hC("Error: Failed to create Request from Command.",F))}; g.q4.Object.defineProperties(HL.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.z(L0,HL);g.z(FH,L0);FH.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",w_:Qt("/getDatasyncIdsEndpoint","GET"),K1:{}}}; FH.prototype.T=function(){return[]}; FH.prototype.U=function(){}; FH.prototype.C=function(){};var kw1={},bJz=(kw1.GET_DATASYNC_IDS=t5(FH),kw1);var Tr={},Ofz=(Tr["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Tr["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Tr["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Tr["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Tr["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Tr["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Tr["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Tr["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Tr["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Tr["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Tr["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Tr["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Tr["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Tr["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Tr["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Tr["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Tr["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Tr["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Tr["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Tr["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Tr["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Tr["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Tr["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Tr.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Tr["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Tr["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Tr["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Tr["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Tr["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Tr["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Tr["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Tr["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Tr["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Tr["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Tr["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Tr["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Tr["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Tr["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Tr["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Tr["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Tr.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Tr["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Tr["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Tr["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Tr["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Tr["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Tr["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Tr["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Tr["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Tr["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Tr["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Tr["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Tr["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Tr["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Tr["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Tr["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Tr["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Tr["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Tr["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Tr["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Tr["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Tr["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Tr["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Tr["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Tr["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Tr["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Tr["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Tr["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Tr["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Tr["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Tr["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Tr["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Tr["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Tr["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Tr["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Tr["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Tr["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Tr["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Tr["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Tr),rt={},BLa=(rt.auto_search="LATENCY_ACTION_AUTO_SEARCH",rt.ad_to_ad="LATENCY_ACTION_AD_TO_AD",rt.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",rt.app_startup="LATENCY_ACTION_APP_STARTUP",rt.browse="LATENCY_ACTION_BROWSE",rt.cast_splash="LATENCY_ACTION_CAST_SPLASH",rt.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",rt.channels="LATENCY_ACTION_CHANNELS",rt.chips="LATENCY_ACTION_CHIPS",rt.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",rt.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", rt.editor="LATENCY_ACTION_EDITOR",rt.embed="LATENCY_ACTION_EMBED",rt.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",rt.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",rt.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",rt.explore="LATENCY_ACTION_EXPLORE",rt.favorites="LATENCY_ACTION_FAVORITES",rt.home="LATENCY_ACTION_HOME",rt.inboarding="LATENCY_ACTION_INBOARDING",rt.library="LATENCY_ACTION_LIBRARY",rt.live="LATENCY_ACTION_LIVE",rt.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",rt.management="LATENCY_ACTION_MANAGEMENT",rt.mini_app="LATENCY_ACTION_MINI_APP_PLAY",rt.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",rt.onboarding="LATENCY_ACTION_ONBOARDING",rt.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",rt.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",rt.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",rt.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",rt.prebuffer="LATENCY_ACTION_PREBUFFER", rt.prefetch="LATENCY_ACTION_PREFETCH",rt.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",rt.profile_switcher="LATENCY_ACTION_LOGIN",rt.projects="LATENCY_ACTION_PROJECTS",rt.reel_watch="LATENCY_ACTION_REEL_WATCH",rt.results="LATENCY_ACTION_RESULTS",rt.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",rt.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",rt.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",rt.review="LATENCY_ACTION_REVIEW",rt.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", rt.search_ui="LATENCY_ACTION_SEARCH_UI",rt.search_suggest="LATENCY_ACTION_SUGGEST",rt.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",rt.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",rt.seek="LATENCY_ACTION_PLAYER_SEEK",rt.settings="LATENCY_ACTION_SETTINGS",rt.store="LATENCY_ACTION_STORE",rt.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",rt.tenx="LATENCY_ACTION_TENX",rt.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",rt.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",rt.watch="LATENCY_ACTION_WATCH", rt.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",rt["watch,watch7"]="LATENCY_ACTION_WATCH",rt["watch,watch7_html5"]="LATENCY_ACTION_WATCH",rt["watch,watch7ad"]="LATENCY_ACTION_WATCH",rt["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",rt.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",rt.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",rt.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",rt.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",rt.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", rt.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",rt.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",rt.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",rt);Object.assign(BLa,Ofz);g.z(fp,e6);var oPz=new KA("aft-recorded",fp);var oK8=g.Qz.ytLoggingGelSequenceIdObj_||{};g.RG("ytLoggingGelSequenceIdObj_",oK8);var Ez=g.Qz.ytLoggingLatencyUsageStats_||{};g.RG("ytLoggingLatencyUsageStats_",Ez);Wf.prototype.tick=function(F,J,b,I){jl(this,"tick_"+F+"_"+J)||g.AY("latencyActionTicked",{tickName:F,clientActionNonce:J},{timestamp:b,cttAuthInfo:I})}; Wf.prototype.info=function(F,J,b){var I=Object.keys(F).join("");jl(this,"info_"+I+"_"+J)||(F=Object.assign({},F),F.clientActionNonce=J,g.AY("latencyActionInfo",F,{cttAuthInfo:b}))}; Wf.prototype.jspbInfo=function(F,J,b){for(var I="",u=0;u<B3(F).length;u++)B3(F)[u]!==void 0&&(I=u===0?I.concat(""+u):I.concat("_"+u));if(!jl(this,"info_"+I+"_"+J)){yH(F,2,J);b={cttAuthInfo:b};J=g.Nk("jspb_sparse_encoded_pivot")?new Dk([{}]):new Dk;F!=null?EF(F,$D):F=void 0;FW(J,7,kVb,F);b=b===void 0?{}:b;F=!1;g.cT("ytLoggingEventsDefaultDisabled",!1)&&(F=!0);F=F?null:g.tB;b=b===void 0?{}:b;I=Math.round(b.timestamp||(0,g.jR)());mC(J,1,I<Number.MAX_SAFE_INTEGER?I:0);I=new Rp;b.lact?mC(I,1,isFinite(b.lact)? b.lact:-1):b.timestamp?mC(I,1,-1):(u=dP(),mC(I,1,isFinite(u)?u:-1));if(b.sequenceGroup&&!g.Nk("web_gel_sequence_info_killswitch")){u=b.sequenceGroup;var w=lvm(u),M=new Q9;mC(M,2,w);yH(M,1,u);Ax(I,Q9,3,M);b.endOfSequence&&delete oK8[b.sequenceGroup]}Ax(J,Rp,33,I);(b.sendIsolatedPayload?ZlJ:HlG)("latencyActionInfo",{endpoint:"log_event",payload:J,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},F)}}; Wf.prototype.span=function(F,J,b){var I=Object.keys(F).join("");jl(this,"span_"+I+"_"+J)||(F.clientActionNonce=J,g.AY("latencyActionSpan",F,{cttAuthInfo:b}))};var Sb=window,Gp=Sb.performance||Sb.mozPerformance||Sb.msPerformance||Sb.webkitPerformance||new TLm;var OAz=!1,sKJ=!1,$k={'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"},cB4=(0,g.tJ)(Gp.clearResourceTimings||Gp.webkitClearResourceTimings||Gp.mozClearResourceTimings||Gp.msClearResourceTimings||Gp.oClearResourceTimings||g.ac,Gp);var hmR=window;hmR.ytcsi&&(hmR.ytcsi.infoGel=g.Qk,hmR.ytcsi.tick=XH);var qw3="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),an4=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var pBk=new Ew("INNERTUBE_TRANSPORT_TOKEN");g.z(Uz,L0);Uz.prototype.T=function(){return Gwm}; Uz.prototype.U=function(F){return g.O(F,vKV)||void 0}; Uz.prototype.C=function(F,J,b){b=b===void 0?{}:b;J.channelIds&&(F.channelIds=J.channelIds);J.siloName&&(F.siloName=J.siloName);J.params&&(F.params=J.params);b.botguardResponse&&(F.botguardResponse=b.botguardResponse);b.feature&&(F.clientFeature=b.feature)}; g.q4.Object.defineProperties(Uz.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.z(xk,L0);xk.prototype.T=function(){return VJ8}; xk.prototype.U=function(F){return g.O(F,qXR)||void 0}; xk.prototype.C=function(F,J){J.channelIds&&(F.channelIds=J.channelIds);J.siloName&&(F.siloName=J.siloName);J.params&&(F.params=J.params)}; g.q4.Object.defineProperties(xk.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cL8=new Ew("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.z(np,L0);np.prototype.T=function(){return feV}; np.prototype.U=function(F){return g.O(F,tmt)||g.O(F,Zz8)||g.O(F,nLe)}; np.prototype.C=function(F,J){J.serializedShareEntity&&(F.serializedSharedEntity=J.serializedShareEntity);if(J.clientParamIdentifier){var b;if((b=this.W)==null?0:b.C(J.clientParamIdentifier))F.clientParams=this.W.U(J.clientParamIdentifier)}}; np[Vv]=[cL8];g.z(to,L0);to.prototype.T=function(){return dLe}; to.prototype.U=function(F){return g.O(F,Qb1)||void 0}; to.prototype.C=function(F,J,b){F.feedbackTokens=[];J.feedbackToken&&F.feedbackTokens.push(J.feedbackToken);if(J=J.cpn||b.cpn)F.feedbackContext={cpn:J};F.isFeedbackTokenUnencrypted=!!b.is_feedback_token_unencrypted;F.shouldMerge=!1;b.extra_feedback_tokens&&(F.shouldMerge=!0,F.feedbackTokens=F.feedbackTokens.concat(b.extra_feedback_tokens))}; g.q4.Object.defineProperties(to.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.z(Zj,L0);Zj.prototype.T=function(){return EKb}; Zj.prototype.U=function(F){return g.O(F,ALb)||void 0}; Zj.prototype.C=function(F,J){J.params&&(F.params=J.params);J.secondaryParams&&(F.secondaryParams=J.secondaryParams)};g.z(Hf,L0);Hf.prototype.T=function(){return jyV}; Hf.prototype.U=function(F){return g.O(F,wWU)||void 0}; Hf.prototype.C=function(F,J){J.actions&&(F.actions=J.actions);J.params&&(F.params=J.params);J.playlistId&&(F.playlistId=J.playlistId)};g.z(Lp,L0);Lp.prototype.T=function(){return WFR}; Lp.prototype.U=function(F){return g.O(F,Hze)}; Lp.prototype.C=function(F,J,b){b=b===void 0?{}:b;J.serializedShareEntity&&(F.serializedSharedEntity=J.serializedShareEntity);b.includeListId&&(F.includeListId=!0)};var ULL=new Ew("FETCH_FN_TOKEN"),xLz=new Ew("PARSE_FN_TOKEN");g.z(g.FS,g.hC);var nK8=new Ew("NETWORK_SLI_TOKEN");J3.prototype.fetch=function(F,J,b){var I=this,u,w,M;return g.S(function(q){u=ew3(I,F,J);M=(w=I.U)!=null?w:fetch;return q.return(M(u).then(function(v){return I.handleResponse(v,b)}).catch(function(v){g.rQ(v); if((b==null?0:b.m5)&&v instanceof g.FS&&v.errorType===1)return Promise.reject(v)}))})}; J3.prototype.handleResponse=function(F,J){var b,I=(b=this.T)!=null?b:JSON.parse;b=F.text().then(function(u){if((J==null?0:J.jIG)&&F.ok)return YXv(J.jIG,u);u=u.replace(")]}'","");if((J==null?0:J.m5)&&u)try{var w=I(u)}catch(q){throw new g.FS(1,"JSON parsing failed after fetch");}var M;return(M=w)!=null?M:I(u)}); F.redirected||F.ok?this.C&&this.C.success():(this.C&&this.C.p0j(),b=b.then(function(u){g.rQ(new g.hC("Error: API fetch failed",F.status,F.url,u));return Object.assign({},u,{errorMetadata:{status:F.status}})})); return b}; J3[Vv]=[new jZ(nK8),new jZ(ULL),new jZ(xLz)];var KA4=new Ew("NETWORK_MANAGER_TOKEN");var bH;wE.prototype.bindInnertubeChallengeFetcher=function(F){this.C.bicf(F)}; wE.prototype.registerChallengeFetchedCallback=function(F){this.C.bcr(F)}; wE.prototype.getLatestChallengeResponse=function(){return this.C.blc()};var yAa=[],MJ=!1;et.prototype.Z=function(){var F=this;return g.S(function(J){return J.C==1?g.T(J,Promise.race([F.C,null]),2):J.return(!!J.U)})}; et.prototype.T=function(F,J,b){var I=this,u,w,M;return g.S(function(q){I.C===null&&zwv(I,aW(I));u=!1;w={};M=function(){var v,a,e;return g.S(function(K){switch(K.C){case 1:return g.T(K,I.C,2);case 2:v=K.U;w.challenge=v.challenge;if(!v.w0){"c1a"in v.iB&&(w.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");K.gD(3);break}a=Object.assign({},{c:v.challenge,e:F},J);g.lk(K,4);u=!0;if(g.Nk("attbs")&&!g.Nk("attmusi")){e=v.w0.BA({Gi:a});K.gD(6);break}return g.T(K,v.w0.snapshot({Gi:a}),7);case 7:e=K.U;case 6:e?w.webResponse= e:w.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Wa(K,3);break;case 4:g.dY(K),w.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(F==="ENGAGEMENT_TYPE_PLAYBACK"){var p=v.iB,m={};p.c6a&&(m.reportingStatus=String(Number(p.c)^A3()));p.c6b&&(m.broadSpectrumDetectionResult=String(Number(p.c)^Number(g.cT("CATSTAT",0))));w.adblockReporting=m}return K.return(w)}})}; return q.return(Promise.race([M(),WA_(b,function(){var v=Object.assign({},w);u&&(v.error="ATTESTATION_ERROR_VM_TIMEOUT");return v})]))})};var juo=["APP_STATE","PI"];var IYJ=[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,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,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,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,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];pQ.prototype.getState=function(){return this.store.getState()}; pQ.prototype.dispatch=function(F){return this.store.dispatch(F)}; pQ.prototype.subscribe=function(F){return this.store.subscribe(F)}; pQ.prototype.replaceReducer=function(F){return this.store.replaceReducer(F)}; pQ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.A=m_.prototype;g.A.getLength=function(){return this.totalLength}; g.A.append=function(F){if(P03(this,F)){var J=this.g6[this.g6.length-1];this.g6[this.g6.length-1]=new Uint8Array(J.buffer,J.byteOffset,J.length+F.length);zc(this)}else this.g6.push(F);this.totalLength+=F.length}; g.A.split=function(F){for(var J=new m_,b=new m_,I=g.N(this.g6),u=I.next();!u.done;u=I.next())u=u.value,F>=u.length?(J.append(u),F-=u.length):F?(J.append(new Uint8Array(u.buffer,u.byteOffset,F)),b.append(new Uint8Array(u.buffer,u.byteOffset+F,u.length-F)),F=0):b.append(u);return{lf:J,eS:b}}; g.A.isFocused=function(F){return F>=this.O2&&F<this.O2+this.g6[this.VM].length}; g.A.focus=function(F){if(!this.isFocused(F)){for(F<this.O2&&zc(this);this.O2+this.g6[this.VM].length<=F&&this.VM<this.g6.length;)this.O2+=this.g6[this.VM].length,this.VM+=1;this.R0=void 0}}; g.A.UL=function(F,J){return F+J<=this.totalLength}; g.A.AF=function(F,J){F=F===void 0?0:F;J=J===void 0?-1:J;if(!this.totalLength||!J)return new DataView(new ArrayBuffer(0));J<0&&(J=this.totalLength-F);this.focus(F);if(!NJ(this,F,J)){var b=this.VM,I=this.O2;this.focus(F+J-1);I=new Uint8Array(this.O2+this.g6[this.VM].length-I);for(var u=0,w=b;w<=this.VM;w++)I.set(this.g6[w],u),u+=this.g6[w].length;this.g6.splice(b,this.VM-b+1,I);zc(this);this.focus(F)}b=this.g6[this.VM];return new DataView(b.buffer,b.byteOffset+F-this.O2,J)}; g.A.HS=function(F,J){F=this.AF(F===void 0?0:F,J===void 0?-1:J);return new Uint8Array(F.buffer,F.byteOffset,F.byteLength)}; g.A.getUint8=function(F){this.focus(F);return this.g6[this.VM][F-this.O2]};var dE,fQ,jt;g.gg=function(){function F(I){for(var u=new Uint8Array(I.length),w=0;w<I.length;w++)u[w]=I[w];return u} function J(I){return new Uint8Array(I)} var b=new Uint8Array([1]);return b.length===1&&b[0]===1?J:F}(); dE=Array(1024);fQ=window.TextDecoder?new TextDecoder:void 0;jt=window.TextEncoder?new TextEncoder:void 0;for(var XBm={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},C0k={},tJR=g.N(Object.entries(XBm)),Zf1=tJR.next();!Zf1.done;Zf1=tJR.next()){var HfW=g.N(Zf1.value),LF8=HfW.next().value,FLm=HfW.next().value,J_L=LF8,bIm=FLm;bIm&&(C0k[bIm]=J_L)};var DqG=!1,a1,ek,Kg,pg,g0;g.z(mT,g.R); mT.prototype.encrypt=function(F){var J=F.length;F=new Uint8Array(F.buffer.slice(F.byteOffset,F.byteOffset+J));for(var b=this.U,I=0;I<J&&this.C<16;)F[I++]^=b[this.C++];for(var u=J-(J-I)%16;I<u;)kfm(this),F[I++]^=b[0],F[I++]^=b[1],F[I++]^=b[2],F[I++]^=b[3],F[I++]^=b[4],F[I++]^=b[5],F[I++]^=b[6],F[I++]^=b[7],F[I++]^=b[8],F[I++]^=b[9],F[I++]^=b[10],F[I++]^=b[11],F[I++]^=b[12],F[I++]^=b[13],F[I++]^=b[14],F[I++]^=b[15];if(I<J)for(kfm(this),this.C=0;I<J;)F[I++]^=b[this.C++];return F};var ix=!1;(function(){function F(I){for(var u=new Uint8Array(I.length),w=0;w<I.length;w++)u[w]=I[w];return u} function J(I){return new Uint8Array(I)} var b=new Uint8Array([1]);return b.length===1&&b[0]===1?J:F})(); var zI;g.lx.prototype.encrypt=function(F,J){var b=this,I,u;return g.S(function(w){if(w.C==1){I=Ns();if(!I)return w.return(b.C(F,J));g.lk(w,3);return g.T(w,b.U(F,J,I),5)}if(w.C!=3)return w.return(w.U);u=g.dY(w);g.rQ(u);ix=!0;return w.return(b.C(F,J))})}; g.lx.prototype.U=function(F,J,b){var I=this,u,w;return g.S(function(M){switch(M.C){case 1:if(I.D){M.gD(2);break}return g.T(M,b.importKey("raw",I.Z,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:I.D=M.U;case 2:return u={name:"AES-CTR",counter:J,length:128},g.T(M,b.encrypt(u,I.D,F),4);case 4:return w=M.U,M.return(new Uint8Array(w))}})}; g.lx.prototype.C=function(F,J){this.T||(this.T=new mT(this.Z));yo(this.T,J);return this.T.encrypt(F)}; g.lx.prototype.decrypt=function(F,J){return this.encrypt(F,J)}; g.fg.prototype.encrypt=function(F,J){this.C||(this.C=new mT(this.U));yo(this.C,J);return this.C.encrypt(F)}; g.fg.prototype.decrypt=function(F,J){return this.encrypt(F,J)};WP.prototype.reset=function(){oBY(this);this.update(this.T)}; WP.prototype.update=function(F){var J=0,b=F.length;this.Z+=b;this.U&&this.U+b>=64&&(this.W.set(F.subarray(0,64-this.U),this.U),J=64-this.U,this.U=0,OJC(this,this.W,0));for(;J+64<=b;J+=64)OJC(this,F,J);J<b&&(F=F.subarray(J),this.W.set(F,this.U),this.U+=F.length)}; var d0=[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 IzV;IzV={};g.ueb=g.H$("yt-idb-pref-storage",{ET:(IzV.prefs={Sp:1},IzV),shared:!1,upgrade:function(F,J){J(1)&&g.sl(g.Vb(F,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")}, version:1});var YE;YE={};g.w38=(YE.INVALID_ENCODER_VERSION="Invalid encoder version",YE.KEY_CREATION_FAILED="Failed to create encoder key",YE.UNKNOWN_DECODE_ERROR="Failed to decode PES data",YE.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",YE.WRONG_DATA_TYPE="Encoder cannot process the data type",YE);g.Ms("","downloadsPageViewConfigurationEntity");g.Ms("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.$E=g.Ms("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.Ms("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.Ms("SMART_DOWNLOADS_ENABLED","settingEntity");g.Ms("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var qTo=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.A=jk.prototype;g.A.initialize=function(F,J,b,I){this.ME=I;if(F.program){var u;I=(u=F.interpreterUrl)!=null?u:null;if(F.interpreterSafeScript)u=S0m(F.interpreterSafeScript);else{var w;u=(w=F.interpreterScript)!=null?w:null}F.interpreterSafeUrl&&(I=fX(F.interpreterSafeUrl).toString());Akv(this,u,I,F.program,J,b)}else g.rQ(Error("Cannot initialize botguard without program"))}; g.A.isInitialized=function(){return this.lW()}; g.A.getState=function(){return this.state}; g.A.isLoading=function(){return this.state===2}; g.A.invoke=function(F){F=F===void 0?{}:F;return this.lW()?this.hH({Gi:F}):null}; g.A.dispose=function(){this.qF(null);this.aC(8)}; g.A.lW=function(){return!!this.w0}; g.A.hH=function(F){return this.w0.BA(F)}; g.A.qF=function(F){g.q8(this.w0);this.w0=F}; g.A.aC=function(F){this.state=F};g.z(Vo,jk);Vo.prototype.qF=function(F){var J;(J=GI())==null||J.bgvma();F?(J={bgvma:F.dispose.bind(F),bgvmb:F.snapshot.bind(F),bgvmc:F.BA.bind(F)},g.RG("yt.abuse.playerAttLoader",J),g.RG("yt.abuse.playerAttLoaderRun",function(b){return F.snapshot(b)})):(g.RG("yt.abuse.playerAttLoader",null),g.RG("yt.abuse.playerAttLoaderRun",null))}; Vo.prototype.lW=function(){return!!GI()}; Vo.prototype.hH=function(F){return GI().bgvmc(F)};PP.prototype.LN=function(){return"crossDeviceProgressCommand"}; PP.prototype.Th=function(F){if(F.crossDevicePings){var J=[];F=g.N(F.crossDevicePings);for(var b=F.next();!b.done;b=F.next())J.push({baseUrl:b.value.baseUrl});g.AY("crossDeviceNotificationTransfer",{crossDevicePings:J})}};BP.prototype.LN=function(){return"muteAdEndpoint"}; BP.prototype.Th=function(F,J){switch(F.type){case "SKIP":vWa(this.pD,this.Rk,J)}};TI.prototype.LN=function(){return"openPopupAction"}; TI.prototype.Th=function(){};r0.prototype.LN=function(){return"pingingEndpoint"}; r0.prototype.Th=function(){};var ykY={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.z(ei3,g.R);var nwY={uFQ:"FINAL",k7D:"AD_BREAK_LENGTH",g4G:"AD_CPN",WPI:"AH",AhG:"AD_MT",O8_:"ASR",DJQ:"AW",MmI:"NM",E_E:"NX",dLz:"NY",VmW:"CONN",FSQ:"CPN",rDN:"DV_VIEWABILITY",PF_:"ERRORCODE",WtD:"ERROR_MSG",O4I:"EI",Ft_:"GOOGLE_VIEWABILITY",NZz:"IAS_VIEWABILITY",KIv:"LACT",FIv:"LIVE_TARGETING_CONTEXT",aYR:"I_X",bDI:"I_Y",NX_:"MT",rdD:"MIDROLL_POS",CBG:"MIDROLL_POS_MS",wFN:"MOAT_INIT",UQf:"MOAT_VIEWABILITY",tSQ:"P_H",xQQ:"PV_H",FWN:"PV_W",BTW:"P_W",oKf:"TRIGGER_TYPE",Rh_:"SDKV",Hjz:"SLOT_POS",vZ_:"SURVEY_LOCAL_TIME_EPOCH_S", BeG:"SURVEY_ELAPSED_MS",Zp:"VIS",WqR:"VIEWABILITY",OLW:"VED",qvI:"VOL",iLR:"WT",UpN:"YT_ERROR_CODE"};YG.prototype.LN=function(){return"urlEndpoint"}; YG.prototype.Th=function(F,J,b){var I=this.EQ.get(),u=dw(I.U.get(),J);u?J=Vp(I,kHY(u),u,void 0,void 0,b):(q_("Trying to ping from an unknown layout",void 0,void 0,{layoutId:J}),J={});J=Object.assign({},J);Un(this.C,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(b=gM(this.RP,2))&&(J.AD_CPN=b.clientPlaybackNonce);J=g.TM(F.url,J);g.RJ(J,void 0,void 0,void 0,F.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};$G.prototype.get=function(){return this.value}; g.z(Cg,$G);Cg.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.z(XU,$G);XU.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}; g.z(Qo,$G);Qo.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.z(R1,$G);R1.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"}; g.z(D5,$G);D5.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.z(kG,$G);kG.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.z(OH,$G);OH.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.z(o1,$G);o1.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.z(h$,$G);h$.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"}; g.z(cP,$G);cP.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.z(UH,$G);UH.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.z(xG,$G);xG.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.z(ng,$G);ng.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.z(t$,$G);t$.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.z(Z5,$G);Z5.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"}; g.z(HP,$G);HP.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"}; g.z(Lg,$G);Lg.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"}; g.z(FA,$G);FA.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.z(Jp,$G);Jp.prototype.getType=function(){return"metadata_type_content_cpn"}; g.z(bQ,$G);bQ.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.z(Id,$G);Id.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"}; g.z(uQ,$G);uQ.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.z(wT,$G);wT.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"}; g.z(MR,$G);MR.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"}; g.z(Ap,$G);Ap.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.z(qR,$G);qR.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.z(vM,$G);vM.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.z(ad,$G);ad.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.z(eK,$G);eK.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.z(KK,$G);KK.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.z(pK,$G);pK.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.z(gT,$G);gT.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.z(ms,$G);ms.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.z(yD,$G);yD.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.z(iQ,$G);iQ.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.z(zu,$G);zu.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.z(NR,$G);NR.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.z(lQ,$G);lQ.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.z(fK,$G);fK.prototype.getType=function(){return"metadata_type_cue_point"}; g.z(WM,$G);WM.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.z(dT,$G);dT.prototype.getType=function(){return"metadata_type_player_vars"}; g.z(Et,$G);Et.prototype.getType=function(){return"metadata_type_preload_player_vars"}; g.z(jK,$G);jK.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.z(Gu,$G);Gu.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.z(VD,$G);VD.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.z(PM,$G);PM.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.z(BM,$G);BM.prototype.getType=function(){return"metadata_type_dai"}; g.z(Tu,$G);Tu.prototype.getType=function(){return"metadata_type_ad_intro"}; g.z(rT,$G);rT.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.z(SK,$G);SK.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.z(YY,$G);YY.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.z($Y,$G);$Y.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.z(CK,$G);CK.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.z(XA,$G);XA.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.z(QD,$G);QD.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.z(Rd,$G);Rd.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.z(Dt,$G);Dt.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.z(kY,$G);kY.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"}; g.z(Ot,$G);Ot.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.z(od,$G);od.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.z(hp,$G);hp.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.z(cM,$G);cM.prototype.getType=function(){return"metadata_type_active_view_traffic_type"}; g.z(Ut,$G);Ut.prototype.getType=function(){return"metadata_type_active_view_identifier"}; g.z(xY,$G);xY.prototype.getType=function(){return"metadata_type_ssdai_ads_config"}; g.z(nK,$G);nK.prototype.getType=function(){return"metadata_type_eligible_for_ssap"}; g.z(tp,$G);tp.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}; g.z(Zt,$G);Zt.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"}; g.z(HM,$G);HM.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var BQm=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 QOk=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.z(bL,iW);g.z(Z,iW);new Promise(function(){});var l4z=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"]]),ziG=new Map([["normal",{KQ:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",LQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{KQ:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",LQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{KQ:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",LQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{KQ:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",LQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{KQ:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",LQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{KQ:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",LQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{KQ:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",LQ:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.z(pT,g.R);g.A=pT.prototype;g.A.GR=function(F,J){return this.C.GR(F,J)}; g.A.Y7=function(F,J){this.S3.Q4("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",F,J);for(var b=g.N(this.U),I=b.next();!I.done;I=b.next())I.value.Y7(F,J)}; g.A.d0=function(F){if(z0(this.C,F)){this.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",F);this.C.d0(F);for(var J=g.N(this.U),b=J.next();!b.done;b=J.next())b.value.d0(F);EWa(this,F)}}; g.A.lx=function(F){if(z0(this.C,F)){this.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",F);this.C.lx(F);for(var J=g.N(this.U),b=J.next();!b.done;b=J.next())b.value.lx(F);z0(this.C,F)&&Ne(this.C,F).D&&yS(this,F,!1)}}; g.A.eA=function(F){this.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",F);z0(this.C,F)&&(this.C.eA(F),yS(this,F,!1))}; g.A.bT=function(F,J){if(z0(this.C,F)){this.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",F,J);for(var b=g.N(this.U),I=b.next();!I.done;I=b.next())I.value.bT(F,J)}}; g.A.A_=function(F,J,b){if(z0(this.C,F)){this.S3.Ah(NQJ(b),F,J);this.C.A_(F,J);for(var I=g.N(this.U),u=I.next();!u.done;u=I.next())u.value.A_(F,J,b);(b=SB(this.C,F))&&J.layoutId===b.layoutId&&$Yz(this,F,!1)}}; g.A.XW=function(F,J,b,I){b.Ek&&I?(q_(b,F,J,void 0,b.Pm),this.S3.kK(I,b.Ek,F,J)):q_("adsClientErrorMessage is missing.",F,J);yS(this,F,!0)}; g.A.X_=function(){var F=X8C(this.C);F=g.N(F);for(var J=F.next();!J.done;J=F.next())yS(this,J.value,!1);g.R.prototype.X_.call(this)}; g.A.fd=function(F,J){this.S3.Ah("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",F,J);this.S3.Ah("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",F,J);for(var b=g.N(this.U),I=b.next();!I.done;I=b.next())I=I.value,J&&I.fd(F,J)};C$m.prototype.isActive=function(){switch(this.C){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.z($X,g.R);g.A=$X.prototype;g.A.GR=function(F,J){J=rX(this,F+"_"+J);F=[];J=g.N(J.values());for(var b=J.next();!b.done;b=J.next())F.push(b.value.slot);return F}; g.A.mu=function(F){F=Ne(this,F);F.C!=="not_scheduled"&&sn(F.slot,F.C,"onSlotScheduled");F.C="scheduled"}; g.A.Ge=function(F){F=Ne(this,F);F.Z="fill_requested";F.V.Ge()}; g.A.d0=function(F){F=Ne(this,F);F.C!=="enter_requested"&&sn(F.slot,F.C,"onSlotEntered");F.C="entered"}; g.A.eA=function(F){Ne(this,F).Z="fill_canceled"}; g.A.lx=function(F){F=Ne(this,F);F.C!=="exit_requested"&&sn(F.slot,F.C,"onSlotExited");F.C="scheduled"}; g.A.A_=function(F,J){F=Ne(this,F);F.layout!=null&&F.layout.layoutId===J.layoutId&&(F.C!=="rendering_stop_requested"&&sn(F.slot,F.C,"onLayoutExited"),F.C="entered")};g.z(QS,g.R);QS.prototype.get=function(){Math.random()<.001&&this.iR()&&q_("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.C());return this.instance};g.z(DY,g.R);DY.prototype.T=function(){return this.U};kX.prototype.executeCommand=function(F,J){sH(this.C(),F,J)};hj.prototype.addListener=function(F){this.listeners.add(F)}; hj.prototype.removeListener=function(F){this.listeners.delete(F)};var C4={},Js=(C4.AD_MARKER="ytp-ad-progress",C4.CHAPTER_MARKER="ytp-chapter-marker",C4.TIME_MARKER="ytp-time-marker",C4);var k2m=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/)"),xY_=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]+)?/)"), OmC=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Jrm=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)|$))"), Liz=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)|$))"),tQJ=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/)"), ofo=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),ZOa=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)"),nWC=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/.*$)"), cVY=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)"), hRz=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)"), M2R=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.b6.prototype.getId=function(){return this.id}; g.b6.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+wiC(this.start)+", "+wiC(this.end)+"]"}; g.b6.prototype.contains=function(F,J){return F>=this.start&&(F<this.end||F===this.end&&this.start===this.end)&&(J==null||F<J&&J<=this.end)}; var uX_=1;g.b6.prototype.getId=g.b6.prototype.getId;MC.prototype.Ge=function(){var F=this,J=0;ckz(this.C,function(){var b=uL(F.slot.clientMetadata,"metadata_type_ad_break_request_data");J=Date.now();Lx(F.EQ.get(),"abrs","ct."+J+";cmt."+F.OQ.get().getCurrentTimeSec(1,!1)+";sid."+F.slot.slotId+";");return F.U.get().fetch({iW:b.getAdBreakUrl,rU:new g.b6(b.F1,b.xI),SN:uL(F.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:b.cueProcessedMs})},function(){Ar_(F)},function(b){var I=Date.now()-J; Lx(F.EQ.get(),"abrr","ct."+(new Date).getTime()+";cmt."+F.OQ.get().getCurrentTimeSec(1,!1)+";l."+I.toString()+";sid."+F.slot.slotId+";");I=b.GX;I.length>=2&&b.ssdaiAdsConfig&&q_("Unexpected ad placement renderers length",F.slot,null,{length:I.length});I.some(function(u){var w,M,q,v;return!!((w=u.renderer)==null?0:(M=w.linearAdSequenceRenderer)==null?0:(q=M.linearAds)==null?0:q.length)||!((v=u.renderer)==null||!v.instreamVideoAdRenderer)})||Ar_(F)})}; MC.prototype.fn=function(){UY7(this.C)};As.prototype.Ge=function(){var F=this;ckz(this.U,function(){var J=uL(F.slot.clientMetadata,"metadata_type_ad_break_request_data");return J.cueProcessedMs?F.C.get().fetch({iW:J.getAdBreakUrl,rU:new g.b6(J.F1,J.xI),cueProcessedMs:J.cueProcessedMs}):F.C.get().fetch({iW:J.getAdBreakUrl,rU:new g.b6(J.F1,J.xI)})})}; As.prototype.fn=function(){UY7(this.U)};qC.prototype.Ge=function(){var F=this.slot.clientMetadata,J,b=(J=this.slot.fulfilledLayout)!=null?J:uL(F,"metadata_type_fulfilled_layout");jOJ(this.callback,this.slot,b)}; qC.prototype.fn=function(){iL(this.callback,this.slot,new Z("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")};aV.prototype.build=function(F,J){return J.fulfilledLayout||v7(J,{WV:["metadata_type_fulfilled_layout"]})?new qC(F,J):this.T(F,J)};g.z(er,aV); er.prototype.T=function(F,J){if(v7(J,{WV:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new MC(F,J,this.C,this.U,this.P1,this.uR,this.EQ,this.OQ,this.RC);if(v7(J,{WV:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new As(F,J,this.C,this.U,this.P1,this.uR);throw new Z("Unsupported slot with type: "+J.slotType+" and client metadata: "+wX(J.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(Kd,aV);Kd.prototype.T=function(F,J){throw new Z("Unsupported slot with type: "+J.slotType+" and client metadata: "+wX(J.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.A=qj7.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(F){if(F.layoutId!==this.layout.layoutId)this.callback.XW(this.slot,F,new bL("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 J=uL(F.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.bT(this.slot,F),jWo(this.T, this.slot,J)):q_("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,F)}}; g.A.T$=function(F,J){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.A_(this.slot,F,J),aUv(this),eeG(this))};g.z(i6,g.uA);g.A=i6.prototype;g.A.Bb=function(){return this.U.slot}; g.A.xQ=function(){return this.U.layout}; g.A.init=function(){this.T.get().addListener(this)}; g.A.release=function(){this.T.get().removeListener(this);this.dispose()}; g.A.dA=function(){}; g.A.Mt=function(){}; g.A.fb=function(){}; g.A.qy=function(){}; g.A.startRendering=function(F){var J=this;yp(this.U,F,function(){return void J.Mm()})}; g.A.Mm=function(){this.T.get().Mm(this.C)}; g.A.T$=function(F,J){var b=this;yp(this.U,F,function(){var I=b.T.get();uOC(I,b.C,3);b.C=[];b.callback.A_(b.slot,F,J)})}; g.A.X_=function(){this.T.iR()||this.T.get().removeListener(this);g.uA.prototype.X_.call(this)}; g.q4.Object.defineProperties(i6.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});jr.prototype.RQ=function(F,J){J=J===void 0?!1:J;var b=(this.T.get(F)||[]).concat();if(J=J&&gSm(F)){var I=this.T.get(J);I&&b.push.apply(b,g.W(I))}P7(this,F,b);this.C.add(F);J&&this.C.add(J)}; jr.prototype.JJ=function(F,J){J=J===void 0?!1:J;if(!this.C.has(F)){var b=J&&gSm(F);b&&(J=!this.C.has(b));this.RQ(F,J)}};g.z(irz,I4);g.z(sh,i6);g.A=sh.prototype;g.A.Oo=function(F,J){fd("ads-engagement-panel-layout",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,Ik),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(J,b,I,u,w){return new irz(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(NVa,I4);g.z(Y5,i6);g.A=Y5.prototype;g.A.Oo=function(F,J){fd("banner-image",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,JI),this.callback,"metadata_type_banner_image_layout_view_model",function(J,b,I,u,w){return new NVa(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z($5,I4);g.z(Cd,i6);g.A=Cd.prototype;g.A.Oo=function(F,J){fd("action-companion",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,HS),this.callback,"metadata_type_action_companion_ad_renderer",function(J,b,I,u,w){return new $5(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(Wha,I4);g.z(XK,i6);g.A=XK.prototype;g.A.Oo=function(F,J){fd("image-companion",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,Li),this.callback,"metadata_type_image_companion_ad_renderer",function(J,b,I,u,w){return new Wha(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(ESz,I4);g.z(Qp,i6);g.A=Qp.prototype;g.A.Oo=function(F,J){fd("shopping-companion",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(J,b,I,u,w){return new ESz(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(DQ,i6);g.A=DQ.prototype;g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(J,b,I,u,w){return new $5(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)}; g.A.Oo=function(){};g.A=TV7.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){this.OQ.get().addListener(this);this.OQ.get().xN.push(this);var F=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:J,cP:F,listener:this})}; g.A.release=function(){this.OQ.get().removeListener(this);HNa(this.OQ.get(),this);W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId)}; g.A.startRendering=function(F){this.callback.bT(this.slot,F)}; g.A.T$=function(F,J){Wl3(this.uR.get())&&!this.C&&(this.yG.JJ("abandon"),this.C=!0);this.callback.A_(this.slot,F,J)}; g.A.nF=function(F){switch(F.id){case "part2viewed":this.yG.JJ("start");this.yG.JJ("impression");break;case "videoplaytime25":this.yG.JJ("first_quartile");break;case "videoplaytime50":this.yG.JJ("midpoint");break;case "videoplaytime75":this.yG.JJ("third_quartile");break;case "videoplaytime100":Wl3(this.uR.get())?this.C||(this.yG.JJ("complete"),this.C=!0):this.yG.JJ("complete");Sr(this.yG)&&Ts(this.yG,Infinity,!0);dA7(this.uR.get())&&RV(this.U,Infinity,!0);break;case "engagedview":Sr(this.yG)||this.yG.JJ("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:q_("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.A.onVolumeChange=function(){}; g.A.OJ=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.onFullscreenToggled=function(){}; g.A.jT=function(){}; g.A.mP=function(){}; g.A.XB=function(F){dA7(this.uR.get())&&RV(this.U,F*1E3,!1);Sr(this.yG)&&Ts(this.yG,F*1E3,!1)}; g.A.c9=function(){}; g.A.rM=function(){this.yG.JJ("active_view_measurable")}; g.A.CQ=function(){this.yG.JJ("active_view_viewable")}; g.A.I7=function(){this.yG.JJ("active_view_fully_viewable_audible_half_duration")}; g.A.NO=function(){this.yG.JJ("audio_measurable")}; g.A.LB=function(){this.yG.JJ("audio_audible")};g.z(k5,i6);g.A=k5.prototype;g.A.init=function(){i6.prototype.init.call(this);var F=uL(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.lT};this.C.push(new iD(F,this.layout.layoutId,uL(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,!0))}; g.A.bS=function(){this.Z||this.OQ.get().resumeVideo(1)}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);vn(this.OQ.get(),"ad-showing");this.callback.bT(this.slot,F);this.D.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);aL(this.OQ.get(),"ad-showing");Ug(this.D,this)}; g.A.Oo=function(F){switch(F){case "ad-info-icon-button":(this.Z=this.OQ.get().ZX(1))||this.OQ.get().pauseVideo();break;case "visit-advertiser":this.OQ.get().pauseVideo()}}; g.A.X_=function(){i6.prototype.X_.call(this)};g.z(Oh,I4);g.z(oV,i6);g.A=oV.prototype;g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,b,I,u,w){return new Oh(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)}; g.A.Oo=function(){};g.z(hs,I4);g.z(c7,i6);c7.prototype.init=function(){i6.prototype.init.call(this);this.C.push(new hs(g.O(this.layout.renderingContent,WF),this.layout.layoutId,{adsClientData:this.layout.lT}))}; c7.prototype.Oo=function(){WN(this.Z.get(),this.D)&&l6(this.EQ.get(),3)}; c7.prototype.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; c7.prototype.X_=function(){i6.prototype.X_.call(this)};g.z(Uh,I4);g.z(x5,i6);x5.prototype.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,A1)||uL(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),J=zs(this.yG);this.C.push(new Uh(F,J,this.layout.layoutId,{adsClientData:this.layout.lT},!0,!0))}; x5.prototype.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; x5.prototype.Oo=function(F,J){if(J===this.layout.layoutId)switch(F){case "skip-button":var b;(F=(b=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&F.uE(this.Bb(),this.layout)}}; x5.prototype.X_=function(){i6.prototype.X_.call(this)};ts.prototype.build=function(F,J,b,I){if(nd(I,{WV:["metadata_type_ad_break_response_data"],C7:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new qj7(F,b,I,this.U,this.T,this.C);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(s43,I4);g.z(ZQ,i6);g.A=ZQ.prototype;g.A.Oo=function(F,J){fd("ads-engagement-panel",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,Fj),this.callback,"metadata_type_ads_engagement_panel_renderer",function(J,b,I,u,w){return new s43(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(H7,i6);g.A=H7.prototype;g.A.Oo=function(F,J){fd("top-banner-image-text-icon-buttoned",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,bM),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,b,I,u,w){return new Oh(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};CA_.prototype.build=function(F,J,b,I){if(nd(I,Yja())||g.O(I.renderingContent,Fj)!==void 0)return new ZQ(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,fU_())||g.O(I.renderingContent,HS)!==void 0)return new Cd(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,dc3())||g.O(I.renderingContent,Li)!==void 0)return new XK(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,j4a()))return new Qp(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,BVz()))return new DQ(F,b,I,this.sI,this.EQ,this.rY, this.X4,this.C);if(nd(I,lUY())||g.O(I.renderingContent,JI)!==void 0)return new Y5(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,$ck())||g.O(I.renderingContent,bM)!==void 0)return new H7(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,rra()))return new oV(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,zek())||g.O(I.renderingContent,Ik)!==void 0)return new sh(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+ wX(I.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};XiJ.prototype.build=function(F,J,b,I){if(nd(I,{WV:["metadata_type_linked_player_bytes_layout_id"],C7:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new c7(F,b,I,this.sI,this.EQ,this.C);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.A=Q4Y.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(F){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.bT(this.slot,F),this.yG.JJ("impression"),OR(this.cD,F,"normal"))}; g.A.T$=function(F,J){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.A_(this.slot,F,J)};g.A=Dca.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(F){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.bT(this.slot,F),this.yG.JJ("impression"),OR(this.cD,F,"normal"))}; g.A.T$=function(F,J){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.A_(this.slot,F,J)};Ld.prototype.build=function(F,J,b,I){if(!this.uR.get().G.J().S("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(nd(I,Re7()))return new Q4Y(F,b,I,this.EQ,this.cD)}else if(nd(I,{WV:[],C7:["LAYOUT_TYPE_FORECASTING"]}))return new Dca(F,b,I,this.EQ,this.cD);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(oS7,I4);g.z(Fk,i6);g.A=Fk.prototype;g.A.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,MM)||uL(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J={adsClientData:this.layout.lT};this.C.push(new oS7(F,uL(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,J))}; g.A.bS=function(){this.Z||this.OQ.get().resumeVideo(2)}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F);this.D.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);Ug(this.D,this)}; g.A.Oo=function(F){if(WN(this.W.get(),this.V))switch(F){case "visit-advertiser-link":l6(this.EQ.get(),3)}switch(F){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Z||this.OQ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Z=this.OQ.get().ZX(2))||this.OQ.get().pauseVideo();break;case "visit-advertiser-link":this.OQ.get().pauseVideo();heG(this).m3();break;case "skip-button":if(F=heG(this), this.layout.renderingContent&&!LK(this.layout.clientMetadata,"metadata_type_dai")||!F.oz){var J;(F=(J=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&F.uE(this.Bb(),this.layout)}else q_("Requesting to skip by LegacyPlayerBytes when components enabled"),F.XO(this.Bb(),this.layout)}}; g.A.X_=function(){i6.prototype.X_.call(this)};g.z(J1,i6);g.A=J1.prototype;g.A.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,wk)||uL(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.lT},b;(b=!!this.layout.renderingContent)||(b=!bO(this).oz);this.C.push(new iD(F,this.layout.layoutId,uL(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,b))}; g.A.bS=function(){this.Z||this.OQ.get().resumeVideo(2)}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F);this.D.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);Ug(this.D,this)}; g.A.Oo=function(F){if(WN(this.W.get(),this.V))switch(F){case "visit-advertiser":l6(this.EQ.get(),3)}switch(F){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Z||this.OQ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Z=this.OQ.get().ZX(2))||this.OQ.get().pauseVideo();break;case "visit-advertiser":this.OQ.get().pauseVideo();bO(this).m3();break;case "skip-button":if(F=bO(this),this.layout.renderingContent&& !LK(this.layout.clientMetadata,"metadata_type_dai")||!F.oz){var J;(F=(J=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&F.uE(this.Bb(),this.layout)}else q_("Requesting to skip by LegacyPlayerBytes"),F.XO(this.Bb(),this.layout)}}; g.A.X_=function(){i6.prototype.X_.call(this)};g.z(UcJ,I4);g.z(IT,i6);g.A=IT.prototype;g.A.startRendering=function(F){var J=this;yp(this.U,F,function(){J.C.push(new UcJ(uL(J.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),F.layoutId,F.lT));J.Mm();J.callback.bT(J.slot,F);g.x(Fm(J.OQ.get(),1),512)&&J.callback.XW(J.Bb(),J.xQ(),new bL("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.A.mP=function(){}; g.A.jT=function(F){if(F.state.isError()){var J;this.callback.XW(this.Bb(),this.xQ(),new bL("A player error happened during adNotify",{playerErrorCode:(J=F.state.e6)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.A.onFullscreenToggled=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.onVolumeChange=function(){}; g.A.nF=function(){}; g.A.c9=function(){}; g.A.Oo=function(){};g.z(nSY,I4);g.z(uO,i6);uO.prototype.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,qM),J=zs(this.yG);this.C.push(new nSY(F,J,this.layout.layoutId,{adsClientData:this.layout.lT}))}; uO.prototype.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; uO.prototype.Oo=function(F,J){if(J===this.layout.layoutId)switch(F){case "skip-button":var b;(F=(b=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&F.uE(this.Bb(),this.layout)}}; uO.prototype.X_=function(){i6.prototype.X_.call(this)};t0o.prototype.build=function(F,J,b,I){if(F=v4(F,b,I,this.sI,this.OQ,this.EQ,this.U,this.C,this.uR))return F;throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.A=KF.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){this.OQ.get().addListener(this);this.OQ.get().xN.push(this);var F=this.layout.renderingContent?gM(this.QG.get(),1).Xk/1E3:uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),b=uL(this.layout.clientMetadata,"metadata_type_active_view_identifier");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:J,cP:F,listener:this,uv:b})}; g.A.release=function(){this.OQ.get().removeListener(this);HNa(this.OQ.get(),this);W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId)}; g.A.startRendering=function(F){this.callback.bT(this.slot,F)}; g.A.T$=function(F,J){pF(this,"abandon");this.callback.A_(this.slot,F,J)}; g.A.nF=function(F){switch(F.id){case "part2viewed":this.yG.JJ("start");this.yG.JJ("impression");break;case "videoplaytime25":this.yG.JJ("first_quartile");break;case "videoplaytime50":this.yG.JJ("midpoint");break;case "videoplaytime75":this.yG.JJ("third_quartile");break;case "videoplaytime100":pF(this,"complete");Sr(this.yG)&&Ts(this.yG,Infinity,!0);break;case "engagedview":Sr(this.yG)||this.yG.JJ("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:q_("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.A.onVolumeChange=function(){}; g.A.OJ=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.onFullscreenToggled=function(){}; g.A.jT=function(F){this.C||(g.e1(F,4)&&!g.e1(F,2)?B7(this.yG,"pause"):aJ(F,4)<0&&!(aJ(F,2)<0)&&B7(this.yG,"resume"))}; g.A.mP=function(){}; g.A.XB=function(F){Sr(this.yG)&&Ts(this.yG,F*1E3,!1)}; g.A.c9=function(){pF(this,"swipe")}; g.A.rM=function(){this.yG.JJ("active_view_measurable")}; g.A.CQ=function(){this.yG.JJ("active_view_viewable")}; g.A.I7=function(){this.yG.JJ("active_view_fully_viewable_audible_half_duration")}; g.A.NO=function(){this.yG.JJ("audio_measurable")}; g.A.LB=function(){this.yG.JJ("audio_audible")};Zro.prototype.build=function(F,J,b,I){if(b.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.O(I.renderingContent,Ex)!==void 0)return new KF(F,b,I,this.OQ,this.EQ,this.uR,this.X4,this.QG);J=["metadata_type_ad_placement_config"];for(var u=g.N(Gs()),w=u.next();!w.done;w=u.next())J.push(w.value);if(nd(I,{WV:J,C7:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return b.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new KF(F,b,I,this.OQ,this.EQ,this.uR,this.X4,this.QG):new TV7(F,b,I,this.OQ,this.EQ, this.D7,this.uR,this.X4);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var iO={contentCpn:"",Hn:new Map};A5k.prototype.Ck=function(F,J){var b={};J=Object.assign({},J,(b.cc=this.RP.Vd(),b));this.RP.G.UQ(F,J)};var A_5,X6; A_5={zc_:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Cq_:"AUTHENTICATION_MALFORMED",w9G:"AUTHENTICATION_MISSING",Tgz:"BAD_REQUEST",Pq_:"CAST_SESSION_DEVICE_MISMATCHED",RVG:"CAST_SESSION_VIDEO_MISMATCHED",kiQ:"CAST_TOKEN_EXPIRED",g__:"CAST_TOKEN_FAILED",WSI:"CAST_TOKEN_MALFORMED",ANI:"CGI_PARAMS_MALFORMED",OFI:"CGI_PARAMS_MISSING",j6R:"DEVICE_FALLBACK",R3j:"GENERIC_WITH_LINK_AND_CPN",kc_:"ERROR_HDCP",g0_:"LICENSE",ADI:"VIDEO_UNAVAILABLE",Mif:"FORMAT_UNAVAILABLE",S2j:"GEO_FAILURE", n0R:"HTML5_AUDIO_RENDERER_ERROR",a2Q:"GENERIC_WITHOUT_LINK",b4W:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",m_z:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",cDQ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",LtQ:"HTML5_SPS_UMP_STATUS_REJECTED",scG:"INVALID_DRM_MESSAGE",aWD:"PURCHASE_NOT_FOUND",bcG:"PURCHASE_REFUNDED",C7_:"RENTAL_EXPIRED",XuG:"RETRYABLE_ERROR",WJG:"SERVER_ERROR",daW:"SIGNATURE_EXPIRED",zhz:"STOPPED_BY_ANOTHER_PLAYBACK",KJR:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",tpj:"STREAMING_NOT_ALLOWED", xaz:"STREAM_LICENSE_NOT_FOUND",puG:"TOO_MANY_REQUESTS",YMR:"TOO_MANY_REQUESTS_WITH_LINK",jnD:"TOO_MANY_STREAMS_PER_ENTITLEMENT",nZ_:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",kfQ:"VIDEO_FORBIDDEN",gsG:"VIDEO_NOT_FOUND",X9E:"BROWSER_OR_EXTENSION_ERROR"};X6={}; g.nV=(X6.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.",X6.DEVICE_FALLBACK="Sorry, this video is not available on this device.",X6.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",X6.LICENSE="Sorry, there was an error licensing this video.",X6.VIDEO_UNAVAILABLE= "Video unavailable",X6.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",X6.GEO_FAILURE="This video isn't available in your country.",X6.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",X6.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",X6.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",X6.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", X6.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",X6.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",X6.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",X6.PURCHASE_NOT_FOUND="This video requires payment.",X6.PURCHASE_REFUNDED="This video's purchase has been refunded.",X6.RENTAL_EXPIRED="This video's rental has expired.",X6.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",X6.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",X6.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",X6.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",X6.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",X6.SERVER_ERROR="There was an internal server error. Please try again later.",X6.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",X6.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",X6.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",X6.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",X6.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",X6.TOO_MANY_REQUESTS="Please log in to watch this video.", X6.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",X6.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",X6.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",X6.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",X6.VIDEO_FORBIDDEN="Access to this video is forbidden.",X6.VIDEO_NOT_FOUND="This video can not be found.",X6.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",X6);var qF8;var vpU=g.Bk(),azb=vpU.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!azb||azb.length<2)qF8=void 0;else{var eW1=vpU.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);qF8=eW1&&eW1.length===6?Number(eW1[5].replace("_",".")):0}var FG=qF8,os=FG>=0;g.z(g.s5,j9);g.s5.prototype.B=function(F,J,b,I,u){return j9.prototype.B.call(this,F,J,b,I,u)};var Qq={},vG=(Qq.FAIRPLAY="fairplay",Qq.PLAYREADY="playready",Qq.WIDEVINE="widevine",Qq.CLEARKEY=null,Qq.FLASHACCESS=null,Qq.UNKNOWN=null,Qq.WIDEVINE_CLASSIC=null,Qq);Yz.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var RB={},mp=(RB.WIDTH={name:"width",video:!0,valid:640,rK:99999},RB.HEIGHT={name:"height",video:!0,valid:360,rK:99999},RB.FRAMERATE={name:"framerate",video:!0,valid:30,rK:9999},RB.BITRATE={name:"bitrate",video:!0,valid:3E5,rK:2E9},RB.EOTF={name:"eotf",video:!0,valid:"bt709",rK:"catavision"},RB.CHANNELS={name:"channels",video:!1,valid:2,rK:99},RB.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",rK:"invalidformat"},RB.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", rK:"nope"},RB.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",rK:"av99.0.05M.08"},RB.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",rK:"invalid"},RB);var KLk=["h","H"],p3t=["9","("],gp1=["9h","(h"],mub=["8","*"],y_5=["a","A"],iIz=["o","O"],zWH=["m","M"],NUm=["mac3","MAC3"],lzV=["meac3","MEAC3"],DN={},bxo=(DN.h=KLk,DN.H=KLk,DN["9"]=p3t,DN["("]=p3t,DN["9h"]=gp1,DN["(h"]=gp1,DN["8"]=mub,DN["*"]=mub,DN.a=y_5,DN.A=y_5,DN.o=iIz,DN.O=iIz,DN.m=zWH,DN.M=zWH,DN.mac3=NUm,DN.MAC3=NUm,DN.meac3=lzV,DN.MEAC3=lzV,DN),fzb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),xCk=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var H={},Df=(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 kE={},C1a=(kE.STEREO_LAYOUT_UNKNOWN=0,kE.STEREO_LAYOUT_LEFT_RIGHT=1,kE.STEREO_LAYOUT_TOP_BOTTOM=2,kE);var Ou,Jt;Ou={};g.CF=(Ou.auto=0,Ou.tiny=144,Ou.light=144,Ou.small=240,Ou.medium=360,Ou.large=480,Ou.hd720=720,Ou.hd1080=1080,Ou.hd1440=1440,Ou.hd2160=2160,Ou.hd2880=2880,Ou.highres=4320,Ou);Jt={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var QZ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Xk.prototype.isHdr=function(){return this.U==="smpte2084"||this.U==="arib-std-b67"};kz.prototype.Xb=function(){return this.containerType===2}; kz.prototype.isEncrypted=function(){return!!this.Ke}; kz.prototype.Cd=function(){return!!this.audio}; kz.prototype.v1=function(){return!!this.video}; var h1=!1;g.z(es,g.uA);g.A=es.prototype;g.A.appendBuffer=function(F,J,b){if(this.Us.q4()!==this.appendWindowStart+this.start||this.Us.Js()!==this.appendWindowEnd+this.start||this.Us.Xq()!==this.timestampOffset+this.start)this.Us.supports(1),this.Us.ZL(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Us.sM(this.timestampOffset+this.start);this.Us.appendBuffer(F,J,b)}; g.A.abort=function(){this.Us.abort()}; g.A.remove=function(F,J){this.Us.remove(F+this.start,J+this.start)}; g.A.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.A.clear=function(){this.Us.clear()}; g.A.ZL=function(F,J){this.appendWindowStart=F;this.appendWindowEnd=J}; g.A.Av=function(){return this.timestampOffset+this.start}; g.A.q4=function(){return this.appendWindowStart}; g.A.Js=function(){return this.appendWindowEnd}; g.A.sM=function(F){this.timestampOffset=F}; g.A.Xq=function(){return this.timestampOffset}; g.A.N0=function(F){F=this.Us.N0(F===void 0?!1:F);return al(F,this.start,this.end)}; g.A.x0=function(){return this.Us.x0()}; g.A.WH=function(){return this.Us.WH()}; g.A.yB=function(){return this.Us.yB()}; g.A.Nt=function(){return this.Us.Nt()}; g.A.Yk=function(){this.Us.Yk()}; g.A.EL=function(F){return this.Us.EL(F)}; g.A.yO=function(){return this.Us.yO()}; g.A.LV=function(){return this.Us.LV()}; g.A.vL=function(){return this.Us.vL()}; g.A.G_=function(F,J,b){this.Us.G_(F,J,b)}; g.A.Pw=function(F,J,b){this.Us.Pw(F,J,b)}; g.A.J7=function(F,J){return this.Us.J7(F,J)}; g.A.supports=function(F){return this.Us.supports(F)}; g.A.Vo=function(){return this.Us.Vo()}; g.A.isView=function(){return!0}; g.A.eq=function(){return this.Us.eq()?this.isActive:!1}; g.A.isLocked=function(){return this.I$&&!this.isActive}; g.A.Cy=function(F){F=this.Us.Cy(F);F.vw=this.start+"-"+this.end;return F}; g.A.N2=function(){return this.Us.N2()}; g.A.A8=function(){return this.Us.A8()}; g.A.ZF=function(){return this.Us.ZF()}; g.A.X_=function(){this.Us.TW(this.GB);g.uA.prototype.X_.call(this)};var p7=!1;g.z(X8,g.uA);g.A=X8.prototype;g.A.appendBuffer=function(F,J,b){this.Sz=!1;b&&(this.iV=b);if(F.length){var I;((I=this.dw)==null?0:I.appendBuffer)?this.dw.appendBuffer(F):this.dw?this.dw.append(F):this.ou&&this.ou.webkitSourceAppend(this.id,F)}J&&(J.isEncrypted()&&(this.Wd=this.iV),J.type===3&&(this.eT=J),this.qq.push(J.uX()),this.qq.length>4&&this.qq.shift());this.wc&&(this.wc.length>=2||F.length>1048576?delete this.wc:this.wc.push(F))}; g.A.abort=function(){try{this.dw?this.dw.abort():this.ou&&this.ou.webkitSourceAbort(this.id)}catch(F){z97&&g.Td(new g.hC("Error while abort the source buffer: "+F.name+", "+F.message))}this.iV=this.eT=null}; g.A.remove=function(F,J,b){this.Sz=!1;var I;if((I=this.dw)==null?0:I.remove)b&&b({b:u1(this.N0()),s:F,e:J}),this.dw.remove(F,J)}; g.A.removeAll=function(){this.remove(this.q4(),this.Js())}; g.A.clear=function(){this.yB()||(this.abort(),this.removeAll(),this.Wd=this.iV=this.eT=null,this.appendWindowStart=this.timestampOffset=0,this.Oj=Il([],[]),this.Sz=!1,this.wc=KB?[]:void 0,this.uU=!0)}; g.A.q4=function(){if(p7&&this.v1)return this.appendWindowStart;var F;return((F=this.dw)==null?void 0:F.appendWindowStart)||0}; g.A.Js=function(){var F;return((F=this.dw)==null?void 0:F.appendWindowEnd)||0}; g.A.ZL=function(F,J){this.dw&&(p7&&this.v1?(this.appendWindowStart=F,this.dw.appendWindowEnd=J):F>this.q4()?(this.dw.appendWindowEnd=J,this.dw.appendWindowStart=F):(this.dw.appendWindowStart=F,this.dw.appendWindowEnd=J))}; g.A.Av=function(){return this.timestampOffset}; g.A.sM=function(F){p7?this.timestampOffset=F:this.supports(1)&&(this.dw.timestampOffset=F)}; g.A.Xq=function(){return p7?this.timestampOffset:this.supports(1)?this.dw.timestampOffset:0}; g.A.N0=function(F){if(F===void 0?0:F)return this.Sz||this.x0()||(this.Oj=this.N0(!1),this.Sz=!0),this.Oj;try{return this.dw?this.dw.buffered:this.ou?this.ou.webkitSourceBuffered(this.id):Il([0],[Infinity])}catch(J){return Il([],[])}}; g.A.x0=function(){var F;return((F=this.dw)==null?void 0:F.updating)||!1}; g.A.yB=function(){return this.uU}; g.A.Nt=function(){return!this.uU&&this.x0()}; g.A.Yk=function(){this.uU=!1}; g.A.EL=function(F){var J=F==null?void 0:F.YQ;F=F==null?void 0:F.containerType;return!J&&!F||J===this.YQ&&F===this.containerType}; g.A.yO=function(){return this.iV}; g.A.LV=function(){return this.Wd}; g.A.J7=function(F,J){return this.containerType!==F||this.YQ!==J}; g.A.G_=function(F,J,b){if(this.containerType!==F||b&&this.J7(F,b))this.supports(4),Qh()&&this.dw.changeType(J),b&&(this.YQ=b);this.containerType=F}; g.A.Pw=function(F,J,b){this.containerType&&this.J7(F,J)&&Qh()&&this.dw.changeType(b);this.containerType=F;this.YQ=J}; g.A.Vo=function(){return this.eT}; g.A.isView=function(){return!1}; g.A.supports=function(F){switch(F){case 1:var J;return((J=this.dw)==null?void 0:J.timestampOffset)!==void 0;case 0:var b;return!((b=this.dw)==null||!b.appendBuffer);case 2:var I;return!((I=this.dw)==null||!I.remove);case 3:var u,w;return!!(((u=this.dw)==null?0:u.addEventListener)&&((w=this.dw)==null?0:w.removeEventListener));case 4:return!(!this.dw||!this.dw.changeType);default:return!1}}; g.A.eq=function(){return!this.x0()}; g.A.isLocked=function(){return!1}; g.A.Cy=function(F){F.to=this.Xq();F.up=this.x0();var J,b=((J=this.dw)==null?void 0:J.appendWindowStart)||0,I;J=((I=this.dw)==null?void 0:I.appendWindowEnd)||Infinity;F.aw=b.toFixed(3)+"-"+J.toFixed(3);return F}; g.A.WH=function(){var F;return((F=this.dw)==null?void 0:F.writeHead)||0}; g.A.N2=function(){for(var F={},J=0;J<this.qq.length;J++)F["s"+J]=this.qq[J];return F}; g.A.X_=function(){this.supports(3)&&(this.dw.removeEventListener("updateend",this.eF),this.dw.removeEventListener("error",this.eF));g.uA.prototype.X_.call(this)}; g.A.A8=function(){return this.containerType}; g.A.vL=function(){return this.YQ}; g.A.ZF=function(){return this.wc}; var KB=!1,z97=!1;Rl.prototype.dispose=function(){if(!this.iR()){if(this.C)try{URL.revokeObjectURL(this.gw)}catch(F){}this.U=!0}}; Rl.prototype.iR=function(){return this.U}; Rl.prototype.Hg=function(F){return F!==null&&F.gw===this.gw}; Rl.prototype.toString=function(){return"MediaResource {"+this.gw+"}"};g.z(DO,g.R);g.A=DO.prototype;g.A.getDuration=function(){var F;return((F=this.HN)==null?void 0:F.duration)||this.N}; g.A.GI=function(F){try{this.HN?this.HN.duration=F:(this.N=F,this.ou.webkitSourceSetDuration(F))}catch(J){}}; g.A.Ph=function(){try{return ce(this)==="closed"}catch(F){return!0}}; g.A.x0=function(){return!!(this.C&&this.C.x0()||this.U&&this.U.x0())}; g.A.isAsync=function(){return this.C?!!this.C.supports(0):Uo()}; g.A.L1j=function(){!this.iR()&&kn(this)&&this.callback&&(this.callback(this),this.callback=null)}; g.A.cFN=function(){this.dispose()}; g.A.vW=function(F){if(Oo&&!this.Z&&F.yB()&&F.N0().length===0){var J;ol(this.mediaElement,{l:"mswoue",sr:(J=this.mediaElement.wD)==null?void 0:J.wZ()},!1);F.Yk();this.yB()||(this.mediaElement.V1=!0,this.mediaElement.setCurrentTime(0))}}; g.A.H$=function(){return!!this.C.supports(2)}; g.A.clear=function(){zE_(this,function(){}); var F;(F=this.C)==null||F.clear();var J;(J=this.U)==null||J.clear()}; g.A.yB=function(){var F,J;return((F=this.U)==null?void 0:F.yB())||((J=this.C)==null?void 0:J.yB())}; g.A.EL=function(F,J){return!!this.C&&!!this.U&&this.C.EL(J)&&this.U.EL(F)}; var Oo=!1;xn.prototype.then=function(F,J){return this.promise.then(F,J)}; xn.prototype.resolve=function(F){this.xU(F)}; xn.prototype.reject=function(F){this.Vb(F)};g.z(nB,g.R);g.A=nB.prototype;g.A.EP=function(){return this.gw}; g.A.activate=function(F){var J="";F&&(V1z(this,F),J=F.gw);if(!this.dB()||J)J&&this.dB()!==J&&(this.RF(J),delete this.U,this.T&&(this.T.reject(),delete this.T),!window.MediaSource&&window.ManagedMediaSource&&this.uD(!(F==null||!F.C))),F&&F.C||this.load(),this.V||(this.addEventListener("volumechange",this.dQ),this.V=!0)}; g.A.SS=function(F,J){if(this.U)if(iZk&&hG(this.U)&&!this.U.EL(F,J)){var b;ol(this,{l:"megms",sr:(b=this.wD)==null?void 0:b.wZ()});jJa(this);this.stopVideo()}else return this.HN=this.U,this.U=void 0,this.HN;F=window.MediaSource?new DO(this,new window.MediaSource,!1):window.ManagedMediaSource?new DO(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new DO(this,new window.WebKitMediaSource,!1):new DO(this,void 0,!1);this.activate(F.T);this.HN=F;this.V1=!1;return F}; g.A.playVideo=function(){var F=this;this.isEnded()&&this.seekTo(0);!this.dB()&&this.gw&&(g.Td(Error("playVideo without src")),this.RF(this.gw.gw),this.gw.C||this.load());var J=this.play(),b;((b=this.wD)==null?0:b.S("html5_remove_ios_7_hack_force_play"))||!J&&os&&(FG||0)>=7&&qVa(this,function(){g.pl(function(){Ggv(F,F.getCurrentTime(),0)},500)}); return J}; g.A.seekTo=function(F){this.kR()>0&&(os&&FG<4&&(F=Math.max(.1,F)),this.setCurrentTime(F))}; g.A.Cc=function(){if(!this.U&&this.HN)if(this.HN.D)try{var F;ol(this,{l:"mer",sr:(F=this.wD)==null?void 0:F.wZ(),rs:ce(this.HN)});this.HN.clear();this.U=this.HN;this.HN=void 0}catch(J){F=new g.hC("Error while clearing Media Source in MediaElement: "+J.name+", "+J.message),g.Td(F),this.stopVideo()}else this.stopVideo()}; g.A.stopVideo=function(){var F=this;if(!this.U){var J;(J=this.HN)==null||d_v(J);if(mTG){if(!this.T){var b=new xn;b.then(void 0,function(){}); this.T=b;yKG&&this.pause();g.pl(function(){F.T===b&&(He(F),b.resolve())},200)}}else He(this)}}; g.A.aG=function(){var F=this.Z4();return qt(F)>0&&this.getDuration()?AG(F,this.getCurrentTime()):0}; g.A.jN=function(){var F=this.getDuration();return F===Infinity?1:F?this.aG()/F:0}; g.A.Cy=function(){try{var F=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:u1(this.mQ(),",",3),vbu:u1(this.Z4()),vbs:u1(this.Me()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.kR(),vns:""+this.CG(),vec:""+this.rB(),vemsg:this.Aw(),vvol:""+this.getVolume(),vdom:""+ +this.IN(),vsrc:""+ +!!this.dB(),vw:""+F.width,vh:""+F.height}}catch(J){return{}}}; g.A.hasError=function(){return this.rB()>0}; g.A.addEventListener=function(F,J){this.Z.listen(F,J,!1,this);this.WL(F)}; g.A.removeEventListener=function(F,J){this.Z.iX(F,J,!1,this)}; g.A.dispatchEvent=function(F){if(this.T&&F.type==="pause")return!1;if(iZk){var J,b=((J=F.C)==null?void 0:J.timeStamp)||Infinity;J=b>performance.now()?b-Date.now()+performance.now():b;b=this.U||this.HN;if((b==null?0:b.yB())||J<=((b==null?void 0:b.W)||0)){var I;ol(this,{l:"mede",sr:(I=this.wD)==null?void 0:I.wZ(),et:F.type});return!1}if(this.V1)return ol(this,{l:"medes",et:F.type}),b&&F.type==="seeking"&&(b.W=performance.now(),this.V1=!1),!1}return this.Z.dispatchEvent(F)}; g.A.PL=function(){this.W=!1}; g.A.Zw=function(){this.W=!0;this.sA(!0)}; g.A.dQ=function(){this.W&&!this.rl()&&this.sA(!0)}; g.A.Hg=function(F){return!!F&&F.Pb()===this.Pb()}; g.A.X_=function(){this.V&&this.removeEventListener("volumechange",this.dQ);mTG&&He(this);g.R.prototype.X_.call(this)}; var mTG=!1,yKG=!1,iZk=!1,BJ3=!1;g.A=g.FC.prototype;g.A.isPaused=function(){return g.x(this,4)}; g.A.isPlaying=function(){return g.x(this,8)&&!g.x(this,512)&&!g.x(this,64)&&!g.x(this,2)}; g.A.isOrWillBePlaying=function(){return g.x(this,8)&&!g.x(this,2)&&!g.x(this,1024)}; g.A.isCued=function(){return g.x(this,64)&&!g.x(this,8)&&!g.x(this,4)}; g.A.isBuffering=function(){return g.x(this,1)&&!g.x(this,2)}; g.A.isError=function(){return g.x(this,128)}; g.A.isSuspended=function(){return g.x(this,512)}; g.A.DR=function(){return g.x(this,64)&&g.x(this,4)}; g.A.toString=function(){return"PSt."+this.state.toString(16)}; var oB={},hF=(oB.BUFFERING="buffering-mode",oB.CUED="cued-mode",oB.ENDED="ended-mode",oB.PAUSED="paused-mode",oB.PLAYING="playing-mode",oB.SEEKING="seeking-mode",oB.UNSTARTED="unstarted-mode",oB);g.z(aY,g.R);g.A=aY.prototype;g.A.jp=function(){return this.T}; g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){var F=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:J,cP:F,listener:this,Tf:this.f7()});owz(this.EQ.get(),this);F=this.Zl;J=this.layout.layoutId;var b={Tf:this.f7()};F.C.set(J,b);this.zo()}; g.A.yf=function(){}; g.A.release=function(){W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId);hVG(this.EQ.get(),this);this.Zl.C.delete(this.layout.layoutId);this.SM()}; g.A.h3=function(){}; g.A.y$=function(){}; g.A.startRendering=function(F){lO(eY(this));if(Kx(this,F)){var J=this.C;fF(J.params.P9.uR.get(),!0)&&M1_(J,"p_sr",{});px(this);this.mz(F);this.f7()||this.j9(!1)}}; g.A.bT=function(F,J){if(J.layoutId===this.layout.layoutId){this.Lk="rendering";this.U=this.OQ.get().isMuted()||this.OQ.get().getVolume()===0;this.JJ("impression");this.JJ("start");if(this.OQ.get().isMuted()){NO(this,"mute");var b;F=((b=v5(this))==null?void 0:b.muteCommands)||[];On(this.D7.get(),F,this.layout.layoutId)}if(this.OQ.get().isFullscreen()){this.RQ("fullscreen");var I;b=((I=v5(this))==null?void 0:I.fullscreenCommands)||[];On(this.D7.get(),b,this.layout.layoutId)}this.f7()||(I=this.qI.get(), I.T&&!I.U&&(I.D=!1,I.U=!0,I.actionType!=="ad_to_video"&&(Oz("pbs",void 0,I.actionType),g.Nk("finalize_all_timelines")&&nPz(I.actionType))));this.UM(1);this.SX(J);var u;J=((u=v5(this))==null?void 0:u.impressionCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.B8=function(F,J,b){this.V={UE:3,a$:F==="load_timeout"?402:400,errorMessage:J.message};this.JJ("error");var I;F=((I=v5(this))==null?void 0:I.errorCommands)||[];On(this.D7.get(),F,this.layout.layoutId);this.f7()||this.Vp.XW(this.slot,this.layout,J,b)}; g.A.Cm=function(){if(this.Lk==="rendering"){NO(this,"pause");var F,J=((F=v5(this))==null?void 0:F.pauseCommands)||[];On(this.D7.get(),J,this.layout.layoutId);this.UM(2)}}; g.A.wu=function(){if(this.Lk==="rendering"){NO(this,"resume");var F,J=((F=v5(this))==null?void 0:F.resumeCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.wW=function(F,J){J=J===void 0?!1:J;if(this.Lk==="rendering"){var b={currentTimeSec:F,flush:J};W4(this.C,"p_ip",b);Ts(this.yG,F*1E3,J);this.U||Ts(this.yG,F*1E3,J===void 0?!1:J);var I=this.Ol();if(I){I/=1E3;if(F>=I*.25||J)this.JJ("first_quartile"),W4(this.C,"p_fq",b);if(F>=I*.5||J)this.JJ("midpoint"),W4(this.C,"p_sq",b);if(F>=I*.75||J)this.JJ("third_quartile"),W4(this.C,"p_tq",b);this.uR.get().G.J().experiments.pW("enable_progress_command_flush_on_kabuki")?RV(this.Z,F*1E3,J):RV(this.Z,F*1E3,$_v(this)? J:!1)}}}; g.A.Vd=function(){var F;return((F=gM(this.QG.get(),1))==null?void 0:F.clientPlaybackNonce)||""}; g.A.e7=function(F,J){F.layoutId!==this.layout.layoutId?this.Vp.XW(this.slot,F,new bL("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"):J()}; g.A.A_=function(F,J,b){if(J.layoutId===this.layout.layoutId)switch(this.Lk="not_rendering",this.layoutExitReason=void 0,this.f7()||(F=b!=="normal"||this.position+1===this.W)&&this.j9(F),this.Ij(b),this.UM(0),b){case "abandoned":if(rq(this.yG,"impression")){var I,u=((I=v5(this))==null?void 0:I.abandonCommands)||[];On(this.D7.get(),u,this.layout.layoutId)}break;case "normal":I=((u=v5(this))==null?void 0:u.completeCommands)||[];On(this.D7.get(),I,this.layout.layoutId);break;case "skipped":var w;I=((w= v5(this))==null?void 0:w.skipCommands)||[];On(this.D7.get(),I,this.layout.layoutId)}}; g.A.qe=function(){return this.layout.layoutId}; g.A.Vw=function(){return this.V}; g.A.rM=function(){if(this.Lk==="rendering"){this.yG.JJ("active_view_measurable");var F,J=((F=v5(this))==null?void 0:F.activeViewMeasurableCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.I7=function(){if(this.Lk==="rendering"){this.yG.JJ("active_view_fully_viewable_audible_half_duration");var F,J=((F=v5(this))==null?void 0:F.activeViewFullyViewableAudibleHalfDurationCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.CQ=function(){if(this.Lk==="rendering"){this.yG.JJ("active_view_viewable");var F,J=((F=v5(this))==null?void 0:F.activeViewViewableCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.LB=function(){if(this.Lk==="rendering"){this.yG.JJ("audio_audible");var F,J=((F=v5(this))==null?void 0:F.activeViewAudioAudibleCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.NO=function(){if(this.Lk==="rendering"){this.yG.JJ("audio_measurable");var F,J=((F=v5(this))==null?void 0:F.activeViewAudioMeasurableCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.j9=function(F){this.qI.get().j9(uL(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,F,this.position,this.W,!1)}; g.A.onFullscreenToggled=function(F){if(this.Lk==="rendering")if(F){this.RQ("fullscreen");var J,b=((J=v5(this))==null?void 0:J.fullscreenCommands)||[];On(this.D7.get(),b,this.layout.layoutId)}else this.RQ("end_fullscreen"),J=((b=v5(this))==null?void 0:b.endFullscreenCommands)||[],On(this.D7.get(),J,this.layout.layoutId)}; g.A.onVolumeChange=function(){if(this.Lk==="rendering")if(this.OQ.get().isMuted()){NO(this,"mute");var F,J=((F=v5(this))==null?void 0:F.muteCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}else NO(this,"unmute"),F=((J=v5(this))==null?void 0:J.unmuteCommands)||[],On(this.D7.get(),F,this.layout.layoutId)}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.nF=function(){}; g.A.c9=function(){}; g.A.RQ=function(F){this.yG.RQ(F,!this.U)}; g.A.JJ=function(F){this.yG.JJ(F,!this.U)}; g.A.f7=function(){var F=uL(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return F===void 0?(q_("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.uR.get().f7(F)};g.z(ER,aY);g.A=ER.prototype;g.A.zo=function(){}; g.A.SM=function(){var F=this.EQ.get();F.hM===this&&(F.hM=null);this.bC.stop()}; g.A.h3=function(){this.bC.stop();aY.prototype.Cm.call(this)}; g.A.y$=function(){GA(this);aY.prototype.wu.call(this)}; g.A.Ol=function(){return uL(this.xQ().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.A.T$=function(F,J){var b=this;this.e7(F,function(){b.Lk!=="rendering_stop_requested"&&(b.Lk="rendering_stop_requested",b.layoutExitReason=J,mS(b,J),b.bC.stop())})}; g.A.Q6=function(){var F=Date.now(),J=F-this.qj;this.qj=F;this.EJ+=J;this.EJ>=this.Ol()?this.wv():(this.wW(this.EJ/1E3),jY(this,this.EJ))}; g.A.Ij=function(){}; g.A.mP=function(){}; g.z(VL,ER);g.A=VL.prototype;g.A.jT=function(F){if(this.Lk!=="not_rendering"){F=yL(this,F);var J=this.OQ.get().getPresentingPlayerType()===2;this.Lk==="rendering_start_requested"?J&&aT(F)&&this.Rh():J?g.e1(F,2)?q_("Receive player ended event during MediaBreak",this.Bb(),this.xQ()):ip(this,F):this.dE()}}; g.A.mz=function(){sJ7(this);J4Y(this.OQ.get());this.EQ.get().hM=this;Dj("pbp")||Dj("pbs")||Oz("pbp");Dj("pbp","watch")||Dj("pbs","watch")||Oz("pbp",void 0,"watch");this.Rh()}; g.A.SX=function(F){this.qI.get();var J=uL(F.clientMetadata,"metadata_type_ad_placement_config").kind,b=this.position===0;F=uL(F.clientMetadata,"metadata_type_linked_in_player_layout_type");F={adBreakType:zA(J),adType:U_k(F)};var I=void 0;b?J!=="AD_PLACEMENT_KIND_START"&&(I="video_to_ad"):I="ad_to_ad";XH("ad_mbs",void 0,I);g.Qk(F,I);GA(this)}; g.A.dE=function(){this.Kl()}; g.A.wv=function(){XLo(this);this.Kl()}; g.z(P5,ER);g.A=P5.prototype;g.A.jT=function(F){this.Lk!=="not_rendering"&&(F=yL(this,F),ip(this,F))}; g.A.mz=function(){q_("Not used in SSAP")}; g.A.SX=function(){GA(this)}; g.A.dE=function(){q_("Not used in SSAP")}; g.A.wv=function(){XLo(this);this.Vp.NK(this.Bb(),this.xQ(),"normal")}; g.z(B5,P5);B5.prototype.T$=function(F,J){var b=this;this.e7(F,function(){mY(b.T,J)&&(b.Lk="rendering_stop_requested",b.layoutExitReason=J,mS(b,J),b.bC.stop())})}; B5.prototype.startRendering=function(F){lO(eY(this));Kx(this,F)&&(px(this),this.EQ.get().hM=this)};g.z(SY,aY);g.A=SY.prototype;g.A.dE=function(){this.Kl()}; g.A.jT=function(F){if(this.Lk!=="not_rendering"){F=yL(this,F);var J=this.OQ.get().getPresentingPlayerType()===2;this.Lk==="rendering_start_requested"?J&&aT(F)&&this.Rh():!J||g.e1(F,2)?this.Kl():ip(this,F)}}; g.A.zo=function(){uL(this.xQ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=uL(this.xQ().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.A.SM=function(){uL(this.xQ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.pN){var F=this.context.P9,J=this.pN,b=this.xQ().layoutId;if(fF(F.uR.get(),!0)){var I={};F.Ck("mccru",(I.cid=J,I.p_ac=b,I))}this.h_.get().removeCueRange(this.pN)}this.pN=void 0;var u;(u=this.O4)==null||u.dispose();this.OX&&this.OX.dispose()}; g.A.mz=function(F){var J=TA(this.uR.get()),b=rM(this.uR.get());if(J&&b&&!this.f7()){b=uL(F.clientMetadata,"metadata_type_preload_player_vars");var I=g.eB(this.uR.get().G.J().experiments,"html5_preload_wait_time_secs");b&&this.OX&&this.OX.start(I*1E3)}D_m(this,F);sJ7(this);J?(b=this.NI.get(),F=uL(F.clientMetadata,"metadata_type_player_vars"),b.G.loadVideoByPlayerVars(F,!1,2)):a2C(this.NI.get(),uL(F.clientMetadata,"metadata_type_player_vars"));var u;(u=this.O4)==null||u.start();J||this.NI.get().G.playVideo(2)}; g.A.SX=function(){var F;(F=this.O4)==null||F.stop();this.pN="adcompletioncuerange:"+this.xQ().layoutId;this.h_.get().addCueRange(this.pN,0x7ffffffffffff,0x8000000000000,!1,this,2,2);F=this.context.P9;var J=this.pN,b=this.xQ().layoutId;if(fF(F.uR.get(),!0)){var I={};F.Ck("mccr",(I.cid=J,I.p_ac=b,I))}(this.adCpn=SVa(this))||q_("Media layout confirmed started, but ad CPN not set.");this.py.get().t3("onAdStart",this.adCpn);this.pw=Date.now()}; g.A.Ol=function(){var F;return(F=gM(this.QG.get(),2))==null?void 0:F.Xk}; g.A.m3=function(){this.yG.RQ("clickthrough")}; g.A.T$=function(F,J){var b=this;this.e7(F,function(){if(b.Lk!=="rendering_stop_requested"){b.Lk="rendering_stop_requested";b.layoutExitReason=J;mS(b,J);var I;(I=b.O4)==null||I.stop();b.OX&&b.OX.stop();kg_(b)}})}; g.A.onCueRangeEnter=function(F){if(F!==this.pN)q_("Received CueRangeEnter signal for unknown layout.",this.Bb(),this.xQ(),{cueRangeId:F});else{var J=this.context.P9,b=this.xQ().layoutId;if(fF(J.uR.get(),!0)){var I={};J.Ck("mccre",(I.cid=F,I.p_ac=b,I))}this.h_.get().removeCueRange(this.pN);this.pN=void 0;Un(this.context.uR.get(),"html5_ssap_flush_at_stop_rendering")&&this.f7()||(F=uL(this.xQ().clientMetadata,"metadata_type_video_length_seconds"),this.wW(F,!0),this.JJ("complete"))}}; g.A.Ij=function(F){F!=="abandoned"&&this.py.get().t3("onAdComplete");this.py.get().t3("onAdEnd",this.adCpn)}; g.A.onCueRangeExit=function(){}; g.A.mP=function(F){this.Lk==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&F>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.OQ.get().PQ(!0),this.wW(F))}; g.A.wW=function(F,J){aY.prototype.wW.call(this,F,J===void 0?!1:J);J=Date.now()-this.pw;var b=F*1E3,I={contentCpn:this.Vd(),adCpn:SVa(this)};if(F>=5&&!this.Wr){var u=J<1E3?0:1;wJ(u,"i.k_",{metadata:I,JK:J,yr:Math.floor(b/1E3)});hE("IKDSTAT",u);u===0&&O0J(this)&&this.py.get().t3("onAbnormalityDetected");this.Wr=!0}F-this.ZI>=5&&(u=J<b*.4?0:1,wJ(u,"n.k_",{metadata:I,JK:J,yr:Math.floor(b/1E3)}),hE("NKDSTAT",u),u===0&&O0J(this)&&this.py.get().t3("onAbnormalityDetected"),this.ZI=F)};g.z(sR,SY);sR.prototype.jT=function(F){this.Lk!=="not_rendering"&&(F=yL(this,F),ip(this,F))}; sR.prototype.mz=function(){q_("Not used in SSAP")}; g.z(YO,sR);YO.prototype.T$=function(F,J){var b=this;this.e7(F,function(){if(mY(b.T,J)){b.Lk="rendering_stop_requested";b.layoutExitReason=J;mS(b,J);if(Un(b.context.uR.get(),"html5_ssap_flush_at_stop_rendering")&&J==="normal"){var I=uL(b.xQ().clientMetadata,"metadata_type_video_length_seconds");b.wW(I,!0)}kg_(b)}})}; YO.prototype.startRendering=function(F){lO(eY(this));Kx(this,F)&&(px(this),D_m(this,F))};g.z(Cx,g.R);g.A=Cx.prototype;g.A.init=function(){var F=uL(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);this.QG.get().addListener(this);this.bX.init();Hrz([this.layout],this.QG.get());this.Tx()}; g.A.Tx=function(){var F=uL(this.bX.xQ().clientMetadata,"metadata_type_player_vars");F?this.NI.get().addPlayerResponseForAssociation({playerVars:F}):(F=x_G(this.bX.xQ()),this.NI.get().addPlayerResponseForAssociation({As:F}))}; g.A.CZ=function(){}; g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.h3=function(){this.bX.h3()}; g.A.y$=function(){this.bX.y$()}; g.A.XO=function(){q_("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; g.A.bT=function(F,J){this.bX.bT(F,J)}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.mP=function(F){this.bX.mP(F)}; g.A.onFullscreenToggled=function(F){this.bX.onFullscreenToggled(F)}; g.A.Kv=function(F){this.bX.Kv(F)}; g.A.OJ=function(F){this.bX.OJ(F)}; g.A.onVolumeChange=function(){this.bX.onVolumeChange()}; g.A.nF=function(){}; g.A.c9=function(){}; g.A.bq=function(){}; g.A.FN=function(){return this.OQ.get().getPresentingPlayerType()===2}; g.A.mX=function(F){II_({cpn:F,RP:this.QG.get(),RE:!0});this.layout.layoutId===F&&(DRa(this.z$,this.slot.slotId),this.wO.bT(this.slot,this.layout))}; g.A.startRendering=function(F){if(F.layoutId!==this.layout.layoutId)return void q_("wrong layout");this.OQ.get().addListener(this);gX(this.rY(),this);this.bX.startRendering(this.layout)}; g.A.jT=function(F){this.bX.jT(F)}; g.A.A_=function(F,J,b){this.bX.A_(F,J,b)}; g.A.release=function(){this.QG.get().removeListener(this);this.bX.release();Lh3();mO(this.rY(),this)}; g.A.ZD=function(){return Un(this.params.context.uR.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.A.T$=function(F,J){F.layoutId!==this.layout.layoutId?q_("wrong layout"):this.ZD()&&this.bX.jp().currentState>=2||(this.bX.T$(this.layout,J),F=Un(this.params.context.uR.get(),"html5_ssap_pass_transition_reason")&&J==="abandoned",this.FN()&&!F&&(Un(this.params.context.uR.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(J)||q_("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:J})),this.RC.get().finishSegmentByCpn(this.layout.layoutId, gM(this.QG.get(),1).clientPlaybackNonce,fx(J,this.params.context.uR))),this.OQ.get().removeListener(this),this.ZD()&&yZ(this.bX.jp())&&this.wO.A_(this.slot,this.layout,this.bX.jp().C))}; g.A.cq=function(F,J,b){uYk({cpn:F,RP:this.QG.get(),RE:!0});this.xQ().layoutId!==F||Un(this.params.context.uR.get(),"html5_ssap_pass_transition_reason")&&b===5||(this.bX.jp().currentState<2&&(F=W5(b,this.params.context.uR),F==="error"?this.wO.XW(this.slot,this.layout,new bL("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:b},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):OR(this.ix, this.layout,F)),Un(this.params.context.uR.get(),"html5_ssap_exit_without_waiting_for_transition")||this.wO.A_(this.slot,this.layout,this.bX.jp().C))};g.z(XC,g.R);g.A=XC.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.CZ=function(){}; g.A.L7=function(){return this.PD[this.gI]}; g.A.Hx=function(){return this.gI}; g.A.h3=function(F,J){var b=this.L7();J.layoutId!==RY(b,F,J)?q_("pauseLayout for a PlayerBytes layout that is not currently active",F,J):b.h3()}; g.A.y$=function(F,J){var b=this.L7();J.layoutId!==RY(b,F,J)?q_("resumeLayout for a PlayerBytes layout that is not currently active",F,J):b.y$()}; g.A.XO=function(F,J){var b=this.L7();H0J(this,F,J);LNG(b,F,J)&&this.Fj(b.Bb(),b.xQ(),"skipped")}; g.A.uE=function(F,J){var b=this.L7();FKG(this);Joa(b,F,J)&&(F=bpv(this,b,F,J),F!==void 0&&(this.f7()?q_("Should not happen. Should delete"):uHv(this,b.Bb(),b.xQ(),F)))}; g.A.o2=function(F,J){var b=Object.assign({},QL(this),{layoutId:J.layoutId}),I=b.layoutId,u=b.RE;if(b.Tf){var w={};NM(b.RP,"wrse",(w.ec=I,w.is=u,w.ctp=zj(I),w))}G0(this.Qp,F,J)}; g.A.bT=function(F,J){var b;(b=this.L7())==null||b.bT(F,J)}; g.A.A_=function(F,J,b){J.layoutId===this.xQ().layoutId&&(this.GZ=!1,mO(this.rY(),this));var I;(I=this.L7())==null||I.A_(F,J,b)}; g.A.mP=function(F){var J;(J=this.L7())==null||J.mP(F)}; g.A.D0=function(F,J,b){this.Hx()===-1&&(this.callback.bT(this.slot,this.layout),this.gI++);var I=this.L7();I?(I.B8(F,J,b),this.f7()&&this.callback.XW(this.slot,this.layout,J,b)):q_("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Hx()),layoutId:this.xQ().layoutId})}; g.A.onFullscreenToggled=function(F){var J;(J=this.L7())==null||J.onFullscreenToggled(F)}; g.A.Kv=function(F){var J;(J=this.L7())==null||J.Kv(F)}; g.A.OJ=function(F){var J;(J=this.L7())==null||J.OJ(F)}; g.A.onVolumeChange=function(){var F;(F=this.L7())==null||F.onVolumeChange()}; g.A.oA=function(F,J,b){VS(this.Qp,F,J,b)}; g.A.JV=function(F){F.startRendering(F.xQ())}; g.A.init=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);if(this.PD.length<1)throw new Z("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.PD.length)});if(F=uL(this.xQ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))F.current=this;F=g.N(this.PD);for(var J=F.next();!J.done;J=F.next())J=J.value,J.init(),Gda(this.Qp,this.slot,J.xQ()),VQa(this.Qp,this.slot,J.xQ()); if(this.f7())for(this.QG.get().addListener(this),Hrz(Z0m(this),this.QG.get()),F=Z0m(this),F=g.N(F),J=F.next();!J.done;J=F.next())this.Tx(J.value)}; g.A.Tx=function(F){var J=uL(F.clientMetadata,"metadata_type_player_vars");J?(F.layoutType!=="LAYOUT_TYPE_MEDIA"&&q_("Non-video ad contains playerVars",this.slot,F),this.NI.get().addPlayerResponseForAssociation({playerVars:J})):(F=x_G(F),this.NI.get().addPlayerResponseForAssociation({As:F}))}; g.A.release=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=null);if(F=uL(this.xQ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))F.current=null;F=g.N(this.PD);for(var J=F.next();!J.done;J=F.next())J=J.value,P$G(this.Qp,this.slot,J.xQ()),J.release();this.f7()&&(this.QG.get().removeListener(this),Lh3())}; g.A.e7=function(F){return F.layoutId!==this.xQ().layoutId?(this.callback.XW(this.Bb(),F,new bL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.xQ().layoutId+("and LayoutType: "+this.xQ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.A.tj=function(){this.OQ.get().addListener(this);gX(this.rY(),this)}; g.A.jT=function(F){if(F.state.isError()){var J,b;this.D0((J=F.state.e6)==null?void 0:J.errorCode,new bL("There was a player error during this media layout.",{playerErrorCode:(b=F.state.e6)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(J=this.L7())&&J.jT(F)}; g.A.f7=function(){var F=uL(this.Bb().clientMetadata,"metadata_type_eligible_for_ssap");return F===void 0?(q_("Expected SSAP eligibility in PlayerBytes slots",this.Bb(),this.xQ()),!1):this.uR.get().f7(F)}; g.A.bq=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.nF=function(){}; g.A.c9=function(){}; g.z(oY,XC);g.A=oY.prototype;g.A.yK=function(F,J,b){this.Fj(F,J,b)}; g.A.JW=function(F,J){this.Fj(F,J,"error")}; g.A.Fj=function(F,J,b){var I=this;IjJ(this,F,J,b,function(){D0(I,I.Hx()+1)})}; g.A.startRendering=function(F){this.e7(F)&&(this.tj(),yTC(this.qI.get()),fEo(this.uR.get())||J4Y(this.OQ.get()),this.Hx()===-1&&D0(this,this.Hx()+1))}; g.A.T$=function(F,J){var b=this;this.GZ=!0;this.Hx()===this.PD.length?this.callback.A_(this.slot,this.layout,J):(F=this.L7(),F.T$(F.xQ(),J),this.Vn=function(){b.callback.A_(b.slot,b.layout,J)}); this.OQ.get().G.Hk();a2C(this.NI.get(),{});F=Fm(this.OQ.get(),1);F.isPaused()&&!g.x(F,2)&&this.OQ.get().playVideo();this.OQ.get().removeListener(this);this.GZ&&wfC(this)}; g.A.cq=function(){}; g.A.mX=function(){}; g.A.NK=function(){}; g.z(hV,XC);g.A=hV.prototype;g.A.yK=function(F,J,b){F=Object.assign({},QL(this),{layoutId:J.layoutId,layoutExitReason:b});J=F.layoutId;b=F.layoutExitReason;var I={};NM(F.RP,"prse",(I.xc=J,I.ler=b,I.ctp=zj(J),I))}; g.A.JW=function(){q_("onSubLayoutError in SSAP")}; g.A.Fj=function(){q_("exitSubLayoutAndPlayNext in SSAP")}; g.A.L7=function(){return this.MY}; g.A.Hx=function(){var F=this;return this.PD.findIndex(function(J){var b;return J.xQ().layoutId===((b=F.MY)==null?void 0:b.xQ().layoutId)})}; g.A.JV=function(F){A5(this.MY===void 0,"replacing another adapter");this.MY=F;F.startRendering(F.xQ())}; g.A.oA=function(F,J,b){VS(this.Qp,F,J,b);var I;A5(J.layoutId===((I=this.MY)==null?void 0:I.xQ().layoutId),"currentAdapter does not match exiting layout",{slot:F?"slot: "+F.slotType:"",subLayout:M_(J)})&&(this.MY=void 0)}; g.A.release=function(){XC.prototype.release.call(this);A5(this.MY===void 0,"currentAdapter is still active during release");this.MY=void 0}; g.A.FN=function(){return this.OQ.get().getPresentingPlayerType()===2}; g.A.T$=function(F,J){function b(){c5(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(J)||q_("Composite stopRendering: Unexpected layout exit reason",this.slot,F,{layoutExitReason:J}))} function I(){this.MY&&UR(this,this.MY,J);if(this.FN()&&(!c5(this)||J!=="abandoned")){b.call(this);var w;var M=((w=this.QG.get().G.getVideoData())==null?void 0:w.clientPlaybackNonce)||"";w=gM(this.QG.get(),1).clientPlaybackNonce;this.RC.get().finishSegmentByCpn(M,w,fx(J,this.uR))}Ml7(this,J)} function u(){if(this.MY){var w=this.MY;w.jp().currentState<2&&w.T$(w.xQ(),J);w=c5(this)&&J==="abandoned";this.FN()&&!w&&(b.call(this),this.RC.get().finishSegmentByCpn(this.MY.xQ().layoutId,gM(this.QG.get(),1).clientPlaybackNonce,fx(J,this.uR)))}} A5(F.layoutId===this.xQ().layoutId,"StopRendering for wrong layout")&&mY(this.h$.U,J)&&(this.ZD()?I.call(this):u.call(this))}; g.A.A_=function(F,J,b){XC.prototype.A_.call(this,F,J,b);J.layoutId===this.xQ().layoutId&&this.OQ.get().removeListener(this)}; g.A.Vd=function(){return gM(this.QG.get(),1).clientPlaybackNonce}; g.A.cq=function(F,J,b){uYk(Object.assign({},QL(this),{cpn:F}));if(!c5(this)||b!==5)if(this.ZD()){if(this.MY&&this.MY.xQ().layoutId!==J){var I=this.MY.xQ().layoutId;I!==F&&q_("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:I,exitingCpn:F,enteringCpn:J});F=W5(b,this.uR);UR(this,this.MY,F)}else this.MY&&q_("onClipExited: active layout is entering again");J===this.Vd()&&qz7(this,b)}else{if(this.MY&&this.MY.xQ().layoutId===F)Ao3(this,this.MY,b);else{var u;q_("Exiting cpn does not match active cpn", this.slot,(I=this.MY)==null?void 0:I.xQ(),{exitingCpn:F,transitionReason:b,activeCpn:(u=this.MY)==null?void 0:u.xQ().layoutId})}J===this.Vd()&&(this.MY!==void 0&&(q_("active adapter is not properly exited",this.slot,this.layout,{activeLayout:M_(this.MY.xQ())}),Ao3(this,this.MY,b)),qz7(this,b),Ml7(this,this.h$.U.C))}}; g.A.ZD=function(){return Un(this.uR.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.A.startRendering=function(F){this.e7(F)&&(F=this.h$,A5(F.C===1,"tickStartRendering: state is not initial"),F.C=2,this.tj())}; g.A.mX=function(F){II_(Object.assign({},QL(this),{cpn:F}));var J=this.PD.find(function(b){return b.xQ().layoutId===F}); J?(this.h$.C!==2&&(DRa(this.z$,this.slot.slotId),A5(this.h$.C===2,"Expect started"),this.callback.bT(this.slot,this.layout)),this.JV(J),G0(this.Qp,this.slot,J.xQ())):vkm(this,F)}; g.A.XO=function(F,J){H0J(this,F,J);var b=this.L7();b?LNG(b,F,J)&&ajv(this,"skipped"):eJ7(this,"onSkipRequested")}; g.A.uE=function(F,J){var b;a:{if(b=this.L7()){if(FKG(this),Joa(b,F,J)&&(F=bpv(this,b,F,J),F!==void 0)){b={sC:b,qVN:this.PD[F]};break a}}else eJ7(this,"SkipWithAdPodSkip");b=void 0}if(F=b)b=F.sC,J=F.qVN,F=b.xQ().layoutId,this.ZD()?UR(this,b,"skipped"):b.T$(b.xQ(),"skipped"),b=J.xQ().layoutId,this.RC.get().finishSegmentByCpn(F,b,fx("skipped",this.uR))}; g.A.o2=function(){q_("Not used in html5_ssap_fix_layout_exit")}; g.A.jT=function(F){var J;(J=this.L7())==null||J.jT(F)}; g.A.D0=function(){q_("Not used in html5_ssap_fix_layout_exit")}; g.A.NK=function(F,J,b){var I;if(((I=this.L7())==null?void 0:I.xQ().layoutId)!==J.layoutId)return void q_("requestToExitSubLayout: wrong layout");ajv(this,b)};g.z(xO,g.R);g.A=xO.prototype;g.A.Bb=function(){return this.bX.Bb()}; g.A.xQ=function(){return this.bX.xQ()}; g.A.init=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);this.zo()}; g.A.zo=function(){this.bX.init()}; g.A.release=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=null);this.SM()}; g.A.SM=function(){this.bX.release()}; g.A.h3=function(){this.bX.h3()}; g.A.y$=function(){this.bX.y$()}; g.A.XO=function(F,J){q_("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Bb(),this.xQ(),{requestingSlot:F,requestingLayout:J})}; g.A.startRendering=function(F){F.layoutId!==this.xQ().layoutId?this.callback.XW(this.Bb(),F,new bL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.xQ().layoutId+("and LayoutType: "+this.xQ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.OQ.get().addListener(this),gX(this.rY(),this),yTC(this.qI.get()),fEo(this.uR.get())||J4Y(this.OQ.get()),this.bX.startRendering(F))}; g.A.T$=function(F,J){this.GZ=!0;this.bX.T$(F,J);this.OQ.get().G.Hk();a2C(this.NI.get(),{});F=Fm(this.OQ.get(),1);F.isPaused()&&!g.x(F,2)&&this.OQ.get().playVideo();this.OQ.get().removeListener(this);this.GZ&&this.bX.dE()}; g.A.bT=function(F,J){this.bX.bT(F,J)}; g.A.A_=function(F,J,b){J.layoutId===this.xQ().layoutId&&(this.GZ=!1,mO(this.rY(),this));this.bX.A_(F,J,b);J.layoutId===this.xQ().layoutId&&kO(this.qI.get())}; g.A.mP=function(F){this.bX.mP(F)}; g.A.jT=function(F){if(F.state.isError()){var J,b;this.D0((J=F.state.e6)==null?void 0:J.errorCode,new bL("There was a player error during this media layout.",{playerErrorCode:(b=F.state.e6)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.bX.jT(F)}; g.A.D0=function(F,J,b){this.bX.B8(F,J,b)}; g.A.onFullscreenToggled=function(F){this.bX.onFullscreenToggled(F)}; g.A.Kv=function(F){this.bX.Kv(F)}; g.A.OJ=function(F){this.bX.OJ(F)}; g.A.onVolumeChange=function(){this.bX.onVolumeChange()}; g.A.bq=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.nF=function(){}; g.A.c9=function(){};g.A=nx.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){this.cV.get().addListener(this);this.OQ.get().addListener(this);var F=uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var J=uL(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Z){var b=this.cV.get().KX.slice(-1)[0];b!==void 0&&(F=b.startSecs*1E3,J=(b.startSecs+b.Bg)*1E3)}this.yf(F,J);var I;b=(I=this.QG.get().Hm)==null?void 0:I.clientPlaybackNonce;I=this.layout.lT.adClientDataEntry;tV(this.EQ.get(),{daiStateTrigger:{filledAdsDurationMs:J-F,contentCpn:b, adClientData:I}});var u=this.cV.get();u=gkv(u.T,F,J);u!==null&&(tV(this.EQ.get(),{daiStateTrigger:{filledAdsDurationMs:u-F,contentCpn:b,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:I}}),this.RC.get().pO(u,J))}; g.A.release=function(){this.SM();this.cV.get().removeListener(this);this.OQ.get().removeListener(this)}; g.A.startRendering=function(){this.mz();this.callback.bT(this.slot,this.layout)}; g.A.T$=function(F,J){this.SH(J);this.driftRecoveryMs!==null&&(Z0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(mGa(this)-uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.OQ.get().G.mJ()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.A_(this.slot,this.layout,J)}; g.A.FB=function(){return!1}; g.A.u3=function(F){var J=uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),b=uL(this.layout.clientMetadata,"metadata_type_layout_exit_ms");F*=1E3;if(J<=F&&F<b){var I;tV(this.EQ.get(),{daiStateTrigger:{filledAdsDurationMs:F-J,contentCpn:(I=this.QG.get().Hm)==null?void 0:I.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.lT.adClientDataEntry}});this.RC.get().pO(F,b)}}; g.A.mP=function(F){this.ZP(F);F=qi(this.OQ.get(),2,!0);if(WN(this.D.get(),this.layout.layoutId)){var J=uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),b=this.driftRecoveryMs;if(!(b===null||F*1E3<J+b)){this.driftRecoveryMs=null;var I=mGa(this),u=this.OQ.get().G.mJ(),w=Math.min(F+u,I/1E3);w<=F?Z0(this,{driftRecoveryMs:b.toString(),breakDurationMs:Math.round(I-J).toString(),driftFromHeadMs:Math.round(u*1E3).toString()}):(Z0(this,{driftRecoveryMs:b.toString(),breakDurationMs:Math.round(I- J).toString(),driftFromHeadMs:Math.round(u*1E3).toString(),appliedDriftRecoveryMs:Math.round(F*1E3-J).toString(),destinationMs:Math.round(w*1E3-J).toString()}),this.OQ.get().G.seekTo(w,void 0,void 0,1))}}}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.onVolumeChange=function(){}; g.A.nF=function(){}; g.A.c9=function(){};g.z(H5,nx);g.A=H5.prototype;g.A.yf=function(F,J){this.QG.get().addListener(this);if(this.Z){var b=F,I=0,u=[];F=this.T.slice();F.sort(function(w,M){return uL(w.xQ().clientMetadata,"metadata_type_media_sub_layout_index")-uL(M.xQ().clientMetadata,"metadata_type_media_sub_layout_index")}); F.forEach(function(w){var M=b,q=uL(w.xQ().clientMetadata,"metadata_type_video_length_seconds"),v=Math.min(M+q*1E3,J);b=v;I++;u.push(q);w.yf(M,v)})}else this.T.forEach(function(w){w.init()}); this.U!=null&&Lx(this.EQ.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.U)}; g.A.SM=function(){this.QG.get().removeListener(this);this.C=null;this.T.forEach(function(F){F.release()})}; g.A.mz=function(){if(this.C)q_("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.U)});else{var F,J=(F=this.QG.get().Hm)==null?void 0:F.layoutId;ipY(this,J)}}; g.A.SH=function(F){var J,b,I,u;(I=this.C)==null||(u=I.Ad)==null||u.T$((J=this.C)==null?void 0:(b=J.Ad)==null?void 0:b.xQ(),F);this.C=null}; g.A.CZ=function(F){var J=F.videoId;F=F.layoutId;if(J==="nPpU29QrbiU"){var b,I;Lx(this.EQ.get(),"ads_ssmplra_opdcs","vid."+J+";lid."+this.layout.layoutId+";smlid."+this.U+";slrs."+!!this.C+";slrslid."+((b=this.C)==null?void 0:(I=b.Ad)==null?void 0:I.xQ().layoutId))}if(this.C){var u;if(((u=this.C.Ad)==null?void 0:u.xQ().layoutId)===F)q_("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:F});else{var w,M;(M=this.C.Ad)==null||M.T$((w=this.C.Ad)==null?void 0:w.xQ(),"normal"); ipY(this,F)}}}; g.A.cq=function(){}; g.A.mX=function(){}; g.A.ZP=function(){}; g.A.jT=function(){}; g.A.onFullscreenToggled=function(){};g.A=Pq7.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.jp=function(){q_("Should not get exitStateMachine for DAI");return new gk}; g.A.yf=function(F,J){var b=this;uL(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.r9=zJ_(this.slot,this.layout,uL(this.layout.clientMetadata,"metadata_type_player_vars"),F,J,uL(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.RC.get(),this.CP.get(),function(){var I=Object,u=I.assign,w=ug(b.layout);var M=uL(b.slot.clientMetadata,"metadata_type_fulfilled_layout")||b.slot.fulfilledLayout;var q=uL(M.clientMetadata,"metadata_type_sub_layouts")|| M.Ag;M=Object.assign({},ug(M),{adPlacementConfig:uL(M.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(q||[]).map(ug)});return u.call(I,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},w,{compositeLayout:M,hasSurveyOverlay:LK(b.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:uL(b.layout.clientMetadata,"metadata_type_survey_overlay")})},this.EQ.get()); this.OQ.get().addListener(this);F=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds");J=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:J,cP:F,listener:this});Gda(this.callback,this.slot,this.layout);VQa(this.callback,this.slot,this.layout)}; g.A.init=function(){var F=uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),J=uL(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.yf(F,J)}; g.A.release=function(){this.OQ.get().removeListener(this);W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId);this.uR.get();P$G(this.callback,this.slot,this.layout)}; g.A.startRendering=function(){var F=this;LK(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Lx(this.EQ.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Lk)q_("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:LK(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:uL(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.Lk={u1:null,bE:!1};this.C=!1;if(Nva(this.uR.get())){var J;this.adCpn= (J=gM(this.QG.get(),2))==null?void 0:J.clientPlaybackNonce}this.uR.get().G.J().experiments.pW("html5_disable_sodar_for_tvhtml5")||Na_(this.slot,this.layout,this.p7.get());W7(this.layout.ww)&&Tvk(this.X4.get(),this.layout.layoutId);this.yG.JJ("start");if(mz(this.uR.get())){J=Fm(this.OQ.get());var b=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),I=qi(this.OQ.get(),2,!1);lj7(this.yG,this.Lk.u1,J,b,I,function(){return void Tak(F,"teois")},gM(this.QG.get(),1).vV)}G0(this.callback, this.slot,this.layout); LK(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Lx(this.EQ.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}}; g.A.T$=function(F,J){var b=this;if(this.Lk){if(mz(this.uR.get()))if(this.r9===null)q_("Unexpected media sub layout exited without a timeline playback ID");else{F=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds");var I=LlC(this.OQ.get(),this.r9);Nva(this.uR.get())&&this.adCpn===void 0&&q_("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:uL(this.layout.clientMetadata,"metadata_type_content_cpn")});mcY(this.yG,I,this.adCpn);Jb(this.yG,null,this.Lk.u1,F,I,gM(this.QG.get(), 1).vV,function(u){return void Ba4(b,u,"fue")},Nva(this.uR.get()))}this.Lk=null; VS(this.callback,this.slot,this.layout,this.C&&this.uR.get().G.J().S("dai_layout_log_skip_exit_reason")?"skipped":J)}else q_("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.A.B8=function(){}; g.A.dE=function(){}; g.A.mP=function(F){var J=this;if(this.Lk){if(rq(this.yG,"impression")){var b=Fm(this.OQ.get()),I=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds");bg(this.yG,b,F,this.Lk.u1,I,function(u){return void Ba4(J,u,"tpaqe")})}this.Lk.u1=F}}; g.A.jT=function(F){var J=this;if(this.Lk){mz(this.uR.get())||this.Lk.bE||(this.Lk.bE=!0,F=new g.vL(F.state,new g.FC));var b=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),I=qi(this.OQ.get(),2,!1);Fq(this.yG,this.Lk.u1,F,b,I,gM(this.QG.get(),1).vV,!mz(this.uR.get()),function(){return void Tak(J,"teosc")})}}; g.A.onFullscreenToggled=function(F){fj7(this.yG,F)}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.XO=function(F,J){var b;F=this.EQ.get();var I="ti."+rq(this.yG,"impression")+";ts."+rq(this.yG,"skip")+";hp.",u;var w=!((u=this.yG.T.get("skip"))==null||!u.length);Lx(F,"ads_dsr",I+w+";cpn."+uL(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((b=gM(this.QG.get(),2))==null?void 0:b.clientPlaybackNonce)+";sl."+(uL(J.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));rq(this.yG,"impression")&&this.yG.JJ("skip");J=gM(this.QG.get(),1).vV;this.C=!0; this.RC.get().l1(J)||(this.C=!1,q_("Unexpected failure to skip a server stitched ad",this.slot,this.layout))}; g.A.onVolumeChange=function(){}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.h3=function(){}; g.A.y$=function(){}; g.A.m3=function(){WKm(this.yG)}; g.A.rM=function(){dG3(this.yG)}; g.A.I7=function(){Ek3(this.yG)}; g.A.CQ=function(){jrC(this.yG)}; g.A.LB=function(){Gp_(this.yG)}; g.A.NO=function(){Vlz(this.yG)}; g.A.nF=function(){}; g.A.c9=function(){};g.z(wI,nx);g.A=wI.prototype; g.A.yf=function(){var F=this;uL(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var J=uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),b=uL(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.r9=zJ_(this.slot,this.layout,uL(this.layout.clientMetadata,"metadata_type_player_vars"),J,b,uL(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.RC.get(),this.CP.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:J, exitMs:b,adPlacementConfig:uL(F.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.EQ.get()); var I=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),u=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:u,cP:I,listener:this})}; g.A.SM=function(){W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId)}; g.A.mz=function(){var F=this;if(this.Lk)q_("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Lk={u1:null,bE:!1},Na_(this.slot,this.layout,this.p7.get()),this.yG.JJ("start"),mz(this.uR.get())){var J=Fm(this.OQ.get()),b=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),I=qi(this.OQ.get(),2,!1);lj7(this.yG,this.Lk.u1,J,b,I,function(){return void roY(F,"teois")},!1)}}; g.A.SH=function(){var F=this;if(this.Lk){if(mz(this.uR.get()))if(this.r9===null)q_("Unexpected single media layout exited without a timeline playback ID");else{var J=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=LlC(this.OQ.get(),this.r9);mcY(this.yG,b);Jb(this.yG,null,this.Lk.u1,J,b,!1,function(I){return void Szv(F,I,"fue")})}this.Lk=null}else q_("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.A.ZP=function(F){var J=this;if(this.Lk){if(rq(this.yG,"impression")){var b=Fm(this.OQ.get()),I=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds");bg(this.yG,b,F,this.Lk.u1,I,function(u){return void Szv(J,u,"tpaqe")})}this.Lk.u1=F}}; g.A.jT=function(F){var J=this;if(this.Lk){mz(this.uR.get())||this.Lk.bE||(this.Lk.bE=!0,F=new g.vL(F.state,new g.FC));var b=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),I=qi(this.OQ.get(),2,!1);Fq(this.yG,this.Lk.u1,F,b,I,!1,!mz(this.uR.get()),function(){return void roY(J,"teosc")})}}; g.A.onFullscreenToggled=function(F){fj7(this.yG,F)}; g.A.m3=function(){WKm(this.yG)}; g.A.rM=function(){dG3(this.yG)}; g.A.I7=function(){Ek3(this.yG)}; g.A.CQ=function(){jrC(this.yG)}; g.A.LB=function(){Gp_(this.yG)}; g.A.NO=function(){Vlz(this.yG)};Mh.prototype.build=function(F,J,b,I){if(LK(b.clientMetadata,"metadata_type_dai")){var u=uL(I.clientMetadata,"metadata_type_ad_placement_config");nd(I,{WV:"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(" "),C7:["LAYOUT_TYPE_MEDIA"]})&&u!==void 0?(u=new jr(I.ww,this.EQ,u,I.layoutId,null),u=new wI(F,b,I,this.QG,this.RC,this.CP,this.cV,this.OQ,u,this.EQ,this.p7, this.C,this.X4,this.uR)):u=null;if(u)return u;a:{var w,M=(w=I.Ag)!=null?w:uL(I.clientMetadata,"metadata_type_sub_layouts");u=uL(I.clientMetadata,"metadata_type_ad_placement_config");if(nd(I,{WV:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],C7:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&M!==void 0&&u!==void 0){w=[];M=g.N(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;var v=uL(q.clientMetadata,"metadata_type_media_sub_layout_index");if(!nd(q,{WV:"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(" "), C7:["LAYOUT_TYPE_MEDIA"]})||v===void 0){F=null;break a}v=new jr(q.ww,this.EQ,u,q.layoutId,v);w.push(new Pq7(J,b,q,this.RC,v,this.OQ,this.CP,this.X4,this.p7,this.uR,this.EQ,this.QG))}J=new jr(I.ww,this.EQ,u,I.layoutId);F=new H5(F,b,I,this.QG,this.RC,this.cV,this.OQ,J,this.EQ,this.C,w)}else F=null}if(F)return F}else if(F=pfG(F,J,b,I,this.rY,this.z$,this.cD,this.EQ,this.X4,this.p7,this.NI,this.QG,this.OQ,this.h_,this.qI,this.py,this.D7,this.yJ,this.uR,this.RC,this.context,this.Zl))return F;throw new bL("Unsupported layout with type: "+ I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};Ab.prototype.build=function(F,J,b,I){if(F=pfG(F,J,b,I,this.rY,this.z$,this.cD,this.EQ,this.X4,this.p7,this.NI,this.QG,this.OQ,this.h_,this.qI,this.py,this.D7,this.yJ,this.uR,this.RC,this.context,this.Zl))return F;throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.z(srC,I4);g.z(qh,i6);qh.prototype.startRendering=function(F){var J=zs(this.yG),b={adsClientData:this.layout.lT};this.C.push(new srC(uL(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),J,this.xQ().layoutId,b));i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; qh.prototype.Oo=function(F,J){J!==this.layout.layoutId||F!=="survey-interstitial"&&F!=="button"||((F=uL(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?F.XO(this.slot,this.layout):q_("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}; qh.prototype.X_=function(){i6.prototype.X_.call(this)};var aS=new g.gl(320,63);g.z(pi,I4);g.z(gI,i6);g.A=gI.prototype;g.A.mP=function(){}; g.A.jT=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Kv=function(F){F&&rw(this.Z,this.layout)}; g.A.bq=function(){}; g.A.OJ=function(F){var J=Ki(this.layout);if(this.V=ej(F,Fmo(this.OQ.get())))J.onErrorCommand&&this.D7.get().executeCommand(J.onErrorCommand,this.layout.layoutId),rw(this.Z,this.layout)}; g.A.onVolumeChange=function(){}; g.A.qe=function(){return this.xQ().layoutId}; g.A.Vw=function(){return this.V}; g.A.Oo=function(F){this.D.Oo(F);F==="in_video_overlay_close_button"&&rw(this.Z,this.layout)}; g.A.qy=function(F){F==="invideo-overlay"&&rw(this.Z,this.layout)}; g.A.bS=function(){this.D.bS()}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F);this.W.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);Ug(this.W,this)}; g.A.init=function(){i6.prototype.init.call(this);owz(this.EQ.get(),this);this.OQ.get().addListener(this);this.C.push(new pi(Ki(this.layout),zs(this.yG),this.layout.layoutId,{adsClientData:this.layout.lT}))}; g.A.release=function(){i6.prototype.release.call(this);this.OQ.get().removeListener(this);hVG(this.EQ.get(),this)}; g.A.nF=function(){}; g.A.c9=function(){};g.z(mq,i6);g.A=mq.prototype;g.A.init=function(){i6.prototype.init.call(this);owz(this.EQ.get(),this);this.OQ.get().addListener(this);this.C.push(new pi(Ki(this.layout),zs(this.yG),this.layout.layoutId,{adsClientData:this.layout.lT}))}; g.A.bS=function(){this.D.bS()}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F);this.W.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);Ug(this.W,this)}; g.A.Oo=function(F){this.D.Oo(F);F==="in_video_overlay_close_button"&&rw(this.Z,this.layout)}; g.A.Mt=function(F){if(F==="invideo-overlay"){F=Rxz(this.Y,this.layout);F=g.N(F);for(var J=F.next();!J.done;J=F.next())J.value.stop()}}; g.A.qy=function(F){F==="invideo-overlay"&&rw(this.Z,this.layout)}; g.A.fb=function(F){if(F==="invideo-overlay"){F=Rxz(this.Y,this.layout);F=g.N(F);for(var J=F.next();!J.done;J=F.next())J.value.start()}}; g.A.mP=function(){}; g.A.jT=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Kv=function(F){F&&rw(this.Z,this.layout)}; g.A.bq=function(){}; g.A.OJ=function(F){var J=Ki(this.layout),b=J.contentSupportedRenderer.imageOverlayAdContentRenderer,I=Fmo(this.OQ.get());a:{b=b.image;b=b===void 0?null:b;if(b!=null&&(b=b.thumbnail,b!=null&&b.thumbnails!=null&&b.thumbnails.length!=0&&b.thumbnails[0].width!=null&&b.thumbnails[0].height!=null)){b=new g.gl(b.thumbnails[0].width||0,b.thumbnails[0].height||0);break a}b=new g.gl(0,0)}if(this.V=ej(F,I,b))J.onErrorCommand&&this.D7.get().executeCommand(J.onErrorCommand,this.layout.layoutId),rw(this.Z,this.layout)}; g.A.onVolumeChange=function(){}; g.A.qe=function(){return this.xQ().layoutId}; g.A.Vw=function(){return this.V}; g.A.release=function(){i6.prototype.release.call(this);this.OQ.get().removeListener(this);hVG(this.EQ.get(),this)}; g.A.nF=function(){}; g.A.c9=function(){};yc.prototype.Oo=function(F){F==="ad-info-hover-text-button"&&((this.C=this.OQ.get().ZX(1))||this.OQ.get().pauseVideo())}; yc.prototype.bS=function(){this.C||this.OQ.get().resumeVideo(1)};g.z(Xfo,I4);g.z(ig,i6);g.A=ig.prototype;g.A.init=function(){i6.prototype.init.call(this);this.OQ.get().addListener(this)}; g.A.startRendering=function(F){var J=uL(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.C.push(new Xfo(J,this.layout.layoutId,{adsClientData:this.layout.lT}));i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; g.A.bT=function(){}; g.A.Oo=function(F,J){J!==this.layout.layoutId||F!=="ad-info-icon-button"&&F!=="ad-info-dialog-close-button"||((J=uL(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?F==="ad-info-icon-button"?J.h3(this.slot,this.layout):F==="ad-info-dialog-close-button"&&J.y$(this.slot,this.layout):q_("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:F}))}; g.A.OJ=function(F){F.width<450&&rw(this.Z,this.layout)}; g.A.onVolumeChange=function(){}; g.A.mP=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.jT=function(){}; g.A.nF=function(){}; g.A.c9=function(){}; g.A.X_=function(){i6.prototype.X_.call(this)}; g.A.release=function(){i6.prototype.release.call(this);this.OQ.get().removeListener(this)};Qr7.prototype.build=function(F,J,b,I){if(J=v4(F,b,I,this.sI,this.OQ,this.EQ,this.Z,this.C,this.uR))return J;if(nd(I,Cq7()))return new mq(b,I,this.EQ,this.X4,this.sI,F,this.U,this.T,this.OQ,this.D7,this.uR,this.C,new yc(this.OQ));if(nd(I,$Ga()))return new gI(b,I,this.EQ,this.X4,this.sI,F,this.U,this.OQ,this.D7,this.uR,this.C,new yc(this.OQ));if(nd(I,{WV:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],C7:["LAYOUT_TYPE_SURVEY"]}))return new ig(b,I,F,this.sI,this.U,this.OQ,this.uR);if(nd(I, {WV:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],C7:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new qh(b,I,F,this.sI,this.EQ);if(nd(I,xc_()))return new IT(b,I,F,this.sI,this.OQ,this.uR);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};RJG.prototype.build=function(F,J,b,I){if(J=v4(F,b,I,this.sI,this.OQ,this.EQ,this.Z,this.C,this.uR))return J;if(nd(I,Cq7()))return new mq(b,I,this.EQ,this.X4,this.sI,F,this.U,this.T,this.OQ,this.D7,this.uR,this.C,new yc(this.OQ));if(nd(I,$Ga()))return new gI(b,I,this.EQ,this.X4,this.sI,F,this.U,this.OQ,this.D7,this.uR,this.C,new yc(this.OQ));throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory."); };g.z(zJ,J1);zJ.prototype.startRendering=function(F){J1.prototype.startRendering.call(this,F);if(F.renderingContent?Ork(F,gM(this.QG.get(),2)||void 0):uL(this.layout.clientMetadata,"metadata_ad_video_is_listed"))F=F.renderingContent?kho(F,gM(this.QG.get(),2)||void 0):uL(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.Ma.get().G.jE("onAdMetadataAvailable",F)};kp4.prototype.build=function(F,J,b,I){if(nd(I,DGo())||I.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.O(I.renderingContent,wk)!==void 0)return new zJ(F,b,I,this.sI,this.OQ,this.EQ,this.U,this.Ma,this.C,this.QG);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};Op4.prototype.build=function(F,J,b,I){if(nd(I,DGo()))return new zJ(F,b,I,this.sI,this.OQ,this.EQ,this.U,this.Ma,this.C,this.QG);if(F=v4(F,b,I,this.sI,this.OQ,this.EQ,this.U,this.C,this.uR))return F;throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};DM.prototype.clone=function(F){var J=this;return new DM(function(){return J.triggerId},F)};kA.prototype.clone=function(F){var J=this;return new kA(function(){return J.triggerId},F)};OC.prototype.clone=function(F){var J=this;return new OC(function(){return J.triggerId},F)};oS.prototype.clone=function(F){var J=this;return new oS(function(){return J.triggerId},F)};cS.prototype.clone=function(F){var J=this;return new cS(function(){return J.triggerId},F)};UC.prototype.clone=function(F){var J=this;return new UC(function(){return J.triggerId},F)};g.z(S5,g.R);var uU4={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 LU={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],z1:[],layoutExitUserInputSubmittedTriggers:[]};var s7={YkG:1,jcz:2,nRW:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.z(gw,g.R);g.A=gw.prototype;g.A.Ot=function(F){if(this.C)q_("Unexpected multiple fetch instructions for the current content");else{this.C=F;F=g.N(this.cV.get().KX);for(var J=F.next();!J.done;J=F.next())Wso(this,this.C,J.value)}}; g.A.FB=function(F){if(!this.C){var J;(J=this.RC)==null||J.get().Jx(F.identifier);return!1}Wso(this,this.C,F);return!0}; g.A.u3=function(){}; g.A.a6=function(F){this.C&&this.C.contentCpn!==F&&(q_("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.C.contentCpn}),this.C=null)}; g.A.mW=function(F){this.C&&this.C.contentCpn!==F&&q_("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.C.contentCpn},!0);this.C=null}; g.A.X_=function(){g.R.prototype.X_.call(this);this.C=null};var lY=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],WL5=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.z(iS,g.R);g.A=iS.prototype;g.A.bT=function(F,J){var b=this;if(J.layoutType==="LAYOUT_TYPE_MEDIA"&&(Fu(J,this.W)||Fu(J,WL5))){var I=gM(this.QG.get(),2),u=this.Z(J,I||void 0);u?pd(this.T.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var w=[gGY(b.C.get(),u.contentCpn,u.Dq,function(M){return b.D(M.slotId,"core",u,ai(b.P1.get(),M))},u.inPlayerSlotId)]; u.instreamAdPlayerUnderlayRenderer&&x8(b.uR.get())&&w.push(Gua(b,u,u.instreamAdPlayerUnderlayRenderer));return w}):q_("Expected MediaLayout to carry valid opportunity on entered",F,J)}}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.d0=function(){}; g.A.tX=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.A_=function(){};g.z(z2,g.R);z2.prototype.a6=function(F,J,b,I,u,w,M){var q=this,v=gM(this.QG.get(),1);!Un(this.uR.get(),"html5_ssap_play_cached_preroll")&&v.Ta?A7(this.OQ.get()):(mAo(this.qI.get(),I),pd(this.U.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return GcG(q.C.get(),I,u,w,F,J,M,v,"")}),iPo(this.T))}; z2.prototype.mW=function(){};g.z(N0,g.R);g.z(lS,g.R);lS.prototype.onCueRangeEnter=function(){}; lS.prototype.onCueRangeExit=function(F){var J=this,b=this.C.get(F);b&&(this.C.delete(F),this.h_.get().removeCueRange(F),pd(this.U.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var I=J.T.get();I=gq(I.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},b,{slotId:I,slotEntryTrigger:b.slotEntryTrigger?xRo(b.slotId,I,b.slotEntryTrigger):void 0,slotFulfillmentTriggers:nYG(b.slotId,I,b.slotFulfillmentTriggers),slotExpirationTriggers:nYG(b.slotId,I,b.slotExpirationTriggers)})]}, b.slotId))}; lS.prototype.a6=function(){for(var F=g.N(this.C.keys()),J=F.next();!J.done;J=F.next())J=J.value,this.h_.get().removeCueRange(J);this.C.clear()}; lS.prototype.mW=function(){};g.z(fm,g.R);g.A=fm.prototype;g.A.mu=function(){}; g.A.Bh=function(F){var J=this;g.tC(g.HK(),function(){var b=J.C.get(F);b&&q_("Expected layouts to be properly unscheduled",F,void 0,{slotType:F.slotType,layoutTypes:[].concat(g.W(b)).map(function(I){return I.layoutType})})},0)}; g.A.d0=function(){}; g.A.tX=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(F,J){this.C.has(F)||this.C.set(F,new Set);this.C.get(F).add(J)}; g.A.fd=function(F,J){this.ML.has(F)&&this.ML.get(F)===J&&q_("Unscheduled a Layout that is currently entered.",F,J);if(this.C.has(F)){var b=this.C.get(F);b.has(J)?(b.delete(J),b.size===0&&this.C.delete(F)):q_("Trying to unscheduled a Layout that was not scheduled.",F,J)}else q_("Trying to unscheduled a Layout that was not scheduled.",F,J)}; g.A.bT=function(F,J){this.ML.set(F,J)}; g.A.A_=function(F){this.ML.delete(F)}; g.A.Y7=function(){};g.A=PQY.prototype;g.A.init=function(){}; g.A.Bb=function(){return this.slot}; g.A.hs=function(){this.callback.d0(this.slot)}; g.A.KV=function(){this.callback.lx(this.slot)}; g.A.release=function(){};Ep.prototype.build=function(F,J){return new PQY(F,J)};g.A=BT3.prototype;g.A.init=function(){}; g.A.Bb=function(){return this.slot}; g.A.hs=function(){vn(this.OQ.get(),"ad-showing");this.callback.d0(this.slot)}; g.A.KV=function(){this.callback.lx(this.slot);aL(this.OQ.get(),"ad-showing")}; g.A.release=function(){};g.A=TTY.prototype;g.A.init=function(){}; g.A.Bb=function(){return this.slot}; g.A.hs=function(){vn(this.OQ.get(),"ad-showing");vn(this.OQ.get(),"ad-interrupting");this.U=this.OQ.get().isAtLiveHead();this.C=Math.ceil(Date.now()/1E3);this.callback.d0(this.slot)}; g.A.KV=function(){aL(this.OQ.get(),"ad-showing");aL(this.OQ.get(),"ad-interrupting");var F=this.U?Infinity:qi(this.OQ.get(),1,!0)+Math.floor(Date.now()/1E3)-this.C;this.OQ.get().G.seekTo(F,void 0,void 0,1);this.callback.lx(this.slot)}; g.A.release=function(){};g.A=rp3.prototype;g.A.init=function(){}; g.A.Bb=function(){return this.slot}; g.A.hs=function(){vn(this.OQ.get(),"ad-showing");vn(this.OQ.get(),"ad-interrupting");this.callback.d0(this.slot)}; g.A.KV=function(){A7(this.OQ.get());aL(this.OQ.get(),"ad-showing");aL(this.OQ.get(),"ad-interrupting");this.callback.lx(this.slot)}; g.A.release=function(){A7(this.OQ.get())};jy.prototype.build=function(F,J){if(Me(J,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new BT3(F,J,this.OQ);if(J.slotEntryTrigger instanceof Sj&&Me(J,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new TTY(F,J,this.OQ);if(Me(J,[],"SLOT_TYPE_PLAYER_BYTES"))return new rp3(F,J,this.OQ);throw new Z("Unsupported slot with type "+J.slotType+" and client metadata: "+(wX(J.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.z(G2,g.R);G2.prototype.C=function(F){for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next()){I=I.value;var u=I.trigger;u instanceof RS&&I.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&u.triggeringLayoutId===F&&J.push(I)}J.length?Pq(this.HI(),J):q_("Mute requested but no registered triggers can be activated.")};g.z(PN,G2);g.A=PN.prototype;g.A.Oo=function(F,J){if(J)if(F==="skip-button"){F=[];for(var b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next()){I=I.value;var u=I.trigger;u instanceof RS&&I.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&u.triggeringLayoutId===J&&F.push(I)}F.length&&Pq(this.HI(),F)}else Un(this.uR.get(),"supports_multi_step_on_desktop")?F==="ad-action-submit-survey"&&V6(this,J):F==="survey-submit"?V6(this,J):F==="survey-single-select-answer-button"&&V6(this,J)}; g.A.dA=function(F){G2.prototype.C.call(this,F)}; g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof xA||J instanceof RS))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in AdUxUpdateTriggerAdapter.");this.iT.set(J.triggerId,new tb(F,J,b,I))}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.Mt=function(){}; g.A.fb=function(){}; g.A.qy=function(){};g.z(BN,g.R);g.A=BN.prototype; g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof DM||J instanceof kA||J instanceof OC||J instanceof oS||J instanceof cS||J instanceof UC||J instanceof $A||J instanceof jj||J instanceof Vc||J instanceof GJ||J instanceof YA||J instanceof EC))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in AdsControlFlowEventTriggerAdapter");F=new tb(F,J,b,I);this.iT.set(J.triggerId,F);J instanceof cS&&this.D.has(J.triggeringSlotId)&&Pq(this.C(),[F]);J instanceof DM&&this.T.has(J.triggeringSlotId)&&Pq(this.C(),[F]);J instanceof jj&&this.U.has(J.triggeringLayoutId)&&Pq(this.C(),[F])}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.mu=function(F){this.D.add(F.slotId);for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value,I.trigger instanceof cS&&F.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&Pq(this.C(),J)}; g.A.Bh=function(F){this.D.delete(F.slotId);for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next()){I=I.value;var u=I.trigger;u instanceof UC&&u.triggeringSlotId===F.slotId&&J.push(I)}J.length>0&&Pq(this.C(),J)}; g.A.tX=function(F){for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next()){I=I.value;var u=I.trigger;u instanceof $A&&u.slotType===F.slotType&&u.C!==F.slotId&&J.push(I)}J.length>0&&Pq(this.C(),J)}; g.A.d0=function(F){this.T.add(F.slotId);for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value,I.trigger instanceof DM&&F.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&Pq(this.C(),J)}; g.A.lx=function(F){this.T.delete(F.slotId);this.Z.add(F.slotId);for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())if(I=I.value,I.trigger instanceof kA)F.slotId===I.trigger.triggeringSlotId&&J.push(I);else if(I.trigger instanceof EC){var u=I.trigger;F.slotId===u.slotId&&this.U.has(u.triggeringLayoutId)&&J.push(I)}J.length>0&&Pq(this.C(),J)}; g.A.xj=function(F){for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value,I.trigger instanceof OC&&F.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&Pq(this.C(),J)}; g.A.F3=function(F){for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value,I.trigger instanceof oS&&F.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&Pq(this.C(),J)}; g.A.gq=function(F,J){this.W.add(J.layoutId)}; g.A.fd=function(F,J){this.W.delete(J.layoutId)}; g.A.bT=function(F,J){this.U.add(J.layoutId);for(var b=[],I=g.N(this.iT.values()),u=I.next();!u.done;u=I.next())if(u=u.value,u.trigger instanceof jj)J.layoutId===u.trigger.triggeringLayoutId&&b.push(u);else if(u.trigger instanceof YA){var w=u.trigger;F.slotType===w.slotType&&J.layoutType===w.layoutType&&J.layoutId!==w.C&&b.push(u)}else u.trigger instanceof EC&&(w=u.trigger,J.layoutId===w.triggeringLayoutId&&this.Z.has(w.slotId)&&b.push(u));b.length>0&&Pq(this.C(),b)}; g.A.A_=function(F,J,b){this.U.delete(J.layoutId);F=[];for(var I=g.N(this.iT.values()),u=I.next();!u.done;u=I.next())if(u=u.value,u.trigger instanceof Vc&&J.layoutId===u.trigger.triggeringLayoutId&&F.push(u),u.trigger instanceof GJ){var w=u.trigger;J.layoutId===w.triggeringLayoutId&&w.C.includes(b)&&F.push(u)}F.length>0&&Pq(this.C(),F)}; g.A.Y7=function(){}; g.A.a6=function(){this.Z.clear()}; g.A.mW=function(){};g.z(T2,g.R);T2.prototype.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof WS))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CloseRequestedTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; T2.prototype.CD=function(F){this.iT.delete(F.triggerId)};g.z(Sy,g.R);Sy.prototype.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof fi||J instanceof Xq))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; Sy.prototype.CD=function(F){this.iT.delete(F.triggerId)}; Sy.prototype.a6=function(F){for(var J=[],b=J.push,I=b.apply,u=[],w=g.N(this.iT.values()),M=w.next();!M.done;M=w.next())M=M.value,M.trigger instanceof fi&&M.trigger.fI===F&&u.push(M);I.call(b,J,g.W(u));b=J.push;I=b.apply;u=[];w=g.N(this.iT.values());for(M=w.next();!M.done;M=w.next())M=M.value,M.trigger instanceof Xq&&M.trigger.C!==F&&u.push(M);I.call(b,J,g.W(u));J.length&&Pq(this.C(),J)}; Sy.prototype.mW=function(F){for(var J=[],b=J.push,I=b.apply,u=[],w=g.N(this.iT.values()),M=w.next();!M.done;M=w.next()){M=M.value;var q=M.trigger;q instanceof Xq&&q.C===F&&u.push(M)}I.call(b,J,g.W(u));J.length&&Pq(this.C(),J)};g.z(sp,g.R);g.A=sp.prototype;g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");var u="adtriggercuerange:"+J.triggerId;if(J instanceof Sj)Stv(this,F,J,b,I,u,J.C.start,J.C.end,J.fI,J.visible);else if(J instanceof dI)Stv(this,F,J,b,I,u,0x7ffffffffffff,0x8000000000000,J.fI,J.visible);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CueRangeTriggerAdapter");}; g.A.CD=function(F){var J=this.iT.get(F.triggerId);J&&this.h_.get().removeCueRange(J.cueRangeId);this.iT.delete(F.triggerId)}; g.A.onCueRangeEnter=function(F){var J=sdJ(this,F);if(J&&(J=this.iT.get(J)))if(g.x(Fm(this.OQ.get()),32))this.C.add(J.cueRangeId);else{var b=J==null?void 0:J.lh.trigger;if(b instanceof Sj||b instanceof dI){if(fF(this.context.uR.get())){var I=J.lh.slot,u=J.lh.layout,w={};this.context.P9.Ck("cre",(w.ca=J.lh.category,w.tt=b.triggerType,w.st=I.slotType,w.lt=u==null?void 0:u.layoutType,w.cid=F,w))}Pq(this.U(),[J.lh])}}}; g.A.onCueRangeExit=function(F){(F=sdJ(this,F))&&(F=this.iT.get(F))&&this.C.delete(F.cueRangeId)}; g.A.jT=function(F){if(aJ(F,16)<0){F=g.N(this.C);for(var J=F.next();!J.done;J=F.next())this.onCueRangeEnter(J.value,!0);this.C.clear()}}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.Y7=function(){}; g.A.mP=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.onVolumeChange=function(){}; g.A.nF=function(){}; g.A.c9=function(){};g.z(Yf,g.R);g.A=Yf.prototype; g.A.cS=function(F,J,b,I){if(this.U.has(J.triggerId)||this.T.has(J.triggerId))throw new Z("Tried to re-register the trigger.");F=new tb(F,J,b,I);if(F.trigger instanceof rI)this.U.set(F.trigger.triggerId,F);else if(F.trigger instanceof PS)this.T.set(F.trigger.triggerId,F);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(F.trigger.triggerId)&&F.slot.slotId===this.C&&Pq(this.Z(),[F])}; g.A.CD=function(F){this.U.delete(F.triggerId);this.T.delete(F.triggerId)}; g.A.CZ=function(F){F=F.slotId;if(this.C!==F){var J=[];this.C!=null&&J.push.apply(J,g.W(YtY(this.T,this.C)));F!=null&&J.push.apply(J,g.W(YtY(this.U,F)));this.C=F;J.length&&Pq(this.Z(),J)}}; g.A.cq=function(){}; g.A.mX=function(){};g.z($f,g.R);g.A=$f.prototype;g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof Ci))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){};g.z(Cm,g.R);g.A=Cm.prototype;g.A.Y7=function(F,J){for(var b=[],I=g.N(this.iT.values()),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.trigger;w.opportunityType===F&&(w.associatedSlotId&&w.associatedSlotId!==J||b.push(u))}b.length&&Pq(this.C(),b)}; g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof hiY))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OpportunityEventTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.bT=function(){}; g.A.A_=function(){};g.z(XZ,g.R);g.A=XZ.prototype;g.A.cS=function(F,J,b,I){F=new tb(F,J,b,I);if(J instanceof BS||J instanceof sC||J instanceof TJ||J instanceof Qc||J instanceof okC){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");this.iT.set(J.triggerId,F);b=b.slotId;F=this.T.has(b)?this.T.get(b):new Set;F.add(J);this.T.set(b,F)}else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in PrefetchTriggerAdapter");}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.mu=function(F){var J=F.slotId;if(this.T.has(J)){F=0;var b=new Set;J=g.N(this.T.get(J));for(var I=J.next();!I.done;I=J.next())if(I=I.value,b.add(I.triggerId),I instanceof sC&&I.breakDurationMs){F=I.breakDurationMs;break}Q6(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",F,b)}}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.Y7=function(){}; g.A.FB=function(F){if(this.C){this.U&&this.U.stop();this.Z&&g.Z_(this.Z);F=F.Bg*1E3+1E3;for(var J=0,b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value.trigger,I instanceof BS&&I.breakDurationMs<=F&&I.breakDurationMs>J&&(J=I.breakDurationMs);F=J;if(F>0)return Q6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",F,new Set,!0),Q6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",F,new Set,!1),!0}return!1}; g.A.u3=function(){}; g.A.a6=function(F){this.C&&this.C.contentCpn!==F?(q_("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.C.contentCpn}),Rn(this)):CQG(this)}; g.A.mW=function(F){this.C&&this.C.contentCpn!==F&&q_("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.C.contentCpn},!0);Rn(this)}; g.A.Ot=function(F){var J=this;if(this.C)q_("Unexpected multiple fetch instructions for the current content");else{this.C=F;F=Qdo(F);this.U=new g.ty(function(){CQG(J)},F?F:6E5); this.U.start();this.Z=new g.ty(function(){J.C&&(J.U&&(J.U.stop(),J.U.start()),$RJ(J,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},XMJ(this.C)); F=this.OQ.get().getCurrentTimeSec(1,!1);for(var b=g.N(this.cV.get().KX),I=b.next();!I.done;I=b.next())I=I.value,Lx(this.EQ.get(),"nocache","ct."+Date.now()+";cmt."+F+";d."+I.Bg.toFixed(3)+";tw."+(I.startSecs-F)+";cid."+I.identifier+";")}}; g.A.X_=function(){g.R.prototype.X_.call(this);Rn(this)};g.z(DX,g.R);g.A=DX.prototype;g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof ni))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I));F=this.C.has(J.triggeringLayoutId)?this.C.get(J.triggeringLayoutId):new Set;F.add(J);this.C.set(J.triggeringLayoutId,F)}; g.A.CD=function(F){this.iT.delete(F.triggerId);if(!(F instanceof ni))throw new Z("Incorrect TriggerType: Tried to unregister trigger of type "+F.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var J=this.U.get(F.triggerId);J&&(J.dispose(),this.U.delete(F.triggerId));if(J=this.C.get(F.triggeringLayoutId))J.delete(F),J.size===0&&this.C.delete(F.triggeringLayoutId)}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.bT=function(F,J){var b=this;if(this.C.has(J.layoutId)){F=this.C.get(J.layoutId);F=g.N(F);var I=F.next();for(J={};!I.done;J={BM:void 0},I=F.next())J.BM=I.value,I=new g.ty(function(u){return function(){var w=b.iT.get(u.BM.triggerId);Pq(b.T(),[w])}}(J),J.BM.durationMs),I.start(),this.U.set(J.BM.triggerId,I)}}; g.A.A_=function(){};g.z(kf,g.R);kf.prototype.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof Nh))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in VideoTransitionTriggerAdapter.");this.iT.set(J.triggerId,new tb(F,J,b,I))}; kf.prototype.CD=function(F){this.iT.delete(F.triggerId)};cN.prototype.gt=function(F){return F.kind==="AD_PLACEMENT_KIND_START"};g.z(nm,g.R);g.A=nm.prototype;g.A.logEvent=function(F){this.A3(F)}; g.A.k0=function(F,J,b){this.A3(F,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,void 0,b)}; g.A.Ah=function(F,J,b,I){this.A3(F,void 0,void 0,void 0,J,b?b:void 0,void 0,void 0,J.adSlotLoggingData,b?b.adLayoutLoggingData:void 0,void 0,I)}; g.A.VA=function(F,J,b,I){Un(this.uR.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+F,"trigger:",b,"slot:",J,"layout:",I);vq(this.C.get())&&this.A3(F,void 0,void 0,void 0,J,I?I:void 0,void 0,b,J.adSlotLoggingData,I?I.adLayoutLoggingData:void 0)}; g.A.Q4=function(F,J,b,I,u){this.A3(F,J,b,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,u)}; g.A.kK=function(F,J,b,I){this.A3("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,b,I,void 0,void 0,b.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,{errorType:F,errorMessage:J})}; g.A.A3=function(F,J,b,I,u,w,M,q,v,a,e,K){var p=this;K=K===void 0?0:K;Un(this.uR.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+F,"slot:",u,"layout:",w,"ping:",M,"Opportunity:",{opportunityType:J,associatedSlotId:b,diE:I,HPj:q,adSlotLoggingData:v,adLayoutLoggingData:a});try{var m=function(){if(!p.uR.get().G.J().S("html5_disable_client_tmp_logs")&&F!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){F||q_("Empty PACF event type",u,w);var y=vq(p.C.get()),f={eventType:F,eventOrder:++p.eventCount},d={}; u&&(d.slotData=qe(y,u));w&&(d.layoutData=f4C(y,w));M&&(d.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:M.C.serializedAdPingMetadata,pingIndex:M.index});q&&(d.triggerData=Aj(q.trigger,q.category));J&&(d.opportunityData=Wia(y,J,b,I));y={organicPlaybackContext:{contentCpn:gM(p.QG.get(),1).clientPlaybackNonce}};y.organicPlaybackContext.isLivePlayback=gM(p.QG.get(),1).MW;var G;y.organicPlaybackContext.isMdxPlayback=(G=gM(p.QG.get(),1))==null?void 0:G.isMdxPlayback; var P;if((P=gM(p.QG.get(),1))==null?0:P.daiEnabled)y.organicPlaybackContext.isDaiContent=!0;var r;if(G=(r=gM(p.QG.get(),2))==null?void 0:r.clientPlaybackNonce)y.adVideoPlaybackContext={adVideoCpn:G};y&&(d.externalContext=y);f.adClientData=d;v&&(f.serializedSlotAdServingData=v.serializedSlotAdServingDataEntry);a&&(f.serializedAdServingData=a.serializedAdServingDataEntry);e&&(f.errorInfo=e);g.AY("adsClientStateChange",{adsClientEvent:f})}}; K&&K>0?g.tC(g.HK(),function(){return m()},K):m()}catch(y){Un(this.uR.get(),"html5_log_pacf_logging_errors")&&g.tC(g.HK(),function(){q_(y instanceof Error?y:String(y),u,w,{pacf_message:"exception during pacf logging"})})}};var duW=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.z(tc,nm);g.A=tc.prototype; g.A.k0=function(F,J,b){nm.prototype.k0.call(this,F,J,b);fF(this.uR.get())&&(b={},this.context.P9.Ck("pacf",(b.et=F,b.st=J.slotType,b.si=J.slotId,b)))}; g.A.Ah=function(F,J,b,I){var u=duW.has(F);nm.prototype.Ah.call(this,F,J,b,I);fF(this.uR.get(),u)&&(I={},this.context.P9.Ck("pacf",(I.et=F,I.st=J.slotType,I.si=J.slotId,I.lt=b==null?void 0:b.layoutType,I.li=b==null?void 0:b.layoutId,I.p_ac=b==null?void 0:b.layoutId,I)))}; g.A.Q4=function(F,J,b,I,u){nm.prototype.Q4.call(this,F,J,b,I,u);fF(this.uR.get())&&(b={},this.context.P9.Ck("pacf",(b.et=F,b.ot=J,b.ss=I==null?void 0:I.length,b)))}; g.A.VA=function(F,J,b,I){nm.prototype.VA.call(this,F,J,b,I);if(fF(this.uR.get())){var u={};this.context.P9.Ck("pacf",(u.et=F,u.tt=b.trigger.triggerType,u.tc=b.category,u.st=J.slotType,u.si=J.slotId,u.lt=I==null?void 0:I.layoutType,u.li=I==null?void 0:I.layoutId,u.p_ac=I==null?void 0:I.layoutId,u))}}; g.A.kK=function(F,J,b,I){nm.prototype.kK.call(this,F,J,b,I);if(fF(this.uR.get(),!0)){var u={};this.context.P9.Ck("perror",(u.ert=F,u.erm=J,u.st=b.slotType,u.si=b.slotId,u.lt=I==null?void 0:I.layoutType,u.li=I==null?void 0:I.layoutId,u.p_ac=I==null?void 0:I.layoutId,u))}}; g.A.A3=function(F,J,b,I,u,w,M,q,v,a,e){if(g.jB(this.uR.get().G.J())){var K=this.uR.get();K=g.eB(K.G.J().experiments,"H5_async_logging_delay_ms")}else K=void 0;nm.prototype.A3.call(this,F,J,b,I,u,w,M,q,v,a,e,K)};ZX.prototype.clear=function(){this.C.clear()};Fa.prototype.resolve=function(F){HN(this,F)}; Fa.prototype.reject=function(F){Lm(this,F)}; Fa.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; Fa.prototype.wait=function(){var F=this;return function b(){return pav(b,function(I){if(I.C==1)return g.f3(I,2),g.T(I,{Z9:F},4);if(I.C!=2)return I.return(I.U);g.Em(I);return g.jz(I,0)})}()}; var vOC=UX(function(F){return J8(F)?F instanceof Fa:!1});var ax=window.Toz||"en";gB.prototype.r5=function(F){this.client=F}; gB.prototype.C=function(){this.clear();this.csn=g.W8()}; gB.prototype.clear=function(){this.T.clear();this.U.clear();this.Z.clear();this.csn=null};yA.prototype.r5=function(F){g.tE(mB().r5).bind(mB())(F)}; yA.prototype.clear=function(){g.tE(mB().clear).bind(mB())()};g.A=zR.prototype;g.A.r5=function(F){this.client=F}; g.A.vy=function(F,J){var b=this;J=J===void 0?{}:J;g.tE(function(){var I,u,w,M=((I=g.O(F==null?void 0:F.commandMetadata,g.Nm))==null?void 0:I.rootVe)||((u=g.O(F==null?void 0:F.commandMetadata,D8L))==null?void 0:(w=u.screenVisualElement)==null?void 0:w.uiType);if(M){I=g.O(F==null?void 0:F.commandMetadata,MJ8);if(I==null?0:I.parentTrackingParams){var q=g.NY(I.parentTrackingParams);if(I.parentCsn)var v=I.parentCsn}else J.clickedVisualElement?q=J.clickedVisualElement:F.clickTrackingParams&&(q=g.NY(F.clickTrackingParams)); a:{I=g.O(F,g.x$);u=g.O(F,LRL);if(I){if(u=bTm(I,"VIDEO")){I={token:u,videoId:I.videoId};break a}}else if(u&&(I=bTm(u,"PLAYLIST"))){I={token:I,playlistId:u.playlistId};break a}I=void 0}J=Object.assign({},{cttAuthInfo:I,parentCsn:v},J);if(g.Nk("expectation_logging")){var a;J.loggingExpectations=((a=g.O(F==null?void 0:F.commandMetadata,D8L))==null?void 0:a.loggingExpectations)||void 0}lf(b,M,q,J)}else g.rQ(new g.hC("Error: Trying to create a new screen without a rootVeType",F))})()}; g.A.clickCommand=function(F,J,b){F=F.clickTrackingParams;b=b===void 0?0:b;F?(b=g.W8(b===void 0?0:b))?(ql7(this.client,b,g.NY(F),J),J=!0):J=!1:J=!1;return J}; g.A.stateChanged=function(F,J,b){this.visualElementStateChanged(g.NY(F),J,b===void 0?0:b)}; g.A.visualElementStateChanged=function(F,J,b){b=b===void 0?0:b;b===0&&this.U.has(b)?this.Y.push([F,J]):Ajv(this,F,J,b)};Er.prototype.fetch=function(F,J,b){var I=this,u=aYk(F,J,b);return new Promise(function(w,M){function q(){if(b==null?0:b.m5)try{var a=I.handleResponse(F,u.status,u.response,b);w(a)}catch(e){M(e)}else w(I.handleResponse(F,u.status,u.response,b))} u.onerror=q;u.onload=q;var v;u.send((v=J.body)!=null?v:null)})}; Er.prototype.handleResponse=function(F,J,b,I){b=b.replace(")]}'","");try{var u=JSON.parse(b)}catch(w){g.rQ(new g.hC("JSON parsing failed after XHR fetch",F,J,b));if((I==null?0:I.m5)&&b)throw new g.FS(1,"JSON parsing failed after XHR fetch");u={}}J!==200&&(g.rQ(new g.hC("XHR API fetch failed",F,J,b)),u=Object.assign({},u,{errorMetadata:{status:J}}));return u};jv.getInstance=function(){var F=g.kC("ytglobal.storage_");F||(F=new jv,g.RG("ytglobal.storage_",F));return F}; jv.prototype.estimate=function(){var F,J,b;return g.S(function(I){F=navigator;return((J=F.storage)==null?0:J.estimate)?I.return(F.storage.estimate()):((b=F.webkitTemporaryStorage)==null?0:b.queryUsageAndQuota)?I.return(eKv()):I.return()})}; g.RG("ytglobal.storageClass_",jv);wZ.prototype.AN=function(F){this.handleError(F)}; wZ.prototype.logEvent=function(F,J){switch(F){case "IDB_DATA_CORRUPTED":g.Nk("idb_data_corrupted_killswitch")||this.C("idbDataCorrupted",J);break;case "IDB_UNEXPECTEDLY_CLOSED":this.C("idbUnexpectedlyClosed",J);break;case "IS_SUPPORTED_COMPLETED":g.Nk("idb_is_supported_completed_killswitch")||this.C("idbIsSupportedCompleted",J);break;case "QUOTA_EXCEEDED":pq3(this,J);break;case "TRANSACTION_ENDED":this.T&&Math.random()<=.1&&this.C("idbTransactionEnded",J);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":F= Object.assign({},J,{hasWindowUnloaded:this.U}),this.C("idbTransactionAborted",F)}};var cI={},nAk=g.H$("yt-player-local-media",{ET:(cI.index={Sp:2},cI.media={Sp:2},cI.captions={Sp:5},cI),shared:!1,upgrade:function(F,J){J(2)&&(g.Vb(F,"index"),g.Vb(F,"media"));J(5)&&g.Vb(F,"captions");J(6)&&(P$(F,"metadata"),P$(F,"playerdata"))}, version:5});var Ept={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},Uu;a:{var xE=g.Bk();xE=xE.toLowerCase();if(g.E1(xE,"android")){var jFt=xE.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(jFt){var Gam=parseFloat(jFt[1]);if(Gam<100){Uu=Gam;break a}}var V2W=xE.match("("+Object.keys(Ept).join("|")+")");Uu=V2W?Ept[V2W[0]]:0}else Uu=void 0}var Vi=Uu,GB=Vi>=0;var Jf_=window;var gXz=eP(function(){var F,J;return(J=(F=window).matchMedia)==null?void 0:J.call(F,"(prefers-reduced-motion: reduce)").matches});var VA;g.GR=new Vo;VA=0;var PX={CJ:function(F,J){var b=F[0];F[0]=F[J%F.length];F[J%F.length]=b}, Hb:function(F,J){F.splice(0,J)}, nM:function(F){F.reverse()}};var gc3=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var UD=WOv()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.c$?!0:!1;var UOJ={qaE:"adunit",YJj:"detailpage",CFN:"editpage",U_R:"embedded",tBD:"leanback",ydj:"previewpage",YYD:"profilepage",T3:"unplugged",vKj:"playlistoverview",hhj:"sponsorshipsoffer",ijI:"shortspage",BZ_:"handlesclaiming",I2N:"immersivelivepage",v_v:"creatormusic",r4Q:"immersivelivepreviewpage",Rcz:"admintoolyurt",DaD:"shortsaudiopivot",zVf:"consumption"};var n4,Pvt,By;n4={};g.QA=(n4.STOP_EVENT_PROPAGATION="html5-stop-propagation",n4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",n4.IV_DRAWER_OPEN="ytp-iv-drawer-open",n4.MAIN_VIDEO="html5-main-video",n4.VIDEO_CONTAINER="html5-video-container",n4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",n4.HOUSE_BRAND="house-brand",n4);Pvt={};By=(Pvt.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Pvt.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Pvt);var BX3={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var sVa={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},Yh4={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"},eH7={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var g8z={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.t8.prototype.getLanguageInfo=function(){return this.j3}; g.t8.prototype.getXtags=function(){if(!this.xtags){var F=this.id.split(";");F.length>1&&(this.xtags=F[1])}return this.xtags}; g.t8.prototype.toString=function(){return this.j3.name}; g.t8.prototype.getLanguageInfo=g.t8.prototype.getLanguageInfo;Zo.prototype.Hg=function(F){return this.U===F.U&&this.C===F.C&&this.T===F.T&&this.reason===F.reason&&(!La||this.LW===F.LW)}; Zo.prototype.isLocked=function(){return this.T&&!!this.U&&this.U===this.C}; Zo.prototype.compose=function(F){if(F.T&&Fh(F))return QE;if(F.T||Fh(this))return F;if(this.T||Fh(F))return this;var J=this.U&&F.U?Math.max(this.U,F.U):this.U||F.U,b=this.C&&F.C?Math.min(this.C,F.C):this.C||F.C;J=Math.min(J,b);var I=0;La&&(I=this.LW!==0&&F.LW!==0?Math.min(this.LW,F.LW):this.LW===0?F.LW:this.LW);return La&&J===this.U&&b===this.C&&I===this.LW||!La&&J===this.U&&b===this.C?this:La?new Zo(J,b,!1,b===this.C&&I===this.LW?this.reason:F.reason,I):new Zo(J,b,!1,b===this.C?this.reason:F.reason)}; Zo.prototype.Z=function(F){return!F.video||La&&this.LW!==0&&this.LW<F.LW?!1:C6z(this,F.video.quality)}; var BU5=g.HX("auto","hd1080",!1,"l"),JaJ=g.HX("auto","large",!1,"l"),QE=g.HX("auto","auto",!1,"p"),La=!1;u9.prototype.W0=function(F){F=F||QE;for(var J=g.qN(this.videoInfos,function(M){return F.Z(M)}),b=[],I={},u=0;u<J.length;u++){var w=J[u].video; I[w.quality]||(b.push(w),I[w.quality]=!0)}return b}; u9.prototype.Jo=function(F){F=F||QE;return g.qN(this.videoInfos,function(J){return F.Z(J)})}; u9.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var FYG=new Set(["356"]);g.z(w_,g.R);w_.prototype.X_=function(){g.R.prototype.X_.call(this)};g.yJ.prototype.set=function(F,J){this.C[F]!==J&&(this.C[F]=J,this.url="")}; g.yJ.prototype.get=function(F){i9(this);return this.C[F]||null}; g.yJ.prototype.tF=function(){this.url||(this.url=Mgv(this));return this.url}; g.yJ.prototype.clone=function(){var F=new g.yJ(this.U,this.Z);F.scheme=this.scheme;F.path=this.path;F.T=this.T;F.C=g.To(this.C);F.url=this.url;return F}; var w4Y=[CRJ];g.A=g.ES.prototype;g.A.S9=function(F){this.segments.push(F)}; g.A.vF=function(F){return!!this.QB(F)}; g.A.getDuration=function(F){return(F=this.QB(F))?F.duration:0}; g.A.dR=function(F){return this.getDuration(F)}; g.A.Yg=function(){return 0}; g.A.nj=function(){return this.segments.length?this.segments[0].Mf:-1}; g.A.Ze=function(F){return(F=this.QB(F))?F.ingestionTime:NaN}; g.A.oC=function(){return this.segments.length?this.segments[this.segments.length-1].Mf:-1}; g.A.kD=function(F){return this.oC()===F&&!this.U&&F>=0}; g.A.cn=function(){var F=this.segments[this.segments.length-1];return F?F.endTime:NaN}; g.A.Ho=function(){return this.segments[0].startTime}; g.A.iA=function(){return this.segments.length}; g.A.VB=function(){return 0}; g.A.Ea=function(F){return(F=this.uA(F))?F.Mf:-1}; g.A.XN=function(F){return(F=this.QB(F))?F.sourceURL:""}; g.A.getStartTime=function(F){return(F=this.QB(F))?F.startTime:0}; g.A.nV=function(F){return this.getStartTime(F)+this.getDuration(F)}; g.A.uf=bk(1);g.A.isLoaded=function(){return this.segments.length>0}; g.A.QB=function(F){if(this.C&&this.C.Mf===F)return this.C;F=g.AL(this.segments,new d_(F,0,0,0,""),function(J,b){return J.Mf-b.Mf}); return this.C=F>=0?this.segments[F]:null}; g.A.uA=function(F){if(this.C&&this.C.startTime<=F&&F<this.C.startTime+this.C.duration)return this.C;F=g.AL(this.segments,{startTime:F},function(J,b){return J.startTime-b.startTime}); return this.C=F>=0?this.segments[F]:this.segments[Math.max(0,-F-2)]}; g.A.append=function(F){if(F.length)if(F=g.JL(F),this.segments.length){var J=this.segments.length?g.ck(this.segments).endTime:0,b=F[0].Mf-this.oC();b>1&&H3G(this.segments);for(b=b>0?0:-b+1;b<F.length;b++){var I=F[b];I.startTime=J;I.endTime=I.startTime+I.duration;J+=F[b].duration;this.segments.push(F[b])}}else this.segments=F}; g.A.K2=function(){return 0};GK.prototype.skip=function(F){this.C+=F};eZ3.prototype.HS=function(){return new Uint8Array(this.data.buffer)};var tF={},TUm=(tF.predictStart="predictStart",tF.start="start",tF["continue"]="continue",tF.stop="stop",tF),KYk={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Ck.prototype.Hz=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"])}; Ck.prototype.toString=function(){for(var F="",J=g.N(Object.keys(this.data)),b=J.next();!b.done;b=J.next())b=b.value,F+=b+":"+this.data[b]+";";return F};tt.prototype.Uv=function(){var F=this.pos;this.pos=0;var J=!1;try{Fz(this,440786851)&&(this.pos=0,Fz(this,408125543)&&(J=!0))}catch(b){if(b instanceof RangeError)this.pos=0,J=!1,g.rQ(b);else throw b;}this.pos=F;return J};aA.prototype.set=function(F,J){this.XY.get(F);this.C[F]=J;this.url=""}; aA.prototype.get=function(F){return this.C[F]||this.XY.get(F)}; aA.prototype.tF=function(){this.url||(this.url=sT_(this));return this.url};mc.prototype.Xx=function(F,J){return F.NW?this.Y?this.W=!0:this.W=$M_(this,F,J):$M_(this,F,J)}; mc.prototype.U3=function(F){return this.T.get(F)}; mc.prototype.Vz=function(F,J){F.XY===this.C&&(this.C=eo(F,J));F.XY===this.Z&&(this.Z=eo(F,J))}; mc.prototype.iK=function(){return this.C!==this.Z&&!this.W};fo.prototype.VJ=function(){return!!this.C&&this.index.isLoaded()}; fo.prototype.Ne=function(){return!1}; fo.prototype.v7=function(F){return[F]}; fo.prototype.Iq=function(F){return[F]};W6.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.A=GC.prototype;g.A.aQ=function(){return this.Z&&this.C.index.kD(this.Mf)}; g.A.isEncrypted=function(){return this.C.info.isEncrypted()}; g.A.Hg=function(F){return!(!F||F.C!==this.C||F.type!==this.type||(this.range&&F.range?F.range.start!==this.range.start||F.range.end!==this.range.end:F.range!==this.range)||F.Mf!==this.Mf||F.U!==this.U||F.T!==this.T)}; g.A.v1=function(){return!!this.C.info.video}; g.A.uX=function(){var F=rG(this),J="";g.ie(F,function(b,I){J+=I+"_"+b+"_"}); return J.slice(0,-1)};sL.prototype.R9=function(){return this.C?this.C.tF():""}; sL.prototype.isDecorated=function(){return!!(this.C||this.Z&&this.Z.Zc)}; sL.prototype.Kj=function(){return V4(this.aI[0])}; sL.prototype.Vz=function(F,J){this.gw.Vz(F,J);if(this.C){this.C=eo(F,J);J=g.N(["acpns","cpn","daistate","skipsq"]);for(var b=J.next();!b.done;b=J.next())this.C.set(b.value,null)}this.requestId=F.get("req_id")};g.z(Xz,fo);g.A=Xz.prototype;g.A.pc=function(){return!1}; g.A.OL=function(){return!0}; g.A.a9=function(){return!1}; g.A.Ne=function(){return!this.D}; g.A.nu=function(){return new sL([new GC(1,this,this.initRange,"getMetadataRequestInfo")],this.D)}; g.A.dW=function(){return null}; g.A.qc=function(F){this.D$(F);return this.OL()&&F.T&&!F.Z?new sL([new GC(F.type,F.C,F.range,"liveGetNextRequestInfoBySegment",F.Mf,F.startTime,F.duration,F.U+F.T,NaN,!0)],this.index.XN(F.Mf)):this.iH(TC(F),!1)}; g.A.CA=function(F,J){J=J===void 0?!1:J;F=this.index.Ea(F);J&&(F=Math.min(this.index.oC(),F+1));return this.iH(F,!0)}; g.A.Eg=function(F){H6(F)}; g.A.D$=function(F){return F.T===0?!0:this.index.oC()>F.Mf&&this.index.nj()<=F.Mf+1}; g.A.update=function(F,J,b){this.index.append(F);vzk(this.index,b);F=this.index;F.U=J;F.T="update"}; g.A.VJ=function(){return this.Ne()?!0:fo.prototype.VJ.call(this)}; g.A.iH=function(F,J){var b=this.index.XN(F),I=this.index.getStartTime(F),u=this.index.getDuration(F),w;J?u=w=0:w=this.info.LW>0?this.info.LW*u:1E3;return new sL([new GC(3,this,void 0,"liveCreateRequestInfoForSegment",F,I,u,0,w,!J)],b)}; g.A.IK=function(){return this.Ne()?0:this.initRange.length}; g.A.RO=function(){return!1};Dc.prototype.update=function(F){var J=void 0;this.U&&(J=this.U);var b=new Dc,I=Array.from(F.getElementsByTagName("S"));if(I.length){var u=+Q4(F,"timescale")||1,w=(+I[0].getAttribute("t")||0)/u,M=+Q4(F,"startNumber")||0;b.Z=w;var q=J?J.startSecs+J.Bg:0,v=Date.parse(bBk(Q4(F,"yt:segmentIngestTime")))/1E3;b.D=F.parentElement.tagName==="SegmentTemplate";b.D&&(b.V=Q4(F,"media"));F=J?M-J.Mf:1;b.W=F>0?0:-F+1;F=g.N(I);for(I=F.next();!I.done;I=F.next()){I=I.value;for(var a=+I.getAttribute("d")/u,e=(+I.getAttribute("yt:sid")|| 0)/u,K=+I.getAttribute("r")||0,p=0;p<=K;p++)if(J&&M<=J.Mf)M++;else{var m=new F4_(M,q,a,v+e,w);b.C.push(m);var y=I;var f=u,d=m.startSecs;m=y.getAttribute("yt:cuepointTimeOffset");var G=y.getAttribute("yt:cuepointDuration");if(m&&G){m=Number(m);d=-m/f+d;f=Number(G)/f;G=y.getAttribute("yt:cuepointContext")||null;var P=y.getAttribute("yt:cuepointIdentifier")||"";y=y.getAttribute("yt:cuepointEvent")||"";y=new YZ(d,f,G,P,TUm[y]||"unknown",m)}else y=null;y&&b.T.push(y);M++;q+=a;w+=a;v+=a+e}}b.C.length&& (b.U=g.ck(b.C))}this.W=b.W;this.U=b.U||this.U;g.bV(this.C,b.C);g.bV(this.T,b.T);this.D=b.D;this.V=b.V;this.Z===-1&&(this.Z=b.getStreamTimeOffset())}; Dc.prototype.getStreamTimeOffset=function(){return this.Z===-1?0:this.Z};g.z(OL,g.ES);g.A=OL.prototype;g.A.Yg=function(){return this.x7}; g.A.vF=function(F,J){F=oA(this,F);return F>=0&&(J||!this.segments[F].pending)}; g.A.nj=function(){return this.Hu?this.segments.length?this.uA(this.Ho()).Mf:-1:g.ES.prototype.nj.call(this)}; g.A.Ho=function(){if(this.SF)return 0;if(!this.Hu)return g.ES.prototype.Ho.call(this);if(!this.segments.length)return 0;var F=Math.max(g.ck(this.segments).endTime-this.jD,0);return this.De>0&&this.uA(F).Mf<this.De?this.QB(this.De).startTime:F}; g.A.cn=function(){if(this.jf&&this.Jd&&this.Jd>0)return this.Jd/1E3;if(!this.segments.length)return g.ES.prototype.cn.call(this);var F=this.oC();if(!this.Hu||F<=this.segments[this.segments.length-1].Mf)F=this.segments[this.segments.length-1];else{var J=this.segments[this.segments.length-1];F=new d_(F,Math.max(0,J.startTime-(J.Mf-F)*this.x7),this.x7,0,"sq/"+F,void 0,void 0,!0)}return this.SF?Math.min(this.jD,F.endTime):F.endTime}; g.A.iA=function(){return this.Hu?this.segments.length?this.oC()-this.nj()+1:0:g.ES.prototype.iA.call(this)}; g.A.oC=function(){var F=Math.min(this.VN,Math.max(g.ES.prototype.oC.call(this),this.H0)),J=this.jD*1E3;J=this.Jd>0&&this.Jd<J;this.SF&&this.jD>0&&this.H0>0&&!J&&(J=this.uA(this.jD))&&(F=Math.min(J.Mf-1,F));return F}; g.A.pu=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.A.S9=function(F){var J=oA(this,F.Mf);if(J>=0)this.segments[J]=F;else if(this.segments.splice(-(J+1),0,F),this.gC&&F.Mf%(300/this.x7)===0){var b=this.segments[0].Mf,I=Math.floor(this.gC/this.x7);F=F.Mf-I;J=-(J+1)-I;J>0&&F>b&&(this.segments=this.segments.slice(J))}}; g.A.cY=function(){return this.H0}; g.A.kD=function(F){return km?!this.U&&F>=0&&this.oC()<=F:g.ES.prototype.kD.call(this,F)}; g.A.uA=function(F){if(!this.Hu)return g.ES.prototype.uA.call(this,F);if(!this.segments.length)return null;var J=this.segments[this.segments.length-1];if(F<this.segments[0].startTime)J=Math.max(0,this.segments[0].Mf-Math.ceil((this.segments[0].startTime-F)/this.x7));else if(F>=J.endTime)J=J.Mf+Math.floor((F-J.endTime)/this.x7+1);else{J=qL(this.segments,function(I){return F<I.startTime?-1:F>=I.endTime?1:0}); if(J>=0)return this.segments[J];var b=-(J+1);J=this.segments[b-1];b=this.segments[b];J=Math.floor((F-J.endTime)/((b.startTime-J.endTime)/(b.Mf-J.Mf-1))+1)+J.Mf}return this.QB(J)}; g.A.QB=function(F){if(!this.Hu)return g.ES.prototype.QB.call(this,F);if(!this.segments.length)return null;var J=oA(this,F);if(J>=0)return this.segments[J];var b=-(J+1);J=this.x7;if(b===0)var I=Math.max(0,this.segments[0].startTime-(this.segments[0].Mf-F)*J);else b===this.segments.length?(I=this.segments[this.segments.length-1],I=I.endTime+(F-I.Mf-1)*J):(I=this.segments[b-1],J=this.segments[b],J=(J.startTime-I.endTime)/(J.Mf-I.Mf-1),I=I.endTime+(F-I.Mf-1)*J);return new d_(F,I,J,0,"sq/"+F,void 0,void 0, !0)}; var km=!1;g.z(hM,Xz);g.A=hM.prototype;g.A.a9=function(){return!0}; g.A.VJ=function(){return!0}; g.A.D$=function(F){return this.OL()&&F.T&&!F.Z||!F.C.index.kD(F.Mf)}; g.A.nu=function(){}; g.A.CA=function(F,J){return typeof F!=="number"||isFinite(F)?Xz.prototype.CA.call(this,F,J===void 0?!1:J):new sL([new GC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.U2,void 0,this.U2*this.info.LW)],"")}; g.A.iH=function(F,J){var b=b===void 0?!1:b;if(this.index.vF(F))return Xz.prototype.iH.call(this,F,J);var I=this.index.getStartTime(F),u=Math.round(this.U2*this.info.LW),w=this.U2;J&&(w=u=0);return new sL([new GC(b?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",F,I,w,void 0,u,!J)],F>=0?"sq/"+F:"")};g.z(c6,fo);g.A=c6.prototype;g.A.pc=function(){return!1}; g.A.OL=function(){return!1}; g.A.a9=function(){return!1}; g.A.nu=function(){return new sL([new GC(1,this,void 0,"otfInit")],this.D)}; g.A.dW=function(){return null}; g.A.qc=function(F){this.D$(F);return aOa(this,TC(F),!1)}; g.A.CA=function(F,J){J=J===void 0?!1:J;F=this.index.Ea(F);J&&(F=Math.min(this.index.oC(),F+1));return aOa(this,F,!0)}; g.A.Eg=function(F){F.info.type===1&&(this.C||(this.C=lH(F.C)),F.U&&F.U.uri==="http://youtube.com/streaming/otf/durations/112015"&&ega(this,F.U))}; g.A.D$=function(F){return F.T===0?!0:this.index.oC()>F.Mf&&this.index.nj()<=F.Mf+1}; g.A.IK=function(){return 0}; g.A.RO=function(){return!1};UL.prototype.AF=function(){return this.C.AF()};g.A=g.Lo.prototype;g.A.vF=function(F){return F<=this.oC()}; g.A.VB=function(F){return this.offsets[F]}; g.A.getStartTime=function(F){return this.startTicks[F]/this.C}; g.A.nV=function(F){return this.getStartTime(F)+this.getDuration(F)}; g.A.uf=bk(0);g.A.Ze=function(){return NaN}; g.A.getDuration=function(F){F=this.dR(F);return F>=0?F/this.C:-1}; g.A.dR=function(F){return F+1<this.count||this.U?this.startTicks[F+1]-this.startTicks[F]:-1}; g.A.Yg=function(){return 0}; g.A.nj=function(){return 0}; g.A.oC=function(){return this.count-1}; g.A.kD=function(F){return this.oC()===F&&F>=0}; g.A.cn=function(){return this.U?this.startTicks[this.count]/this.C:NaN}; g.A.Ho=function(){return 0}; g.A.iA=function(){return this.count}; g.A.XN=function(){return""}; g.A.Ea=function(F){F=g.AL(this.startTicks.subarray(0,this.count),F*this.C);return F>=0?F:Math.max(0,-F-2)}; g.A.isLoaded=function(){return this.oC()>=0}; g.A.K2=function(F,J){if(F>=this.oC())return 0;var b=0;for(J=this.getStartTime(F)+J;F<this.oC()&&J>this.getStartTime(F);F++)b=Math.max(b,lOv(this,F)/this.getDuration(F));return b}; g.A.resize=function(F){F+=2;var J=this.offsets;this.offsets=new Float64Array(F+1);var b=this.startTicks;this.startTicks=new Float64Array(F+1);for(F=0;F<this.count+1;F++)this.offsets[F]=J[F],this.startTicks[F]=b[F]}; g.A.cap=function(F,J){F1(this);this.U=!0;this.startTicks[this.count]=J;this.offsets[this.count]=F};g.z(Jg,fo);g.A=Jg.prototype;g.A.nu=function(F,J){var b=new GC(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J),I=[new GC(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J),b];this.info.contentLength>0&&F&&(b=b.range.end+1,F=Math.min(F,this.info.contentLength-b),F>0&&I.push(new GC(4,this,EL(b,F),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)));return new sL(I)}; g.A.Eg=function(F){if(F.info.type===1){if(this.C)return;this.C=lH(F.C)}else if(F.info.type===2){if(this.D||this.index.oC()>=0)return;if(g.nF(this.info)){var J=this.index,b=F.AF();F=F.info.range.start;var I=g.Rt(b,0,1936286840);b=ffz(I);J.C=b.timescale;var u=b.ES;J.offsets[0]=b.CR+F+I.size;J.startTicks[0]=u;J.U=!0;F=b.ax.length;for(I=0;I<F;I++){u=J;var w=b.N0G[I],M=b.ax[I];u.count++;F1(u);u.offsets[u.count]=u.offsets[u.count-1]+w;u.startTicks[u.count]=u.startTicks[u.count-1]+M}}else this.D=F.AF()}if(this.info.Xb()&& this.C&&this.D){b=new DataView(this.C.buffer);J=this.index;I=this.D;F=this.indexRange.end;u=new tt(b);b=u;u=b.pos;w={vU:1E6,JL:1E9,duration:0,Nd:0,Uw:0};if(Fz(b,408125543))if(w.Nd=JM(b,!0),w.Uw=b.start+b.pos,Fz(b,357149030)){for(M=Lk(b);!ZT(M);){var q=JM(M,!1);q===2807729?w.vU=IA(M):q===2807730?w.JL=IA(M):q===17545?w.duration=wG(M):uU(M)}b.pos=u;b=w}else b.pos=u,b=null;else b.pos=u,b=null;if(b!==null){J.C=b.JL/b.vU;u=new tt(I);I=u;M=b.Uw;u=I.pos;w=[];if(Fz(I,475249515)){for(q=Lk(I);Fz(q,187);){var v= Lk(q);if(Fz(v,179)){var a=IA(v);if(Fz(v,183)){v=Lk(v);for(var e=M;Fz(v,241);)e=IA(v)+M;w.push({PY:e,TC:a})}}}if(w.length>0&&F===w[0].PY)for(F=0;F<w.length;F++)w[F].PY+=1;I.pos=u;F=w}else I.pos=u,F=null;if(F!==null){F=g.N(F);for(I=F.next();!I.done;I=F.next())w=I.value,I=J,u=w.PY,w=w.TC,F1(I),I.offsets[I.count]=u,I.startTicks[I.count]=w,I.count++;J.cap(b.Nd+b.Uw,b.duration)}}this.D=null}}; g.A.v2=function(F,J,b,I){for(var u=[],w=F;w<=this.index.oC();w++){var M=EL(this.index.VB(w),lOv(this.index,w)),q=this.index.getStartTime(w),v=this.index.getDuration(w),a=Math.max(0,J-M.start),e=Math.min(M.end+1,J+b)-(M.start+a);u.push(new GC(3,this,M,"getRequestInfoForRange",w,q,v,a,e,void 0,void 0,I));if(M.start+a+e>=J+b)break}u.length||g.Td(new g.hC("b189619593",""+F,""+J,""+b));return new sL(u)}; g.A.v7=function(F){for(var J=this.Iq(F.info),b=F.info.range.start+F.info.U,I=[],u=0;u<J.length;u++){var w=iH(F.C,J[u].range.start+J[u].U-b,J[u].T);I.push(new UL(J[u],w))}return I}; g.A.Iq=function(F){for(var J=F.range.start+F.U,b=0;b<this.index.oC()&&J>=this.index.VB(b+1);)b++;return this.v2(b,J,F.T).aI}; g.A.D$=function(F){F.aQ();return this.VJ()?!0:F.range.end+1<this.info.contentLength}; g.A.dW=function(F,J){this.D$(F);if(!this.VJ())return J=EL(F.range.end+1,J),J.end+1>this.info.contentLength&&(J=new W6(J.start,this.info.contentLength-1)),new sL([new GC(4,F.C,J,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,F.clipId)]);F.type===4&&(F=this.Iq(F),F=F[F.length-1]);var b=0,I=F.range.start+F.U+F.T;F.type===3&&(F.aQ(),b=F.Mf,I===F.range.end+1&&(b+=1));return this.v2(b,I,J)}; g.A.qc=function(){return null}; g.A.CA=function(F,J,b){J=J===void 0?!1:J;F=this.index.Ea(F);J&&(F=Math.min(this.index.oC(),F+1));return this.v2(F,this.index.VB(F),0,b)}; g.A.pc=function(){return!0}; g.A.OL=function(){return!0}; g.A.a9=function(){return!1}; g.A.IK=function(){return this.indexRange.length+this.initRange.length}; g.A.RO=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var ZN={},Xez=(ZN.COLOR_PRIMARIES_BT709="bt709",ZN.COLOR_PRIMARIES_BT2020="bt2020",ZN.COLOR_PRIMARIES_UNKNOWN=null,ZN.COLOR_PRIMARIES_UNSPECIFIED=null,ZN),HI={},W4z=(HI.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",HI.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",HI.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",HI.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",HI.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,HI.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,HI);g.bI.prototype.getName=function(){return this.name}; g.bI.prototype.getId=function(){return this.id}; g.bI.prototype.getIsDefault=function(){return this.isDefault}; g.bI.prototype.toString=function(){return this.name}; g.bI.prototype.getName=g.bI.prototype.getName;g.bI.prototype.getId=g.bI.prototype.getId;g.bI.prototype.getIsDefault=g.bI.prototype.getIsDefault;var Gnm=/action_display_post/;var VsG,wd,MQ;g.z(Ag,g.uA);g.A=Ag.prototype;g.A.isLoading=function(){return this.state===1}; g.A.J4=function(){return this.state===3}; g.A.i7I=function(F){var J=F.getElementsByTagName("Representation");if(F.getElementsByTagName("SegmentList").length>0||F.getElementsByTagName("SegmentTemplate").length>0){this.MW=this.U=!0;this.timeline||(this.timeline=new u8_);qoC(this.timeline,F);this.publish("refresh");for(F=0;F<J.length;F++){var b=hgo(this,J[F]);if(!this.C[b.id]){var I=KW(RA(J[F],"BaseURL").textContent),u=RA(J[F],"Initialization"),w=Q4(u,"sourceURL");u=dG(Q4(u,"range"));this.C[b.id]=new Xz(I,b,w,u)}b=this.C[b.id];I=Q4(J[F],"id", "AdaptationSet");I=I!==""?I:Q4(J[F],"mimetype","AdaptationSet");w=this.timeline;w=w.T[b.info.id]||w.U[I]||w.C||null;I=w.C;!this.V&&w.getStreamTimeOffset()&&(this.V=w.getStreamTimeOffset());if(w.D){u=[];I=g.N(I);for(var M=I.next();!M.done;M=I.next()){M=M.value;var q=b.info.id,v=b.info.LW*8,a=M.Mf;var e=M.startSecs;var K=w.V.split("$$");for(var p=0;p<K.length;p++)K[p]=K[p].replace("$RepresentationID$",q),K[p]=K[p].replace("$Number$",a.toString()),K[p]=K[p].replace("$Bandwidth$",v.toString()),K[p]=K[p].replace("$Time$", e.toString());u.push(new d_(M.Mf,M.startSecs,M.Bg,M.C,K.join("$"),null,M.U))}I=u}else{w=uV(RA(J[F],"SegmentList").getElementsByTagName("SegmentURL"),w.W);u=[];for(M=0;M<w.length;M++){q=u;v=q.push;a=I[M];e=void 0;p=w[M];K=p.getAttribute("media");if(p=p.getAttribute("mediaRange")){var m=p.split("-");m[1]&&Number(m[1])>=0?e=dG(p):K=K+"?range="+p}v.call(q,new d_(a.Mf,a.startSecs,a.Bg,a.C,K,e,a.U))}I=u}b.update(I,this.isLive,this.Jz)}vnv(this.timeline);return!0}this.duration=JGk(Q4(F,"mediaPresentationDuration")); a:{for(F=0;F<J.length;F++){w=J[F];b=hgo(this,w);I=KW(RA(w,"BaseURL").textContent);u=RA(w,"SegmentBase");w=dG(u.attributes.getNamedItem("indexRange").value);u=dG(u.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);b=new Jg(I,b,u,w);if(!b){J=!1;break a}uI(this,b)}J=!0}return J}; g.A.refresh=function(){if(!this.isLoading()&&!this.iR()){var F=g.Os(this.sourceUrl,{start_seq:tsv(this).toString()});Utv(this,F).rX(function(){})}}; g.A.resume=function(){cGv(this)}; g.A.lC=function(){if(this.isManifestless&&this.Z&&gd(this))return gd(this);var F=this.C,J=!1,b=NaN,I=NaN,u;for(u in F){var w=F[u],M=w.index;M.isLoaded()&&!Zf(w.info)&&(w.Z&&(J=!0),M=M.cn(),w.info.Cd()&&(isNaN(b)||M<b)?b=M:w.info.v1()&&(isNaN(I)||M<I)&&(I=M))}return J||isNaN(I)?b:Math.min(b,I)}; g.A.Ho=function(){if(this.isManifestless){if(mt(this))return mt(this);if(this.MI){var F=this.Ze(this.lC());if(F&&(F-=this.MI,F>0))return this.lC()-F}}F=this.C;for(var J in F){var b=F[J].index;if(b.isLoaded()&&!Zf(F[J].info))return b.Ho()}return 0}; g.A.getStreamTimeOffset=function(){return this.V}; g.A.Ze=function(F){for(var J in this.C){var b=this.C[J].index;if(b.isLoaded()){var I=b.Ea(F),u=b.Ze(I);if(u)return u+F-b.getStartTime(I)}}return NaN}; var fW=null,r_U,WG=!((r_U=navigator.mediaCapabilities)==null||!r_U.decodingInfo),onY={commentary:1,alternate:2,dub:3,main:4};var lm=new Set,dd=new Map;GF.prototype.clone=function(F){return new GF(this.flavor,F,this.U,this.experiments)}; GF.prototype.Cy=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; GF.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 SFH={},X1=(SFH.playready=["com.youtube.playready","com.microsoft.playready"],SFH.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],SFH),L4={},Dbz=(L4.widevine="DRM_SYSTEM_WIDEVINE",L4.fairplay="DRM_SYSTEM_FAIRPLAY",L4.playready="DRM_SYSTEM_PLAYREADY",L4),F2={},sFt=(F2.widevine=1,F2.fairplay=2,F2.playready=3,F2);RZ.prototype.Ic=function(F,J){J=J===void 0?1:J;this.zQ+=J;this.U+=F;F/=J;for(var b=0;b<Qy.length&&!(F<Qy[b]);++b)this.C[b]+=J}; RZ.prototype.toString=function(){return""}; var Qy=[20,100,500,2E3];g.A=MYv.prototype;g.A.isActive=function(){return!0}; g.A.xw=function(F,J){var b=this;if(J){var I={},u;for(u in J)I={Nz:void 0,Ss:void 0},J.hasOwnProperty(u)&&(I.Nz=F.prototype[u],I.Ss=J[u],F.prototype[u]=function(w){return function(){var M=g.Ba.apply(0,arguments),q=(0,g.jR)();M=w.Nz.apply(this,M);return D1(b,M,w.Ss,q)}}(I))}}; g.A.p$=function(F,J){if(J){var b=this,I={},u;for(u in J)I={Hy:void 0,bZ:void 0},J.hasOwnProperty(u)&&(I.bZ=F.prototype[u],I.Hy=J[u],F.prototype[u]=function(w){return function(){var M=g.Ba.apply(0,arguments),q=this,v=(0,g.jR)(),a=w.bZ.apply(q,M);return D1(b,a,null,v,function(e){return w.Hy.apply(q,[e].concat(M))})}}(I))}}; g.A.Yr=function(F,J){var b=this;return function(){var I=g.Ba.apply(0,arguments),u=(0,g.jR)();I=J.apply(null,I);return D1(b,I,F,u)}}; g.A.EA=function(){return new w5o}; g.A.Gy=function(F,J,b){b=b===void 0?1:b;J instanceof w5o&&(AV_(this,F,(0,g.jR)()-J.startTimeMs,b),J.C=!0)}; g.A.Zq=function(F,J){var b=(0,g.jR)();J=J();return D1(this,J,F,b)}; g.A.Or=function(){var F={},J;for(J in this.C)if(this.C.hasOwnProperty(J)){var b=this.C[J];if(b.zQ===0)b=null;else{for(var I=Math.ceil(b.zQ).toFixed(0)+"."+b.U.toFixed(0),u=0;u<Qy.length;++u)if(b.C[u]>0)I+="."+Qy[u].toFixed(0)+"_"+b.C[u].toFixed(0);else break;b=I}b&&(F[J]=b)}this.C=new uCo;return F}; g.A.toString=function(){return""};g.A=a0m.prototype;g.A.isActive=function(){return!1}; g.A.xw=function(){}; g.A.p$=function(){}; g.A.Yr=function(F,J){return J}; g.A.EA=function(){}; g.A.Gy=function(){}; g.A.Zq=function(F,J){return J()}; g.A.Or=function(){return{}}; g.A.toString=function(){return""};var J0,YFm,$ub,CvW,X3R,QF1,bs,Sn,tH,Hs7,hg;J0=new a0m;YFm=!!+Uk("html5_enable_profiler");$ub=!!+Uk("html5_onesie_enable_profiler");CvW=!!+Uk("html5_offline_encryption_enable_profiler");X3R=!!+Uk("html5_performance_impact_profiling_timer_ms");QF1=!!+Uk("html5_drm_enable_profiler");bs=YFm||$ub||CvW||X3R||QF1?new MYv:J0;g.RQ=YFm?bs:J0;Sn=$ub?bs:J0;tH=CvW?bs:J0;Hs7=X3R?bs:J0;hg=QF1?bs:J0;var oZ;g.z(kj,g.R); kj.prototype.initialize=function(F,J){for(var b=this,I=g.N(Object.keys(F)),u=I.next();!u.done;u=I.next()){u=g.N(F[u.value]);for(var w=u.next();!w.done;w=u.next())if(w=w.value,w.Ke)for(var M=g.N(Object.keys(w.Ke)),q=M.next();!q.done;q=M.next()){var v=q.value;q=v;v=X1[v];!v&&this.S("html5_enable_vp9_fairplay")&&q==="fairplay"&&(v=["com.youtube.fairplay.sbdl"]);if(v){v=g.N(v);for(var a=v.next();!a.done;a=v.next())a=a.value,this.T[a]=this.T[a]||new GF(q,a,w.Ke[q],this.PN.experiments),this.C[q]=this.C[q]|| {},this.C[q][w.mimeType]=!0}}}oR()&&(this.T["com.youtube.fairplay"]=new GF("fairplay","com.youtube.fairplay","",this.PN.experiments),this.S("html5_enable_vp9_fairplay")||(this.C.fairplay=this.C.fairplay||{},this.C.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.C.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=I0z(J,this.useCobaltWidevine,this.S("html5_enable_safari_fairplay"),this.S("html5_enable_vp9_fairplay")).filter(function(e){return!!b.T[e]})}; kj.prototype.S=function(F){return this.PN.experiments.pW(F)};var RW5={"":"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"};ixY.prototype.S=function(F){return this.experiments.pW(F)};var nOv={RED:"red",IXv:"white"};zRC.prototype.pW=function(F){F=this.flags[F];JSON.stringify(F);return F==="true"};var f0v=Promise.resolve(),jYa=window.queueMicrotask?window.queueMicrotask.bind(window):WSG;nW.prototype.canPlayType=function(F,J){F=F.canPlayType?F.canPlayType(J):!1;hY?F=F||Dub[J]:Vi===2.2?F=F||kae[J]:k6()&&(F=F||OIU[J]);return!!F}; nW.prototype.isTypeSupported=function(F){return this.eE?window.cast.receiver.platform.canDisplayType(F):Tj(F)}; var kae={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},OIU={"application/x-mpegURL":"maybe"},Dub={"application/x-mpegURL":"maybe"};g.z(F_,g.uA);F_.prototype.add=function(F,J){if(!this.items[F]&&(J.Xj||J.d4||J.xE)){var b=this.items,I=J;Object.isFrozen&&!Object.isFrozen(J)&&(I=Object.create(J),Object.freeze(I));b[F]=I;this.publish("vast_info_card_add",F)}}; F_.prototype.remove=function(F){var J=this.get(F);delete this.items[F];return J}; F_.prototype.get=function(F){return this.items[F]||null}; F_.prototype.isEmpty=function(){return g.Vj(this.items)};g.z(JP,g.lx);JP.prototype.C=function(F,J){return g.lx.prototype.C.call(this,F,J)}; JP.prototype.U=function(F,J,b){var I=this;return g.S(function(u){return u.C==1?g.T(u,g.lx.prototype.U.call(I,F,J,b),2):u.return(u.U)})}; g.z(bb,g.fg);bb.prototype.encrypt=function(F,J){return g.fg.prototype.encrypt.call(this,F,J)};var ub;wN.prototype.add=function(F){if(this.pos+20>this.data.length){var J=new Uint8Array(this.data.length*2);J.set(this.data);this.data=J}for(;F>31;)this.data[this.pos++]=ub[(F&31)+32],F>>=5;this.data[this.pos++]=ub[F|0]}; wN.prototype.G7=function(){return g.Ev(this.data.subarray(0,this.pos))}; wN.prototype.reset=function(){this.pos=0};AP.prototype.Zj=function(F,J){var b=Math.pow(this.alpha,F);this.C=J*(1-b)+b*this.C;this.U+=F}; AP.prototype.X3=function(){return this.C/(1-Math.pow(this.alpha,this.U))};qn.prototype.Zj=function(F,J){for(var b=0;b<10;b++){var I=this.C[b],u=I+(b===0?F:0),w=1*Math.pow(2,b);if(u<=w)break;I=Math.min(1,(u-w*.5)/I);for(u=0;u<16;u++)w=this.values[b*16+u]*I,this.values[(b+1)*16+u]+=w,this.C[b+1]+=w,this.values[b*16+u]-=w,this.C[b]-=w}I=b=0;u=8192;J>8192&&(b=Math.ceil(Math.log(J/8192)/Math.log(2)),I=8192*Math.pow(2,b-1),u=I*2);b+2>16?this.values[15]+=F:(J=(J-I)/(u-I),this.values[b]+=F*(1-J),this.values[b+1]+=F*J);this.C[0]+=F}; qn.prototype.X3=function(){var F=F===void 0?this.U:F;var J=J===void 0?.02:J;var b=b===void 0?.98:b;for(var I=this.T,u=0;u<16;u++)I[u]=this.values[u];u=this.C[0];for(var w=1;w<11;w++){var M=this.C[w];if(M===0)break;for(var q=Math.min(1,(F-u)/M),v=0;v<16;v++)I[v]+=this.values[w*16+v]*q;u+=M*q;if(q<1)break}for(w=F=M=0;w<16;w++){q=M+I[w]/u;F+=Math.max(0,Math.min(q,b)-Math.max(M,J))*(w>0?8192*Math.pow(2,w-1):0);if(q>b)break;M=q}return F/(b-J)};vu.prototype.Zj=function(F,J){F=Math.min(this.C,Math.max(1,Math.round(F*this.resolution)));F+this.U>=this.C&&(this.T=!0);for(;F--;)this.values[this.U]=J,this.U=(this.U+1)%this.C;this.Y8=!0}; vu.prototype.percentile=function(F){var J=this;if(!this.T&&this.U===0)return 0;this.Y8&&(g.vW(this.D,function(b,I){return J.values[b]-J.values[I]}),this.Y8=!1); return this.values[this.D[Math.round(F*((this.T?this.C:this.U)-1))]]||0}; vu.prototype.X3=function(){return this.W?(this.percentile(this.Z-this.W)+this.percentile(this.Z)+this.percentile(this.Z+this.W))/3:this.percentile(this.Z)};g.z(aw,g.R);aw.prototype.KW=function(){var F;(F=this.dD)==null||F.start();if(zB(this)&&this.policy.Y){var J;(J=this.t_)==null||J.mR()}};RRY.prototype.S=function(F){return this.experiments.pW(F)};g.z(kAY,g.R);var xOJ="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Fqv={YaE:"caoe",jQj:"capsv",eVE:"cbrand",ZFW:"cbr",s6Q:"cbrver",DLj:"cchip",Q6G:"ccappver",SJN:"ccrv",f2G:"cfrmver",UhG:"c",ZD_:"cver",eT_:"ctheme",TX_:"cplayer",TTD:"cmodel",AdE:"cnetwork",EKI:"cos",dQN:"cosver",KWE:"cplatform",Ua_:"crqyear"};g.z(X_,g.R);g.A=X_.prototype;g.A.S=function(F){return this.experiments.pW(F)}; g.A.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.A.getVideoUrl=function(F,J,b,I,u,w,M){J={list:J};b&&(u?J.time_continue=b:J.t=b);b=M?"music.youtube.com":g.Rw(this);u=b==="www.youtube.com";!w&&I&&u?w="https://youtu.be/"+F:g.TB(this)?(w="https://"+b+"/fire",J.v=F):(w&&u?(w=this.protocol+"://"+b+"/shorts/"+F,I&&(J.feature="share")):(w=this.protocol+"://"+b+"/watch",J.v=F),hY&&(F=kZz())&&(J.ebc=F));return g.Os(w,J)}; g.A.getVideoEmbedCode=function(F,J,b,I){J="https://"+g.Rw(this)+"/embed/"+J;I&&(J=g.Os(J,{list:I}));I=b.width;b=b.height;J=tQ(J);F=tQ(F!=null?F:"YouTube video player");return'<iframe width="'+I+'" height="'+b+'" src="'+J+'" title="'+(F+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')}; g.A.supportsGaplessAudio=function(){return g.B4&&!hY&&RR()>=74||g.Yj&&g.iV(68)?!0:!1}; g.A.supportsGaplessShorts=function(){return!this.S("html5_enable_short_gapless")||this.zj||g.ia?!1:!0}; g.A.getPlayerType=function(){return this.C.cplayer}; g.A.hJ=function(){return this.zU}; var uq3=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],LSa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],biz=[19];var Iq={},Abo=(Iq["140"]={numChannels:2},Iq["141"]={numChannels:2},Iq["251"]={audioSampleRate:48E3,numChannels:2},Iq["774"]={audioSampleRate:48E3,numChannels:2},Iq["380"]={numChannels:6},Iq["328"]={numChannels:6},Iq["773"]={},Iq),us={},wSz=(us["1"]='video/mp4; codecs="av01.0.08M.08"',us["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',us["1e"]='video/mp4; codecs="av01.0.08M.08"',us["9"]='video/webm; codecs="vp9"',us["("]='video/webm; codecs="vp9"',us["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', us.h='video/mp4; codecs="avc1.64001e"',us.H='video/mp4; codecs="avc1.64001e"',us.o='audio/webm; codecs="opus"',us.a='audio/mp4; codecs="mp4a.40.2"',us.ah='audio/mp4; codecs="mp4a.40.2"',us.mac3='audio/mp4; codecs="ac-3"; channels=6',us.meac3='audio/mp4; codecs="ec-3"; channels=6',us.i='audio/mp4; codecs="iamf.001.001.Opus"',us),wH={},Mja=(wH["337"]={width:3840,height:2160,bitrate:3E7,fps:30},wH["336"]={width:2560,height:1440,bitrate:15E6,fps:30},wH["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, wH["702"]={width:7680,height:4320,bitrate:4E7,fps:60},wH["701"]={width:3840,height:2160,bitrate:2E7,fps:60},wH["700"]={width:2560,height:1440,bitrate:1E7,fps:60},wH["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},wH["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},wH["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},wH["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, wH["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},wH["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},wH["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},wH["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},wH["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},wH["315"]={width:3840,height:2160,bitrate:2E7,fps:60},wH["308"]={width:2560, height:1440,bitrate:1E7,fps:60},wH["303"]={width:1920,height:1080,bitrate:5E6,fps:60},wH["302"]={width:1280,height:720,bitrate:25E5,fps:60},wH["299"]={width:1920,height:1080,bitrate:75E5,fps:60},wH["298"]={width:1280,height:720,bitrate:35E5,fps:60},wH["571"]={width:7680,height:4320,bitrate:3E7,fps:60},wH["401"]={width:3840,height:2160,bitrate:15E6,fps:60},wH["400"]={width:2560,height:1440,bitrate:75E5,fps:60},wH["399"]={width:1920,height:1080,bitrate:2E6,fps:60},wH["398"]={width:1280,height:720,bitrate:1E6, fps:60},wH["397"]={width:854,height:480,bitrate:4E5,fps:30},wH["396"]={width:640,height:360,bitrate:25E4,fps:30},wH["787"]={width:1080,height:608,bitrate:2E5,fps:30},wH["788"]={width:1080,height:608,bitrate:4E5,fps:30},wH["572"]={width:7680,height:4320,bitrate:3E7,fps:60},wH["555"]={width:3840,height:2160,bitrate:15E6,fps:60},wH["554"]={width:2560,height:1440,bitrate:75E5,fps:60},wH["553"]={width:1920,height:1080,bitrate:2E6,fps:60},wH["552"]={width:1280,height:720,bitrate:1E6,fps:60},wH["551"]={width:854, height:480,bitrate:4E5,fps:30},wH["550"]={width:640,height:360,bitrate:25E4,fps:30},wH["313"]={width:3840,height:2160,bitrate:8E6,fps:30},wH["271"]={width:2560,height:1440,bitrate:4E6,fps:30},wH["248"]={width:1920,height:1080,bitrate:2E6,fps:30},wH["247"]={width:1280,height:720,bitrate:15E5,fps:30},wH["244"]={width:854,height:480,bitrate:52E4,fps:30},wH["243"]={width:640,height:360,bitrate:28E4,fps:30},wH["137"]={width:1920,height:1080,bitrate:4E6,fps:30},wH["136"]={width:1280,height:720,bitrate:3E6, fps:30},wH["135"]={width:854,height:480,bitrate:1E6,fps:30},wH["385"]={width:1920,height:1080,bitrate:6503313,fps:60},wH["376"]={width:1280,height:720,bitrate:5706960,fps:60},wH["384"]={width:1280,height:720,bitrate:3660979,fps:60},wH["225"]={width:1280,height:720,bitrate:5805E3,fps:30},wH["224"]={width:1280,height:720,bitrate:453E4,fps:30},wH["145"]={width:1280,height:720,bitrate:2682052,fps:30},wH);g.A=br.prototype;g.A.getInfo=function(){return this.C}; g.A.DB=function(){return null}; g.A.Qm=function(){var F=this.DB();return F?(F=g.bi(F.gw),Number(F.expire)):NaN}; g.A.TK=function(){}; g.A.getHeight=function(){return this.C.video.height};eaz.prototype.build=function(){gA4(this);var F=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],J={};a:if(this.C)var b=this.C;else{b="";for(var I=g.N(this.T),u=I.next();!u.done;u=I.next())if(u=u.value,u.j3){if(u.j3.getIsDefault()){b=u.j3.getId();break a}b||(b=u.j3.getId())}}I=g.N(this.T);for(u=I.next();!u.done;u=I.next())if(u=u.value,this.W||!u.j3||u.j3.getId()===b)J[u.itag]||(J[u.itag]=[]),J[u.itag].push(u);b=g.N(this.U);for(I=b.next();!I.done;I=b.next())if(I=I.value,u=J[I.C]){u=g.N(u);for(var w=u.next();!w.done;w= u.next()){var M=F,q=M.push;w=w.value;var v="#EXT-X-MEDIA:TYPE=AUDIO,",a="YES",e="audio";if(w.j3){e=w.j3;var K=e.getId().split(".")[0];K&&(v+='LANGUAGE="'+K+'",');(this.C?this.C===e.getId():e.getIsDefault())||(a="NO");e=e.getName()}K="";I!==null&&(K=I.itag.toString());K=ur(this,w.url,K);v=v+('NAME="'+e+'",DEFAULT='+(a+',AUTOSELECT=YES,GROUP-ID="'))+(pSo(w,I)+'",URI="'+(K+'"'));q.call(M,v)}}b=g.N(this.D);for(I=b.next();!I.done;I=b.next())I=I.value,u=opm,I=(M=I.j3)?'#EXT-X-MEDIA:URI="'+ur(this,I.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+u+'",LANGUAGE="'+M.getId()+'",NAME="'+M.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,I&&F.push(I);b=this.D.length>0?opm:void 0;I=g.N(this.U);for(u=I.next();!u.done;u=I.next())u=u.value,q=J[u.C],M=void 0,((M=q)==null?void 0:M.length)>0&&(M=u,q=q[0],q="#EXT-X-STREAM-INF:BANDWIDTH="+(M.bitrate+q.bitrate)+',CODECS="'+(M.codecs+","+q.codecs+'",RESOLUTION=')+(M.width+"x"+M.height+',AUDIO="')+(pSo(q,M)+'",')+(b?'SUBTITLES="'+b+'",':"")+"CLOSED-CAPTIONS=NONE",M.fps>1&&(q+= ",FRAME-RATE="+M.fps),M.yD&&(q+=",VIDEO-RANGE="+M.yD),F.push(q),F.push(ur(this,u.url,"")));return F.join("\n")}; var opm="text";g.z(w7,br);w7.prototype.Qm=function(){return this.expiration}; w7.prototype.DB=function(){if(!this.gw||this.gw.iR()){var F=this.U.build();F="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(F);this.gw=new Rl(F)}return this.gw};g.z(MF,br);MF.prototype.DB=function(){return new Rl(this.U.tF())}; MF.prototype.TK=function(){this.U=fk(this.U)};g.z(Ai,br);Ai.prototype.DB=function(){return new Rl(this.U)};var My={},EAG=(My.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",My.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",My.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",My);g.A=g.qF.prototype;g.A.getId=function(){return this.id}; g.A.getName=function(){return this.name}; g.A.isServable=function(){return this.C}; g.A.tF=function(){return this.url}; g.A.getXtags=function(){return this.xtags}; g.A.toString=function(){return this.languageCode+": "+g.vC(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.A.Hg=function(F){return F?this.toString()===F.toString():!1}; g.A.o8=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var BIz={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},TI7={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},rb4=/^(\d*)_((\d*)_?(\d*))$/;var sSm={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},YCm={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var A0={},hWV=(A0.ALWAYS=1,A0.BY_REQUEST=3,A0.UNKNOWN=void 0,A0),qy={},c_k=(qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",qy);var VZJ; VZJ=function(F){for(var J=Object.keys(F),b={},I=0;I<J.length;I++){var u=J[I];typeof F[u]==="function"&&(b[u]=F[u])}var w=Object.keys(b);try{PR_(b)}catch(q){var M=q}return function(q,v){q=q===void 0?{}:q;if(M)throw M;for(var a=!1,e={},K=0;K<w.length;K++){var p=w[K],m=q[p],y=(0,b[p])(m,v);if(typeof y==="undefined")throw q=v&&v.type,Error("When called with an action of type "+(q?'"'+String(q)+'"':"(unknown type)")+', the slice reducer for key "'+p+'" 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.');e[p]= y;a=a||y!==m}return(a=a||w.length!==Object.keys(q).length)?e:q}}({entities:function(F,J){F=F===void 0?{}:F; return Rw4(F,J)}}); g.ZR=new pQ;yE.prototype.toString=function(){return this.type+this.id};g.zt.prototype.lr=function(F){F=F||"hqdefault.jpg";var J=this.N[F];if(J)return J;if(F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg")return J;if(this.C)return D7(this.PN,this.C,F)}; g.zt.prototype.t4=function(){return this.PN.getVideoUrl(this.videoId,this.playlistId)};g.NF.prototype.lr=function(F){F||(F="hqdefault.jpg");var J=this.N[F];return J?J:F==="pop1.jpg"||F==="pop2.jpg"||F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg"?J:D7(this.PN,this.videoId,F)}; g.NF.prototype.t4=function(F){return this.watchUrl||this.PN.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,F)};var WC=void 0;Gfz("LMS",function(){return g.S(function(F){return F.return(g.d7())})});var VE;VE=0;g.IpG=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Gfz("LMDB",function(){var F,J;return g.S(function(b){if(b.C==1)return g.T(b,g.tY(),2);if(b.C!=3){F=b.U;if(!F)throw g.NP("edd");return g.T(b,g.Gt(F),3)}J=b.U;return b.return(g.B$(J,["index","media","captions"],{mode:"readonly",Em:!0},function(I){var u={};I=[g.Yu(I.objectStore("index"),{},function(w){u[w.cursor.key]=w.getValue();return g.$u(w)}), BDz(I.objectStore("media")),BDz(I.objectStore("captions"))];return g.fD.all(I).then(function(w){var M=g.N(w);M.next();w=M.next().value;M=M.next().value;return{index:u,media:ujk(w||[]),captions:M}})}))})});g.z(BC,g.uA);BC.prototype.X_=function(){this.C&&(this.C=this.C.onload=null);g.uA.prototype.X_.call(this)};g.A=g.s9.prototype;g.A.getHeight=function(){return this.height}; g.A.zs=bk(2);g.A.mm=function(){return this.frameCount}; g.A.isDefault=function(){return this.T.indexOf("default")!==-1}; g.A.isLoaded=function(F){return this.loaded.has(F)}; g.A.tF=function(F){var J=this.Z;J=J.replace("$N",this.T);J=J.replace("$L",this.level.toString());J=J.replace("$M",F.toString());this.signature&&(J=g.Os(J,{sigh:this.signature}));return FK(J)}; g.A.Hj=function(F){var J=this.mm()-1;return g.AD(this.C===0?Math.round(F*this.frameCount/this.videoLength):Math.round(F*1E3/this.C),0,J)}; g.A.ll=function(){return this.frameCount-1}; g.A.hZ=function(){return this.frameCount?0:-1}; g.A.oW=function(){};g.z(Y$,BC);Y$.prototype.U=function(F,J){var b=[];F=F.split("|");for(var I=F[0],u=1;u<F.length;u++){var w=this.D(u-1,I,F[u],J);(this.V||w.getHeight()<180)&&b.push(w)}return b}; Y$.prototype.D=function(F,J,b,I){return new g.s9(F,J,b,I)};g.z($$,g.s9);g.A=$$.prototype;g.A.mm=function(){return this.U.iA()}; g.A.Hj=function(F){var J=this.rows*this.columns*this.D,b=this.U,I=b.oC();F=b.Ea(F);return F>I-J?-1:F}; g.A.ll=function(){return this.U.oC()}; g.A.hZ=function(){return this.U.nj()}; g.A.oW=function(F){this.U=F};g.z(CC,Y$);CC.prototype.U=function(F,J){return Y$.prototype.U.call(this,"$N|"+F,J)}; CC.prototype.D=function(F,J,b){return new $$(F,J,b,this.isLive)};var zSC=[],hi=new Set;g.z(g.RH,g.uA);g.A=g.RH.prototype; g.A.setData=function(F){F=F||{};var J=F.errordetail;J!=null&&(this.errorDetail=J);var b=F.errorcode;b!=null?this.errorCode=b:F.status==="fail"&&(this.errorCode="auth");var I=F.reason;I!=null&&(this.errorReason=I);var u=F.subreason;u!=null&&(this.yx=u);this.S("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=F.cpn||(this.PN.hJ()?"r"+g.Nq(15):g.Nq(16)));this.nW=JC(this.PN.nW,F.livemonitor);eSz(this,F);var w=F.raw_player_response;if(w)this.CT=w;else{var M=F.player_response; M&&(w=JSON.parse(M))}if(this.S("html5_enable_ssap_entity_id")){var q=F.cached_load;q&&(this.Ta=JC(this.Ta,q));if(!this.clientPlaybackNonce){var v=F.cpn;v?(this.fQ("ssei","shdc"),this.clientPlaybackNonce=v):this.clientPlaybackNonce=this.PN.hJ()?"r"+g.Nq(15):g.Nq(16)}}w&&(this.playerResponse=w);if(this.playerResponse){var a=this.playerResponse.annotations;if(a)for(var e=g.N(a),K=e.next();!K.done;K=e.next()){var p=K.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.LI=!0);var m=p.loadPolicy; m&&(this.annotationsLoadPolicy=hWV[m]);var y=p.invideoUrl;y&&(this.Jz=FK(y));break}}var f=this.playerResponse.attestation;f&&Cg3(this,f);var d=this.playerResponse.cotn;d&&(this.cotn=d);var G=this.playerResponse.heartbeatParams;if(G){vf3(this)&&(this.sP=!0);var P=G.heartbeatToken;P&&(this.drmSessionId=G.drmSessionId||"",this.heartbeatToken=P,this.u_=Number(G.intervalMilliseconds),this.Fl=Number(G.maxRetries),this.Bw=!!G.softFailOnError,this.Xp=!!G.useInnertubeHeartbeatsForDrm,this.GH=!0);this.heartbeatServerData= G.heartbeatServerData;var r;this.us=!((r=G.heartbeatAttestationConfig)==null||!r.requiresAttestation)}var Q=this.playerResponse.messages;Q&&Dhk(this,Q);var D=this.playerResponse.overlay;if(D){var t=D.playerControlsOverlayRenderer;if(t)if(Oik(this,t.controlBgHtml),t.mutedAutoplay){var n=g.O(t.mutedAutoplay,bfW);if(n&&n.endScreen){var uk=g.O(n.endScreen,Ie1);uk&&uk.text&&(this.Do=g.Kr(uk.text))}}else this.mutedAutoplay=!1}var AJ=this.playerResponse.playabilityStatus;if(AJ){var F7=AJ.backgroundability; F7&&F7.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var h,L;if((h=AJ.offlineability)==null?0:(L=h.offlineabilityRenderer)==null?0:L.offlineable)this.offlineable=!0;var l=AJ.contextParams;l&&(this.contextParams=l);var c=AJ.pictureInPicture;c&&c.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);AJ.playableInEmbed&&(this.allowEmbed=!0);var Da=AJ.ypcClickwrap;if(Da){var fz=Da.playerLegacyDesktopYpcClickwrapRenderer,Kz=Da.ypcRentalActivationRenderer;if(fz)this.Vc=fz.durationMessage|| "",this.ir=!0;else if(Kz){var Vz=Kz.durationMessage;this.Vc=Vz?g.Kr(Vz):"";this.ir=!0}}var Za=AJ.errorScreen;if(Za){if(Za.playerLegacyDesktopYpcTrailerRenderer){var Ib=Za.playerLegacyDesktopYpcTrailerRenderer;this.gO=Ib.trailerVideoId||"";var yU=Za.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var E=yU&&yU.ypcTrailerRenderer}else if(Za.playerLegacyDesktopYpcOfferRenderer)Ib=Za.playerLegacyDesktopYpcOfferRenderer;else if(Za.ypcTrailerRenderer){E=Za.ypcTrailerRenderer;var V=E.fullVideoMessage;this.sW= V?g.Kr(V):"";var B,Y;this.gO=((B=g.O(E,uP5))==null?void 0:(Y=B.videoDetails)==null?void 0:Y.videoId)||""}Ib&&(this.uH=Ib.itemTitle||"",Ib.itemUrl&&(this.A2=Ib.itemUrl),Ib.itemBuyUrl&&(this.gW=Ib.itemBuyUrl),this.WC=Ib.itemThumbnail||"",this.HC=Ib.offerHeadline||"",this.Pn=Ib.offerDescription||"",this.Mh=Ib.offerId||"",this.Oc=Ib.offerButtonText||"",this.uh=Ib.offerButtonFormattedText||null,this.k6=Ib.overlayDurationMsec||NaN,this.sW=Ib.fullVideoMessage||"",this.Tc=!0);if(E){var X=g.O(E,uP5);if(X)this.gT= {raw_player_response:X};else{var JJ=g.O(E,mLL);this.gT=JJ?FF(JJ):null}this.Tc=!0}}}var wY=this.playerResponse.playbackTracking;if(wY){var M4=F,C=g7(wY.googleRemarketingUrl);C&&(this.googleRemarketingUrl=C);var ez=g7(wY.youtubeRemarketingUrl);ez&&(this.youtubeRemarketingUrl=ez);var yz={},va=g7(wY.ptrackingUrl);if(va){var rY=mZ(va),pz=rY.oid;pz&&(this.En=pz);var QU=rY.pltype;QU&&(this.S4=QU);var Kf=rY.ptchn;Kf&&(this.MH=Kf);var hJ=rY.ptk;hJ&&(this.Ac=encodeURIComponent(hJ));var QI=rY.m;QI&&(this.s8= QI)}var qX=g7(wY.qoeUrl);if(qX){for(var rU=g.bi(qX),of=g.N(Object.keys(rU)),af=of.next();!af.done;af=of.next()){var oD=af.value,Ry=rU[oD];rU[oD]=Array.isArray(Ry)?Ry.join(","):Ry}this.AR=rU;var h6=rU.cat;h6&&(this.S("html5_enable_qoe_cat_list")?this.oV=this.oV.concat(h6.split(",")):this.fL=h6);var lB=rU.live;lB&&(this.LX=lB);var eq=rU.drm_product;eq&&(this.Gc=eq)}var rb=g7(wY.videostatsPlaybackUrl);if(rb){var pI=mZ(rb),SP=pI.adformat;if(SP){M4.adformat=SP;var s4=this.J(),Yo=SCz(SP,this.KI,s4.Z,s4.V); Yo&&(this.adFormat=Yo)}var PR=pI.aqi;PR&&(M4.ad_query_id=PR);var HW=pI.autoplay;HW&&(this.NJ=HW=="1",this.dK=HW=="1",Zh(this,"vss"));var cz=pI.autonav;cz&&(this.isAutonav=cz=="1");var Iy=pI.delay;Iy&&(this.xm=L5(Iy));var WQ=pI.ei;WQ&&(this.eventId=WQ);if(pI.adcontext||SP)this.NJ=!0,Zh(this,"ad");var CX=pI.feature;CX&&(this.Yf=CX);var pf=pI.list;pf&&(this.playlistId=pf);var pB=pI.of;pB&&(this.TP=pB);var gu=pI.osid;gu&&(this.osid=gu);var m4=pI.referrer;m4&&(this.referrer=m4);var Jo=pI.sdetail;Jo&&(this.Xz= Jo);var wj=pI.ssrt;wj&&(this.fN=wj=="1");var bq=pI.subscribed;bq&&(this.subscribed=bq=="1",this.V.subscribed=bq);var Ir=pI.uga;Ir&&(this.userGenderAge=Ir);var yh=pI.upt;yh&&(this.PC=yh);var i1=pI.vm;i1&&(this.videoMetadata=i1);yz.playback=pI}var zn=g7(wY.videostatsWatchtimeUrl);if(zn){var Nt=mZ(zn),l1=Nt.ald;l1&&(this.bd=l1);yz.watchtime=Nt}var fB=g7(wY.atrUrl);if(fB){var rS=mZ(fB);yz.atr=rS}var di=g7(wY.engageUrl);if(di){var Si=mZ(di);yz.engage=Si}this.Ga=yz;if(wY.promotedPlaybackTracking){var hD= wY.promotedPlaybackTracking;hD.startUrls&&(this.N5=hD.startUrls);hD.firstQuartileUrls&&(this.zP=hD.firstQuartileUrls);hD.secondQuartileUrls&&(this.t5=hD.secondQuartileUrls);hD.thirdQuartileUrls&&(this.Fr=hD.thirdQuartileUrls);hD.completeUrls&&(this.VT=hD.completeUrls);hD.engagedViewUrls&&(hD.engagedViewUrls.length>1&&g.rQ(new g.hC("There are more than one engaged_view_urls.")),this.pF=hD.engagedViewUrls[0])}}var uq=this.playerResponse.playerCueRanges;uq&&uq.length>0&&(this.cueRanges=uq);var We=this.playerResponse.playerCueRangeSet; We&&g.cC(this,We);a:{var wa=this.playerResponse.adPlacements;if(wa)for(var du=g.N(wa),MG=du.next();!MG.done;MG=du.next()){var Eo=void 0,js=void 0,Gn=(Eo=MG.value.adPlacementRenderer)==null?void 0:(js=Eo.renderer)==null?void 0:js.videoAdTrackingRenderer;if(Gn){var Vh=Gn;break a}}Vh=null}var Ao=Vh;wY&&wY.promotedPlaybackTracking&&Ao&&g.rQ(new g.hC("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Ao&&(this.XJ=!0);var Pe=this.playerResponse.playerAds;if(Pe)for(var sW= F,Be=g.N(Pe),qG=Be.next();!qG.done;qG=Be.next()){var Tn=qG.value;if(Tn){var ru=Tn.playerLegacyDesktopWatchAdsRenderer;if(ru){var jf=ru.playerAdParams;if(jf){jf.autoplay=="1"&&(this.dK=this.NJ=!0);this.cE=jf.encodedAdSafetyReason||null;jf.showContentThumbnail!==void 0&&(this.Px=!!jf.showContentThumbnail);sW.enabled_engage_types=jf.enabledEngageTypes;break}}}}var lP=this.playerResponse.playerConfig;if(lP){var GM=lP.manifestlessWindowedLiveConfig;if(GM){var vf=Number(GM.minDvrSequence),yn=Number(GM.maxDvrSequence), iC=Number(GM.minDvrMediaTimeMs),zS=Number(GM.maxDvrMediaTimeMs),Ss=Number(GM.startWalltimeMs);vf&&(this.De=vf);iC&&(this.qf=iC/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this)&&(this.rf=iC/1E3));yn&&(this.VN=yn);zS&&(this.NW=zS/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this)&&(this.G8=zS/1E3));Ss&&(this.MI=Ss/1E3);(vf||iC)&&(yn||zS)&&(this.allowLiveDvr=this.isLivePlayback=this.fW=!0,this.SF=!1)}var MB=lP.daiConfig;if(MB){if(MB.enableDai){this.Uo= !0;var NK=MB.enableServerStitchedDai;NK&&(this.enableServerStitchedDai=NK);var Ys=MB.enablePreroll;Ys&&(this.enablePreroll=Ys)}var so;if(MB.daiType==="DAI_TYPE_SS_DISABLED"||((so=MB.debugInfo)==null?0:so.isDisabledUnpluggedChannel))this.vP=!0;MB.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.G4=!0)}var $o=lP.audioConfig;if($o){var Yn=$o.loudnessDb;Yn!=null&&(this.LF=Yn);var ar=$o.trackAbsoluteLoudnessLkfs;ar!=null&&(this.e9=ar);var el=$o.loudnessTargetLkfs;el!=null&&(this.loudnessTargetLkfs=el);$o.audioMuted&& (this.T8=!0);$o.muteOnStart&&(this.tE=!0);var AW=$o.loudnessNormalizationConfig;if(AW){AW.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);AW.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var $n=AW.minimumLoudnessTargetLkfs;$n!=null&&(this.minimumLoudnessTargetLkfs=$n);var CY=AW.maxStatefulTimeThresholdSec;CY!=null&&(this.maxStatefulTimeThresholdSec=CY)}this.S("web_player_audio_playback_from_audio_config")&&$o.playAudioOnly&&(this.D4=!0)}var CB=lP.playbackEndConfig; if(CB){var X$=CB.endSeconds,IdC=CB.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(X$&&(this.endSeconds=X$),IdC&&(this.limitedPlaybackDurationInSeconds=IdC))}var Z6=lP.fairPlayConfig;if(Z6){var uEm=Z6.certificate;uEm&&(this.oI=Iw(uEm));var wpa=Number(Z6.keyRotationPeriodMs);wpa>0&&(this.xA=wpa);var MV7=Number(Z6.keyPrefetchMarginMs);MV7>0&&(this.Ao=MV7)}var xF=lP.playbackStartConfig;if(xF){this.Sl=Number(xF.startSeconds);var AaC=xF.liveUtcStartSeconds,qfo=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0;AaC&&!qfo&&(this.liveUtcStartSeconds=Number(AaC));var qQz=xF.startPosition;if(qQz){var vJG=qQz.utcTimeMillis;vJG&&!qfo&&(this.liveUtcStartSeconds=Number(vJG)*.001);var ada=qQz.streamTimeMillis;ada&&(this.Uz=Number(ada)*.001)}this.progressBarStartPosition=xF.progressBarStartPosition;this.progressBarEndPosition=xF.progressBarEndPosition}else{var v_a=lP.skippableSegmentsConfig;if(v_a){var e5G=v_a.introSkipDurationMs;e5G&&(this.nL=Number(e5G)/1E3);var KdC=v_a.outroSkipDurationMs;KdC&&(this.Ud=Number(KdC)/ 1E3)}}var aiv=lP.skippableIntroConfig;if(aiv){var ppo=Number(aiv.startMs),gJa=Number(aiv.endMs);isNaN(ppo)||isNaN(gJa)||(this.B9=ppo,this.jZ=gJa)}var mZ_=lP.streamSelectionConfig;mZ_&&(this.M0=Number(mZ_.maxBitrate));var yaz=lP.vrConfig;yaz&&(this.mj=yaz.partialSpherical=="1");var vF=lP.webDrmConfig;if(vF){vF.skipWidevine&&(this.Km=!0);var iEG=vF.widevineServiceCert;iEG&&(this.fD=Iw(iEG));vF.useCobaltWidevine&&(this.useCobaltWidevine=!0);vF.startWithNoQualityConstraint&&(this.PS=!0)}var UY=lP.mediaCommonConfig; if(UY){var H0=UY.dynamicReadaheadConfig;if(H0){this.maxReadAheadMediaTimeMs=H0.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=H0.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=H0.readAheadGrowthRateMs||NaN;var z5C,NOC=UY==null?void 0:(z5C=UY.mediaUstreamerRequestConfig)==null?void 0:z5C.videoPlaybackUstreamerConfig;NOC&&(this.vD=Iw(NOC));var esz=UY==null?void 0:UY.sabrContextUpdates;if(esz&&esz.length>0)for(var ld_=g.N(esz),KkJ=ld_.next();!KkJ.done;KkJ=ld_.next()){var au=KkJ.value; if(au.type&&au.value){var bXz={type:au.type,scope:au.scope,value:Iw(au.value)||void 0,sendByDefault:au.sendByDefault};this.sabrContextUpdates.set(au.type,bXz)}}}var fd_=UY.serverPlaybackStartConfig;fd_&&(this.serverPlaybackStartConfig=fd_);UY.useServerDrivenAbr&&(this.DY=!0);var WdJ=UY.requestPipeliningConfig;WdJ&&(this.requestPipeliningConfig=WdJ)}var dZa=lP.inlinePlaybackConfig;dZa&&(this.Tv=!!dZa.showAudioControls);var L7=lP.embeddedPlayerConfig;if(L7){this.embeddedPlayerConfig=L7;var p9k=L7.embeddedPlayerMode; if(p9k){var EJv=this.J();EJv.kQ=p9k;EJv.T=p9k==="EMBEDDED_PLAYER_MODE_PFL"}var jjk=L7.permissions;jjk&&(this.allowImaMonetization=!!jjk.allowImaMonetization)}var GPv=lP.ssapConfig;GPv&&(this.TL=GPv.ssapPrerollEnabled||!1);var Fd=lP.webPlayerConfig;Fd&&(Fd.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Fd.gatewayExperimentGroup),Fd.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var xQ=this.playerResponse.streamingData;if(xQ){var g_7=xQ.formats;if(g_7){for(var ak=[],VV7=g.N(g_7),m9k=VV7.next();!m9k.done;m9k= VV7.next()){var yQa=m9k.value;ak.push(yQa.itag+"/"+yQa.width+"x"+yQa.height)}this.dL=ak.join(",");ak=[];for(var PyG=g.N(g_7),i57=PyG.next();!i57.done;i57=PyG.next()){var e5=i57.value,KU={itag:e5.itag,type:e5.mimeType,quality:e5.quality},BOY=e5.url;BOY&&(KU.url=BOY);var Jf=Wd(e5),IkL=Jf.VP,u$5=Jf.Ou,wTW=Jf.s;Jf.R_&&(KU.url=IkL,KU.sp=u$5,KU.s=wTW);ak.push(g.kV(KU))}this.IP=ak.join(",")}var zsa=xQ.hlsFormats;if(zsa){var TOm=lP||null,bz={};if(TOm){var N3G=TOm.audioPairingConfig;if(N3G&&N3G.pairs)for(var raz= g.N(N3G.pairs),lia=raz.next();!lia.done;lia=raz.next()){var Sfz=lia.value,fik=Sfz.videoItag;bz[fik]||(bz[fik]=[]);bz[fik].push(Sfz.audioItag)}}for(var sjo={},YfJ=g.N(zsa),Wk3=YfJ.next();!Wk3.done;Wk3=YfJ.next()){var $Zv=Wk3.value;sjo[$Zv.itag]=$Zv.bitrate}for(var Cya=[],Xp7=g.N(zsa),d93=Xp7.next();!d93.done;d93=Xp7.next()){var Jz=d93.value,EN={itag:Jz.itag,type:Jz.mimeType,url:Jz.url,bitrate:Jz.bitrate,width:Jz.width,height:Jz.height,fps:Jz.fps},I7=Jz.audioTrack;if(I7){var Qja=I7.displayName;Qja&& (EN.name=Qja,EN.audio_track_id=I7.id,I7.audioIsDefault&&(EN.is_default="1"))}if(Jz.drmFamilies){for(var R5z=[],DZG=g.N(Jz.drmFamilies),E_z=DZG.next();!E_z.done;E_z=DZG.next())R5z.push(vG[E_z.value]);EN.drm_families=R5z.join(",")}var uz=bz[Jz.itag];if(uz&&uz.length){EN.audio_itag=uz.join(",");var kPY=sjo[uz[0]];kPY&&(EN.bitrate+=kPY)}var OEY=dta(Jz);OEY&&(EN.eotf=OEY);Jz.audioChannels&&(EN.audio_channels=Jz.audioChannels);Cya.push(g.kV(EN))}this.hlsFormats=Cya.join(",")}var j0k=xQ.licenseInfos;if(j0k&& j0k.length>0){for(var oJz={},h5z=g.N(j0k),Gy3=h5z.next();!Gy3.done;Gy3=h5z.next()){var ca3=Gy3.value,UZG=ca3.drmFamily,xZz=ca3.url;UZG&&xZz&&(oJz[vG[UZG]]=xZz)}this.Ke=oJz}var nJJ=xQ.drmParams;nJJ&&(this.drmParams=nJJ);var tVv=xQ.dashManifestUrl;tVv&&(this.y6=g.Os(tVv,{cpn:this.clientPlaybackNonce}));var ZEa=xQ.hlsManifestUrl;ZEa&&(this.hlsvp=ZEa);var HEz=xQ.probeUrl;HEz&&(this.probeUrl=FK(g.Os(HEz,{cpn:this.clientPlaybackNonce})));var Ldk=xQ.serverAbrStreamingUrl;Ldk&&(this.rZ=new g.yJ(Ldk,!0))}var Fg_= this.playerResponse.trackingParams;Fg_&&(this.WN=Fg_);var cW=this.playerResponse.videoDetails;if(cW){var ju=F,VpG=cW.videoId;VpG&&(this.videoId=VpG,ju.video_id||(ju.video_id=VpG));var JHY=cW.channelId;JHY&&(this.V.uid=JHY.substring(2));var Pwk=cW.title;Pwk&&(this.title=Pwk,ju.title||(ju.title=Pwk));var B3k=cW.lengthSeconds;B3k&&(this.lengthSeconds=Number(B3k),ju.length_seconds||(ju.length_seconds=B3k));var bco=cW.keywords;bco&&(this.keywords=yIY(bco));var T37=cW.channelId;T37&&(this.uB=T37,ju.ucid|| (ju.ucid=T37));var Im4=cW.viewCount;Im4&&(this.rawViewCount=Number(Im4));var rQz=cW.author;rQz&&(this.author=rQz,ju.author||(ju.author=rQz));var uy4=cW.shortDescription;uy4&&(this.shortDescription=uy4);var wlv=cW.isCrawlable;wlv&&(this.isListed=wlv);var Mdz=cW.musicVideoType;Mdz&&(this.musicVideoType=Mdz);var SQv=cW.isLive;SQv!=null&&(this.isLivePlayback=SQv);if(SQv||cW.isUpcoming)this.isPremiere=!cW.isLiveContent;var AHo=cW.thumbnail;AHo&&(this.N=pC(AHo));var qe4=cW.isExternallyHostedPodcast;qe4&& (this.isExternallyHostedPodcast=qe4);var s0Y=cW.viewerLivestreamJoinPosition;if(s0Y==null?0:s0Y.utcTimeMillis)this.tG=L5(s0Y.utcTimeMillis);var v7z=lP||null,YQz=F;cW.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);cW.isUpcoming&&(this.isUpcoming=!0);if(cW.isPostLiveDvr){this.SF=!0;var amY=cW.latencyClass;amY&&(this.latencyClass=c_k[amY]||"UNKNOWN");cW.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var $9z=!1;this.nW?(this.allowLiveDvr=Z1()?!0:nl&&FG<5?!1:!0,this.isLivePlayback= !0):cW.isLive?(YQz.livestream="1",this.allowLiveDvr=cW.isLiveDvrEnabled?Z1()?!0:nl&&FG<5?!1:!0:!1,this.partnerId=27,$9z=!0):cW.isUpcoming&&($9z=!0);if(cW.isLive||this.nW&&this.S("html5_parse_live_monitor_flags")){cW.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var ek3=cW.latencyClass;ek3&&(this.latencyClass=c_k[ek3]||"UNKNOWN");var Kgk=cW.liveChunkReadahead;Kgk&&(this.liveChunkReadahead=Kgk);var nQ=v7z&&v7z.livePlayerConfig;if(nQ){nQ.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0); nQ.hasSubfragmentedWebm&&(this.I0=!0);nQ.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var pl4=nQ.liveExperimentalContentId;pl4&&(this.liveExperimentalContentId=Number(pl4));var g7k=nQ.isLiveHeadPlayable;this.S("html5_live_head_playable")&&g7k!=null&&(this.isLiveHeadPlayable=g7k)}}$9z&&(this.isLivePlayback=!0,YQz.adformat&&YQz.adformat.split("_")[1]!=="8"||this.kQ.push("heartbeat"),this.GH=!0)}var mVo=cW.isPrivate;mVo!==void 0&&(this.isPrivate=JC(this.isPrivate,mVo))}if(AJ){var yHY= cW||null,icY=!1,t3=AJ.errorScreen;icY=t3&&(t3.playerLegacyDesktopYpcOfferRenderer||t3.playerLegacyDesktopYpcTrailerRenderer||t3.ypcTrailerRenderer)?!0:yHY&&yHY.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(AJ.status);if(!icY){this.errorCode=jSa(AJ.errorCode)||"auth";var wC=t3&&t3.playerErrorMessageRenderer;if(wC){this.playerErrorMessageRenderer=wC;var zkz=wC.reason;zkz&&(this.errorReason=g.Kr(zkz));var Cwz=wC.subreason;Cwz&&(this.yx=g.Kr(Cwz),this.TZ=Cwz)}else this.errorReason= AJ.reason||null;var X9z=AJ.status;if(X9z==="LOGIN_REQUIRED")this.errorDetail="1";else if(X9z==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(X9z==="AGE_CHECK_REQUIRED"){var NeC=AJ.errorScreen,lmz=NeC&&NeC.playerKavRenderer;this.errorDetail=lmz&&lmz.kavUrl?"4":"3"}else this.errorDetail=AJ.isBlockedInRestrictedMode?"5":"0"}}var fmk=this.playerResponse.interstitialPods;fmk&&Rao(this,fmk);this.Jz&&this.eventId&&(this.Jz=ui(this.Jz,{ei:this.eventId}));var Q0o=this.playerResponse.captions;if(Q0o&& Q0o.playerCaptionsTracklistRenderer)a:{var Gv=Q0o.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Gv.captionTracks)for(var WgC=g.N(Gv.captionTracks),Rsk=WgC.next();!Rsk.done;Rsk=WgC.next()){var Vf=Rsk.value,dVo=pFJ(Vf.baseUrl);if(!dVo)break a;var D9m={is_translateable:!!Vf.isTranslatable,languageCode:Vf.languageCode,languageName:Vf.name&&g.Kr(Vf.name),url:dVo,vss_id:Vf.vssId,kind:Vf.kind};D9m.name=Vf.trackName;D9m.displayName=Vf.name&&g.Kr(Vf.name);this.captionTracks.push(new g.qF(D9m))}this.nT= Gv.audioTracks||[];this.oF=Gv.defaultAudioTrackIndex||0;this.Cu=[];if(Gv.translationLanguages)for(var E7G=g.N(Gv.translationLanguages),kyz=E7G.next();!kyz.done;kyz=E7G.next()){var Zy=kyz.value,eZ={};eZ.languageCode=Zy.languageCode;eZ.languageName=g.Kr(Zy.languageName);if(Zy.translationSourceTrackIndices){eZ.translationSourceTrackIndices=[];for(var jaa=g.N(Zy.translationSourceTrackIndices),O53=jaa.next();!O53.done;O53=jaa.next())eZ.translationSourceTrackIndices.push(O53.value)}if(Zy.excludeAudioTrackIndices){eZ.excludeAudioTrackIndices= [];for(var G9m=g.N(Zy.excludeAudioTrackIndices),o_7=G9m.next();!o_7.done;o_7=G9m.next())eZ.excludeAudioTrackIndices.push(o_7.value)}this.Cu.push(eZ)}this.cO=[];if(Gv.defaultTranslationSourceTrackIndices)for(var Vd3=g.N(Gv.defaultTranslationSourceTrackIndices),hsm=Vd3.next();!hsm.done;hsm=Vd3.next())this.cO.push(hsm.value);this.ra=!!Gv.contribute&&!!Gv.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Sl=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&kJ4(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var PXm;this.compositeLiveIngestionOffsetToken=(PXm=this.playerResponse.playbackTracking)==null?void 0:PXm.compositeLiveIngestionOffsetToken;var Beo;this.compositeLiveStatusToken=(Beo=this.playerResponse.playbackTracking)==null?void 0: Beo.compositeLiveStatusToken}k$(this,F);F.queue_info&&(this.queueInfo=F.queue_info);var Te_=F.hlsdvr;Te_!=null&&(this.allowLiveDvr=Number(Te_)===1?Z1()?!0:nl&&FG<5?!1:!0:!1);this.adQueryId=F.ad_query_id||null;this.cE||(this.cE=F.encoded_ad_safety_reason||null);this.jh=F.agcid||null;this.xd=F.ad_id||null;this.oe=F.ad_sys||null;this.gL=F.encoded_ad_playback_context||null;this.T8=JC(this.T8,F.infringe||F.muted);this.GJ=F.authkey;this.rb=F.authuser;this.mutedAutoplay=JC(this.mutedAutoplay,F&&F.playmuted); this.S("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode=Ig(this.mutedAutoplayDurationMode,F&&F.muted_autoplay_duration_mode));this.jY=JC(this.jY,F&&F.mutedautoplay);var MU=F.length_seconds;MU&&(this.lengthSeconds=typeof MU==="string"?L5(MU):MU);if(this.isAd()||this.Ar||!g.q1(g.S8(this.PN)))this.endSeconds=Ig(this.endSeconds,this.Ud||F.end||F.endSeconds);else{var M4R=g.S8(this.PN),Af=this.lengthSeconds;switch(M4R){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Af> 30?this.limitedPlaybackDurationInSeconds=30:Af<30&&Af>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Af*.2}}this.WN=u8(this.WN,F.itct);this.CM=JC(this.CM,F.noiba);this.UP=JC(this.UP,F.is_live_destination);this.isLivePlayback=JC(this.isLivePlayback,F.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.MW();F.isUpcoming&&(this.isUpcoming=JC(this.isUpcoming,F.isUpcoming));this.SF= JC(this.SF,F.post_live_playback);this.fW&&(this.SF=!1);this.isMdxPlayback=JC(this.isMdxPlayback,F.mdx);var qU=F.mdx_control_mode;qU&&(this.mdxControlMode=typeof qU==="number"?qU:L5(qU));this.isInlinePlaybackNoAd=JC(this.isInlinePlaybackNoAd,F.is_inline_playback_no_ad);this.T1=Ig(this.T1,F.reload_count);this.reloadReason=u8(this.reloadReason,F.reload_reason);this.Px=JC(this.Px,F.show_content_thumbnail);this.b2=JC(this.b2,F.utpsa);this.cycToken=F.cyc||null;this.LT=F.tkn||null;var rHJ=KC(F);Object.keys(rHJ).length> 0&&(this.N=rHJ);this.eE=u8(this.eE,F.vvt);this.mdxEnvironment=u8(this.mdxEnvironment,F.mdx_environment);F.source_container_playlist_id&&(this.sourceContainerPlaylistId=F.source_container_playlist_id);F.serialized_mdx_metadata&&(this.serializedMdxMetadata=F.serialized_mdx_metadata);this.gb=F.osig;this.eventId||(this.eventId=F.eventid);this.osid||(this.osid=F.osid);this.playlistId=u8(this.playlistId,F.list);F.index&&(this.playlistIndex=this.playlistIndex===void 0?Ig(0,F.index):Ig(this.playlistIndex, F.index));this.f0=F.pyv_view_beacon_url;this.k5=F.pyv_quartile25_beacon_url;this.Ig=F.pyv_quartile50_beacon_url;this.E6=F.pyv_quartile75_beacon_url;this.IJ=F.pyv_quartile100_beacon_url;var Sea=F.session_data;!this.Tt&&Sea&&(this.Tt=HT(Sea,"&").feature);this.isFling=Ig(this.isFling?1:0,F.is_fling)===1;this.vnd=Ig(this.vnd,F.vnd);this.forceAdsUrl=u8(this.forceAdsUrl,F.force_ads_url);this.iq=u8(this.iq,F.ctrl);this.I6=u8(this.I6,F.ytr);this.lK=F.ytrcc;this.Zh=F.ytrexp;this.vO=F.ytrext;this.If=u8(this.If, F.adformat);this.KI=u8(this.KI,F.attrib);this.slotPosition=Ig(this.slotPosition,F.slot_pos);this.breakType=F.break_type;this.fN=JC(this.fN,F.ssrt);this.videoId=M1(F)||this.videoId;this.W=u8(this.W,F.vss_credentials_token);this.kZ=u8(this.kZ,F.vss_credentials_token_type);this.D4=JC(this.D4,F.audio_only);this.Q2=JC(this.Q2,F.aac_high);this.h5=JC(this.h5,F.prefer_low_quality_audio);this.ez=JC(this.ez,F.uncap_inline_quality);this.S("html5_enable_qoe_cat_list")?F.qoe_cat&&(this.oV=this.oV.concat(F.qoe_cat.split(","))): this.fL=u8(this.fL,F.qoe_cat);this.qa=JC(this.qa,F.download_media);var saJ=F.prefer_gapless;this.Y=saJ!=null?JC(this.Y,saJ):this.Y?this.Y:this.PN.preferGapless&&this.PN.supportsGaplessShorts();OK3(this.playerResponse)&&this.kQ.push("ad");var YeJ=F.adaptive_fmts;YeJ&&(this.adaptiveFormats=YeJ,this.UQ("adpfmts",{},!0));var $Vv=F.allow_embed;$Vv&&(this.allowEmbed=Number($Vv)===1);var CX7=F.backgroundable;CX7&&(this.backgroundable=Number(CX7)===1);var Xlm=F.autonav;Xlm&&(this.isAutonav=Number(Xlm)=== 1);var Qak=F.autoplay;Qak&&(this.NJ=this.dK=Number(Qak)===1,Zh(this,"c"));var Rka=F.iv_load_policy;Rka&&(this.annotationsLoadPolicy=b8(this.annotationsLoadPolicy,Rka,s7));var DV4=F.cc_lang_pref;DV4&&(this.captionsLanguagePreference=u8(DV4,this.captionsLanguagePreference));var k9J=F.cc_load_policy;k9J&&(this.HO=b8(this.HO,k9J,s7));var Oc_;this.deviceCaptionsOn=(Oc_=F.device_captions_on)!=null?Oc_:void 0;var o77;this.Ch=(o77=F.device_captions_lang_pref)!=null?o77:"";var hkC;this.Xc=(hkC=F.viewer_selected_caption_langs)!= null?hkC:[];if(!this.S("html5_enable_ssap_entity_id")){var cHz=F.cached_load;cHz&&(this.Ta=JC(this.Ta,cHz))}if(F.dash==="0"||F.dash===0||F.dash===!1)this.Z1=!0;var UVG=F.dashmpd;UVG&&(this.y6=g.Os(UVG,{cpn:this.clientPlaybackNonce}));var xVJ=F.delay;xVJ&&(this.xm=L5(xVJ));var cQ7=this.Ud||F.end;if(this.Se?cQ7!=null:cQ7!=void 0)this.clipEnd=Ig(this.clipEnd,cQ7);var n7o=F.fmt_list;n7o&&(this.dL=n7o);F.heartbeat_preroll&&this.kQ.push("heartbeat");this.Wu=-Math.floor(Math.random()*10);this.BE=-Math.floor(Math.random()* 40);var tdz=F.is_listed;tdz&&(this.isListed=JC(this.isListed,tdz));var ZcY=F.is_private;ZcY&&(this.isPrivate=JC(this.isPrivate,ZcY));var Hc3=F.is_dni;Hc3&&(this.T0=JC(this.T0,Hc3));var Lgm=F.dni_color;Lgm&&(this.RV=u8(this.RV,Lgm));var Fwz=F.pipable;Fwz&&(this.pipable=JC(this.pipable,Fwz));this.FK=(this.rh=this.pipable&&this.PN.HQ)&&!this.PN.showMiniplayerButton;var J9_=F.paid_content_overlay_duration_ms;J9_&&(this.paidContentOverlayDurationMs=L5(J9_));var bvz=F.paid_content_overlay_text;bvz&&(this.paidContentOverlayText= bvz);var Iqz=F.url_encoded_fmt_stream_map;Iqz&&(this.IP=Iqz);var uxG=F.hls_formats;uxG&&(this.hlsFormats=uxG);var wsJ=F.hlsvp;wsJ&&(this.hlsvp=wsJ);var vv=F.live_start_walltime;vv&&(this.IB=typeof vv==="number"?vv:L5(vv));var a7=F.live_manifest_duration;a7&&(this.ZY=typeof a7==="number"?a7:L5(a7));var MIk=F.player_params;MIk&&(this.playerParams=MIk);var A9o=F.partnerid;A9o&&(this.partnerId=Ig(this.partnerId,A9o));var qdG=F.probe_url;qdG&&(this.probeUrl=FK(g.Os(qdG,{cpn:this.clientPlaybackNonce}))); var U9o=F.pyv_billable_url;U9o&&HOY(U9o)&&(this.pF=U9o);var x9z=F.pyv_conv_url;x9z&&HOY(x9z)&&(this.n0=x9z);iU3(this,F);this.startSeconds>0?this.S("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Sl||this.nL||F.start||F.startSeconds)&&this.UQ("lss",{css:this.startSeconds,pcss:this.Sl,iss:this.nL,ps:F.start||void 0,pss:F.startSeconds||void 0}):this.Kk=this.startSeconds=Ig(this.startSeconds,this.Sl||this.nL||F.start||F.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0)){var viY=F.live_utc_start;if(viY!=null)this.liveUtcStartSeconds=Number(viY);else{var n_z=this.startSeconds;n_z&&isFinite(n_z)&&n_z>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var aqC=F.utc_start_millis;aqC&&(this.liveUtcStartSeconds=Number(aqC)*.001)}var eFz=F.stream_time_start_millis;eFz&&(this.Uz=Number(eFz)*.001);var tp_=this.nL||F.start;(this.Se?tp_==null||Number(F.resume)===1:tp_==void 0||F.resume=="1")||this.isLivePlayback|| (this.clipStart=Ig(this.clipStart,tp_));var Kwm=F.url_encoded_third_party_media;Kwm&&(this.qh=JR(Kwm));var Z5G=F.ypc_offer_button_formatted_text;if(Z5G){var psY=JSON.parse(Z5G);this.uh=psY!=null?psY:null;this.VS=Z5G}var gi3=F.ypc_offer_button_text;gi3&&(this.Oc=gi3);var m$o=F.ypc_offer_description;m$o&&(this.Pn=m$o);var y93=F.ypc_offer_headline;y93&&(this.HC=y93);var iva=F.ypc_full_video_message;iva&&(this.sW=iva);var zFJ=F.ypc_offer_id;zFJ&&(this.Mh=zFJ);var Ngm=F.ypc_buy_url;Ngm&&(this.gW=Ngm); var lq3=F.ypc_item_thumbnail;lq3&&(this.WC=lq3);var fqm=F.ypc_item_title;fqm&&(this.uH=fqm);var Wwa=F.ypc_item_url;Wwa&&(this.A2=Wwa);var d$o=F.ypc_vid;d$o&&(this.gO=d$o);F.ypc_overlay_timeout&&(this.k6=Number(F.ypc_overlay_timeout));var Eia=F.ypc_trailer_player_vars;Eia&&(this.gT=FF(Eia));var jhv=F.ypc_original_itct;jhv&&(this.vt=jhv);this.uB=u8(this.uB,F.ucid);F.baseUrl&&(this.V.baseUrl=F.baseUrl);F.uid&&(this.V.uid=F.uid);F.oeid&&(this.V.oeid=F.oeid);F.ieid&&(this.V.ieid=F.ieid);F.ppe&&(this.V.ppe= F.ppe);F.engaged&&(this.V.engaged=F.engaged);F.subscribed&&(this.V.subscribed=F.subscribed);this.V.focEnabled=JC(this.V.focEnabled,F.focEnabled);this.V.rmktEnabled=JC(this.V.rmktEnabled,F.rmktEnabled);this.GW=F.storyboard_spec||null;this.QF=F.live_storyboard_spec||null;this.On=F.iv_endscreen_url||null;this.GH=JC(this.GH,F.ypc_license_checker_module);this.Tc=JC(this.Tc,F.ypc_module);this.ir=JC(this.ir,F.ypc_clickwrap_module);this.Tc&&this.kQ.push("ypc");this.ir&&this.kQ.push("ypc_clickwrap");this.Vr= {video_id:F.video_id,eventid:F.eventid,cbrand:F.cbrand,cbr:F.cbr,cbrver:F.cbrver,c:F.c,cver:F.cver,ctheme:F.ctheme,cplayer:F.cplayer,cmodel:F.cmodel,cnetwork:F.cnetwork,cos:F.cos,cosver:F.cosver,cplatform:F.cplatform,user_age:F.user_age,user_display_image:F.user_display_image,user_display_name:F.user_display_name,user_gender:F.user_gender,csi_page_type:F.csi_page_type,csi_service_name:F.csi_service_name,enablecsi:F.enablecsi,enabled_engage_types:F.enabled_engage_types};KeG(this,F);var GL3=F.cotn; GL3&&(this.cotn=GL3);if(TcJ(this))wS(this)&&(this.isLivePlayback&&this.y6&&(this.MJ=!0),this.oI&&(this.b1=!0));else if(rIa(this))this.MJ=!0;else{var VIz,Phz,BgY=((VIz=this.playerResponse)==null?void 0:(Phz=VIz.streamingData)==null?void 0:Phz.adaptiveFormats)||[];if(BgY.length>0)var pU=Bca(this,BgY);else{var TgJ=this.adaptiveFormats;if(TgJ&&!wS(this)){Mb(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(WG=!0);var HA=pY(TgJ),H5k=this.Ke,r9o=this.lengthSeconds,AE8=this.isLivePlayback,gc=this.SF, LQ=this.PN,qk5=Qlm(HA);if(AE8||gc){var SdY=LQ==null?void 0:LQ.experiments,Q3=new Ag("",SdY,!0);Q3.MW=!0;Q3.isManifestless=!0;Q3.U=!gc;Q3.isLive=!gc;Q3.SF=gc;for(var sha=g.N(HA),LkG=sha.next();!LkG.done;LkG=sha.next()){var FU=LkG.value,Ydm=e$(FU,H5k),KJ=KW(FU.url,FU.sp,FU.s),$$C=KJ.get("id");$$C&&$$C.includes("%7E")&&(Q3.N=!0);var Cha=void 0,vDH=(Cha=SdY)==null?void 0:Cha.pW("html5_max_known_end_time_rebase"),ak5=Number(FU.target_duration_sec)||5,ez1=Number(FU.max_dvr_duration_sec)||14400,Xs4=Number(KJ.get("mindsq")|| KJ.get("min_sq")||"0"),Qhm=Number(KJ.get("maxdsq")||KJ.get("max_sq")||"0")||Infinity;Q3.De=Q3.De||Xs4;Q3.VN=Q3.VN||Qhm;var KM1=!Zf(Ydm);KJ&&uI(Q3,new hM(KJ,Ydm,{U2:ak5,Hu:KM1,jD:ez1,De:Xs4,VN:Qhm,gC:300,SF:gc,jf:vDH}))}var RFv=Q3}else{if(qk5==="FORMAT_STREAM_TYPE_OTF"){var eS=r9o;eS=eS===void 0?0:eS;var J$=new Ag("",LQ==null?void 0:LQ.experiments,!1);J$.duration=eS||0;for(var D$Y=g.N(HA),FD_=D$Y.next();!FD_.done;FD_=D$Y.next()){var bx=FD_.value,JDz=e$(bx,H5k,J$.duration),b$G=KW(bx.url,bx.sp,bx.s); if(b$G)if(JDz.streamType==="FORMAT_STREAM_TYPE_OTF")uI(J$,new c6(b$G,JDz,"sq/0"));else{var pTb=dG(bx.init),gDW=dG(bx.index);uI(J$,new Jg(b$G,JDz,pTb,gDW))}}J$.isOtf=!0;var kLG=J$}else{var KS=r9o;KS=KS===void 0?0:KS;var pS=new Ag("",LQ==null?void 0:LQ.experiments,!1);pS.duration=KS||0;for(var Ovz=g.N(HA),I8z=Ovz.next();!I8z.done;I8z=Ovz.next()){var I1=I8z.value,mjz=e$(I1,H5k,pS.duration),yEL=dG(I1.init),iXR=dG(I1.index),oik=KW(I1.url,I1.sp,I1.s);oik&&uI(pS,new Jg(oik,mjz,yEL,iXR))}kLG=pS}RFv=kLG}var hFz= RFv;if(HA.length>0){var c9v=HA[0];if(this.J().playerStyle==="hangouts-meet"&&c9v.url){var zze=g.bi(c9v.url);this.SD=this.SD||Number(zze.expire)}}var NFm=this.isLivePlayback&&!this.SF&&!this.fW&&!this.isPremiere;this.S("html5_live_head_playable")&&(!Aw(this)&&NFm&&this.UQ("missingLiveHeadPlayable",{}),this.PN.Tj==="yt"&&(hFz.KW=!0));pU=hFz}else pU=null;this.UQ("pafmts",{isManifestFilled:!!pU})}if(pU){aU(this,pU);var U$z=!0}else U$z=!1;U$z?this.enableServerStitchedDai=this.enableServerStitchedDai&& qb(this):this.y6&&(this.PN.Tj==="yt"&&this.MW()&&this.S("drm_manifestless_unplugged")&&this.S("html5_deprecate_manifestful_fallback")?this.UQ("deprecateMflFallback",{}):this.MJ=!0)}var ulG=F.adpings;ulG&&(this.mY=ulG?FF(ulG):null);var x$a=F.feature;x$a&&(this.Yf=x$a);var ni3=F.referrer;ni3&&(this.referrer=ni3);this.clientScreenNonce=u8(this.clientScreenNonce,F.csn);this.Yn=Ig(this.Yn,F.root_ve_type);this.mq=Ig(this.mq,F.kids_age_up_mode);this.Se||F.kids_app_info==void 0||(this.kidsAppInfo=F.kids_app_info); this.Se&&F.kids_app_info!=null&&(this.kidsAppInfo=F.kids_app_info);this.Vj=JC(this.Vj,F.upg_content_filter_mode);this.unpluggedFilterModeType=Ig(this.unpluggedFilterModeType,F.unplugged_filter_mode_type);var tI3=F.unplugged_location_info;tI3&&(this.Tj=tI3);var Zv7=F.unplugged_partner_opt_out;Zv7&&(this.KT=u8("",Zv7));this.XZ=JC(this.XZ,F.disable_watch_next);this.jn=u8(this.jn,F.internal_ip_override);this.wp=!!F.is_yto_interstitial;(this.interstitials.length||this.wp)&&this.kQ.push("yto");var Hva= F.bB;Hva&&(this.bB=Hva);var Lwa;this.zj=(Lwa=F.csi_timer)!=null?Lwa:"";this.Ys=!!F.force_gvi;F.watchUrl&&(this.watchUrl=F.watchUrl);var pJ=F.watch_endpoint;this.S("html5_attach_watch_endpoint_ustreamer_config")&&pJ&&Vj3(this,pJ);if(pJ==null?0:pJ.ustreamerConfig)this.v5=Iw(pJ.ustreamerConfig);var FVz,Juk,b74=pJ==null?void 0:(FVz=pJ.loggingContext)==null?void 0:(Juk=FVz.qoeLoggingContext)==null?void 0:Juk.serializedContextData;b74&&(this.xz=b74);g.dN(this.PN)&&this.PN.G8&&(this.embedsRct=u8(this.embedsRct, F.rct),this.embedsRctn=u8(this.embedsRctn,F.rctn));this.XI=this.XI||!!F.pause_at_start;F.default_active_source_video_id&&(this.defaultActiveSourceVideoId=F.default_active_source_video_id)}; g.A.J=function(){return this.PN}; g.A.S=function(F){return this.PN.S(F)}; g.A.hX=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.A.hasSupportedAudio51Tracks=function(){var F;return!((F=this.K7)==null||!F.cN)}; g.A.getUserAudio51Preference=function(){var F=1;cu(this.PN)&&this.S("html5_ytv_surround_toggle_default_off")?F=0:g.O7(this.PN)&&this.isLivePlayback&&this.So()&&(F=0);var J;return(J=g.S9("yt-player-audio51"))!=null?J:F}; g.A.OR=function(){this.iR()||(this.C.U||this.C.unsubscribe("refresh",this.OR,this),this.Mu(-1))}; g.A.Mu=function(F){if(!this.isLivePlayback||!this.D||this.D.flavor!=="fairplay"){var J=DtG(this.C,this.mE);if(J.length>0){for(var b=g.N(J),I=b.next();!I.done;I=b.next())I=I.value,I.startSecs=Math.max(I.startSecs,this.Ho()),this.S("html5_cuepoint_identifier_logging")&&I.event==="start"&&this.UQ("cuepoint",{pubCue:I.identifier,segNum:F});this.publish("cuepointupdated",J,F);this.mE+=J.length;if(qb(this)&&this.PN.hJ())for(J=g.N(J),b=J.next();!b.done;b=J.next())b=b.value,this.UQ("cuepoint",{segNum:F,event:b.event, startSecs:b.startSecs,id:b.identifier.slice(-16)}),b.event==="start"&&(b=b.startSecs,this.BO.start=this.KW,this.BO.end=b+3)}}}; g.A.Sc=function(){this.iR()||(this.loading=!1,this.publish("dataloaded"))}; g.A.So=function(){return this.IX!==void 0?this.IX:this.IX=!!this.Ke||!!this.C&&vd(this.C)}; g.A.b_=function(F){var J=this;if(this.iR())return Tk();this.g9=this.bR=this.T=null;Mb(this,"html5_high_res_logging_always")&&(this.PN.zU=!0);return CMk(this,F).then(void 0,function(){return XF3(J,F)}).then(void 0,function(){return Qk_(J)}).then(void 0,function(){return DEk(J)})}; g.A.Si=function(){if(this.cotn)return null;var F=g.dX(this.PN)||this.S("web_l3_storyboard");if(!this.Uk)if(this.playerResponse&&this.playerResponse.storyboards){var J=this.playerResponse.storyboards,b=J.playerStoryboardSpecRenderer;b&&b.spec?this.Uk=new Y$(b.spec,this.lengthSeconds,void 0,!1,F):(J=J.playerLiveStoryboardSpecRenderer)&&J.spec&&this.C&&(b=opz(this.C.C).index)&&(this.Uk=new CC(J.spec,this.C.isLive,b,F))}else this.GW?this.Uk=new Y$(this.GW,this.lengthSeconds,void 0,!1,F):this.QF&&this.C&& (J=opz(this.C.C).index)&&(this.Uk=new CC(this.QF,this.C.isLive,J,F));return this.Uk}; g.A.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var F=this.playerResponse.storyboards;return(F=F.playerStoryboardSpecRenderer||F.playerLiveStoryboardSpecRenderer)&&F.spec||null}return this.GW||this.QF}; g.A.lC=function(){return this.C&&!isNaN(this.C.lC())?this.C.lC():qb(this)?0:this.lengthSeconds}; g.A.Ho=function(){return this.C&&!isNaN(this.C.Ho())?this.C.Ho():0}; g.A.getPlaylistSequenceForTime=function(F){if(this.C&&this.U){var J=this.C.C[this.U.id];if(!J)return null;var b=J.index.Ea(F);J=J.index.getStartTime(b);return{sequence:b,elapsed:Math.floor((F-J)*1E3)}}return null}; g.A.o8=function(){return!this.iR()&&!(!this.videoId&&!this.qh)}; g.A.wk=function(){var F,J,b;return!!this.adaptiveFormats||!!((F=this.playerResponse)==null?0:(J=F.streamingData)==null?0:(b=J.adaptiveFormats)==null?0:b.length)}; g.A.isLoaded=function(){return DR(this)&&!this.MJ&&!this.b1}; g.A.lr=function(F){F||(F="hqdefault.jpg");var J=this.N[F];return J||this.PN.eE||F==="pop1.jpg"||F==="pop2.jpg"||F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg"?J:D7(this.PN,this.videoId,F)}; g.A.MW=function(){return this.isLivePlayback||this.SF||this.fW||!(!this.liveUtcStartSeconds||!this.ZY)}; g.A.isOtf=function(){return!!this.C&&(this.C.isOtf||!this.SF&&!this.isLivePlayback&&this.C.U)}; g.A.getAvailableAudioTracks=function(){return this.T?this.T.getAvailableAudioTracks().length>0?this.T.getAvailableAudioTracks():this.dk||[]:[]}; g.A.getAudioTrack=function(){var F=this;if(this.Z&&!t1(this.Z))return g.xL(this.getAvailableAudioTracks(),function(I){return I.id===F.Z.id})||this.eB; if(this.dk){if(!this.eD)for(var J=g.N(this.dk),b=J.next();!b.done;b=J.next())if(b=b.value,b.j3.getIsDefault()){this.eD=b;break}return this.eD||this.eB}return this.eB}; g.A.getPlayerResponse=function(){return this.playerResponse}; g.A.getWatchNextResponse=function(){return this.dD}; g.A.getHeartbeatResponse=function(){return this.nx}; g.A.t4=function(){return this.watchUrl?this.watchUrl:this.PN.getVideoUrl(this.videoId)}; g.A.rH=function(){return!!this.C&&(Tua(this.C)||rGC(this.C)||Soo(this.C))}; g.A.getEmbeddedPlayerResponse=function(){return this.yN}; g.A.yM=function(){return(this.eventLabel||this.PN.WN)==="shortspage"}; g.A.isAd=function(){return this.aB||!!this.adFormat}; g.A.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.A.vV=function(){var F,J,b;return this.isDaiEnabled()&&!!((F=this.playerResponse)==null?0:(J=F.playerConfig)==null?0:(b=J.daiConfig)==null?0:b.ssaEnabledPlayback)}; g.A.Ew=function(){return vf3(this)?this.sP:this.GH||this.Lv}; g.A.Gr=function(){return this.Tc||this.Lv}; g.A.Bj=function(){return Mb(this,"html5_samsung_vp9_live")}; g.A.UQ=function(F,J,b){this.publish("ctmp",F,J,b)}; g.A.fQ=function(F,J,b){this.publish("ctmpstr",F,J,b)}; g.A.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.A.getGetAdBreakContext=function(F,J){F=F===void 0?NaN:F;J=J===void 0?NaN:J;var b={isSabr:bE(this)},I,u=(I=this.getHeartbeatResponse())==null?void 0:I.adBreakHeartbeatParams;u&&(b.adBreakHeartbeatParams=u);if(this.S("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.C&&!isNaN(F)&&!isNaN(J)){J=F-J;for(var w in this.C.C)if(I=this.C.C[w],I.info.v1()||I.info.Cd())if(I=I.index,I.isLoaded()){w=I.Ea(J);I=I.Ze(w)+J-I.getStartTime(w);this.UQ("gabc",{t:F.toFixed(3),mt:J.toFixed(3),sg:w,igt:I.toFixed(3)}); b.livePlaybackPosition={utcTimeMillis:""+(I*1E3).toFixed(0)};break}}return b}; g.A.isEmbedsShortsMode=function(F,J){if(!g.dN(this.PN))return!1;var b;if(!this.S("embeds_enable_emc3ds_shorts")&&((b=this.PN.getWebPlayerContextConfig())==null?0:b.embedsEnableEmc3ds)||(this.PN.kQ||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||J)return!1;var I,u;return!!(((I=this.embeddedPlayerConfig)==null?0:(u=I.embeddedPlayerFlags)==null?0:u.isShortsExperienceEligible)&&F.width<=F.height)}; g.A.X_=function(){g.uA.prototype.X_.call(this);this.mY=null;delete this.XE;delete this.accountLinkingConfig;delete this.C;this.T=this.nx=this.playerResponse=this.dD=null;this.IP=this.adaptiveFormats="";delete this.botguardData;this.cN=this.suggestions=this.N6=null;this.sabrContextUpdates.clear()};var ycC={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},imY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},gfa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},eGk={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"},pN3={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},KzG={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"},m0v={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.z(Ja,g.R);g.A=Ja.prototype;g.A.handleExternalCall=function(F,J,b){var I=this.state.V[F],u=this.state.Y[F],w=I;if(u)if(b&&tj(b,M2R))w=u;else if(!I)throw Error('API call from an untrusted origin: "'+b+'"');this.logApiCall(F,b);if(w){b=!1;I=g.N(J);for(u=I.next();!u.done;u=I.next())if(String(u.value).includes("javascript:")){b=!0;break}b&&g.rQ(Error('Dangerous call to "'+F+'" with ['+J+"]."));return w.apply(this,J)}throw Error('Unknown API method: "'+F+'".');}; g.A.logApiCall=function(F,J,b){var I=this.app.J();I.jn&&!this.state.N.has(F)&&(this.state.N.add(F),g.AY("webPlayerApiCalled",{callerUrl:I.loaderUrl,methodName:F,origin:J||void 0,playerStyle:I.playerStyle||void 0,embeddedPlayerMode:I.kQ,errorCode:b}))}; g.A.publish=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));if(F==="videodatachange"||F==="resize"||F==="cardstatechange")this.state.U.publish.apply(this.state.U,[F].concat(g.W(J))),this.state.Z.publish.apply(this.state.Z,[F].concat(g.W(J)))}; g.A.jE=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));this.state.U.publish.apply(this.state.U,[F].concat(g.W(J)))}; g.A.IC=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));this.state.U.publish.apply(this.state.U,[F].concat(g.W(J)));this.state.Z.publish.apply(this.state.Z,[F].concat(g.W(J)))}; g.A.SZ=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));this.state.U.publish.apply(this.state.U,[F].concat(g.W(J)));this.state.Z.publish.apply(this.state.Z,[F].concat(g.W(J)));this.state.D.publish.apply(this.state.D,[F].concat(g.W(J)))}; g.A.S=function(F){return this.app.J().S(F)}; g.A.X_=function(){if(this.state.element){var F=this.state.element,J;for(J in this.state.C)this.state.C.hasOwnProperty(J)&&(F[J]=null);this.state.element=null}g.R.prototype.X_.call(this)};g.z(MZ,g.EJ);MZ.prototype.publish=function(F){var J=g.Ba.apply(1,arguments);if(this.D.has(F))return this.D.get(F).push(J),!0;var b=!1;try{for(J=[J],this.D.set(F,J);J.length;)b=g.EJ.prototype.publish.call.apply(g.EJ.prototype.publish,[this,F].concat(g.W(J.shift())))}finally{this.D.delete(F)}return b};g.z(Aa,g.R);Aa.prototype.X_=function(){this.D.dispose();this.Z.dispose();this.U.dispose();this.T.dispose();this.N=this.C=this.Y=this.V=this.W=void 0};var Efm=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.z(vp,Ja);g.A=vp.prototype;g.A.getApiInterface=function(){return Array.from(this.state.W)}; g.A.q3=function(F,J){this.state.D.subscribe(F,J)}; g.A.ZdD=function(F,J){this.state.D.unsubscribe(F,J)}; g.A.getPlayerState=function(F){return z33(this.app,F)}; g.A.S5=function(){return z33(this.app)}; g.A.VTI=function(F,J,b){KE(this)&&(Qd(this.app,!0,1),kN(this.app,F,J,b,1))}; g.A.getCurrentTime=function(F,J,b){var I=this.getPlayerState(F);if(this.app.getAppState()===2&&I===5){var u;return((u=this.app.getVideoData())==null?void 0:u.startSeconds)||0}return this.S("web_player_max_seekable_on_ended")&&I===0?gha(this.app,F):F?this.app.getCurrentTime(F,J,b):this.app.getCurrentTime(F)}; g.A.Ws=function(){return this.app.getCurrentTime(1)}; g.A.fR=function(){var F=this.app.Ze(1);return isNaN(F)?this.getCurrentTime(1):F}; g.A.qA=function(){return this.app.getDuration(1)}; g.A.WM=function(F,J){F=g.AD(Math.floor(F),0,100);isFinite(F)&&rh(this.app,{volume:F,muted:this.isMuted()},J)}; g.A.bdG=function(F){this.WM(F,!1)}; g.A.Vs=function(F){rh(this.app,{muted:!0,volume:this.getVolume()},F)}; g.A.V3G=function(){this.Vs(!1)}; g.A.yZ=function(F){eV(this.app)&&!this.S("embeds_enable_emc3ds_muted_autoplay")||rh(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},F)}; g.A.Fr_=function(){eV(this.app)&&this.S("embeds_enable_emc3ds_muted_autoplay")||this.yZ(!1)}; g.A.getPlayerMode=function(){var F={};this.app.getVideoData().T0&&(F.pfp={enableIma:g.tw(this.app.getVideoData())&&this.app.Yl().allowImaMonetization,autoplay:RU(this.app.Yl()),mutedAutoplay:this.app.Yl().mutedAutoplay});return F}; g.A.kB=function(){var F=this.app.getPresentingPlayerType();if(F===2&&!this.app.Uo()){var J=XN(this.app.TF());if(!z_3(J)||NzY(J))return}F===3?dO(this.app.TF()).Lx("control_play"):this.app.J().S("html5_ssap_ignore_play_for_ad")&&g.oH(this.app.Yl())&&F===2||this.app.playVideo(F)}; g.A.hxQ=function(){Qd(this.app,!0,1);this.kB()}; g.A.pauseVideo=function(F){var J=this.app.getPresentingPlayerType();if(J!==2||this.app.Uo()||z_3(XN(this.app.TF())))J===3?dO(this.app.TF()).Lx("control_pause"):this.app.pauseVideo(J,F)}; g.A.Prz=function(){var F=this.app,J=!1;F.rD.T1&&(F.SE.publish("pageTransition"),J=!0);F.stopVideo(J)}; g.A.clearVideo=function(){}; g.A.getAvailablePlaybackRates=function(){var F=this.app.J();return F.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(F.Z?F.ancestorOrigins[0]:window.location.origin)||F.nL?CVk:F.supportsVarispeedExtendedFeatures?XWU:F.S("web_remix_allow_up_to_3x_playback_rate")&&g.sV(F)?Qym:Vq:[1]}; g.A.getPlaybackQuality=function(F){return(F=this.app.F4(F))?F.getPlaybackQuality():"unknown"}; g.A.ywG=function(){}; g.A.getAvailableQualityLevels=function(F){return(F=this.app.F4(F))?(F=g.EG(F.W0(),function(J){return J.quality}),F.length&&(F[0]==="auto"&&F.shift(),F=F.concat(["auto"])),F):[]}; g.A.Ps=function(){return this.getAvailableQualityLevels(1)}; g.A.xp=function(){return this.L2()}; g.A.FG=function(){return 1}; g.A.getVideoLoadedFraction=function(F){return this.app.getVideoLoadedFraction(F)}; g.A.L2=function(){return this.getVideoLoadedFraction()}; g.A.Ja=function(){return 0}; g.A.getSize=function(){var F=this.app.mG().getPlayerSize();return{width:F.width,height:F.height}}; g.A.setSize=function(){this.app.mG().resize()}; g.A.loadVideoById=function(F,J,b,I){if(!F)return!1;F=qZ(F,J,b);return this.app.loadVideoByPlayerVars(F,I)}; g.A.rJj=function(F,J,b){F=this.loadVideoById(F,J,b,1);Qd(this.app,F,1)}; g.A.cueVideoById=function(F,J,b,I){F=qZ(F,J,b);this.app.cueVideoByPlayerVars(F,I)}; g.A.eg=function(F,J,b){this.cueVideoById(F,J,b,1)}; g.A.loadVideoByUrl=function(F,J,b,I){F=d0_(F,J,b);return this.app.loadVideoByPlayerVars(F,I)}; g.A.UW_=function(F,J,b){F=this.loadVideoByUrl(F,J,b,1);Qd(this.app,F,1)}; g.A.cueVideoByUrl=function(F,J,b,I){F=d0_(F,J,b);this.app.cueVideoByPlayerVars(F,I)}; g.A.sS=function(F,J,b){this.cueVideoByUrl(F,J,b,1)}; g.A.pR=function(){var F=this.app.J();if(F.eE)return"";var J=this.app.Yl(),b=void 0;J.isLivePlayback||(b=Math.floor(this.app.getCurrentTime(1)));return F.getVideoUrl(J.videoId,this.getPlaylistId()||void 0,b)}; g.A.Ob=function(){return this.app.getDebugText()}; g.A.getVideoEmbedCode=function(){var F=this.app.J();if(F.eE)return"";var J=this.app.Yl();return F.getVideoEmbedCode(J.isPrivate?"":J.title,this.app.Yl().videoId,this.app.mG().getPlayerSize(),this.getPlaylistId()||void 0)}; g.A.A1=function(F,J,b){return GO_(this.app,F,J,b)}; g.A.removeCueRange=function(F){return Pl_(this.app,F)}; g.A.loadPlaylist=function(F,J,b,I){this.app.loadPlaylist(F,J,b,I)}; g.A.NDG=function(F,J,b,I){this.loadPlaylist(F,J,b,I);Qd(this.app,!0,1)}; g.A.cuePlaylist=function(F,J,b,I){this.app.cuePlaylist(F,J,b,I)}; g.A.nextVideo=function(F,J){this.app.nextVideo(F,J)}; g.A.h8_=function(){this.nextVideo();Qd(this.app,!0,1)}; g.A.previousVideo=function(F){this.app.previousVideo(F)}; g.A.Yzf=function(){this.previousVideo();Qd(this.app,!0,1)}; g.A.playVideoAt=function(F){this.app.playVideoAt(F)}; g.A.VZz=function(F){this.playVideoAt(F);Qd(this.app,!0,1)}; g.A.setShuffle=function(F){var J=this.app.getPlaylist();J&&J.setShuffle(F)}; g.A.setLoop=function(F){var J=this.app.getPlaylist();J&&(J.loop=F)}; g.A.VH=function(){var F=this.app.getPlaylist();if(!F)return null;for(var J=[],b=0;b<F.getLength();b++){var I=g.dA(F,b);I&&J.push(I.videoId)}return J}; g.A.getPlaylistIndex=function(){var F=this.app.getPlaylist();return F?F.index:-1}; g.A.getPlaylistId=function(){var F=this.app.getPlaylist();return F&&F.listId?F.listId.toString():null}; g.A.q9=function(F){F==="captions"&&(F=g.Y0(this.app.TF()))&&!F.loaded&&F.load()}; g.A.Gw=function(F){F==="captions"&&(F=g.Y0(this.app.TF()))&&F.loaded&&F.JXG()}; g.A.kq=function(F,J,b){if(!J)return null;var I=this.app.TF();return F==="captions"?(F=g.Y0(I))&&F.qJ(J,b):null}; g.A.MA=function(F,J,b){return this.app.Nf().getVideoData().isPrivate&&this.app.J().Z?{}:this.kq(F,J,b)}; g.A.wA=function(F){var J=this.app.TF();if(F==="captions"){var b;return((b=g.Y0(J))==null?void 0:b.getOptions())||null}return F?null:(F=[],g.Y0(J)&&F.push("captions"),F)}; g.A.getVolume=function(){return this.app.wg.volume}; g.A.isMuted=function(){return this.app.wg.muted}; g.A.destroy=function(){this.app.dispose()}; g.A.logImaAdEvent=function(F,J){var b=this.app.J();g.tw(this.app.getVideoData())&&this.app.Yl().allowImaMonetization&&(F={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:J,embedUrl:g.l83(this.app.J().loaderUrl),eventType:F,youtubeHost:g.Cu(this.app.J().ME)||""},F.embeddedPlayerMode=b.kQ,g.AY("embedsAdEvent",F))}; g.A.mutedAutoplay=function(F){var J=this.app.J(),b,I,u;((b=J.getWebPlayerContextConfig())==null?0:(I=b.embedsHostFlags)==null?0:(u=I.allowMutedAutoplayDurationMode)==null?0:u.length)&&!J.T&&this.app.mutedAutoplay(F)}; g.A.preloadVideoById=function(F,J,b,I){var u,w;((u=this.app.J().getWebPlayerContextConfig())==null?0:(w=u.embedsHostFlags)==null?0:w.allowPreloadVideoById)&&F&&(F=qZ(F,J,b),this.app.preloadVideoByPlayerVars(F,I))}; g.A.oHN=function(F,J,b){this.preloadVideoById(F,J,b,1)}; g.A.setFauxFullscreen=function(F){g.mu();this.app.wT(F?2:0)}; g.A.B6_=function(F){var J,b;((J=this.app.J().getWebPlayerContextConfig())==null?0:(b=J.embedsHostFlags)==null?0:b.allowSetFauxFullscreen)&&this.setFauxFullscreen(F)}; g.A.wakeUpControls=function(){var F=g.aj(this);F&&F.q6()};var Tw4="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.z(pE,vp);g.A=pE.prototype;g.A.Dp=function(F,J){this.state.Z.subscribe(F,J)}; g.A.Xg_=function(F,J){this.state.Z.unsubscribe(F,J)}; g.A.cueVideoByPlayerVars=function(F,J){this.app.cueVideoByPlayerVars(F,J)}; g.A.XV=function(F,J){J=J===void 0?1:J;this.cueVideoByPlayerVars(gO(this,F),J)}; g.A.loadVideoByPlayerVars=function(F,J,b,I,u){this.app.loadVideoByPlayerVars(F,b,J,I,u)}; g.A.wbG=function(F,J,b,I){b=b===void 0?1:b;this.loadVideoByPlayerVars(gO(this,F),J,b,I)}; g.A.preloadVideoByPlayerVars=function(F,J,b,I,u){b=b===void 0?NaN:b;this.app.preloadVideoByPlayerVars(F,J,b,I===void 0?"":I,u===void 0?"":u)}; g.A.yez=function(F,J,b,I){J=J===void 0?1:J;this.preloadVideoByPlayerVars(gO(this,F),J,b,I)}; g.A.iZ=function(F,J,b){this.loadVideoById(F,J,b,1)}; g.A.M9=function(F,J,b){this.loadVideoByUrl(F,J,b,1)}; g.A.Hs=function(F){return this.getPlayerState(F)}; g.A.cX=function(F){F=F===void 0?1:F;var J=G2a(this,F);if(F=this.app.F4(F)){F=F.getVideoData();J.backgroundable=F.backgroundable;J.eventId=F.eventId;J.cpn=F.clientPlaybackNonce;J.isLive=F.isLivePlayback;J.isWindowedLive=F.fW;J.isManifestless=qb(F);J.allowLiveDvr=F.allowLiveDvr;J.isListed=F.isListed;F.liveUtcStartSeconds!=null&&(J.liveUtcStartSeconds=F.liveUtcStartSeconds);F.So()&&(J.isEncrypted=!0);if(F.T)for(var b=g.N(F.T.videoInfos),I=b.next();!I.done;I=b.next()){var u=void 0;if((u=I.value.video)== null?0:u.isHdr()){J.isHdr=!0;break}}var w,M;J.isMultiChannelAudio=!!((w=F.Z)==null?0:(M=w.audio)==null?0:M.isMultiChannelAudio())}return J}; g.A.seekBy=function(F,J,b,I,u){KE(this)&&kN(this.app,this.app.getCurrentTime()+F,J,b,u,I)}; g.A.SoG=function(F,J,b){this.seekBy(F,J,b,void 0,1)}; g.A.seekTo=function(F,J,b,I,u){KE(this)&&kN(this.app,F,J,b,I,u)}; g.A.hsQ=function(F,J,b,I){this.seekTo(F,J,b,I===void 0?1:I)}; g.A.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.A.Aa=function(F,J){return this.getCurrentTime(F===void 0?1:F,J)}; g.A.eh=function(){var F=this.app.getPresentingPlayerType(!0);F===2&&this.app.Uo()&&(F=1);return F}; g.A.getDuration=function(F,J){if(this.eh()===3){var b;return((b=dO(this.app.TF()).getProgressState())==null?void 0:b.duration)||0}return F?this.app.getDuration(F,J):this.app.getDuration(F)}; g.A.lO=function(F,J){return this.getDuration(F===void 0?1:F,J)}; g.A.oY=function(F){return this.getVideoLoadedFraction(F)}; g.A.loadModule=function(F){if(F==="annotations_module"){var J=g.Dg(this.app.TF());J&&!J.loaded&&J.load()}this.q9(F)}; g.A.unloadModule=function(F){if(F==="annotations_module"){var J=g.Dg(this.app.TF());J&&J.loaded&&J.unload()}this.Gw(F)}; g.A.getOption=function(F,J,b,I){return(I=this.app.F4(I))&&I.getVideoData().isPrivate&&this.app.J().Z?{}:this.setOption(F,J,b)}; g.A.vX=function(F,J,b){return this.getOption(F,J,b,1)}; g.A.getOptions=function(F){var J=this.app.TF();switch(F){case "ad":var b,I;return((b=XN(J))==null?void 0:(I=b.getOptions)==null?void 0:I.call(b))||null;case "remote":var u,w;return((u=dO(J))==null?void 0:(w=u.getOptions)==null?void 0:w.call(u))||null;case "annotations_module":var M,q;return((M=g.Dg(J))==null?void 0:(q=M.getOptions)==null?void 0:q.call(M))||null;case "creatorendscreen":var v,a;return((v=k0(J))==null?void 0:(a=v.getOptions)==null?void 0:a.call(v))||null;case "unplugged":var e,K;return((e= g.Ql(J))==null?void 0:(K=e.getOptions)==null?void 0:K.call(e))||null;case "kids":var p,m;return((p=S3a(J))==null?void 0:(m=p.getOptions)==null?void 0:m.call(p))||null}if(!F){F=this.wA();if(!F)return F;XN(J)&&F.push("ad");dO(J)&&F.push("remote");g.Dg(J)&&F.push("annotations_module");k0(J)&&F.push("creatorendscreen");g.Ql(J)&&F.push("unplugged");S3a(J)&&F.push("kids");return F}return this.wA(F)}; g.A.setOption=function(F,J,b){if(!J)return null;var I=this.app.TF();switch(F){case "ad":return(F=XN(I))&&F.qJ&&F.qJ(J,b);case "kids":return(F=S3a(I))&&F.qJ(J,b);case "remote":return(F=dO(I))&&F.qJ(J,b);case "unplugged":return(F=g.Ql(I))&&F.qJ(J,b);case "annotations_module":return(F=g.Dg(I))&&F.qJ(J,b);case "creatorendscreen":return(F=k0(I))&&F.qJ(J,b)}return this.kq(F,J,b)}; g.A.addCueRange=function(F,J,b,I,u){return GO_(this.app,F,J,b,I,u)}; g.A.getDebugText=function(F){return this.app.getDebugText(F)}; g.A.getCurrentBroadcastId=function(){return null}; g.A.handleGlobalKeyDown=function(F,J,b,I,u,w,M,q){J=J===void 0?!1:J;b=b===void 0?!1:b;I=I===void 0?!1:I;u=u===void 0?!1:u;var v=g.aj(this);v&&v.handleGlobalKeyDown(F,J,b,I,u,w,M,q)}; g.A.handleGlobalKeyUp=function(F,J,b,I,u,w,M){J=J===void 0?!1:J;b=b===void 0?!1:b;I=I===void 0?!1:I;u=u===void 0?!1:u;var q=g.aj(this);q&&q.handleGlobalKeyUp(F,J,b,I,u,w,M)}; g.A.setSizeStyle=function(F,J){this.app.setSizeStyle(F,J)}; g.A.showControls=function(){var F=g.aj(this);F&&F.showControls(!0)}; g.A.hideControls=function(){var F=g.aj(this);F&&F.showControls(!1)}; g.A.getVideoContentRect=function(F){F=this.app.mG().getVideoContentRect(F);return{left:F.left,top:F.top,width:F.width,height:F.height}}; g.A.toggleFullscreen=function(){function F(b){g.rQ(b)} var J=this.app.J();if(J.externalFullscreen){if(!g.U7(J))return this.isFullscreen()?i8(window.document.documentElement):gm(window.document.documentElement).catch(F)}else if(g.mu()||J.Y)return this.isFullscreen()?i8(ye()):J.controlsType!=="3"&&g.mu()?gm(this.app.mG().element).catch(F):(J=this.app.Qa().Pb())?gm(J).catch(F):Promise.reject(Error("Media element missing"));this.SZ("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.A.isFullscreen=function(){return this.app.isFullscreen()}; g.A.tO=function(){return this.app.tO()}; g.A.cancelPlayback=function(){var F=XN(this.app.TF());F&&F.created&&F.destroy();(F=this.app.F_())&&F.stopVideo();(F=this.app.TF().sz.get("endscreen"))&&F.FGR()&&g.Wp(this.app.SE,!0)}; g.A.getProgressState=function(F){if(this.eh()===3)return dO(this.app.TF()).getProgressState();var J=this.app.getVideoData(),b=this.app.F4(F)||this.app.F_(),I=b.getPlayerType();a:{var u=this.app.getVideoData();var w;if((w=u.progressBarStartPosition)==null?0:w.utcTimeMillis)if(u=Number(u.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(u)){u=md(this,u,F);break a}u=0}var M;a:{w=this.app.getVideoData();if((M=w.progressBarEndPosition)==null?0:M.utcTimeMillis)if(M=Number(w.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(M)){M=md(this,M,F);break a}M=0}w=this.getCurrentTime(F);F=this.getDuration(F);var q=this.app.Ze(I),v=this.app.isAtLiveHead(I),a=this.app.aG();var e=this.app;var K=e.F4(I);K?(K=dh(e,K),e=sK(e,K.rA(),K)):e=0;K=gha(this.app,I);b=b.Xq();var p=this.app.getVideoData().tG;I=!p||isNaN(p)?0:md(this,p,I);return{airingStart:u,airingEnd:M,allowSeeking:this.app.hX(),clipEnd:J.clipEnd,clipStart:J.clipStart,current:w,displayedStart:-1,duration:F,ingestionTime:q,isAtLiveHead:v,loaded:a,seekableStart:e, seekableEnd:K,offset:b,viewerLivestreamJoinMediaTime:I}}; g.A.isInline=function(){return this.app.isInline()}; g.A.setInline=function(F){this.app.setInline(F)}; g.A.yH=function(){return this.app.Nf().Cy(!0)}; g.A.toggleSubtitles=function(){var F=g.Y0(this.app.TF());F&&F.QuG()}; g.A.getPlayerSize=function(){var F=this.app.mG().getPlayerSize();return{width:F.width,height:F.height}}; g.A.setCenterCrop=function(F){this.app.mG().setCenterCrop(F)}; g.A.getLoopVideo=function(){return this.app.getLoopVideo()}; g.A.setLoopVideo=function(F){this.app.setLoopVideo(F)}; var BwG="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(" "), Spz="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 v_={},snG=(v_["api.invalidparam"]=2,v_.auth=150,v_["drm.auth"]=150,v_["heartbeat.net"]=150,v_["heartbeat.servererror"]=150,v_["heartbeat.stop"]=150,v_["html5.unsupportedads"]=5,v_["fmt.noneavailable"]=5,v_["fmt.decode"]=5,v_["fmt.unplayable"]=5,v_["html5.missingapi"]=5,v_["html5.unsupportedlive"]=5,v_["drm.unavailable"]=5,v_["mrm.blocked"]=151,v_["embedder.identity.denied"]=152,v_);g.z(g.y_,pE);g.A=g.y_.prototype;g.A.isExternalMethodAvailable=function(F,J){return this.state.V[F]?!0:!!(this.state.Y[F]&&J&&tj(J,M2R))}; g.A.getBandwidthEstimate=function(){return ib(this.app.J().schedule)}; g.A.reportPlaybackIssue=function(F){F=F===void 0?"":F;var J=this.app.F_();J&&(F={gpu:(0,g.rr)(),d:F},J.handleError(new E5("feedback",F)))}; g.A.getInternalApi=function(){return Object.assign({},this.state.C)}; g.A.getInternalApiInterface=function(){return g.dl(this.state.C)}; g.A.queueNextVideo=function(F,J,b,I,u){b=b===void 0?NaN:b;this.app.queueNextVideo(F,J,b,I===void 0?"":I,u===void 0?"":u)}; g.A.QH=function(F){F=this.app.getPlayerStateObject(F);return{isBuffering:g.x(F,1),isCued:F.isCued(),isDomPaused:g.x(F,1024),isEnded:g.x(F,2),isError:g.x(F,128),isOrWillBePlaying:F.isOrWillBePlaying(),isPaused:F.isPaused(),isPlaying:F.isPlaying(),isSeeking:g.x(F,16),isUiSeeking:g.x(F,32),isUnstarted:g.x(F,64)}}; g.A.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.A.startSeekCsiAction=function(){this.app.Iu().Z.C=(0,g.jR)()}; g.A.gr=function(F,J,b){return this.getCurrentTime(F===void 0?1:F,J,b)}; g.A.seekToStreamTime=function(F,J,b,I){var u=this.app;J=J===void 0?!0:J;var w=u.F4(1),M=0;w&&w.getStreamTimeOffset()&&!w.Xq()&&(M=w.getStreamTimeOffset());kN(u,F-M,J,b,1,I)}; g.A.getStreamTimeOffset=function(){return this.app.Nf().getStreamTimeOffset()}; g.A.seekToLiveHead=function(F,J){var b=this.app.Nf().getVideoData();b&&b.isLivePlayback&&kN(this.app,Infinity,F,J,1)}; g.A.requestSeekToWallTimeSeconds=function(F,J){this.app.Nf().CI(F,J)}; g.A.HdR=function(F,J,b,I,u){this.seekTo(F,J,b,I===void 0?1:I,u)}; g.A.QPG=function(F,J,b,I){this.seekBy(F,J,b,I,1)}; g.A.setVolume=function(F,J){this.WM(F,J===void 0?!0:J)}; g.A.mute=function(F){this.Vs(F===void 0?!0:F)}; g.A.unMute=function(F){this.yZ(F===void 0?!0:F)}; g.A.syncVolume=function(){var F=ot3(this.app);rh(this.app,{volume:F.volume,muted:F.muted},!1)}; g.A.getAvailableQualityLabels=function(){return g.EG(this.app.Nf().W0(),function(F){return F.qualityLabel})}; g.A.channelSubscribed=function(){this.jE("SUBSCRIBE",this.app.Yl().uB)}; g.A.channelUnsubscribed=function(){this.jE("UNSUBSCRIBE",this.app.Yl().uB)}; g.A.setScreenLayer=function(F){this.app.setScreenLayer(F)}; g.A.getCurrentPlaylistSequence=function(){return this.app.F_().getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.A.getPlaylistSequenceForTime=function(F){return this.app.F_().getPlaylistSequenceForTime(F)}; g.A.shouldSendVisibilityState=function(){return!0}; g.A.confirmYpcRental=function(){this.app.Nf().d6("ypc_clickwrap")}; g.A.setHomeGroupInfo=function(F){this.app.J().homeGroupInfo=F}; g.A.setConnectedRemoteApps=function(F){this.app.J().jm=F}; g.A.setLivingRoomAppMode=function(F){this.app.J().livingRoomAppMode=b8("LIVING_ROOM_APP_MODE_UNSPECIFIED",F,HxY)}; g.A.setEnablePrivacyFilter=function(F){this.app.J().enablePrivacyFilter=F===void 0?!1:F}; g.A.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.A.addUtcCueRange=function(F,J,b,I,u){return VG7(this.app,F,J,b,I,u)}; g.A.Bs=function(F){F=F===void 0?1:F;var J=this.cX(F);if(F=this.app.F4(F)){F=F.getVideoData();J.hasProgressBarBoundaries=F.hasProgressBarBoundaries();J.isPremiere=F.isPremiere;J.itct=F.WN;J.playerResponseCpn=F.playerResponseCpn;var b;var I=F.hasProgressBarBoundaries()&&((b=F.progressBarStartPosition)==null?0:b.utcTimeMillis)?L5(F.progressBarStartPosition.utcTimeMillis):null;J.progressBarStartPositionUtcTimeMillis=I;var u;b=F.hasProgressBarBoundaries()&&((u=F.progressBarEndPosition)==null?0:u.utcTimeMillis)? L5(F.progressBarEndPosition.utcTimeMillis):null;J.progressBarEndPositionUtcTimeMillis=b;J.ypcOriginalItct=F.vt;J.ypcPreview=F.ypcPreview;J.paidContentOverlayText=kXa(F);J.paidContentOverlayDurationMs=OU7(F);F.C&&Mv(F.C)&&(J.usingLocalMedia="true");J.transitionEndpointAtEndOfStream=F.transitionEndpointAtEndOfStream}return J}; g.A.getAdState=function(){return this.app.getAdState()}; g.A.isNotServable=function(F){if(F!==this.app.config.args.video_id)return!1;var J=(F=this.app.Nf().getPlayerState())?F.e6:null;return!!(F&&J&&g.x(F,128)&&Ypm(J.errorCode)===5)}; g.A.supportsGaplessAudio=function(){return this.app.J().supportsGaplessAudio()}; g.A.supportsGaplessShorts=function(){return this.app.J().supportsGaplessShorts()}; g.A.enqueueVideoByPlayerVars=function(F,J,b,I){b=b===void 0?Infinity:b;this.app.enqueueVideoByPlayerVars(F,J,b,I===void 0?"":I)}; g.A.clearQueue=function(){this.app.clearQueue()}; g.A.p8=function(){return g.aj(this)}; g.A.sendAbandonmentPing=function(){var F;(F=this.app.F_())==null||F.sendAbandonmentPing()}; g.A.setAutonavState=function(F,J){J=J===void 0?!1:J;if(this.S("web_player_autonav_use_server_provided_state")&&!J&&(J=this.app.Yl(),J==null?0:U9(J))){if(this.S("web_player_autonav_server_provided_state_pause_killswitch"))return;if(F===3)J.autonavState!==3&&(J.yT=J.autonavState);else if(J.yT!==void 0)F=J.yT,J.yT=void 0;else return}$zC(this.app,F)}; g.A.setAutonav=function(F,J){this.setAutonavState(F?2:1,J===void 0?!1:J)}; g.A.setLoopRange=function(F){this.app.setLoopRange(F)}; g.A.getLoopRange=function(){return this.app.getLoopRange()}; g.A.hasSupportedAudio51Tracks=function(){return this.app.Nf().hasSupportedAudio51Tracks()}; g.A.setUserAudio51Preference=function(F,J){this.app.Nf().setUserAudio51Preference(F,J===void 0?!1:J)}; g.A.getUserAudio51Preference=function(){return this.app.Nf().getUserAudio51Preference()}; g.A.setProximaLatencyPreference=function(F){this.app.Nf().setProximaLatencyPreference(F)}; g.A.getProximaLatencyPreference=function(){return this.app.Nf().getProximaLatencyPreference()}; g.A.isProximaLatencyEligible=function(){return this.app.Nf().isProximaLatencyEligible()}; g.A.getAppState=function(){return this.app.getAppState()}; g.A.updateLastActiveTime=function(){l0()}; g.A.setBlackout=function(F){this.app.setBlackout(F)}; g.A.setUserEngagement=function(F){this.app.J().Ok!==F&&(this.app.J().Ok=F,this.app.Nf().Z$())}; g.A.updateSubtitlesUserSettings=function(F,J){J=J===void 0?!0:J;g.Y0(this.app.TF()).Dr(F,J)}; g.A.getCaptionWindowContainerId=function(){var F=g.Y0(this.app.TF());return F?F.getCaptionWindowContainerId():""}; g.A.toggleSubtitlesOn=function(){var F=g.Y0(this.app.TF());F&&F.b$()}; g.A.isSubtitlesOn=function(){var F=g.Y0(this.app.TF());return F?F.isSubtitlesOn():!1}; g.A.getPlayerResponse=function(F){return(F=this.app.F4(F))?F.getVideoData().getPlayerResponse():null}; g.A.lL=function(){return this.getPlayerResponse(1)}; g.A.getEmbeddedPlayerResponse=function(){return this.app.Nf().getVideoData().getEmbeddedPlayerResponse()}; g.A.getWatchNextResponse=function(F){return(F=this.app.F4(F))?F.getVideoData().getWatchNextResponse():null}; g.A.Yp=function(){return this.getWatchNextResponse(1)}; g.A.getHeartbeatResponse=function(F){return(F=this.app.F4(F))?F.getVideoData().getHeartbeatResponse():null}; g.A.D9=function(){return this.getHeartbeatResponse(1)}; g.A.getStoryboardFrame=function(F,J){var b=this.app.Si();if(!b)return null;J=b.levels[J];return J?(F=g.SE(J,F))?{column:F.column,columns:F.columns,height:F.pB,row:F.row,rows:F.rows,url:F.url,width:F.Ju}:null:null}; g.A.getStoryboardFrameIndex=function(F,J){var b=this.app.Si();if(!b)return-1;J=b.levels[J];if(!J)return-1;F-=this.Xq();return J.Hj(F)}; g.A.getStoryboardLevel=function(F){var J=this.app.Si();return J?(J=J.levels[F])?{index:F,intervalMs:J.C,maxFrameIndex:J.ll(),minFrameIndex:J.hZ()}:null:null}; g.A.getNumberOfStoryboardLevels=function(){var F=this.app.Si();return F?F.levels.length:0}; g.A.XG=function(){return this.getAudioTrack(1)}; g.A.getAudioTrack=function(F){return(F=this.app.F4(F))?F.getAudioTrack():this.app.getVideoData().eB}; g.A.setAudioTrack=function(F,J,b){this.eh()===3&&dO(this.app.TF()).Lx("control_set_audio_track",F);return(b=this.app.F4(b))?b.sU(F,J):!1}; g.A.xkW=function(F,J){return this.setAudioTrack(F,J,1)}; g.A.GG=function(){return this.getAvailableAudioTracks(1)}; g.A.getAvailableAudioTracks=function(F){return this.app.F4(F).getAvailableAudioTracks()}; g.A.getMaxPlaybackQuality=function(){var F=this.app.Nf();return F.getVideoData().U?b9(F.gA()):"unknown"}; g.A.getUserPlaybackQualityPreference=function(){return this.app.Nf().getUserPlaybackQualityPreference()}; g.A.getSubtitlesUserSettings=function(){var F=g.Y0(this.app.TF());return F?F.KR():null}; g.A.resetSubtitlesUserSettings=function(){g.Y0(this.app.TF()).WuN()}; g.A.setMinimized=function(F){this.app.setMinimized(F)}; g.A.setOverlayVisibility=function(F){this.publish("overlayvisibilitychange",F)}; g.A.setInlinePreview=function(F){this.app.setInlinePreview(F)}; g.A.setSqueezeback=function(F){this.app.setSqueezeback(F)}; g.A.setGlobalCrop=function(F){this.app.mG().setGlobalCrop(F)}; g.A.setAppFullscreen=function(F){this.app.wT(F?4:0)}; g.A.o6=function(){return this.app.o6()}; g.A.getVisibilityState=function(){return this.o6().getVisibilityState(this.Hh(),this.tO()||g.Pu(this.app.J()),this.isMinimized(),this.isInline(),this.app.JN(),this.app.n$(),this.app.I9(),this.app.tD())}; g.A.isMutedByMutedAutoplay=function(){return this.app.f_}; g.A.isMutedByEmbedsMutedAutoplay=function(){return eV(this.app)}; g.A.setInternalSize=function(F,J){this.app.mG().setInternalSize(new g.gl(F,J))}; g.A.Xq=function(){var F=this.app.F4();return F?F.Xq():0}; g.A.isMinimized=function(){return this.app.isMinimized()}; g.A.JN=function(){return this.app.JN()}; g.A.Hh=function(){var F=this.app.F_();return!!F&&F.Hh()}; g.A.setSafetyMode=function(F){this.app.J().enableSafetyMode=F}; g.A.canPlayType=function(F){return this.app.canPlayType(F)}; g.A.updatePlaylist=function(F){if(F){var J=this.getPlaylistId(),b=!1;J&&J!==F.list&&(b=!0);F.external_list!==void 0&&(this.app.FY=JC(!1,F.external_list));var I=F.video;(J=this.app.getPlaylist())&&!b?this.isFullscreen()&&((b=I[J.index])&&b.encrypted_id!==g.dA(J).videoId||(F.index=J.index)):Vd(this.app,{list:F.list,index:F.index,playlist_length:I.length});HnY(this.app.getPlaylist(),F);this.IC("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.A.updateVideoData=function(F,J){g.O9(this.app.Nf().getVideoData(),F,J)}; g.A.updateEnvironmentData=function(F){$2(this.app.J(),F,!1)}; g.A.tTQ=function(F){this.app.sendVideoStatsEngageEvent(F,1)}; g.A.productsInVideoVisibilityUpdated=function(F){this.publish("changeProductsInVideoVisibility",F)}; g.A.isAtLiveHead=function(F,J){return this.app.isAtLiveHead(F,J===void 0?!0:J)}; g.A.getVideoAspectRatio=function(){return this.app.mG().getVideoAspectRatio()}; g.A.getPreferredQuality=function(){var F=this.app.F_();return F?F.getPreferredQuality():"unknown"}; g.A.getPlaybackQualityLabel=function(F){if(F=this.app.F4(F)){var J,b;return((b=(J=F.getVideoData().U)==null?void 0:J.video)==null?void 0:b.qualityLabel)||""}return""}; g.A.setPlaybackQualityRange=function(F,J,b,I){(I=this.app.F4(I))&&I.kE(g.HX(F,J||F,!0,"m"),!0,b)}; g.A.pgI=function(F,J,b){this.setPlaybackQualityRange(F,J,b,1)}; g.A.onAdUxClicked=function(F,J){this.publish("aduxclicked",F,J)}; g.A.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.A.dispatchReduxAction=function(F){g.ZR.dispatch(F)}; g.A.highlightSettingsMenuItem=function(F){this.publish("highlightSettingsMenu",F)}; g.A.openSettingsMenuItem=function(F){this.publish("openSettingsMenuItem",F)}; g.A.OC=function(F,J){this.state.U.subscribe(F,J)}; g.A.esG=function(F,J){this.state.U.unsubscribe(F,J)}; g.A.Zi=function(F,J){this.cueVideoByPlayerVars(F,J===void 0?1:J)}; g.A.CTQ=function(F,J,b,I){this.loadVideoByPlayerVars(F,J,b===void 0?1:b,I)}; g.A.Jev=function(F,J,b,I){this.preloadVideoByPlayerVars(F,J===void 0?1:J,b,I)}; g.A.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.A.Ua=function(){return g.aj(this).Ua()}; g.A.Ru=function(){return g.aj(this).Ru()}; g.A.YK=function(){return g.aj(this).YK()}; g.A.W1=function(){return this.p8().W1()}; g.A.DW=function(){var F=g.Ba.apply(0,arguments),J;(J=this.W1()).DW.apply(J,g.W(F))}; g.A.Dl=function(){this.W1().Dl()}; g.A.BZ=function(){this.W1().BZ()}; g.A.QN=function(){this.W1().hide()}; g.A.EO=function(F,J,b,I,u,w,M,q){this.W1().EO(F,J,b,I,u,w,M,q)}; g.A.R$=function(F,J){this.W1().R$(F,J)}; g.A.kU=function(F,J,b,I,u){this.p8().kU(F,J,b,I,u)}; g.A.Zf=function(F){this.W1().setEnabled(F)}; g.A.KO=function(F,J){this.p8().KO(F,J)}; g.A.rG=function(F,J){this.p8().rG(F,J)}; g.A.Zb=function(F,J){this.p8().Zb(F,J)}; g.A.bJ=function(){this.p8().bJ()}; g.A.Rx=function(F,J){this.p8().Rx(F,J)}; g.A.u2=bk(4);g.A.Gp=bk(6);g.A.by=bk(9);g.A.aE=bk(12);g.A.renderChapterSeekingAnimation=function(F,J,b){this.p8().renderChapterSeekingAnimation(F,J,b)}; g.A.FZ=function(){this.p8().FZ()}; g.A.getWebPlayerContextConfig=function(){return this.app.J().getWebPlayerContextConfig()}; g.A.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")}; g.A.f1=function(){var F=this.app.F_();return F?F.f1():""};g.z(g.ly,g.y_);g.A=g.ly.prototype;g.A.yp=function(F,J,b,I,u,w,M){return this.app.yp(F,J,b,I,u,w,M)}; g.A.im=function(){return this.app.im()}; g.A.jy=bk(14);g.A.TF=function(){return this.app.TF()}; g.A.w6=function(){var F=this.TF().sz.get("endscreen");return!!F&&F.w6()}; g.A.getRootNode=function(){return this.mG().element}; g.A.J=function(){return this.app.J()}; g.A.NP=bk(17);g.A.n8=function(F){return this.app.n8(F)}; g.A.z6=function(){var F;return((F=g.aj(this))==null?void 0:F.z6())||null}; g.A.o0=function(){var F;return(F=this.app.F_())==null?void 0:F.o0()}; g.A.getPlayerStateObject=function(F){return this.app.getPlayerStateObject(F)}; g.A.mG=function(){return this.app.mG()}; g.A.getPlaylist=function(){return this.app.getPlaylist()}; g.A.getVideoData=function(F,J){J=J===void 0?!1:J;var b=this.app.F4(F);if(!b)return null;b=b.getVideoData();if(J)var I=b;else if(b.enableServerStitchedDai&&F===2||g.oH(b)&&F!==1)a:{b=this.app;J=b.getVideoData();if(b.jF){F=b.jF;b=b.getCurrentTime();if(F.Bu)var u=void 0;else{var w=void 0;F.GF&&(w=F.T.get(F.GF));if(!w){w=YMk(F,b*1E3);var M=(u=w)==null?void 0:u.cpn;F.GF?M&&F.GF!==M&&F.Ck({cpcnm:M+"_"+F.GF,cmt:b.toFixed(3)}):F.Ck({cpcna:M,cmt:b.toFixed(3)})}u=(I=w)==null?void 0:I.videoData}J=u||J}else if(b.II&& b.F_()){I=b.II.getVideoData(F);break a}I=J}else I=b;return I}; g.A.I3=function(){var F;return((F=this.app.F_())==null?void 0:F.I3())||null}; g.A.Si=function(F){return this.app.Si(F)}; g.A.tD=function(){return this.app.tD()}; g.A.isHdr=function(){var F=this.app.F_();return F?F.isHdr():!1}; g.A.Xt=function(){return this.app.Xt()}; g.A.isEmbedsShortsMode=function(){var F=g.aj(this),J=this.getVideoData();F=F?F.KG:this.getPlayerSize();var b=!!this.getPlaylist();return!(!J||!J.isEmbedsShortsMode(new g.gl(F.width,F.height),b))}; g.A.Pp=function(F){this.app.Pp(F)}; g.A.Je=function(F,J,b,I,u){this.app.Wh(F,J,b,I,u)}; g.A.Nb=function(F,J){this.app.Nb(F,J)}; g.A.playVideo=function(F,J){try{if(this.getPresentingPlayerType()===3){dO(this.app.TF()).Lx("control_play");return}if(!F&&this.getPresentingPlayerType()===2){var b=XN(this.app.TF());if(b&&NzY(b))return}}catch(I){g.Td(I)}this.app.playVideo(F,J)}; g.A.stopVideo=function(F){this.app.F4(F).stopVideo()}; g.A.Cc=function(F){this.app.F4(F).Cc()}; g.A.addEventListener=function(F,J){this.state.T.subscribe(F,J)}; g.A.removeEventListener=function(F,J){this.state.T.unsubscribe(F,J)}; g.A.Q_=function(F){this.app.Q_(F)}; g.A.setPlaybackQuality=function(F,J){this.setPlaybackQualityRange(F,F,J)}; g.A.W0=function(){var F={},J=this.app.F_().W0();J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,F[b.quality]=b;return F}; g.A.Jo=function(){return this.app.F_().Jo()}; g.A.Ni=bk(22);g.A.LZ=function(F){this.app.LZ(F);F&&$zC(this.app,F)}; g.A.getVideoUrl=function(F,J,b,I){var u=this.getPresentingPlayerType(),w=u===2;if(I&&w||u===3)w=!1,u=1;I=this.getVideoData(u);if(!I)return"";var M;F||I.isLivePlayback||(M=Math.floor(this.getCurrentTime(u)));F=w?void 0:this.getPlaylistId()||void 0;J&&F==="WL"&&(F=void 0);return this.app.getVideoUrl(I.videoId,F,M,J,b)}; g.A.xg=bk(24);g.A.yz=bk(29);g.A.rT=function(F){var J;(J=this.app.F_())==null||J.rT(F)}; g.A.XF=bk(34);g.A.IQ=bk(39);g.A.XT=function(F,J){this.TF().XT(F,J)}; g.A.AD=function(){var F=g.Dg(this.TF());return!!F&&F.AD()}; g.A.U0=function(){var F=g.Dg(this.TF());return!!F&&F.U0()}; g.A.Xs=function(F,J,b){var I=g.Dg(this.TF());I&&I.Xs(F,J,b)}; g.A.ZZ=bk(40);g.A.B5=function(){var F;(F=this.app.F_())!=null&&F.wD.B5()}; g.A.GY=function(F){this.IC("onVideoAreaChange");this.IC(F?"onShowControls":"onHideControls")}; g.A.xK=function(F,J){var b=g.aj(this);if(b)return b.xK(F,J);F=this.app.mG().lk();return new g.uu(0,0,F.width,F.height)}; g.A.G9=function(){var F=this.TF().sz.get("heartbeat");return!!F&&F.G9()}; g.A.hX=function(){var F=this.J();if(F.qf||F.disableSeek)return!1;var J=this.app.F_();if(!J)return!1;var b=J.getVideoData();if(!b.o8()||g.dS(b)||this.getPresentingPlayerType()===2&&!this.app.Uo()||b.vV()&&this.getPresentingPlayerType(!0)===2||J.Bx()&&this.getPresentingPlayerType()!==3)return!1;F=g.S8(F);return g.q1(F)&&!b.Ar||eV(this.app)?!1:!0}; g.A.X7=function(){var F=this.app.F_();return F?F.md():!1}; g.A.isLifaAdPlaying=function(){var F,J=(F=this.getVideoData())==null?void 0:F.vV();return this.getPresentingPlayerType(J)===2}; g.A.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.A.Rv=function(){var F;(F=this.app.F_())==null||F.Rv()}; g.A.sendVideoStatsEngageEvent=function(F,J,b){this.app.sendVideoStatsEngageEvent(F,b,J)}; g.A.TU=function(F,J,b){this.app.dO(F,J,b)}; g.A.L4=function(F,J){this.app.hc(F,J)}; g.A.Yo=function(F,J){mz_(this.app,F,J)}; g.A.Z8=bk(43);g.A.ey=function(F){return this.app.ey(F)}; g.A.d6=function(F,J){var b;(b=this.app.F4(J))==null||b.d6(F)}; g.A.Bx=function(){var F=this.app.F4();return F?F.Bx():!0}; g.A.wk=function(){var F=this.getVideoData();return!!F&&(F.wk()||!!F.hlsFormats||!!F.y6)}; g.A.getPlaybackRate=function(){return this.app.Nf().getPlaybackRate()}; g.A.setPlaybackRate=function(F,J){this.app.setPlaybackRate(F,J)}; g.A.Qa=function(){return this.app.Qa()}; g.A.Iu=function(){return this.app.Iu()}; g.A.C8=function(F){return this.app.C8(F)}; g.A.createClientVe=function(F,J,b,I){this.J().KW&&this.app.sT.createClientVe(F,J,b,I===void 0?!1:I)}; g.A.createServerVe=function(F,J,b){this.J().KW&&this.app.sT.createServerVe(F,J,b===void 0?!1:b)}; g.A.setTrackingParams=function(F,J){this.J().KW&&this.app.sT.setTrackingParams(F,J)}; g.A.logClick=function(F,J){this.J().KW&&(this.app.sT.click(F,J),this.publish("veClickLogged",F))}; g.A.logVisibility=function(F,J,b){this.J().KW&&this.app.sT.wY(F,J,b)}; g.A.hasVe=function(F){return this.J().KW?this.app.sT.hasVe(F):!1}; g.A.destroyVe=function(F){this.J().KW&&this.app.sT.destroyVe(F)}; g.A.getPresentingPlayerType=function(F){return this.app.getPresentingPlayerType(F)}; g.A.Hk=function(){this.app.Hk()}; g.A.v$=bk(45);g.A.uJ=function(F){this.app.uJ(F)}; g.A.Rq=function(){this.app.Rq()}; g.A.Ug=function(){return this.app.Ug()}; g.A.addPlayerResponseForAssociation=function(F){this.app.addPlayerResponseForAssociation(F)}; g.A.finishSegmentByCpn=function(F,J,b){return this.app.finishSegmentByCpn(F,J,b)}; g.A.AP=function(F,J,b,I,u,w,M){return this.app.AP(F,J,b,I,u,w,M)}; g.A.UN=function(F,J,b,I,u,w,M){return this.app.UN(F,J,b,I,u,w,M)}; g.A.bA=function(){return this.app.bA()}; g.A.Jx=function(F){this.app.Jx(F)}; g.A.pO=function(F,J){J=J===void 0?Infinity:J;this.app.pO(F===void 0?-1:F,J)}; g.A.po=function(F){var J;(J=g.Y0(this.TF()))==null||J.po(F)}; g.A.y8=function(F,J,b){this.app.y8(F,J,b)}; g.A.mJ=function(){return this.app.mJ()}; g.A.VY=function(F,J,b){this.app.VY(F,J,b===void 0?0:b)}; g.A.W9=function(){return this.app.W9()}; g.A.Uo=function(){return this.app.Uo()}; g.A.Ml=function(F,J,b){return this.app.Ml(F,J,b)}; g.A.UQ=function(F,J,b,I){b=b===void 0?!1:b;var u;(u=this.app.F4(I))==null||u.UQ(F,J,b)}; g.A.C9=function(F,J){this.publish("aduxmouseover",F,J)}; g.A.rz=function(F,J){this.publish("aduxmouseout",F,J)}; g.A.x3=function(F,J){this.publish("muteadaccepted",F,J)}; g.A.cz=function(){return this.app.mG().cz()}; g.A.PQ=function(F){this.app.mG().PQ(F)}; g.A.l1=function(F){return F?this.app.xq():(F=this.app.F_())?F.l1():!1}; g.A.gm=function(F){this.app.gm(F)}; g.A.t6=function(){this.app.Nf().t6()}; g.A.d_=function(){var F;(F=this.app.F_())==null||F.d_()}; g.A.yW=function(){this.app.yW()}; g.A.getGetAdBreakContext=function(){var F=this.app.Nf();return F.getVideoData().getGetAdBreakContext(F.getCurrentTime(),F.Xq())}; g.A.M5=function(F,J){var b;(b=this.app.F_())==null||b.M5(F,J)}; g.A.Pq=function(){var F;return((F=this.app.F_())==null?void 0:F.Pq())||!1};var rO;g.z(TP,Cw);TP.prototype.Du=function(F,J){F=Cw.prototype.Du.call(this,F,J);return Object.assign({},F,this.requestHeaders)};g.z(g.YJ,g.vi);g.A=g.YJ.prototype;g.A.show=function(){var F=this.K4();g.vi.prototype.show.call(this);this.kQ&&(this.Y.B(window,"blur",this.fk),this.Y.B($J(this),"click",this.oS));F||this.publish("show",!0)}; g.A.hide=function(){var F=this.K4();g.vi.prototype.hide.call(this);RGz(this);F&&this.publish("show",!1)}; g.A.Bo=function(F,J){this.U=F;this.Tj.show();J?(this.N||(this.N=this.Y.B(this.G,"appresize",this.Lw)),this.Lw()):this.N&&(this.Y.iX(this.N),this.N=void 0)}; g.A.qZ=function(){this.U&&this.element&&(this.U.getAttribute("aria-haspopup"),this.U.setAttribute("aria-expanded","true"),this.focus())}; g.A.Lw=function(){var F=g.aj(this.G);this.U&&F.kU(this.element,this.U)}; g.A.fk=function(){var F=this.K4();RGz(this);this.Tj.hide();F&&this.publish("show",!1)}; g.A.oS=function(F){var J=dm(F);J&&(g.uB(this.element,J)||this.U&&g.uB(this.U,J)||!g.f0(F))||this.fk()}; g.A.K4=function(){return this.uT&&this.Tj.state!==4};g.z(XE,g.YJ);XE.prototype.Bo=function(){g.YJ.prototype.Bo.call(this);this.dialog.focus()};g.z(g.Rj,g.vi);g.Rj.prototype.setIcon=function(F){this.updateValue("icon",F)}; g.Rj.prototype.updateValue=function(F,J){g.vi.prototype.updateValue.call(this,F,J);this.publish("size-change")};g.Ia={IM:15,IWv:14,Qn_:13,pY:12,wP:11,m4:10,wb:9,YX:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,Ng:4,aM:3,xhj:2,REMOTE:1,KSv: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.z(kJ,g.Rj);kJ.prototype.tJ=function(F){this.U&&this.G.logVisibility(this.element,this.C&&F)}; kJ.prototype.Z=function(){var F,J,b=(F=this.G.getVideoData())==null?void 0:(J=F.accountLinkingConfig)==null?void 0:J.linked;if(b&&!this.C){var I;F=(I=this.G.getVideoData())==null?void 0:I.accountLinkingConfig;this.setIcon(zh());var u;g.Q_(this,Of(F==null?void 0:(u=F.menuData)==null?void 0:u.connectedMenuLabel));var w,M,q;this.T=new XE(this.G,Of(F==null?void 0:(w=F.menuData)==null?void 0:w.connectedDialogTitle),Of(F==null?void 0:(M=F.menuData)==null?void 0:M.connectedDialogMessage),Of(F==null?void 0: (q=F.menuData)==null?void 0:q.confirmButtonText));g.k(this,this.T);var v;I=(F==null?void 0:(v=F.menuData)==null?void 0:v.trackingParams)||null;(this.U=!!I)&&this.G.setTrackingParams(this.element,I);this.Rf.V6(this);this.C=!0}else!b&&this.C&&(this.Rf.Yj(this),this.C=!1)}; kJ.prototype.onClick=function(){this.U&&this.G.logClick(this.element);this.Rf.fk();this.T&&this.T.Bo()};g.z(oj,g.R);oj.prototype.S=function(F){return this.api.S(F)};g.z(ha,oj);ha.prototype.onVideoDataChange=function(F){if(!F.accountLinkingConfig){var J,b=(J=F.getPlayerResponse())==null?void 0:J.accountLinkingConfig;F.accountLinkingConfig=b}var I;if(J=(I=F.accountLinkingConfig)==null?void 0:I.alsParam)F.pM=J}; ha.prototype.setAccountLinkState=function(F){this.api.getVideoData().pM=F;this.api.B5()}; ha.prototype.updateAccountLinkingConfig=function(F){var J=this.api.getVideoData(),b=J.accountLinkingConfig;b&&(b.linked=F);this.api.publish("videodatachange","dataupdated",J,this.api.getPresentingPlayerType())};g.z(Uf,oj); Uf.prototype.U=function(F){var J=F.getId(),b=this.api.getVideoData(1),I=!this.api.isInline();if(!b.inlineMetricEnabled&&!this.api.S("enable_player_logging_lr_home_infeed_ads")||I){if(J==="part2viewed"){if(b.f0&&g.Xp(b.f0),b.SY&&xJ(this,b.SY),b.N5)for(var u={CPN:this.api.getVideoData().clientPlaybackNonce},w=g.N(b.N5),M=w.next();!M.done;M=w.next())xJ(this,g.TM(M.value,u))}else J==="conversionview"?this.api.t6():J==="engagedview"&&b.pF&&(u={CPN:this.api.getVideoData().clientPlaybackNonce},g.Xp(g.TM(b.pF, u)));b.n0&&(u=b.n0,w=F.getId(),u=IR(u,{label:w}),g.Xp(u));switch(J){case "videoplaytime25":b.Kw&&xJ(this,b.Kw);b.zP&&nE(this,b.zP);b.k5&&g.Xp(b.k5);break;case "videoplaytime50":b.tK&&xJ(this,b.tK);b.t5&&nE(this,b.t5);b.Ig&&g.Xp(b.Ig);break;case "videoplaytime75":b.mD&&xJ(this,b.mD);b.Fr&&nE(this,b.Fr);b.E6&&g.Xp(b.E6);break;case "videoplaytime100":b.z4&&xJ(this,b.z4),b.VT&&nE(this,b.VT),b.IJ&&g.Xp(b.IJ)}(u=this.api.getVideoData().mY)&&hGm(this,u,F.getId())&&hGm(this,u,F.getId()+"gaia")}if(b.inlineMetricEnabled&& !I)switch(J){case "videoplaybackstart":var q,v=(q=b.Uc)==null?void 0:q.C;v&&xJ(this,v);break;case "videoplayback2s":(q=(v=b.Uc)==null?void 0:v.T)&&xJ(this,q);break;case "videoplayback10s":var a;(q=(a=b.Uc)==null?void 0:a.U)&&xJ(this,q)}this.api.L4([F],1)};g.z(U0a,oj);g.z(ta,g.U);g.A=ta.prototype; g.A.fT=function(){var F;if(F=this.G.getPresentingPlayerType()!==3&&g.Bp(this.G)&&this.G.mG().getPlayerSize().width>=400)if(F=this.Yl(),this.G.J().S("client_respect_autoplay_switch_button_renderer"))F=!!F.autoplaySwitchButtonRenderer;else{var J,b,I,u;F=!!((J=F.getWatchNextResponse())==null?0:(b=J.contents)==null?0:(I=b.twoColumnWatchNextResults)==null?0:(u=I.autoplay)==null?0:u.autoplay)!==!1}if(F)this.C||(this.C=!0,this.wY(this.C),this.G.J().S("web_player_autonav_toggle_always_listen")||x0G(this), J=this.Yl(),this.Jy(J.autonavState),this.G.logVisibility(this.element,this.C));else if(this.C=!1,this.wY(this.C),!this.G.J().S("web_player_autonav_toggle_always_listen"))for(this.G.J().S("web_player_autonav_toggle_always_listen"),J=g.N(this.U),b=J.next();!b.done;b=J.next())this.iX(b.value)}; g.A.Jy=function(F){tyC(this)?this.isChecked=F!==1:((F=F!==1)||(g.Qe(),F=g.Nk("web_autonav_allow_off_by_default")&&!g.Rg(0,141)&&g.cT("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Rg(0,140)),this.isChecked=F);nfk(this)}; g.A.onClick=function(){this.isChecked=!this.isChecked;this.G.LZ(this.isChecked?2:1);nfk(this);if(tyC(this)){var F=this.Yl().autoplaySwitchButtonRenderer;this.isChecked&&(F==null?0:F.onEnabledCommand)?this.G.jE("innertubeCommand",F.onEnabledCommand):!this.isChecked&&(F==null?0:F.onDisabledCommand)&&this.G.jE("innertubeCommand",F.onDisabledCommand)}this.G.logClick(this.element)}; g.A.getValue=function(){return this.isChecked}; g.A.Yl=function(){return this.G.getVideoData(1)};g.z(Zm7,oj);g.z(Zd,g.Rj);Zd.prototype.onClick=function(){this.enabled&&(Hp(this,!this.checked),this.publish("select",this.checked))}; Zd.prototype.getValue=function(){return this.checked}; Zd.prototype.setEnabled=function(F){(this.enabled=F)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Lz4=["en-CA","en","es-MX","fr-CA"];g.z(we,Zd);we.prototype.VG=function(F){F?this.C||(this.Rf.V6(this),this.C=!0):this.C&&(this.Rf.Yj(this),this.C=!1);this.C&&Hp(this,mez())}; we.prototype.Z=function(){g.Mr(this.element,"ytp-menuitem-highlight-transition-enabled")}; we.prototype.T=function(F){var J=mez();F!==J&&(J=g.Qe(),kq(190,F),kq(192,!0),J.save(),this.G.jE("cinematicSettingsToggleChange",F))}; we.prototype.X_=function(){this.C&&this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(MV,oj);MV.prototype.updateCinematicSettings=function(F){this.C=F;var J;(J=this.menuItem)==null||J.VG(F);this.api.publish("onCinematicSettingsVisibilityChange",F)};g.z(AH,oj);AH.prototype.wz=function(F,J){J=J.clipConfig;F==="dataloaded"&&J&&J.startTimeMs!=null&&J.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(J.startTimeMs)),endTimeMs:Math.floor(Number(J.endTimeMs)),postId:J.postId,type:"clips"})};g.z(qV,oj);qV.prototype.setCreatorEndscreenVisibility=function(F){var J;(J=k0(this.api.TF()))==null||J.wY(F)}; qV.prototype.C=function(F){function J(I){I==="creatorendscreen"&&(I=k0(b.api.TF()))&&I.o7_(b.hideButton)} var b=this;this.hideButton=F;this.events.B(this.api,"modulecreated",J);J("creatorendscreen")};g.z(vl,Zd);vl.prototype.T=function(F){this.Z(F?1:0)}; vl.prototype.U=function(){var F=this.hasDrcAudioTrack(),J=this.C()===1&&F;Hp(this,J);this.setEnabled(F)}; vl.prototype.X_=function(){this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(aa,oj);aa.prototype.getDrcUserPreference=function(){return this.C}; aa.prototype.setDrcUserPreference=function(F){g.rm("yt-player-drc-pref",F,31536E3);F!==this.C&&(this.C=F,this.updateEnvironmentData(),this.U()&&this.api.d_())}; aa.prototype.updateEnvironmentData=function(){this.api.J().xH=this.C===1}; aa.prototype.U=function(){var F,J,b=(F=this.api.getVideoData())==null?void 0:(J=F.T)==null?void 0:J.C;if(!b)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.S("mta_drc_mutual_exclusion_removal")){var I=this.api.getAudioTrack().j3.id;return Bc(b,function(u){var w;return u.audio.C&&((w=u.j3)==null?void 0:w.id)===I})}return Bc(b,function(u){var w; return((w=u.audio)==null?void 0:w.C)===!0})};g.z(ed,oj);ed.prototype.onVideoDataChange=function(){var F=this,J=this.api.getVideoData();this.api.Yo("embargo",1);var b=J==null?void 0:J.J5.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(b==null?0:b.length)?Io_(this,b.filter(function(I){return bao(F,I)})):(J==null?0:J.cueRanges)&&Io_(this,J.cueRanges.filter(function(I){return bao(F,I)}))}; ed.prototype.U=function(F){return F.embargo!==void 0}; ed.prototype.X_=function(){oj.prototype.X_.call(this);this.C={}};g.z(Kc,oj); Kc.prototype.addEmbedsConversionTrackingParams=function(F){var J=this.api.J(),b=J.widgetReferrer,I=J.oI,u=this.C,w="",M=J.getWebPlayerContextConfig();M&&(w=M.embedsIframeOriginParam||"");b.length>0&&(F.embeds_widget_referrer=b);I.length>0&&(F.embeds_referring_euri=I);J.Z&&w.length>0&&(F.embeds_referring_origin=w);M&&M.embedsFeature&&(F.feature=M.embedsFeature);u.length>0&&(J.S("embeds_web_enable_lite_experiment_control_arm_logging")?u.unshift(28572):g.q1(g.S8(J))&&u.unshift(159628),J=u.join(","),J= g.O6()?J:g.NL(J,4),F.source_ve_path=J);this.C.length=0};g.z(uaz,oj);g.z(wXv,oj);g.z(pc,g.R);pc.prototype.X_=function(){g.R.prototype.X_.call(this);this.C=null;this.U&&this.U.disconnect()};g.z(A8z,oj);g.z(ge,g.U);ge.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; ge.prototype.onVideoDataChange=function(F){var J,b,I=(J=this.api.getVideoData())==null?void 0:(b=J.getPlayerResponse())==null?void 0:b.playabilityStatus;I&&(J=qrm(I),g.x(this.api.getPlayerStateObject(),128)||F==="dataloaderror"||!J?(this.U=0,mg(this),this.hide()):(F=(J.remainingTimeSecs||0)*1E3,F>0&&(this.show(),this.updateValue("label",Ka(J.label)),aoz(this,F))))}; ge.prototype.X_=function(){mg(this);g.U.prototype.X_.call(this)};g.z(e2k,oj);g.z(y5,g.U);y5.prototype.onClick=function(){this.SE.logClick(this.element);this.SE.jE("onFullerscreenEduClicked")}; y5.prototype.VG=function(){this.SE.isFullscreen()?this.U?this.C.hide():this.C.show():this.hide();this.SE.logVisibility(this.element,this.SE.isFullscreen()&&!this.U)};g.z(iX,oj);iX.prototype.updateFullerscreenEduButtonSubtleModeState=function(F){var J;(J=this.C)!=null&&(g.qr(J.element,"ytp-fullerscreen-edu-button-subtle",F),F&&!J.T&&(J.element.setAttribute("title","Scroll for details"),zP(J.SE,J.element,J),J.T=!0))}; iX.prototype.updateFullerscreenEduButtonVisibility=function(F){var J;(J=this.C)!=null&&(J.U=F,J.VG())};g.z(KBv,g.U);g.z(m7G,oj);g.z(z9,oj);z9.prototype.getSphericalProperties=function(){var F=g.GP(this.api.TF());return F?F.getSphericalProperties():{}}; z9.prototype.setSphericalProperties=function(F){if(F){var J=g.GP(this.api.TF());J&&J.setSphericalProperties(F,!0)}};g.z(NV,oj);g.A=NV.prototype;g.A.createClientVe=function(F,J,b,I){this.api.createClientVe(F,J,b,I===void 0?!1:I)}; g.A.createServerVe=function(F,J,b){this.api.createServerVe(F,J,b===void 0?!1:b)}; g.A.setTrackingParams=function(F,J){this.api.setTrackingParams(F,J)}; g.A.logClick=function(F,J){this.api.logClick(F,J)}; g.A.logVisibility=function(F,J,b){this.api.logVisibility(F,J,b)}; g.A.hasVe=function(F){return this.api.hasVe(F)}; g.A.destroyVe=function(F){this.api.destroyVe(F)};var iaY=!1;fc.prototype.setPlaybackRate=function(F){this.playbackRate=Math.max(1,F)}; fc.prototype.getPlaybackRate=function(){return this.playbackRate};G9.prototype.K5=function(F){var J=g.H4(F.info.C.info,this.lR.MW),b=F.info.Mf+this.Z,I=F.info.startTime*1E3;if(this.policy.Jz)try{I=this.policy.Jz?g.no(F)*1E3:F.info.startTime*1E3}catch(M){Math.random()>.99&&this.logger&&(I=lH(F.C).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:F.info.uX(),encodedDataView:g.zw(I,4)})),I=F.info.startTime*1E3}var u=F.info.clipId,w=this.policy.Jz?g.mtk(F)*1E3:F.info.duration*1E3;this.policy.Jz&&(I<0||w<0)&&(this.logger&&(this.logger({missingSegInfo:F.info.uX(), startTimeMs:I,durationMs:w}),this.policy.OM||(I<0&&(I=F.info.startTime*1E3),w<0&&(w=F.info.duration*1E3))),this.policy.OM&&(I<0&&(I=F.info.startTime*1E3),w<0&&(w=F.info.duration*1E3)));return{formatId:J,Mf:b,startTimeMs:I,clipId:u,Mr:w}}; G9.prototype.sM=function(F){this.timestampOffset=F};Bl.prototype.seek=function(F,J){F!==this.C&&(this.seekCount=0);this.C=F;var b=this.videoTrack.U,I=this.audioTrack.U,u=this.audioTrack.dw,w=$74(this,this.videoTrack,F,this.videoTrack.dw,J);J=$74(this,this.audioTrack,this.policy.xo?F:w,u,J);F=Math.max(F,w,J);this.D=!0;this.lR.isManifestless&&(TBk(this,this.videoTrack,b),TBk(this,this.audioTrack,I));return F}; Bl.prototype.isSeeking=function(){return this.D}; Bl.prototype.AV=function(F){this.T=F}; var YrY=2/24;var Qxv=0;g.A=Dm.prototype;g.A.mx=function(){this.Tj=this.now();Cpv(this.Zy,this.Tj);this.e3.mx()}; g.A.Hl=function(F,J){var b=this.policy.U?(0,g.jR)():0;k7(this,F,J);F-this.W<10&&this.U>0||this.ju(F,J);this.e3.Hl(F,J);this.policy.U&&(F=(0,g.jR)()-b,this.Om+=F,this.bR=Math.max(F,this.bR))}; g.A.ju=function(F,J){var b=(F-this.W)/1E3,I=J-this.T;this.vu||(m$(this.Zy,b,I),this.r_(b,I));this.W=F;this.T=J}; g.A.A6=function(){this.WN&&R2m(this);this.e3.A6()}; g.A.Q$=function(F){this.WN||(this.WN=this.D-this.Kk+F,this.If=this.D,this.T1=this.V)}; g.A.Is=function(F,J){F=F===void 0?this.V:F;J=J===void 0?this.D:J;this.U>0||(this.N=F,this.U=J,this.eE=this.isActive=!0)}; g.A.Ih=function(){return this.x7||2}; g.A.QL=function(){}; g.A.BQ=function(){var F,J={rn:this.requestNumber,rt:(this.V-this.C).toFixed(),lb:this.D,stall:(1E3*this.Z).toFixed(),ht:(this.Tj-this.C).toFixed(),elt:(this.N-this.C).toFixed(),elb:this.U,d:(F=this.fW)==null?void 0:F.G7()};this.url&&y8m(J,this.url);this.policy.U&&(J.mph=this.bR.toFixed(),J.tph=this.Om.toFixed());J.ulb=this.kQ;J.ult=this.Y;J.abw=this.dD;return J}; g.A.now=function(){return(0,g.jR)()}; g.A.deactivate=function(){this.isActive&&(this.isActive=!1)};g.z(oa,Dm);g.A=oa.prototype;g.A.BQ=function(){var F=Dm.prototype.BQ.call(this);F.pb=this.XL;F.pt=(1E3*this.cN).toFixed();F.se=this.NW;return F}; g.A.AO=function(){var F=this.e3;this.oI||(this.oI=F.AO?F.AO():1);return this.oI}; g.A.sF=function(){return this.jB?this.AO()!==1:!1}; g.A.b5=function(F,J,b){if(!this.xm){this.xm=!0;if(!this.vu){k7(this,F,J);this.ju(F,J);var I=this.AO();this.NW=b;if(!this.policy.D||!this.vu)if(I===2&&this.policy.D){I=F-this.N<this.Ih()*1E3+50;b=this.Y?this.kQ/(this.Y/1E3):Math.max(this.policy.Y,b||this.dD);var u=this.nD*1.3;I&&b<u||(this.Y?e8(this.Zy,this.Y/1E3,this.kQ,this.qf||this.policy.eE):e8(this.Zy,J/b,J,.01));pH(this.Zy,J,I?0:this.Z)}else I===2?this.vu||(this.Y?e8(this.Zy,this.Y/1E3,this.kQ,this.qf||this.policy.eE):e8(this.Zy,J/Math.max(this.policy.Y, b||this.dD),J,.01),pH(this.Zy,J,this.Z)):I===1&&(I=(F-this.C)/1E3,!(I<=this.policy.Z)&&this.policy.Z||this.Um||this.policy.Gj||!(this.U>0)||hH(this,I,J),this.U>0&&pH(this.Zy,J,this.Z));F=(F-this.C)/1E3||.01;this.policy.Tj&&!(this.U>0)||KH(this.Zy,F,this.T,kRo(this),this.Kj)}this.deactivate()}}; g.A.j$=function(F,J,b){b&&(this.oI=2);F<0&&this.x7&&(F=this.x7);J?this.Jz+=F:this.qf+=F}; g.A.Ih=function(){return this.qf||this.Jz||Dm.prototype.Ih.call(this)}; g.A.ju=function(F,J){var b=(F-this.W)/1E3,I=J-this.T,u=this.AO();this.isActive?u===1&&((I>0||this.policy.W)&&(b>.2||I<1024)?(this.Z+=b,I>0&&b>.2&&hH(this,this.nD?b:.05,I),this.Um=!0):I>0&&(hH(this,b,I),this.Um=!0)):J&&J>=this.policy.C&&this.Is(F,J);Dm.prototype.ju.call(this,F,J)}; g.A.oo=function(F){if(!this.vu){k7(this,F,this.D);var J=(F-this.C)/1E3;this.AO()!==2&&this.U>0&&(this.Z+=(F-this.W)/1E3,pH(this.Zy,this.T,this.Z));KH(this.Zy,J,this.T,kRo(this),this.Kj,!0);F=(F-this.W)/1E3;m$(this.Zy,F,0);this.r_(F,0)}}; g.A.Is=function(F,J){F=F===void 0?this.V:F;J=J===void 0?this.D:J;if(!(this.U>0)&&(Dm.prototype.Is.call(this,F,J),this.AO()===1)){J=(this.Tj-this.C)/1E3;var b=(F-this.Tj)/1E3;this.jB&&cl(this,this.now());this.Q2||this.vu||(this.x7&&(b=Math.max(0,b-this.x7)),F=this.Zy,F.Y.Zj(1,J),F.WN.Zj(1,b))}}; g.A.Y5=function(){this.jB&&cl(this,this.now());return this.KW}; g.A.qO=function(){var F;if(F=this.T>this.TO)F=(F=this.T)?F>=this.policy.C:!1;return F}; g.A.Z0=function(){return this.nW}; g.A.Kq=function(F){F=F===void 0?this.now():F;if(this.jB){cl(this,F);if(this.oI?this.sF():this.Gj!==this.zj){var J=this.zj;if(F<J){this.nW=this.zj;return}}else J=this.Gj;J=Math.max(J,this.KW)}else J=this.KW;var b=this.XL-this.T;b<0&&(b=0);b=(b*this.snapshot.stall+b/this.snapshot.byterate)*1E3;this.nW=b=this.U>0?b+F:b+Math.max(F,J)}; g.A.jq=function(){return this.now()-this.N}; g.A.TR=function(){return(this.T-this.U)*1E3/this.jq()||0}; g.A.jO=function(){return this.N};Ue.prototype.feed=function(F){yK(this.C,F);this.Va()}; Ue.prototype.Va=function(){if(this.Z){if(!this.C.getLength())return;var F=this.C.split(this.T-this.U),J=F.lf;F=F.eS;if(!this.e3.Q$(this.Z,J,this.U,this.T))return;this.U+=J.getLength();this.C=F;this.U===this.T&&(this.Z=this.T=this.U=void 0)}for(;;){var b=0;F=g.N(c8o(this.C,b));J=F.next().value;b=F.next().value;b=g.N(c8o(this.C,b));F=b.next().value;b=b.next().value;if(J<0||F<0)break;if(!this.C.UL(b,F)){if(!this.e3.Q$||!this.C.UL(b,1))break;b=this.C.split(b).eS;this.e3.Q$(J,b,0,F)&&(this.Z=J,this.U= b.getLength(),this.T=F,this.C=new m_([]));break}F=this.C.split(b).eS.split(F);b=F.eS;this.e3.zk(J,F.lf);this.C=b}}; Ue.prototype.dispose=function(){this.C=new m_};g.A=x7.prototype;g.A.BL=function(){return 0}; g.A.cY=function(){return null}; g.A.Vm=function(){return null}; g.A.Ax=function(){return this.state>=1}; g.A.isComplete=function(){return this.state>=3}; g.A.J4=function(){return this.state===5}; g.A.onStateChange=function(){}; g.A.aC=function(F){var J=this.state;this.state=F;this.onStateChange(J);this.callback&&this.callback(this,J)}; g.A.EX=function(F){F&&this.state<F?this.aC(F):this.callback&&this.callback(this,this.state)}; g.A.iR=function(){return this.state===-1}; g.A.uX=function(){var F="";this.info.aI.forEach(function(J){F+=J.uX()+"."}); return F.slice(0,-1)}; g.A.dispose=function(){this.iR()||(this.info.aI[0].C.T=!1,this.aC(-1))}; g.A.PZ=function(){return 0};g.A=nc.prototype;g.A.H_=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.e3.mx()}; g.A.onError=function(){this.T=!0;this.onDone()}; g.A.onDone=function(){this.iR||(this.Z=!0,this.e3.A6())}; g.A.X0=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.A.getResponseHeader=function(F){try{return this.xhr.getResponseHeader(F)}catch(J){return""}}; g.A.f5=function(){return+this.getResponseHeader("content-length")}; g.A.HF=function(){return this.U}; g.A.q5=function(){return this.status>=200&&this.status<300&&!!this.U}; g.A.vx=function(){return this.C.getLength()>0}; g.A.YU=function(){var F=this.C;this.C=new m_;return F}; g.A.fZ=function(){return this.C}; g.A.abort=function(){this.iR=!0;this.xhr.abort()}; g.A.kx=function(){return!0}; g.A.vG=function(){return this.T}; g.A.Aw=function(){return""};g.A=tvJ.prototype;g.A.getResponseHeader=function(F){return F==="content-type"?this.C.get("type"):""}; g.A.abort=function(){}; g.A.X0=function(){return!0}; g.A.f5=function(){return this.range.length}; g.A.HF=function(){return this.loaded}; g.A.q5=function(){return!!this.loaded}; g.A.vx=function(){return!!this.U.getLength()}; g.A.YU=function(){var F=this.U;this.U=new m_;return F}; g.A.fZ=function(){return this.U}; g.A.kx=function(){return!0}; g.A.vG=function(){return!!this.error}; g.A.Aw=function(){return this.error};g.A=Hak.prototype;g.A.start=function(F){var J={credentials:"include",cache:"no-store"};Object.assign(J,this.V);this.Z&&(J.signal=this.Z.signal);F=new Request(F,J);fetch(F).then(this.N,this.onError).then(void 0,MP)}; g.A.onDone=function(){this.iR()||this.e3.A6()}; g.A.getResponseHeader=function(F){return this.responseHeaders?this.responseHeaders.get(F):null}; g.A.X0=function(){return!!this.responseHeaders}; g.A.HF=function(){return this.U}; g.A.f5=function(){return+this.getResponseHeader("content-length")}; g.A.q5=function(){return this.status>=200&&this.status<300&&!!this.U}; g.A.vx=function(){return!!this.C.getLength()}; g.A.YU=function(){this.vx();var F=this.C;this.C=new m_;return F}; g.A.fZ=function(){this.vx();return this.C}; g.A.iR=function(){return this.D}; g.A.abort=function(){this.T&&this.T.cancel().catch(function(){}); this.Z&&this.Z.abort();this.D=!0}; g.A.kx=function(){return!0}; g.A.vG=function(){return this.W}; g.A.Aw=function(){return this.errorMessage};g.A=LBz.prototype;g.A.onDone=function(){if(!this.iR){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(F){}this.C=!0;this.e3.A6()}}; g.A.H_=function(){this.xhr.readyState===2&&this.e3.mx()}; g.A.aP=function(F){this.iR||(this.status=this.xhr.status,this.C||(this.U=F.loaded),this.e3.Hl((0,g.jR)(),F.loaded))}; g.A.X0=function(){return this.xhr.readyState>=2}; g.A.getResponseHeader=function(F){try{return this.xhr.getResponseHeader(F)}catch(J){return g.rQ(Error("Could not read XHR header "+F)),""}}; g.A.f5=function(){return+this.getResponseHeader("content-length")}; g.A.HF=function(){return this.U}; g.A.q5=function(){return this.status>=200&&this.status<300&&this.C&&!!this.U}; g.A.vx=function(){return this.C&&!!this.response&&!!this.response.byteLength}; g.A.YU=function(){this.vx();var F=this.response;this.response=void 0;return new m_([new Uint8Array(F)])}; g.A.fZ=function(){this.vx();return new m_([new Uint8Array(this.response)])}; g.A.abort=function(){this.iR=!0;this.xhr.abort()}; g.A.kx=function(){return!1}; g.A.vG=function(){return!1}; g.A.Aw=function(){return""};g.Hl.prototype.info=function(){}; g.Hl.prototype.debug=function(){}; g.Hl.prototype.C=bk(46);var IT3=new Map,Mam=new Map,uh7=new function(){var F=this;this.C=new Map;this.Po={rgE:function(){return F.C}}};g.z(Fx,g.R);Fx.prototype.UY=function(){if(!this.yk.length)return[];var F=this.yk;this.yk=[];this.T=g.ck(F).info;return F}; Fx.prototype.WJ=function(){return this.yk}; Fx.prototype.X_=function(){g.R.prototype.X_.call(this);this.C=null;this.yk.length=0;this.aI.length=0;this.T=null};g.z(bh,g.R);g.A=bh.prototype; g.A.PaR=function(){if(!this.iR()){var F=(0,g.jR)(),J=!1;if(this.policy.Px){F=F-(this.timing.U>0?this.timing.N:this.timing.C)-this.timing.Ih()*1E3;var b=po(Ih(this),!1);F>=2E3*b?J=!0:F>=this.policy.sW*b&&(this.C=this.policy.PS)}else if(this.timing.U>0){if(this.D){this.policy.MI&&(this.C=0);return}var I=this.timing.Z0();this.timing.Kq();var u=this.timing.Z0();u-I>=this.policy.xH*.8?(this.C++,this.logger.debug(function(){return"Mispredicted by "+(u-I).toFixed(0)}),J=this.C>=5):this.C=0}else{var w=F- this.timing.Y5(); this.policy.PS&&w>0&&(this.C+=1);J=po(Ih(this),!1)*this.policy.SY;(J=w>J*1E3)&&this.logger.debug(function(){return"Elbow late by "+w.toFixed(3)})}this.C>0&&this.e3.QU(); J?this.DD(!1):this.U.start()}}; g.A.DD=function(F){this.Z=!0;F&&!this.policy.Vj&&(F=Ih(this),F.U+=1);this.e3.h2();this.lastError="net.timeout";wg(this)}; g.A.canRetry=function(F){var J=Ih(this);F=F?this.policy.Xz:this.policy.rZ;return J.timedOut<this.policy.PC&&J.C<F}; g.A.rB=function(){return this.lastError}; g.A.r$=function(){return this.C}; g.A.dispose=function(){this.U.dispose();g.R.prototype.dispose.call(this)};var aq={},Vak=(aq["1h"]=8,aq["9h"]=4,aq["1"]=8,aq["9"]=4,aq["("]=4,aq.h=2,aq.H=2,aq),e_={},P9z=(e_.o=3,e_.O=3,e_.so=3,e_.a=1,e_.ah=1,e_.A=1,e_.m=1,e_.M=1,e_.sa=1,e_.mac3=7,e_.MAC3=7,e_.meac3=5,e_.MEAC3=5,e_),Kt={},T_G=(Kt.o=0,Kt.O=0,Kt.a=0,Kt.ah=0,Kt.A=0,Kt.m=1,Kt.M=1,Kt.mac3=1,Kt.MAC3=1,Kt.meac3=1,Kt.MEAC3=1,Kt.so=4,Kt.sa=4,Kt);var stk={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 ah,vs,eI=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],fT3=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],Wpk=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],dv4=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],EZz=["412","359"],jt4=[["140"],["251"],["380"],["328"]],pt={},zdz=(pt["398"]="397 396 395 394 788 787".split(" "), pt["247"]=["780","779","244","243","242"],pt["136"]=["135","134","133","160"],pt["141"]=["140"],pt["251"]=["250"],pt["774"]=["251","250"],pt),gH={},N_7=(gH["135"]=["134","133","160"],gH["243"]=["242"],gH["781"]=["780","779"],gH["777"]=["776","775"],gH["396"]=["395","394"],gH["141"]=["140"],gH["251"]=["250"],gH),mf={},lTz=(mf["274"]=["317","273","318","280","279"],mf["145"]=["144","222","223","143","142"],mf["141"]=["149"],mf["140"]=["149"],mf["380"]=["381"],mf["328"]=["329"],mf),yW={},yt7=(yW["133"]= 240,yW["134"]=360,yW["135"]=480,yW["136"]=720,yW["137"]=1080,yW["242"]=240,yW["243"]=360,yW["244"]=480,yW["247"]=720,yW["248"]=1080,yW["298"]=720,yW["299"]=1080,yW["302"]=720,yW["303"]=1080,yW["395"]=240,yW["396"]=360,yW["397"]=480,yW["398"]=720,yW["399"]=1080,yW);var rtz={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.z(re,x7);g.A=re.prototype;g.A.hd=function(){return this.timing.requestNumber}; g.A.tF=function(){return this.iC.tF()}; g.A.qp=function(){var F=pdm(this.lX);if(this.XC){var J=this.XC,b=J.C.getLength();F.ulen=b;b>0&&(J=J.C.getUint8(0),F.ubyte=J,b===1&&J===0&&(F.b248180278=!0))}this.Jw&&(F.rc=this.policy.gT?this.Jw:this.Jw.toString());this.policy.Ly&&this.jH&&(F.tr=this.jH);F.itag=this.info.aI[0].C.info.itag;F.ml=""+ +this.info.aI[0].C.VJ();F.sq=""+this.info.aI[0].Mf;this.iC&&(F.ifi=""+ +l9(this.info.gw.T));this.Jw!==410&&this.Jw!==500&&this.Jw!==503||(F.fmt_unav="true");var I;(b=this.errorMessage||((I=this.xhr)==null? void 0:I.Aw()))&&(F.msg=b);this.d5&&(F.smb="1");this.info.isDecorated()&&(F.sdai="1");return F}; g.A.Er=function(){return Oa3(this.timing)}; g.A.Aw=function(){return this.xhr.Aw()||""}; g.A.qO=function(){return this.isComplete()||this.timing.qO()}; g.A.Hl=function(){!this.iR()&&this.xhr&&(this.Jw=this.xhr.status,this.policy.BE&&this.Mk&&this.FC(!1),this.Im()?this.EX(2):!this.iQ&&this.qO()&&(this.EX(),this.iQ=!0))}; g.A.mx=function(){if(!this.iR()&&this.xhr){if(!this.a4&&this.xhr.X0()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var F=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.a4=((0,g.jR)()-F)/1E3}this.xhr.X0()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.IF&&!VBz()&&g.rm("yt-player-headers-readable",!0,2592E3);F=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),b;(b=this.Vt)==null||b.stop();this.H0=F||this.H0; this.Jd=J||this.Jd}}; g.A.A6=function(){var F=this.xhr;if(!this.iR()&&F){this.Jw=F.status;F=this.hv(F);if(this.policy.Ly){var J;(J=this.Vt)==null||J.stop()}F===5?wg(this.lX):this.aC(F);this.lX.U.stop()}}; g.A.hv=function(F){var J=this;Qt_(this);if(M$(this.lX,this.xhr.status,this.Bn?this.timing.eE||this.JR:this.xhr.q5(),!1,this.MO))return 5;var b="";A9(this.lX,this.xhr)&&(b=KpJ(this.lX,this.xhr));if(b)return Ko(Ih(this.lX)),this.info.Vz(this.iC,b),3;b=F.HF();if(this.XC){this.FC(!0);Qt_(this);if(M$(this.lX,this.xhr.status,this.timing.eE||this.JR,!1,this.MO))return 5;if(!this.XK){if(this.JR)return Ko(Ih(this.lX)),3;this.lX.lastError="net.closed";return 5}}else{if(M$(this.lX,this.xhr.status,this.xhr.q5(), !1,this.MO))return 5;var I=this.info.T;if(I&&I!==b||F.vG())return this.lX.lastError="net.closed",5;this.FC(!0)}I=U7o(this)?F.getResponseHeader("X-Bandwidth-Est"):0;if(F=U7o(this)?F.getResponseHeader("X-Bandwidth-Est3"):0)this.wN=!0,this.policy.fV&&(I=F);aTC(this.lX,b,I?Number(I):0,this.info.aI[0].type===5);this.logger.debug(function(){var u=J.timing;return"Succeeded, rtpd="+(u.cN*1E3+u.C-Date.now()).toFixed(0)}); return 4}; g.A.canRetry=function(){this.iR();var F=this.info.isDecorated();return this.lX.canRetry(F)}; g.A.onStateChange=function(){this.isComplete()&&(this.policy.SD?this.h2():this.timing.deactivate())}; g.A.DD=function(F){this.lX.DD(F)}; g.A.QU=function(){this.callback&&this.callback(this,this.state)}; g.A.r$=function(){return this.lX.r$()}; g.A.dispose=function(){x7.prototype.dispose.call(this);this.lX.dispose();var F;(F=this.Vt)==null||F.dispose();this.policy.SD||this.h2()}; g.A.h2=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.A.UY=function(){if(!this.WJ().length)return[];this.Kb=!0;return this.Mk.UY()}; g.A.Im=function(){if(this.state<1)return!1;if(this.Mk&&this.Mk.yk.length)return!0;var F;return((F=this.xhr)==null?0:F.vx())?!0:!1}; g.A.WJ=function(){this.FC(!1);return this.Mk?this.Mk.WJ():[]}; g.A.FC=function(F){try{if(F||this.xhr.X0()&&this.xhr.vx()&&!A9(this.lX,this.xhr)&&!this.v_)this.Mk||(this.Mk=new Fx(this.policy,this.info.aI)),this.xhr.vx()&&(this.XC?this.XC.feed(this.xhr.YU()):J9(this.Mk,this.xhr.YU(),F&&!this.xhr.vx()))}catch(J){this.XC?$va(this,J):g.rQ(J)}}; g.A.zk=function(F,J){switch(F){case 21:F=J.split(1).eS;C9k(this,F);break;case 22:this.XK=!0;J9(this.Mk,new m_([]),!0);break;case 43:if(F=$F(new PA(J),1))this.info.Vz(this.iC,F),this.JR=!0;break;case 45:J=na(new PA(J));F=J.Lq;J=J.Ns;F&&J&&(this.Ip=F/J);break;case 44:this.Tp=Gsz(new PA(J));var b,I,u;!this.timing.eE&&((b=this.Tp)==null?void 0:b.action)===4&&((I=this.Tp)==null?0:(u=I.nE)==null?0:u.Bn)&&(this.Bn=this.Tp.nE.Bn);break;case 53:this.policy.Ly&&(F=dCG(new PA(J)).aV)&&(this.Vt||(this.aV=F,this.Vt= new g.ty(this.Bf,F,this)),this.Vt.start());break;case 60:this.Tk=xT(new PA(J));break;case 58:if(F=Jsz(new PA(J)))this.WQ=F,F.WQ===3&&(this.MO=!0)}}; g.A.Q$=function(F,J,b,I){b||this.timing.Q$(I);if(F!==21)return!1;if(F=this.policy.BE)if(I=J.getLength()+b===I,F*=this.info.aI[0].C.info.LW,!I&&J.getLength()<F)return!1;if(!b){if(J.getLength()===1)return!0;J=J.split(1).eS}C9k(this,J);return!0}; g.A.HF=function(){return this.xhr.HF()}; g.A.BL=function(){return this.a4}; g.A.AO=function(){return this.sF()?2:1}; g.A.sF=function(){if(!this.policy.Y.lq||!isNaN(this.info.Qi)&&this.info.Qi>0)return!1;if(!this.xhr.X0())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.XC)var F=!this.info.T;else this.xhr.f5()?F=!1:(F=this.xhr.getResponseHeader("content-type"),F=F==="audio/mp4"||F==="video/mp4"||F==="video/webm");if(!F)return!1;if(isNaN(this.info.Qi)){F=this.xhr.getResponseHeader("x-head-seqnum");var J=this.timing.policy.N?1:0;if(!F)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(F)>this.info.aI[0].Mf+J)return!1}return!0}; g.A.PZ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.A.cY=function(){this.xhr&&(this.H0=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.H0}; g.A.Vm=function(){this.xhr&&(this.Jd=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Jd}; g.A.rB=function(){return this.lX.rB()}; g.A.Bf=function(){if(!this.iR()&&this.xhr){this.jH="heartbeat";var F=this.lX;F.C+=2;this.QU()}};g.z(mw,Dm);g.A=mw.prototype;g.A.ju=function(F,J){var b=(F-this.W)/1E3,I=J-this.T;this.U>0?I>0&&(this.Gj&&(b>.2||I<1024?(this.Z+=b,b>.2&&Rd_(this,.05,I)):Rd_(this,b,I)),this.qf&&(this.zj+=I,this.KW+=b)):J>this.policy.C&&this.Is(F,J);Dm.prototype.ju.call(this,F,J)}; g.A.b5=function(F,J){k7(this,F,J);this.ju(F,J);this.Gj&&(J=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.U>0&&pH(this.Zy,this.zj,this.Z),F=(F-this.C)/1E3||.01,this.policy.Tj&&!(this.U>0)||KH(this.Zy,F,this.T,J,!1))}; g.A.oo=function(F){k7(this,F,this.D);var J=(F-this.W)/1E3;m$(this.Zy,J,0);this.r_(J,0);!this.Gj&&this.U>0||(J=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.U>0&&(this.Z+=(F-this.W)/1E3,pH(this.Zy,this.zj,this.Z)),KH(this.Zy,((F-this.C)/1E3||.01)*this.policy.kQ,this.T,J,!1,!0))}; g.A.GM=function(F){F=F.g4||2147483647;(F&2)!==2&&(this.qf=!1);(F&1)===1&&(this.Gj=!0)}; g.A.r3=function(F){F=F.g4||2147483647;(F&2)===2&&(this.qf=!1);(F&1)===1&&(this.Gj=!1)}; g.A.jO=function(){return this.N}; g.A.jq=function(){var F=this.qf?this.now()-this.W:0;return Math.max(this.KW*1E3+F,1)}; g.A.TR=function(){return this.zj*1E3/this.jq()}; g.A.Is=function(F,J){F=F===void 0?this.V:F;J=J===void 0?this.D:J;this.U>0||(Dm.prototype.Is.call(this,F,J),J=this.Zy,F=(F-this.Tj)/1E3,J.Y.Zj(1,(this.Tj-this.C)/1E3),J.WN.Zj(1,F))}; g.A.QL=function(F){this.Jz=F}; g.A.BQ=function(){var F=Dm.prototype.BQ.call(this);F.rbw=this.TR();F.rbe=+this.qf;F.gbe=+this.Gj;F.ackt=(this.Jz-this.C).toFixed();return F}; g.A.Kq=function(){}; g.A.Z0=function(){return NaN}; g.A.Y5=function(){return this.C+this.snapshot.delay*1E3};y8.prototype.zk=function(F,J){J.getLength();switch(F){case 20:F=new PA(J);F={V5:rE(F,1),videoId:$F(F,2),itag:rE(F,3),lmt:rE(F,4),xtags:$F(F,5),eK:rE(F,6),Uv:St(F,8),Ev:rE(F,9),lQ_:rE(F,10),startMs:rE(F,11),durationMs:rE(F,12),YI:rE(F,14),timeRange:CQ(F,15,QiC),C4:rE(F,16),JE:rE(F,17),clipId:$F(F,1E3)};this.zT(F);break;case 21:this.Vv(J,!1);break;case 22:this.L1(J);break;case 31:F=RW(J,mC4);this.Bc(F);break;case 52:F=RW(J,E5z);this.Vh(F);break;default:this.AT(F,J)}}; y8.prototype.zT=function(){}; y8.prototype.AT=function(){};g.z(ih,y8);g.A=ih.prototype; g.A.AT=function(F,J){J.getLength();switch(F){case 35:this.Np(J);break;case 44:this.ej(J);break;case 43:this.JT(J);break;case 53:this.Bv(J);break;case 55:F=new PA(J);(F={timeline:CQ(F,1,P6o),fV_:CQ(F,2,rsm)},F.timeline)&&F.timeline.y9&&this.e3.b3(F.timeline.y9,F.timeline.IVQ,F.fV_);break;case 56:this.Ue();break;case 57:this.eM(J);break;case 42:this.f9(J);break;case 45:this.IV(J);break;case 59:this.TM(J);break;case 51:this.Xu(J);break;case 49:this.GM(J);break;case 50:this.r3(J);break;case 47:this.Zn(J); break;case 58:this.n3(J);break;case 61:this.e3.uC.QL((0,g.jR)());break;case 66:this.S2(J);break;case 46:this.CU(J);break;case 67:this.onSnackbarMessage(J)}}; g.A.Xu=function(F){F=new PA(F);F={wnQ:QK(F,1,cX),CH_:QK(F,2,cX)};this.e3.Xu(F)}; g.A.TM=function(F){var J=new PA(F);F=XS(J,1);var b=XS(J,2);J=XS(J,3);this.e3.TM(F,b,J)}; g.A.IV=function(F){F=na(new PA(F));this.e3.IV(F)}; g.A.Zn=function(F){F=RW(F,zpJ);this.e3.Zn(F)}; g.A.f9=function(F){F=new PA(F);F={videoId:$F(F,1),formatId:CQ(F,2,cX),endTimeMs:rE(F,3),KwQ:rE(F,4),mimeType:$F(F,5),Ji:CQ(F,6,v54),indexRange:CQ(F,7,v54),Qw:CQ(F,8,aQo)};this.e3.f9(F)}; g.A.eM=function(F){F=rsm(new PA(F));this.e3.eM(F)}; g.A.Ue=function(){this.e3.Ue()}; g.A.Np=function(F){F=ysk(new PA(F));this.e3.Np(F)}; g.A.Bv=function(F){F=dCG(new PA(F));this.e3.Bv(F)}; g.A.ej=function(F){F=Gsz(new PA(F));this.e3.ej(F)}; g.A.JT=function(F){F={redirectUrl:$F(new PA(F),1)};this.e3.JT(F)}; g.A.Vv=function(F){var J=F.getUint8(0);if(F.getLength()!==1){F=F.split(1).eS;var b=this.U[J]||null;b&&Ed(this.e3.ZV,J,b,F)}}; g.A.L1=function(F){F=F.getUint8(0);var J=this.U[F]||null;J&&this.e3.L1(F,J)}; g.A.Vh=function(F){this.e3.Vh(F)}; g.A.zT=function(F){var J=F.V5,b=F.Uv,I=F.eK,u=F.JE,w=F.C4,M=F.Ev,q=F.startMs,v=F.durationMs,a=F.timeRange,e=F.YI,K=F.clipId,p=lU(F);F=fzb.has(Df[""+F.itag]);this.U[J]=p;this.e3.j$(p,F,{V5:J,Uv:!!b,eK:I!=null?I:-1,Ev:M!=null?M:-1,startMs:q!=null?q:-1,durationMs:v!=null?v:-1,YI:e,JE:u,C4:w,clipId:K,timeRange:a})}; g.A.GM=function(F){F={g4:rE(new PA(F),1)};this.e3.GM(F)}; g.A.r3=function(F){F={g4:rE(new PA(F),1)};this.e3.r3(F)}; g.A.Bc=function(F){this.e3.Bc(F)}; g.A.n3=function(F){F=Jsz(new PA(F));this.e3.n3(F)}; g.A.S2=function(F){F={ZC:CQ(new PA(F),1,fQ7)};this.e3.S2(F)}; g.A.onSnackbarMessage=function(F){F=rE(new PA(F),1);this.e3.onSnackbarMessage(F)}; g.A.CU=function(F){F={reloadPlaybackParams:CQ(new PA(F),1,F8z)};this.e3.CU(F)};g.z(zL,g.R);g.A=zL.prototype;g.A.nP=function(){return Array.from(this.Fq.keys())}; g.A.IE=function(F){F=this.Fq.get(F);var J=F.yk;F.o4+=J.getLength();F.yk=new m_;return J}; g.A.Ph=function(F){return this.Fq.get(F).Ph}; g.A.R7=function(F){return this.Fq.get(F).R7}; g.A.j$=function(F,J,b,I){this.Fq.get(F)||hda(this,F,J);J=this.Fq.get(F);if(this.lR){F=UvC(this,F,b);if(I)for(var u=g.N(F),w=u.next();!w.done;w=u.next()){w=w.value;var M=I;w.N=M;w.startTime+=M;w.hF+=M;w.H1+=M}cta(this,b.V5,J,F)}else b.Uv?J.o_=b.YI:J.oD.push(b),J.wm.push(b)}; g.A.Mp=function(F){var J;return((J=this.Fq.get(F))==null?void 0:J.aI)||[]}; g.A.EX=function(){for(var F=g.N(this.Fq.values()),J=F.next();!J.done;J=F.next())J=J.value,J.Ms&&(J.aP&&J.aP(),J.Ms=!1)}; g.A.L1=function(F,J){this.logger.debug(function(){return"[onMediaEnd] formatId: "+J}); var b=this.Fq.get(J);if(N$){if(b&&!b.Ph){if(b.Y_.get(F))b.Y_.get(F).AY=!0;else{var I;((I=this.Zg)==null?0:I.y6)&&b.Y_.set(F,{data:new m_,No:0,AY:!0})}b.R7=!0}}else b&&!b.R7&&(b.R7=!0)}; g.A.UY=function(F){if(N$){var J=this.Fq.get(F);if(J)for(var b=g.N(J.Y_),I=b.next();!I.done;I=b.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;var w=J.WP.get(I);if(V4(w[0])){if(!u.AY)continue;var M=w,q=u.data;q.getLength();w=0;var v=[];M=g.N(M);for(var a=M.next();!a.done;a=M.next()){a=a.value;var e=a.T,K=iH(q,w,e);w+=e;v.push(new UL(a,K))}J.yF.push.apply(J.yF,g.W(v))}else if(u.data.getLength()>0||!w[0].range&&u.AY)q=void 0,w=w[0],v=u.No,M=u.data,w.range||(q=u.AY),a=M.getLength(),q=new UL(nz_(w, w.U+v,a,q),M),u.No+=q.info.T,J.yF.push(q);J.Y_.get(I).data=new m_;u.AY&&J.Y_.delete(I)}F=this.Fq.get(F);if(!F)return[];J=F.yF;F.yF=[];b=g.N(J);for(I=b.next();!I.done;I=b.next())F.o4+=I.value.info.T;return J||[]}b=(J=this.Fq.get(F))==null?void 0:J.Mk;if(!b)return[];this.FC(F,b);return b.UY()}; g.A.Im=function(F){if(N$)return dg(this,F);var J,b,I;return!!((b=(J=this.Fq.get(F))==null?void 0:J.Mk)==null?0:(I=b.WJ())==null?0:I.length)||dg(this,F)}; g.A.FC=function(F,J){for(;dg(this,F);){var b=this.IE(F);var I=F;I=this.Fq.get(I).Ph&&!Ws(this,I);J9(J,b,I&&oZ7(this,F))}}; g.A.X_=function(){g.R.prototype.X_.call(this);for(var F=g.N(this.Fq.keys()),J=F.next();!J.done;J=F.next())lh(this,J.value);var b;if((b=this.Zg)==null?0:b.us)for(F=g.N(this.Fq.values()),J=F.next();!J.done;J=F.next())J=J.value,J.Y_.clear(),J.WP.clear(),J.yF.length=0,J.aI.length=0,J.wm.length=0,J.oD.length=0;this.Fq.clear()}; var N$=!1;g.z(jI,g.R);g.A=jI.prototype;g.A.Hl=function(){!this.iR()&&this.xhr&&(this.FC(!1),JX(this.e3,this))}; g.A.mx=function(){}; g.A.A6=function(){if(!this.iR()&&this.xhr){var F=this.hv();F===5?wg(this.lX):this.aC(F);this.lX.U.stop();var J;(J=this.BJ)==null||J.stop()}}; g.A.hv=function(){var F="";A9(this.lX,this.xhr)&&(F=KpJ(this.lX,this.xhr));if(F)return this.info.gw.Vz(this.iC,F),3;this.FC(!0);if(M$(this.lX,this.xhr.status,this.xhr.q5(),this.info.Gz(),this.MO))return 5;if(this.bY)return 3;aTC(this.lX,this.xhr.HF(),0,this.Gz());this.policy.Se&&dFz(this.e3);return 4}; g.A.FC=function(F){var J=this.xhr;if((F||!A9(this.lX,this.xhr))&&J.vx()){F=J.YU();var b=F.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); this.XC.feed(F)}}; g.A.zk=function(F,J){this.xhr.kx()&&F===21&&Zk_(this);this.mV.zk(F,J)}; g.A.Q$=function(F,J,b,I){b||(this.uC.Q$(I),this.policy.JY&&F===21&&Zk_(this));if(F!==21)return!1;this.uC.eE=!0;F=J.getLength();b||(this.Ct=J.getUint8(0),J=J.split(1).eS);var u=this.policy.t5,w=this.mV.U[this.Ct],M=this.lR.T.get(w);if(u&&M&&(u*=M.info.LW,F+b!==I&&F<u))return!1;Ed(this.ZV,this.Ct,w,J);return!0}; g.A.Np=function(F){this.e3.Np(F)}; g.A.Bv=function(F){if(this.policy.enableServerDrivenRequestCancellation){var J;(J=this.BJ)==null||J.dispose();this.tC=F;F.g1&&(this.BJ=new g.ty(this.FP,F.g1,this));this.FP()}}; g.A.FP=function(){var F;if((F=this.tC)!=null&&F.items){var J;(J=this.BJ)==null||J.start();if(this.uC.U>0){this.policy.Px&&this.lX.U.stop();F=this.uC.jq();J=this.uC.TR();var b=HkG(this,F);if(!(J>b.E4||b.tq>0&&this.info.Yy()>b.tq)){this.xB=(0,g.jR)();var I;(I=this.BJ)==null||I.stop();this.policy.Se&&(I=this.e3,F={qU:Math.round(J*F/1E3),Il:F},I.policy.Se&&(I.WN=F,I.XU++));this.DD(!1)}}}}; g.A.DD=function(F){this.lX.DD(F)}; g.A.ej=function(F){this.e3.ej(F,this.hd())}; g.A.JT=function(F){this.bY=!0;this.info.gw.Vz(this.iC,F.redirectUrl)}; g.A.GM=function(F){this.uC instanceof mw&&this.uC.GM(F)}; g.A.r3=function(F){this.uC instanceof mw&&this.uC.r3(F)}; g.A.b3=function(F,J,b){this.e3.b3(F,J,b,this.hd())}; g.A.f9=function(F){var J=F.formatId,b=lU({itag:J.itag,lmt:J.lmt,xtags:J.xtags}),I,u,w=new W6(((I=F.Ji)==null?void 0:I.first)||0,((u=F.Ji)==null?void 0:u.ex)||0),M,q;I=new W6(((M=F.indexRange)==null?void 0:M.first)||0,((q=F.indexRange)==null?void 0:q.ex)||0);if(!this.lR.T.get(b)){b=F.Qw||{};if(this.policy.rf){var v,a;F=(v=F.mimeType)!=null?v:"";v=(a=J.itag)!=null?a:0;a=Df[""+v];b.mimeType=a!=="9"&&a!=="9h"?F:'video/webm; codecs="'+["vp09",a==="9h"?"02":"00","51",a==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else b.mimeType=F.mimeType;b.itag=J.itag;b.lastModified=""+(J.lmt||0);b.xtags=J.xtags;J=this.lR;a=KW("");v=aZ(b,null);uI(J,new Jg(a,v,w,I))}}; g.A.IV=function(F){this.e3.IV(F)}; g.A.onSnackbarMessage=function(F){if(this.policy.dL)this.e3.onSnackbarMessage(F)}; g.A.Bc=function(F){this.TY=F;this.fK=(0,g.jR)();this.e3.Bc(F)}; g.A.TM=function(F,J,b){this.e3.TM(F,J,b)}; g.A.eM=function(F){F.scope===2&&(this.MTR=F);this.e3.eM(F)}; g.A.Ue=function(){this.NH=!0;this.e3.Ue()}; g.A.Xu=function(F){this.policy.Uz&&this.e3.Xu(F)}; g.A.Zn=function(F){this.e3.Zn(F,this.hd())}; g.A.n3=function(F){F.WQ===3&&(this.MO=!0);this.e3.n3(F)}; g.A.S2=function(F){this.e3.S2(F)}; g.A.CU=function(F){this.e3.CU(F)}; g.A.canRetry=function(){this.iR();return this.lX.canRetry(!1)}; g.A.dispose=function(){if(!this.iR()){g.R.prototype.dispose.call(this);this.lX.dispose();var F;(F=this.BJ)==null||F.dispose();this.aC(-1);this.h2()}}; g.A.aC=function(F){this.state=F;JX(this.e3,this)}; g.A.Gz=function(){return this.info.Gz()}; g.A.DA=function(){return this.NH}; g.A.Xw=function(){return this.MTR}; g.A.j$=function(F,J,b){b.clipId&&(this.clipId=b.clipId);this.policy.D&&!J&&(this.fF=b.Ev,this.Td=b.startMs);var I=0;this.policy.Lv&&this.ob&&this.clipId&&(I=V5(this.ob,this.clipId)/1E3);this.ZV.j$(F,J,b,I);this.policy.G8&&this.TY&&this.uC instanceof oa&&(I=this.TY.rL,this.uC.j$(b.durationMs/1E3,J,I>0&&b.Ev+1>=I));this.ZV.Fq.get(F).kN=!0}; g.A.L1=function(F,J){this.ZV.L1(F,J)}; g.A.Vh=function(F){this.requestIdentifier=F}; g.A.UY=function(F){return this.ZV.UY(F)}; g.A.Mp=function(F){return this.ZV.Mp(F)}; g.A.Im=function(F){return this.ZV.Im(F)}; g.A.nP=function(){return this.ZV.nP()}; g.A.AO=function(){return 1}; g.A.hd=function(){return this.uC.requestNumber}; g.A.eJ=function(){return this.requestIdentifier}; g.A.f2=function(){return this.clipId}; g.A.tF=function(){return this.iC.tF()}; g.A.XD=function(){this.h2()}; g.A.h2=function(){this.uC.deactivate();var F;(F=this.xhr)==null||F.abort()}; g.A.isComplete=function(){return this.state>=3}; g.A.Cs=function(){return this.state===3}; g.A.J4=function(){return this.state===5}; g.A.wi=function(){return this.state===4}; g.A.zR=function(){return this.isComplete()}; g.A.Ax=function(){return this.state>=1}; g.A.r$=function(){return this.policy.MI?this.lX.r$():0}; g.A.QU=function(){this.policy.MI&&JX(this.e3,this)}; g.A.n2=function(){return puz(this.info)}; g.A.rB=function(){return this.lX.rB()}; g.A.qp=function(){var F=pdm(this.lX);Object.assign(F,mn7(this.info));F.req="sabr";F.rn=this.hd();var J;if((J=this.xhr)==null?0:J.status)F.rc=this.policy.gT?this.xhr.status:this.xhr.status.toString();var b;(J=(b=this.xhr)==null?void 0:b.Aw())&&(F.msg=J);this.xB&&(b=HkG(this,this.xB-this.uC.jO()),F.letm=b.avN,F.mrbps=b.E4,F.mram=b.tq);return F}; g.A.bO=function(){return{fF:this.fF,Td:this.Td,isDecorated:this.info.isDecorated()}};Lpz.prototype.tick=function(F,J){this.ticks[F]=J?window.performance.timing.navigationStart+J:(0,g.jR)()};g.z(V8,g.uA);g.A=V8.prototype; g.A.Io=function(F,J,b,I){var u=!1;this.policy.oI&&(u=b?this.kQ===F.Mf:this.Gj===F.Mf);if(this.W&&I&&!u){I=[];u=[];var w=[],M=void 0,q=0;J&&(I=J.C,u=J.U,w=J.Z,M=J.T,q=J.W$,this.UQ("sdai",{sq:F.Mf,ssvicpns:I.join("."),ssvid:u.join(".")}));this.policy.oI&&(b?this.kQ=F.Mf:this.Gj=F.Mf);this.W.Za(F.Mf,F.startTime,this.U,I,u,w,b,q,M)}if(this.policy.oI){if(b||this.policy.R5){this.U===1&&Bs(this,5,"noad");var v;F.Mf!==((v=this.C)==null?void 0:v.Mf)&&(euC(this,F,J,b),isNaN(F.startTime)||TL(this,F.Mf,sd(this, F.startTime,F.Mf),!!J,this.W))}}else b&&euC(this,F,J)}; g.A.K9=function(F,J,b){var I=this.videoTrack.C.index.oC()<=J;this.C={Wg:F,Mf:J,Hz:b};I&&Ps(this,F,J)}; g.A.CB=function(){this.W&&this.W.CB()}; g.A.UQ=function(F,J,b){(F!=="sdai"||this.policy.WC||(b===void 0?0:b))&&this.Zv.UQ(F,J)}; g.A.l1=function(F,J){var b=this.videoTrack.C.index.Ea(F);if(b>=0){var I;var u=((I=J.xl.El(b,2))==null?void 0:I.VO)||"";if(this.policy.D||u)return J.rO(F,b),rg(this.Zv,F,F,b),this.UQ("sdai",{cmskpad:1,t:F.toFixed(3),sq:b}),!0}this.UQ("sdai",{cmskpad:0,t:F.toFixed(3),sq:b});return!1};g.z(Xx,g.R);Xx.prototype.KL=function(F,J,b){b=b===void 0?{}:b;this.policy.hN=j$(F,b,this.Z,J===void 0?!1:J)};Od.prototype.c8=function(F){var J=this;if(this.policy.GS){var b=new Set(F);b.size===this.WN.size&&[].concat(g.W(b)).every(function(I){return J.WN.has(I)})||(this.Zv.UQ("lwnmow",{itagDenylist:[].concat(g.W(F)).join(",")}),this.Zv.zV(!!b.size),this.N=-1,this.WN=b,oh(this,this.C),this.dD=!0)}}; Od.prototype.KL=function(F,J,b){b=b===void 0?{}:b;var I=this.policy.hN;this.D.KL(F,J===void 0?!1:J,b);if(I!==this.policy.hN){oh(this,this.C);h9(this);var u,w;I>this.policy.hN&&((u=this.T)==null?0:c4(u.info))&&((w=this.nextVideo)==null||!c4(w.info))&&(this.Tj=!0)}};nv.prototype.sM=function(F){this.timestampOffset=F;this.flush()}; nv.prototype.flush=function(){if(this.C.pos>0){var F={a:this.track.Cd(),u:this.C.G7(),pd:Math.round(this.Z),ad:Math.round(this.T)},J=this.U;if(J){var b=J.C.info;F.itag=b.itag;b.C&&(F.xtags=b.C);F.sq=J.Mf;F.st=J.startTime;F.sd=J.duration;this.track.policy.Ud&&(F.si=J.uX());J.Z&&(F.esl=J.U+J.T);J.aQ()&&(F.eos=1)}isNaN(this.timestampOffset)||(F.to=this.timestampOffset);var I;if(J=(I=this.track.dw)==null?void 0:I.Cy({})){for(var u in J)this.W[u]!==J[u]&&(F["sb_"+u]=J[u]);this.W=J}this.track.UQ("sbu", F);this.C.reset();this.buffered=[];this.D=this.T=this.Z=0;this.timestampOffset=this.U=void 0}};Zq.prototype.dispose=function(){this.eE=!0}; Zq.prototype.iR=function(){return this.eE}; g.z(Io,Error);var Z1z=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]);Md.prototype.skip=function(F){this.offset+=F}; Md.prototype.VB=function(){return this.offset};g.A=Lc3.prototype;g.A.ym=function(){return this.U}; g.A.q$=function(){return this.U.length?this.U[this.U.length-1]:null}; g.A.uq=function(){this.U=[];e3(this);v0(this)}; g.A.IE=function(F){this.zj=this.U.shift().info;F.info.Hg(this.zj)}; g.A.Mp=function(){return g.EG(this.U,function(F){return F.info})}; g.A.Cd=function(){return!!this.W.info.audio}; g.A.getDuration=function(){return this.W.index.cn()};g.z(T9,x7);g.A=T9.prototype;g.A.onStateChange=function(){this.iR()&&(fv(this.ZV,this.formatId),this.C.dispose())}; g.A.qp=function(){var F=Okz(this.ZV,this.formatId),J;var b=((J=this.ZV.Fq.get(this.formatId))==null?void 0:J.bytesReceived)||0;var I;J=((I=this.ZV.Fq.get(this.formatId))==null?void 0:I.o4)||0;return{expected:F,received:b,bytesShifted:J,sliceLength:Ws(this.ZV,this.formatId),isAnyMediaEndReceived:this.ZV.R7(this.formatId)}}; g.A.Er=function(){return 0}; g.A.qO=function(){return!0}; g.A.UY=function(){return this.ZV.UY(this.formatId)}; g.A.WJ=function(){return[]}; g.A.Im=function(){return this.ZV.Im(this.formatId)}; g.A.rB=function(){return this.lastError}; g.A.r$=function(){return 0};g.z(mV,g.R);g.A=mV.prototype;g.A.Cd=function(){return!!this.C.info.audio}; g.A.q$=function(){return this.Z.q$()}; g.A.IE=function(F){this.Z.IE(F);var J;(J=this.Y)!=null&&(J.D.add(F.info.Mf),J.C=ETz(J,J.Ym,J.Lc,F,J.C),J.T=F,J.W=(0,g.jR)());this.LW=Math.max(this.LW,F.info.C.info.LW||0)}; g.A.getDuration=function(){if(this.policy.U){var F=this.Zv.IH();if(F)return LS(F)}return this.C.index.cn()}; g.A.uq=function(){Sd(this);this.Z.uq()}; g.A.ND=function(){return this.Z}; g.A.isRequestPending=function(F){return this.T.length?F===this.T[this.T.length-1].info.aI[0].Mf:!1}; g.A.sM=function(F){var J;(J=this.Y)==null||J.sM(F);var b;(b=this.N)==null||b.sM(F)}; g.A.UQ=function(F,J){this.Zv.UQ(F,J)}; g.A.Iv=function(){return this.Zv.Iv()}; g.A.dispose=function(){var F;(F=this.N)==null||F.flush();g.R.prototype.dispose.call(this)};g.z(D6,g.R);D6.prototype.T=function(){this.U++>15||(this.C=!this.C,new OW3(this.Zv,this.policy,this.Zy,this.gw,this.C),this.delay.start())}; g.A=OW3.prototype;g.A.mx=function(){}; g.A.Hl=function(){}; g.A.A6=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.HF()===this.size)this.Zv.UQ("rqs",this.getInfo());else{var F="net.connect";this.xhr.status>200?F="net.badstatus":this.xhr.X0()&&(F="net.closed");this.onError(F)}}; g.A.onError=function(F){var J=this;this.Zv.handleError(F,this.getInfo());lX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(b){J.Zv.UQ("pathprobe",b)},function(b){J.Zv.handleError(b.errorCode,b.details)})}; g.A.getInfo=function(){var F=this.timing.BQ();F.shost=zK(this.location.XY);F.pb=this.size;return F};g.z(ka,g.R); ka.prototype.V=function(F,J){if(F.V){this.lR.isLive?(F=this.lR.De&&this.lR.Z?F.C.iH(this.lR.De,!1):F.C.CA(Infinity),F.Qi=this.Qi):F=F.C.iH(0,!1);if(this.Tj){var b=this.Tj;F.Qi===0&&(F.D=b.Y)}else F.D=this.N;return F}b=F.U;if(!b.C.VJ())return b.C.pc()?(F=de(this.D,F.C.info.LW,J.C.info.LW,0),F=b.C.dW(b,F)):F=b.C.qc(b),F;var I=b.H1-this.Zv.getCurrentTime(),u=!b.range||b.T===0&&b.U===0?0:b.range.length-(b.U+b.T),w=b.C;this.Z5(F,I)&&u===0&&(this.lR.isManifestless?w=F.C:(w=b.startTime+qS,b.T&&(w+=b.duration), $7(F,w),b=F.U,w=b.C));w.pc()?(u=this.T,J=de(this.D,w.info.LW,J.C.info.LW,I,u.Z.length>0&&u.Y===0&&this.Zv.Pl),I=r9(F),F=b.C.dW(b,J),(J=F.T)&&F.aI.length>1&&(I||F.gw.U||F.aI[0].C!==b.C?F=b.C.dW(b,F.aI[0].T):(I=F.aI[F.aI.length-1],w=I.T/J,!I.Z&&w<.4&&(F=b.C.dW(b,J-I.T))))):(b.Mf<0&&(J=rG(b),J.pr=""+F.T.length,this.Zv.isSeeking()&&(J.sk="1"),J.snss=b.D,this.Zv.UQ("nosq",J)),F=w.qc(b));if(this.policy.kQ)for(b=g.N(F.aI),J=b.next();!J.done;J=b.next())J.value.type=6;return F}; ka.prototype.Z5=function(F,J){if(!r9(F)||!F.C.VJ())return!1;var b=this.T.dD||GFG(F)||J<=this.policy.TP||this.T.Tj;this.logger.debug(function(){return"ready to adapt: "+b+", upgrade pending: "+GFG(F)+", health: "+J}); return b}; ka.prototype.X_=function(){g.R.prototype.X_.call(this)}; var qS=2/24;g.z(gC,g.R);gC.prototype.m0=function(F,J,b){var I;var u=((I=this.U)==null?void 0:I.reason)==="m"?"m":this.U&&I7C(this,this.U)?this.U.reason:"a";this.Zv.m0(new Cv(F,u,b));xa(this.Zv,J,F,!0)}; gC.prototype.Id=function(F,J){for(var b=g.N(this.kQ),I=b.next();!I.done;I=b.next())if(I=I.value,I.id===F)return this.Zg.A4||(this.T=[I]),this.W=this.lR.C[F],QO(this.Zg)&&(this.Tj=!0),new Cv(this.W,J?"t":"m");this.T=[];return null}; gC.prototype.KL=function(F,J,b){b=b===void 0?{}:b;this.C.KL(F,J===void 0?!1:J,b)};z6.prototype.setData=function(F,J,b,I){var u=this;I=I===void 0?{}:I;if(b==null?0:b.NW)this.ZS=taG(this,b,I),F.iK=this.gw.iK();if(this.Gz())return!0;this.data=F;this.C=e1G(F,J,function(w,M){var q;(q=u.e3)==null||q.Ck(w,M)},b==null?void 0:b.T); if(!this.C)return!1;this.U=g.ux(this.C,w7Y);return!0}; z6.prototype.Gz=function(){return this.requestType===1}; z6.prototype.Yy=function(){var F;return((F=this.e3)==null?void 0:F.Yy())||0}; z6.prototype.isDecorated=function(){var F;return!((F=this.data)==null||!F.Zc)};NU.prototype.encrypt=function(F){this.PV.exports.AES128CTRCipher_encrypt(this.cipher,F.byteOffset,F.byteLength);return F}; NU.prototype.iR=function(){return this.cipher===0}; NU.prototype.dispose=function(){this.PV.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};fS.prototype.encrypt=function(F,J){return Ix(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:J},this.key,F).catch(function(b){return Promise.reject(b.name+": "+b.message)}).then(function(b){return new Uint8Array(b)}))}; fS.prototype.iR=function(){return this.C}; fS.prototype.dispose=function(){this.C=!0}; Sn.p$(fS,{encrypt:lz("oan2")});Wv.prototype.encrypt=function(F,J){yo(this.U,J);return Ix(this.U.encrypt(F))}; Wv.prototype.iR=function(){return this.C}; Wv.prototype.dispose=function(){this.C=!0}; Sn.p$(Wv,{encrypt:lz("oap")});dC.prototype.encrypt=function(F,J){var b=this.PV.Fc(J),I=this.C;I.PV.exports.AES128CTRCipher_setCounter(I.cipher,(b!=null?b:J).byteOffset);J=this.PV.Fc(F);this.C.encrypt(J!=null?J:F);b&&this.PV.free(b.byteOffset);return J?Ix(this.PV.yl(J)):Ix(F)}; dC.prototype.iR=function(){return this.C.iR()}; dC.prototype.dispose=function(){this.C.dispose()}; Sn.p$(dC,{encrypt:lz("oalw")});E_.prototype.encrypt=function(F,J){var b=this,I=uf("");F.length<=this.rp&&this.C&&!this.Z&&(I=q7(I,function(){return b.C?b.C.encrypt(F,J):uf("wasm unavailable")})); F.length<=this.Wq&&(this.C&&this.Z&&(I=q7(I,function(){return b.C?b.C.encrypt(F,J):uf("wasm unavailable")})),I=q7(I,function(){return NNm(b,F,J)})); return q7(q7(I,function(){return l7Y(b,F,J)}),function(){return NNm(b,F,J)})}; E_.prototype.iR=function(){return this.D}; E_.prototype.dispose=function(){this.D=!0;var F;(F=this.T)==null||A8(F,g.q8);g.q8(this.C);g.q8(this.U)};jS.prototype.encrypt=function(F){(0,g.jR)();return(new bb(this.C.C)).encrypt(F,this.iv)}; jS.prototype.decrypt=function(F,J){(0,g.jR)();return(new bb(this.C.C)).decrypt(F,J)}; jS.prototype.iR=function(){return this.T}; jS.prototype.dispose=function(){this.T=!0;g.q8(this.U)};g.z(G6,g.R);G6.prototype.T=function(F,J){if(J){J=J instanceof g.yJ?J:V1(this,J);var b;((b=this.C.get(F))==null?void 0:zK(b.location))!==zK(J)&&this.C.set(F,new BN_(J,F))}else this.C.delete(F)}; G6.prototype.load=function(){var F=this,J,b,I,u,w,M,q,v,a,e;return g.S(function(K){switch(K.C){case 1:J=F.C.get(0);g.lk(K,2);var p;if(p=J&&!F.U)p=zK(J.location),p=F.U===uh(p);if(p){K.gD(4);break}return g.T(K,Bv(F,F.U?2:0),5);case 5:if(b=K.U)F.T(0,b),l9(b)&&F.T(1,fk(b));case 4:g.Wa(K,3);break;case 2:I=g.dY(K);g.rQ(I);if(!F.U){K.gD(3);break}F.U=!1;return g.T(K,F.load(),7);case 7:return K.return();case 3:if(!F.rD.experiments.pW("html5_onesie_probe_ec_hosts")){K.gD(0);break}g.lk(K,9);u=F;w=u.T;M=3;return g.T(K, Bv(F,1),11);case 11:return w.call(u,M,K.U),q=F,v=q.T,a=4,g.T(K,Bv(F,2),12);case 12:v.call(q,a,K.U);g.Wa(K,0);break;case 9:e=g.dY(K),g.rQ(e),g.N4(K)}})}; G6.prototype.V=function(){var F=this,J,b;return g.S(function(I){g.Z_(F.Y);J=g.eB(F.rD.experiments,"html5_onesie_prewarm_max_lact_ms");if(dP()>=J)return I.return();(b=F.C.get(0))&&V8o(F,b);g.N4(I)})}; var jwz={pFz:0,kQQ:1,LWQ:2,gZD:3,yNE:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};T6.prototype.decrypt=function(F){var J=this,b,I,u,w,M,q;return g.S(function(v){switch(v.C){case 1:if(J.C.length&&!J.C[0].isEncrypted)return v.return();J.U=!0;J.cF.G$("omd_s");b=new Uint8Array(16);Ns()?I=new JP(F):u=new bb(F);case 2:if(!J.C.length||!J.C[0].isEncrypted){v.gD(4);break}w=J.C.shift();if(!I){M=u.decrypt(w.buffer.HS(),b);v.gD(5);break}return g.T(v,I.decrypt(w.buffer.HS(),b),6);case 6:M=v.U;case 5:q=M;for(var a=0;a<b.length;a++)if(b[a]===255)b[a]=0;else{b[a]+=1;break}a=J.cF;var e=w.videoId, K=w.V5,p=w.formatId,m=new m_([q]),y;(y=rC(a.Wo,e))==null||Ed(y,K,p,m);v.gD(2);break;case 4:J.cF.G$("omd_c"),SS(J),J.U=!1,J.cF.hT(),g.N4(v)}})}; T6.prototype.enqueue=function(F,J,b,I,u){this.C.push({videoId:F,V5:J,formatId:b,buffer:I,isEncrypted:u});this.U||SS(this)};var sw4=!!Uint8Array.prototype.copyWithin,s_=[],Yb=[],TNG=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],CS=[],$b=[],Q1=[],Xd=[];hf.prototype.Fe=function(F){return g.o7(new g.R7(F))}; hf.prototype.Br=function(F){function J(M){if(!M.done)return w.append(M.value),u.read().then(function(q){return J(q)})} if(!("DecompressionStream"in window))return uf("native decompression unavailable");var b=new DecompressionStream("gzip"),I=b.writable.getWriter();I.write(F).then(function(){return I.close()}); var u=b.readable.getReader(),w=new m_([]);return q7(A8(A8(Ix(u.read()),J),function(){return w.HS()}),function(M){return uf(M.message)})}; hf.prototype.vr=function(F,J){var b=void 0,I=J.Fc(F);I&&(b=I.byteOffset,F=I);I=J.exports.getInflatedSize(F.byteOffset,F.length);if(I===0)return uf("bad compressed input");var u=J.malloc(I);if(J.exports.inflateGzip(F.byteOffset,F.length,u))return J.free(u),uf("inflateGzip failed");b&&J.free(b);return Ix(new Uint8Array(J.exports.memory.buffer,u,I))}; Sn.p$(hf,{Fe:function(F){return{profile:"gzjb",zQ:Math.ceil(F.byteLength/16)}}, Br:function(F){return{profile:"gznb",zQ:Math.ceil(F.byteLength/16)}}, vr:function(F){return{profile:"gzwb",zQ:Math.ceil(F.byteLength/16)}}});g.z(cv,y8);g.A=cv.prototype;g.A.hT=function(){this.Wo.hT()}; g.A.AT=function(F,J){switch(F){case 10:var b=RW(J,p7C);F=b.EH_;var I=!1;switch(F){case 0:this.T=!b.Gl.vQI;this.iv=b.Gl.iv;break;case 2:break;case 23:var u=this.Wo;b=b.ikN;u.G$("omp_r");b.videoId&&(u.L3=b.videoId);u.L3!==u.videoData.videoId&&(u.videoData.AS=u.L3,u.UQ("ompp","vid."+u.L3));u.SI=!0;break;case 24:b=this.Wo;b.G$("omp_c");b.SI=!1;b.y_=!1;var w=(u=b.qk)==null?void 0:u.get(b.L3);b.notifySubscribers(b.L3);w!=null&&(w.C=!0);tf(b);break;default:I=!0}this.Wo.BF&&this.Wo.UQ("ombup","id.10;pt."+ F+";len."+J.getLength()+(I?";ignored.1":""));this.Z=F;break;case 11:Dnv(this,J);break;case 12:this.Vv(J,!0);break;case 37:J=RW(J,g57);(J.dP||J.EU)&&J.videoId&&this.Wo.iO.set(J.videoId,J);break;case 60:this.Qv(J);break;case 47:this.S("html5_server_playback_start_policy")&&(J=RW(J,zpJ),this.Wo.playbackStartPolicy=J);break;case 35:this.Np(J);break;case 45:this.IV(J);break;case 66:this.S2(J);break;default:this.Wo.BF&&this.Wo.UQ("ombup","id."+F+";len."+J.getLength()+";ignored.1")}}; g.A.Bc=function(F){this.Wo.Bc(F)}; g.A.Qv=function(F){F=RW(F,xT);this.Wo.Qv(F)}; g.A.IV=function(F){F=RW(F,na);this.Wo.IV(F)}; g.A.zT=function(F){var J=F.V5,b=F.Uv,I=F.eK,u=F.C4,w=F.Ev,M=F.startMs,q=F.durationMs,v=F.timeRange,a=F.YI,e=lU(F),K=fzb.has(Df[""+F.itag]);b&&this.G$(K?"oais_r":"ovis_r");var p=this.C[e]!==void 0;this.Wo.BF&&this.Wo.UQ("ombup","id.20;hid."+J+";fid."+e);var m=F.videoId||"";this.U[J]=e;this.D[J]=m;p||(this.C[e]={videoId:m,kt:!1,Cd:K,headers:[]});this.C[e].headers.push(F);this.Wo.j$(m,e,K,{V5:J,Uv:!!b,eK:I!=null?I:-1,Ev:w!=null?w:-1,startMs:M!=null?M:-1,durationMs:q!=null?q:-1,YI:a!=null?a:0,C4:u,timeRange:v})}; g.A.Vv=function(F,J){var b=F.getUint8(0);this.Wo.BF&&this.Wo.UQ("ombup","id."+(J?12:21)+";len."+F.getLength()+";hid."+b);if(F.getLength()!==1){F=F.split(1).eS;var I=this.U[b]||null,u=this.D[b]||"";I&&(this.QJ(this.C[I].Cd?"oafs_r":"ovfs_r"),this.queue.enqueue(u,b,I,F,J))}}; g.A.L1=function(F){var J=F.getUint8(0);this.Wo.BF&&this.Wo.UQ("ombup","id.22;len."+F.getLength()+";hid."+J);F=this.U[J]||null;var b=this.D[J]||"";if(F)if(this.S("html5_use_ump_request_slicer")){var I=this.queue;I.C.push({videoId:b,V5:J,formatId:F,isEncrypted:!1,e5:!0});I.U||SS(I)}else this.Wo.L1(b,J,F)}; g.A.Vh=function(F){this.Wo.Vh(F)}; g.A.rS=function(F,J){var b=this,I,u,w,M,q,v,a,e,K,p;return g.S(function(m){switch(m.C){case 1:b.Wo.rS();I=F.HS();if(!J){w=I;m.gD(2);break}return g.T(m,HH_(b.Wo,I,b.iv),3);case 3:w=m.U;case 2:u=w;if(!b.Wo.enableCompression){m.gD(4);break}q=(M=performance)==null?void 0:M.now();return g.T(m,Y74(u),5);case 5:u=m.U,b.Wo.UQ("decompression",{ds:"DecompressionStream"in window,rt:((v=performance)==null?NaN:v.now())-q});case 4:try{a=RW(u,LOz)}catch(y){return e=y instanceof Error?{name:y.name,message:y.message}: {},e.webcrypto=""+ +!!Ns(),e.enc=""+ +b.T,K=new E5("onesie.response.parse",e),m.return(Promise.reject(K))}Qw4(a);p=g.Ev(a.body);return m.return(p)}})}; g.A.Np=function(F){this.S("html5_consume_onesie_next_request_policy_for_sabr")&&(F=RW(F,ysk),this.Wo.Np(F))}; g.A.S2=function(F){F={ZC:CQ(new PA(F),1,fQ7)};this.Wo.S2(F)}; g.A.G$=function(F){this.Wo.G$(F)}; g.A.QJ=function(F){return this.Wo.QJ(F)}; g.A.S=function(F){return this.Wo.S(F)};g.z(nS,g.R);g.A=nS.prototype;g.A.f2=function(){return""}; g.A.nP=function(F){var J,b;return((b=(J=this.qk)==null?void 0:J.get(F))==null?void 0:b.nP())||[]}; g.A.Im=function(F,J){var b;return!((b=rC(this,J))==null||!b.Im(F))}; g.A.UY=function(F,J){var b;return((b=rC(this,J))==null?void 0:b.UY(F))||[]}; g.A.Mp=function(F,J){var b;return((b=rC(this,J))==null?void 0:b.Mp(F))||[]}; g.A.aC=function(F){this.state=F;this.notifySubscribers()}; g.A.Gz=function(){return!1}; g.A.DA=function(){return!1}; g.A.Xw=function(){}; g.A.G$=function(F){this.wD.G$(F)}; g.A.QJ=function(F){return this.wD.QJ(F)}; g.A.Q$=function(F,J,b,I){b||this.uC.Q$(I);return!1}; g.A.zk=function(F,J){this.cF.zk(F,J)}; g.A.qS=function(){this.G$("orfb");this.vH=!0;if(L$C(this)&&this.xhr){var F={rc:this.xhr.status,lb:this.xhr.HF(),rt:(1E3*Oa3(this.uC)).toFixed(),shost:g.Cu(this.IZ),trigger:"o1"};this.UQ("pathprobe",dk(F))}}; g.A.rS=function(){this.G$("opr_r");this.DJ=!0}; g.A.j$=function(F,J,b,I){if(this.qk){if(!this.qk.has(F)){var u=new zL(this);this.qk.set(F,u);g.k(this,u)}var w;(w=this.qk.get(F))==null||w.j$(J,b,I);tf(this);b||(this.fF=I.Ev,this.Td=I.startMs)}else tf(this)}; g.A.Bc=function(F){this.O9=F;F.wh!=null&&this.wD.dM(F.wh)}; g.A.Qv=function(F){this.Tk=F}; g.A.Np=function(F){F.videoId&&this.wV.set(F.videoId,F)}; g.A.hT=function(){if(this.qk)for(var F=g.N(this.qk.keys()),J=F.next();!J.done;J=F.next()){var b=void 0;(b=this.qk.get(J.value))==null||b.EX()}}; g.A.IV=function(F){this.LK=F}; g.A.S2=function(F){if(F==null?0:F.ZC)if(F=F.ZC.Dk){F=g.N(F);for(var J=F.next();!J.done;J=F.next())J=J.value,J.videoId&&this.l6.set(J.videoId,J)}}; g.A.UQ=function(F,J,b){this.wD.UQ(F,J,b===void 0?!1:b)}; g.A.L1=function(F,J,b){var I;(I=rC(this,F))==null||I.L1(J,b)}; g.A.Vh=function(F){this.tf.set(F.videoId,F)}; g.A.fetch=function(){var F=this,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D;return g.S(function(t){switch(t.C){case 1:F.logger.debug("Onesie fetch started.");F.Yu?F.Sd.start():F.PJ.start();F.G$("or_i");J=F.rD.experiments.pW("html5_onesie_verbose_timing");b={};I=(0,g.jR)();u=function(n){J&&(b[n]=(0,g.jR)()-I)}; u("loc_s");if(w=OHm(F.videoData,F.h8)){t.gD(2);break}u("loc_async");M=g.eB(F.rD.experiments,"html5_onesie_redirector_timeout_ms");return g.T(t,o2z(F.videoData,F.h8,M),3);case 3:w=t.U;case 2:if(!w)return F.logger.info("Onesie URL creation failed."),q={url:"0"},v=new E5("onesie.unavailable.hotconfig",q),F.R6(v),t.return(F.O1);F.ZS=zK(w);u("loc_e");a=g.LH(F.rD,g.ks(F.videoData));e=!!a.C;if(!e){K=a.getValue();t.gD(4);break}return g.T(t,a.C,5);case 5:K=t.U;case 4:p=K;F.S("html5_log_onesie_empty_oauth")&& !p&&F.UQ("no_token",{async:e});u("oauth");m=cP_(F.playerRequest,F.rD,F.videoData,p,uh(F.ZS));g.lk(t,6);if(!ZH_(F,m)){u("or_s_sync");F.PG=xnz(m,F.tI,F.rD,F.wD,F.IA.onesieUstreamerConfig,(y=F.videoData.NS)==null?void 0:y.v5);t.gD(8);break}u("or_s_async");return g.T(t,t87(m,F.tI,F.rD,F.wD,F.IA.onesieUstreamerConfig,(f=F.videoData.NS)==null?void 0:f.v5),9);case 9:F.PG=t.U;case 8:g.Wa(t,7);break;case 6:return d=g.dY(t),F.logger.info("Failed to create OnesieRequestProto."),F.R6(d),t.return(F.O1);case 7:return u("or_e"), J&&F.UQ("oreqvt",b),F.enableCompression=F.PG.bz.RK,F.G$("osor"),G=QZ7(),P=g.ux(F.PG,Ynv),r={method:"POST",body:P,headers:{"Content-Type":"text/plain",Referer:location.origin}},Q=F.S("html5_onesie_media_capabilities"),h1k(w,F.videoData,Jia(F),Q),F.logger.debug("Starting Onesie network request."),F.BF&&F.UQ("ombrs","1"),D=F.wD.J().schedule,F.uC=new oa(F,{Zy:D,QY:F.BF,r_:function(n,uk){F.wD.h7(n,uk)}, Kj:!0}),w.set("rn",""+F.uC.requestNumber),F.IZ=w.tF(),Oe(F.uC,F.IZ),F.G$("or_p"),F.xhr=Zm(new aA(w),G,F.uC,UD,r),F.nK.start(),t.return(F.O1)}})}; g.A.AO=function(){return 2}; g.A.mx=function(){this.G$("orh_r")}; g.A.Hl=function(){!this.vH&&this.xhr.HF()&&this.qS();if(this.jG&&!this.Yu){var F;(F=this.GN)==null||F.start()}this.FC()}; g.A.A6=function(F){F=F===void 0?!1:F;this.logger.debug("onXhrDone");this.FC();if(!(this.iR()||this.state>=4)){var J=xb(this),b=this.xhr;J.rc=b.status;F&&(J.ab=!0);if(b.Aw()){var I="onesie.net";J.msg=b.Aw()}else b.status>=400?I="onesie.net.badstatus":b.q5()?this.DJ||(I="onesie.response.noplayerresponse"):I=b.status===204?"onesie.net.nocontent":"onesie.net.connect";I?this.R6(new E5(I,J)):(this.G$("or_fs"),this.uC.b5((0,g.jR)(),b.HF(),0),this.aC(4),this.BF&&this.UQ("rqs",J));this.BF&&this.UQ("ombre", "ok."+ +!I);this.y_=!1;tf(this);U_(this.cF);if(!this.Yu){this.PJ.stop();var u;(u=this.GN)==null||u.stop()}var w;if(F=(w=this.h8)==null?void 0:Pbz(w))for(w=0;w<F.length;w++)this.UQ("pathprobe",F[w])}}; g.A.XD=function(){if(this.playerResponse&&this.xhr&&this.qk)for(var F=g.N(this.qk.entries()),J=F.next();!J.done;J=F.next())if(J=g.N(J.value),J.next(),J.next().value.U){this.xhr.abort();this.A6(!0);break}}; g.A.J=function(){return this.rD}; g.A.S=function(F){return this.rD.S(F)}; g.A.OkE=function(){if(L$C(this)&&this.h8&&(!this.vH||this.S("html5_onesie_probe_ec_hosts"))){var F=this.h8;if(F.rD.experiments.pW("html5_onesie_probe_ec_hosts")){var J,b=(J=F.C.get(3))==null?void 0:zK(J.location);b&&Pv(F,b,"osc",this);var I;(b=(I=F.C.get(4))==null?void 0:zK(I.location))&&Pv(F,b,"ocy",this)}else{var u;(I=(u=F.C.get(1))==null?void 0:zK(u.location))&&Pv(F,I,"o2",this);(I=(b=F.C.get(2))==null?void 0:zK(b.location))&&Pv(F,I,"o3",this)}}}; g.A.Fo=function(){if(!this.iR()&&!this.isComplete()){if(this.jG){if((0,g.jR)()-this.uC.V>1E3){var F;(F=this.uC)==null||F.oo((0,g.jR)());F=xb(this);if(this.rD.hJ()&&this.xhr instanceof nc){var J=this.xhr;F.xrs=J.xhr.readyState;F.xpb=J.C.getLength();F.xdc=J.Z}this.R6(new E5("net.timeout",F))}}else(0,g.jR)()-this.uC.C>1E4&&((J=this.uC)==null||J.oo((0,g.jR)()),this.HZ());this.isComplete()||this.Sd.start()}}; g.A.HZ=function(){this.logger.info("Onesie request timed out");this.y_=!1;if(!tf(this)){var F=xb(this);F.timeout="1";this.R6(new E5("onesie.request",F))}}; g.A.R6=function(F){var J=this;F=Gj(F);this.jG?this.wD.je(F):(this.O1.reject(F),this.jG=!0);U_(this.cF);this.Yu||this.PJ.stop();this.G$("or_fe");var b,I;(b=this.h8)==null||(I=Pbz(b))==null||I.forEach(function(u){J.UQ("pathprobe",u)}); this.aC(5);this.dispose()}; g.A.isComplete=function(){return this.state>=3}; g.A.wi=function(){return this.state===4}; g.A.zR=function(F){var J,b;return this.isComplete()||!!((J=this.qk)==null?0:(b=J.get(F))==null?0:b.C)}; g.A.Cs=function(){return!1}; g.A.J4=function(){return this.state===5}; g.A.notifySubscribers=function(F){for(var J=0;J<this.Sf.length;J++)F&&this.Sf[J].B1()!==F||JX(this.Sf[J],this)}; g.A.n2=function(){var F,J;return((F=this.PG)==null?void 0:(J=F.yc)==null?void 0:J.qs)||0}; g.A.X_=function(){this.playerResponse="";var F;(F=this.xhr)==null||F.abort();U_(this.cF);this.XC.dispose();var J;(J=this.GN)==null||J.dispose();this.aC(-1);this.Sf=[];g.R.prototype.X_.call(this)}; g.A.FC=function(){try{var F=this.xhr;F.HF()>102400&&!this.mC&&(this.G$("or100k"),this.mC=!0);if(F.vx()){var J=F.YU(),b=J.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); this.BF&&this.UQ("ombrss","len."+b);this.XC.feed(J)}if(this.qk)for(var I=g.N(this.qk.keys()),u=I.next();!u.done;u=I.next()){var w=u.value;F=void 0;(F=this.qk.get(w))==null||F.EX();this.notifySubscribers(w)}}catch(M){this.R6(M)}}; g.A.hd=function(){return this.uC.requestNumber}; g.A.eJ=function(F){return this.tf.get(F)}; g.A.bO=function(){return{fF:this.fF,Td:this.Td,isDecorated:!1}};g.z(IRa,g.R);g.A=IRa.prototype;g.A.J3=function(F,J){this.eE=void 0;dFz(this);lRG(this,F,J)}; g.A.Tq=function(F){if(this.C.length===0)return!1;var J=this.C[0];return J instanceof nS?F===this.Zv.getCurrentTime()*1E3:!(J instanceof jI&&g2z(J.info))&&Math.abs(J.n2()-F)<50}; g.A.Np=function(F){this.U=F;this.eE=(0,g.jR)()+(F.backoffTimeMs||0)}; g.A.ej=function(F,J){if(F.action===void 0){var b=this.wD.bK();b!==void 0&&this.Zv.l4(b)}else if(F.action!==0||!this.zj)switch(F.action===0&&this.policy.cO&&(F.action=2),b={},b.reason=F.cej,b.action=F.action,b.rn=J,F.action){case 1:this.policy.D&&this.Z&&this.Z.Ty(void 0,void 0,b);break;case 0:this.zj=!0;this.videoData.vV()&&this.policy.D&&this.Z&&this.Z.Ty(void 0,void 0,b,!1);this.Zv.Xh(b);break;case 2:this.Zv.handleError("sabr.config",b,1);break;case 5:kx7(this.wD,!0);break;case 6:kx7(this.wD,!1); break;case 3:this.policy.NW&&((F=this.lR.Y)!=null&&(F.Y=!0),this.Zv.handleError("sabr.hostfallback",b))}}; g.A.b3=function(F,J,b,I){if(this.policy.U){this.Zv.UQ("ssap",{rn:I,v:J,tl:jHJ(F)});var u=this.Zv.IH();F={Hn:F,context:b,version:J};fRC(this,b);u?WZv(this,u,F):(this.Zv.UQ("ssap",{cacheclips:1,rn:I,v:J}),this.Y=F)}}; g.A.eM=function(F){var J=this.policy.gW;this.Zv.UQ("ssap",{onsbrctxt:F.type,dflt:F.sendByDefault,enable:J?1:0});J&&(fRC(this,F),this.wD.eM(F))}; g.A.Ue=function(){}; g.A.IV=function(F){if(F.Lq!==void 0&&F.Ns){var J=F.Lq/F.Ns;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.eE||this.policy.In||this.policy.Ga)this.Zv.wq.U=!1;this.Zv.C1(J,1);if(this.wD.getCurrentTime()!==J){var b={Ky:"sabr_seek",g$:!0,Ki:!0};F.seekSource&&(b.seekSource=F.seekSource);Q5(this.Zv,J+.1,b)}}}; g.A.onSnackbarMessage=function(F){this.wD.publish("onSnackbarMessage",F)}; g.A.Bc=function(F){F.rL&&F.dl&&NQ(this.lR,F.rL,F.dl);this.policy.cE&&(F.N9&&F.Ib&&(this.lR.rf=F.N9/F.Ib),F.Ks&&F.tb&&(this.lR.G8=F.Ks/F.tb));F.wh!=null&&this.wD.dM(F.wh);this.policy.fN&&F.SQ&&(F=((0,g.jR)()-F.SQ)/1E3,this.Zv.zS.Zj(1,F))}; g.A.n3=function(F){this.Zv.n3(F)}; g.A.TM=function(F,J,b){this.policy.T&&this.Zv.UQ("sabrctxtplc",{start:F?F.join("_"):"",stop:J?J.join("_"):"",discard:b?b.join("_"):""});if(F){F=g.N(F);for(var I=F.next();!I.done;I=F.next())this.hD.add(I.value)}if(J)for(J=g.N(J),F=J.next();!F.done;F=J.next())F=F.value,this.hD.has(F)&&this.hD.delete(F);if(b)for(b=g.N(b),J=b.next();!J.done;J=b.next())J=J.value,this.videoData.sabrContextUpdates.has(J)&&(this.videoData.sabrContextUpdates.delete(J),J===3&&(this.videoData.ul=""))}; g.A.Xu=function(){}; g.A.G2=function(F){this.W=F}; g.A.T2=function(F){this.qf=F}; g.A.Zn=function(F,J){Ro(this.policy,F,4,J)}; g.A.S2=function(F){if(F==null?0:F.ZC)if(F=F.ZC.Dk){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.formatId){var b=this.lR.T.get(lU(J.formatId));b&&b.info&&(b.info.debugInfo=J.debugInfo)}}}; g.A.CU=function(F){(F=F==null?void 0:F.reloadPlaybackParams)&&this.wD.publish("reloadplayer",F)}; g.A.B1=function(){return this.wD.B1()||""}; g.A.Yy=function(){var F=j3(this.audioTrack,!0)*1E3,J=j3(this.videoTrack,!0)*1E3;return Math.min(F,J)}; g.A.Ck=function(F,J){this.Zv.UQ(F,J)}; g.A.U6=function(F){ciz(this.Zv,GCC(this.Jz,F))}; g.A.X_=function(){g.R.prototype.X_.call(this);this.U=void 0;lRG(this,!0,"i");this.C=[]};Gt4.prototype.Va=function(F,J){if(this.Z)return ri_(this,J);if(J=Ra(F)){var b=J.U;b&&b.T&&b.C&&(F=F.T.length?F.T[0]:null)&&F.state>=2&&!F.J4()&&F.info.Qi===0&&(this.Z=F,this.V=b,this.U=J.info,this.W=this.startTimeSecs=Date.now()/1E3,this.D=this.U.startTime)}return NaN}; Gt4.prototype.clear=function(){this.U=this.V=this.Z=null;this.C=this.D=this.W=this.startTimeSecs=NaN;this.T=!1};g.z(g.wr,g.R);g.A=g.wr.prototype;g.A.initialize=function(F,J,b){this.logger.debug(function(){return"Initialized, t="+F}); F=F||0;this.policy.C||(J=PUJ(this.C),n$v(this.wD,new Cv(J.video,J.reason)),this.wD.TV(new Cv(J.audio,J.reason)));this.lR.isManifestless&&HW3(this.D);this.V&&PrJ(this.V,this.videoTrack.C);J=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var I=!this.lR.isManifestless;this.policy.Cu&&(I=I||this.lR.SF);this.policy.WN||(this.currentTime=I?F:J);this.policy.eE&&this.seek(this.getCurrentTime(),{}).rX(function(){}); if(this.policy.C){var u;((u=this.Tj)==null?0:bC4(u,this.B1()||""))&&Cr_(this)&&$FC(this,this.videoTrack)&&$FC(this,this.audioTrack)&&(E$v(this.T,this.Tj),this.policy.W&&Y9o(this))}else this.eE&&(XCo(this,this.videoTrack),XCo(this,this.audioTrack),kKk(this.eE),delete this.eE);b?(this.policy.ir?(this.Om=b,AX(this,b)):AX(this,!1),g.Z_(this.P_)):(b=this.getCurrentTime()===0,hu(this.D,this.videoTrack,this.videoTrack.C,b),hu(this.D,this.audioTrack,this.audioTrack.C,b),this.policy.C&&MEm(this.T,!0),this.policy.eE|| this.seek(this.getCurrentTime(),{}).rX(function(){}),this.timing.tick("gv")); (this.lR.De||this.lR.VN||this.lR.qf||this.lR.NW||this.lR.MI)&&this.wD.V_(this.lR)}; g.A.resume=function(){if(this.isSuspended||this.Pl){this.logger.debug("Resumed.");this.M2=this.Pl=this.isSuspended=!1;try{this.Va()}catch(F){g.Td(F)}}}; g.A.YM=function(){return!this.policy.Om}; g.A.Ul=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;this.logger.debug("detaching media source");ktz(this);this.wD.wZ()&&(this.W=NaN);F?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.fW&&this.UQ("loader",{setsmb:1}),this.policy.kQ=!0,this.uq()):(this.policy.ir?AX(this,this.Om):AX(this,!1),J||this.uq())}; g.A.setAudioTrack=function(F,J,b){b=b===void 0?!1:b;if(!this.iR()){var I=!isNaN(J);b&&I&&(this.audioTrack.Tj=Date.now(),this.policy.zU&&(this.oI=!0));if(this.policy.C){var u=this.U.Id(F.id,I);this.logger.debug(function(){return"Logging new audio format: "+u.C.info.id}); this.wD.TV(u)}else{var w=jAo(this.C,F.id,I);this.logger.debug(function(){return"Logging new audio format: "+w.audio.info.id}); this.wD.TV(new Cv(w.audio,w.reason))}if(I&&(b=this.audioTrack.C.index.Ea(J),this.UQ("setAudio",{id:F.id,cmt:J,sq:b}),b>=0)){this.policy.C&&(this.U.Y=!0,this.J3(!0,"mosaic"));G1(this.audioTrack,b,NaN,NaN);!this.policy.Vk&&this.lR.isLive&&zF(this.lR,b,!1);return}this.wD.M$()}}; g.A.setPlaybackRate=function(F){F!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(F)}; g.A.Tr=function(F){var J=this.T.W;this.T.G2(F);this.UQ("scfidc",{curr:lU(J),"new":lU(F)});F&&lU(F)!==lU(J)&&(this.J3(!1,"caption change"),this.Va())}; g.A.Uu=function(F){this.T.T2(F)}; g.A.m0=function(F){var J=F.C.info.Cd();this.logger.debug(function(){return"New "+(J?"audio":"video")+" format from SABR: "+b1(F.C.info)}); J?this.wD.TV(F):n$v(this.wD,F)}; g.A.U6=function(F){P6(F.aI[F.aI.length-1])&&ciz(this,GCC(this.C,F.aI[0].C))}; g.A.f1=function(){return this.wD.f1()}; g.A.To=function(){return this.wD.To()}; g.A.n3=function(F){this.wD.J().hJ()&&this.UQ("sps",{status:F.WQ||""});if(F.WQ===1)this.wD.videoData.pT=0;else if(F.WQ===2||F.WQ===3){var J=!1;if(F.WQ===3){J=this.wD.NU();var b;this.If=(b=F.wg_)!=null?b:Infinity;this.wD.videoData.pT=J+1;(J=n7(this))&&this.AI(!0)}this.wD.Y3(!0,J)}}; g.A.f$=function(){return this.wD.f$()}; g.A.Y4=function(){return this.wD.Y4()}; g.A.L9=function(F){this.wD.L9(F)}; g.A.Fp_=function(){var F,J=(F=this.wD.Qa())==null?void 0:F.getCurrentTime();J?this.wD.UQ("rms",{cta:J}):g.Z_(this.NW)}; g.A.Va=function(){hCk(this);if(this.HN&&kn(this.HN)&&!this.HN.x0()&&(!this.policy.WN||isFinite(this.getCurrentTime()))){var F=i2(this.videoTrack);F=this.policy.LX&&F&&F.aQ();this.lR.isManifestless&&this.lR.Z&&gd(this.lR)?(this.W=gd(this.lR),this.HN.GI(this.W)):lI(this.lR)&&!F?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.HN.GI(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.HN.GI(this.W)):this.HN.isView||(F=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==F)&&F>0&&(this.HN.GI(F),this.W=F))}if(!this.iR())if(pW(this.lR)&&this.lR.J4()){var J=this.lR;this.handleError("manifest.net.retryexhausted",J.oI?{rc:J.Jw}:{rc:J.Jw.toString()},1)}else if(this.policy.C)a:{try{iCY(this.T);this.lR.isManifestless&&this.policy.W&&Cc(this.wq);if(DFk(this)&&this.HN&&!hG(this.HN)&&this.videoTrack.qf&&this.audioTrack.qf){this.UQ("ssap",{delaysb:1,v:this.videoTrack.C.info.id,vf:this.videoTrack.C.info.YQ,a:this.audioTrack.C.info.id, af:this.audioTrack.C.info.YQ});var b=this.HN,I=this.videoTrack.C,u=this.audioTrack.C;!hG(b)&&u&&I&&(lI_(b,I.info,u.info,this.policy.GU),OCv(this,b))}var w;((w=this.HN)==null?0:hG(w))&&this.jc();this.policy.C||MS(this);MEm(this.T)}catch(q){g.rQ(q);J=q;if(J.message.includes("changeType")){this.UQ("ssap",{exp:J.name,msg:J.message,s:J.stack});break a}this.handleError("fmt.unplayable",{exp:J.name,msg:J.message,s:J.stack},1)}pEG(this);g.Z_(this.KW)}else if(!this.lR.U||!Bd3(this.videoTrack)&&!Bd3(this.audioTrack)|| (this.videoTrack.D||this.audioTrack.D)&&this.policy.xm?b=!1:(this.uq(),this.wD.seekTo(Infinity,{Ky:"checkLoaderTracksSync",C1:!0}),b=!0),!b){hCk(this);this.lR.isManifestless&&(Tdz(this.videoTrack),Tdz(this.audioTrack),Cc(this.wq),(b=Ra(this.videoTrack))&&b.U&&(b=b.U.T&&!this.policy.E2,this.UQ(b===this.policy.Y.lq?"strm":"strmbug",{strm:b,sfmp4:this.policy.Y.lq,dfs:this.policy.E2},!0)));if(this.HN)this.jc();else if(this.policy.Z){var M;b=!1;if(this.policy.xd)for(I=g.N([this.videoTrack,this.audioTrack]), u=I.next();!u.done;u=I.next()){w=u.value;for(u=Ra(w);u&&w.q$()!==i2(w);u=Ra(w))w.IE(u);b=b||!!u}else(J=Ra(this.videoTrack))&&this.videoTrack.IE(J),(M=Ra(this.audioTrack))&&this.audioTrack.IE(M);W0(this.videoTrack)&&W0(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(J||M||b)&&FJ(this)}MS(this);hu(this.D,this.videoTrack,this.videoTrack.C,!1);hu(this.D,this.audioTrack,this.audioTrack.C,!1);this.policy.Nc||xFk(this,this.videoTrack,this.audioTrack);cg7(this.D,this.videoTrack, this.audioTrack);cg7(this.D,this.audioTrack,this.videoTrack);pEG(this);this.V&&(J=this.V,J.Z?(M=J.W+J.policy.GW,J.T||(M=Math.min(M,J.startTimeSecs+J.policy.DY)),J=Math.max(0,M*1E3-Date.now())):J=NaN,isNaN(J)||g.Z_(this.T1,J));g.Z_(this.KW)}}; g.A.Xh=function(F){this.wD.Xh(F)}; g.A.jc=function(){var F=this;if(this.HN){var J=this.HN.C,b=this.HN.U;zLa(this,this.audioTrack);zLa(this,this.videoTrack);var I=ZCm(this);if(I){if(this.policy.df){if(!J.yO()){var u=Ra(this.audioTrack);if(u){if(!um(this,this.audioTrack,J,u.info))return;F74(this,this.audioTrack,J,u)}}if(!b.yO()&&(u=Ra(this.videoTrack))){if(!um(this,this.videoTrack,b,u.info))return;F74(this,this.videoTrack,b,u)}}this.Ik||(this.Ik=(0,g.jR)(),this.logger.debug(function(){return"Appends pause start "+F.Ik+" reason "+I}), this.policy.T&&this.UQ("apdps",{r:I}))}else if(this.Ik&&(tEk(this,this.Ik),this.Ik=0),HCC(this),u=!1,this.policy.U&&Ya(this.videoTrack)||!wEv(this,this.videoTrack,b)||(u=!0,bo7(this.timing),Mov(this.timing)),this.HN&&!this.HN.Ph()&&(this.policy.U&&Ya(this.audioTrack)||!wEv(this,this.audioTrack,J)||(u=!0,IcJ(this.timing),AMk(this.timing)),!this.iR()&&this.HN)){if(!this.policy.Om&&W0(this.videoTrack)&&W0(this.audioTrack)&&kn(this.HN)&&!this.HN.x0()){b=!1; b=i2(this.audioTrack);if(this.policy.U){var w;J=(w=this.II)==null?void 0:Pl(w,b.hF*1E3);b=!(!J||J.clipId!==b.clipId);this.UQ("ssap",{eos:b})}else w=b.C,b=w===this.lR.C[w.info.id];b&&(this.logger.debug("Setting EOS"),fI3(this.HN),X57(this.schedule))}u&&!this.HN.isAsync()&&FJ(this)}}}; g.A.Jk=function(F){var J,b=F===((J=this.HN)==null?void 0:J.C)?this.audioTrack:this.videoTrack,I;(I=b.kQ)==null||I.stop();var u;if((u=Ra(b))==null?0:u.isLocked){if(this.wD.J().hJ()){var w;this.UQ("eosl",{ounlock:(w=Ra(b))==null?void 0:w.info.uX()})}var M;eL7(this,F===((M=this.HN)==null?void 0:M.C))}var q;if(this.policy.zU&&F===((q=this.HN)==null?void 0:q.C)&&this.nW){J=this.nW-this.getCurrentTime();var v;this.wD.UQ("asl",{l:J,xtag:(v=i2(this.audioTrack))==null?void 0:v.C.info.C});this.oI=!1;this.nW= 0}F.yB()&&F.N0().length===0&&(F.Yk(),this.HN&&!this.HN.yB()&&(this.wD.J().hJ()&&this.wD.UQ("rms",{ld:"seek"}),this.HN.W=performance.now(),this.wD.dU(),this.wD.J().hJ()&&g.Z_(this.NW)));var a;(a=b.N)!=null&&t9(a,0);this.policy.bR&&this.policy.uH&&this.HN&&(b=F.Vo())&&b.aQ()&&!Mt(F.N0(),Math.min(b.hF+qS,b.H1))&&this.UQ("sbunb",{st:b.hF,et:b.H1});this.policy.T1?UE(this):this.Va()}; g.A.YmI=function(F){if(this.HN){var J=i2(F===this.HN.C?this.audioTrack:this.videoTrack);if(F=F.ZF())for(var b=0;b<F.length;b++)this.UQ("appendedbuffer",{i:b,b:g.zw(F[b].subarray(0,4096),3)});F=void 0;J&&(F=rG(J),this.policy.U&&this.II&&this.II.h4()&&(F.ccid=this.II.h4()));this.handleError("fmt.unplayable",F,1)}}; g.A.vc=function(F){this.wD.vc(F)}; g.A.Io=function(F,J,b){if(this.lR.isManifestless){F=!!F.info.video;mQo(this,J,b,F,!0);var I;if(((I=this.wD.getVideoData())==null?0:I.enableServerStitchedDai)&&J.C){a:{I=this.lR;var u=J.Mf;for(w in I.C)if(!Zf(I.C[w].info)&&I.C[w].info.v1()===!F){b=void 0;var w=((b=I.C[w].index.QB(u))==null?void 0:b.C)||0;break a}w=0}w!==0&&w!==J.C&&this.handleError("ssdai.avsync",{sq:J.Mf,a:F?w:J.C,v:F?J.C:w},0)}}}; g.A.K9=function(F,J,b,I){F.info.video&&this.Z.K9(J,b,I)}; g.A.c8=function(F){this.C.c8(F)}; g.A.jP=bk(19);g.A.pQ=function(F){this.II=F;var J;(J=this.audioTrack.Y)!=null&&(J.xl=F);(J=this.videoTrack.Y)!=null&&(J.xl=F);J=this.T;J.Y&&(J.Zv.UQ("ssap",{addcacheclips:1,v:J.Y.version,tl:jHJ(J.Y.Hn)}),WZv(J,F,J.Y),J.Y=void 0)}; g.A.IH=function(){return this.II}; g.A.RD=function(){return this.videoTrack.V||this.audioTrack.V}; g.A.seek=function(F,J){if(this.iR())return i5();if(this.RD())return i5("seeking to head");if(this.policy.eE&&!isFinite(F))return Sro(this.wq),g.yX(Infinity);hCk(this);this.JO=(0,g.jR)();this.policy.C||MS(this,F);this.HN&&this.HN.C&&this.HN.U&&!this.wD.getVideoData().ip&&(this.HN.C.isLocked()||this.HN.U.isLocked())&&this.wD.M$({reattachOnLockedBuffer:1,vsb:""+this.HN.U.isLocked(),asb:""+this.HN.C.isLocked()});var b=this.getCurrentTime(),I=this.wq.seek(F,J);this.policy.WN||(this.currentTime=I);Yi(this.Z, F,b,this.policy.Op&&!J.g$);FJ(this);return g.yX(I)}; g.A.Tq=function(F){return this.policy.C&&this.T.Tq(F)}; g.A.J3=function(F,J){this.T.J3(F,J)}; g.A.getCurrentTime=function(){if(this.policy.WN){var F=this.Xq()||0;return this.wD.getCurrentTime()-F}return this.currentTime}; g.A.yw=function(){return this.audioTrack.C.info}; g.A.cQ=function(){return this.videoTrack.C.info}; g.A.M4=function(){return this.audioTrack.C.info.YQ}; g.A.E5=function(){return this.videoTrack.C.info.YQ}; g.A.X_=function(){try{this.Ul(),Sd(this.audioTrack),Sd(this.videoTrack),S3(this.audioTrack),S3(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.R.prototype.X_.call(this)}catch(F){g.Td(F)}}; g.A.handleError=function(F,J,b){b=b===void 0?0:b;var I=jg(b);F==="fmt.unplayable"&&this.lR.isLive&&(this.policy.df=!1,iI(this.lR));J=new E5(F,J,b);g.n3(this);dk(J.details);this.wD.handleError(J);F!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&F!=="fmt.unparseable"&&I&&this.dispose()}; g.A.Cy=function(){var F=i2(this.audioTrack),J=i2(this.videoTrack);F={lct:this.getCurrentTime().toFixed(3),lsk:this.wq.isSeeking(),lmf:this.C.C.isLocked(),lbw:yi(this.schedule).toFixed(3),lhd:gN(this.schedule).toFixed(3),lst:((this.schedule.V.X3()||0)*1E9).toFixed(3),laa:F?F.uX():"",lva:J?J.uX():"",lar:this.audioTrack.U?this.audioTrack.U.uX():"",lvr:this.videoTrack.U?this.videoTrack.U.uX():"",laq:""+d9(this.audioTrack),lvq:""+d9(this.videoTrack)};this.HN&&!this.HN.Ph()&&this.HN.C&&this.HN.U&&(F.lab= u1(this.HN.C.N0()),F.lvb=u1(this.HN.U.N0()));this.Ik&&(F.lapt=((0,g.jR)()-this.Ik).toFixed(0),F.lapr=ZCm(this));this.WN&&(F.lapmabht=((0,g.jR)()-this.WN).toFixed(0),F.lapmabh=Y7(this,this.audioTrack).toFixed(0));this.qf&&(F.lapmvbht=((0,g.jR)()-this.qf).toFixed(0),F.lapmvbh=Y7(this,this.videoTrack).toFixed(0));this.fW&&(F.lapsdai=((0,g.jR)()-this.fW).toFixed(0));return F}; g.A.uq=function(){try{this.policy.C&&this.T.J3(!1,"pending"),this.audioTrack.uq(),this.videoTrack.uq()}catch(F){g.Td(F)}this.policy.Z=""}; g.A.tp=function(){return Wl(this.N)}; g.A.UQ=function(F,J,b){this.wD.UQ(F,J,b===void 0?!1:b)}; g.A.B1=function(){return this.wD.B1()}; g.A.C1=function(F,J){F/=J;isNaN(this.timestampOffset)&&NSv(this,F-Math.min(F,this.policy.zP));return(F-this.timestampOffset)*J}; g.A.Xq=function(){return this.timestampOffset}; g.A.isSeeking=function(){return this.wq.isSeeking()}; g.A.CB=function(){this.Z.CB()}; g.A.KL=function(F,J,b){J=J===void 0?!1:J;b=b===void 0?{}:b;this.policy.C?this.U.KL(F,J,b):this.C.KL(F,J,b)}; g.A.nU=function(F,J){if(!this.Y)return!1;var b=this.videoTrack.C.index.Ea(F);return this.Y.nU(F,J,b)}; g.A.l1=function(F,J){if(this.Y&&this.Z.l1(F,this.Y))return NSv(this,this.timestampOffset-J),FJ(this),this.policy.D&&(iI(this.lR),S3(this.audioTrack),S3(this.videoTrack),this.uq()),!0;J=this.videoTrack.C.index.Ea(F);this.handleError("ad.skipfailed",{dec:!!this.Y,t:F.toFixed(3),sq:J});return!1}; g.A.getManifest=function(){return this.lR}; g.A.isOffline=function(){return!!this.wD.getVideoData().cotn}; g.A.h7=function(F,J){this.wD.h7(F,J)}; g.A.CI=function(F){if(this.policy.lJ)this.policy.C&&this.T.J3(!0,"utc"),this.Va();else{var J=this.wD.getVideoData().vD;if(J){var b=this.D;b.j6=F;b.vD=J;tu(this)}}}; g.A.l4=function(F){this.videoTrack.V=!1;this.audioTrack.V=!1;this.wq.U=!1;this.wD.l4(F)}; g.A.AV=function(F){this.wq.AV(F-this.Xq())}; g.A.hP=function(){this.wD.hP()}; g.A.AI=function(F){F!==this.policy.MJ&&((this.policy.MJ=F)||this.Va())}; g.A.KU=function(F,J){var b=this.audioTrack.dw,I=this.videoTrack.dw;b&&I&&(b.remove(F,J),I.remove(F,J))}; g.A.M$=function(F){this.wD.M$(F)}; g.A.zV=function(F){this.wD.zV(F)}; g.A.NU=function(){return this.wD.NU()};g.A=g.vg.prototype;g.A.R9=function(F,J,b,I,u,w){return this.xl.R9(F,J,b,I,u,w)}; g.A.Rz=function(F,J,b,I,u,w){return this.xl.Rz(F,J,b,I,u,w)}; g.A.RN=function(F){return this.xl.RN(F)}; g.A.O3=function(F){this.xl.O3(F)}; g.A.Ty=function(F,J,b,I){return this.xl.Ty(F,J,b,I)}; g.A.CB=function(){this.xl.CB()}; g.A.nU=function(F,J,b){return this.xl.nU(F,J,b)}; g.A.rO=function(F,J){this.xl.rO(F,J)}; g.A.yb=function(){this.xl.yb()}; g.A.dG=bk(48);g.A.Vz=function(F,J,b){this.xl.Vz(F,J,b)}; g.A.M6=bk(51);g.A.Za=function(F,J,b,I,u,w,M,q,v){this.xl.Za(F,J,b,I,u,w,M,q,v)}; g.A.iD=function(F){this.xl.iD(F)}; g.A.F0=function(F){return this.xl.F0(F)}; g.A.GA=function(F){return this.xl.GA(F)};g.z(am,g.uA);g.z(eA,am);eA.prototype.W=function(F,J){if(F&&J){var b=Number(hz(F,"cpi"))*1+1;isNaN(b)||b<=0||b<this.T?(this.Z.stop(),this.U.stop(),this.T=-1,this.C={}):(b>this.T&&(this.T=b,g.Vj(this.C)||(this.C={},this.Z.stop(),this.U.stop())),this.C[J]=F,g.Z_(this.U))}}; eA.prototype.D=function(){for(var F=g.N(Object.keys(this.C)),J=F.next();!J.done;J=F.next()){var b=J.value;J=this.publish;for(var I=this.T,u=this.C[b].match(YV),w=[],M=g.N(u[6].split("&")),q=M.next();!q.done;q=M.next())q=q.value,q.indexOf("cpi=")===0?w.push("cpi="+I.toString()):q.indexOf("ek=")===0?w.push("ek="+g.x_(b)):w.push(q);u[6]="?"+w.join("&");b="skd://"+u.slice(2).join("");u=b.length*2;I=new Uint8Array(u+4);I[0]=u%256;I[1]=(u-I[0])/256;for(u=0;u<b.length;++u)I[u*2+4]=b.charCodeAt(u);J.call(this, "rotated_need_key_info_ready",new u2(I,"fairplay",!0))}this.C={}}; eA.prototype.X_=function(){this.C={};am.prototype.X_.call(this)};g.z(Kj,am); Kj.prototype.D=function(F){var J;a:{if((J=F.cryptoPeriodIndex)&&this.C.length>0)for(var b=g.N(this.C),I=b.next();!I.done;I=b.next())if(J===I.value.info.cryptoPeriodIndex){J=!0;break a}J=!1}if(!J){J=(0,g.jR)();a:{b=F.cryptoPeriodIndex;if(!isNaN(b)){I=g.N(this.T.values());for(var u=I.next();!u.done;u=I.next())if(Math.abs(u.value.cryptoPeriodIndex-b)<=1){b=!0;break a}}b=!1}b?(b=F.C,b=Math.max(0,Math.random()*((isNaN(b)?120:b)-30))*1E3):b=0;this.publish("log_qoe",{wvagt:"delay."+b,cpi:F.cryptoPeriodIndex,reqlen:this.C.length, ignore:this.Z});b<=0?dbo(this,F):this.Z||(this.C.push({time:J+b,info:F}),g.Z_(this.U,b))}}; Kj.prototype.X_=function(){this.C=[];am.prototype.X_.call(this)};var is={},PE3=(is.DRM_TRACK_TYPE_AUDIO="AUDIO",is.DRM_TRACK_TYPE_SD="SD",is.DRM_TRACK_TYPE_HD="HD",is.DRM_TRACK_TYPE_UHD1="UHD1",is);g.z(GeC,g.R);g.z(TSm,g.uA);g.A=TSm.prototype;g.A.mw=function(F){var J=this;this.iR()||F.size<=0||(F.forEach(function(b,I){var u=BG(J.U)?I:b;I=new Uint8Array(BG(J.U)?b:I);BG(J.U)&&xbz(I);b=g.zw(I,4);xbz(I);I=g.zw(I,4);J.C[b]?J.C[b].status=u:J.C[I]?J.C[I].status=u:J.C[b]={type:"",status:u}}),OYz(this,","),pj(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.A.error=function(F,J,b,I){this.iR()||(this.publish("licenseerror",F,J,b,I),F==="drm.provision"&&(F=(Date.now()-this.W)/1E3,this.W=NaN,this.publish("ctmp","provf",{et:F.toFixed(3)})));jg(J)&&this.dispose()}; g.A.shouldRetry=function(F,J){return!F&&this.requestNumber===J.requestNumber}; g.A.X_=function(){this.C={};g.uA.prototype.X_.call(this)}; g.A.Cy=function(){var F={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Gj,cryptoPeriodIndex:this.cryptoPeriodIndex};this.T&&(F.keyStatuses=this.C);return F}; g.A.getInfo=function(){var F=this.Z.join();if(gr(this)){var J=new Set,b;for(b in this.C)this.C[b].status!=="usable"&&J.add(this.C[b].type);F+="/UKS."+Array.from(J)}return F+="/"+this.cryptoPeriodIndex}; g.A.tF=function(){return this.url};g.z(mQ,g.R);g.A=mQ.prototype;g.A.yq=function(F){if(this.D){var J=F.messageType||"license-request";this.D(new Uint8Array(F.message),J)}}; g.A.mw=function(){this.V&&this.V(this.C.keyStatuses)}; g.A.onClosed=function(){this.iR()||g.D$("xboxone")&&this.T&&this.T("closed")}; g.A.VK=function(F){this.D&&this.D(F.message,"license-request")}; g.A.HB=function(F){if(this.T){if(this.U){var J=this.U.error.code;F=this.U.error.systemCode}else J=F.errorCode,F=F.systemCode;this.T("t.prefixedKeyError;c."+J+";sc."+F,J,F)}}; g.A.SU=function(){this.W&&this.W()}; g.A.update=function(F){var J=this;if(this.C)return(hg.isActive()?hg.Zq("emeupd",function(){return J.C.update(F)}):this.C.update(F)).then(null,pa(function(b){tio(J,"t.update",b)})); this.U?this.U.update(F):this.element.addKey?this.element.addKey(this.Y.keySystem,F,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Y.keySystem,F,this.initData,this.sessionId);return r$()}; g.A.X_=function(){this.C&&(this.N?this.C.close().catch(g.rQ):this.C.close());this.element=null;g.R.prototype.X_.call(this)};g.z(yT,g.R);g.A=yT.prototype;g.A.sj=function(){var F=this;if(this.C.keySystemAccess)return(hg.isActive()?hg.Zq("emenew",function(){return F.C.keySystemAccess.createMediaKeys()}):this.C.keySystemAccess.createMediaKeys()).then(function(b){if(!F.iR())if(F.U=b,hg.isActive())hg.Zq("emeset",function(){return F.element.setMediaKeys(b)}); else{var I;(I=F.element)==null||I.setMediaKeys(b)}}); if(PG(this.C))this.T=new (Vy())(this.C.keySystem);else if(TF(this.C)){this.T=new (Vy())(this.C.keySystem);var J;(J=this.element)==null||J.webkitSetMediaKeys(this.T)}else hg.isActive()&&this.UQ("emev",{v:"01b"}),GD(this.D,this.element,["keymessage","webkitkeymessage"],this.aS),GD(this.D,this.element,["keyerror","webkitkeyerror"],this.j1),GD(this.D,this.element,["keyadded","webkitkeyadded"],this.YY);return null}; g.A.setServerCertificate=function(){return this.U.setServerCertificate?this.C.flavor==="widevine"&&this.C.fD?this.U.setServerCertificate(this.C.fD):S$(this.C)&&this.C.oI?this.U.setServerCertificate(this.C.oI):null:null}; g.A.createSession=function(F,J){var b=F.initData;if(this.C.keySystemAccess){J&&J("createsession");var I=this.U.createSession();rd(this.C)?b=ZYG(b,this.C.oI):S$(this.C)&&(b=W7z(b)||new Uint8Array(0));J&&J("genreq");var u=hg.isActive()?hg.Zq("emegen",function(){return I.generateRequest(F.contentType,b)}):I.generateRequest(F.contentType,b); var w=new mQ(null,null,null,I,null,this.V);u.then(function(){J&&J("genreqsuccess")},pa(function(q){tio(w,"t.generateRequest",q)})); return w}if(PG(this.C))return L7J(this,b);if(TF(this.C))return HYk(this,b);if((u=this.element)==null?0:u.generateKeyRequest)this.element.generateKeyRequest(this.C.keySystem,b);else{var M;(M=this.element)==null||M.webkitGenerateKeyRequest(this.C.keySystem,b)}return this.Z=new mQ(this.element,this.C,b,null,null,this.V)}; g.A.aS=function(F){var J=Fda(this,F);J&&J.VK(F)}; g.A.j1=function(F){var J=Fda(this,F);J&&J.HB(F)}; g.A.YY=function(F){var J=Fda(this,F);J&&J.SU(F)}; g.A.getMetrics=function(){if(this.U&&this.U.getMetrics)try{var F=this.U.getMetrics()}catch(J){}return F}; g.A.X_=function(){this.T=this.U=null;var F;(F=this.Z)==null||F.dispose();F=g.N(Object.values(this.W));for(var J=F.next();!J.done;J=F.next())J.value.dispose();this.W={};g.R.prototype.X_.call(this);delete this.element};g.A=im.prototype;g.A.get=function(F){F=this.findIndex(F);return F!==-1?this.values[F]:null}; g.A.remove=function(F){F=this.findIndex(F);F!==-1&&(this.keys.splice(F,1),this.values.splice(F,1))}; g.A.removeAll=function(){this.keys=[];this.values=[]}; g.A.set=function(F,J){var b=this.findIndex(F);b!==-1?this.values[b]=J:(this.keys.push(F),this.values.push(J))}; g.A.findIndex=function(F){return g.nz(this.keys,function(J){return g.ay(F,J)})};g.z(I6a,g.uA);g.A=I6a.prototype;g.A.OyN=function(F){this.H9({onecpt:1});F.initData&&M3k(this,new Uint8Array(F.initData),F.initDataType)}; g.A.YIv=function(F){this.H9({onndky:1});M3k(this,F.initData,F.contentType)}; g.A.vc=function(F){this.H9({onneedkeyinfo:1});this.rD.S("html5_eme_loader_sync")&&(this.V.get(F.initData)||this.V.set(F.initData,F));w0_(this,F)}; g.A.j4=function(F){this.T.push(F);z$(this)}; g.A.createSession=function(F){var J=qEk(this)?xxz(F):g.zw(F.initData);this.U.get(J);this.kQ=!0;F=new TSm(this.videoData,this.rD,F,this.drmSessionId);this.U.set(J,F);F.subscribe("ctmp",this.Yi,this);F.subscribe("keystatuseschange",this.mw,this);F.subscribe("licenseerror",this.LJ,this);F.subscribe("newlicense",this.dV,this);F.subscribe("newsession",this.lw,this);F.subscribe("sessionready",this.BB,this);F.subscribe("fairplay_next_need_key_info",this.qz,this);this.rD.S("html5_enable_vp9_fairplay")&&F.subscribe("qualitychange", this.DK,this);this.rD.S("html5_enable_sabr_drm_hd720p")&&F.subscribe("sabrlicenseconstraint",this.x0I,this);YWG(F,this.Z)}; g.A.dV=function(F){this.iR()||(this.H9({onnelcswhb:1}),F&&!this.heartbeatParams&&(this.heartbeatParams=F,this.publish("heartbeatparams",F)))}; g.A.lw=function(){this.iR()||(this.H9({newlcssn:1}),this.T.shift(),this.kQ=!1,z$(this))}; g.A.BB=function(){if(PG(this.C)&&(this.H9({onsnrdy:1}),this.qf--,this.qf===0)){var F=this.Tj,J,b;(J=F.element)==null||(b=J.msSetMediaKeys)==null||b.call(J,F.T)}}; g.A.mw=function(F){if(!this.iR()){!this.fW&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(vaC(this),this.fW=!0);this.H9({onksch:1});var J=this.DK;if(!gr(F)&&g.c$&&F.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var I=!0;if(gr(F))for(var u=g.N(Object.keys(F.C)),w=u.next();!w.done;w=u.next())w=w.value,F.C[w].status==="usable"&&b.push(F.C[w].type),F.C[w].status!=="unknown"&&(I=!1);if(!gr(F)||I)b=F.Z;b=kek(b)}J.call(this,b);this.publish("keystatuseschange", F)}}; g.A.Yi=function(F,J){this.iR()||this.publish("ctmp",F,J)}; g.A.qz=function(F,J){this.iR()||this.publish("fairplay_next_need_key_info",F,J)}; g.A.LJ=function(F,J,b,I){this.iR()||(this.videoData.S("html5_log_drm_metrics_on_error")&&vaC(this),this.publish("licenseerror",F,J,b,I))}; g.A.YA=function(){return this.Y}; g.A.DK=function(F){var J=g.HX("auto",F,!1,"l");if(this.videoData.PS){if(this.Y.Hg(J))return}else if(C6z(this.Y,F))return;this.Y=J;this.publish("qualitychange");this.H9({updtlq:F})}; g.A.x0I=function(F){this.videoData.sabrLicenseConstraint=F}; g.A.X_=function(){this.C.keySystemAccess&&this.element&&(this.Gj?this.element.setMediaKeys(null).catch(g.rQ):this.element.setMediaKeys(null));this.element=null;this.T=[];for(var F=g.N(this.U.values()),J=F.next();!J.done;J=F.next())J=J.value,J.unsubscribe("ctmp",this.Yi,this),J.unsubscribe("keystatuseschange",this.mw,this),J.unsubscribe("licenseerror",this.LJ,this),J.unsubscribe("newlicense",this.dV,this),J.unsubscribe("newsession",this.lw,this),J.unsubscribe("sessionready",this.BB,this),J.unsubscribe("fairplay_next_need_key_info", this.qz,this),this.rD.S("html5_enable_vp9_fairplay")&&J.unsubscribe("qualitychange",this.DK,this),J.dispose();this.U.clear();this.W.removeAll();this.V.removeAll();this.heartbeatParams=null;g.uA.prototype.X_.call(this)}; g.A.Cy=function(){for(var F={systemInfo:this.C.Cy(),sessions:[]},J=g.N(this.U.values()),b=J.next();!b.done;b=J.next())F.sessions.push(b.value.Cy());return F}; g.A.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.D?"/KR":"")}; g.A.H9=function(F,J){J=J===void 0?!1:J;this.iR()||(dk(F),(this.rD.hJ()||J)&&this.publish("ctmp","drmlog",F))};g.z(gaC,g.R);g.A=gaC.prototype;g.A.Sq=function(){return!!this.EN}; g.A.rC=function(){return this.U}; g.A.handleError=function(F){var J=this;l6G(this,F);if((F.errorCode!=="html5.invalidstate"&&F.errorCode!=="fmt.unplayable"&&F.errorCode!=="fmt.unparseable"||!N9G(this,F.errorCode,F.details))&&!Ea3(this,F)){if(this.PN.Tj!=="yt"&&WVY(this,F)&&this.videoData.SD&&(0,g.jR)()/1E3>this.videoData.SD&&this.PN.Tj==="hm"){var b=Object.assign({e:F.errorCode},F.details);b.stalesigexp="1";b.expire=this.videoData.SD;b.init=this.videoData.H4/1E3;b.now=(0,g.jR)()/1E3;b.systelapsed=((0,g.jR)()-this.videoData.H4)/1E3; F=new E5(F.errorCode,b,2);this.wD.Je(F.errorCode,2,"SIGNATURE_EXPIRED",dk(F.details))}if(jg(F.severity)){var I;b=(I=this.wD.Zv)==null?void 0:I.C.C;if(this.PN.S("html5_use_network_error_code_enums"))if(f67(F)&&b&&b.isLocked())var u="FORMAT_UNAVAILABLE";else if(this.PN.W||F.errorCode!=="auth"||F.details.rc!==429)F.errorCode==="ump.spsrejectfailure"&&(u="HTML5_SPS_UMP_STATUS_REJECTED");else{u="TOO_MANY_REQUESTS";var w="6"}else f67(F)&&b&&b.isLocked()?u="FORMAT_UNAVAILABLE":this.PN.W||F.errorCode!=="auth"|| F.details.rc!=="429"?F.errorCode==="ump.spsrejectfailure"&&(u="HTML5_SPS_UMP_STATUS_REJECTED"):(u="TOO_MANY_REQUESTS",w="6");this.wD.Je(F.errorCode,F.severity,u,dk(F.details),w)}else this.wD.publish("nonfatalerror",F),I=/^pp/.test(this.videoData.clientPlaybackNonce),this.je(F.errorCode,F.details),I&&F.errorCode==="manifest.net.connect"&&(F="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.jR)(),lX(F,"manifest",function(M){J.W=!0;J.UQ("pathprobe",M)},function(M){J.je(M.errorCode, M.details)}))}}; g.A.UQ=function(F,J){this.wD.zF().UQ(F,J)}; g.A.je=function(F,J){J=dk(J);this.wD.zF().je(F,J)};V3z.prototype.hp=function(F,J){return(J===void 0?0:J)?{Tl:F?fj(this,F):QE,kV:F?C2a(this,F):QE,Crj:F?YEz(this,F):QE,UJf:F?O7a(this,F.videoData):QE,Kp:F?oa3(this,F.videoData,F):QE,e4Q:F?SEm(this,F):QE,u3R:T9m(this)}:{Tl:F?fj(this,F):QE}}; V3z.prototype.S=function(F){return this.rD.S(F)};g.z(Wg,g.R);Wg.prototype.onError=function(F){if(F!=="player.fatalexception"||this.provider.S("html5_exception_to_health"))F==="sabr.fallback"&&(this.encounteredSabrFallback=!0),F.match(Uub)?this.networkErrorCount++:this.nonNetworkErrorCount++}; Wg.prototype.send=function(){if(!(this.T||this.C<0)){UdG(this);var F=g.dr(this.provider)-this.C,J="PLAYER_PLAYBACK_STATE_UNKNOWN",b=this.playerState.e6;this.playerState.isError()?J=b&&b.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.x(this.playerState,2)?J="PLAYER_PLAYBACK_STATE_ENDED":g.x(this.playerState,64)?J="PLAYER_PLAYBACK_STATE_UNSTARTED":g.x(this.playerState,16)||g.x(this.playerState,32)?J="PLAYER_PLAYBACK_STATE_SEEKING":g.x(this.playerState,1)&&g.x(this.playerState, 4)?J="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.x(this.playerState,1)?J="PLAYER_PLAYBACK_STATE_BUFFERING":g.x(this.playerState,4)?J="PLAYER_PLAYBACK_STATE_PAUSED":g.x(this.playerState,8)&&(J="PLAYER_PLAYBACK_STATE_PLAYING");b=RW5[ze(this.provider.videoData)];a:switch(this.provider.rD.playerCanaryState){case "canary":var I="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":I="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:I="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var u=xd7(this.provider), w=this.U<0?F:this.U-this.C;F=this.provider.rD.K7+36E5<(0,g.jR)();J={started:this.U>=0,stateAtSend:J,joinLatencySecs:w,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:I,playerCanaryStage:u,isAd:this.provider.videoData.isAd(),liveMode:b,hasDrm:!!g.yR(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:bE(this.provider.videoData)};F||g.AY("html5PlayerHealthEvent",J);this.T=!0;this.dispose()}}; Wg.prototype.X_=function(){this.T||this.send();window.removeEventListener("error",this.Qh);window.removeEventListener("unhandledrejection",this.Qh);g.R.prototype.X_.call(this)}; var Uub=/\bnet\b/;g.z(t3G,g.R);t3G.prototype.X_=function(){H7z(this);g.R.prototype.X_.call(this)};var LV7=/[?&]cpn=/;g.z(Ei,g.R);Ei.prototype.flush=function(){var F={};this.U&&(F.pe=this.U);this.C.length>0&&(F.pt=this.C.join("."));this.C=[];return F}; Ei.prototype.stop=function(){var F=this,J,b,I;return g.S(function(u){if(u.C==1)return g.lk(u,2),g.T(u,(J=F.Z)==null?void 0:J.stop(),4);if(u.C!=2)return(b=u.U)&&F.logTrace(b),g.Wa(u,0);I=g.dY(u);F.U=MSv(I.message);g.N4(u)})}; Ei.prototype.logTrace=function(F){this.encoder.reset();this.encoder.add(1);this.encoder.add(F.resources.length);for(var J=g.N(F.resources),b=J.next();!b.done;b=J.next()){b=b.value.replace("https://www.youtube.com/s/","");this.encoder.add(b.length);for(var I=0;I<b.length;I++)this.encoder.add(b.charCodeAt(I))}this.encoder.add(F.frames.length);J=g.N(F.frames);for(b=J.next();!b.done;b=J.next()){b=b.value;this.encoder.add(b.name.length);for(I=0;I<b.name.length;I++)this.encoder.add(b.name.charCodeAt(I)); Mn(this.encoder,b.resourceId);Mn(this.encoder,b.line);Mn(this.encoder,b.column)}this.encoder.add(F.samples.length);J=g.N(F.samples);for(b=J.next();!b.done;b=J.next())b=b.value,this.encoder.add(Math.trunc(b.timestamp)),Mn(this.encoder,b.stackId);this.encoder.add(F.stacks.length);F=g.N(F.stacks);for(J=F.next();!J.done;J=F.next())J=J.value,this.encoder.add(J.frameId),Mn(this.encoder,J.parentId);F=this.encoder.G7();this.T+=F.length;this.T<1E7&&this.C.push(F)}; Ei.prototype.X_=function(){this.stop();g.R.prototype.X_.call(this)};var q_C=[2,5,30];g.rr=eP(function(){var F="";try{var J=g.H1("CANVAS").getContext("webgl");J&&(J.getExtension("WEBGL_debug_renderer_info"),F=J.getParameter(37446),F=F.replace(/[ :]/g,"_"))}catch(b){}return F});g.z(g.Pg,g.R);g.A=g.Pg.prototype;g.A.sI_=function(){var F=g.dr(this.provider);KyY(this,F)}; g.A.H2=function(){return this.DC}; g.A.Lu=function(){return{aq:this.aq,bN:this.bN}}; g.A.ol=function(F,J){this.aq=F;this.bN=J}; g.A.dM=function(F){if(!this.xm){this.xm=!0;var J="";switch(F){case 1:J="proximaui";break;case 2:J=YxY(this.provider.videoData)?"proximawpcc":this.provider.videoData.S("html5_enable_proxima")||this.provider.videoData.S("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:J="proximaauto"}J!==""&&T$(this,J)}}; g.A.V_=function(F){this.C.lwc=[[F.De?F.De.toFixed():"",F.VN?F.VN.toFixed():"",F.qf?(F.qf*1E3).toFixed():"",F.NW?(F.NW*1E3).toFixed():"",F.MI?(F.MI*1E3).toFixed():""].join(":")]}; g.A.reportStats=function(F){F=F===void 0?NaN:F;if(!this.iR()&&(F=F>=0?F:g.dr(this.provider),["PL","B","S"].indexOf(this.r0)>-1&&(!g.Vj(this.C)||F>=this.D+30)&&(g.VT(this,F,"vps",[this.r0]),this.D=F),!g.Vj(this.C))){this.sequenceNumber===7E3&&g.rQ(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Bg(this,F);var J=this.provider.wD.Kt();J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,this.UQ(b.key,b.value);J=F;b=this.provider.wD.mH();var I=b.droppedVideoFrames||0,u=b.totalVideoFrames|| 0,w=I-this.aq,M=u&&!this.bN;I>b.totalVideoFrames||w>5E3?NC3(this,"html5.badframedropcount","df."+I+";tf."+b.totalVideoFrames):(w>0||M)&&g.VT(this,J,"df",[w]);this.aq=I;this.bN=u;this.N>0&&(g.VT(this,F,"glf",[this.N]),this.N=0);bs.isActive()&&(F=bs.Or(),Object.keys(F).length>0&&this.UQ("profile",F));this.Q2&&T$(this,"lwnmow");this.provider.rD.hJ()&&this.provider.S("html5_record_now")&&this.UQ("now",{wt:(0,g.jR)()});F={};this.provider.videoData.U&&(F.fmt=this.provider.videoData.U.itag,(J=this.provider.videoData.Z)&& J.itag!==F.fmt&&(F.afmt=J.itag));F.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(F.adcpn=this.adCpn);this.Tj&&(F.addocid=this.Tj);this.contentCpn&&(F.ccpn=this.contentCpn);this.Gj&&(F.cdocid=this.Gj);this.provider.videoData.cotn&&(F.cotn=this.provider.videoData.cotn);F.el=$s(this.provider.videoData);F.content_v=QR(this.provider.videoData);F.ns=this.provider.rD.Tj;F.fexp=l07(this.provider.rD.experiments).toString();F.cl=(728418168).toString();(J=this.provider.videoData.adFormat||this.adFormat)&& (F.adformat=J);(J=ze(this.provider.videoData))&&(F.live=J);this.provider.videoData.So()&&(F.drm=1,this.provider.videoData.D&&(F.drm_system=sFt[this.provider.videoData.D.flavor]||0),this.provider.videoData.Gc&&(F.drm_product=this.provider.videoData.Gc));Mk()&&this.provider.videoData.W&&(F.ctt=this.provider.videoData.W,F.cttype=this.provider.videoData.kZ,this.provider.videoData.mdxEnvironment&&(F.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(F.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.P4&&(F.dai_fallback="1")):this.provider.videoData.r9?F.dai="cs":this.provider.videoData.vP&&(F.dai="disabled");F.seq=this.sequenceNumber++;if(this.provider.videoData.AR){if(J=this.provider.videoData.AR,F&&J)for(J.ns==="3pp"&&(F.ns="3pp"),this.g9.has(J.ns)&&T$(this,"hbps"),J.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=J.shbpslc),b=g.N(Object.keys(J)),I=b.next();!I.done;I=b.next())I=I.value,this.Ly.has(I)|| (F[I]=J[I])}else F.event="streamingstats",F.docid=this.provider.videoData.videoId,F.ei=this.provider.videoData.eventId;this.isEmbargoed&&(F.embargoed="1");Object.assign(F,this.provider.rD.C);if(J=F.seq)J={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+J,serializedWatchEndpointLoggingContext:this.provider.videoData.xz},this.serializedHouseBrandPlayerServiceLoggingContext&&(J.serializedHouseBrandPlayerServiceLoggingContext=lV(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0), this.provider.videoData.playerResponseCpn&&(J.playerResponseCpn=this.provider.videoData.playerResponseCpn),G$.length&&(J.decoderInfo=G$),this.provider.wD.IH()&&(J.transitionStitchType=4,this.kQ&&(J.timestampOffsetMsecs=this.kQ)),this.remoteControlMode&&(J.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(J.remoteConnectedDevices=this.remoteConnectedDevices),J=g.ux(J,qho),J=g.zw(J,4),this.C.qclc=[J];F=g.Os("//"+this.provider.rD.Dc+"/api/stats/qoe",F);b=J="";I=g.N(Object.keys(this.C)); for(u=I.next();!u.done;u=I.next())u=u.value,this.C[u]===null?g.rQ(new g.hC("Stats report key has invalid value",u)):(u="&"+u+"="+this.C[u].join(","),u.length>100?b+=u:J+=u);mUm(this,F+J,b.replace(/ /g,"%20"))}this.C={}}}; g.A.zV=function(F){this.Q2=F}; g.A.X6=function(){if(this.provider.videoData.D){var F=this.provider.videoData.D;T$(this,"eme-"+(F.keySystemAccess?"final":PG(F)?"ms":rd(F)?"ytfp":TF(F)?"safarifp":"nonfinal"))}}; g.A.K_=function(F){var J=g.dr(this.provider);if(!this.provider.rD.experiments.pW("html5_refactor_sabr_video_format_selection_logging")||F.C.id!==this.zj){var b=[F.C.id,F.U,this.zj,F.reason];F.token&&b.push(F.token);g.VT(this,J,"vfs",b);this.zj=F.C.id;b=this.provider.wD.getPlayerSize();if(b.width>0&&b.height>0){b=[Math.round(b.width),Math.round(b.height)];var I=g.ow();I>1&&b.push(I);g.VT(this,J,"view",b)}this.nW||(this.provider.rD.hJ()&&T$(this,"rqs2"),this.provider.videoData.C&&Mv(this.provider.videoData.C)&& (this.C.preload=["1"]));this.T=this.nW=!0}F.reason==="m"&&++this.xo===100&&lJC(this,2);g.VT(this,J,"vps",[this.r0]);this.reportStats(J)}; g.A.dC=function(F){var J=g.dr(this.provider);if(this.provider.rD.experiments.pW("html5_refactor_sabr_audio_format_selection_logging")){J=F.C;var b=[J.audio&&J.video?J.zg?J.zg:"":J.id];J.j3&&J.j3.id&&b.push(J.j3.id);J=b.join(";");J!==this.V&&(b=[J,this.V,F.reason],F.token&&b.push(F.token),g.VT(this,g.dr(this.provider),"afs",b),this.V=J)}else F.C.id!==this.V&&(b=[F.C.id,this.V,F.reason],F.token&&b.push(F.token),g.VT(this,J,"afs",b),this.V=F.C.id)}; g.A.gK=bk(55);g.A.rT=function(F){this.isEmbargoed=F}; g.A.XF=bk(33);g.A.IQ=bk(38);g.A.onPlaybackRateChange=function(F){var J=g.dr(this.provider);F&&F!==this.MI&&(g.VT(this,J,"rate",[F]),this.MI=F);this.reportStats(J)}; g.A.yz=bk(28);g.A.getPlayerState=function(F){if(g.x(F,128))return"ER";if(g.x(F,2048))return"B";if(g.x(F,512))return"SU";if(g.x(F,16)||g.x(F,32))return"S";if(F.isOrWillBePlaying()&&g.x(F,64))return"B";var J=xu8[qO(F)];g.jB(this.provider.rD)&&J==="B"&&this.provider.wD.getVisibilityState()===3&&(J="SU");J==="B"&&g.x(F,4)&&(J="PB");return J}; g.A.X_=function(){g.R.prototype.X_.call(this);g.ii(this.W);g.ii(this.Kk)}; g.A.pZ=function(F){this.isOffline=F;g.VT(this,g.dr(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.A.UQ=function(F,J,b){var I=this.C.ctmp||[],u=this.M0.indexOf(F)!==-1;u||this.M0.push(F);if(!b||!u){var w=typeof J!=="string"?dk(J):J;w=fJz(w);if(!b&&!/^t[.]/.test(w)){var M=g.dr(this.provider)*1E3;w="t."+M.toFixed()+";"+w}I.push(F+":"+w);this.logger.debug(function(){return"ctmp "+F+" "+w}); this.C.ctmp=I;yf3(this);return M}}; g.A.Ep=function(F,J,b){this.Z={idW:Number(this.UQ("glrem",{nst:F.toFixed(),rem:J.toFixed(),ca:+b})),Tm:F,UkD:J,isAd:b}}; g.A.Bl=function(F,J,b){g.VT(this,g.dr(this.provider),"ad_playback",[F,J,b])}; g.A.M5=function(F,J){var b=g.dr(this.provider)*1E3,I=this.C.daism||[];I.push("t."+b.toFixed(0)+";smw."+(F*1E3).toFixed(0)+";smo."+(J*1E3).toFixed(0));this.C.daism=I}; g.A.resume=function(){var F=this;this.provider.rD.hJ()&&this.UQ("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.W)?iSJ(this):this.W=g.g$(function(){F.reportStats()},1E4)}; var zz={},xu8=(zz[5]="N",zz[-1]="N",zz[3]="B",zz[0]="EN",zz[2]="PA",zz[1]="PL",zz[-1E3]="ER",zz[1E3]="N",zz),G$=[];EbC.prototype.Lt=function(){return this.C}; EbC.prototype.update=function(){if(this.V){var F=this.provider.wD.pV(this.provider.videoData.clientPlaybackNonce)||0,J=g.dr(this.provider);F>=this.provider.wD.getDuration()-.1&&(this.previouslyEnded=!0);if(F!==this.C||VS7(this,F,J)){var b;if(!(b=F<this.C||F-this.C>J-this.y5+2||VS7(this,F,J))){b=this.provider.wD.getVolume();var I=b!==this.N,u=this.provider.wD.isMuted()?1:0;u!==this.Y?(this.Y=u,b=!0):(!I||this.Z>=0||(this.N=b,this.Z=J),b=J-this.Z,this.Z>=0&&b>2?(this.Z=-1,b=!0):b=!1)}b&&(YU(this),this.T= F);this.y5=J;this.C=F}}};Pzo.prototype.send=function(F){var J=this;if(!this.Jz){var b=TCY(this),I=g.Os(this.uri,b);this.rD.S("vss_through_gel_double")&&rfk(I);this.Gj&&!this.rD.S("html5_simplify_pings")?Cza(this,I):BCa(this,F).then(function(u){J.Gj&&(u=u||{},u.method="POST",u.postParams={atr:J.attestationResponse});IJz(I,u,{token:J.Tj,Ix:J.cN,mdxEnvironment:J.mdxEnvironment},J.rD,F,J.kQ,J.isFinal&&J.K7||J.WN||J.T&&J.xH)}); this.Jz=!0}}; Pzo.prototype.U=function(F){F===void 0&&(F=NaN);return Number(F.toFixed(3)).toString()}; var Ny={},Y_Y=(Ny.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Ny.LIVING_ROOM_APP_MODE_MAIN=1,Ny.LIVING_ROOM_APP_MODE_KIDS=2,Ny.LIVING_ROOM_APP_MODE_MUSIC=3,Ny.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Ny.LIVING_ROOM_APP_MODE_GAMING=5,Ny),ls={},s7Y=(ls.EMBEDDED_PLAYER_MODE_UNKNOWN=0,ls.EMBEDDED_PLAYER_MODE_DEFAULT=1,ls.EMBEDDED_PLAYER_MODE_PFP=2,ls.EMBEDDED_PLAYER_MODE_PFL=3,ls);g.z(Cj,g.R);g.A=Cj.prototype;g.A.aP=function(){this.C.update();hHo(this)&&(Q7C(this),RHJ(this),this.t6())}; g.A.X_=function(){g.R.prototype.X_.call(this);Rm(this);j7z(this.C)}; g.A.Cy=function(){return TCY(XJ(this,"playback"))}; g.A.t6=function(){this.provider.videoData.V.eventLabel=$s(this.provider.videoData);this.provider.videoData.V.playerStyle=this.provider.rD.playerStyle;this.provider.videoData.pF&&(this.provider.videoData.V.feature="pyv");this.provider.videoData.V.vid=this.provider.videoData.videoId;var F=this.provider.videoData.V;var J=this.provider.videoData;J=J.isAd()||!!J.pF;F.isAd=J}; g.A.C8=function(F){var J=XJ(this,"engage");J.eE=F;return S_a(J,ZS_(this.provider))};tSC.prototype.isEmpty=function(){return this.endTime===this.startTime};kU.prototype.S=function(F){return this.rD.S(F)}; kU.prototype.getCurrentTime=function(F){if(this.S("html5_ssap_current_time_for_logging_refactor")){var J=this.wD.IH();if(J&&(F=F||J.h4()))return Mp(J,F)}else if(g.oH(this.videoData)){var b=this.wD.IH();if(b)return F=this.wD.getCurrentTime(),b=(((J=Pl(b,F*1E3))==null?void 0:J.ac)||0)/1E3,F-b}return this.wD.getCurrentTime()}; kU.prototype.Fb=function(F){if(this.S("html5_ssap_current_time_for_logging_refactor")){var J=this.wD.IH();if(J&&(F=F||J.h4()))return Mp(J,F)}else if(g.oH(this.videoData)){var b=this.wD.IH();if(b)return F=this.wD.Fb(),b=(((J=Pl(b,F*1E3))==null?void 0:J.ac)||0)/1E3,F-b}return this.wD.Fb()}; var HSG={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.Oi,g.R);g.A=g.Oi.prototype;g.A.aP=function(){if(this.provider.videoData.enableServerStitchedDai&&this.UV){var F;(F=this.T.get(this.UV))==null||F.aP()}else this.C&&this.C.aP()}; g.A.rT=function(F){this.qoe&&this.qoe.rT(F)}; g.A.XF=bk(32);g.A.IQ=bk(37);g.A.M5=function(F,J){this.qoe&&this.qoe.M5(F,J)}; g.A.je=function(F,J){this.qoe&&NC3(this.qoe,F,J);if(this.U)this.U.onError(F)}; g.A.K_=function(F){this.qoe&&this.qoe.K_(F)}; g.A.dC=function(F){this.qoe&&this.qoe.dC(F)}; g.A.onPlaybackRateChange=function(F){if(this.qoe)this.qoe.onPlaybackRateChange(F);this.C&&YU(this.C.C)}; g.A.gK=bk(54);g.A.UQ=function(F,J,b){this.qoe&&this.qoe.UQ(F,J,b)}; g.A.Ep=function(F,J,b){this.qoe&&this.qoe.Ep(F,J,b)}; g.A.dM=function(F){var J;(J=this.qoe)==null||J.dM(F)}; g.A.V_=function(F){var J;(J=this.qoe)==null||J.V_(F)}; g.A.zV=function(F){this.qoe&&this.qoe.zV(F)}; g.A.Bl=function(F,J,b){this.qoe&&this.qoe.Bl(F,J,b)}; g.A.yz=bk(27);g.A.H2=function(){if(this.qoe)return this.qoe.H2()}; g.A.Cy=function(){if(this.provider.videoData.enableServerStitchedDai&&this.UV){var F,J;return(J=(F=this.T.get(this.UV))==null?void 0:F.Cy())!=null?J:{}}return this.C?this.C.Cy():{}}; g.A.Lu=function(){var F;return(F=this.qoe)==null?void 0:F.Lu()}; g.A.ol=function(F,J){var b;(b=this.qoe)==null||b.ol(F,J)}; g.A.C8=function(F){return this.C?this.C.C8(F):function(){}}; g.A.t6=function(){this.C&&this.C.t6()}; g.A.getVideoData=function(){return this.provider.videoData}; g.A.resume=function(){this.qoe&&this.qoe.resume()};g.z(hX,g.R); hX.prototype.g2=function(F,J,b){if(this.C.has(F)){var I=this.C.get(F);if(J.videoId&&!LyJ(I))this.U.UQ("ssap",{rlc:F}),aWY(this,F);else return}if(!this.C.has(F)){I=new kU(J,this.rD,this.wD);var u=Math.round(g.dr(this.U.provider)*1E3);I=new g.Oi(I,u);LyJ(I)||this.U.UQ("nqv",{vv:J.videoId});u=this.U.getVideoData();this.C.set(F,I);if(I.qoe){var w=I.qoe,M=u.videoId||"";w.contentCpn=u.clientPlaybackNonce;w.Gj=M}FQ_(I);b===2&&(this.rD.S("html5_log_ad_playback_docid")?(b=this.U,b.qoe&&(b=b.qoe,I=J.If||"", u=J.breakType||0,J=J.videoId||"",w=this.rD.Tj||"yt",g.VT(b,g.dr(b.provider),"ad_playback",[F,I,u,J,w]))):this.U.Bl(F,J.If||"",J.breakType||0))}}; hX.prototype.wS=function(F,J,b,I,u,w,M,q){if(F!==J){var v=this.zF(F),a=this.zF(J),e,K=F===((e=v.getVideoData())==null?void 0:e.clientPlaybackNonce),p;e=J===((p=a.getVideoData())==null?void 0:p.clientPlaybackNonce);var m;p=K?((m=v.getVideoData())==null?void 0:m.videoId)||"":"nvd";var y;m=e?((y=a.getVideoData())==null?void 0:y.videoId)||"":"nvd";K&&(v=v.qoe)!=null&&(SA(v,4,w?4:u?2:0,J,m,b),v.reportStats());e&&(om(a),(J=a.qoe)!=null&&(SA(J,4,w?5:u?3:1,F,p,I),J.reportStats()),IWa(a,new g.vL(M,a.r0)), JXo(a));q&&aWY(this,F)}}; hX.prototype.zF=function(F){F=F||this.UV;return this.C.get(F)||this.U};g.z(g.cg,g.R);g.A=g.cg.prototype; g.A.TU=function(F,J){this.sync();J&&this.C.array.length>=2E3&&this.oG("captions",1E4);J=this.C;if(F.length>1&&F.length>J.array.length)J.array=J.array.concat(F),J.array.sort(J.C);else for(var b=g.N(F),I=b.next();!I.done;I=b.next())I=I.value,!J.array.length||J.C(I,J.array[J.array.length-1])>0?J.array.push(I):g.eJ(J.array,I,J.C);F=g.N(F);for(J=F.next();!J.done;J=F.next())J=J.value,J.namespace==="ad"&&this.Z("ssap",{acrsid:J.getId(),acrsst:J.start,acrset:J.end,acrscpt:J.playerType});this.T=NaN;this.sync()}; g.A.L4=function(F){F.length>1E4&&g.rQ(new g.hC("Over 10k cueRanges removal occurs with a sample: ",F[0]));if(!this.iR()){for(var J=g.N(F),b=J.next();!b.done;b=J.next())(b=b.value)&&b.namespace==="ad"&&this.Z("ssap",{rcrid:b.getId(),rcst:b.start,rcet:b.end,rcpt:b.playerType});var I=new Set(F);this.U=this.U.filter(function(u){return!I.has(u)}); ijG(this.C,I);this.sync()}}; g.A.oG=function(F,J){var b=(isNaN(this.T)?g.x(this.W(),2)?0x8000000000000:this.N()*1E3:this.T)-J;J=this.Y4().filter(function(I){return I.namespace===F&&I.end<b}); this.L4(J);return J}; g.A.Y4=function(){return this.iR()?[]:this.C.array}; g.A.reset=function(){this.started=!1;this.D.stop();this.C.array=[];this.U=[];this.sync()}; g.A.Yo=function(F){var J=this.Y4().filter(function(b){return b.namespace===F}); this.L4(J);return J}; g.A.Z8=bk(42); g.A.ey=function(F,J){var b=[],I=gUY(this.C,0x7ffffffffffff),u=[];this.Z("ssap",{mecrs:I.length,cpn:J});I=g.N(I);for(var w=I.next();!w.done;w=I.next())w=w.value,w.active&&(this.Z("ssap",{acre:w.id,st:w.start,et:w.end,cpn:J,cpt:w.playerType,pt:F}),J&&J===w.T?(u.push(w),this.Z("ssap",{acrec:w.id,st:w.start,et:w.end,pt:F})):w.playerType===F&&(u.push(w),this.Z("ssap",{acret:w.id,st:w.start,et:w.end})));b=b.concat(this.z5(u));lW3(this,b);b=[];J=[];I=g.N(this.U);for(w=I.next();!w.done;w=I.next())w=w.value, w.active&&w.playerType===F&&w.start===0x7ffffffffffff&&J.push(w);b=b.concat(this.xO(J));lW3(this,b);return u.length}; g.A.z5=function(F){var J=[];if(!F.length)return J;for(var b=0;b<F.length;b++){var I=F[b];I.active&&this.U.indexOf(I)===-1&&(this.U.push(I),J.push([1,I]))}return J}; g.A.xO=function(F){var J=[];if(!F.length)return J;F.sort(g.IV);F=g.N(F);for(var b=F.next();!b.done;b=F.next())b=b.value,this.U.splice(this.U.indexOf(b),1),J.push([2,b]);return J}; g.A.sync=function(){this.V=!0;if(!this.Y){for(var F=3;this.V&&F;)this.V=!1,this.Y=!0,this.bQ(),this.Y=!1,F--;this.W().isPlaying()&&(F=yXv(this.C,this.T),!isNaN(F)&&F<0x7ffffffffffff&&(F=(F-this.T)/this.Gj(),this.D.start(F)))}}; g.A.bQ=function(){if(this.started&&!this.iR()){this.D.stop();var F=this.W();g.x(F,32)&&this.eE.start();for(var J=g.x(this.W(),2)?0x8000000000000:this.N()*1E3,b=g.x(F,2),I=[],u=[],w=g.N(this.U),M=w.next();!M.done;M=w.next())M=M.value,M.active&&(b?M.end<0x8000000000000:!M.contains(J))&&u.push(M);I=I.concat(this.xO(u));w=u=null;b?(F=gUY(this.C,0x7ffffffffffff),u=F.filter(function(q){return q.end<0x8000000000000}),w=mS4(this.C)):F=this.T<=J&&AV(F)?pgG(this.C,this.T,J):gUY(this.C,J); I=I.concat(this.z5(F));u&&(I=I.concat(this.xO(u)));w&&(I=I.concat(this.z5(w)));this.T=J;lW3(this,I)}}; g.A.X_=function(){this.U=[];this.C.array=[];g.R.prototype.X_.call(this)}; g.RQ.xw(g.cg,{TU:"crmacr",z5:"crmncr",xO:"crmxcr",bQ:"crmis",L4:"crmrcr"});g.A=g.Ui.prototype;g.A.addCueRange=function(F){this.wD.addCueRange(F)}; g.A.dO=function(F,J){this.wD.dO(F,J)}; g.A.CV=function(){this.wD.CV()}; g.A.H$=function(){return this.wD.H$()}; g.A.J2=function(){return this.wD.J2()}; g.A.sy=function(F,J){this.wD.sy(F,J)}; g.A.oG=function(F,J){return this.wD.oG(F,J)}; g.A.P2=function(F){this.wD.P2(F)}; g.A.zA=function(){return this.wD.zA()}; g.A.getAudioTrack=function(){return this.wD.getAudioTrack()}; g.A.getAvailableAudioTracks=function(){return this.wD.getAvailableAudioTracks()}; g.A.W0=function(){return this.wD.W0()}; g.A.Jo=function(){return this.wD.Jo()}; g.A.Y4=function(){return this.wD.Y4()}; g.A.M4=function(){return this.wD.M4()}; g.A.Fb=function(){return this.wD.Fb()}; g.A.getCurrentTime=function(){return this.wD.getCurrentTime()}; g.A.E5=function(){return this.wD.E5()}; g.A.cQ=function(){return this.wD.cQ()}; g.A.Cy=function(F){return this.wD.Cy(F)}; g.A.getDuration=function(F){return this.wD.getDuration(F)}; g.A.z8=function(){return this.wD.z8()}; g.A.Ze=function(){return this.wD.Ze()}; g.A.md=function(){return this.wD.md()}; g.A.mJ=function(){return this.wD.mJ()}; g.A.aG=function(){return this.wD.aG()}; g.A.NP=bk(16);g.A.Iv=function(){return this.wD.Iv()}; g.A.iS=function(){return this.wD.iS()}; g.A.LP=function(F){return this.wD.LP(F)}; g.A.Qa=function(){return this.wD.Qa()}; g.A.SS=function(){return this.wD.SS()}; g.A.Ho=function(){return this.wD.Ho()}; g.A.rA=function(){return this.wD.rA()}; g.A.sV=function(F,J,b){return this.wD.sV(F,J,b)}; g.A.Ni=bk(21);g.A.getPlaybackQuality=function(){return this.wD.getPlaybackQuality()}; g.A.getPlaybackRate=function(){return this.wD.getPlaybackRate()}; g.A.getPlayerState=function(){return this.wD.getPlayerState()}; g.A.getPlayerType=function(){return this.wD.getPlayerType()}; g.A.getPlaylistSequenceForTime=function(F){return this.wD.getPlaylistSequenceForTime(F)}; g.A.C8=function(F){return this.wD.C8(F)}; g.A.f1=function(){return this.wD.f1()}; g.A.getPreferredQuality=function(){return this.wD.getPreferredQuality()}; g.A.Lu=function(){return this.wD.Lu()}; g.A.getProximaLatencyPreference=function(){return this.wD.getProximaLatencyPreference()}; g.A.gA=function(){return this.wD.gA()}; g.A.getStreamTimeOffset=function(){return this.wD.getStreamTimeOffset()}; g.A.Kc=function(){return this.wD.Kc()}; g.A.Xq=function(){return this.wD.Xq()}; g.A.o0=function(){return this.wD.o0()}; g.A.getUserAudio51Preference=function(){return this.wD.getUserAudio51Preference()}; g.A.getUserPlaybackQualityPreference=function(){return this.wD.getUserPlaybackQualityPreference()}; g.A.getVideoData=function(){return this.wD.getVideoData()}; g.A.I3=function(){return this.wD.I3()}; g.A.B1=function(){return this.wD.B1()}; g.A.rk=function(F){this.wD.rk(F)}; g.A.handleError=function(F){this.wD.handleError(F)}; g.A.lA=function(F){this.wD.lA(F)}; g.A.lz=function(F){this.wD.lz(F)}; g.A.Z8=bk(41);g.A.Bx=function(){return this.wD.Bx()}; g.A.hasSupportedAudio51Tracks=function(){return this.wD.hasSupportedAudio51Tracks()}; g.A.wK=function(){return this.wD.wK()}; g.A.Hh=function(){return this.wD.Hh()}; g.A.isAtLiveHead=function(F,J){return this.wD.isAtLiveHead(F,J)}; g.A.YM=function(){return this.wD.YM()}; g.A.isGapless=function(){return this.wD.isGapless()}; g.A.isHdr=function(){return this.wD.isHdr()}; g.A.DR=function(){return this.wD.DR()}; g.A.JQ=function(){return this.wD.JQ()}; g.A.Pq=function(){return this.wD.Pq()}; g.A.isProximaLatencyEligible=function(){return this.wD.isProximaLatencyEligible()}; g.A.W9=function(){return this.wD.W9()}; g.A.rC=function(){return this.wD.rC()}; g.A.Mj=function(){this.wD.Mj()}; g.A.AI=function(F){this.wD.AI(F)}; g.A.Qs=function(F){this.wD.Qs(F)}; g.A.La=function(){this.wD.La()}; g.A.mR=function(){this.wD.mR()}; g.A.v8=function(){this.wD.v8()}; g.A.nJ=function(){this.wD.nJ()}; g.A.Wv=function(F){this.wD.Wv(F)}; g.A.gK=bk(53);g.A.yz=bk(26);g.A.n9=function(){this.wD.n9()}; g.A.pauseVideo=function(F){this.wD.pauseVideo(F)}; g.A.Tr=function(F){this.wD.Tr(F)}; g.A.Uu=function(F){this.wD.Uu(F)}; g.A.playVideo=function(F,J){return this.wD.playVideo(F,J)}; g.A.Bl=function(F,J,b,I,u){this.wD.Bl(F,J,b,I,u)}; g.A.XF=bk(31);g.A.IQ=bk(36);g.A.y3=function(F,J,b,I,u){this.wD.y3(F,J,b,I,u)}; g.A.UQ=function(F,J,b){this.wD.UQ(F,J,b)}; g.A.rT=function(F){this.wD.rT(F)}; g.A.M5=function(F,J){this.wD.zF().M5(F,J)}; g.A.Ep=function(F,J,b){this.wD.Ep(F,J,b)}; g.A.je=function(F){this.wD.je(F)}; g.A.Y1=function(F,J,b){this.wD.Y1(F,J,b)}; g.A.lP=function(F){this.wD.lP(F)}; g.A.Qb=function(F,J){this.wD.Qb(F,J)}; g.A.QE=function(F,J,b,I,u,w,M,q){this.wD.QE(F,J,b,I,u,w,M,q)}; g.A.SW=function(F){this.wD.SW(F)}; g.A.Cc=function(F,J){this.wD.Cc(F,J)}; g.A.KU=function(F,J){this.wD.KU(F,J)}; g.A.removeCueRange=function(F){this.wD.removeCueRange(F)}; g.A.hc=function(F){this.wD.hc(F)}; g.A.Yo=function(F){return this.wD.f8.Yo(F)}; g.A.vl=function(F){this.wD.vl(F)}; g.A.rg=function(F,J,b){this.wD.rg(F,J,b)}; g.A.YB=function(){this.wD.YB()}; g.A.CI=function(F,J){this.wD.CI(F,J)}; g.A.oO=function(){this.wD.oO()}; g.A.seekTo=function(F,J){this.wD.seekTo(F,J)}; g.A.sendAbandonmentPing=function(){this.wD.sendAbandonmentPing()}; g.A.sendVideoStatsEngageEvent=function(F,J){this.wD.sendVideoStatsEngageEvent(F,J)}; g.A.vk=function(F,J){this.wD.vk(F,J)}; g.A.setLoop=function(F){this.wD.setLoop(F)}; g.A.PA=function(){this.wD.PA()}; g.A.setMediaElement=function(F){this.wD.setMediaElement(F)}; g.A.w5=function(F,J,b,I){this.wD.w5(F,J,b,I)}; g.A.setPlaybackRate=function(F){this.wD.setPlaybackRate(F)}; g.A.Je=function(F,J,b,I,u,w){this.wD.Je(F,J,b,I,u,w)}; g.A.ol=function(F,J){this.wD.ol(F,J)}; g.A.d6=function(F){this.wD.d6(F)}; g.A.setProximaLatencyPreference=function(F){this.wD.setProximaLatencyPreference(F)}; g.A.pQ=function(F){this.wD.pQ(F)}; g.A.XR=function(){this.wD.XR()}; g.A.Ow=function(F){this.wD.Ow(F)}; g.A.setUserAudio51Preference=function(F,J){this.wD.setUserAudio51Preference(F,J)}; g.A.kE=function(F,J,b){this.wD.kE(F,J,b)}; g.A.wZ=function(){return this.wD.wZ()}; g.A.Rv=function(){this.wD.Rv()}; g.A.l1=function(){return this.wD.l1()}; g.A.PE=function(F){this.wD.PE(F)}; g.A.Df=function(){this.wD.Df()}; g.A.MG=function(F){this.wD.MG(F)}; g.A.stopVideo=function(){this.wD.stopVideo()}; g.A.subscribe=function(F,J,b){return this.wD.subscribe(F,J,b)}; g.A.Sn=function(F,J){this.wD.Sn(F,J)}; g.A.togglePictureInPicture=function(){this.wD.togglePictureInPicture()}; g.A.ey=function(F,J){return this.wD.f8.ey(F,J)}; g.A.unsubscribe=function(F,J,b){return this.wD.unsubscribe(F,J,b)}; g.A.TW=function(F,J){this.wD.TW(F,J)}; g.A.sU=function(F,J){return this.wD.sU(F,J)}; g.A.t6=function(){this.wD.t6()}; g.A.Z$=function(){this.wD.Z$()}; g.A.qT=function(F){this.wD.qT(F)}; g.A.d_=function(){this.wD.d_()};tX.prototype.add=function(F){this.C=(this.C+1)%this.data.length;this.data[this.C]=F}; tX.prototype.forEach=function(F){for(var J=this.C+1;J<this.data.length;J++)F(this.data[J]||0);for(J=0;J<=this.C;J++)F(this.data[J]||0)}; tX.prototype.clear=function(){for(var F=this.data.length,J=0;J<F;J++)this.data[J]=0;this.U=this.C=this.data.length-1};g.z(Hg,g.uA);Hg.prototype.B0=function(){return this.Y}; Hg.prototype.z8=function(){return this.policy.N&&this.videoData.C?this.videoData.C.G8:Math.max(this.W()-FI(this)*this.C,this.videoData.Ho())};g.z(IX,g.R);IX.prototype.Va=function(){var F=this,J=this.wD.Qa(),b=this.wD.getPlayerState();if(J&&!b.isError()){var I=J.getCurrentTime(),u=b.state===8&&I>this.C,w=g.x(b,8)&&g.x(b,16),M=this.wD.o6().isBackground()||b.isSuspended();ut(this,this.bR,w&&!M,u,"qoe.slowseek",function(){},"timeout"); var q=isFinite(this.C);q=w&&q&&PD4(J,this.C);var v=!I||Math.abs(I-this.C)>10,a=this.rD.S("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),e=I===0&&this.U&&[11,10].includes(this.U);ut(this,this.cN,q&&v&&!M&&(!a||!e),u,"qoe.slowseek",function(){J.seekTo(F.C)},"set_cmt"); v=q&&Mt(J.Z4(),this.C);var K=this.wD.Zv;q=!K||K.YM();var p=function(){J.seekTo(F.C+.001)}; ut(this,this.zj,v&&q&&!M,u,"qoe.slowseek",p,"jiggle_cmt");q=function(){return F.wD.sV()}; ut(this,this.Jz,v&&!M,u,"qoe.slowseek",q,"new_elem");v=AV(b);a=b.isBuffering();var m=J.Z4(),y=wu(m,I),f=y>=0&&m.end(y)>I+5,d=v&&a&&f;e=this.wD.getVideoData();ut(this,this.KW,I<.002&&this.C<.002&&w&&g.jB(this.rD)&&g.Xc(e)&&!M,u,"qoe.slowseek",q,"slow_seek_shorts");ut(this,this.Tj,e.yM()&&w&&!M&&!e.Gj,u,"qoe.slowseek",q,"slow_seek_gapless_shorts");ut(this,this.Gj,d&&!M,v&&!a,"qoe.longrebuffer",p,"jiggle_cmt");ut(this,this.kQ,d&&!M,v&&!a,"qoe.longrebuffer",q,"new_elem_nnr");if(K){var G=K.getCurrentTime(); w=J.mQ();w=y53(w,G);w=!K.isSeeking()&&I===w;ut(this,this.Kk,v&&a&&w&&!M,v&&!a&&!w,"qoe.longrebuffer",function(){J.seekTo(G)},"seek_to_loader")}w={}; p=wu(m,Math.max(I-3.5,0));d=p>=0&&I>m.end(p)-1.1;var P=p>=0&&p+1<m.length?m.start(p+1)-m.end(p):9999;w.mindex=y;w.disIndex=p;w.isdisc=p>=0&&d&&P<11;w.close2edge=d;w.gapsize=P;w.buflen=m.length;this.U&&(w.seekSour=this.U);if(p=this.wD.IH()){d=p.h4();P=d!==Pl(p,I*1E3).clipId;var r=g.eB(this.rD.experiments,"html5_ssap_skip_seeking_offset_ms"),Q=(V5(p,d)+r)/1E3;ut(this,this.fW,P&&v&&a&&!M,v&&!a,"qoe.longrebuffer",function(){J.seekTo(Q)},"ssap_clip_not_match")}ut(this,this.WN,v&&a&&!M,v&&!a,"qoe.longrebuffer", function(){},"timeout",w); w=b.isSuspended();w=this.wD.wK()&&!w;ut(this,this.V,w,!w,"qoe.start15s",function(){F.wD.d6("ad")},"ads_preroll_timeout"); p=I-this.Z<.5;var D;w=!((D=this.wD.IH())==null||!D.zc());P=(d=e.isAd()||w&&this.rD.experiments.pW("html5_ssap_skip_slow_ad"))&&v&&!a&&p;D=function(){var t=F.wD,n=g.oH(t.videoData)&&t.II,uk=t.t_.getVideoData();(uk&&t.videoData.isAd()&&uk.r9===t.getVideoData().r9||!t.videoData.Uo)&&!n?t.Je("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+t.videoData.videoId):Mb(t.videoData,"html5_ssap_skip_slow_ad")&&n&&t.II.zc()&&(t.je(new E5("ssap.transitionfailure",{cpn:Pl(t.II,t.Fb()).clipId,pcpn:t.II.h4(), cmt:t.Fb()})),t=t.II,n=t.playback.Fb(),(n=Ala(t,n))&&bs3(t,n.jo()/1E3))}; ut(this,this.Um,P,!P,"ad.rebuftimeout",D,"skip_slow_ad");p=d&&a&&Mt(J.Z4(),I+5)&&p;ut(this,this.Q2,p&&!M,!p,"ad.rebuftimeout",D,"skip_slow_ad_buf");D=b.isOrWillBePlaying()&&g.x(b,64)&&!M;ut(this,this.Om,D,u,"qoe.start15s",function(){},"timeout"); D=!!K&&!K.HN&&b.isOrWillBePlaying();ut(this,this.qf,D,u,"qoe.start15s",q,"newElemMse");D=ve(m,0);p=g.x(b,16)||g.x(b,32);p=!M&&b.isOrWillBePlaying()&&a&&!p&&(g.x(b,64)||I===0)&&D>5;ut(this,this.nW,g.Xc(e)&&p,v&&!a,"qoe.longrebuffer",function(){F.wD.M$()},"reset_media_source"); ut(this,this.oI,g.Xc(e)&&p,v&&!a,"qoe.longrebuffer",q,"reset_media_element");this.Z===0&&(this.W=I);p=a&&this.C===0&&I>1&&I===this.W;ut(this,this.dD,g.Xc(e)&&p,v&&!a,"qoe.slowseek",function(){J.seekTo(0)},"reseek_after_time_jump"); M=b.isOrWillBePlaying()&&!M;f=this.wD.LP()-I<6&&!f&&this.wD.Rs();ut(this,this.Y,e.yM()&&M&&a&&f,v&&!a,"qoe.longrebuffer",function(){F.wD.sV(!1,!0)},"handoff_end_long_buffer_reload"); K=(K==null?void 0:lhY(K))||NaN;K=m.length>1||!isNaN(K)&&K-.1<=I;ut(this,this.N,LC(e)&&M&&a&&K,v&&!a,"qoe.longrebuffer",q,"gapless_slice_append_stuck");K=y>=0&&m.end(y)>=2;M=LC(e)&&this.wD.dN&&K&&!e.Gj&&M&&(a||g.x(b,8)&&g.x(b,16));ut(this,this.eE,M,u,"qoe.start15s",q,"gapless_slow_start");b=!!(w&&D>5&&b.isPlaying()&&I<.1);ut(this,this.xm,b,I>.5&&v,"qoe.longrebuffer",q,"ssap_stuck_in_ad_beginning");this.Z=I;this.D.start()}}; IX.prototype.je=function(F,J,b){J=this.Cy(J);J.wn=b;J.wdup=this.T[F]?"1":"0";this.wD.je(new E5(F,J));this.T[F]=!0}; IX.prototype.Cy=function(F){F=Object.assign(this.wD.Cy(!0),F.Cy());this.C&&(F.stt=this.C.toFixed(3));this.wD.getVideoData().isLivePlayback&&(F.ct=this.wD.getCurrentTime().toFixed(3),F.to=this.wD.Xq().toFixed(3));delete F.uga;delete F.euri;delete F.referrer;delete F.fexp;delete F.vm;return F}; JZ.prototype.reset=function(){this.C=this.U=this.T=this.startTimestamp=0;this.Z=!1}; JZ.prototype.test=function(F){if(!this.D||this.U)return!1;if(!F)return this.reset(),!1;F=(0,g.jR)();if(!this.startTimestamp)this.startTimestamp=F,this.T=0;else if(this.T>=this.D)return this.U=F,!0;this.T+=1;return!1}; JZ.prototype.Cy=function(){var F={},J=(0,g.jR)();this.startTimestamp&&(F.wsd=(J-this.startTimestamp).toFixed());this.U&&(F.wtd=(J-this.U).toFixed());this.C&&(F.wssd=(J-this.C).toFixed());return F};g.z(Xg7,g.R);g.A=Xg7.prototype;g.A.setMediaElement=function(F){(this.mediaElement=F)?(this.mediaElement&&(this.D||this.Z||!this.mediaElement.BR()||this.seekTo(.01,{Ky:"seektimeline_setupMediaElement"})),wo(this)):AZ(this)}; g.A.getCurrentTime=function(){if(Mg(this.wD)){if(!isNaN(this.U))return this.U}else if(!isNaN(this.U)&&isFinite(this.U))return this.U;return this.mediaElement&&Zj7(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.A.bK=function(){return this.oI}; g.A.Fb=function(){return this.getCurrentTime()-this.Xq()}; g.A.z8=function(){return this.C?this.C.z8():Infinity}; g.A.isAtLiveHead=function(F){if(!this.C)return!1;F===void 0&&(F=this.getCurrentTime());return Lj(this.C,F)}; g.A.B0=function(){return!!this.C&&this.C.B0()}; g.A.seekTo=function(F,J){var b=J===void 0?{}:J;J=b.o$===void 0?!1:b.o$;var I=b.ZK===void 0?0:b.ZK;var u=b.sL===void 0?!1:b.sL;var w=b.rd===void 0?0:b.rd;var M=b.Ky===void 0?"":b.Ky;var q=b.seekSource===void 0?void 0:b.seekSource;var v=b.C1===void 0?!1:b.C1;var a=b.g$===void 0?!1:b.g$;b=b.Ki===void 0?!1:b.Ki;v&&(F+=this.Xq());bE(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&q===29&&(this.oI=void 0);v=F<this.qf&&!!this.Zv;var e=bE(this.videoData)&&a;if(v&&!e&&(this.wD.UQ("sdai",{sk2bk:F.toFixed(3), mt:(F-this.timestampOffset).toFixed(3),lstadj:this.qf.toFixed(3)}),this.qf=NaN,this.timestampOffset-=1E3,(e=this.Zv)!=null)){NSv(e,e.timestampOffset-1E3);var K=e.lR,p=new Set;for(f in K.C){var m=K.C[f].index,y=m.pu();y&&!p.has(y)&&(y.startTime+=1E3,y.endTime=y.startTime+y.duration,p.add(y));m.segments.length&&(y=m.segments[m.segments.length-1],m.segments=[],m.segments.push(y))}e.Y&&e.Y.yb();Yi(e.Z,0,0,!0)}var f=F;(e=bE(this.videoData))&&a?f=!0:(K=this.S("html5_always_allow_sqless_sync")&&this.videoData.MW(), (e||K)&&M==="chunkSelectorSynchronize"?f=!0:(e=!isFinite(f)||(this.C?Lj(this.C,f):f>=this.lC())||!g.dS(this.videoData),e||(f={st:f,mst:this.lC()},this.C&&this.S("html5_high_res_seek_logging")&&(f.ht=this.C.z8(),f.adft=Trm(this.C)),this.wD.UQ("seeknotallowed",f)),f=e));if(!f)return this.T&&(this.T=null,nUm(this)),g.yX(this.getCurrentTime());f=.005;a&&this.S("html5_sabr_seek_no_shift_tolerance")&&(f=0);if(Math.abs(F-this.U)<=f&&this.eE)return this.D;M&&(f=F,(this.rD.hJ()||this.S("html5_log_seek_reasons"))&& this.wD.UQ("seekreason",{reason:M,tgt:f}));q&&(this.kQ.U=q);this.eE&&AZ(this);this.D||(this.D=new xn);F&&!isFinite(F)&&k$_(this,!1);(M=b||v)||(M=F,M=!(this.videoData.isLivePlayback&&this.videoData.T&&!this.videoData.T.C&&!(this.mediaElement&&this.mediaElement.kR()>0&&tG(this.mediaElement)>0)||qb(this.videoData)&&this.Ho()===this.lC(!1)?0:isFinite(M)||!qb(this.videoData)));M||(F=vO(this,F,u));F&&!isFinite(F)&&k$_(this,!1);this.Z=F;this.zj=w;this.U=F;this.N=0;this.C&&(u=this.C,w=F,rXG(u,w,!1),Si7(u, w));u=this.wD;w=F;M={o$:J,seekSource:q};u.dY.Z=w;b=u.dI;b.mediaTime=w;b.C=!0;M.o$&&u.MG(M);M=w>u.videoData.endSeconds&&w>u.videoData.limitedPlaybackDurationInSeconds;u.nN&&M&&isFinite(w)&&Bo3(u);w<u.lC()-.01&&(M=up(u.playerState,2),g.x(M,8)&&(M=up(M,4)),u.gY(M));u.publish("SEEK_TO",u,w);this.D&&(J?I&&this.KW.start(I):(J={g$:a,seekSource:q},this.eE=!0,Cm4(this,J)));(J=this.wD.nN)&&F>J.start&&Bo3(this.wD);return this.D}; g.A.lC=function(F){if(!this.videoData.isLivePlayback)return Iga(this.wD);var J;return nY(this.videoData)&&((J=this.mediaElement)==null?0:J.isPaused())&&this.videoData.C?(F=this.getCurrentTime(),Myk(this.Ze(F)*1E3)+F):this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this.videoData)&&this.videoData.C?F?this.videoData.C.eE||0:this.videoData.C.G8||0:qb(this.videoData)&&this.videoData.fW&&this.videoData.C?this.videoData.C.lC()+this.timestampOffset:this.videoData.T&&this.videoData.T.C?!F&& this.C?this.C.z8():Iga(this.wD)+this.timestampOffset:this.mediaElement?oR()?Myk(this.mediaElement.l_().getTime()):tG(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.A.Ho=function(){if(g.oH(this.videoData)){var F=this.wD;g.oH(F.videoData);var J,b;return(b=(J=F.II)==null?void 0:J.Ho())!=null?b:F.videoData.Ho()}if(this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this.videoData)){var I;return((I=this.videoData.C)==null?void 0:I.rf)||0}J=this.videoData?this.videoData.Ho()+this.timestampOffset:this.timestampOffset;return nY(this.videoData)&&this.videoData.C&&(b=Number((F=this.videoData.progressBarStartPosition)==null?void 0:F.utcTimeMillis)/1E3,F= this.getCurrentTime(),F=this.Ze(F)-F,!isNaN(b)&&!isNaN(F))?Math.max(J,b-F):J}; g.A.dU=function(){this.D||this.seekTo(this.Z,{Ky:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.A.RD=function(){return this.eE&&!isFinite(this.U)}; g.A.X_=function(){OjJ(this,null);this.kQ.dispose();g.R.prototype.X_.call(this)}; g.A.Cy=function(){var F={};this.Zv&&Object.assign(F,this.Zv.Cy());this.mediaElement&&Object.assign(F,this.mediaElement.Cy());return F}; g.A.mL=function(F){this.timestampOffset=F}; g.A.getStreamTimeOffset=function(){return qb(this.videoData)?0:this.videoData.C?this.videoData.C.getStreamTimeOffset():0}; g.A.Xq=function(){return this.timestampOffset}; g.A.Ze=function(F){return this.videoData&&this.videoData.C?this.videoData.C.Ze(F-this.timestampOffset):NaN}; g.A.jN=function(){if(!this.mediaElement)return 0;if(EW(this.videoData)){var F=this.mediaElement,J=F.Z4();F=(qt(J)>0&&F.getDuration()?J.end(J.length-1):0)+this.timestampOffset-this.Ho();J=this.lC()-this.Ho();return Math.max(0,Math.min(1,F/J))}return this.mediaElement.jN()}; g.A.TV=function(F){this.W&&(this.W.C=F)}; g.A.CI=function(F,J){this.wD.UQ("requestUtcSeek",{time:F});bE(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.oI=F);var b;(b=this.Zv)==null||b.CI(F);J&&(this.Gj=J)}; g.A.l4=function(F){bE(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.oI=void 0);if(this.Gj)this.wD.UQ("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Gj}),this.wD.seekTo(this.Gj,{Ky:"utcSeekingFallback_streamTime"}),this.Gj=0;else{var J=this.getCurrentTime();isNaN(J)||(F=this.Ze(J)-F,J-=F,this.wD.UQ("utcSeekingFallback",{source:"estimate",timeSeconds:J}),this.wD.seekTo(J,{Ky:"utcSeekingFallback_estimate"}))}}; g.A.hP=function(){this.Gj=0}; g.A.S=function(F){return this.rD&&this.rD.S(F)};g.z(aX,g.R);aX.prototype.start=function(){this.U.start()}; aX.prototype.stop=function(){this.U.stop()}; aX.prototype.clear=function(){for(var F=g.N(this.C.values()),J=F.next();!J.done;J=F.next())J.value.clear()}; aX.prototype.sample=function(){for(var F=g.N(this.T),J=F.next();!J.done;J=F.next()){var b=g.N(J.value);J=b.next().value;b=b.next().value;this.C.has(J)||this.C.set(J,new IxC(npL.has(J)));this.C.get(J).update(b())}this.U.start()}; var npL=new Set(["networkactivity"]);IxC.prototype.update=function(F){this.C?(this.buffer.add(F-this.C_||0),this.C_=F):this.buffer.add(F)}; IxC.prototype.clear=function(){this.buffer.clear();this.C_=0};p1.prototype.Ax=function(){return this.started}; p1.prototype.start=function(){this.started=!0}; p1.prototype.reset=function(){this.finished=this.started=!1};var q$C=!1;g.z(g.it,g.uA);g.A=g.it.prototype;g.A.X_=function(){this.logger.debug("dispose");g.ii(this.Eh);p0_(this.G0);this.visibility.unsubscribe("visibilitystatechange",this.G0);fx7(this);lt(this);g.D_.q_(this.Wk);this.rg();this.Pg=null;g.q8(this.videoData);g.q8(this.Qd);g.q8(this.Gx);g.q8(this.Pa);g.vk(this.t3I);this.nN=null;g.uA.prototype.X_.call(this)}; g.A.Bl=function(F,J,b,I,u){if(this.rD.S("html5_log_ad_playback_docid")){var w=this.zF();if(w.qoe){w=w.qoe;var M=this.rD.Tj||"yt";g.VT(w,g.dr(w.provider),"ad_playback",[F,J,b,u,M])}}else this.zF().Bl(F,J,b);this.S("html5_log_media_perf_info")&&this.UQ("adloudness",{ld:I.toFixed(3),cpn:F})}; g.A.M4=function(){var F;return(F=this.Zv)==null?void 0:F.M4()}; g.A.E5=function(){var F;return(F=this.Zv)==null?void 0:F.E5()}; g.A.cQ=function(){var F;return(F=this.Zv)==null?void 0:F.cQ()}; g.A.yw=function(){var F;return(F=this.Zv)==null?void 0:F.yw()}; g.A.So=function(){return this.videoData.So()}; g.A.wZ=function(){return this.S("html5_not_reset_media_source")&&!this.So()&&!this.videoData.isLivePlayback&&g.Xc(this.videoData)&&!this.rD.supportsGaplessShorts()}; g.A.XR=function(){if(this.videoData.Y){var F;if(!(F=this.videoData.nI)){var J;F=(J=this.t_.F_())==null?void 0:J.M4()}this.videoData.nI=F;if(!(F=this.videoData.aX)){var b;F=(b=this.t_.F_())==null?void 0:b.E5()}this.videoData.aX=F}if(t54(this.videoData)||!xs(this.videoData))b=this.videoData.errorDetail,this.Je(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),b,b,this.videoData.yx||void 0);this.S("html5_generate_content_po_token")&&this.Bp();this.S("html5_enable_d6de4")&&this.JM(); if(this.S("html5_ssap_cleanup_player_switch_ad_player")||this.S("html5_ssap_cleanup_ad_player_on_new_data"))if(b=this.t_.Yl())this.I1=b.clientPlaybackNonce}; g.A.Db=function(){return this.Gk}; g.A.g2=function(){!this.uN||this.uN.iR();this.uN=new g.Oi(new kU(this.videoData,this.rD,this));this.Gk=new hX(this.rD,this,this.uN)}; g.A.getVideoData=function(){return this.videoData}; g.A.J=function(){return this.rD}; g.A.hp=function(F){return this.ji.hp(this.Pg,F===void 0?!1:F)}; g.A.zF=function(F){if(F)a:{for(var J=this.Gk,b=g.N(J.C.values()),I=b.next();!I.done;I=b.next())if(I=I.value,I.getVideoData().videoId===F){F=I;break a}F=J.U}else F=this.Gk.zF();return F}; g.A.o6=function(){return this.visibility}; g.A.I3=function(){return this.mediaElement&&this.mediaElement.Yx()?this.mediaElement.Pb():null}; g.A.Qa=function(){return this.mediaElement}; g.A.J2=function(){if(this.S("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.J().W&&this.J().houseBrandUserStatus&&this.UQ("hbut",{status:this.J().houseBrandUserStatus});if(this.videoData.o8())return!0;this.Je("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.A.PE=function(F){(F=F===void 0?!1:F)||g.oH(this.videoData)||om(this.zF());this.kc=F;!this.J2()||this.zz.Ax()?g.jB(this.rD)&&this.videoData.isLivePlayback&&this.zz.Ax()&&!this.zz.finished&&!this.kc&&this.Ha():(this.zz.start(),F=this.zF(),g.dr(F.provider),F.qoe&&iSJ(F.qoe),this.Ha())}; g.A.Ha=function(){if(this.videoData.isLoaded()){var F=this.Qd;g.eB(F.PN.experiments,"html5_player_min_build_cl")>0&&g.eB(F.PN.experiments,"html5_player_min_build_cl")>728418168&&ddo(F,"oldplayer");jXG(this)}else this.videoData.MJ||this.videoData.b1?this.kc&&g.jB(this.rD)&&this.videoData.isLivePlayback||(this.videoData.MJ?skm(this.videoData):(F=this.zF(),F.qoe&&(F=F.qoe,T$(F,"protected"),F.provider.videoData.D?F.X6():F.provider.videoData.subscribe("dataloaded",F.X6,F)),PMz(this.videoData))):!this.videoData.loading&& this.h1&&WPG(this)}; g.A.Ow=function(F){this.xl=F;this.Zv&&(mbv(this.Zv,new g.vg(F)),this.UQ("sdai",{sdsstm:1}))}; g.A.pQ=function(F){this.II=F;this.Zv&&this.Zv.pQ(F)}; g.A.NP=bk(15);g.A.isFullscreen=function(){return this.visibility.isFullscreen()}; g.A.isBackground=function(){return this.visibility.isBackground()}; g.A.d_=function(){var F=this;this.logger.debug("Updating for format change");zx(this).then(function(){return yM(F)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.A.Df=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.PE();this.J2()&&!g.x(this.playerState,128)&&(this.KA.Ax()||(this.KA.start(),this.videoData.XI?this.gY(IY(this.playerState,4)):this.gY(IY(IY(this.playerState,8),1))),dgm(this))}; g.A.JQ=function(){return this.zz.finished}; g.A.sendAbandonmentPing=function(){g.x(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Xm(!0),fx7(this),g.D_.q_(this.Wk))}; g.A.vk=function(F,J){F=F===void 0?!0:F;(J===void 0||J)&&this.mediaElement&&this.mediaElement.pause();this.gY(F?new g.FC(14):new g.FC)}; g.A.B5=function(){uJY(this.zF())}; g.A.Je=function(F,J,b,I,u,w){this.logger.debug(function(){return"set player error: ec="+F+", detail="+u}); var M,q;g.jq(A_5,b)?M=b:b?q=b:M="GENERIC_WITHOUT_LINK";I=(I||"")+(";a6s."+A3());if(F==="auth"||F==="drm.auth"||F==="heartbeat.stop")b&&(I+=";r."+b.replaceAll(" ","_")),w&&(I+="sr."+w.replaceAll(" ","_"));J={errorCode:F,errorDetail:u,errorMessage:q||g.nV[M]||"",Ap:M,yx:w||"",BG:I,Zu:J,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=F;Ng(this,"dataloaderror");this.gY(bp(this.playerState,128,J));g.D_.q_(this.Wk);lt(this);this.Cc()}; g.A.d6=function(F){this.CN=this.CN.filter(function(J){return F!==J}); this.logger.debug(function(){return"set preroll ready for "+F}); g.oH(this.videoData)&&!this.Bx()&&this.qW.QJ("pl_pr");this.KA.Ax()&&dgm(this)}; g.A.Bx=function(){var F;(F=!!this.CN.length)||(F=this.f8.C.array[0],F=!!F&&F.start<=-0x8000000000000);return F}; g.A.B0=function(){return this.dY.B0()}; g.A.isPlaying=function(){return this.playerState.isPlaying()}; g.A.DR=function(){return this.playerState.DR()&&this.videoData.XI}; g.A.getPlayerState=function(){return this.playerState}; g.A.Tr=function(F){var J;(J=this.Zv)==null||J.Tr(F)}; g.A.Uu=function(F){var J;(J=this.Zv)==null||J.Uu(F)}; g.A.getPlayerType=function(){return this.playerType}; g.A.getPreferredQuality=function(){if(this.Pg){var F=this.Pg;F=F.videoData.hG.compose(F.videoData.VZ);F=b9(F)}else F="auto";return F}; g.A.Ni=bk(20);g.A.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.A.setMediaElement=function(F){this.logger.debug("set media element");if(this.mediaElement&&F.Pb()===this.mediaElement.Pb()&&(F.isView()||this.mediaElement.isView())){if(F.isView()||!this.mediaElement.isView())g.Ve(this.Jl),this.mediaElement=F,this.mediaElement.wD=this,O1J(this),this.dY.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.rg();if(!this.playerState.isError()){var J=up(this.playerState,512);g.x(J,8)&&!g.x(J,2)&&(J=IY(J,1));F.isView()&&(J=up(J,64));this.gY(J)}this.mediaElement= F;this.mediaElement.wD=this;!g.jB(this.rD)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);O1J(this);this.dY.setMediaElement(this.mediaElement);this.S("html5_prewarm_media_source")&&!this.Qd.Sq()&&EyC(this.mediaElement)}}; g.A.rg=function(F,J,b){F=F===void 0?!1:F;J=J===void 0?!1:J;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var I=this.getCurrentTime();I>0&&(this.dY.Z=I);this.dY.setMediaElement(null);!F&&this.wZ()?Ctz(this):this.vl(b);this.Zv&&(FJ(this.Zv),jL(this,J));this.tY.stop();if(this.mediaElement&&(!this.KA.Ax()&&!this.wK()||this.playerState.isError()||g.x(this.playerState,2)||this.gY(IY(this.playerState,512)),this.mediaElement)){g.Ve(this.Jl);if(F||!this.mediaElement.isView())this.qW.AG("mesv_s"), this.mediaElement.stopVideo(),Gx(this);this.mediaElement=this.mediaElement.wD=null}}}; g.A.playVideo=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;var b=this,I,u,w,M,q,v;return g.S(function(a){if(a.C==1){b.logger.debug("start play video");var e=window.google_image_requests;e&&e.length>10&&(window.google_image_requests=e.slice(-10));if(g.x(b.playerState,128))return a.return();if(b.Qd.rC())return b.publish("signatureexpired"),a.return();b.mediaElement&&om(b.zF());b.Df();(g.x(b.playerState,64)||F)&&b.gY(IY(b.playerState,8));return b.KA.finished&&b.mediaElement?b.Pg||!b.g3?a.gD(2): g.T(a,b.g3,3):a.return()}if(a.C!=2&&g.x(b.playerState,128))return a.return();if(!b.videoData.T)return b.videoData.isLivePlayback&&!g.HG(b.rD.D,!0)?(I="html5.unsupportedlive",u=2):(I=b.videoData.So()?"fmt.unplayable":"fmt.noneavailable",u=1),g.rQ(Error("selectableFormats")),b.Je(I,u,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),a.return();if(b.Hh()&&b.videoData.T.C)return b.logger.debug("rebuild playbackData for airplay"),a.return(zx(b));if(Mg(b))e=b.dY,Aw(e.videoData)?!e.isAtLiveHead(e.getCurrentTime())&& e.B0()&&e.wD.seekTo(Infinity,{Ky:"seektimeline_peggedToLive",seekSource:34}):g.oH(e.videoData)&&e.getCurrentTime()<e.Ho()&&e.wD.seekTo(e.Ho(),{Ky:"seektimeline_outOfWindow"});else if(Aw(b.videoData)){if(w=b.getCurrentTime()<b.Ho()-15,M=g.dS(b.videoData)&&b.playerState.isPaused(),q=g.x(b.playerState,1024),e=b.dY,e.videoData.MW()&&cE(e.videoData)||q||!w&&!M||(M?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{Ky:"videoplayer_unpauseLiveOnly",seekSource:102})):(b.logger.debug("seek to min seekable for live because of out of window"), b.seekTo(b.Ho(),{Ky:"videoplayer_outOfWindow",seekSource:102}))),!b.isAtLiveHead(void 0,!0)&&b.B0()&&(b.logger.debug("seek to head for live because pegged to live"),v={Ky:"videoplayer_peggedToLive",seekSource:34},b.seekTo(Infinity,v)),g.x(b.playerState,256)&&b.videoData.Gj&&b.dY.RD())return b.gY(wM(b.playerState,8,4)),a.return()}else g.oH(b.videoData)&&b.getCurrentTime()<b.Ho()-0&&b.seekTo(b.Ho(),{Ky:"videoplayer_outOfWindow"});g.x(b.playerState,4)&&g.x(b.playerState,16)&&b.gY(wM(b.playerState,9, 4));if(yM(b,J))return ncz(b),a.return();xga(b);g.N4(a)})}; g.A.M$=function(F){this.logger.debug("reset media source");F&&this.je(new E5("qoe.restart",F));this.gY(IY(this.playerState,2048));this.vl();F=this.videoData.C&&vd(this.videoData.C);var J=this.mediaElement&&this.mediaElement.isView();F||J?(this.Zv&&RCz(this.Zv),this.sV()):(yM(this),this.playerState.isOrWillBePlaying()&&this.playVideo())}; g.A.W0=function(){if(!this.Pg)return[];var F=B9_(this.ji,this.Pg,this.YA());return this.Pg.C.W0(F)}; g.A.Jo=function(){if(!this.Pg)return[];var F=B9_(this.ji,this.Pg,this.YA());return this.Pg.C.Jo(F)}; g.A.YA=function(){var F=this.Le?this.Le.YA():HC(this.videoData)&&this.videoData.C&&vd(this.videoData.C)?this.videoData.PS?QE:JaJ:QE;this.aO&&(F=F.compose(BU5));return F}; g.A.gA=function(){return this.Pg?B9_(this.ji,this.Pg,this.YA()):QE}; g.A.bU=function(){var F=this.B1(),J=this.t_.Yl().videoId;return this.t_.S$.bU(F)||this.t_.S$.bU(J)}; g.A.kE=function(F,J,b){var I;if((I=this.zF().qoe)!=null){var u=F.C,w=g.dr(I.provider);g.VT(I,w,"vfi",[u===0?"":""+u,u===0?"A":"M"])}this.videoData.hG=F;if(this.Pg&&J&&(J=this.ji,I=this.Pg,I.C.C)){var M=I.C.videoInfos[0].video.C;u=M!==0&&F.C===M;w=rB()>M;M=J.S("html5_dont_save_under_1080")&&M<1080;if(!u||!w&&!M){var q;u=ru4(J,(q=I.C)==null?void 0:q.videoInfos);q=J.wD.getPlaybackRate();q>1&&u&&(q=EO7(J.rD.D,I.C.videoInfos,q),F.C!==0&&q<F.C&&J.wD.setPlaybackRate(1));var v,a;F=g.CF[b9(F)];q=((v=I.videoData.U)== null?void 0:(a=v.video)==null?void 0:a.C)||0;g.rm("yt-player-quality",{quality:F,previousQuality:q},31104E3);J.rD.schedule.policy.Z=rB()>=480;if(J.S("html5_exponential_memory_for_sticky")){v=J.rD.GU;a=1;var e=e===void 0?!1:e;Ox_(v,"sticky-lifetime");v.values["sticky-lifetime"]&&v.Tz["sticky-lifetime"]||(v.values["sticky-lifetime"]=0,v.Tz["sticky-lifetime"]=0);e&&Nn(v,"sticky-lifetime")>.0625&&(a=v.Tz["sticky-lifetime"]*2);v.values["sticky-lifetime"]+=1*Math.pow(2,v.C/a);v.Tz["sticky-lifetime"]=a; v.Z.start()}if(J.S("html5_perf_cap_override_sticky")){e=J.T;v=J.S("html5_perserve_av1_perf_cap");v=v===void 0?!1:v;if(v===void 0?0:v){a=sr();J=g.N(Object.keys(a));for(F=J.next();!F.done;F=J.next())F=F.value,F.indexOf("1")!==0&&delete a[F];g.rm("yt-player-performance-cap",a,2592E3)}else g.sy("yt-player-performance-cap");jiz(v);if(v){v=g.N(dd.keys());for(a=v.next();!a.done;a=v.next())a=a.value,a.startsWith("1")||dd.delete(a);v=g.N(lm.values());for(a=v.next();!a.done;a=v.next())a=a.value,a.startsWith("1")|| lm.delete(a);v=g.N(e.keys());for(a=v.next();!a.done;a=v.next())a=a.value,a.startsWith("1")||e.delete(a)}else dd.clear(),lm.clear(),e.clear()}}}this.Zv&&(e=this.Zv,b=b||"",e.policy.C?Dq(e.U.C,b):Dq(e.C.D,b));this.Z$()}; g.A.getUserPlaybackQualityPreference=function(){return this.videoData.T&&!this.videoData.T.C?b9(this.videoData.hG):Jt[rB()]}; g.A.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.A.setUserAudio51Preference=function(F,J){this.getUserAudio51Preference()!==F&&(this.UQ("toggle51",{pref:F}),g.rm("yt-player-audio51",F,J?31536E3:2592E3),this.d_())}; g.A.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.A.setProximaLatencyPreference=function(F){var J=this.getProximaLatencyPreference();this.UQ("proxima",{pref:F});g.rm("yt-player-proxima-pref",F,31536E3);J!==F&&(F=this.dY,F.nW=!0,F.wD.seekTo(Infinity,{Ky:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.A.getProximaLatencyPreference=function(){var F;return(F=Sv())!=null?F:0}; g.A.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.A.Bp=function(){this.videoData.videoId?this.t_.Bp(this.videoData):this.UQ("povid",{})}; g.A.JM=function(){this.videoData.videoId?this.t_.JM(this.videoData):this.UQ("piavid",{})}; g.A.Z$=function(){if(!this.iR()&&!g.x(this.playerState,128)&&this.videoData.T){if(this.videoData.T.C)mP(this);else{var F=E$(this),J=this.videoData;a:{var b=this.videoData.g9;if(F.C){for(var I=g.N(b),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.getInfo(),M=g.CF[w.video.quality];if((!F.T||w.video.quality!=="auto")&&M<=F.C){b=u;break a}}b=b[b.length-1]}else b=b[0]}J.bR=b;ToJ(this,F.reason,cZo(this,this.videoData.bR))}if(this.S("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.dY.V= !1,this.playVideo()}}; g.A.sU=function(F,J){if(this.iR()||g.x(this.playerState,128))return!1;var b,I=!((b=this.videoData.T)==null||!b.C);b=I&&J?this.getCurrentTime()-this.Xq():NaN;if(this.rD.experiments.pW("html5_record_audio_format_intent")){var u=this.zF();if(u.qoe){u=u.qoe;var w=[F.j3.id,isNaN(b)?"m":"t"];g.VT(u,g.dr(u.provider),"afi",w)}}if(I)return J&&(I=hrC(this.dY),this.UQ("aswh",{id:F.id,xtags:F.xtags,bh:I.toFixed(3)})),this.Zv.setAudioTrack(F,b,J),!0;if(S$7(this)){a:{J=this.mediaElement.audioTracks();for(I=0;I< J.length;++I)if(b=J[I],b.label===F.j3.getName()){if(b.enabled){J=!1;break a}J=b.enabled=!0;break a}J=void 0}J&&this.UQ("hlsaudio",{id:F.id})}else{a:if(J=this.videoData,J.Z&&!t1(J.Z)||F===J.eD||!J.g9||J.g9.length<=0)J=!1;else{I=g.N(J.g9);for(b=I.next();!b.done;b=I.next()){b=b.value;if(!(b instanceof w7)){J=!1;break a}u=F.j3.getId();b.U&&(KqY(b.U,u),b.gw=null)}J.eD=F;J=!0}J&&yM(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.UQ("hlsaudio",{id:F.id}))}return!0}; g.A.getAvailableAudioTracks=function(){return g.oH(this.videoData)&&this.II?aKz(this.II).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.A.getAudioTrack=function(){if(S$7(this)){var F=Y$G(this);if(F)return F}return this.videoData.getAudioTrack()}; g.A.mR=function(){if(this.videoData.S("html5_trigger_loader_when_idle_network")&&!this.videoData.MW()&&bE(this.videoData)){var F;(F=this.Zv)!=null&&F.Va()}}; g.A.La=function(){if(LC(this.videoData)&&this.videoData.S("html5_gapless_append_early")){var F;(F=this.Zv)!=null&&F.Va()}}; g.A.Ul=function(F){F=F===void 0?!1:F;if(this.Zv){var J=this.Zv,b=J.Ul;var I=this.videoData;I=I.S("html5_ssdai_use_post_for_media")&&I.enableServerStitchedDai?!1:qb(I)&&I.Uo&&!I.isAd();b.call(J,I,F)}}; g.A.vl=function(F){F=F===void 0?!1:F;this.HN&&(this.logger.debug("remove media source"),d_v(this.HN),this.Ul(F),this.HN.dispose(),this.HN=null)}; g.A.SS=function(){return this.HN}; g.A.w5=function(F,J,b,I){function u(M){try{DgG(w,M,J,b)}catch(q){g.rQ(q),w.handleError(new E5("fmt.unplayable",{msi:"1",ename:q&&typeof q==="object"&&"name"in q?String(q.name):void 0},1))}} var w=this;J=J===void 0?!1:J;b=b===void 0?!1:b;QXo(this,I===void 0?!1:I);this.HN=F;this.wZ()&&ce(this.HN)==="open"?u(this.HN):zE_(this.HN,u)}; g.A.vc=function(F){this.logger.debug("onNeedKeyInfo");this.JI.set(F.initData,F);this.Le&&(this.Le.vc(F),this.S("html5_eme_loader_sync")||this.JI.remove(F.initData))}; g.A.L9=function(F){this.videoData.zd=g.HX("auto",F,!1,"u");mP(this)}; g.A.TV=function(F){var J=F.reason,b=F.C.info,I=F.token,u=F.videoId,w=this.zF(u),M=g.oH(this.videoData)?w.getVideoData():this.videoData;if(b!==M.Z){var q=!M.Z;M.Z=b;J!=="m"&&J!=="t"&&(J=q?"i":"a");var v=J==="m"||J==="t";this.rD.experiments.pW("html5_refactor_sabr_audio_format_selection_logging")?this.D1=new G1o(M,b,J,"",I,u):w.dC(new G1o(M,b,J,"",I));this.publish("internalaudioformatchange",M,!q&&v)}this.dY.TV(F.C.index)}; g.A.N8=function(F){this.publish("localmediachange",F)}; g.A.KL=function(F){F=F===void 0?{}:F;var J;(J=this.Zv)==null||J.KL(this.rD,Jw(this.videoData),F)}; g.A.rC=function(){return this.Qd.rC()}; g.A.SW=function(F){this.je(new E5("staleconfig",{reason:F}))}; g.A.handleError=function(F){this.Qd.handleError(F)}; g.A.Sq=function(){return this.Qd.Sq()}; g.A.l4=function(F){this.dY.l4(F)}; g.A.sV=function(F,J,b){F=F===void 0?!1:F;J=J===void 0?!1:J;b=b===void 0?!1:b;var I=this,u,w,M;return g.S(function(q){if(q.C==1){I.Zv&&I.Zv.CB();I.Zv&&I.Zv.iR()&<(I);if(I.S("html5_enable_vp9_fairplay")&&I.So()&&(u=I.videoData.C)!=null)for(var v in u.C)u.C.hasOwnProperty(v)&&(u.C[v].C=null,u.C[v].T=!1);I.gY(IY(I.playerState,2048));I.S("html5_ssap_keep_media_on_finish_segment")&&g.oH(I.videoData)?I.publish("newelementrequired",b):I.publish("newelementrequired");return F?g.T(q,zx(I),2):q.gD(2)}I.videoData.MW()&& ((w=I.Zv)==null?0:w.Gj)&&!Mg(I)&&((M=I.isAtLiveHead())&&Aw(I.videoData)?I.seekTo(Infinity,{Ky:"videoPlayer_getNewElement"}):I.videoData.SF&&I.Zv&&(v=I.Zv,v.lR.MW&&(v.lR.SF||v.lR.Z||v.lR.isPremiere?(v.seek(0,{Ky:"loader_resetSqless"}),v.videoTrack.V=!0,v.audioTrack.V=!0,v.videoTrack.D=!0,v.audioTrack.D=!0):lI(v.lR)&&tu(v))));J&&I.seekTo(0,{seekSource:105});g.x(I.playerState,8)&&(I.S("html5_ssap_keep_media_on_finish_segment")&&g.oH(I.videoData)?I.playVideo(!1,b):I.playVideo());g.N4(q)})}; g.A.lA=function(F){this.UQ("hgte",{ne:+F});this.videoData.Y=!1;F&&this.sV();this.Zv&&RCz(this.Zv)}; g.A.lz=function(F){this.UQ("newelem",{r:F});this.sV()}; g.A.pauseVideo=function(F){F=F===void 0?!1:F;if((g.x(this.playerState,64)||g.x(this.playerState,2))&&!F)if(g.x(this.playerState,8))this.gY(wM(this.playerState,4,8));else if(this.DR())yM(this);else return;g.x(this.playerState,128)||(F?this.gY(IY(this.playerState,256)):this.gY(wM(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.dS(this.videoData)&&this.Zv&&jL(this,!1)}; g.A.stopVideo=function(){this.pauseVideo();this.Zv&&(jL(this,!1),this.Zv.uq())}; g.A.Cc=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;if(this.wZ()&&J){var b;(b=this.mediaElement)==null||b.Cc()}else{var I;(I=this.mediaElement)==null||I.stopVideo()}Gx(this);lt(this);g.x(this.playerState,128)||(F?this.gY(up(up(IY(this.playerState,4),8),16)):this.gY(bp(this.playerState)));this.videoData.videoId&&this.rD.fW.remove(this.videoData.videoId)}; g.A.seekTo=function(F,J){J=J===void 0?{}:J;this.logger.debug(function(){return"SeekTo "+F+", "+JSON.stringify(J)}); g.x(this.playerState,2)&&yM(this);J.QEQ&&this.gY(IY(this.playerState,2048));J.seekSource!==58&&J.seekSource!==60||!this.S("html5_update_vss_during_gapless_seeking")||bjY(this.zF(),J.seekSource);this.dY.seekTo(F,J);this.f8.sync()}; g.A.MG=function(F){this.qW.Z.TT();g.x(this.playerState,32)||(this.gY(IY(this.playerState,32,F==null?void 0:F.seekSource)),g.x(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.Q6()}; g.A.P2=function(F){F=F==null?void 0:F.seekSource;g.x(this.playerState,32)?(this.gY(wM(this.playerState,16,32,F)),this.publish("endseeking",this)):g.x(this.playerState,2)||this.gY(IY(this.playerState,16,F));this.qW.Z.Pv(this.videoData,this.playerState.isPaused())}; g.A.p9=function(F){this.P2(F)}; g.A.yv=function(){this.publish("SEEK_COMPLETE")}; g.A.Ir=function(){this.publish("onAbnormalityDetected")}; g.A.eM=function(F){var J=this.t_,b=this.videoData.clientPlaybackNonce,I=this.playerType;if(F.scope===4){var u=F.type;if(u){var w=J.Nf(),M=w.getVideoData().clientPlaybackNonce;I===1&&(M=b);(J=Q_a(J,M))?(b=J.getVideoData())&&(F.writePolicy===2&&b.sabrContextUpdates.has(u)||b.sabrContextUpdates.set(u,F)):w.UQ("scuset",{ncpf:"1",ccpn:M,crcpn:b})}else g.rQ(Error("b/380308491: contextUpdateType is undefined"))}}; g.A.oK=function(){if(this.t_.Yl().fV&&this.playerType===2)return this.t_.oK("")}; g.A.getCurrentTime=function(){return this.dY.getCurrentTime()}; g.A.bK=function(){return this.dY.bK()}; g.A.Fb=function(){return this.dY.Fb()}; g.A.pV=function(F){return this.II&&(F=F||this.II.h4())?Mp(this.II,F):this.Fb()}; g.A.z8=function(){return this.dY.z8()}; g.A.getPlaylistSequenceForTime=function(F){return this.videoData.getPlaylistSequenceForTime(F-this.Xq())}; g.A.aG=function(){var F=NaN;this.mediaElement&&(F=this.mediaElement.aG());return F>=0?F:this.getCurrentTime()}; g.A.Ze=function(){var F;return((F=this.videoData.C)==null?0:F.Ze)?this.videoData.C.Ze(this.getCurrentTime()-this.Xq()):this.mediaElement&&(F=this.mediaElement.l_())&&(F=F.getTime(),!isNaN(F))?F/1E3+this.getCurrentTime():NaN}; g.A.getDuration=function(F){return g.oH(this.videoData)&&this.II?F?vtG(this.II,F):LS(this.II):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Xq():this.lC()?this.lC():0}; g.A.Jt=function(){var F=new vUa;if(this.Zv){var J=this.rD.schedule,b=this.rD.hJ();b=b===void 0?!1:b;F.TH=J.Gj;F.Oi=J.zj;F.bandwidthEstimate=ib(J);if(b){b=(J.Y.X3()*1E3).toFixed();var I=(J.WN.X3()*1E3).toFixed(),u=gN(J).toFixed(2),w=((J.V.X3()||0)*1E9).toFixed(2),M=J.T.X3().toFixed(0),q=J.fW.X3().toFixed(0),v=J.N.percentile(.5).toFixed(2),a=J.N.percentile(.92).toFixed(2),e=J.N.percentile(.96).toFixed(2),K=J.N.percentile(.98).toFixed(2);J.C?J.C.reset():J.C=new wN;J.C.add(J.kQ);J.C.add(J.interruptions.length); for(var p=0,m=J.interruptions.length-1;m>=0;m--){var y=J.interruptions[m];J.C.add(y-p);p=y}p=0;for(m=J.Z.length-1;m>=0;m--){y=J.Z[m];var f=y.stamp/36E5;J.C.add(f-p);p=f;J.C.add(y.net/1E3);J.C.add(y.max)}J=J.C.G7();F.C={ttr:b,ttm:I,d:u,st:w,bw:M,abw:q,v50:v,v92:a,v96:e,v98:K,"int":J}}gso(this.Zv,F)}else this.mediaElement&&(F.O8=ZO(this.mediaElement));F.TH=this.TH;F.Oi=this.Oi;F.T=this.isAtLiveHead()&&this.isPlaying()?NoG(this):NaN;return F}; g.A.h7=function(F,J){this.Oi+=F;this.TH+=J}; g.A.jN=function(){return this.mediaElement?g.dS(this.videoData)?1:EW(this.videoData)?this.isAtLiveHead()||this.B0()?1:this.dY.jN():this.mediaElement.jN():0}; g.A.o0=function(){var F=this.getCurrentTime();if(this.Le){var J="IT/"+(this.Le.C.getInfo()+"/"+b9(this.YA()));J+="/"+this.Le.getInfo()}else J="";var b=this.isGapless(),I=this.W9(),u=this.H2(),w=g.WO(this),M=this.getPlayerState(),q=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var v=0;var a="";if(this.xl){if(this.xl.Bu){a="D,";break a}v=this.xl.Jp();a=this.xl.h4().substring(0,4)}else this.II&&(v=this.II.Jp(),a=this.II.h4().substring(0,4));v>0?(v="AD"+v+", ",a&&(v+=a+", "),a=v):a=""}return{currentTime:F, d2:J,isGapless:b,W9:I,DC:u,DYD:w,playerState:M,xYj:q,suI:this.Yq,pH:a,rh_:this.mH()}}; g.A.Cy=function(F){var J={};if(F===void 0?0:F){Object.assign(J,this.zF().Cy());this.mediaElement&&(Object.assign(J,this.mediaElement.Cy()),Object.assign(J,this.mH()));this.Zv&&Object.assign(J,this.Zv.Cy());this.Le&&(J.drm=JSON.stringify(this.Le.Cy()));J.state=this.playerState.state.toString(16);g.x(this.playerState,128)&&(J.debug_error=JSON.stringify(this.playerState.e6));this.Bx()&&(J.prerolls=this.CN.join(","));this.videoData.M0&&(J.ismb=this.videoData.M0);this.videoData.latencyClass!=="UNKNOWN"&& (J.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(J.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)J.is_mosaic=1;this.videoData.cotn&&(J.is_offline=1,J.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(J.playerResponseCpn=this.videoData.playerResponseCpn);this.t_.isOrchestrationLeader()&&(J.leader=1);this.videoData.isLivePlayback&&(this.videoData.C&& yy(this.videoData.C)&&(J.segduration=yy(this.videoData.C)),F=this.dY,J.lat=F.W?EUo(F.W.Z):0,J.liveutcstart=this.videoData.liveUtcStartSeconds);J.relative_loudness=this.videoData.LF.toFixed(3);if(F=g.WO(this))J.optimal_format=F.video.qualityLabel;J.user_qual=rB();J.release_version="youtube.player.web_20250218_01_RC00";g.oH(this.videoData)&&this.II&&(J.ssap=iz(this.II))}J.debug_videoId=this.videoData.videoId;return J}; g.A.addCueRange=function(F){this.dO([F])}; g.A.removeCueRange=function(F){this.f8.L4([F])}; g.A.nJ=function(){this.f8.sync()}; g.A.oG=function(F,J){return this.f8.oG(F,J)}; g.A.dO=function(F,J){this.f8.TU(F,J)}; g.A.hc=function(F){this.f8.L4(F)}; g.A.Qs=function(F){var J=this.f8;F.length<=0||J.iR()||(F=J.C,F.array.sort(F.C))}; g.A.Y4=function(){return this.f8.Y4()||[]}; g.A.md=function(){return this.X7}; g.A.Hh=function(){return this.visibility.Hh()}; g.A.Rv=function(){this.mediaElement&&this.mediaElement.Rv()}; g.A.RxG=function(){Ng(this)}; g.A.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.A.X8=function(F){var J=F.target.dB();if(this.mediaElement&&this.mediaElement.dB()&&this.mediaElement.dB()===J){FXC(this,F.type);switch(F.type){case "error":var b=LB(this.mediaElement)||"",I=this.mediaElement.Aw();if(b==="capability.changed"){this.S("html5_restart_on_capability_change")?(this.UQ("capchg",{msg:I}),this.sV(!0)):zx(this);return}if(this.mediaElement.hasError()&&(N9G(this.Qd,b,{msg:I})||g.oH(this.videoData)&&this.II&&(I=this.playerState.e6,this.II.handleError(b,I==null?void 0:I.Zu))))return; if(this.isBackground()&&this.mediaElement.rB()===4){this.Cc();f1(this,"unplayable");return}break;case "durationchange":b=this.mediaElement.getDuration();isFinite(b)&&(!this.HN||b>0)&&b!==1&&this.GI(b);break;case "ratechange":this.Zv&&this.Zv.setPlaybackRate(this.mediaElement.getPlaybackRate());zr7(this.f8);this.zF().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":bV4(this);this.publish("onLoadedMetadata");hO3(this);b=this.Ze();this.videoData.tG&&(this.videoData.tG=b);break; case "loadstart":hO3(this);break;case "progress":case "suspend":this.Q6();this.publish("onLoadProgress",this,this.jN());break;case "playing":this.qW.AG("plev");this.Ci&&!Mg(this)&&(this.Ci=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Ky:"videoplayer_onPlaying"})));break;case "timeupdate":b=this.mediaElement&&!this.mediaElement.getCurrentTime();I=this.mediaElement&&this.mediaElement.kR()===0;if(b&&(!this.F9||I))return;this.F9=this.F9||!!this.mediaElement.getCurrentTime(); ocz(this);this.Q6();if(!this.mediaElement||this.mediaElement.dB()!==J)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.mQ().length>0&&this.mediaElement.Z4().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.Zv)return;this.S("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.kR()>2||!this.mediaElement.isSeeking()&&Mt(this.mediaElement.Z4(),this.mediaElement.getCurrentTime()))&& (b=this.mediaElement.Cy(),b.bh=ZO(this.mediaElement).toFixed(3),this.UQ("uwe",b));g.oH(this.videoData)&&this.II&&bs3(this.II,this.mediaElement.getCurrentTime());break;case "resize":bV4(this);this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.eb&&g.x(this.playerState,8)&&!g.x(this.playerState,1024)&&this.getCurrentTime()===0&&g.ia){f1(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.dB()=== J){FPa(this.dY,F,this.II||void 0);this.publish("videoelementevent",F);J=this.playerState;I=this.dI;var u=this.mediaElement;b=this.videoData.clientPlaybackNonce;var w=g.oH(this.videoData)&&this.II?LS(this.II):void 0;if(!g.x(J,128)){var M=J.state;u=u?u:F.target;var q=u.getCurrentTime();if(!g.x(J,64)||F.type!=="ended"&&F.type!=="pause"){w=w||u.getDuration();w=u.isEnded()||q>1&&Math.abs(q-w)<1.1;var v=F.type==="pause"&&u.isEnded();q=F.type==="ended"||F.type==="waiting"||F.type==="timeupdate"&&!g.x(J, 4)&&!nj(I,q);if(v||w&&q)u.CG()>0&&u.dB()&&(M=14);else switch(F.type){case "error":LB(u)&&(M|=128);break;case "pause":g.x(J,256)?(M^=256)||(M=64):g.x(J,32)||g.x(J,2)||g.x(J,4)||(M=4,g.x(J,1)&&g.x(J,8)&&(M|=1));break;case "playing":q=M;M=(M|8)&-1093;q&4?(M|=1,JV(I,u,!0)):nj(I,u.getCurrentTime())&&(M&=-2);g.x(J,1)&&JV(I,u)&&(M|=1);break;case "seeking":M|=16;g.x(J,8)&&(M|=1);M&=-3;break;case "seeked":M&=-17;JV(I,u,!0);break;case "waiting":g.x(J,2)||(M|=1);JV(I,u);break;case "timeupdate":q=g.x(J,16),w= g.x(J,4),(g.x(J,8)||q)&&!w&&nj(I,u.getCurrentTime())&&(M=8),JV(I,u)&&(M|=1)}}I=M;M=null;I&128&&(M=F.target,u=LB(M),q=1,u?(u==="capability.changed"&&(q=2),w="GENERIC_WITHOUT_LINK",v=M.Cy(),v.mediaElem="1",/AUDIO_RENDERER/.test(M.Aw())&&(w="HTML5_AUDIO_RENDERER_ERROR"),M={errorCode:u,errorMessage:g.nV[w]||"",Ap:w,BG:dk(v),Zu:q,cpn:J.e6?J.e6.cpn:""}):M=null,M&&(M.cpn=b));J=bp(J,I,M)}!g.x(this.playerState,1)&&g.x(J,1)&&LPa(this,"evt"+F.type);this.gY(J)}}}; g.A.om_=function(F){F=F.C.availability==="available";F!==this.X7&&(this.X7=F,this.publish("airplayavailabilitychange"))}; g.A.JJv=function(){var F=(0,g.jR)(),J=this.mediaElement.Hh();this.UQ("airplay",{ia:J});!J&&!isNaN(this.bf)&&F-this.bf<2E3||(this.bf=F,J!==this.Hh()&&(F=this.visibility,F.C!==J&&(F.C=J,F.G0()),this.UQ("airplay",{rbld:J}),this.d_()),this.publish("airplayactivechange"))}; g.A.rk=function(F){if(this.Zv){var J=this.Zv,b=J.Z,I=J.getCurrentTime(),u=Date.now()-b.N;b.N=NaN;b.UQ("sdai",{adfetchdone:F,d:u});F&&!isNaN(b.V)&&b.U!==3&&rg(b.Zv,I,b.V,b.D);b.policy.D?b.T=NaN:b.Z=NaN;Bs(b,4,b.U===3?"adfps":"adf");FJ(J)}}; g.A.v8=function(){g.ii(this.Eh);this.tY.stop();this.videoData.Gj=!0;this.rD.Ys=!0;this.rD.Kk=0;var F=this.Qd;if(F.videoData.U){var J=F.PN.D,b=F.videoData.U.YQ;J.U.has(b)&&(J.U.delete(b),LW(J))}F.C.stop();this.CV();g.x(this.playerState,8)&&this.gY(up(this.playerState,65));this.kc=!1;JXo(this.zF());g.Z_(this.Gx);this.publish("playbackstarted");(F=g.kC("yt.scheduler.instance.clearPriorityThreshold"))?F():Fs(0,0)}; g.A.CV=function(){var F=this.t_.Yl(),J={},b={};!Dj("pbs",this.qW.timerName)&&Gp.measure&&Gp.getEntriesByName&&(Gp.getEntriesByName("mark_nr")[0]?t6G("mark_nr"):t6G());F.videoId&&(J.videoId=F.videoId);F.clientPlaybackNonce&&!this.S("web_player_early_cpn")&&(J.clientPlaybackNonce=F.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(b.isPausedOnLoad=!0);b.itag=F.U?Number(F.U.itag):-1;F.Ly&&(b.preloadType=String(this.f6?2:1));J.liveStreamMode=RW5[ze(F)];J.playerInfo=b;this.qW.infoGel(J); if(this.Zv){F=this.Zv.timing;window&&window.performance&&window.performance.getEntriesByName&&(F.T&&(J=window.performance.getEntriesByName(F.T),J.length&&(J=J[0],F.tick("vri",J.fetchStart),F.tick("vdns",J.domainLookupEnd),F.tick("vreq",J.requestStart),F.tick("vrc",J.responseEnd))),F.U&&(J=window.performance.getEntriesByName(F.U),J.length&&(J=J[0],F.tick("ari",J.fetchStart),F.tick("adns",J.domainLookupEnd),F.tick("areq",J.requestStart),F.tick("arc",J.responseEnd))));F=F.ticks;for(var I in F)F.hasOwnProperty(I)&& this.qW.tick(I,F[I])}}; g.A.Y1=function(F,J,b){F=(F+(this.Ox===3?.3:0))/J;J=Math.floor(F*4);J>this.Ox&&(this.UQ("vpq",{q:J,cpn:b||this.videoData.clientPlaybackNonce,ratio:F.toFixed(3)}),this.Ox=J)}; g.A.oO=function(){this.Ox=-1}; g.A.Q6=function(F){var J=this;F=F===void 0?!1:F;if(this.mediaElement&&this.videoData){cXG(this.dY,this.isPlaying());var b=this.getCurrentTime();!this.Zv||g.x(this.playerState,4)&&g.dS(this.videoData)||g.x(this.playerState,32)&&bE(this.videoData)||ywo(this.Zv,b);this.S("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.Y1(b,this.videoData.lengthSeconds);b>5&&(this.dY.Z=b);var I=g.Lw();I?g.D_.q_(this.Wk):g.m1(this.Wk);var u=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!u||nY(this.videoData))&& !g.x(this.playerState,128)){var w=function(){if(J.mediaElement&&!g.x(J.playerState,128)){J.rD.hJ()&&FXC(J,"pfx");var M=J.getCurrentTime();J.S("html5_buffer_underrun_transition_fix")&&(M-=J.Xq());var q=ZO(J.mediaElement),v=g.x(J.playerState,8),a=nj(J.dI,M),e=TJ_(J.dI,M,(0,g.jR)(),q);v&&a?J.gY(up(J.playerState,1)):v&&e?(v=J.getDuration(),a=Aw(J.videoData),v&&Math.abs(v-M)<1.1?(J.UQ("setended",{ct:M,bh:q,dur:v,live:a}),J.mediaElement.iS()?(J.logger.debug("seek to 0 because of looping"),J.seekTo(0,{Ky:"videoplayer_loop", seekSource:37})):J.vk()):(J.playerState.isBuffering()||LPa(J,"progress_fix"),J.gY(IY(J.playerState,1)))):(v&&!a&&!e&&M>0&&(v=(Date.now()-J.EN)/1E3,a=J.getDuration(),M>a-1&&J.UQ("misspg",{t:M.toFixed(2),d:a.toFixed(2),r:v.toFixed(2),bh:q.toFixed(2)})),J.playerState.isPaused()&&J.playerState.isBuffering()&&ZO(J.mediaElement)>5&&J.gY(up(J.playerState,1)));J.Q6()}}; this.mediaElement.mQ().length===0?this.Wk=I?g.D_.Ti(w,100):g.pl(w,100):this.Wk=I?g.D_.Ti(w,500):g.pl(w,500)}this.videoData.KW=b;this.II&&this.II.g_();!F&&this.isPlaying()&&UgC(this);k1J(this.ji,this.Pg,this.Qa(),this.isBackground())&&mP(this);this.publish("progresssync",this,F);u&&nY(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.A.bL=function(){this.Je("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.A.H2=function(){return this.zF().H2()}; g.A.tp=function(){return this.Zv?this.Zv.tp():ib(this.rD.schedule,!0)}; g.A.gY=function(F){if(!g.MO(this.playerState,F)){this.logger.debug(function(){return"Setting state "+F.toString()}); var J=new g.vL(F,this.playerState);this.playerState=F;J2m(this);var b=!this.SA.length;this.SA.push(J);var I=this.mediaElement&&this.mediaElement.isSeeking();I=J.oldState.state===8&&!I;g.e1(J,1)&&I&&g.x(this.playerState,8)&&!g.x(this.playerState,64)&&this.Zv&&(QH7(this.Zv),this.mediaElement&&ZO(this.mediaElement)>=5&&RN_(this.ji,this.Pg)&&mP(this));(I=g.eB(this.rD.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.x(F,1)&&(g.x(F,8)||g.x(F,16))?this.bI.start(I):this.bI.stop();(aJ(J,8)<0|| g.e1(J,1024))&&this.tY.stop();!g.e1(J,8)||this.videoData.Gj||g.x(J.state,1024)||this.tY.start();g.x(J.state,8)&&aJ(J,16)<0&&!g.x(J.state,32)&&!g.x(J.state,2)&&this.playVideo();g.x(J.state,2)&&EW(this.videoData)&&(this.GI(this.getCurrentTime()),this.Q6(!0));g.e1(J,2)&&(this.Xm(!0),this.rD.hJ()&&this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this.videoData)&&this.videoData.C&&(I={minst:""+this.videoData.C.rf,cminst:""+(this.videoData.C.Ho()+this.Xq()),maxst:""+this.videoData.C.G8, hts:""+this.videoData.C.eE,cmaxst:""+(this.videoData.C.lC()+this.Xq())},this.UQ("sabrSeekableBoundaries",I)));g.e1(J,128)&&this.Cc();this.videoData.C&&this.videoData.isLivePlayback&&!this.Of&&(aJ(J,8)<0?nna(this.videoData.C):g.e1(J,8)&&this.videoData.C.resume());oUz(this.dY,J);IWa(this.zF(),J);if(b&&!this.iR())try{for(var u=g.N(this.SA),w=u.next();!w.done;w=u.next()){var M=w.value;Nr7(this.f8,M);this.publish("statechange",M)}}finally{this.SA.length=0}}}; g.A.oZ=function(){this.qW.tick("qoes")}; g.A.dU=function(){this.dY.dU()}; g.A.LJ=function(F,J,b,I){a:{var u=this.Qd;I=I===void 0?"LICENSE":I;b=b.substring(0,256);var w=jg(J);F==="drm.keyerror"&&this.Le&&this.Le.U.keys.length>1&&u.Z<96&&(F="drm.sessionlimitexhausted",w=!1);if(w)if(u.videoData.U&&u.videoData.U.video.isHdr())joJ(u,F);else{if(u.wD.Je(F,J,I,b),yuJ(u,{detail:b}))break a}else u.je(F,{detail:b});F==="drm.sessionlimitexhausted"&&(u.UQ("retrydrm",{sessionLimitExhausted:1}),u.Z++,H1G(u.wD))}}; g.A.HyE=function(){var F=this,J=g.eB(this.rD.experiments,"html5_license_constraint_delay"),b=Ll();J&&b?(J=new g.ty(function(){F.Z$();Ng(F)},J),g.k(this,J),J.start()):(this.Z$(),Ng(this))}; g.A.Nq=function(F){this.publish("heartbeatparams",F)}; g.A.mw=function(F){this.UQ("keystatuses",osJ(F));var J="auto",b=!1;this.videoData.U&&(J=this.videoData.U.video.quality,b=this.videoData.U.video.isHdr());if(this.S("html5_drm_check_all_key_error_states")){var I=hLa(J,b);I=gr(F)?cwa(F,I):F.Z.includes(I)}else{a:{J=hLa(J,b);for(I in F.C)if(F.C[I].status==="output-restricted"){var u=F.C[I].type;if(J===""||u==="AUDIO"||J===u){I=!0;break a}}I=!1}I=!I}if(this.S("html5_enable_vp9_fairplay")){if(b)if(F.V){var w;if((w=this.Le)==null?0:S$(w.C))if((b=this.Le)== null)b=0;else{J=w=void 0;u=g.N(b.U.values());for(var M=u.next();!M.done;M=u.next())M=M.value,w||(w=Ubo(M,"SD")),J||(J=Ubo(M,"AUDIO"));b.H9({sd:w,audio:J});b=w==="output-restricted"||J==="output-restricted"}else b=!I;if(b){this.UQ("drm",{dshdr:1});joJ(this.Qd);return}}else{this.videoData.sK||(this.videoData.sK=!0,this.UQ("drm",{dphdr:1}),this.sV(!0));return}var q;if((q=this.Le)==null?0:S$(q.C))return}else if(q=F.V&&I,b&&!q){joJ(this.Qd);return}I||cwa(F,"AUDIO")&&cwa(F,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), F=osJ(F),this.aO?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.S("html5_report_fatal_drm_restricted_error_killswitch")||this.Je("drm.keyerror",2,void 0,"info."+F)):(this.aO=!0,this.je(new E5("qoe.restart",Object.assign({},{retrydrm:1},F))),mP(this),H1G(this)))}; g.A.htz=function(){if(!this.videoData.Gj&&this.mediaElement&&!this.isBackground()){var F="0";this.mediaElement.kR()>0&&ZO(this.mediaElement)>=5&&this.videoData.T&&this.videoData.T.C&&(this.gY(IY(this.playerState,1)),LPa(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),F="1");J2m(this);var J=this.videoData.T;F={restartmsg:F,mfmt:!HC(this.videoData),mdrm:!(!(J&&J.videoInfos&&J.videoInfos.length&&J.videoInfos[0].Ke)||this.Le),mfmtinfo:!this.videoData.U,prerolls:this.Bx()?this.CN.join(","): "0"};if(this.Le){J=this.Le;if(J.U.size<=0){var b="ns;";J.N||(b+="nr;");J=b+="ql."+J.T.length}else J=osJ(J.U.values().next().value),J=dk(J);F.drmp=J}var I;Object.assign(F,((I=this.Zv)==null?void 0:I.Cy())||{});var u;Object.assign(F,((u=this.mediaElement)==null?void 0:u.Cy())||{});this.zF().je("qoe.start15s",dk(F));this.publish("loadsofttimeout")}}; g.A.GI=function(F){this.videoData.lengthSeconds!==F&&(this.videoData.lengthSeconds=F,Ng(this))}; g.A.Xm=function(F,J){var b=this;F=F===void 0?!1:F;if(!this.y4)if(Dj("att_s","player_att")||Oz("att_s",void 0,"player_att"),this.S("use_rta_for_player"))(function(){var u,w,M,q;return g.S(function(v){switch(v.C){case 1:if(!(u=F)){v.gD(2);break}return g.T(v,g.EBG(),3);case 3:u=!v.U;case 2:if(u)return v.return();g.lk(v,4);w=AXk(b.zF());if(!w)throw Error();M={};return g.T(v,g.dq3((M.cpn=b.videoData.clientPlaybackNonce,M.encryptedVideoId=b.videoData.videoId||"",M),3E4),6);case 6:q=v.U;if(b.y4)throw Error(); if(!q.challenge)throw g.rQ(Error("Not sending attestation ping; no attestation challenge string")),Error();b.y4=!0;var a=[q.challenge];q.error?a.push("r1c="+q.error):q.webResponse&&a.push("r1a="+q.webResponse);var e;((e=q.adblockReporting)==null?void 0:e.reportingStatus)!==void 0&&a.push("r6a="+q.adblockReporting.reportingStatus);var K;((K=q.adblockReporting)==null?void 0:K.broadSpectrumDetectionResult)!==void 0&&a.push("r6b="+q.adblockReporting.broadSpectrumDetectionResult);w(a.join("&"));Oz("att_f", void 0,"player_att");g.Wa(v,0);break;case 4:g.dY(v),Oz("att_e",void 0,"player_att"),g.N4(v)}})})().then(function(){J==null||J()}); else{var I=new g.lY7(this.videoData);if("c1a"in I.iB&&!g.GR.isInitialized()){Oz("att_wb",void 0,"player_att");this.uu===2&&Math.random()<.01&&g.rQ(Error("Botguard not available after 2 attempts"));if(F)return;if(this.uu<5){g.Z_(this.Pa);this.uu++;return}}(I=g.fY7(I))?(Oz("att_f",void 0,"player_att"),MAv(this.zF(),I),this.y4=!0):Oz("att_e",void 0,"player_att")}}; g.A.LP=function(F){F=F===void 0?!1:F;if(Aw(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.B0()||g.dS(this.videoData)))F=this.getCurrentTime();else if(g.oH(this.videoData)&&this.II){F=this.II;var J=this.getCurrentTime();F=(F=MFk(F,J*1E3))?(F.jo()-F.Ez())/1E3:0}else F=this.lC(F);return F}; g.A.rA=function(){return g.oH(this.videoData)?this.videoData.Ho():this.Ho()}; g.A.lC=function(F){return this.dY.lC(F===void 0?!1:F)}; g.A.Ho=function(){return this.dY.Ho()}; g.A.Xq=function(){return this.dY?this.dY.Xq():0}; g.A.getStreamTimeOffset=function(){return this.dY?this.dY.getStreamTimeOffset():0}; g.A.Kc=function(){var F=0;this.rD.S("web_player_ss_media_time_offset")&&(F=this.getStreamTimeOffset()===0?this.Xq():this.getStreamTimeOffset());return F}; g.A.setPlaybackRate=function(F){var J;this.playbackRate!==F&&ru4(this.ji,(J=this.videoData.T)==null?void 0:J.videoInfos)&&(this.playbackRate=F,mP(this));this.playbackRate=F;this.mediaElement&&this.mediaElement.setPlaybackRate(F)}; g.A.getPlaybackRate=function(){return this.playbackRate}; g.A.getPlaybackQuality=function(){var F="unknown";if(this.videoData.U&&(F=this.videoData.U.video.quality,F==="auto"&&this.mediaElement)){var J=this.I3();J&&J.videoHeight>0&&(F=$z(J.videoWidth,J.videoHeight))}return F}; g.A.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())}; g.A.t6=function(){this.zF().t6()}; g.A.sendVideoStatsEngageEvent=function(F,J){var b=this.zF();b.C?(b=XJ(b.C,"engage"),b.eE=F,b.send(J)):J&&J()}; g.A.C8=function(F){return this.zF().C8(F)}; g.A.isAtLiveHead=function(F,J){J=J===void 0?!1:J;return Aw(this.videoData)&&(this.Pr||J)?this.dY.isAtLiveHead(F):!1}; g.A.mJ=function(){var F=this.lC(),J=this.getCurrentTime(),b;(b=!Aw(this.videoData))||(b=this.dY,b=!(b.C&&b.C.T));return b||this.B0()||isNaN(F)||isNaN(J)?0:Math.max(0,F-J)}; g.A.qT=function(F){(this.Pr=F)||this.tY.stop();this.videoData.C&&(F?this.videoData.C.resume():nna(this.videoData.C));if(this.Zv){var J=this.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&this.wK()&&this.videoData.isLivePlayback;F&&!J?this.Zv.resume():jL(this,!0)}g.x(this.playerState,2)||F?g.x(this.playerState,512)&&F&&this.gY(up(this.playerState,512)):this.gY(IY(this.playerState,512));J=this.zF();J.qoe&&(J=J.qoe,g.VT(J,g.dr(J.provider),"stream",[F?"A":"I"]))}; g.A.Wv=function(F){F={n:F.name,m:F.message};this.zF().je("player.exception",dk(F))}; g.A.yz=bk(25);g.A.gK=bk(52);g.A.rT=function(F){this.zF().rT(F)}; g.A.dM=function(F){this.zF().dM(F)}; g.A.zV=function(F){this.zF().zV(F)}; g.A.XF=bk(30);g.A.IQ=bk(35);g.A.V_=function(F){this.zF().V_(F)}; g.A.Mj=function(){this.UQ("hidden",{},!0)}; g.A.mH=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.A.YM=function(){return this.Zv?this.Zv.YM():!0}; g.A.setLoop=function(F){this.loop=F;this.mediaElement&&!g.jB(this.rD)&&this.mediaElement.setLoop(F);this.Zv&&this.S("html5_loop_skip_set_end_of_stream")&&(F?this.Zv.policy.Om=!0:RCz(this.Zv))}; g.A.iS=function(){return this.mediaElement&&!g.jB(this.rD)?this.mediaElement.iS():this.loop}; g.A.mL=function(F){this.UQ("timestamp",{o:F.toString()});this.dY.mL(F)}; g.A.G$=function(F){this.qW.tick(F)}; g.A.QJ=function(F){return this.qW.QJ(F)}; g.A.AG=function(F){this.qW.AG(F)}; g.A.UQ=function(F,J,b){b=b===void 0?!1:b;this.zF().UQ(F,J,b)}; g.A.fQ=function(F,J,b){b=b===void 0?!1:b;this.zF().UQ(F,J,b)}; g.A.je=function(F){this.zF().je(F.errorCode,dk(F.details));F=F.errorCode;if(this.videoData.isLivePlayback&&(F==="qoe.longrebuffer"||F==="qoe.slowseek")||F==="qoe.restart"){F=this.Zv?z04(this.Zv.videoTrack):{};var J,b;this.UQ("lasoe",Object.assign(this.Zv?z04(this.Zv.audioTrack):{},(J=this.HN)==null?void 0:(b=J.C)==null?void 0:b.N2()));var I,u;this.UQ("lvsoe",Object.assign(F,(I=this.HN)==null?void 0:(u=I.U)==null?void 0:u.N2()))}}; g.A.Ep=function(F,J,b){this.zF().Ep(F,J,b)}; g.A.QE=function(F,J,b,I,u,w,M,q){var v;if((v=this.videoData.C)!=null&&v.isLive){var a=J.playerType===2?J:F,e=F.videoData.videoId,K=J.videoData.videoId;if(e&&K){v=this.zF();if(v.qoe){var p=v.qoe,m=F.cpn,y=J.cpn,f=a.videoData.If,d=p.provider.videoData.clientPlaybackNonce,G=p.provider.videoData.videoId,P=y!==d&&K!==G;d=m!==d&&e!==G;p.reportStats();p.adCpn&&p.adCpn!==m||(p.adCpn=d?m:"",p.Tj=d?e:"",p.adFormat=d?f:void 0,SA(p,2,w?4:u?2:0,y,K,I),p.reportStats(),p.adCpn=P?y:"",p.Tj=P?K:"",p.adFormat=P?f: void 0,SA(p,2,w?5:u?3:1,m,e,b),p.reportStats())}b=F.cpn;if(v.T.has(b)){if(u=v.T.get(b),DW(u,!0).send(),Rm(u),b!==v.provider.videoData.clientPlaybackNonce){UU_(u);var r;(r=v.C)==null||k6m(r);v.T.delete(b)}}else v.UV=v.provider.videoData.clientPlaybackNonce,v.UV&&v.C&&(v.T.set(v.UV,v.C),DW(v.C).send(),Rm(v.C));r=J.cpn;a=a.videoData;I-=this.Kc();if(v.T.has(r)){I=v.T.get(r);var Q=I.T&&isNaN(I.D)?QT(I):NaN;I=cfG(I,!1);isNaN(Q)||(I.V=Q);I.send()}else I=qik(v,v.provider,a,I),v.T.set(r,I),xUz(I,new g.vL(IY(new g.FC, 8),new g.FC)),DUJ(I),(Q=v.C)==null||Rm(Q);v.UV=r;this.S("html5_unify_csi_server_stitched_transition_logging")?hq7(F.cpn,J.cpn,this.videoData.clientPlaybackNonce,J.videoData,M,void 0,q):(Q=this.videoData.clientPlaybackNonce,v=J.videoData,F=(F.cpn===Q?"video":"ad")+"_to_"+(J.cpn===Q?"video":"ad"),Q={},v.W&&(Q.cttAuthInfo={token:v.W,videoId:v.videoId}),M&&(Q.startTime=M),Rr(F,Q),g.Qk({targetVideoId:v.videoId,targetCpn:J.cpn,isSsdai:!0},F),XH("pbs",q!=null?q:(0,g.jR)(),F))}}else J=this.logger,bkJ(J.tag, 5,"SSTEvent for nonSS",J.U)}; g.A.Kt=function(){var F=this.t_,J=F.e0;F.e0=[];return J}; g.A.Xh=function(F){this.videoData.Zt=!0;this.je(new E5("sabr.fallback",F));this.sV(!0)}; g.A.sy=function(F,J){this.videoData.P4=!0;if(J===void 0||J)this.je(new E5("qoe.restart",F)),this.sV(!0);this.videoData.vV()&&this.S("html5_reload_caption_on_ssdai_fallback")&&this.t_.VE()}; g.A.lP=function(F){this.UQ("sdai",{aftimeout:F});this.je(new E5("ad.fetchtimeout",{timeout:F}))}; g.A.Qb=function(F,J){this.UQ("timelineerror",F);F=new E5("dai.timelineerror",F);J?this.Je("dai.timelineerror",1,"RETRYABLE_ERROR",dk(F.details)):this.je(F)}; g.A.Iv=function(){return g.dr(this.zF().provider)}; g.A.getPlayerSize=function(){return this.DZ.getPlayerSize()}; g.A.lk=function(){return this.DZ.lk()}; g.A.Iu=function(){return this.qW}; g.A.w$=function(){return this.t_.w$()}; g.A.getVolume=function(){return this.t_.getVolume()}; g.A.tO=function(){return this.t_.tO()}; g.A.isMuted=function(){return this.t_.isMuted()}; g.A.Pz=function(){return this.t_.Pz()}; g.A.PA=function(){this.Of=!0}; g.A.S=function(F){return this.rD.S(F)}; g.A.y3=function(F,J,b,I,u){this.UQ("xvt",{m:F,g:J?1:0,tt:b?1:0,np:I?1:0,c:u})}; g.A.YB=function(){var F;(F=this.Zv)==null||F.resume()}; g.A.wK=function(){return g.te(this.CN,"ad")}; g.A.l1=function(){var F=this.getCurrentTime(),J=F-this.Xq();var b=this.mediaElement?qt(this.mediaElement.Z4()):0;b=Math.floor(Math.max(b-J,0))+100;var I;if(!this.S("html5_ssdai_disable_seek_to_skip")&&((I=this.Zv)==null?0:I.nU(J,this.lC())))return this.UQ("sdai",{skipad:1,ct:J.toFixed(3),adj:0}),!0;var u;return((u=this.Zv)==null?0:u.l1(J,b))?(this.UQ("sdai",{skipad:1,ct:J.toFixed(3),adj:b.toFixed(3)}),bE(this.videoData)&&this.Zv.seek(J+b,{seekSource:89,Ky:"videoplayer_skipServerStitchedAd"}),b1_(this.dY, F),!0):!1}; g.A.hJ=function(){return this.rD.hJ()}; g.A.f1=function(){if(this.S("html5_generate_content_po_token"))return this.videoData.IF||"";this.t_.Am();return this.rD.jZ||""}; g.A.To=function(){if(this.videoData.videoId)return this.videoData.Cl}; g.A.B1=function(){return this.videoData.videoId}; g.A.f$=function(){return this.t_.GV}; g.A.Pq=function(){return this.kc}; g.A.Rs=function(){return this.t_.Rs()}; g.A.CI=function(F,J){this.dY.CI(F,J)}; g.A.hP=function(){this.dY.hP()}; g.A.Y3=function(F,J){var b=this.S("html5_generate_content_po_token")?this.videoData:void 0;this.t_.Y3(F,J,b)}; g.A.KU=function(F,J){var b;(b=this.Zv)==null||b.KU(F,J)}; g.A.H$=function(){var F=this.SS();return!!F&&F.H$()}; g.A.IH=function(){return this.II}; g.A.ol=function(F,J){this.zF().ol(F,J)}; g.A.Lu=function(){return this.zF().Lu()}; g.A.NU=function(){return this.videoData.pT}; g.A.W9=function(){return this.t_.W9()}; g.A.eI=function(){return this.t_.eI(this)}; g.A.n9=function(){this.dN=!0}; g.A.zA=function(){return this.I1}; g.A.AI=function(F){var J;(J=this.Zv)==null||J.AI(F)};g.z(uN_,oj);g.z(wUv,oj);g.A=wUv.prototype;g.A.seekToChapterWithAnimation=function(F){var J=this;if(g.aj(this.api)&&!(F<0)){var b=this.api.getVideoData(),I=b.wX;if(I&&F<I.length){I=g.N(I);for(var u=I.next();!u.done;u=I.next())if(u=u.value,u.index===F){Mn7(this,u.startTime,u.title);return}}this.S("web_key_moments_markers")&&(b=b.Yw)&&F<b.length&&b.forEach(function(w,M){M===F&&Mn7(J,w.timeRangeStartMillis,w.title)})}}; g.A.seekToTimeWithAnimation=function(F,J){g.aj(this.api)&&Mn7(this,F,J)}; g.A.setMacroMarkers=function(F,J){J={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:J}}}}}};F=F.getVideoData();F.getWatchNextResponse();F&&F.getWatchNextResponse()==null&&(k$(F,{raw_watch_next_response:J}),F.publish("dataupdated"))}; g.A.changeMarkerVisibility=function(F,J,b){var I=this.api.getVideoData();if(I){var u=!1;if(F)for(F=g.N(J),J=F.next();!J.done;J=F.next()){J=J.value;var w=I.cN;if(w&&!w.includes(J))switch(b){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":qO4(J,I)||(u=!0,w=void 0,(w=I.cN)==null||w.push(J));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":w.length===0&&(u=!0,w=void 0,(w=I.cN)==null||w.push(J));break;default:u=!0,w=void 0,(w=I.cN)==null||w.push(J)}}else for(b= g.N(J),F=b.next();!F.done;F=b.next())F=F.value,I.visibleOnLoadKeys.includes(F)||g.Hk(I.cN,F)&&(u=!0);u&&this.api.publish("updatemarkervisibility")}}; g.A.isSameMarkerTypeVisible=function(F){var J=this.api.getVideoData();return J?qO4(F,J):!1};g.z(VM,oj); VM.prototype.updateMetadata=function(){var F=this,J=this.api.getVideoData();if(J!=null&&J.o8()){var b=this.api.J(),I=[],u="";if(!b.eE){var w=eT7(this);g.sV(b)&&w?(I=KXa(w.thumbnailDetails),w.album&&(u=Ka(w.album))):I=[{src:J.lr("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var M;((M=this.api.getVideoData())==null?0:M.Y)&&pUz(this);v0a(this);agC(this);navigator.mediaSession.metadata=new MediaMetadata({title:J.title,artist:J.author,artwork:I,album:u});b=J=null;g.Ef(this.api)&&(J=function(){F.api.nextVideo()}, b=function(){F.api.previousVideo()}); PO("nexttrack",J);PO("previoustrack",b)}}; VM.prototype.X_=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var F=g.N("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),J=F.next();!J.done;J=F.next())PO(J.value,null);var b;((b=this.api.getVideoData())==null?0:b.Y)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});oj.prototype.X_.call(this)};g.z(BO,oj);BO.prototype.Z=function(F){return F.compositeEmbargo!==void 0}; BO.prototype.X_=function(){oj.prototype.X_.call(this);this.U.clear()};g.z(zTz,oj);g.A=zTz.prototype;g.A.queueOfflineAction=function(F,J,b,I){var u=this,w,M;return g.S(function(q){return q.C==1?(w=Rs(u.api.TF()))?g.T(q,w.EB([F],J,b,I),3):q.gD(2):q.C!=2&&(M=q.U,M.length)?q.return(M[0]):q.return(Promise.reject())})}; g.A.updateDownloadState=function(F,J){var b=Rs(this.api.TF());return b?b.updateDownloadState(F,J):Promise.reject()}; g.A.pauseVideoDownload=function(F){var J=Rs(this.api.TF());J&&J.uP(F)}; g.A.resumeVideoDownload=function(F){var J=this,b;return g.S(function(I){return(b=Rs(J.api.TF()))?I.return(b.pU(F)):I.return(Promise.reject())})}; g.A.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()}; g.A.refreshAllStaleEntities=function(F){F===void 0&&(F=14400);var J=Rs(this.api.TF());return J?J.refreshAllStaleEntities(F):Promise.reject()}; g.A.setUpPositionSyncInterval=function(F){var J=Rs(this.api.TF());J&&J.setUpPositionSyncInterval(F)};g.z(Tx,oj);Tx.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}}; Tx.prototype.getAvailableQualityData=function(){var F=this.api.getVideoData();if(!F)return[];var J=[],b,I,u=(b=F.getPlayerResponse())==null?void 0:(I=b.playabilityStatus)==null?void 0:I.paygatedQualitiesMetadata;I=(u==null?void 0:u.qualityDetails)||[];b=new Map;b=g.Um(I)&&!Array.isArray(I)?new Map(Object.entries(I)):new Map(I.map(function(M){return[M.key,M.value]})); if(I=u==null?void 0:u.restrictedAdaptiveFormats){u=[];I=g.N(I);for(var w=I.next();!w.done;w=I.next())w=w.value,w=JG(w.mimeType,w.quality,w.itag.toString(),w.width.toString(),w.height.toString(),w.qualityLabel),u.push(w);F=g.IU(F);ea(u);I=[];u=g.N(u);for(w=u.next();!w.done;w=u.next())w=w.value,qv(F,w,this.api.J().D)===!0&&I.push(w);J=J.concat(NAC(I,!1,b))}F=this.api.Jo();J=J.concat(NAC(F,!0,b));b=[];if(this.api.S("web_player_enable_premium_hbr_in_h5_api"))return J=fga(J),lg_(J),J;F={};J=g.N(J);for(u= J.next();!u.done;u=J.next())u=u.value,I=u.quality,F[I]||(u.formatId=void 0,b.push(u),F[I]=!0);return b};var ft={},t2b=(ft["internal-error"]=-1,ft["non-recoverable-error"]=-2,ft["api-disabled-by-application"]=-3,ft["invalid-argument"]=-4,ft["token-provider-invalid"]=-5,ft);g.z(ro,oj);ro.prototype.JM=function(F){var J=this;if(da3())if(!this.U&&this.C){GN7(this,F);try{this.C.then(function(){jsa(J,F)},function(b){SL(b,"player_update"); J.handleError(b,F)})}catch(b){SL(b,"player_update_catch"),this.handleError(b,F)}}else this.U?jsa(this,F):this.api.UQ("pf",{m:this.U?1:0, p:this.C?1:0})}; ro.prototype.handleError=function(F,J){g.rQ(F);if(this.api.S("html5_enable_d6de4_cold_start_and_error")){var b=0;F.mediaIntegrityErrorName?b||(b=t2b[F.mediaIntegrityErrorName]):F.code&&(b=F.code());J.Cl={Sz_:{code:b}}}};g.z(s$,g.U);s$.prototype.VG=function(F){F=F?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":F,title:F});this.api.Dl()}; s$.prototype.onClick=function(){this.api.togglePictureInPicture()};g.z(Yc,oj);Yc.prototype.createButton=function(){var F=this;this.button=new s$(this.api);g.k(this,this.button);this.api.KO(this.button);this.events.B(this.api,"videodatachange",function(){Vn4(F)}); Vn4(this)}; Yc.prototype.setDocumentPictureInPicture=function(F){this.api.o6().mU(F);F=this.api.JN();var J=sQv(this.api.TF());J&&(F?J.load():J.unload());this.api.publish("documentpictureinpicturechange")};g.z(Pda,oj);g.z(XI,g.U);g.A=XI.prototype;g.A.aD=function(){}; g.A.tx=function(){}; g.A.jM=function(){return!0}; g.A.Zv_=function(){if(this.expanded){this.nW.show();var F=this.T.element.scrollWidth}else F=this.T.element.scrollWidth,this.nW.hide();this.If=this.zj+F;g.qr(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.zj:this.If)+"px";this.oI.start()}; g.A.h9=function(){this.badge.element.style.width=(this.expanded?this.If:this.zj)+"px";this.bR.start()}; g.A.gh=function(){this.Z&&this.G.logVisibility(this.badge.element,this.jM());this.Tj&&this.G.logVisibility(this.dismissButton.element,this.jM()&&this.DS())}; g.A.jC=function(F){this.Gj=F;C1(this);$c(this);this.sY()}; g.A.YVG=function(){g.qr(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.A.DS=function(){return this.eE||this.Gj||!this.Y}; g.A.sY=function(){this.jM()?this.N.show():this.N.hide();this.gh()}; g.A.ye=function(){this.enabled=!1;this.sY()}; g.A.o7=function(F){F?this.Tj&&this.G.logClick(this.dismissButton.element):this.Z&&this.G.logClick(this.badge.element)}; g.A.phW=function(){this.sY()}; g.A.I7Q=function(F){this.Om=F===1;this.sY();g.qr(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.A.fyE=function(){g.qr(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.sY()};g.z(QM,g.vi);QM.prototype.gV=function(){this.publish("size-change")}; QM.prototype.focus=function(){this.content.focus()}; QM.prototype.uw=function(){this.publish("back")};g.z(g.RX,QM);g.A=g.RX.prototype;g.A.V6=function(F,J){if(J===void 0?0:J)this.items.push(F),this.menuItems.element.appendChild(F.element);else{J=g.AL(this.items,F,TAa);if(J>=0)return;J=~J;g.wy(this.items,J,0,F);bB(this.menuItems.element,F.element,J)}F.subscribe("size-change",this.tT,this);this.menuItems.publish("size-change")}; g.A.Yj=function(F){F.unsubscribe("size-change",this.tT,this);this.iR()||(g.Hk(this.items,F),this.menuItems.element.removeChild(F.element),this.menuItems.publish("size-change"))}; g.A.tT=function(){this.menuItems.publish("size-change")}; g.A.focus=function(){for(var F=0,J=0;J<this.items.length;J++){var b=this.items[J].element;if(b.getAttribute("role")==="menuitemradio"){if(b.getAttribute("aria-checked")==="true"){F=J;break}}else break}this.items[F].focus()}; g.A.DQ=function(){return this.items.length};g.z(g.kc,g.YJ);g.A=g.kc.prototype;g.A.show=function(){g.YJ.prototype.show.call(this);this.vp()}; g.A.hide=function(){g.YJ.prototype.hide.call(this);this.C.length>1&&g.oX(this)}; g.A.vp=function(){ssG(this);this.uT&&(r2k(this),g.lu(this.element,this.size))}; g.A.qL=function(){var F=this.C.pop();SOC(this,F,this.C[this.C.length-1],!0)}; g.A.cW=function(F){if(!F.defaultPrevented)switch(F.keyCode){case 27:this.fk();F.preventDefault();break;case 37:this.C.length>1&&this.qL();F.preventDefault();break;case 39:F.preventDefault()}}; g.A.focus=function(){this.C.length&&this.C[this.C.length-1].focus()}; g.A.X_=function(){g.YJ.prototype.X_.call(this);this.W&&this.W.dispose();this.V&&this.V.dispose()};g.z(hZ,g.kc);hZ.prototype.open=function(F,J){this.initialize(F.items)&&this.Bo(J,!!J)}; hZ.prototype.initialize=function(F){g.Dx(this.RH);if(F===void 0||F.length===0)return!1;var J=F.length;F=g.N(F);for(var b=F.next();!b.done;b=F.next())this.V6(b.value,J--);return!0}; hZ.prototype.V6=function(F,J){F.menuNavigationItemRenderer?Cdz(this,F.menuNavigationItemRenderer,J):F.menuServiceItemRenderer&&XUo(this,F.menuServiceItemRenderer,J)};g.z(cO,XI);g.A=cO.prototype;g.A.aD=function(F){F.target!==this.dismissButton.element&&F.target!==this.overflowButton.element&&(this.o7(),this.onClickCommand&&this.G.jE("innertubeCommand",this.onClickCommand))}; g.A.tx=function(){this.enabled=!1;this.N.hide()}; g.A.jM=function(){return!!this.C&&this.enabled}; g.A.onVideoDataChange=function(F,J){this.UH(J);if(this.C){this.Z6();a:if(!this.isCounterfactual){var b,I,u;this.banner.update({title:(b=this.C)==null?void 0:b.title,subtitle:(I=this.C)==null?void 0:I.subtitle,metadata:(u=this.C)==null?void 0:u.metadataText});var w;this.onClickCommand=g.O((w=this.C)==null?void 0:w.onTap,sT);var M;if(F=g.O((M=this.C)==null?void 0:M.onOverflow,sT))this.V=g.O(F,x8U);var q;if((q=this.C)==null?0:q.thumbnailImage){var v,a;M=((v=this.C)==null?void 0:(a=v.thumbnailImage)== null?void 0:a.sources)||[];if(M.length===0)break a;this.thumbnailImage.update({url:M[0].url})}else{var e;if((e=this.C)==null?0:e.thumbnailIconName){var K;this.thumbnailIcon.update({icon:(K=this.C)==null?void 0:K.thumbnailIconName})}}var p;this.shouldShowOverflowButton=!((p=this.C)==null||!p.shouldShowOverflowButton);var m;this.shouldHideDismissButton=!((m=this.C)==null||!m.shouldHideDismissButton)}var y;this.banner.element.setAttribute("aria-label",((y=this.C)==null?void 0:y.a11yLabel)||"");var f; this.KW=(f=this.C)==null?void 0:f.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;RT7(this)}}; g.A.qIQ=function(){this.isVisible=!0;RT7(this)}; g.A.iyf=function(){this.isVisible=!1;RT7(this)}; g.A.gh=function(){XI.prototype.gh.call(this);this.U&&this.G.logVisibility(this.banner.element,this.isVisible)}; g.A.o7=function(){XI.prototype.o7.call(this,!1);this.U&&this.G.logClick(this.banner.element)}; g.A.Lr=function(F){this.W||(this.W=new hZ(this.G),g.k(this,this.W));var J,b;if((J=this.V)==null?0:(b=J.menu)==null?0:b.menuRenderer)this.W.open(this.V.menu.menuRenderer,F.target),F.preventDefault()}; g.A.UH=function(){}; g.A.Z6=function(){}; g.A.X_=function(){this.G.Yo("suggested_action_view_model");XI.prototype.X_.call(this)};g.z(U$,cO); U$.prototype.UH=function(F){var J,b,I;this.productUpsellSuggestedActionViewModel=g.O((J=F.getWatchNextResponse())==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.suggestedActionViewModel,emR);var u;if((u=this.productUpsellSuggestedActionViewModel)==null?0:u.content){var w;this.C=g.O((w=this.productUpsellSuggestedActionViewModel)==null?void 0:w.content,hte)}var M,q;if(this.U=!!((M=this.productUpsellSuggestedActionViewModel)==null?0:(q=M.loggingDirectives)==null? 0:q.trackingParams)){var v,a;this.G.setTrackingParams(this.banner.element,((v=this.productUpsellSuggestedActionViewModel)==null?void 0:(a=v.loggingDirectives)==null?void 0:a.trackingParams)||null)}var e;this.isCounterfactual=!((e=this.productUpsellSuggestedActionViewModel)==null||!e.isCounterfactualServing)}; U$.prototype.Z6=function(){var F=[],J,b=g.N(((J=this.productUpsellSuggestedActionViewModel)==null?void 0:J.ranges)||[]);for(J=b.next();!J.done;J=b.next()){var I=J.value;I&&(J=Number(I.startTimeMilliseconds),I=Number(I.endTimeMilliseconds),isNaN(J)||isNaN(I)||F.push(new g.b6(J,I,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.G.TU(F)};g.z(DaY,oj);g.z(xc,oj);xc.prototype.onVideoDataChange=function(F,J){var b=this;if(!oU(J)&&(F==="newdata"&&OVk(this),this.U&&F==="dataloaded")){var I;A8(FR(this.api.J(),(I=this.api.getVideoData())==null?void 0:g.ks(I)),function(u){var w=xaJ(u);w&&(w=o0J(b,b.C||w))&&b.api.setAudioTrack(w,!0);b.T&&(b.T=!1,tnY(b,u))})}}; xc.prototype.n8=function(){var F=this;if(g.jB(this.api.J())){var J,b=g.LH(this.api.J(),(J=this.api.getVideoData())==null?void 0:g.ks(J));return A8(Ix(b),function(I){var u=SV();sf(u,I);return F.api.n8(u)})}return Ix(this.api.n8())};g.z(g.tZ,g.Rj);g.A=g.tZ.prototype;g.A.open=function(){g.O$(this.Rf,this.U)}; g.A.oQ=function(F){ZVJ(this);var J=this.options[F];J&&(J.element.setAttribute("aria-checked","true"),this.Ce(this.gX(F)),this.T=F)}; g.A.Wx=function(F){g.Dx(this.U);for(var J={},b=!1,I=0;I<F.length;I++){var u=F[I],w=this.options[u],M=u===this.T;M&&(b=!0);w&&w.priority===-I?(g.Q_(this.options[u],this.gX(u,!0)),delete this.options[u]):w=this.vC(u,-I,M);J[u]=w;this.U.V6(w,!0)}b||(this.T=null);F=g.N(Object.keys(this.options));for(b=F.next();!b.done;b=F.next())this.options[b.value].dispose();this.options=J}; g.A.vC=function(F,J,b,I){var u=this;b={X:"div",Dv:["ytp-menuitem",I?"ytp-menuitem-with-footer":""],L:{tabindex:"0",role:"menuitemradio","aria-checked":b?"true":"false"},j:[{X:"div",Dv:["ytp-menuitem-label"],sQ:"{{label}}"}]};I&&(I={X:"div",K:"ytp-menuitem-footer",j:[I]},b.j?b.j.push(I):b.j=[I]);J=new g.Rj(b,J,this.gX(F,!0));J.listen("click",function(){u.zv(F)}); return J}; g.A.enable=function(F){this.Y?F||(this.Y=!1,this.QW(!1)):F&&(this.Y=!0,this.QW(!0))}; g.A.QW=function(F){F?this.Rf.V6(this):this.Rf.Yj(this)}; g.A.qE=function(F){this.publish("select",F)}; g.A.zv=function(F){this.qE(F)}; g.A.gX=function(F){return F.toString()}; g.A.IS=function(F){F.defaultPrevented||F.keyCode!==39||(this.open(),F.preventDefault())}; g.A.X_=function(){this.Y&&this.Rf.Yj(this);g.Rj.prototype.X_.call(this);for(var F=g.N(Object.keys(this.options)),J=F.next();!J.done;J=F.next())this.options[J.value].dispose()};g.z(HVk,g.tZ);g.A=HVk.prototype;g.A.VG=function(){var F=this.Wz("Off");this.G.getPresentingPlayerType()!==2?(LXY(this),this.oQ(this.W),this.C&&(this.W===F?this.C="":this.setSleepTimerTimeLeft(this.C)),this.V&&this.setVideoTimeLeft(this.V),this.enable(!0)):(this.Wx([]),this.enable(!1))}; g.A.qE=function(F){FGk(this,F);this.Rf.qL()}; g.A.Wz=function(F){switch(F){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(F.toString()+" Minutes").toLowerCase()}}; g.A.onVideoDataChange=function(F){F==="dataloaded"&&LXY(this)}; g.A.Ys_=function(F){this.G.logVisibility(this.element,F)}; g.A.onClick=function(){this.G.logClick(this.element)}; g.A.resetSleepTimerMenuSettings=function(){FGk(this,this.Wz("Off"))}; g.A.setSleepTimerTimeLeft=function(F){this.C=F;this.Ce(F)}; g.A.setVideoTimeLeft=function(F){this.V=F;this.Z.Ce(F)};g.z(Zx,oj);Zx.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; Zx.prototype.setSleepTimerTimeLeft=function(F){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(F)}; Zx.prototype.setVideoTimeLeft=function(F){this.menuItem&&this.menuItem.setVideoTimeLeft(F)};g.z(Jqa,oj);g.z(g.L1,g.uA);g.A=g.L1.prototype;g.A.B=function(F,J){this.Z.B(this.Y,F,J,void 0,!this.C)}; g.A.cancel=function(){this.T&&(this.T=!1,this.publish("dragend",0,0,null));this.U&&(this.U=!1,this.publish("hoverend",0,0,null),FN(this),HO(this))}; g.A.YW=function(F){FN(this);this.B(J2("move"),this.pg);this.B(J2("out"),this.iN);this.B("touchstart",this.tZ);this.C&&this.B(J2("down"),this.Kh);var J=F.target;F=new g.K$(F.pageX,F.pageY);this.U=!0;this.publish("hoverstart",F.x,F.y,J);this.publish("hovermove",F.x,F.y,J)}; g.A.pg=function(F){var J=F.target;F=new g.K$(F.pageX,F.pageY);if(this.D){var b=this.D;this.D=null;if(b.relatedTarget===J&&p$(new g.K$(b.pageX,b.pageY),F))return}this.publish("hovermove",F.x,F.y,J)}; g.A.iN=function(F){var J=new g.K$(F.pageX,F.pageY),b=F.relatedTarget;try{if(b&&g.uB(this.target,b)){this.D=F;this.publish("hovermove",J.x,J.y,b);return}}catch(I){}FN(this);HO(this);this.U=!1;this.publish("hoverend",J.x,J.y,b)}; g.A.Sm_=function(F){this.YW(F);this.Kh(F)}; g.A.Kh=function(F){if(typeof F.button!=="number"||F.button===0){FN(this);this.Z.B(bd(F.target),J2("move"),this.Qfv);this.Z.B(bd(F.target),J2("up"),this.rF);var J=F.target;if(g.xM)this.B("dragstart",this.qr);else if(F.preventDefault(),(g.x2||eu)&&J)a:{for(var b=J;b;){if(v4k(b)||b.getAttribute("tabindex")==="-1"){b.focus();break a}b=b.parentElement}bd(J).activeElement.blur()}this.T=!0;F=new g.K$(F.pageX,F.pageY);this.publish("dragstart",F.x,F.y,J);this.publish("dragmove",F.x,F.y,J)}}; g.A.qr=function(F){F.preventDefault()}; g.A.Qfv=function(F){var J=F.target;J===bd(F.target)&&(J=null);F=new g.K$(F.pageX,F.pageY);this.publish("hovermove",F.x,F.y,J);this.publish("dragmove",F.x,F.y,J)}; g.A.rF=function(F){FN(this);this.T=!1;var J=dm(F),b=F.target;F=new g.K$(F.pageX,F.pageY);J&&g.uB(this.target,J)?(this.B(J2("move"),this.pg),this.B(J2("out"),this.iN),this.B(J2("down"),this.Kh),this.B("touchstart",this.tZ),this.publish("dragend",F.x,F.y,b)):(HO(this),this.U=!1,this.publish("dragend",F.x,F.y,b),this.publish("hoverend",F.x,F.y,b))}; g.A.tZ=function(F){var J=F.changedTouches[0];J&&(FN(this),this.N||(this.B("touchmove",this.SVv),this.B("touchend",this.YL),this.B("touchcancel",this.YL),this.W=J.identifier,F=F.target,this.U||(this.U=!0,this.publish("hoverstart",J.pageX,J.pageY,F)),this.publish("hovermove",J.pageX,J.pageY,F),this.C&&(this.T=!0,this.publish("dragstart",J.pageX,J.pageY,F),this.publish("dragmove",J.pageX,J.pageY,F))))}; g.A.SVv=function(F){var J=bnC(this,F);J&&(this.C&&F.preventDefault(),F=F.target,this.publish("hovermove",J.pageX,J.pageY,F),this.C&&this.publish("dragmove",J.pageX,J.pageY,F))}; g.A.YL=function(F){var J=bnC(this,F);if(J){FN(this);HO(this);this.U=!1;var b=F.target;this.C&&(this.V||F.preventDefault(),this.T=!1,this.publish("dragend",J.pageX,J.pageY,b));this.publish("hoverend",J.pageX,J.pageY,b)}}; g.A.X_=function(){this.C&&(g.xM&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");FN(this);g.uA.prototype.X_.call(this)}; var Ib3=!1;g.z(uG_,g.U);uG_.prototype.QN=function(){g.aN(this.element,"display","none");this.G.logVisibility(this.C,!1)};g.z(ud,oj);ud.prototype.eE=function(F,J){this.iR()||(this.Y=[F,J],this.C.subscribe("dragmove",this.W,this),this.C.subscribe("dragend",this.D,this),this.T||g.Z_(this.delay))}; ud.prototype.WN=function(){if(this.Z){this.T=!0;this.kQ=this.api.getPlaybackRate();this.fW=this.api.getPlayerStateObject().isPaused();var F=this.speedmasterUserEdu;g.aN(F.element,"display","");F.G.logVisibility(F.C,!0);this.api.setPlaybackRate(this.qf);this.api.hideControls();this.api.playVideo();this.V&&(this.V.vz=!0);this.Tj&&(this.Tj.hQ=!0)}}; ud.prototype.W=function(F,J){if(!this.T){F=[F,J];var b=this.Y;b&&F&&b.length===2&&F.length===2?(J=Math.abs(b[0]-F[0]),b=Math.abs(b[1]-F[1]),J=Math.sqrt(J*J+b*b)):J=-1;J<this.Gj?this.Y=F:wA(this)}}; ud.prototype.D=function(){wA(this)};g.z(McG,oj);McG.prototype.onVideoDataChange=function(F){F==="newdata"&&this.api.TF().createSubtitlesModuleIfNeeded()};g.z(Ma,g.SX);Ma.prototype.preventDefault=function(){g.SX.prototype.preventDefault.call(this);this.C&&this.C.preventDefault()}; Ma.prototype.stopPropagation=function(){g.SX.prototype.stopPropagation.call(this);this.C&&this.C.stopPropagation()};g.z(g.A2,nB);g.A=g.A2.prototype;g.A.Yx=function(){return!0}; g.A.isView=function(){return!1}; g.A.BR=function(){return!1}; g.A.Pb=function(){return this.C}; g.A.dB=function(){return this.C.src}; g.A.RF=function(F){var J=this.getPlaybackRate();this.C.src=F;this.setPlaybackRate(J)}; g.A.bb=function(){this.C.removeAttribute("src")}; g.A.getPlaybackRate=function(){try{return this.C.playbackRate>=0?this.C.playbackRate:1}catch(F){return 1}}; g.A.setPlaybackRate=function(F){this.getPlaybackRate()!==F&&(this.C.playbackRate=F);return F}; g.A.iS=function(){return this.C.loop}; g.A.setLoop=function(F){this.C.loop=F}; g.A.canPlayType=function(F,J){return this.C.canPlayType(F,J)}; g.A.isPaused=function(){return this.C.paused}; g.A.isSeeking=function(){return this.C.seeking}; g.A.isEnded=function(){return this.C.ended}; g.A.rl=function(){return this.C.muted}; g.A.sA=function(F){Sg();this.C.muted=F}; g.A.mQ=function(){return this.C.played||Il([],[])}; g.A.Z4=function(){try{var F=this.C.buffered}catch(J){}return F||Il([],[])}; g.A.Me=function(){return this.C.seekable||Il([],[])}; g.A.l_=function(){var F=this.C;return F.getStartDate?F.getStartDate():null}; g.A.getCurrentTime=function(){return this.C.currentTime}; g.A.setCurrentTime=function(F){this.C.currentTime=F}; g.A.getDuration=function(){return this.C.duration}; g.A.load=function(){var F=this.C.playbackRate;try{this.C.load()}catch(J){}this.C.playbackRate=F}; g.A.pause=function(){this.C.pause()}; g.A.play=function(){var F=this.C.play();if(!F||!F.then)return null;F.then(void 0,function(){}); return F}; g.A.kR=function(){return this.C.readyState}; g.A.CG=function(){return this.C.networkState}; g.A.rB=function(){return this.C.error?this.C.error.code:null}; g.A.Aw=function(){return this.C.error?this.C.error.message:""}; g.A.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.C instanceof window.HTMLVideoElement&&this.C.getVideoPlaybackQuality)return this.C.getVideoPlaybackQuality();if(this.C){var F=this.C,J=F.webkitDroppedFrameCount;if(F=F.webkitDecodedFrameCount)return{droppedVideoFrames:J||0,totalVideoFrames:F}}return{}}; g.A.Hh=function(){return!!this.C.webkitCurrentPlaybackTargetIsWireless}; g.A.Rv=function(){return!!this.C.webkitShowPlaybackTargetPicker()}; g.A.togglePictureInPicture=function(){var F=this.C,J=window.document;window.document.pictureInPictureEnabled?this.C!==J.pictureInPictureElement?F.requestPictureInPicture():J.exitPictureInPicture():rk()&&F.webkitSetPresentationMode(F.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.A.IG=function(){var F=this.C;return new g.K$(F.offsetLeft,F.offsetTop)}; g.A.getSize=function(){return g.fL(this.C)}; g.A.setSize=function(F){g.lu(this.C,F)}; g.A.getVolume=function(){return this.C.volume}; g.A.setVolume=function(F){Sg();this.C.volume=F}; g.A.WL=function(F){this.D[F]||(this.C.addEventListener(F,this.listener),this.D[F]=this.listener)}; g.A.setAttribute=function(F,J){this.C.setAttribute(F,J)}; g.A.removeAttribute=function(F){this.C.removeAttribute(F)}; g.A.hasAttribute=function(F){return this.C.hasAttribute(F)}; g.A.qN=bk(57);g.A.HP=bk(59);g.A.V8=bk(61);g.A.j7=bk(63);g.A.X5=function(){return i8(this.C)}; g.A.EW=function(F){g.uG(this.C,F)}; g.A.p5=function(F){return g.KL(this.C,F)}; g.A.IN=function(){return g.uB(document.body,this.C)}; g.A.audioTracks=function(){var F=this.C;if("audioTracks"in F)return F.audioTracks}; g.A.X_=function(){for(var F=g.N(Object.keys(this.D)),J=F.next();!J.done;J=F.next())J=J.value,this.C.removeEventListener(J,this.D[J]);nB.prototype.X_.call(this)}; g.A.uD=function(F){this.C.disableRemotePlayback=F};g.z(qa,g.U);g.z(as,g.U);as.prototype.show=function(){g.U.prototype.show.call(this);this.VG();this.SE.S("html5_enable_moving_s4n_window")&&g.jB(this.SE.J())&&this.Y()}; as.prototype.hide=function(){g.U.prototype.hide.call(this);this.delay.stop();this.Z.stop()}; as.prototype.VG=function(){var F=(0,g.jR)(),J=qbG(this.SE);vU(this.C,J.bandwidth_samples);vU(this.V,J.network_activity_samples);vU(this.T,J.live_latency_samples);vU(this.U,J.buffer_health_samples);var b={};J=g.N(Object.entries(J));for(var I=J.next();!I.done;I=J.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;this.N[I]!==u&&(b[I]=" "+String(u));this.N[I]=u}this.update(b);F=(0,g.jR)()-F>25?5E3:500;this.delay.start(F)}; as.prototype.Y=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Z.start(2E4)};g.z(eqa,oj);g.z(en,g.R);en.prototype.C=function(){var F=(0,g.jR)()-this.startTime;F=F<this.duration?F/this.duration:1;this.U(lG(ZIk,F));F<1&&this.delay.start()}; var ZIk=new Nr(0,0,.4,0,.2,1,1,1),inm=/[0-9.-]+|[^0-9.-]+/g;g.z(KV,g.U);KV.prototype.onClick=function(){var F=this.api.app;var J=F.S("web_log_theater_mode_visibility")?!F.tD():!F.u5;F.SE.jE("SIZE_CLICKED",J);this.api.logClick(this.element)}; KV.prototype.VG=function(){this.wY(this.api.Xt()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.uT){var F=this.api.tD();this.tD!==F&&this.Wp(F)}this.api.logVisibility(this.element,this.uT)}; KV.prototype.Wp=function(F){var J=F?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}:{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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.tD==null?this.updateValue("icon",J):yqa(this.transition,this.element, J);this.tD=F;J=g.NZ(this.api,"Default view","t");var b=g.NZ(this.api,"Theater mode","t");this.updateValue("title",F?J:b);this.update({"data-title-no-tooltip":F?"Default view":"Theater mode"});this.api.Dl()};g.z(zqm,oj);g.z(fbm,oj);g.A=fbm.prototype;g.A.onVideoDataChange=function(F){this.L4();this.videoId=F.videoId;this.U=this.C=void 0;this.timelyActions=lbo(F);WGJ(this);this.clearTimeout();this.TU()}; g.A.hh=function(F){var J=F.oldState,b=F.state,I=b.seekSource;!g.x(J,16)&&g.x(b,16)?this.p9(I!=null?I:void 0):g.x(J,16)&&!g.x(b,16)&&this.yv();F=F.state;F=!F.isCued()&&!g.x(F,1024);this.T.wY(F)}; g.A.TU=function(){var F=this.Y4();F&&this.api.TU(F)}; g.A.L4=function(){this.api.Yo("timelyAction",1);if(this.C!==void 0)this.onCueRangeExit(this.C)}; g.A.Y4=function(){if(this.timelyActions){for(var F=[],J=g.N(this.timelyActions),b=J.next();!b.done;b=J.next())b=b.value,b=b.startTimeMilliseconds!=null&&b.endTimeMilliseconds!=null&&b.cueRangeId!=null?new g.b6(Number(b.startTimeMilliseconds),Number(b.endTimeMilliseconds),{id:b.cueRangeId,namespace:"timelyAction"}):void 0,b&&F.push(b);return F}}; g.A.onCueRangeEnter=function(F){var J=pV(this,F);J&&this.Z[F]!==void 0&&(J.maxShowCount===void 0||(J==null?void 0:J.maxShowCount)>this.Z[F])&&(this.C=F,ErJ(this))}; g.A.onCueRangeExit=function(F){var J=dHz(this,F);J&&this.C===F&&this.api.jE("innertubeCommand",J);this.clearTimeout();this.C=void 0}; g.A.onTimeout=function(F){this.C!==void 0&&(F==null?void 0:F.cueRangeId)===this.C&&(F=dHz(this,this.C))&&this.api.jE("innertubeCommand",F)}; g.A.p9=function(F){this.U=F}; g.A.yv=function(){ErJ(this);this.U=void 0}; g.A.setTimeout=function(F){var J=this,b=Number(F==null?void 0:F.maxVisibleDurationMilliseconds);b&&(this.clearTimeout(),this.D=setTimeout(function(){J.onTimeout(F)},b))}; g.A.clearTimeout=function(){this.D&&clearTimeout(this.D);this.D=void 0}; g.A.X_=function(){this.timelyActions=this.U=this.C=this.videoId=void 0;this.Z={};this.L4();this.clearTimeout();oj.prototype.X_.call(this)};g.z(Vca,oj);var W_={},Q9_=(W_[1]="pot_ss",W_[2]="pot_sf",W_[3]="pot_se",W_[4]="pot_xs",W_[5]="pot_xf",W_[6]="pot_xe",W_),RqC=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.z(yl,oj);yl.prototype.X_=function(){this.W&&(g.ii(this.W),this.W=void 0);oj.prototype.X_.call(this)}; yl.prototype.Am=function(){(this.C?!this.C.isReady():this.U)&&zN(this)}; yl.prototype.L8=function(F,J,b){var I=this;if(Bs3(F)){var u=b||"",w;if((w=this.C)==null?0:w.isReady())J=Na(this,u),Ts3(F,J);else{var M=new g.m6;J.push(M.promise);this.Z.promise.then(function(){var q=Na(I,u);Ts3(F,q);M.resolve()})}}}; yl.prototype.Bp=function(F){var J=this;if(this.C||this.U)F.IF=Na(this,F.videoId),this.C&&!this.C.isReady()&&(this.T=new xn,this.Z.promise.then(function(){J.qW.QJ("pot_if");F.IF=Na(J,F.videoId)}))};g.z(k4C,oj);g.z(ld,g.R);ld.prototype.C=function(){for(var F=g.N(g.Ba.apply(0,arguments)),J=F.next();!J.done;J=F.next())(J=J.value)&&this.features.push(J)}; ld.prototype.X_=function(){for(var F=this.features.length-1;F>=0;F--)this.features[F].dispose();this.features.length=0;g.R.prototype.X_.call(this)};fV.prototype.TT=function(){this.U=(0,g.jR)()}; fV.prototype.reset=function(){this.C=this.U=NaN}; fV.prototype.Pv=function(F,J){if(F.clientPlaybackNonce&&!isNaN(this.C)){if(Math.random()<.01){J=J?"pbp":"pbs";var b={startTime:this.C};F.W&&(b.cttAuthInfo={token:F.W,videoId:F.videoId});Rr("seek",b);g.Qk({clientPlaybackNonce:F.clientPlaybackNonce},"seek");isNaN(this.U)||XH("pl_ss",this.U,"seek");XH(J,(0,g.jR)(),"seek")}this.reset()}};g.A=On3.prototype;g.A.reset=function(){Yk(this.timerName)}; g.A.tick=function(F,J){XH(F,J,this.timerName)}; g.A.QJ=function(F){return kk(F,this.timerName)}; g.A.AG=function(F){dM(F,void 0,this.timerName)}; g.A.infoGel=function(F){g.Qk(F,this.timerName)};g.z(UHv,g.uA);g.A=UHv.prototype;g.A.FI=function(F){return this.loop||!!F||this.index+1<this.length}; g.A.Q5=function(F){return this.loop||!!F||this.index-1>=0}; g.A.setShuffle=function(F){this.shuffle=F;F=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var J=0;J<this.items.length;J++)this.order.push(J);this.index=F;this.U++;if(this.shuffle){F=this.order[this.index];for(J=1;J<this.order.length;J++){var b=Math.floor(Math.random()*(J+1)),I=this.order[J];this.order[J]=this.order[b];this.order[b]=I}for(J=0;J<this.order.length;J++)this.order[J]===F&&(this.index=J);this.U++}this.publish("shuffle")}; g.A.lr=function(F){F=F||"hqdefault.jpg";var J=this.N[F];if(J||this.PN.eE||F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg")return J;if(this.T.length)return D7(this.PN,this.T[0],F)}; g.A.getLength=function(){return this.length}; g.A.findIndex=function(F){if(F&&(F=F.videoId,!this.items[this.index]||this.items[this.index].video_id!==F))for(var J=0;J<this.items.length;J++)if(this.items[J].video_id===F){this.index=J;break}}; g.A.onReady=function(F){this.C=F;this.loaded&&g.pl(this.C,0)}; g.A.getPlaylistId=function(){return this.listId?this.listId.toString():null}; g.A.t4=function(){return this.PN.getVideoUrl(g.dA(this).videoId,this.getPlaylistId())}; g.A.X_=function(){this.C=null;g.vk(this.items);g.uA.prototype.X_.call(this)};var EO=new Map;g.z(g.GN,g.uA);g.A=g.GN.prototype;g.A.create=function(){}; g.A.load=function(){this.loaded=!0}; g.A.unload=function(){this.loaded=!1}; g.A.qJ=function(){}; g.A.u7=function(){return!0}; g.A.X_=function(){this.loaded&&this.unload();g.uA.prototype.X_.call(this)}; g.A.Cy=function(){return{}}; g.A.getOptions=function(){return[]};g.z(g.PU,g.R);g.A=g.PU.prototype;g.A.Wl=bk(66);g.A.xW=function(){}; g.A.zf=function(){}; g.A.UG=function(){return""}; g.A.iP=bk(67);g.A.L8=function(F,J){var b=this;if(this.SE.J().S("html5_dispatch_tracklist_loaded_event")){this.Z&&(this.Z.reject(),this.Z=null);var I=[];this.SE.publish("trackListLoaded",this.U,I,J);I.length?(J=new g.m6,J.promise.then(F.L8,function(){}),this.Z=J,Promise.all(I).then(J.resolve,J.reject).finally(function(){b.Z=null})):F.L8()}else F.L8()}; g.A.VE=function(){}; g.A.X_=function(){this.Z&&(this.Z.reject(),this.Z=null);this.zf();g.R.prototype.X_.call(this)};g.z(g.BU,g.PU);g.BU.prototype.Wl=bk(65);g.BU.prototype.xW=function(F){if(this.audioTrack)for(var J=g.N(this.audioTrack.captionTracks),b=J.next();!b.done;b=J.next())g.Vl(this.U,b.value);this.L8(F,this.videoData.videoId)}; g.BU.prototype.UG=function(F,J){var b=F.tF(),I={fmt:J};if(J==="srv3"||J==="3"||J==="json3")g.O6()?Object.assign(I,{xorb:2,xobt:1,xovt:1}):Object.assign(I,{xorb:2,xobt:3,xovt:3});F.translationLanguage&&(I.tlang=g.eE(F));this.T&&(I.xosf="1");Object.assign(I,this.SE.J().C);return IR(b,I)}; g.BU.prototype.zf=function(){this.C&&this.C.abort()};g.HIR=new Map;g.z(g.rA,g.PU);g.rA.prototype.Wl=bk(64); g.rA.prototype.xW=function(F){var J=this,b=this.T,I={type:"list",tlangs:1,v:this.videoId,vssids:1};this.K6&&(I.asrs=1);b=IR(b,I);this.zf();this.C=g.E6(b,{format:"RAW",onSuccess:function(u){J.C=null;if((u=u.responseXML)&&u.firstChild){for(var w=u.getElementsByTagName("track"),M=0;M<w.length;M++){var q=w[M],v=q.getAttribute("lang_code"),a=q.getAttribute("lang_translated"),e=q.getAttribute("name"),K=q.getAttribute("kind"),p=q.getAttribute("id"),m=q.getAttribute("lang_default")==="true",y=q.getAttribute("cantran")=== "true";q=q.getAttribute("vss_id");g.Vl(J.U,new g.qF({languageCode:v,languageName:a,name:e,kind:K,id:p,is_servable:!0,is_translateable:y,vss_id:q,is_default:m}))}u=u.getElementsByTagName("target");w=u.length;for(M=0;M<w;M++)v={languageCode:u[M].getAttribute("lang_code"),languageName:u[M].getAttribute("lang_translated"),languageOriginal:u[M].getAttribute("lang_original"),id:u[M].getAttribute("id"),isDefault:u[M].getAttribute("lang_default")==="true"},J.W[v.languageCode]=v.languageName,J.D.push(v)}J.L8(F, J.videoId)}, withCredentials:!0})}; g.rA.prototype.UG=function(F,J){var b=this.T;J={v:this.videoId,type:"track",lang:F.languageCode,name:F.getName(),kind:F.kind,fmt:J};var I=this.SE.J();I.S("captions_url_add_ei")&&(J.ei=this.eventId);F.translationLanguage&&(J.tlang=g.eE(F));Object.assign(J,I.C);return b=IR(b,J)}; g.rA.prototype.zf=function(){this.C&&this.C.abort()};wy7.prototype.T=function(){for(var F=g.Ba.apply(0,arguments),J=this,b=uf("empty"),I=[],u={Bz:0};u.Bz<this.U.length&&b.currentState!=="done";u={pj:void 0,Bz:u.Bz},u.Bz++)u.pj=this.U[u.Bz],u.pj.condition.apply(u.pj,g.W(F))&&(b=q7(q7(b,function(w){return function(){if(!w.pj.condition.apply(w.pj,g.W(F)))throw"condition failed";var M=w.pj.Bm.apply(w.pj,g.W(F));return J.C===void 0||J.C===null?M:A8(Ix(M),function(q){if(!J.C.apply(J,[q].concat(g.W(F))))throw"verification failed";return q})}}(u)),function(w){return function(M){M!== "empty"&&M!=="condition failed"&&M!=="verification failed"&&M!=="error"&&(w.pj.onFailure&&w.pj.onFailure.apply(w.pj,[M].concat(g.W(F))),J.onFailure&&J.onFailure.apply(J,[M, w.Bz,w.pj].concat(g.W(F))),I.push(M));throw"error";}}(u))); return q7(b,function(){return uf(I)})};sO.prototype.preload=function(F){F=F?MO4(this.capabilities,F):this.capabilities;return F.PV?A8(v3J(this,F),function(){}):Ix()}; sO.prototype.compile=function(F){return q7(this.D.T(F),function(J){throw Error("wasm module compile failure: "+J.map(function(b){return b.message}).join(", "),{cause:J}); })}; sO.prototype.instantiate=function(F,J){return q7(this.W.T(F,J),function(b){throw Error("wasm module instantiation failure: "+b.map(function(I){return I.message}).join(", "),{cause:b}); })};py3.prototype.emscripten_notify_memory_growth=function(){};var aBo;g.A=m24.prototype;g.A.malloc=function(F){return this.C.malloc(F)}; g.A.free=function(F){this.C.free(F)}; g.A.realloc=function(F,J){return this.C.realloc(F,J)}; g.A.Fc=function(F){if(F.buffer!==this.exports.memory.buffer){var J=this.malloc(F.byteLength);J=new Uint8Array(this.exports.memory.buffer,J,F.byteLength);J.set(F);return J}}; g.A.yl=function(F){if(F.buffer===this.exports.memory.buffer){var J=F.slice();this.free(F.byteOffset);return J}}; var clz="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);Sn.p$(m24,{Fc:function(F){return{profile:"copyj2w",zQ:F===void 0?0:Math.ceil(F.byteLength/16)}}, yl:function(F){return{profile:"copyw2j",zQ:F===void 0?0:Math.ceil(F.byteLength/16)}}});g.z(zQo,g.R);g.A=zQo.prototype;g.A.createSubtitlesModuleIfNeeded=function(){W9a(this)&&$0(this,"captions");return!!g.Y0(this)}; g.A.lD=function(){return g.oH(this.G.getVideoData())&&!this.G.Ug().T}; g.A.Gr=function(){return this.G.getVideoData().Gr()}; g.A.Ew=function(){return this.G.getVideoData().Ew()}; g.A.FA=function(){var F=this.sz.get("heartbeat");$0(this,"heartbeat",!1,!0,this.FA);!F&&this.sz.has("heartbeat")&&this.G.publish("offlineslatestatechange")}; g.A.kO=function(){$0(this,"annotations_module",!0,void 0,this.kO);var F=this.sz.get("annotations_module");if(F)for(var J in this.T)if(this.T.hasOwnProperty(J)){var b=J;F.subscribe(b,this.T[b])}}; g.A.jd=function(){if(!this.sz.get("ad"))try{N1_(this)?$0(this,"ad",!1,!0,this.jd):this.G.d6("ad")}catch(F){this.G.d6("ad"),g.Td(F)}}; g.A.Iu=function(){return this.U}; g.A.w$=function(){var F={},J=g.Y0(this);J&&Object.assign(F,J.w$());return F}; g.A.XT=function(F,J){Object.assign(this.U,F||null);Object.assign(this.WY,J||null)}; g.A.onVideoDataChange=function(){var F=this.G.getVideoData();this.G.S("enable_wn_infocards")&&g.BE(F)&&!g.Dg(this)&&this.kO()}; g.A.X_=function(){g.R.prototype.X_.call(this);CV(this,1,!0);for(var F=g.N(Object.entries(C7v)),J=F.next();!J.done;J=F.next()){var b=g.N(J.value);J=b.next().value;b=b.next().value;this.Z.has(b)&&EO.delete(J)}this.Z.clear()}; var dH={},C7v=(dH.ad="ad.js",dH.annotations_module="annotations_module.js",dH.asmjs="asmjs.js",dH.creatorendscreen="annotations_module.js",dH.embed="embed.js",dH.endscreen="endscreen.js",dH.heartbeat="heartbeat.js",dH.kids="kids.js",dH.remote="remote.js",dH.miniplayer="miniplayer.js",dH.offline="offline.js",dH.captions="captions.js",dH.unplugged="unplugged.js",dH.ux="ux.js",dH.webgl="webgl.js",dH.ypc="ypc.js",dH.ypc_clickwrap="ypc_clickwrap.js",dH.yto="yto.js",dH),rdY="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.z(QQJ,g.uA);g.A=QQJ.prototype;g.A.CY=function(F){F=new g.K$(F.pageX,F.pageY);if(!p$(F,this.Z)){var J=2;this.W&&(J|=8);this.Z=F;OO(this,J,!0)}}; g.A.HkI=function(){this.W&&OO(this,8,!0);OO(this,2,!1)}; g.A.YW=function(F){var J=new g.K$(F.pageX,F.pageY);p$(J,this.Z)||(this.Z=J,(F=F.target)&&this.ZO(F)&&(OO(this,4,!0),this.C.iX(this.T),this.T=this.C.B(this.target,"mouseover",this.iN),this.V=this.C.B(this.target,"mouseout",this.iN)))}; g.A.iN=function(F){F=F.relatedTarget;F&&this.ZO(F)||(this.Z=new g.K$(NaN,NaN),RQz(this))}; g.A.nQQ=function(){OO(this,1,!0)}; g.A.wr=function(F){F=F.target;F instanceof Element&&!(F.tabIndex>0)||OO(this,1,!0)}; g.A.j_=function(){this.W=!0;this.C.iX(this.D);this.D=this.C.B(document,"mouseup",this.wF)}; g.A.wF=function(){this.W=!1;OO(this,8,!1);this.C.iX(this.D);this.D=this.C.B(this.target,"mousedown",this.j_)}; g.A.aW=function(F){if(F=(F=F.changedTouches)&&F[0])this.Gj=F.identifier,this.C.iX(this.Y),this.Y=this.C.B(this.target,"touchend",this.U7,void 0,!0),OO(this,1024,!0)}; g.A.U7=function(F){if(F=F.changedTouches)for(var J=0;J<F.length;J++){var b=F[J];if(b.identifier===this.Gj){var I=b;break}}I&&(this.C.iX(this.Y),this.Y=this.C.B(this.target,"touchstart",this.aW,void 0,!0),OO(this,1024,!1))}; g.A.q6=function(){OO(this,2,!0)}; g.A.resize=function(){g.B4&&RQz(this)}; g.A.toString=function(){return g.uA.prototype.toString.call(this)};g.z(g.h2,g.U);g.A=g.h2.prototype;g.A.yX_=function(){this.VG()}; g.A.VG=function(){var F=this.api.getVideoData(),J=this.api.J(),b=!!this.api.isEmbedsShortsMode();g.qr(this.element,"ytp-shorts-mode",b);b?J=[{X:"svg",L:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},j:[{X:"path",L:{"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"}},{X:"path",L:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.tw(F)?J=[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},j:[{X:"path",K:"ytp-dni-large-play-button-bg",L:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{X:"path",L:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:F.T0&&F.RV?J=[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},j:[{X:"path",K:"ytp-dni-large-play-button-bg", L:{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"}},{X:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:J.W?(g.qr(this.element,"ytp-touch-device",J.U),J=[J.W?{X:"svg",L:{height:"100%",version:"1.1", viewBox:"0 0 60 60",width:"100%"},j:[{X:"path",K:"ytp-large-play-button-bg",L:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{X:"path",L:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},j:[{X:"path",K:"ytp-large-play-button-bg",L:{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"}},{X:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):J=[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},j:[{X:"path",K:"ytp-large-play-button-bg",L:{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"}},{X:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",J);F.T0&&F.RV&&this.RI("ytp-dni-large-play-button-bg").setAttribute("fill",F.RV?F.RV:"#1f1f1f")}; g.A.show=function(){g.U.prototype.show.call(this);this.api.J().S("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)}; g.A.LR=function(){this.api.getVideoData().mutedAutoplay||(this.api.Rq(),this.api.playVideo())}; g.A.p1f=function(F){this.api.getVideoData().mutedAutoplay||F.preventDefault()};g.z(g.cU,g.U);g.A=g.cU.prototype;g.A.show=function(){var F=this;this.uT||(this.Z.B(this.api,"videodatachange",function(){g.Z_(F.C)}),this.Z.B(this.api,"videoplayerreset",function(){g.Z_(F.C)})); g.U.prototype.show.call(this)}; g.A.hide=function(){this.Z&&g.Ve(this.Z);g.U.prototype.hide.call(this)}; g.A.mO=function(){g.Z_(this.C)}; g.A.onStateChange=function(){g.Z_(this.C)}; g.A.qz_=function(){g.Z_(this.C)}; g.A.onReset=function(){this.U.stop();this.hide();g.Z_(this.C)}; g.A.VG=function(){var F=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(F.isPlaying()||F.isPaused()))var J=!0;else(J=this.api.TF().sz.get("ypc"))&&J.WG?J=!0:(J=this.api.J(),J=g.x(F,2)&&g.fE(this.api)&&J.n7?!0:!1);J?(J=!0,this.T.hide()):this.api.S("web_player_show_frame_zero_when_cued")&&D2a(this)?(J=!0,this.T.hide()):(this.T.show(),J=F.isCued()&&this.api.getPresentingPlayerType()!==2||g.x(F,2)&&!g.fE(this.api)&&!this.api.im()||g.x(F,1024)?!0:!1);var b=this.api.getVideoData(); J&&!b.Q1?(this.U.show(),this.bvG(this.api.getPlaylist(),b)):(this.U.hide(),g.x(F,1)||this.U.stop())}; g.A.bvG=function(){var F=g.Ba.apply(0,arguments),J=this.api.J(),b,I=(b=this.api.getVideoData())==null?void 0:b.videoId;if(J.S("web_player_show_frame_zero_when_cued")&&I&&D2a(this))var u="https://i.ytimg.com/vi/"+I+"/frame0.jpg";else for(F=g.N(F),b=F.next();!b.done;b=F.next())if(b=b.value,!(!b||b instanceof g.RH&&!b.videoId)){u=this.api.mG().getPlayerSize();var w=g.ow();I=u.width*w;w*=u.height;if(I>1280||w>720)if(u=b.lr("maxresdefault.jpg"))break;if(I>640||w>480)if(u=b.lr("maxresdefault.jpg"))break; if(I>320||w>180)if(u=b.lr("sddefault.jpg")||b.lr("hqdefault.jpg")||b.lr("mqdefault.jpg"))break;if(u=b.lr("default.jpg"))break}g.U7(J)&&(J=new Image,J.addEventListener("load",function(){JAm()}),J.src=u?u:"",this.api.Iu().tick("ftr")); this.W.style.backgroundImage=u?"url("+u+")":""};g.z(g.UO,g.U);g.UO.prototype.resize=function(){}; g.UO.prototype.U=function(F){var J=this;this.T=!1;o3_(this);var b=F.Ap,I=this.api.J();b!=="GENERIC_WITHOUT_LINK"||I.W?b==="TOO_MANY_REQUESTS"?(I=this.api.getVideoData(),this.Ce(t2(this,"TOO_MANY_REQUESTS_WITH_LINK",I.t4(),void 0,void 0,void 0,!1))):b!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||I.W?this.api.J().S("html5_enable_bandaid_error_screen")&&b==="HTML5_SPS_UMP_STATUS_REJECTED"&&!I.W?(I=I.hostLanguage,F="//support.google.com/youtube?p=videoError",I&&(F=g.Os(F,{hl:I})),this.Ce(t2(this,"HTML5_SPS_UMP_STATUS_REJECTED", F))):this.api.J().S("enable_adb_handling_in_sabr")&&b==="BROWSER_OR_EXTENSION_ERROR"&&!I.W?(I=I.hostLanguage,F="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",I&&(F=g.Os(F,{hl:I})),this.Ce(t2(this,"BROWSER_OR_EXTENSION_ERROR",F))):this.Ce(g.x0(F.errorMessage)):this.Ce(t2(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(F=I.hostLanguage,b="//support.google.com/youtube/?p=player_error1",F&&(b=g.Os(b, {hl:F})),this.Ce(t2(this,"GENERIC_WITH_LINK_AND_CPN",b,!0)),I.T1&&!I.Z&&O9z(this,function(w){if(g.LE(w,J.api,!k2(J.api.J()))){w={as3:!1,html5:!0,player:!0,cpn:J.api.getVideoData().clientPlaybackNonce};var M=J.api;M.IC("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:w});M.isFullscreen()&&M.toggleFullscreen()}})); if(this.T){var u=this.RI("ytp-error-link");u&&(this.api.createClientVe(u,this,216104),this.api.logVisibility(u,!0),O9z(this,function(){J.api.logClick(u)}))}}; var kUJ=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.z(hQk,g.U);g.A=hQk.prototype;g.A.onClick=function(F){this.innertubeCommand?(this.G.jE("innertubeCommand",this.innertubeCommand),F.preventDefault()):g.LE(F,this.G,!0);this.G.logClick(this.element)}; g.A.onVideoDataChange=function(F,J){U24(this,J);this.r0&&x2m(this,this.r0)}; g.A.Tb=function(F){var J=this.G.getVideoData();this.videoId!==J.videoId&&U24(this,J);this.C&&x2m(this,F.state);this.r0=F.state}; g.A.Bo=function(){this.Z.show();this.G.publish("paidcontentoverlayvisibilitychange",!0);this.G.logVisibility(this.element,!0)}; g.A.fk=function(){this.Z.hide();this.G.publish("paidcontentoverlayvisibilitychange",!1);this.G.logVisibility(this.element,!1)};g.z(Zg,g.U);Zg.prototype.hide=function(){this.C.stop();this.message.style.display="none";g.U.prototype.hide.call(this)}; Zg.prototype.onStateChange=function(F){this.aC(F.state)}; Zg.prototype.aC=function(F){(g.x(F,128)||this.api.Pq()?0:g.x(F,16)||g.x(F,1))?this.C.start():this.hide()}; Zg.prototype.U=function(){this.message.style.display="block"};g.z(HU,g.YJ);HU.prototype.onMutedAutoplayChange=function(F){this.T&&(F?(n3C(this),this.Bo()):(this.C&&this.logClick(),this.fk()))}; HU.prototype.hh=function(F){this.api.isMutedByMutedAutoplay()&&g.e1(F,2)&&this.fk()}; HU.prototype.onClick=function(){this.api.unMute();this.logClick()}; HU.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.LV,g.s5);g.A=g.LV.prototype;g.A.init=function(){var F=this.api,J=F.getPlayerStateObject();this.KG=F.getPlayerSize();this.gY(J);this.E1();this.mO();this.api.publish("basechromeinitialized",this);this.WZ()&&this.api.publish("standardControlsInitialized")}; g.A.onVideoDataChange=function(F,J){var b=this.Mq!==J.videoId;if(b||F==="newdata"){F=this.api;F.isFullscreen()||(this.KG=F.getPlayerSize());var I;((I=this.api.getVideoData(1))==null?0:g.oH(I))&&this.MP()}b&&(this.Mq=J.videoId,b=this.rq,b.kQ=3E3,OO(b,512,!0),this.E1());this.api.S("web_render_jump_buttons")&&J.showSeekingControls&&(this.D6=572)}; g.A.rFW=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.A.qR=function(){var F=this.api.AD()&&this.api.U0(),J=this.api.bA();return this.pn||F||this.xb||J}; g.A.MP=function(){var F=!this.qR();g.qr(this.api.getRootNode(),"ytp-menu-shown",!F);var J;((J=this.api.getVideoData(1))==null?0:g.oH(J))&&g.qr(this.api.getRootNode(),"ytp-hide-controls",!F)}; g.A.ZO=function(F){try{if(!g.uB(this.api.getRootNode(),F))return!1}catch(J){return!1}for(;F&&!v4k(F);)F=F===this.api.getRootNode()?null:F.parentElement||null;return!!F}; g.A.lN=function(F){var J=this.api.getRootNode();g.qr(J,"ytp-autohide",F);g.qr(J,"ytp-autohide-active",!0);this.U$.start(F?250:100);F&&(this.tR=!1,g.Mr(J,"ytp-touch-mode"));this.YJ=!F;this.api.GY(!F)}; g.A.Ut=function(){var F=this.api.getRootNode();g.qr(F,"ytp-autohide-active",!1)}; g.A.zSQ=function(){this.wd=!0}; g.A.hSv=function(F){if(this.api.J().S("player_doubletap_to_seek")||this.api.J().Y)this.wd=!1,this.UU&&this.iX(this.UU),this.jk===0&&Jq(this,F)?(this.Fw(),this.Ex.start(),this.UU=this.B(this.api.mG(),"touchmove",this.zSQ,void 0,!0)):this.Ex.stop();L9k(this)&&Jq(this,F)&&!this.api.J().Y&&Z9o(this);var J=this.Xl.K4();if(!g.dN(this.api.J())&&lb&&FWa(this,F))J&&F.preventDefault();else if(this.tR=!0,g.uG(this.api.getRootNode(),"ytp-touch-mode"),this.rq.q6(),this.api.J().S("player_doubletap_to_seek")||this.api.J().Y)if(J= this.api.getPlayerStateObject(),!(!this.api.hX()||g.x(J,2)&&g.fE(this.api)||g.x(J,64))){J=Date.now()-this.Gt;this.jk+=1;if(J<=350){this.c$=!0;J=this.api.getPlayerSize().width/3;var b=this.api.getRootNode().getBoundingClientRect(),I=F.targetTouches[0].clientX-b.left;b=F.targetTouches[0].clientY-b.top;var u=(this.jk-1)*10;I>0&&I<J?(this.xn(-1,I,b,u),this.api.seekBy(-10*this.api.getPlaybackRate())):I>J*2&&I<J*3&&(this.xn(1,I,b,u),this.api.seekBy(10*this.api.getPlaybackRate()));F.preventDefault()}else os&& this.api.J().Y&&Jq(this,F)&&F.preventDefault();this.Gt=Date.now();this.Fk.start()}}; g.A.VFG=function(){this.SC.vz=!1;this.api.publish("rootnodemousedown",this.SC)}; g.A.lgj=function(F){if(this.api.J().S("web_fix_fine_scrubbing_false_play")){if(FWa(this,F)||this.SC.vz)return}else if(this.SC.vz||FWa(this,F))return;L9k(this)||!Jq(this,F)||this.Ex.isActive()||(Z9o(this),F.preventDefault());this.c$&&(this.c$=!1)}; g.A.Fw=function(){}; g.A.PP=function(){}; g.A.xn=function(){}; g.A.renderChapterSeekingAnimation=function(){}; g.A.UW=function(){var F=this.api.getPlayerStateObject();g.x(F,2)&&g.fE(this.api)||(F.isOrWillBePlaying()?this.api.pauseVideo():(this.Fi&&(F.isCued()||g.x(F,1024))&&!this.api.J().S("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.Fi.T.element),this.api.Rq(),this.api.playVideo(),this.Fi&&document.activeElement===this.Fi.T.element&&((F=this.WZ())==null?F=0:F.playButton?(F.playButton.focus(),F=!0):F=!1,F||this.api.getRootNode().focus())))}; g.A.Q8R=function(F){var J=this,b=this.api.getPresentingPlayerType();if(!H9G(this,dm(F)))if(F=this.api.J(),(this.api.J().S("player_doubletap_to_seek")||this.api.J().Y)&&this.c$)this.c$=!1;else if(F.Om&&b!==3)try{this.api.toggleFullscreen().catch(function(I){J.L5(I)}),this.api.S("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.mG().element)}catch(I){this.L5(I)}}; g.A.L5=function(F){String(F).includes("fullscreen error")?g.rQ(F):g.Td(F)}; g.A.SsN=function(F){JUv(this,.3,F.scale);F.preventDefault()}; g.A.HeE=function(F){JUv(this,.1,F.scale)}; g.A.mO=function(){var F=this.api.mG().getPlayerSize(),J=this.api.getRootNode(),b=F.width>=650;this.rq.resize();g.qr(J,"ytp-fullscreen",this.api.isFullscreen());g.qr(J,"ytp-large-width-mode",b);g.qr(J,"ytp-small-mode",this.Ru());g.qr(J,"ytp-tiny-mode",this.pG());g.qr(J,"ytp-big-mode",this.Ua());this.vg&&this.vg.resize(F)}; g.A.hh=function(F){this.gY(F.state);this.E1()}; g.A.Gp=bk(5);g.A.b6=function(){var F=!!this.Mq&&!this.api.w6()&&!this.ZE,J=this.api.getPresentingPlayerType()===2,b=this.api.J();if(J){if(Cc7&&b.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;J=XN(this.api.TF());F&&(J&&J.player?F=(F=J.player.getVideoData(2))?F.isListed&&!g.dX(J.player.J()):!1:(q_("showInfoBarDuringAd: this is null"),F=!1));return F}return F&&(b.gT||this.api.isFullscreen()||b.Tc)}; g.A.E1=function(){var F=this.b6();this.CL!==F&&(this.CL=F,g.qr(this.api.getRootNode(),"ytp-hide-info-bar",!F))}; g.A.gY=function(F){var J=F.isCued()||this.api.Bx()&&this.api.getPresentingPlayerType()!==3;J!==this.isCued&&(this.isCued=J,this.T_&&this.iX(this.T_),this.T_=this.B(this.api.mG(),"touchstart",this.hSv,void 0,J));var b=this.rq,I=F.isPlaying()&&!g.x(F,32)||this.api.G9();OO(b,128,!I);b=this.rq;I=this.api.getPresentingPlayerType()===3;OO(b,256,I);b=this.api.getRootNode();g.x(F,2)?I=[hF.ENDED]:(I=[],g.x(F,8)?I.push(hF.PLAYING):g.x(F,4)&&I.push(hF.PAUSED),g.x(F,1)&&!g.x(F,32)&&I.push(hF.BUFFERING),g.x(F, 32)&&I.push(hF.SEEKING),g.x(F,64)&&I.push(hF.UNSTARTED));g.ay(this.aT,I)||(g.An(b,this.aT),this.aT=I,g.wD(b,I));I=this.api.J();var u=g.x(F,2);a:{var w=this.api.J();var M=w.controlsType;switch(M){case "2":case "0":w=!1;break a}w=M==="3"&&!g.x(F,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:NzY(XN(this.api.TF())))||this.api.bA()||g.dN(w)&&this.api.getPresentingPlayerType()===2?!1:!0}g.qr(b,"ytp-hide-controls",!w);g.qr(b,"ytp-native-controls",I.controlsType==="3"&&!J&&!u&&!this.xb);g.x(F, 128)&&!g.dN(I)?(this.vg||(this.vg=new g.UO(this.api),g.k(this,this.vg),g.Pp(this.api,this.vg.element,4)),this.vg.U(F.e6),this.vg.show()):this.vg&&(this.vg.dispose(),this.vg=null)}; g.A.bJ=function(){return this.api.AD()&&this.api.U0()?(this.api.Xs(!1,!1),!0):this.api.w6()?(g.Wp(this.api,!0),!0):!1}; g.A.onMutedAutoplayChange=function(F){this.xb=F;this.MP()}; g.A.Ua=function(){return!1}; g.A.Ru=function(){return!this.Ua()&&(this.api.getPlayerSize().width<this.D6||this.api.getPlayerSize().height<290)}; g.A.pG=function(){return this.Ru()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)}; g.A.YK=function(){return this.tR}; g.A.z6=function(){return null}; g.A.MZ=function(){return null}; g.A.xK=function(){var F=this.api.mG().getPlayerSize();return new g.uu(0,0,F.width,F.height)}; g.A.handleGlobalKeyDown=function(){return!1}; g.A.handleGlobalKeyUp=function(){return!1}; g.A.kU=function(){}; g.A.showControls=function(F){F!==void 0&&this.api.mG().GY(F)}; g.A.q6=function(){}; g.A.WZ=function(){return null};g.z(b_,g.uA);g.A=b_.prototype;g.A.YO=function(){return 1E3*this.api.getDuration(this.Fa,!1)}; g.A.stop=function(){this.C&&this.eF.iX(this.C)}; g.A.Q6=function(){var F=this.api.getProgressState(this.Fa);this.U={seekableStart:F.seekableStart,seekableEnd:F.seekableEnd,current:this.api.getCurrentTime(this.Fa,!1)};this.publish("h")}; g.A.getProgressState=function(){return this.U}; g.A.ev=function(F){g.e1(F,2)&&this.publish("g")};g.z(g.I9,g.U);g.I9.prototype.show=function(){g.U.prototype.show.call(this);g.Z_(this.C)}; g.I9.prototype.hide=function(){this.U.stop();g.U.prototype.hide.call(this)}; g.I9.prototype.PP=function(F){F?g.x(this.G.getPlayerStateObject(),64)||u_(this,Wi(),"Play"):(F=this.G.getVideoData(),F.isLivePlayback&&!F.allowLiveDvr?u_(this,TZz(),"Stop live playback"):u_(this,Gl3(),"Pause"))};g.z(ufv,g.U);g.A=ufv.prototype;g.A.Zf=function(F){F?this.C=zP(this.G,this.element,null):(this.C=this.C,this.C(),this.C=null)}; g.A.Bo=function(){this.G.J().S("player_new_info_card_format")&&g.I3(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.dN(this.G.J())||(this.U.show(),g.u0("iv-button-shown"))}; g.A.fk=function(){g.u0("iv-button-hidden");this.U.hide()}; g.A.K4=function(){return this.uT&&this.U.state!==4}; g.A.X_=function(){this.C&&this.C();g.U.prototype.X_.call(this)}; g.A.QCf=function(){g.u0("iv-button-mouseover")}; g.A.onClicked=function(F){this.G.AD();var J=g.I3(this.G.getRootNode(),"ytp-cards-teaser-shown");g.u0("iv-teaser-clicked",J);var b;if((b=this.G.getVideoData())==null?0:g.PE(b)){var I;F=(I=this.G.getVideoData())==null?void 0:g.BE(I);(F==null?0:F.onIconTapCommand)&&this.G.jE("innertubeCommand",F.onIconTapCommand)}else I=F.screenX===0&&F.screenY===0,this.G.Xs(!this.G.U0(),I,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.z(whz,g.U);g.A=whz.prototype;g.A.RL=function(){this.G.AD()&&this.G.U0()&&this.K4()&&this.fk()}; g.A.bD=function(){this.fk();!this.G.AD()&&this.G.J().S("enable_error_corrections_infocards_icon_web")&&this.EV.fk();g.u0("iv-teaser-clicked",this.C!=null);if(this.onClickCommand)this.G.jE("innertubeCommand",this.onClickCommand);else{var F;((F=this.G.getVideoData())==null?0:g.PE(F))||this.G.Xs(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.A.XH=function(){g.u0("iv-teaser-mouseover");this.C&&this.C.stop()}; g.A.Cx_=function(F){this.G.J().S("player_new_info_card_format")&&!g.dN(this.G.J())?this.EV.fk():this.G.J().S("enable_error_corrections_infocards_icon_web")&&this.EV.Bo();this.C||!F||this.G.U0()||this.U&&this.U.isActive()||(this.Bo(F),g.u0("iv-teaser-shown"))}; g.A.Bo=function(F){this.onClickCommand=F.onClickCommand;this.updateValue("text",F.teaserText);this.element.setAttribute("dir",g.gD(F.teaserText));this.Z.show();this.U=new g.ty(function(){g.uG(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.S("player_new_info_card_format")&&!g.dN(this.G.J())&&this.EV.fk();this.xe()},0,this); this.U.start();this.EV.Zf(!1);this.C=new g.ty(this.fk,580+F.durationMs,this);this.C.start();this.W.push(this.listen("mouseover",this.mB,this));this.W.push(this.listen("mouseout",this.b0,this))}; g.A.xe=function(){if(!this.G.J().S("player_new_info_card_format")&&g.dN(this.G.J())&&this.uT){var F=this.EV.element.offsetLeft,J=g.c1("ytp-cards-button-icon"),b=this.G.isFullscreen()?54:36;if(J){var I=F+J.offsetLeft;this.element.style.marginRight=this.EV.element.offsetParent.offsetWidth-F-J.offsetLeft-b+"px";this.element.style.marginLeft=I+"px"}}}; g.A.ow=function(){g.dN(this.G.J())&&this.G.Ru()&&this.uT&&this.N.start()}; g.A.mB=function(){this.V.stop();this.C&&this.C.isActive()&&this.Y.start()}; g.A.b0=function(){this.Y.stop();this.C&&!this.C.isActive()&&this.V.start()}; g.A.J_Q=function(){this.C&&this.C.stop()}; g.A.olQ=function(){this.fk()}; g.A.ZN=function(){this.fk()}; g.A.fk=function(){!this.C||this.T&&this.T.isActive()||(g.u0("iv-teaser-hidden"),this.Z.hide(),g.Mr(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.T=new g.ty(function(){for(var F=g.N(this.W),J=F.next();!J.done;J=F.next())this.iX(J.value);this.W=[];this.C&&(this.C.dispose(),this.C=null);this.EV.Zf(!0);!this.G.AD()&&this.G.J().S("enable_error_corrections_infocards_icon_web")&&this.EV.fk()},330,this),this.T.start())}; g.A.K4=function(){return this.uT&&this.Z.state!==4}; g.A.X_=function(){var F=this.G.getRootNode();F&&g.Mr(F,"ytp-cards-teaser-shown");g.vk(this.U,this.T,this.C);g.U.prototype.X_.call(this)};var Ec={},MH=(Ec.BUTTON="ytp-button",Ec.TITLE_NOTIFICATIONS="ytp-title-notifications",Ec.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",Ec.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",Ec.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",Ec);g.z(Mez,g.U);Mez.prototype.onClick=function(){this.api.logClick(this.element);var F=!this.C;this.updateValue("label",F?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",F);AUC(this,F)};g.RG("yt.pubsub.publish",g.u0);g.z(g.Aq,g.U);g.Aq.prototype.Z=function(){window.location.reload()}; g.Aq.prototype.C=function(){g.uG(this.element,"ytp-sb-subscribed")}; g.Aq.prototype.U=function(){g.Mr(this.element,"ytp-sb-subscribed")};g.z(KWz,g.U);g.A=KWz.prototype;g.A.woD=function(F){this.api.logClick(this.U);var J=this.api.J();J.U||J.zj?yU_(this)&&(this.isExpanded()?this.xJ():this.qD()):g.C5(window,eXa(this));F.preventDefault()}; g.A.vR=function(){mpz(this);this.channel.classList.remove("ytp-title-expanded")}; g.A.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.A.qD=function(){if(yU_(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.T&&this.T.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var F=this.api.getVideoData();this.C&&F.Ok&&F.subscribed&&(this.C.show(), this.api.logVisibility(this.C.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.A.xJ=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.T&&this.T.start()}; g.A.VG=function(){var F=this.api.J();this.wY(!this.api.isEmbedsShortsMode());var J=this.api.getVideoData(),b=this.api.J(),I=this.api.getVideoData();this.Z=!1;var u=!!I.videoId&&!!I.Om&&!!I.profilePicture;this.api.getPresentingPlayerType()===2?this.Z=u&&!!I.isListed&&!!I.author:g.dN(b)&&(this.Z=u&&!g.tw(I)&&!b.T&&!(b.Y&&this.api.getPlayerSize().width<200));b=J.profilePicture;F=g.dN(F)?J.expandedTitle:J.author;b=b===void 0?"":b;F=F===void 0?"":F;this.Z?(this.V!==b&&(this.U.style.backgroundImage="url("+ b+")",this.V=b),this.updateValue("channelLogoLabel",g.m8("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:F})),g.uG(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.U,this.Z&&this.D);this.subscribeButton&&(this.subscribeButton.channelId=J.uB);this.updateValue("expandedTitle",J.expandedTitle);this.updateValue("expandedSubtitle",J.expandedSubtitle)}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.U,this.Z&&F)};g.z(qH,g.Rj);qH.prototype.C=function(F){F.defaultPrevented||F.keyCode!==39||(this.element.click(),F.preventDefault())};g.z(ie4,g.U);g.A=ie4.prototype;g.A.show=function(){g.U.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}; g.A.hide=function(){g.U.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}; g.A.s7=function(F){var J=dm(F),b=g.uB(this.closeButton.element,J),I=g.uB(this.element,J);F=this.C&&g.uB(this.C,J)&&g.f0(F);J&&(I||F)&&!b||this.hide()}; g.A.u8=function(){vN3(g.Rw(this.SE.J()),"user_info_panel",function(){window.location.reload()})}; g.A.VG=function(){var F=this.SE.J(),J={USER_NAME:F.userDisplayName,USER_EMAIL:F.ir};this.updateValue("icon",VRz());this.updateValue("watchingAsUsername",g.m8("Watching as $USER_NAME",J));F.ir?this.updateValue("watchingAsEmail",g.m8("($USER_EMAIL)",J)):this.updateValue("watchingAsEmail","")};g.z(Nha,g.RX);g.A=Nha.prototype;g.A.Yh=function(){this.Rf.fk()}; g.A.Xoj=function(){bX(this.I4.element)}; g.A.MeE=function(){a9(this,this.G.getDebugText(!0))&&u_(this.Fd,gV())}; g.A.Elz=function(){a9(this,this.G.getVideoEmbedCode())&&u_(this.Fd,zU7());this.G.logClick(this.YZ.element);Yy("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")}; g.A.dIR=function(){a9(this,this.G.getVideoUrl(!0,!0))&&u_(this.Fd,zh());this.G.logClick(this.getVideoUrl.element);Yy("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")}; g.A.lyQ=function(){a9(this,this.G.getVideoUrl(!1,!0))&&u_(this.Fd,zh());this.G.logClick(this.Lj.element);Yy("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")}; g.A.onLoopChange=function(F){var J;(J=this.YR)==null||Hp(J,F)}; g.A.KnW=function(){this.G.setLoopVideo(this.YR.getValue());this.Rf.fk();this.G.logClick(this.YR.element)}; g.A.fgN=function(F){this.G.reportPlaybackIssue();if(g.LE(F,this.G,!k2(this.G.J()))){F=this.G;var J=F.app.getFeedbackProductData();F.IC("onFeedbackStartRequest",J);F.isFullscreen()&&F.toggleFullscreen()}this.Rf.fk()}; g.A.noD=function(){g.wO(this.G,"isVideoInfoVisible",[])?g.wO(this.G,"hideVideoInfo",[]):g.wO(this.G,"showVideoInfo",[]);this.Rf.fk()}; g.A.j8Q=function(){this.T6&&(this.nf||(this.nf=new ie4(this.G,this.T6.element),g.k(this,this.nf),g.Pp(this.G,this.nf.element,4)),this.nf.show(),this.Rf.fk(),this.G.logClick(this.T6.element))}; g.A.onVideoDataChange=function(F,J){this.gy(J)}; g.A.gy=function(F){var J=this.G.J(),b=this.G.getPresentingPlayerType()===2,I=!b||F.isListed;I=!J.eE&&!!F.videoId&&I;J.playerStyle!=="play"?J="https://support.google.com/youtube/?p=report_playback":(J={contact_type:"playbackissue",html5:1,ei:F.eventId,v:F.videoId,p:"movies_playback"},F.U&&(J.fmt=F.U.itag),F.clientPlaybackNonce&&(J.cpn=F.clientPlaybackNonce),F.partnerId&&(J.partnerid=F.partnerId),J=g.Os("//support.google.com/googleplay/",J));this.YZ.wY(I&&F.allowEmbed);this.getVideoUrl.wY(I);this.Lj.wY(I&& !F.isLivePlayback);this.Fu.Ce(J,"href");var u;(u=this.YR)==null||u.wY(!F.isLivePlayback&&!b);var w;(w=this.T6)==null||w.wY(!b)}; g.A.tJ=function(F){g.RX.prototype.tJ.call(this,F);this.G.logVisibility(this.YZ.element,F);this.G.logVisibility(this.getVideoUrl.element,F);this.G.logVisibility(this.Lj.element,F);this.YR&&this.G.logVisibility(this.YR.element,F);this.T6&&this.G.logVisibility(this.T6.element,F)};g.z(WWY,g.kc);g.A=WWY.prototype;g.A.Pt=function(F){var J=dm(F);if(!(J&&(A6(J,"a")||A6(J,null,"ytp-no-contextmenu"))||this.uT)){var b;this.Gj=(F=(b=F.touches)==null?void 0:b.item(0))?new g.K$(F.clientX,F.clientY):new g.K$(0,0);this.eE.start()}}; g.A.pK=function(){this.eE.stop()}; g.A.X1f=function(){this.open(this.Gj)}; g.A.qZ=function(){if(this.T&&lua(this.T)){var F=lua(this.T).element;F.tabIndex=-1;F.focus()}else this.element.tabIndex=-1,this.element.focus()}; g.A.show=function(){this.T||(this.T=new Nha(this.G,this,this.Fd),g.k(this,this.T),g.O$(this,this.T));this.T.onLoopChange(this.G.getLoopVideo());g.kc.prototype.show.call(this);this.G.logVisibility(this.element,!0);this.T.tJ(!0)}; g.A.hide=function(){fuC(this);g.kc.prototype.hide.call(this);this.G.logVisibility(this.element,!1);this.T&&this.T.tJ(!1)}; g.A.etQ=function(F){var J=dm(F);this.uT||J&&(A6(J,"a")||A6(J,null,"ytp-no-contextmenu"))||(F.preventDefault(),this.open(new g.K$(F.pageX,F.pageY)))}; g.A.Bo=function(F){if(F){var J=F.getBoundingClientRect();this.open(new g.K$(J.x,J.y))}g.kc.prototype.Bo.call(this,F)}; g.A.open=function(F){dpz(this);var J=this.G.getVideoData();g.qr(this.element,"ytp-dni",J.T0);this.element.style.left="";this.element.style.top="";F.x++;F.y++;g.kc.prototype.Bo.call(this);var b=$J(this).body;J=new ZA(0,Infinity,Infinity,0);var I=Qj(b);for(var u=I.C.body,w=I.C.documentElement,M=woY(I.C);b=N8a(b);)if((!g.xM||b.clientHeight!=0||b!=u)&&b!=u&&b!=w&&gj(b,"overflow")!="visible"){var q=g.zv(b),v=new g.K$(b.clientLeft,b.clientTop);q.x+=v.x;q.y+=v.y;J.top=Math.max(J.top,q.y);J.right=Math.min(J.right, q.x+b.clientWidth);J.bottom=Math.min(J.bottom,q.y+b.clientHeight);J.left=Math.max(J.left,q.x)}u=M.scrollLeft;M=M.scrollTop;J.left=Math.max(J.left,u);J.top=Math.max(J.top,M);I=uWY(I.C.defaultView||window);J.right=Math.min(J.right,u+I.width);J.bottom=Math.min(J.bottom,M+I.height);I=J.top>=0&&J.left>=0&&J.bottom>J.top&&J.right>J.left?J:null;J=this.size;F=F.clone();J=J.clone();I&&(M=J,u=5,(u&65)==65&&(F.x<I.left||F.x>=I.right)&&(u&=-2),(u&132)==132&&(F.y<I.top||F.y>=I.bottom)&&(u&=-5),F.x<I.left&&u&1&& (F.x=I.left),u&16&&(w=F.x,F.x<I.left&&(F.x=I.left),F.x+M.width>I.right&&(M.width=Math.min(I.right-F.x,w+M.width-I.left),M.width=Math.max(M.width,0))),F.x+M.width>I.right&&u&1&&(F.x=Math.max(I.right-M.width,I.left)),F.y<I.top&&u&4&&(F.y=I.top),u&32&&(w=F.y,F.y<I.top&&(F.y=I.top),F.y+M.height>I.bottom&&(M.height=Math.min(I.bottom-F.y,w+M.height-I.top),M.height=Math.max(M.height,0))),F.y+M.height>I.bottom&&u&4&&(F.y=Math.max(I.bottom-M.height,I.top)));I=new g.uu(0,0,0,0);I.left=F.x;I.top=F.y;I.width= J.width;I.height=J.height;g.yf(this.element,new g.K$(I.left,I.top));g.Ve(this.Z);this.Z.B($J(this),"contextmenu",this.k1z);this.Z.B(this.G,"fullscreentoggled",this.onFullscreenToggled);this.Z.B(this.G,"pageTransition",this.Gb)}; g.A.k1z=function(F){if(!F.defaultPrevented){var J=dm(F);g.uB(this.element,J)||this.fk();this.G.J().disableNativeContextMenu&&F.preventDefault()}}; g.A.onFullscreenToggled=function(){this.fk();dpz(this)}; g.A.Gb=function(){this.fk()};g.z(ec,g.U);ec.prototype.onClick=function(){var F=this,J,b,I,u;return g.S(function(w){if(w.C==1)return J=F.api.J(),b=F.api.getVideoData(),I=F.api.getPlaylistId(),u=J.getVideoUrl(b.videoId,I,void 0,!0),g.T(w,G3G(F,u),2);w.U&&jza(F);F.api.logClick(F.element);g.N4(w)})}; ec.prototype.VG=function(){this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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=ENk(this);g.qr(this.element,"ytp-copylink-button-visible",this.visible); this.wY(this.visible);this.tooltip.Dl();this.api.logVisibility(this.element,this.visible&&this.D)}; ec.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)}; ec.prototype.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.element,"ytp-copylink-button-visible")};g.z(Kn,g.U);Kn.prototype.show=function(){g.U.prototype.show.call(this);g.Z_(this.U)}; Kn.prototype.hide=function(){this.Z.stop();this.T=0;this.RI("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Mr(this.element,"ytp-chapter-seek");g.Mr(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)}; Kn.prototype.xn=function(F,J,b,I){this.T=F===this.V?this.T+I:I;this.V=F;var u=F===-1?this.N:this.Y;u&&this.G.logClick(u);this.W?this.U.stop():g.L8(this.U);this.Z.start();this.element.setAttribute("data-side",F===-1?"back":"forward");var w=3*this.G.mG().getPlayerSize().height;u=this.G.mG().getPlayerSize();u=u.width/3-3*u.height;this.C.style.width=w+"px";this.C.style.height=w+"px";F===1?(this.C.style.left="",this.C.style.right=u+"px"):F===-1&&(this.C.style.right="",this.C.style.left=u+"px");var M=w* 2.5;w=M/2;var q=this.RI("ytp-doubletap-ripple");q.style.width=M+"px";q.style.height=M+"px";F===1?(F=this.G.mG().getPlayerSize().width-J+Math.abs(u),q.style.left="",q.style.right=F-w+"px"):F===-1&&(F=Math.abs(u)+J,q.style.right="",q.style.left=F-w+"px");q.style.top="calc((33% + "+Math.round(b)+"px) - "+w+"px)";if(b=this.RI("ytp-doubletap-ripple"))b.classList.remove("ytp-doubletap-ripple"),b.classList.add("ytp-doubletap-ripple");Vem(this,this.W?this.T:I)};g.z(Bh7,XI);g.A=Bh7.prototype;g.A.RM=function(F){this.qf||(this.qf=new hZ(this.G),g.k(this,this.qf));var J,b;if((J=this.Um)==null?0:(b=J.menu)==null?0:b.menuRenderer)this.qf.open(this.Um.menu.menuRenderer,F.target),F.preventDefault()}; g.A.jM=function(){return!!this.C}; g.A.DS=function(){return!!this.C}; g.A.aD=function(F){F.target===this.overflowButton.element?F.preventDefault():(this.T1&&this.G.jE("innertubeCommand",this.T1),this.o7(!1))}; g.A.tx=function(){this.o7(!0);var F,J;((F=this.C)==null?0:(J=F.bannerData)==null?0:J.dismissedStatusKey)&&this.Kk.push(this.C.bannerData.dismissedStatusKey);this.t7()}; g.A.ye=function(){this.t7();y$(this)}; g.A.v7E=function(F){var J=this,b;if(F.id!==((b=this.C)==null?void 0:b.identifier)){this.t7();b=g.N(this.kQ);for(var I=b.next();!I.done;I=b.next()){var u=I.value,w=void 0,M=void 0;if((I=(w=u)==null?void 0:(M=w.bannerData)==null?void 0:M.itemData)&&u.identifier===F.id){M=w=void 0;var q=((w=u)==null?void 0:(M=w.bannerData)==null?void 0:M.dismissedStatusKey)||"";if(this.Kk.includes(q))break;this.C=u;this.banner.element.setAttribute("aria-label",I.accessibilityLabel||"");I.trackingParams&&(this.Z=!0,this.G.setTrackingParams(this.badge.element, I.trackingParams));this.N.show();C1(this);this.WN.wY(!I.stayInApp);k3Y(this);rUk(this);mG(this);this.T1=g.O(I.onTapCommand,sT);if(u=g.O(I.menuOnTap,sT))this.Um=g.O(u,x8U);u=void 0;this.banner.update({thumbnail:(u=(I.thumbnailSources||[])[0])==null?void 0:u.url,title:I.productTitle,price:I.priceReplacementText?I.priceReplacementText:I.price,salesOriginalPrice:YKz(this),priceDropReferencePrice:$pk(this),promotionText:szo(this),priceA11yText:CKz(this),affiliateDisclaimer:I.affiliateDisclaimer,vendor:Xho(this)}); q=M=w=u=void 0;((u=I)==null?0:(w=u.hiddenProductOptions)==null?0:w.showDropCountdown)&&((M=I)==null?0:(q=M.hiddenProductOptions)==null?0:q.dropTimestampMs)&&(this.xm=new g.ty(function(){Dp_(J)},1E3),this.WN.hide(),this.countdownTimer.show(),Dp_(this)); this.G.S("web_player_enable_featured_product_banner_exclusives_on_desktop")&&ThJ(this)&&(this.NW=new g.ty(function(){SKG(J)},1E3),SKG(this))}}}}; g.A.t7=function(){this.C&&(this.C=void 0,this.sY())}; g.A.onVideoDataChange=function(F,J){var b=this;F==="dataloaded"&&y$(this);var I,u,w;F=g.O((I=J.getWatchNextResponse())==null?void 0:(u=I.playerOverlays)==null?void 0:(w=u.playerOverlayRenderer)==null?void 0:w.productsInVideoOverlayRenderer,ceV);this.overflowButton.show();this.dismissButton.hide();var M=F==null?void 0:F.featuredProductsEntityKey;this.trendingOfferEntityKey=F==null?void 0:F.trendingOfferEntityKey;this.kQ.length||(RXY(this,M),mG(this));var q;(q=this.MI)==null||q.call(this);this.MI=g.ZR.subscribe(function(){RXY(b, M);mG(b)})}; g.A.X_=function(){y$(this);k3Y(this);rUk(this);XI.prototype.X_.call(this)};g.z(Upa,g.U);Upa.prototype.onClick=function(){this.G.logClick(this.element,this.U)};g.z(xpm,g.YJ);g.A=xpm.prototype;g.A.show=function(){g.YJ.prototype.show.call(this);this.G.publish("infopaneldetailvisibilitychange",!0);this.G.logVisibility(this.element,!0);nNC(this,!0)}; g.A.hide=function(){g.YJ.prototype.hide.call(this);this.G.publish("infopaneldetailvisibilitychange",!1);this.G.logVisibility(this.element,!1);nNC(this,!1)}; g.A.getId=function(){return this.Z}; g.A.DQ=function(){return this.itemData.length}; g.A.onVideoDataChange=function(F,J){if(J){var b,I,u,w;this.update({title:((b=J.R5)==null?void 0:(I=b.title)==null?void 0:I.content)||"",body:((u=J.R5)==null?void 0:(w=u.bodyText)==null?void 0:w.content)||""});var M;F=((M=J.R5)==null?void 0:M.trackingParams)||null;this.G.setTrackingParams(this.element,F);M=g.N(this.itemData);for(F=M.next();!F.done;F=M.next())F.value.dispose();this.itemData=[];var q;if((q=J.R5)==null?0:q.ctaButtons)for(J=g.N(J.R5.ctaButtons),q=J.next();!q.done;q=J.next())if(q=g.O(q.value, Rtb))q=new Upa(this.G,q,this.C),q.o8&&(this.itemData.push(q),q.Az(this.items))}}; g.A.X_=function(){this.hide();g.YJ.prototype.X_.call(this)};g.z(Hez,g.U);g.A=Hez.prototype;g.A.onVideoDataChange=function(F,J){Zem(this,J);this.r0&&FJm(this,this.r0)}; g.A.Wt=function(F){var J=this.G.getVideoData();this.videoId!==J.videoId&&Zem(this,J);FJm(this,F.state);this.r0=F.state}; g.A.WB=function(F){(this.Z=F)?this.hide():this.C&&this.show()}; g.A.gF=function(){this.U||this.Bo();this.showControls=!0}; g.A.kz=function(){this.U||this.fk();this.showControls=!1}; g.A.Bo=function(){var F;if((F=this.G)==null?0:F.S("embeds_web_enable_info_panel_sizing_fix")){var J;F=(J=this.G)==null?void 0:J.getPlayerSize();J=F.width<380;var b;F=F.height<(((b=this.G)==null?0:b.isEmbedsShortsMode())?400:280);var I,u;if((((I=this.G)==null?0:I.getPlayerStateObject().isCued())||((u=this.G)==null?0:g.x(u.getPlayerStateObject(),1024)))&&J&&F)return}this.C&&!this.Z&&(this.T.show(),this.G.publish("infopanelpreviewvisibilitychange",!0),this.G.logVisibility(this.element,!0))}; g.A.fk=function(){this.C&&!this.Z&&(this.T.hide(),this.G.publish("infopanelpreviewvisibilitychange",!1),this.G.logVisibility(this.element,!1))}; g.A.jPI=function(){this.U=!1;this.showControls||this.fk()};var LLL={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(LLL).reduce(function(F,J){F[LLL[J]]=J;return F},{}); var FC8={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(FC8).reduce(function(F,J){F[FC8[J]]=J;return F},{}); var JxV={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(JxV).reduce(function(F,J){F[JxV[J]]=J;return F},{});var bGb,IwW;bGb=[{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"}];IwW=[{option:0,text:i_(0)},{option:.25,text:i_(.25)},{option:.5,text:i_(.5)},{option:.75,text:i_(.75)},{option:1,text:i_(1)}]; g.fn=[{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:bGb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:i_(.5)},{option:-1,text:i_(.75)},{option:0,text:i_(1)},{option:1,text:i_(1.5)},{option:2, text:i_(2)},{option:3,text:i_(3)},{option:4,text:i_(4)}]},{option:"background",text:"Background color",options:bGb},{option:"backgroundOpacity",text:"Background opacity",options:IwW},{option:"windowColor",text:"Window color",options:bGb},{option:"windowOpacity",text:"Window opacity",options:IwW},{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:i_(.25)},{option:.5,text:i_(.5)},{option:.75,text:i_(.75)},{option:1,text:i_(1)}]}];var uW5=[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.z(MU4,g.s5);g.A=MU4.prototype; g.A.Xe=function(F){F.repeat||(this.T.hQ=!1);var J=!1,b=F.keyCode,I=dm(F),u=!F.altKey&&!F.ctrlKey&&!F.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||uW5.includes(b)),w=!1,M=!1,q=this.api.J();F.defaultPrevented?(u=!1,M=!0):q.xo&&!this.api.isMutedByEmbedsMutedAutoplay()&&(u=!1);if(b===9)J=!0;else{if(I)switch(b){case 32:case 13:if(I.tagName==="BUTTON"||I.tagName==="A"||I.tagName==="INPUT")J=!0,u=!1;else if(u){var v=I.getAttribute("role");!v||v!=="option"&&v!=="button"&&v.indexOf("menuitem")!==0|| (J=!0,I.click(),w=!0)}break;case 37:case 39:case 36:case 35:J=I.getAttribute("role")==="slider";break;case 38:case 40:v=I.getAttribute("role"),I=b===38?I.previousSibling:I.nextSibling,v==="slider"?J=!0:u&&(v==="option"?(I&&I.getAttribute("role")==="option"&&I.focus(),w=J=!0):v&&v.indexOf("menuitem")===0&&(I&&I.hasAttribute("role")&&I.getAttribute("role").indexOf("menuitem")===0&&I.focus(),w=J=!0))}if(u&&!w)switch(b){case 38:w=Math.min(this.api.getVolume()+5,100);ws(this.Fd,w,!1);this.api.setVolume(w); M=w=!0;break;case 40:w=Math.max(this.api.getVolume()-5,0);ws(this.Fd,w,!0);this.api.setVolume(w);M=w=!0;break;case 36:this.api.hX()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),M=w=!0);break;case 35:this.api.hX()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),M=w=!0)}}J&&NH(this,!0);(J||M)&&this.rq.q6();(w||u&&this.handleGlobalKeyDown(b,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code,F.repeat))&&F.preventDefault();q.V&&(F={keyCode:F.keyCode, altKey:F.altKey,ctrlKey:F.ctrlKey,metaKey:F.metaKey,shiftKey:F.shiftKey,handled:F.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.SZ("onKeyPress",F))}; g.A.s6=function(F){var J=F.keyCode;(!this.api.S("web_player_spacebar_control_bugfix")||this.api.S("web_player_spacebar_control_bugfix")&&!this.Z)&&this.handleGlobalKeyUp(J,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code)&&F.preventDefault()}; g.A.handleGlobalKeyUp=function(F,J,b,I,u,w,M){this.api.publish("keyboardserviceglobalkeyup",{keyCode:F,shiftKey:J,ctrlKey:b,altKey:I,metaKey:u,key:w,code:M});J=!1;if(this.T.hQ)return J;(b=g.GP(this.api.TF()))&&(b=b.Gd)&&b.uT&&(b.ea(F),J=!0);switch(F){case 9:NH(this,!0);J=!0;break;case 32:if(this.api.S("web_speedmaster_spacebar_control")&&(!this.api.S("web_player_spacebar_control_bugfix")&&!this.Z||this.api.S("web_player_spacebar_control_bugfix"))&&!this.api.J().xo){var q,v;F=(q=this.progressBar)== null?void 0:(v=q.U)==null?void 0:v.isEnabled;J=this.UW(F)}}return J}; g.A.handleGlobalKeyDown=function(F,J,b,I,u,w,M,q){q||(this.T.hQ=!1);var v=!1,a=this.api.J();if(a.xo&&!this.api.isMutedByEmbedsMutedAutoplay())return v;var e=g.GP(this.api.TF());if(e&&(e=e.Gd)&&e.uT)switch(F){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:v=e.TB(F)}a.W||v||(v=w||String.fromCharCode(F).toLowerCase(),this.U+=v,"awesome".indexOf(this.U)===0?(v=!0,7===this.U.length&&TjG(this.api.getRootNode(),"ytp-color-party")):(this.U=v,v="awesome".indexOf(this.U)===0));if(!v&&(!this.api.isMutedByEmbedsMutedAutoplay()|| uW5.includes(F))){var K=this.api.getVideoData(),p,m;e=(p=this.progressBar)==null?void 0:(m=p.U)==null?void 0:m.isEnabled;p=K?K.wX:[];m=xi?I:b;switch(F){case 80:J&&!a.qf&&(u_(this.Fd,BZ7(),"Previous"),this.api.previousVideo(),v=!0);break;case 78:J&&!a.qf&&(u_(this.Fd,Nc(),"Next"),this.api.nextVideo(),v=!0);break;case 74:this.api.hX()&&(this.api.startSeekCsiAction(),this.C?this.api.S("enable_key_press_seek_logging")?(v=l_(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),pn(this.C, -1,10,v)):pn(this.C,-1,10):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0);break;case 76:this.api.hX()&&(this.api.startSeekCsiAction(),this.C?this.api.S("enable_key_press_seek_logging")?(v=l_(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),pn(this.C,1,10,v)):pn(this.C,1,10):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0);break;case 37:this.api.hX()&&(this.api.startSeekCsiAction(),m?(m=IPC(p,this.api.getCurrentTime()*1E3),m!==-1&&this.C!=null&&(PKC(this.C,-1,p[m].title),this.api.seekTo(p[m].startTime/1E3,void 0,void 0,void 0,53),v=!0)):(this.C?this.api.S("enable_key_press_seek_logging")?(v=l_(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),pn(this.C,-1,5,v)):pn(this.C,-1,5):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0));break;case 39:this.api.hX()&&(this.api.startSeekCsiAction(),m?(m=bRm(p,this.api.getCurrentTime()*1E3),m!==-1&&this.C!=null&&(PKC(this.C,1,p[m].title),this.api.seekTo(p[m].startTime/1E3,void 0,void 0,void 0,52),v=!0)):(this.C!=null?this.api.S("enable_key_press_seek_logging")?(v=l_(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),pn(this.C,1,5,v)):pn(this.C,1,5):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),ws(this.Fd,this.api.getVolume(),!1)):(this.api.mute(),ws(this.Fd,0,!0));v=!0;break;case 32:v=this.api.S("web_speedmaster_spacebar_control")?!this.api.J().qf:this.UW(e);break;case 75:v=this.UW(e);break;case 190:J?a.enableSpeedOptions&&qgm(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v+.25,!0),beY(this.Fd,!1),v=!0):this.api.hX()&&(this.step(1),v=!0);break;case 188:J? a.enableSpeedOptions&&qgm(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v-.25,!0),beY(this.Fd,!0),v=!0):this.api.hX()&&(this.step(-1),v=!0);break;case 70:Hmo(this.api)&&(this.api.toggleFullscreen().catch(function(){}),v=!0); break;case 27:e?(this.progressBar.FZ(),v=!0):this.W()&&(v=!0)}if(a.controlsType!=="3")switch(F){case 67:g.Y0(this.api.TF())&&(a=this.api.getOption("captions","track"),this.api.toggleSubtitles(),IuG(this.Fd,!a||a&&!a.displayName),v=!0);break;case 79:Wm(this,"textOpacity");break;case 87:Wm(this,"windowOpacity");break;case 187:case 61:Wm(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Wm(this,"fontSizeIncrement",!0,!0)}var y;J||b||I||(F>=48&&F<=57?y=F-48:F>=96&&F<=105&&(y=F-96));y!=null&&this.api.hX()&& (this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(y/10*(a.seekableEnd-a.seekableStart)+a.seekableStart,void 0,void 0,void 0,81),v=!0);v&&this.rq.q6()}this.Z||this.api.publish("keyboardserviceglobalkeydown",{keyCode:F,shiftKey:J,ctrlKey:b,altKey:I,metaKey:u,key:w,code:M,repeat:q},this.T);return v}; g.A.step=function(F){this.api.hX();if(this.api.getPlayerStateObject().isPaused()){var J=this.api.getVideoData().U;J&&(J=J.video)&&this.api.seekBy(F/(J.fps||30),void 0,void 0,F>0?77:78)}}; g.A.UW=function(F){if(!this.api.J().qf){var J;var b,I=(J=this.api.getVideoData())==null?void 0:(b=J.getPlayerResponse())==null?void 0:b.playabilityStatus;if(I){var u;J=((u=g.O(I.miniplayer,JL1))==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else J=!1;J&&this.api.jE("onExpandMiniplayer");F?this.progressBar.MD():(F=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Fd.PP(F),F?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.A.X_=function(){g.L8(this.D);g.s5.prototype.X_.call(this)};g.z(g.ds,g.U);g.ds.prototype.aE=bk(11); g.ds.prototype.VG=function(){var F=this.G.J(),J=F.T||this.G.S("web_player_hide_overflow_button_if_empty_menu")&&this.z7.isEmpty();F=g.dN(F)&&g.Ef(this.G)&&g.x(this.G.getPlayerStateObject(),128);var b=this.G.getPlayerSize();this.visible=this.G.Ru()&&!F&&b.width>=240&&!g.tw(this.G.getVideoData())&&!J&&!this.C&&!this.G.isEmbedsShortsMode();g.qr(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.G.Dl();this.G.logVisibility(this.element,this.visible&&this.D)}; g.ds.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.logVisibility(this.element,this.visible&&F)}; g.ds.prototype.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.element,"ytp-overflow-button-visible")};g.z(vvJ,g.YJ);g.A=vvJ.prototype;g.A.A0=function(F){F=dm(F);g.uB(this.element,F)&&(g.uB(this.C,F)||g.uB(this.closeButton,F)||CE(this))}; g.A.fk=function(){g.YJ.prototype.fk.call(this);this.G.DW(this.element)}; g.A.show=function(){this.uT&&this.G.publish("OVERFLOW_PANEL_OPENED");g.YJ.prototype.show.call(this);this.element.setAttribute("aria-modal","true");eD_(this,!0)}; g.A.hide=function(){g.YJ.prototype.hide.call(this);this.element.removeAttribute("aria-modal");eD_(this,!1)}; g.A.onFullscreenToggled=function(F){!F&&this.K4()&&CE(this)}; g.A.isEmpty=function(){return this.actionButtons.length===0}; g.A.focus=function(){for(var F=g.N(this.actionButtons),J=F.next();!J.done;J=F.next())if(J=J.value,J.uT){J.focus();break}};g.z(KJk,g.U);KJk.prototype.onClick=function(F){g.LE(F,this.api)&&this.api.playVideoAt(this.index)};g.z(pnk,g.YJ);g.A=pnk.prototype;g.A.show=function(){g.YJ.prototype.show.call(this);this.C.B(this.api,"videodatachange",this.Fv);this.C.B(this.api,"onPlaylistUpdate",this.Fv);this.Fv()}; g.A.hide=function(){g.YJ.prototype.hide.call(this);g.Ve(this.C);this.updatePlaylist(null)}; g.A.Fv=function(){this.updatePlaylist(this.api.getPlaylist());this.api.J().T&&(this.RI("ytp-playlist-menu-title-name").removeAttribute("href"),this.T&&(this.iX(this.T),this.T=null))}; g.A.It=function(){var F=this.playlist,J=F.author,b=J?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",I={CURRENT_POSITION:String(F.index+1),PLAYLIST_LENGTH:String(F.getLength())};J&&(I.AUTHOR=J);this.update({title:F.title,subtitle:g.m8(b,I),playlisturl:this.api.getVideoUrl(!0)});J=F.U;if(J===this.Z)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[F.index];else{b=g.N(this.playlistData);for(I=b.next();!I.done;I=b.next())I.value.dispose(); b=F.getLength();this.playlistData=[];for(I=0;I<b;I++){var u=new KJk(this.api,F,I);this.playlistData.push(u);u.Az(this.items)}this.selected=this.playlistData[F.index];this.Z=J}this.selected&&this.selected.element.setAttribute("aria-checked","true")}; g.A.exR=function(F){var J=this.api.getVideoUrl(!0);g.Fy(J,this.api,F)}; g.A.updatePlaylist=function(F){this.playlist!==F?(this.playlist&&this.playlist.unsubscribe("shuffle",this.It,this),this.playlist=F,this.Z=null,F?(F.subscribe("shuffle",this.It,this),this.It()):this.uT&&this.hide()):this.playlist&&this.It()}; g.A.focus=function(){this.selected.focus()}; g.A.X_=function(){this.hide();g.YJ.prototype.X_.call(this)};g.z(Eb,g.U);Eb.prototype.hide=function(){g.U.prototype.hide.call(this);this.tJ(!1);this.api.Dl()}; Eb.prototype.VG=function(){var F=g.dN(this.api.J());g.qr(this.element,"ytp-playlist-menu-button-tiny",this.api.mG().getPlayerSize().width<400&&!F);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.m8("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.m8("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.uT||(this.show(), this.api.Dl()),this.visible=!0,this.tJ(!0)):this.uT&&this.hide()}; Eb.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)}; Eb.prototype.C=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.VG,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.VG,this);this.VG()};g.z(gvm,g.U);g.A=gvm.prototype;g.A.qg=function(){this.Z?zDa(this):iRa(this)}; g.A.O7=function(){this.Z?(jc(this),this.V=!0):iRa(this)}; g.A.xWf=function(){this.W=!0;this.Iy(1);this.G.publish("promotooltipacceptbuttonclicked",this.acceptButton);jc(this);this.U&&this.G.logClick(this.acceptButton)}; g.A.Rt_=function(){this.W=!0;this.Iy(2);jc(this);this.U&&this.G.logClick(this.dismissButton)}; g.A.DN=function(F){if(this.G.getPresentingPlayerType()===1||this.G.getPresentingPlayerType()===2&&this.Y){var J=!0,b=g.c1("ytp-ad-overlay-ad-info-dialog-container"),I=g.c1("ytp-ad-player-overlay-layout"),u=dm(F);if(this.T&&u&&g.uB(this.T,u))this.T=null;else{this.G.getPresentingPlayerType()===1&&u&&Array.from(u.classList).forEach(function(v){if(v.startsWith("ytp-ad")||v.startsWith("ytp-skip-ad"))J=!1}); var w=N6m(this.tooltipRenderer),M;if(((M=this.tooltipRenderer.dismissStrategy)==null?void 0:M.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")w&&(J=J&&!g.uB(this.element,u));else{var q;((q=this.tooltipRenderer.dismissStrategy)==null?void 0:q.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(J=w?!1:J&&g.uB(this.element,u))}this.C&&this.uT&&!b&&!I&&(!u||J&&g.f0(F))&&(this.W=!0,jc(this))}}}; g.A.Iy=function(F){var J=this.tooltipRenderer.promoConfig;if(J){switch(F){case 0:var b;if((b=J.impressionEndpoints)==null?0:b.length)var I=J.impressionEndpoints[0];break;case 1:I=J.acceptCommand;break;case 2:I=J.dismissCommand}var u;F=(u=g.O(I,Qb1))==null?void 0:u.feedbackToken;I&&F&&(u={feedbackTokens:[F]},F=this.G.n8(),(F==null?0:NL3(I,F.gU))&&ho(F,I,u))}}; g.A.mO=function(){this.V||(this.C||(this.C=mia(this)),zDa(this))}; var y7J={"ytp-settings-button":g.Ej()};g.z(G4,g.U);G4.prototype.onStateChange=function(F){this.aC(F.state)}; G4.prototype.aC=function(F){this.wY(g.x(F,2))}; G4.prototype.onClick=function(){this.G.getPlayerStateObject().isOrWillBePlaying();this.G.playVideo()};g.z(V$,g.U);V$.prototype.onClick=function(F){this.api.logClick(this.element);var J=g.Os(this.api.J().ME,{focusSearch:"true"}),b={};g.wO(this.api,"addEmbedsConversionTrackingParams",[b]);J=g.Os(J,b);var I;(b=(I=this.api.getVideoData().DG)==null?void 0:I.params)&&(J=g.Os(J,{bp:b}));g.C5(window,J);F.preventDefault()}; V$.prototype.C=function(){if(this.api.S("embeds_web_enable_search_button")){var F=this.api.J();var J=this.api.getVideoData(),b=this.api.mG().getPlayerSize().width;F=g.dN(F)&&b>=this.U&&!F.T&&!J.isAd()&&!this.api.isEmbedsShortsMode()}else F=!1;this.visible=F;this.wY(this.visible);g.qr(this.element,"ytp-search-button-visible",this.visible);g.qr(this.element,"ytp-show-search-title",!this.api.Ru());this.api.logVisibility(this.element,this.visible&&this.D)}; V$.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};g.z(g.Pm,g.U);g.A=g.Pm.prototype;g.A.by=bk(8);g.A.onClick=function(){var F=this,J=this.api.J(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),I=this.api.getPlaylistId();J=this.api.S("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):J.getVideoUrl(b.videoId,I,void 0,!0);if(navigator.share)try{var u=navigator.share({title:b.title,url:J});u instanceof Promise&&u.catch(function(w){fPv(F,w)})}catch(w){w instanceof Error&&fPv(this,w)}else this.C.bJ(),CE(this.T,this.element,!1); this.api.logClick(this.element)}; g.A.VG=function(){var F=this.api.J(),J=this.api.isEmbedsShortsMode();g.qr(this.element,"ytp-show-share-title",g.dN(F)&&!J);this.C.Ua()&&J?(F=(this.api.mG().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.aN(this.element,"right",F+"px")):J&&g.aN(this.element,"right","0px");this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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=lPG(this);g.qr(this.element,"ytp-share-button-visible",this.visible);this.wY(this.visible);this.tooltip.Dl();this.api.logVisibility(this.element,lPG(this)&&this.D)}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)}; g.A.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.element,"ytp-share-button-visible")};g.z(diz,g.YJ);g.A=diz.prototype;g.A.i8=function(F){F=dm(F);g.uB(this.W,F)||g.uB(this.closeButton,F)||CE(this)}; g.A.fk=function(){g.YJ.prototype.fk.call(this);this.tooltip.DW(this.element);this.api.logVisibility(this.C,!1);for(var F=g.N(this.T),J=F.next();!J.done;J=F.next())J=J.value,this.api.hasVe(J.element)&&this.api.logVisibility(J.element,!1)}; g.A.show=function(){var F=this.uT;g.YJ.prototype.show.call(this);this.VG();F||this.api.jE("onSharePanelOpened")}; g.A.sfQ=function(){this.uT&&this.VG()}; g.A.VG=function(){var F=this;g.uG(this.element,"ytp-share-panel-loading");g.Mr(this.element,"ytp-share-panel-fail");var J=this.api.getVideoData(),b=this.api.getPlaylistId()&&this.Z.checked;J.getSharePanelCommand&&ho(this.api.n8(),J.getSharePanelCommand,{includeListId:b}).then(function(I){F.iR()||(g.Mr(F.element,"ytp-share-panel-loading"),jLz(F,I))}); J=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",J);this.updateValue("linkText",J);this.updateValue("shareLinkWithUrl",g.m8("Share link $URL",{URL:J}));bX(this.C);this.api.logVisibility(this.C,!0)}; g.A.onFullscreenToggled=function(F){!F&&this.K4()&&CE(this)}; g.A.focus=function(){this.C.focus()}; g.A.X_=function(){g.YJ.prototype.X_.call(this);EvG(this)};g.z(PYz,XI);g.A=PYz.prototype;g.A.X_=function(){sL_(this);XI.prototype.X_.call(this)}; g.A.aD=function(F){F.target!==this.dismissButton.element&&(this.o7(!1),this.G.jE("innertubeCommand",this.onClickCommand))}; g.A.tx=function(){this.Jz=!0;this.o7(!0);this.sY()}; g.A.wVN=function(F){this.V=F;this.sY()}; g.A.onVideoDataChange=function(F,J){if(F=!!J.videoId&&this.videoId!==J.videoId)this.videoId=J.videoId,this.Jz=!1,this.Gj=!0,this.Y=this.eE=!1,sL_(this),SgC(this,!1),this.U=this.C=!1,T4(this),B67(this);if(F||!J.videoId)this.Tj=this.Z=!1;var b,I;if(J==null?0:(b=J.getPlayerResponse())==null?0:(I=b.videoDetails)==null?0:I.isLiveContent)this.G0(!1);else{var u,w,M;J=g.O((u=J.getWatchNextResponse())==null?void 0:(w=u.playerOverlays)==null?void 0:(M=w.playerOverlayRenderer)==null?void 0:M.productsInVideoOverlayRenderer, ceV);this.V=this.enabled=!1;if(J){if(u=J==null?void 0:J.featuredProductsEntityKey){w=g.ZR.getState().entities;var q;if((q=qs(w,"featuredProductsEntity",u))==null?0:q.productsData){this.G0(!1);return}}this.enabled=!0;if(!this.Z){var v;q=(v=J.badgeInteractionLogging)==null?void 0:v.trackingParams;(this.Z=!!q)&&this.G.setTrackingParams(this.badge.element,q||null)}if(!this.Tj){var a;if(this.Tj=!((a=J.dismissButton)==null||!a.trackingParams)){var e;this.G.setTrackingParams(this.dismissButton.element,((e= J.dismissButton)==null?void 0:e.trackingParams)||null)}}J.isContentForward&&(v=J.productsData,SgC(this,!0),B67(this),v=r77(this,v),a=[],v.length>0&&a.push(v[0]),v.length>1&&(e=new g.U({X:"div",K:"ytp-suggested-action-more-products-icon"}),g.k(this,e),a.push(e),a.push.apply(a,g.W(v.slice(1)))),this.W=new g.U({X:"div",j:a,K:"ytp-suggested-action-content-forward-container"}),g.k(this,this.W),this.fW.element.append(this.W.element));this.text=g.Kr(J.text);var K;if(v=(K=J.dismissButton)==null?void 0:K.a11yLabel)this.KW= g.Kr(v);this.onClickCommand=J.onClickCommand;this.timing=J.timing;this.TU()}BAz(this);C1(this);this.sY()}}; g.A.jM=function(){return!this.V&&this.enabled&&!this.Jz&&!this.G.Ru()&&!this.Om&&(this.Y||this.Gj)}; g.A.jC=function(F){XI.prototype.jC.call(this,F);if(this.C||this.U)this.timing&&Bm(this.timing.preview)&&(this.C=!1,T4(this),this.U=!1,T4(this),this.G.Yo("shopping_overlay_preview_collapsed"),this.G.Yo("shopping_overlay_preview_expanded"),F=rs(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Bm(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.G.Yo("shopping_overlay_expanded"),F.end=this.timing.expanded.endSec*1E3),this.G.TU([F])), this.eE=!0,C1(this);T4(this)}; g.A.G0=function(F){(this.Y=F)?($c(this),C1(this,!1)):(sL_(this),this.dD.start());this.sY()}; g.A.TU=function(F){var J=this.timing;F=(F===void 0?0:F)+this.G.getCurrentTime();var b=[],I=J.visible,u=J.preview;J=J.expanded;Bm(I)&&(G7z(I,F),b.push(rs(I.startSec,I.endSec,"shopping_overlay_visible")));Bm(u)&&(G7z(u,F),I=u.startSec+1,b.push(rs(u.startSec,I,"shopping_overlay_preview_collapsed")),b.push(rs(I,u.endSec,"shopping_overlay_preview_expanded")));Bm(J)&&(G7z(J,F),b.push(rs(J.startSec,J.endSec,"shopping_overlay_expanded")));this.G.TU(b)};g.z(CYJ,g.U); CYJ.prototype.VG=function(){var F=this.api.J();this.wY(g.dN(F)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.uT);var J=this.api.getVideoData(),b=!1;this.api.getPresentingPlayerType()===2?b=!!J.videoId&&!!J.isListed&&!!J.author&&!!J.Om&&!!J.profilePicture:g.dN(F)&&(b=!!J.videoId&&!!J.Om&&!!J.profilePicture&&!g.tw(J)&&!F.T&&!(F.Y&&this.api.getPlayerSize().width<200));var I=J.profilePicture;F=g.dN(F)?J.expandedTitle:J.author;I=I===void 0? "":I;F=F===void 0?"":F;b?(this.U!==I&&(this.C.style.backgroundImage="url("+I+")",this.U=I),this.updateValue("channelLogoLabel",g.m8("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:F})),g.uG(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.C,b&&this.D);this.api.logVisibility(this.channelName,b&&this.D);this.subscribeButton&&(this.subscribeButton.channelId=J.uB);this.updateValue("expandedTitle",J.expandedTitle)};g.z(Sc,g.YJ);Sc.prototype.show=function(){g.YJ.prototype.show.call(this);this.C.start()}; Sc.prototype.hide=function(){g.YJ.prototype.hide.call(this);this.C.stop()}; Sc.prototype.xR=function(F,J){F==="dataloaded"&&((this.B9=J.B9,this.jZ=J.jZ,isNaN(this.B9)||isNaN(this.jZ))?this.T&&(this.G.Yo("intro"),this.G.removeEventListener(g.u6("intro"),this.V),this.G.removeEventListener(g.wq("intro"),this.W),this.G.removeEventListener("onShowControls",this.Z),this.hide(),this.T=!1):(this.G.addEventListener(g.u6("intro"),this.V),this.G.addEventListener(g.wq("intro"),this.W),this.G.addEventListener("onShowControls",this.Z),F=new g.b6(this.B9,this.jZ,{priority:9,namespace:"intro"}), this.G.TU([F]),this.T=!0))};g.z(sb,g.U);sb.prototype.onClick=function(){this.G.Rv()}; sb.prototype.VG=function(){var F=!0;g.dN(this.G.J())&&(F=F&&this.G.mG().getPlayerSize().width>=480);this.wY(F);this.updateValue("icon",this.G.Hh()?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}: {X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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.z(QLJ,g.U);QLJ.prototype.X_=function(){this.C=null;g.U.prototype.X_.call(this)};g.z(Yr,g.U);Yr.prototype.onClick=function(){this.G.jE("innertubeCommand",this.U)}; Yr.prototype.N=function(F){F!==this.W&&(this.update({title:F,ariaLabel:F}),this.W=F);F?this.show():this.hide()}; Yr.prototype.Y=function(){this.C.disabled=this.U==null;g.qr(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Q6()};g.z($r,Yr);$r.prototype.onClickCommand=function(F){g.O(F,ti)&&this.Q6()}; $r.prototype.updateVideoData=function(F,J){var b,I,u;F=g.O((b=J.getWatchNextResponse())==null?void 0:(I=b.playerOverlays)==null?void 0:(u=I.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,lr);b=g.O(F==null?void 0:F.playerBarActionButton,g.TX);this.G.S("web_player_updated_entrypoint")&&(this.V=Ka(b==null?void 0:b.text));this.U=b==null?void 0:b.command;Yr.prototype.Y.call(this)}; $r.prototype.Q6=function(){var F=this.G.S("web_player_updated_entrypoint")?this.V:"",J=this.Z.C,b,I=((b=this.G.getLoopRange())==null?void 0:b.type)==="clips";if(J.length>1&&!I){F=this.G.getProgressState().current*1E3;b=z4(J,F);F=J[b].title||"Chapters";if(b!==this.currentIndex||this.T)this.G.jE("innertubeCommand",J[b].onActiveCommand),this.currentIndex=b;this.T=!1}else this.T=!0;Yr.prototype.N.call(this,F)};g.z(Cn,g.U);Cn.prototype.W=function(F){g.x(F.state,32)?Dik(this,this.api.Si()):this.uT&&(g.x(F.state,16)||g.x(F.state,1))||this.C.hide()}; Cn.prototype.aP=function(){var F=this.api.getPlayerStateObject();(g.x(F,32)||g.x(F,16))&&k7Y(this)}; Cn.prototype.V=function(){this.T=NaN;k7Y(this)}; Cn.prototype.hide=function(){this.U&&Dik(this,null);g.U.prototype.hide.call(this)};g.z(ORz,g.U);g.A=ORz.prototype;g.A.onClick=function(){var F=this;if(this.G.J().Om||this.G.J().Y){this.G.logClick(this.element);try{this.G.toggleFullscreen().catch(function(J){F.L5(J)})}catch(J){this.L5(J)}}else CE(this.message,this.element,!0)}; g.A.L5=function(F){String(F).includes("fullscreen error")?g.rQ(F):g.Td(F);this.MS()}; g.A.MS=function(){this.disable();this.message.Bo(this.element,!0)}; g.A.Up=function(){ye()===this.G.getRootNode()?this.T.start():(this.T.stop(),this.message&&this.message.hide())}; g.A.t1=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var F=window.screen.width*.9,J=window.screen.height*.9,b=Math.max(window.outerWidth,window.innerWidth),I=Math.max(window.outerHeight,window.innerHeight);if(b>I!==F>J){var u=b;b=I;I=u}F>b&&J>I&&this.MS()}}; g.A.disable=function(){var F=this;if(!this.message){var J=(pw(["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.YJ(this.G,{X:"div",Dv:["ytp-popup","ytp-generic-popup"],L:{role:"alert",tabindex:"0"},j:[J[0],{X:"a",L:{href:"https://support.google.com/youtube/answer/6276924", target:this.G.J().N},sQ:J[2]},J[4]]},100,!0);this.message.hide();g.k(this,this.message);this.message.subscribe("show",function(b){F.U.rG(F.message,b)}); g.Pp(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.C)();this.C=null}}; g.A.VG=function(){var F=Hmo(this.G),J=this.G.J().Y&&this.G.getPlayerSize().width<250;this.wY(F&&!J);var b;((b=this.G.J())==null?0:b.S("embeds_use_parent_visibility_in_ve_logging"))?this.G.logVisibility(this.element,this.uT&&this.D):this.G.logVisibility(this.element,this.uT)}; g.A.wT=function(F){if(F){var J={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"g",K:"ytp-fullscreen-button-corner-2",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-3",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-0",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{X:"g", K:"ytp-fullscreen-button-corner-1",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};F=g.NZ(this.G,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.G.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(b){g.rQ(b)})}else J={X:"svg", L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"g",K:"ytp-fullscreen-button-corner-0",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-1",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-2",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-3", j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},F=g.NZ(this.G,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});F=this.message?null:F;this.update({title:F,icon:J});this.U.W1().Dl()}; g.A.X_=function(){this.message||((0,this.C)(),this.C=null);g.U.prototype.X_.call(this)}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);var J;((J=this.G.J())==null?0:J.S("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.uT&&F)};g.z(XG,g.U);XG.prototype.onClick=function(){this.G.logClick(this.element);this.G.seekBy(this.C,!0);var F=this.C>0?1:-1,J=Math.abs(this.C),b=this.G.p8().zX;b&&pn(b,F,J);this.U.isActive()?this.T=!0:(F=["ytp-jump-spin"],this.C<0&&F.push("backwards"),this.element.classList.add.apply(this.element.classList,g.W(F)),g.Z_(this.U))};g.z(Q$,Yr);Q$.prototype.onClickCommand=function(F){g.O(F,oLb)&&this.Q6()}; Q$.prototype.updateVideoData=function(){var F,J;this.U=(F=hDa(this))==null?void 0:(J=F.onTap)==null?void 0:J.innertubeCommand;Yr.prototype.Y.call(this)}; Q$.prototype.Q6=function(){var F="",J=this.Z.V,b,I=(b=hDa(this))==null?void 0:b.headerTitle;b=I?g.Kr(I):"";var u;I=((u=this.G.getLoopRange())==null?void 0:u.type)==="clips";J.length>1&&!I&&(F=this.G.getProgressState().current*1E3,u=J74(J,F),F=u!=null?J[u].title:b,u!=null&&u!==this.currentIndex&&(this.G.jE("innertubeCommand",J[u].onActiveCommand),this.currentIndex=u));Yr.prototype.N.call(this,F)};g.z(R9,g.U);R9.prototype.onClick=function(){this.G.jE("onCollapseMiniplayer");this.G.logClick(this.element)}; R9.prototype.VG=function(){this.visible=!this.G.isFullscreen();this.wY(this.visible);this.G.logVisibility(this.element,this.visible&&this.D)}; R9.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.logVisibility(this.element,this.visible&&F)};g.z(Db,g.U);g.A=Db.prototype;g.A.c7=function(F){this.visible=F.width>=300||this.WN;this.wY(this.visible);this.G.logVisibility(this.element,this.visible&&this.D)}; g.A.y_D=function(){this.G.J().dD?this.G.isMuted()?this.G.unMute():this.G.mute():CE(this.message,this.element,!0);this.G.logClick(this.element)}; g.A.onVolumeChange=function(F){this.setVolume(F.volume,F.muted)}; g.A.setVolume=function(F,J){var b=this,I=J?0:F/100,u=this.G.J();F=I===0?1:F>50?1:0;if(this.W!==F){var w=this.eE;isNaN(w)?xiv(this,F):grG(this.kQ,function(q){xiv(b,w+(b.W-w)*q)},250); this.W=F}I=I===0?1:0;if(this.Z!==I){var M=this.N;isNaN(M)?nvC(this,I):grG(this.Tj,function(q){nvC(b,M+(b.Z-M)*q)},250); this.Z=I}u.dD&&(u=g.NZ(this.G,"Mute","m"),I=g.NZ(this.G,"Unmute","m"),this.updateValue("title",J?I:u),this.update({"data-title-no-tooltip":J?"Unmute":"Mute"}),this.tooltip.Dl())}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.logVisibility(this.element,this.visible&&F)}; var c7Y=["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"],Uim=["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.z(g.kr,g.U);g.A=g.kr.prototype;g.A.onStateChange=function(F){this.aC(F.state);var J;((J=this.G.J())==null?0:J.S("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.uT&&this.D)}; g.A.aC=function(F){var J=g.dS(this.G.getVideoData()),b=!1;F.isOrWillBePlaying()?F=J?4:2:g.x(F,2)?(F=3,b=J):F=1;this.element.disabled=b;if(this.C!==F){J=null;switch(F){case 2:J=g.NZ(this.G,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:J="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:J=g.NZ(this.G,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:J="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}F=== 3?this.update({title:J,icon:tU7(F)}):(this.update({title:J}),(J=tU7(F))&&this.C&&this.C!==3?yqa(this.transition,this.element,J):this.updateValue("icon",J));this.tooltip.Dl();this.C=F}}; g.A.onVideoDataChange=function(){g.qr(this.element,"ytp-play-button-playlist",g.Ef(this.G))}; g.A.UW=function(F){this.G.logClick(this.element);if(this.G.getPlayerStateObject().isOrWillBePlaying())this.G.pauseVideo();else{if(this.G.isMinimized()&&this.G.getPlayerStateObject().isCued()){var J={},b;if((b=this.G.getVideoData())==null?0:b.W)J.cttAuthInfo={token:this.G.getVideoData().W,videoId:this.G.getVideoData().videoId};Rr("direct_playback",J);this.G.Iu().timerName="direct_playback"}else this.C!==3||this.G.J().S("html5_no_csi_on_replay")||WU(this.G.Iu());this.G.playVideo()}this.G.isMinimized()&& (F==null?void 0:F.type)==="click"&&this.element.blur()}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);var J;((J=this.G.J())==null?0:J.S("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.uT&&F)};g.z(g.Ob,g.U);g.A=g.Ob.prototype;g.A.onVideoDataChange=function(){HRY(this);this.Z&&(this.iX(this.Z),this.Z=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Z=this.B(this.G,"progresssync",this.fY);this.T=LJv(this);ZRk(this);this.BI(this.G.mG().getPlayerSize())}; g.A.BI=function(F){F=F===void 0?this.G.mG().getPlayerSize():F;var J,b=((J=this.G.getLoopRange())==null?void 0:J.type)==="clips";F=(g.Ef(this.G)||this.C&&g.Bp(this.G)&&!this.G.S("web_hide_next_button")||F0v(this))&&!b&&(this.C||F.width>=400);this.wY(F);this.G.logVisibility(this.element,F)}; g.A.onClick=function(F){this.G.logClick(this.element);var J=!0;this.V?J=g.LE(F,this.G):F.preventDefault();J&&(this.C&&this.G.getPresentingPlayerType()===5?this.G.publish("ytoprerollinternstitialnext"):this.C?(WU(this.G.Iu()),this.G.publish("playlistnextbuttonclicked",this.element),this.G.nextVideo(!0)):this.T?this.G.seekTo(0):(WU(this.G.Iu()),this.G.publish("playlistprevbuttonclicked",this.element),this.G.previousVideo(!0)))}; g.A.fY=function(){var F=LJv(this);F!==this.T&&(this.T=F,ZRk(this))}; g.A.X_=function(){this.U&&(this.U(),this.U=null);HRY(this);g.U.prototype.X_.call(this)};g.z(b43,g.U);g.A=b43.prototype;g.A.E7=function(F){this.oT(F.pageX);this.vI(F.pageX+F.deltaX);INo(this)}; g.A.oT=function(F){this.Tj=F-this.qf}; g.A.vI=function(F){F-=this.qf;!isNaN(this.Tj)&&this.thumbnails.length>0&&(this.N=F-this.Tj,this.thumbnails.length>0&&this.N!==0&&(this.T=this.Y+this.N,F=quz(this,this.T),this.T<=this.C/2&&this.T>=AFa(this)?(this.api.seekTo(F,!1,void 0,void 0,25),g.aN(this.Gj,"transform","translateX("+(this.T-this.C/2)+"px)"),JFa(this,F)):this.T=this.Y))}; g.A.Mg=function(){this.eE&&(this.eE.vz=!0);var F=(0,g.jR)()-this.zj<300;if(Math.abs(this.N)<5&&!F){this.zj=(0,g.jR)();F=this.Tj+this.N;var J=this.C/2-F;this.oT(F);this.vI(F+J);INo(this);this.api.logClick(this.W)}INo(this)}; g.A.hI=function(){o9(this,this.api.getCurrentTime())}; g.A.play=function(F){this.api.seekTo(quz(this,this.T),void 0,void 0,void 0,26);this.api.playVideo();F&&this.api.logClick(this.playButton)}; g.A.onExit=function(F){this.api.seekTo(this.dD,void 0,void 0,void 0,63);this.api.playVideo();F&&this.api.logClick(this.dismissButton)}; g.A.mO=function(F,J){this.qf=F;this.C=J;o9(this,this.api.getCurrentTime())}; g.A.enable=function(){this.isEnabled||(this.isEnabled=!0,this.dD=this.api.getCurrentTime(),JFa(this,this.dD),g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.fW=this.B(this.element,"wheel",this.E7),this.logVisibility(this.isEnabled))}; g.A.disable=function(){this.isEnabled=!1;this.hide();g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.fW&&this.iX(this.fW);this.logVisibility(this.isEnabled)}; g.A.reset=function(){this.disable();this.Z=[];this.WN=!1}; g.A.logVisibility=function(F){this.api.logVisibility(this.element,F);this.api.logVisibility(this.W,F);this.api.logVisibility(this.dismissButton,F);this.api.logVisibility(this.playButton,F)}; g.A.X_=function(){for(;this.U.length;){var F=void 0;(F=this.U.pop())==null||F.dispose()}g.U.prototype.X_.call(this)}; g.z(u6o,g.U);g.z(wIa,g.U);g.z(vE7,g.U);g.z(hq,g.U);hq.prototype.Pb=function(F){return F==="PLAY_PROGRESS"?this.Y:F==="LOAD_PROGRESS"?this.V:F==="LIVE_BUFFER"?this.W:this.T};K0Y.prototype.update=function(F,J,b,I){b=b===void 0?0:b;this.width=J;this.Z=b;this.C=J-b-(I===void 0?0:I);this.position=g.AD(F,b,b+this.C);this.T=this.position-b;this.U=this.T/this.C};g.z(pIC,g.U);g.z(g.xr,g.vi);g.A=g.xr.prototype; g.A.Wi=function(){var F=!1,J=this.api.getVideoData();if(!J)return F;this.api.Yo("timedMarkerCueRange");yFa(this);for(var b=g.N(J.cN),I=b.next();!I.done;I=b.next()){I=I.value;var u=void 0,w=(u=this.dD[I])==null?void 0:u.markerType;u=void 0;var M=(u=this.dD[I])==null?void 0:u.markers;if(!M)break;if(w==="MARKER_TYPE_TIMESTAMPS"){F=g.N(M);for(w=F.next();!w.done;w=F.next()){u=w.value;w=new pIC;M=void 0;w.title=((M=u.title)==null?void 0:M.simpleText)||"";w.timeRangeStartMillis=Number(u.startMillis);w.C= Number(u.durationMillis);var q=M=void 0;w.onActiveCommand=(q=(M=u.onActive)==null?void 0:M.innertubeCommand)!=null?q:void 0;W0a(this,w)}dm7(this,this.V);F=this.V;w=this.zU;u=[];M=null;for(q=0;q<F.length;q++){var v=F[q].timeRangeStartMillis;if(!isNaN(v)&&F[q].onActiveCommand){var a=void 0,e=(a=F[q].C)!=null?a:1E4;M&&M.end>v&&(M.end=v);v=um3(v,v+e);u.push(v);M=v;w[v.id]=F[q].onActiveCommand}}this.api.TU(u);this.jZ=this.dD[I];F=!0}else if(w==="MARKER_TYPE_HEATMAP"){I=this.dD[I];e=a=u=v=q=M=void 0;if(I&& I.markers){w=(u=(e=I.markersMetadata)==null?void 0:(a=e.heatmapMetadata)==null?void 0:a.minHeightDp)!=null?u:0;u=(M=(v=I.markersMetadata)==null?void 0:(q=v.heatmapMetadata)==null?void 0:q.maxHeightDp)!=null?M:60;M=this.C.length;q=null;for(v=0;v<M;v++){e=this.C[v].startTime;var K=v===M-1?Infinity:this.C[v+1].startTime;v===this.Z.length&&mmz(this);a=[];q&&a.push(q);for(var p=g.N(I.markers),m=p.next();!m.done;m=p.next()){m=m.value;var y=Number(m.startMillis);y>=e&&y<=K&&a.push(m)}u>0&&(this.eE.style.height= u+"px");e=this.Z[v];K=a;m=w;var f=u,d=v===0;d=d===void 0?!1:d;aNa(e,f);p=K;y=e.U;d=d===void 0?!1:d;var G=1E3/p.length,P=[];P.push({x:0,y:100});for(var r=0;r<p.length;r++){var Q=(r+.5)*G,D=100-g.AD((p[r].intensityScoreNormalized||0)*100,m/y*100,f/y*100);r!==0||d||P.push({x:0,y:D});P.push({x:Q,y:D});r===p.length-1&&P.push({x:1E3,y:D})}P.push({x:1E3,y:100});p=P;K=K.length===0?"":LAa(p);e.api.S("delhi_modern_web_player")?e.T.setAttribute("d",K):e.W.setAttribute("d",K);e.o8=K!=="";g.qr(e.api.getRootNode(), "ytp-heat-map",e.o8);e.api.S("delhi_modern_web_player")&&(e.T.style.display="block",e.Z.style.display="none",e.C.style.display="none");a.length>0&&(q=a[a.length-1])}g.nn(this)}u=void 0;w=[];if(I=(u=I.markersDecoration)==null?void 0:u.timedMarkerDecorations)for(I=g.N(I),u=I.next();!u.done;u=I.next())u=u.value,v=q=M=void 0,w.push({visibleTimeRangeStartMillis:(M=u.visibleTimeRangeStartMillis)!=null?M:-1,visibleTimeRangeEndMillis:(q=u.visibleTimeRangeEndMillis)!=null?q:-1,decorationTimeMillis:(v=u.decorationTimeMillis)!= null?v:NaN,label:u.label?g.Kr(u.label):""});I=w;this.heatMarkersDecorations=I}}J.Yw=this.V;g.qr(this.element,"ytp-timed-markers-enabled",F);return F}; g.A.mO=function(){g.nn(this);Hm(this);dm7(this,this.V);if(this.U){var F=g.zv(this.element).x||0;this.U.mO(F,this.W)}}; g.A.onClickCommand=function(F){if(F=g.O(F,ti)){var J=F.key;F.isVisible&&J&&Vb7(this,J)}}; g.A.T0E=function(F){this.api.jE("innertubeCommand",this.zU[F.id])}; g.A.Q6=function(){Hm(this);var F=this.api.getCurrentTime();(F<this.clipStart||F>this.clipEnd)&&this.nZ()}; g.A.dF=function(F){if(!F.defaultPrevented){var J=!1;switch(F.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);J=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);J=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);J=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);J=!0;break;case 38:this.api.S("enable_key_press_seek_logging")&&u7(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);J=!0;break;case 40:this.api.S("enable_key_press_seek_logging")&&u7(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),J=!0}J&&F.preventDefault()}}; g.A.xR=function(F,J){this.updateVideoData(J,F==="newdata")}; g.A.e_Q=function(){this.xR("newdata",this.api.getVideoData())}; g.A.updateVideoData=function(F,J){J=J===void 0?!1:J;var b=!!F&&F.o8();if(b&&(nY(F)||Suk(this)?this.K7=!1:this.K7=F.allowLiveDvr,g.qr(this.api.getRootNode(),"ytp-enable-live-buffer",!(F==null||!nY(F))),this.api.S("enable_custom_playhead_parsing"))){var I,u,w,M=g.O((I=F.getWatchNextResponse())==null?void 0:(u=I.playerOverlays)==null?void 0:(w=u.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,lr);if(M==null?0:M.progressColor)for(I=0;I<this.C.length;I++)this.C[I].Pb("PLAY_PROGRESS").style.background= g.$y(M.progressColor);M=g.O(M==null?void 0:M.playhead,aeb);var q,v;I=(M==null?void 0:(q=M.playheadImage)==null?void 0:q.thumbnails)&&(M==null?void 0:(v=M.playheadImage)==null?void 0:v.thumbnails[0].url);g.qr(this.MJ,"ytp-decorated-scrubber-container",!!I);var a;if(M==null?0:(a=M.loggingDirectives)==null?0:a.trackingParams){var e;this.api.setTrackingParams(this.Se,M==null?void 0:(e=M.loggingDirectives)==null?void 0:e.trackingParams);this.api.createServerVe(this.Se,this)}I&&(this.Se.src=I)}hnz(this, this.api.hX());if(J){if(b){J=F.clipEnd;this.clipStart=F.clipStart;this.clipEnd=J;w1(this);for(Jd(this,this.N,this.nW);this.Z.length>0;)this.Z.pop().dispose();this.heatMarkersDecorations=[];this.cN={};var K;(K=this.U)==null||K.reset();aQ(this);g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-exp",Ub(this))}else this.nZ();this.QN()}if(F){var p;K=((p=this.AJ)==null?void 0:p.type)==="clips";if(p=!F.isLivePlayback){p=this.api.getVideoData();J=g.fC(p);b=zn3(p);var m;p=J!=null||b!=null&&b.length>0||((m=p.JY)== null?void 0:m.length)>0}if(p&&!K){m=this.api.getVideoData();K=g.fC(m);p=!1;if(K==null?0:K.markersMap){p=this.api.getVideoData();var y;p.eN=((y=K.visibleOnLoad)==null?void 0:y.key)||p.eN;y=g.N(K.markersMap);for(K=y.next();!K.done;K=y.next())K=K.value,K.key&&K.value&&(this.cN[K.key]=K.value,K.value.onChapterRepeat&&(p.OD=K.value.onChapterRepeat));p.eN!=null&&Vb7(this,p.eN);p=!0}var f;if(((f=m.JY)==null?void 0:f.length)>0){f=g.ZR.getState().entities;y=g.N(m.JY);for(K=y.next();!K.done;K=y.next())if(K= K.value,b=void 0,J=(b=qs(f,"macroMarkersListEntity",K))==null?void 0:b.markersList,q=b=void 0,((b=J)==null?void 0:b.markerType)==="MARKER_TYPE_TIMESTAMPS"||((q=J)==null?void 0:q.markerType)==="MARKER_TYPE_HEATMAP")this.dD[K]=J;p=this.Wi()||p}!p&&(f=zn3(m))&&(lNk(this,f),m.wX=this.C,Ntv(this));sBk(this,null);F.qH&&this.Z.length===0&&(F=F.qH,f=F.key,F.isVisible&&f&&Vb7(this,f))}else gEm(this),yFa(this)}Hm(this)}; g.A.ZWG=function(F){this.Y&&!g.x(F.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var J;((J=this.U)==null?0:J.isEnabled)&&g.x(F.state,8)&&this.api.pauseVideo();F=this.api.getPresentingPlayerType()===2||!this.api.hX()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.qr(this.GU,"ytp-hide-scrubber-button",F)}; g.A.Lg=function(F){var J=!!this.AJ!==!!F,b=this.AJ;this.AJ=F;sBk(this,b);(F==null?void 0:F.type)!=="clips"&&F||(F?(this.updateValue("clipstarticon",jek()),this.updateValue("clipendicon",jek()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",iDo()),this.updateValue("clipendicon",yYa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),J&&(this.updateVideoData(this.api.getVideoData(), !0),g.nn(this)),w1(this));Jd(this,this.N,this.nW)}; g.A.eSG=function(F,J,b){var I=g.zv(this.element),u=Zb(this).C,w=b?b.getAttribute("data-tooltip"):void 0,M=b?b.getAttribute("data-position"):void 0,q=b?b.getAttribute("data-offset-y"):void 0;q=q?Number(q):0;M&&(F=Tg(this.T,Number(b.getAttribute("data-position")),0)*u+g.zv(this.progressBar).x);this.oI.x=F-I.x;this.oI.y=J-I.y;F=Zb(this);b=IQ(this,F);J=0;var v;if((v=this.api.getVideoData())==null?0:nY(v))(v=this.api.getProgressState().seekableEnd)&&b>v&&(b=v,F.position=Tg(this.T,v)*Zb(this).C),J=this.T.U; Suk(this)&&(J=this.T.U);v=w||g.lD(this.K7?b-this.T.C:b-J);J=F.position+this.ir;b-=this.api.Xq();var a;if((a=this.U)==null||!a.isEnabled)if(this.api.Si()){if(this.C.length>1){a=b7(this,this.oI.x,!0);if(!this.AJ)for(I=0;I<this.C.length;)g.qr(this.C[I].C,"ytp-exp-chapter-hover-effect",I===a),I++;if(this.Z.length>1)for(I=0;I<this.C.length;I++)g.qr(this.Z[I].element,"ytp-heatmap-hover",I===a)}if(this.V.length>0)for(a=this.oI.x,I=g.N(this.V),u=I.next();!u.done;u=I.next())u=u.value,M=tq(this,u.timeRangeStartMillis/ (this.T.C*1E3),Zb(this)),g.qr(u.element,"ytp-timed-marker-hover",M<=a&&M+6>=a);I=this.tooltip.scale;q=(isNaN(q)?0:q)-45*I;this.api.S("web_key_moments_markers")?this.jZ?(a=J74(this.V,b*1E3),a=a!=null?this.V[a].title:""):(a=z4(this.C,b*1E3),a=this.C[a].title):(a=z4(this.C,b*1E3),a=this.C[a].title);a||(q+=16*I);this.tooltip.scale===.6&&(g.hP(this.api.J())?(q=this.api.mG().getPlayerSize().height-225,q=a?q+110:q+110+16):q=a?110:126);I=z4(this.C,b*1E3);this.Gj=Yu7(this,b,I)?I:Yu7(this,b,I+1)?I+1:-1;g.qr(this.api.getRootNode(), "ytp-progress-bar-snap",this.Gj!==-1&&this.C.length>1);I=!1;u=g.N(this.heatMarkersDecorations);for(M=u.next();!M.done;M=u.next()){M=M.value;var e=b*1E3;e>=M.visibleTimeRangeStartMillis&&e<=M.visibleTimeRangeEndMillis&&(a=M.label,v=g.lD(M.decorationTimeMillis/1E3),I=!0)}this.g9!==I&&(this.g9=I,this.api.logVisibility(this.M0,this.g9));g.qr(this.api.getRootNode(),"ytp-progress-bar-decoration",I);I=160*this.tooltip.scale*2;u=a.length*(this.Tj?8.55:5.7);u=u<=I?u:I;M=u<160*this.tooltip.scale;I=3;!M&&u/ 2>F.position&&(I=1);!M&&u/2>this.W-F.position&&(I=2);this.api.J().Y&&(q-=10);this.Z.length&&this.Z[0].o8&&(q-=14*(this.Tj?2:1),this.fW||(this.fW=!0,this.api.logVisibility(this.eE,this.fW)));var K;if(Ub(this)&&(((K=this.U)==null?0:K.isEnabled)||this.KW>0)){var p;q-=((p=this.U)==null?0:p.isEnabled)?Ad(this):this.KW}K=void 0;Ub(this)&&!this.api.S("web_player_hide_fine_scrubbing_edu")&&(K="Pull up for precise seeking",this.WN||(this.WN=!0,this.api.logVisibility(this.y6,this.WN)));this.tooltip.EO(J,b, v,!!w,q,a,I,K)}else this.tooltip.EO(J,b,v,!!w,q);g.uG(this.api.getRootNode(),"ytp-progress-bar-hover");rF3(this)}; g.A.T9Q=function(){this.QN();g.Mr(this.api.getRootNode(),"ytp-progress-bar-hover");this.fW&&(this.fW=!1,this.api.logVisibility(this.eE,this.fW));this.WN&&(this.WN=!1,this.api.logVisibility(this.y6,this.WN))}; g.A.U0N=function(F,J){Ub(this)&&this.U&&(this.U.WN?o9(this.U,this.api.getCurrentTime()):Mbz(this.U),this.U.show(),g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.Uz&&(this.Uz.dispose(),this.Uz=null);this.Lv=J;this.YH=this.api.getCurrentTime();this.C.length>1&&this.Gj!==-1?this.api.seekTo(this.C[this.Gj].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(IQ(this,Zb(this)),!1,void 0,void 0,7);g.uG(this.element,"ytp-drag");(this.xH=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.A.ZeQ=function(){if(Ub(this)&&this.U){var F=Ad(this);this.KW>=F*.5?(this.U.enable(),o9(this.U,this.api.getCurrentTime()),oEJ(this,F)):aQ(this)}if(g.x(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var J;if((J=this.U)==null?0:J.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.C.length>1&&this.Gj!==-1)this.api.S("html5_enable_progress_bar_slide_seek_logging")&&u7(this,this.YH,this.C[this.Gj].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.C[this.Gj].startTime/1E3,void 0,void 0,void 0,7);else{F=IQ(this,Zb(this));this.api.S("html5_enable_progress_bar_slide_seek_logging")&&u7(this,this.YH,F,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(F,void 0,void 0,void 0,7);J=g.N(this.heatMarkersDecorations);for(var b=J.next();!b.done;b=J.next())b=b.value,F*1E3>=b.visibleTimeRangeStartMillis&&F*1E3<=b.visibleTimeRangeEndMillis&& this.api.logClick(this.M0)}g.Mr(this.element,"ytp-drag");this.xH&&!g.x(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.A.XVv=function(F,J){F=Zb(this);F=IQ(this,F);this.api.seekTo(F,!1,void 0,void 0,7);var b;Ub(this)&&((b=this.U)==null?0:b.WN)&&(o9(this.U,F),this.U.isEnabled||(b=Ad(this),this.KW=g.AD(this.Lv-J-10,0,b),oEJ(this,this.KW)))}; g.A.QN=function(){this.tooltip.BZ()}; g.A.R2=function(){this.AJ||(this.updateValue("clipstarticon",mPC()),this.updateValue("clipendicon",mPC()),g.uG(this.element,"ytp-clip-hover"))}; g.A.PB=function(){this.AJ||(this.updateValue("clipstarticon",iDo()),this.updateValue("clipendicon",yYa()),g.Mr(this.element,"ytp-clip-hover"))}; g.A.nZ=function(){this.clipStart=0;this.clipEnd=Infinity;w1(this);Jd(this,this.N,this.nW)}; g.A.njv=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.visible){var b=J.getId();if(!this.qf[b]){var I=g.H1("DIV");J.tooltip&&I.setAttribute("data-tooltip",J.tooltip);this.qf[b]=J;this.Kk[b]=I;g.bG(I,J.style);$ma(this,b);this.api.J().S("disable_ad_markers_on_content_progress_bar")||this.C[0].Z.appendChild(I)}}else O4G(this,J)}; g.A.sPQ=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())O4G(this,J.value)}; g.A.FZ=function(F){this.U&&(this.U.onExit(F!=null),aQ(this))}; g.A.MD=function(F){this.U&&(this.U.play(F!=null),aQ(this))}; g.A.a4G=function(){hnz(this,this.api.hX())}; g.A.X_=function(){hnz(this,!1);g.vi.prototype.X_.call(this)};g.z(eO,g.U);eO.prototype.isActive=function(){return!!this.G.getOption("remote","casting")}; eO.prototype.VG=function(){var F=!1;this.G.getOptions().includes("remote")&&(F=this.G.getOption("remote","receivers").length>1);this.wY(F&&this.G.mG().getPlayerSize().width>=400);this.G.logVisibility(this.element,this.uT);var J=1;F&&this.isActive()&&(J=2);if(this.C!==J){this.C=J;switch(J){case 1:this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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.guG())}g.qr(this.element,"ytp-remote-button-active",this.isActive())}}; eO.prototype.U=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var F=this.Rf,J=this.element;if(F.K4())F.fk();else{F.initialize();a:{var b=g.N(F.RH.items);for(var I=b.next();!I.done;I=b.next())if(I=I.value,I.priority===1){b=I;break a}b=null}b&&(b.open(),F.Bo(J));F.Bo(J)}}this.G.logClick(this.element)};g.z(K9,g.U);K9.prototype.C=function(F){var J=this.G.J(),b=400;this.G.S("web_player_small_hbp_settings_menu")&&J.W?b=300:J.Y&&(b=200);F=this.U&&F.width>=b;this.wY(F);this.G.S("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element,F&&this.D):this.G.logVisibility(this.element,F)}; K9.prototype.T=function(){if(this.Rf.uT)this.Rf.fk();else{var F=g.Y0(this.G.TF());F&&!F.loaded&&(F.qJ("tracklist",{includeAsr:!0}).length||F.load());this.G.logClick(this.element);this.Rf.Bo(this.element)}}; K9.prototype.updateBadge=function(){var F=this.G.isHdr(),J=this.G.getPresentingPlayerType(),b=J!==2&&J!==3,I=g.V_(this.G),u=b&&!!g.GP(this.G.TF());J=u&&I.displayMode===1;I=u&&I.displayMode===2;b=(u=J||I)||!b?null:this.G.getPlaybackQuality();g.qr(this.element,"ytp-hdr-quality-badge",F);g.qr(this.element,"ytp-hd-quality-badge",!F&&(b==="hd1080"||b==="hd1440"));g.qr(this.element,"ytp-4k-quality-badge",!F&&b==="hd2160");g.qr(this.element,"ytp-5k-quality-badge",!F&&b==="hd2880");g.qr(this.element,"ytp-8k-quality-badge", !F&&b==="highres");g.qr(this.element,"ytp-3d-badge-grey",!F&&u&&J);g.qr(this.element,"ytp-3d-badge",!F&&u&&I)};g.z(p9,Zd);p9.prototype.isLoaded=function(){var F=g.Dg(this.G.TF());return F!==void 0&&F.loaded}; p9.prototype.VG=function(){g.Dg(this.G.TF())!==void 0&&this.G.getPresentingPlayerType()!==3?this.C||(this.Rf.V6(this),this.C=!0):this.C&&(this.Rf.Yj(this),this.C=!1);Hp(this,this.isLoaded())}; p9.prototype.onSelect=function(F){this.isLoaded();F?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.publish("annotationvisibility",F)}; p9.prototype.X_=function(){this.C&&this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(g1,g.tZ);g1.prototype.VG=function(){var F=this.G.getAvailableAudioTracks();F.length>1?(this.Wx(g.EG(F,this.C)),this.tracks=g.mF(F,this.C,this),this.countLabel.Ce(F.length?" ("+F.length+")":""),this.publish("size-change"),this.oQ(this.C(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)}; g1.prototype.qE=function(F){g.tZ.prototype.qE.call(this,F);this.G.setAudioTrack(this.tracks[F]);this.Rf.qL()}; g1.prototype.C=function(F){return F.toString()};g.z(m9,Zd); m9.prototype.U=function(){var F=this.G.getPresentingPlayerType();if(F!==2&&F!==3&&g.Bp(this.G))this.C||(this.Rf.V6(this),this.C=!0,this.T.push(this.B(this.G,"videodatachange",this.U)),this.T.push(this.B(this.G,"videoplayerreset",this.U)),this.T.push(this.B(this.G,"onPlaylistUpdate",this.U)),this.T.push(this.B(this.G,"autonavchange",this.Z)),F=this.G.getVideoData(),this.Z(F.autonavState),this.G.logVisibility(this.element,this.C));else if(this.C){this.Rf.Yj(this);this.C=!1;F=g.N(this.T);for(var J=F.next();!J.done;J= F.next())this.iX(J.value)}}; m9.prototype.Z=function(F){Hp(this,F!==1)}; m9.prototype.onSelect=function(F){this.G.LZ(F?2:1);this.C&&(this.G.logVisibility(this.element,this.C),this.G.logClick(this.element))}; m9.prototype.X_=function(){this.C&&this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(Umk,g.Rj);Umk.prototype.onClick=function(F){F.preventDefault();var J,b;(J=g.aj(this.G))==null||(b=J.z6())==null||b.fk();var I,u;(I=g.aj(this.G))==null||(u=I.MZ())==null||u.Bo(F.target)};g.z(xmC,g.tZ);g.A=xmC.prototype; g.A.Mc=function(){var F=this.G.getPresentingPlayerType();if(F!==2&&F!==3){this.Gj=this.G.W0();F=this.G.getAvailableQualityLevels();if(this.C){this.Z={};var J=g.wO(this.G,"getAvailableQualityData",[]);J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,this.Z[b.qualityLabel]=b;J=Object.keys(this.Z);F[F.length-1]==="auto"&&J.push("auto");this.kQ=new Set(F)}else if(this.W){b=g.wO(this.G,"getAvailableQualityData",[]);J=[];b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,this.N[I.quality]= I,I.quality&&J.push(I.quality);F[F.length-1]==="auto"&&J.push("auto")}else J=F;g.XNJ(this.G)&&this.G.wk()&&J.unshift("missing-qualities");Qn7(this.G)&&J.unshift("inline-survey");this.Wx(J);F=this.G.getVideoData().cotn?!0:!1;b=this.eE.Vi();b=!g.hP(this.G.J())||!(F===void 0?0:F)||!(b===void 0||b);F=this.U;b=b===void 0?!1:b;F.O6&&g.qr(F.RI("ytp-panel-footer"),"ytp-panel-hide-footer",b===void 0?!1:b);if(J.length){this.NC();this.enable(!0);return}}this.enable(!1)}; g.A.NC=function(){if(this.C){var F=this.G.getPreferredQuality();this.kQ.has(F)&&(this.V=this.G.getPlaybackQuality(),this.Tj=this.G.getPlaybackQualityLabel(),F==="auto"?(this.oQ(F),this.Ce(this.gX(F))):this.oQ(this.Tj))}else F=this.G.getPreferredQuality(),this.options[F]&&(this.V=this.G.getPlaybackQuality(),this.oQ(F),F==="auto"&&this.Ce(this.gX(F)))}; g.A.qE=function(F){if(F!=="missing-qualities"){g.tZ.prototype.qE.call(this,F);var J=this.C?this.Z[F]:this.N[F];var b=J==null?void 0:J.quality,I=J==null?void 0:J.formatId,u=J==null?void 0:J.paygatedQualityDetails;J=u==null?void 0:u.endpoint;if(u){var w;u=(w=this.options[F])==null?void 0:w.element;this.G.logClick(u)}if(this.C){var M,q;if((M=g.O(J,g.XkV))==null?0:(q=M.popup)==null?0:q.notificationActionRenderer)this.G.jE("innertubeCommand",J);else if(J){this.G.jE("innertubeCommand",J);return}I?this.G.setPlaybackQuality(b, I):this.G.setPlaybackQuality(b)}else{if(this.W){var v,a;if((v=g.O(J,g.XkV))==null?0:(a=v.popup)==null?0:a.notificationActionRenderer)this.G.jE("innertubeCommand",J);else if(J){this.G.jE("innertubeCommand",J);return}}this.G.setPlaybackQuality(F)}this.Rf.fk();this.Mc()}}; g.A.open=function(){for(var F=g.N(Object.values(this.options)),J=F.next();!J.done;J=F.next()){J=J.value;var b=void 0;this.G.hasVe((b=J)==null?void 0:b.element)&&(b=void 0,this.G.logVisibility((b=J)==null?void 0:b.element,!0))}g.tZ.prototype.open.call(this);this.G.logClick(this.element)}; g.A.vC=function(F,J,b){var I=this;if(F==="missing-qualities")return new g.Rj({X:"a",Dv:["ytp-menuitem"],L:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.J().N,tabindex:"0",role:"menuitemradio"},j:[{X:"div",Dv:["ytp-menuitem-label"],sQ:"{{label}}"}]},J,this.gX(F));if(F!=="inline-survey"){var u,w=(u=this.C?this.Z[F]:this.N[F])==null?void 0:u.paygatedQualityDetails;u=w==null?void 0:w.veType;w=w==null?void 0:w.trackingParams;J=g.tZ.prototype.vC.call(this,F,J,b);w?(this.G.createServerVe(J.element, this,!0),this.G.setTrackingParams(J.element,w)):u&&this.G.createClientVe(J.element,this,u,!0);return J}F=[{X:"span",sQ:"Looks good?"}];b=g.N([!0,!1]);w=b.next();for(u={};!w.done;u={oN:void 0},w=b.next())u.oN=w.value,w=new g.U({X:"span",K:"ytp-menuitem-inline-survey-response",j:[u.oN?Eu3():NZJ()],L:{tabindex:"0",role:"button"}}),w.listen("click",function(M){return function(){var q=I.G.app.F_();q&&(q.UQ("iqsr",{tu:M.oN}),q.getVideoData().oR=!0);I.Rf.fk();I.Mc()}}(u)),F.push(w); return new g.Rj({X:"div",K:"ytp-menuitem",L:{"aria-disabled":"true"},j:[{X:"div",Dv:["ytp-menuitem-label"],j:F}]},J)}; g.A.gX=function(F,J){J=J===void 0?!1:J;if(F==="missing-qualities")return{X:"div",sQ:"Missing options?"};if(F==="inline-survey")return"";var b=this.W||this.C?[Z4k(this,F,J,!1)]:[tba(this,F)];var I=this.G.getPreferredQuality();J||I!=="auto"||F!=="auto"||(b.push(" "),this.C?b.push(Z4k(this,this.Tj,J,!0,["ytp-menu-label-secondary"])):this.W?b.push(Z4k(this,this.V,J,!0,["ytp-menu-label-secondary"])):b.push(tba(this,this.V,["ytp-menu-label-secondary"])));return{X:"div",j:b}};g.z(yw,g.U);yw.prototype.init=function(){this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.Z);this.updateValue("stepvalue",this.W);this.updateValue("slidervalue",this.U);H43(this,this.U)}; yw.prototype.V=function(){L0J(this,Number(this.C.value));this.C.focus()};g.z(i7,yw);i7.prototype.V=function(){yw.prototype.V.call(this);this.Y&&FfG(this)}; i7.prototype.Gj=function(){this.N()}; i7.prototype.eE=function(){this.G.setPlaybackRate(this.U,!0)}; i7.prototype.Tj=function(F){if(!F.defaultPrevented){switch(F.code){case "ArrowDown":var J=-this.W;break;case "ArrowUp":J=this.W;break;default:return}L0J(this,Math.min(this.Z,Math.max(Number((this.U+J).toFixed(2)),this.T)));this.N();FfG(this);F.preventDefault()}};g.z(zU,g.U);g.A=zU.prototype;g.A.init=function(){this.yE(this.C);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.T)}; g.A.Sv=function(F){if(!F.defaultPrevented){switch(F.keyCode){case 37:case 40:var J=-this.Y;break;case 39:case 38:J=this.Y;break;default:return}this.yE(this.C+J);F.preventDefault()}}; g.A.l8=function(F){var J=this.C;J+=(F.deltaX||-F.deltaY)<0?-this.N:this.N;this.yE(J);F.preventDefault()}; g.A.Qu=function(F){F=(F-g.zv(this.Z).x)/this.Tj*this.range+this.U;this.yE(F)}; g.A.yE=function(F,J){J=J===void 0?"":J;F=g.AD(F,this.U,this.T);J===""&&(J=F.toString());this.updateValue("valuenow",F);this.updateValue("valuetext",J);this.eE.style.left=(F-this.U)/this.range*(this.Tj-this.WN)+"px";this.C=F}; g.A.focus=function(){this.fW.focus()};g.z(N2,zU);N2.prototype.Gj=function(){this.G.setPlaybackRate(this.C,!0)}; N2.prototype.yE=function(F){zU.prototype.yE.call(this,F,bto(this,F).toString());this.W&&(J0G(this),this.kQ())}; N2.prototype.updateValues=function(){var F=this.G.getPlaybackRate();bto(this,this.C)!==F&&(this.yE(F),J0G(this))};g.z(IsY,g.vi);IsY.prototype.focus=function(){this.C.focus()};g.z(u2a,QM);g.z(w_v,g.tZ);g.A=w_v.prototype;g.A.gX=function(F){return F==="1"?"Normal":F.toLocaleString()}; g.A.VG=function(){var F,J=(F=this.G.getVideoData())==null?void 0:F.vV();F=this.G.getPresentingPlayerType(J);this.enable(F!==2&&F!==3);vlY(this)}; g.A.Wx=function(F){g.tZ.prototype.Wx.call(this,F);this.V&&this.V.C.focus()}; g.A.QW=function(F){g.tZ.prototype.QW.call(this,F);F?(this.Tj=this.B(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),vlY(this),A0z(this,this.G.getPlaybackRate())):(this.iX(this.Tj),this.Tj=null)}; g.A.onPlaybackRateChange=function(F){var J=this.G.getPlaybackRate();!this.W&&this.N.includes(J)||qcz(this,J);A0z(this,F)}; g.A.vC=function(F,J,b){return F===this.C&&asa(this.G)?g.tZ.prototype.vC.call(this,F,J,b,{X:"div",K:"ytp-speed-slider-menu-footer",j:[this.V]}):g.tZ.prototype.vC.call(this,F,J,b)}; g.A.qE=function(F){g.tZ.prototype.qE.call(this,F);F===this.C?this.G.setPlaybackRate(this.Z,!0):this.G.setPlaybackRate(Number(F),!0);asa(this.G)&&F===this.C||this.Rf.qL()}; g.A.zv=function(F){var J=F===this.C;this.W=!1;J&&l7(this.G)&&!asa(this.G)?(F=new u2a(this.G),g.O$(this.Rf,F)):g.tZ.prototype.zv.call(this,F)};g.z(Kfv,g.tZ);g.A=Kfv.prototype;g.A.oQ=function(F){g.tZ.prototype.oQ.call(this,F)}; g.A.IW=function(F){return F.option.toString()}; g.A.getOption=function(F){return this.settings[F]}; g.A.gX=function(F){return this.getOption(F).text||""}; g.A.qE=function(F){g.tZ.prototype.qE.call(this,F);this.publish("settingChange",this.setting,this.settings[F].option)};g.z(f9,g.RX);f9.prototype.FF=function(F){for(var J=g.N(Object.keys(F)),b=J.next();!b.done;b=J.next()){var I=b.value;if(b=this.Hc[I]){var u=F[I].toString();I=!!F[I+"Override"];b.options[u]&&(b.oQ(u),b.Z.element.setAttribute("aria-checked",String(!I)),b.C.element.setAttribute("aria-checked",String(I)))}}}; f9.prototype.p4=function(F,J){this.publish("settingChange",F,J)};g.z(Wy,g.tZ);Wy.prototype.C=function(F){return F.languageCode}; Wy.prototype.gX=function(F){return this.languages[F].languageName||""}; Wy.prototype.qE=function(F){this.publish("select",F);this.G.logClick(this.element);g.oX(this.Rf)};g.z(myv,g.tZ);g.A=myv.prototype;g.A.Ed=function(F){return g.Vj(F)?"__off__":F.displayName}; g.A.gX=function(F){return F==="__off__"?"Off":F==="__translate__"?"Auto-translate":F==="__contribute__"?"Add subtitles/CC":F==="__correction__"?"Suggest caption corrections":(F==="__off__"?{}:this.tracks[F]).displayName}; g.A.qE=function(F){if(F==="__translate__")this.C.open();else if(F==="__contribute__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var J=g.BX(this.G.J(),this.G.getVideoData());g.RJ(J)}else if(F==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var b=y07(this);d1(this,b);g.tZ.prototype.qE.call(this,this.Ed(b));var I,u;b=(J=this.G.getVideoData().getPlayerResponse())==null?void 0:(I=J.captions)==null?void 0:(u=I.playerCaptionsTracklistRenderer)== null?void 0:u.openTranscriptCommand;this.G.jE("innertubeCommand",b);this.Rf.qL();this.Z&&this.G.logClick(this.Z)}else{if(F==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();J=y07(this);d1(this,J);g.tZ.prototype.qE.call(this,this.Ed(J));var w,M;J=(b=this.G.getVideoData().getPlayerResponse())==null?void 0:(w=b.captions)==null?void 0:(M=w.playerCaptionsTracklistRenderer)==null?void 0:M.openTranscriptCommand;this.G.jE("innertubeCommand",J)}else this.G.logClick(this.element), d1(this,F==="__off__"?{}:this.tracks[F]),g.tZ.prototype.qE.call(this,F);this.Rf.qL()}}; g.A.VG=function(){var F=this.G.getOptions();F=F&&F.indexOf("captions")!==-1;var J=this.G.getVideoData(),b=J&&J.ra,I,u=!((I=this.G.getVideoData())==null||!g.UW(I));I={};if(F||b){var w;if(F){var M=this.G.getOption("captions","track");I=this.G.getOption("captions","tracklist",{includeAsr:!0});var q=u?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.mF(I,this.Ed,this);u=g.EG(I,this.Ed);var v,a;y07(this)&&((w=J.getPlayerResponse())==null?0:(v=w.captions)==null?0:(a=v.playerCaptionsTracklistRenderer)== null?0:a.openTranscriptCommand)&&u.push("__correction__");if(q.length&&!g.Vj(M)){if((w=M.translationLanguage)&&w.languageName){var e=w.languageName;w=q.findIndex(function(K){return K.languageName===e}); wk3(q,w)}p_Y(this.C,q);u.push("__translate__")}w=this.Ed(M)}else this.tracks={},u=[],w="__off__";u.unshift("__off__");this.tracks.__off__={};b&&u.unshift("__contribute__");this.tracks[w]||(this.tracks[w]=M,u.push(w));this.Wx(u);this.oQ(w);M&&M.translationLanguage?this.C.oQ(this.C.C(M.translationLanguage)):ZVJ(this.C);F&&this.W.FF(this.G.getSubtitlesUserSettings());this.countLabel.Ce(I&&I.length?" ("+I.length+")":"");this.publish("size-change");this.G.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.A.Ht=function(F){var J=this.G.getOption("captions","track");J=g.To(J);J.translationLanguage=this.C.languages[F];d1(this,J)}; g.A.p4=function(F,J){if(F==="reset")this.G.resetSubtitlesUserSettings();else{var b={};b[F]=J;this.G.updateSubtitlesUserSettings(b)}gl7(this,!0);this.V.start();this.W.FF(this.G.getSubtitlesUserSettings())}; g.A.pV_=function(F){F||g.L8(this.V)}; g.A.X_=function(){g.L8(this.V);g.tZ.prototype.X_.call(this)}; g.A.open=function(){g.tZ.prototype.open.call(this);this.options.__correction__&&!this.Z&&(this.Z=this.options.__correction__.element,this.G.createClientVe(this.Z,this,167341),this.G.logVisibility(this.Z,!0))};g.z(itk,g.kc);g.A=itk.prototype; g.A.initialize=function(){if(!this.isInitialized){var F=this.G.J();this.isInitialized=!0;try{this.dn=new xmC(this.G,this)}catch(b){g.rQ(Error("QualityMenuItem creation failed"))}g.k(this,this.dn);var J=new myv(this.G,this);g.k(this,J);F.T||(J=new p9(this.G,this),g.k(this,J));F.enableSpeedOptions&&(J=new w_v(this.G,this),g.k(this,J));(g.dN(F)||F.W)&&(F.U||F.zj)&&(J=new Umk(this.G,this),g.k(this,J));F.g9&&!F.S("web_player_move_autonav_toggle")&&(F=new m9(this.G,this),g.k(this,F));F=new g1(this.G,this); g.k(this,F);this.G.publish("settingsMenuInitialized");cFa(this.settingsButton,this.RH.DQ())}}; g.A.V6=function(F){this.initialize();this.RH.V6(F);cFa(this.settingsButton,this.RH.DQ())}; g.A.Yj=function(F){this.uT&&this.RH.DQ()<=1&&this.hide();this.RH.Yj(F);cFa(this.settingsButton,this.RH.DQ())}; g.A.Bo=function(F){this.initialize();this.RH.DQ()>0&&g.kc.prototype.Bo.call(this,F)}; g.A.fk=function(){this.AB?this.AB=!1:g.kc.prototype.fk.call(this)}; g.A.show=function(){g.kc.prototype.show.call(this);g.uG(this.G.getRootNode(),"ytp-settings-shown")}; g.A.hide=function(){g.kc.prototype.hide.call(this);g.Mr(this.G.getRootNode(),"ytp-settings-shown")}; g.A.G0=function(F){this.G.logVisibility(this.element,F);this.G.publish("settingsMenuVisibilityChanged",F)};g.z(NHG,g.U);g.A=NHG.prototype;g.A.onClick=function(){if(ls3(this)&&(this.G.toggleSubtitles(),this.G.logClick(this.element),!this.isEnabled())){var F=!1,J=g.Rg(g.Qe(),65);g.hP(this.G.J())&&J!=null&&(F=!J);F&&this.G.J().S("web_player_nitrate_promo_tooltip")&&this.G.publish("showpromotooltip",this.element)}}; g.A.Z7E=function(F){var J,b;(J=g.aj(this.G))==null||(b=J.z6())==null||b.Bo(F)}; g.A.isEnabled=function(){return!!this.G.getOption("captions","track").displayName}; g.A.VG=function(){var F=ls3(this),J=300;this.G.J().Y&&(J=480);if(this.G.J().W){this.updateValue("title",g.NZ(this.G,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var b=F}else{if(F)(b=this.RI("ytp-subtitles-button-icon"))==null||b.setAttribute("fill-opacity","1"),this.updateValue("title",g.NZ(this.G,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var I;(I=this.RI("ytp-subtitles-button-icon"))== null||I.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}b=!0}this.tooltip.Dl();b=b&&this.G.mG().getPlayerSize().width>=J;this.wY(b);this.G.S("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element,b&&this.D):this.G.logVisibility(this.element,b);F?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.J().S("embeds_use_parent_visibility_in_ve_logging")&&this.G.logVisibility(this.element,this.uT&&F)};g.z(g.E3,g.U);g.A=g.E3.prototype; g.A.Q6=function(){var F=this.api.mG().getPlayerSize().width,J=this.N;this.api.J().Y&&(J=400);J=F>=J&&(!jO(this)||!g.x(this.api.getPlayerStateObject(),64));this.wY(J);g.qr(this.element,"ytp-time-display-allow-autohide",J&&F<400);F=this.api.getProgressState();if(J){J=this.api.getPresentingPlayerType();var b=this.api.getCurrentTime(J,!1);this.U&&(b-=F.airingStart);GU(this)&&(b-=this.AJ.startTimeMs/1E3);GU(this)||jO(this)||!this.T||(b=this.api.getDuration(J,!1)-b);b=g.lD(b);this.Z!==b&&(this.updateValue("currenttime", b),this.Z=b);J=GU(this)?g.lD((this.AJ.endTimeMs-this.AJ.startTimeMs)/1E3):g.lD(this.api.getDuration(J,!1));this.W!==J&&(this.updateValue("duration",J),this.W=J)}fsm(this,F.isAtLiveHead);Wfo(this,this.api.getLoopRange())}; g.A.onLoopRangeChange=function(F){var J=this.AJ!==F;this.AJ=F;J&&(this.Q6(),dy4(this))}; g.A.gHW=function(){this.api.setLoopRange(null)}; g.A.sC_=function(){this.T=!this.T;this.Q6()}; g.A.onVideoDataChange=function(F,J,b){this.updateVideoData((this.api.J().S("enable_topsoil_wta_for_halftime")||this.api.J().S("enable_topsoil_wta_for_halftime_live_infra"))&&b===2?this.api.getVideoData(1):J);this.Q6();dy4(this)}; g.A.updateVideoData=function(F){this.uV=F.isLivePlayback&&!F.nW;this.U=nY(F);this.isPremiere=F.isPremiere;g.qr(this.element,"ytp-live",jO(this))}; g.A.onClick=function(F){F.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.A.X_=function(){this.C&&this.C();g.U.prototype.X_.call(this)};g.z(jqa,g.U);g.A=jqa.prototype;g.A.Up=function(){var F=this.api.Ua();this.T!==F&&(this.T=F,ElJ(this,this.api.getVolume(),this.api.isMuted()))}; g.A.rj=function(F){this.wY(F.width>=350)}; g.A.zb=function(F){if(!F.defaultPrevented){var J=F.keyCode,b=null;J===37?b=this.volume-5:J===39?b=this.volume+5:J===36?b=0:J===35&&(b=100);b!==null&&(b=g.AD(b,0,100),b===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(b)),F.preventDefault())}}; g.A.Vu=function(F){var J=F.deltaX||-F.deltaY;F.deltaMode?this.api.setVolume(this.volume+(J<0?-10:10)):this.api.setVolume(this.volume+g.AD(J/10,-10,10));F.preventDefault()}; g.A.m0_=function(){Vw(this,this.C,!0,this.U,this.api.YK());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.A.h0=function(F){var J=this.T?78:52,b=this.T?18:12;F-=g.zv(this.Y).x;this.api.setVolume(g.AD((F-b/2)/(J-b),0,1)*100)}; g.A.beD=function(){Vw(this,this.C,!1,this.U,this.api.YK());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.A.onVolumeChange=function(F){ElJ(this,F.volume,F.muted)}; g.A.E$=function(){Vw(this,this.C,this.isDragging,this.U,this.api.YK())}; g.A.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.V,"ytp-volume-slider-active")};g.z(Py,g.U); Py.prototype.onVideoDataChange=function(){var F=this.api.J();this.mO();this.visible=!!this.api.getVideoData().videoId&&!g.tw(this.api.getVideoData(1));this.wY(this.visible);this.api.logVisibility(this.element,this.visible&&this.D);if(this.visible){var J=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",J)}F.T&&(this.C&&(this.iX(this.C),this.C=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.uG(this.element,"no-link")); J=this.api.J();F=this.api.getVideoData();var b="";J.T||(J=g.Rw(J),J.indexOf("www.")===0&&(J=J.substring(4)),b=g.HE(F)?"Watch on YouTube Music":J==="youtube.com"?"Watch on YouTube":g.m8("Watch on $WEBSITE",{WEBSITE:J}));this.updateValue("title",b)}; Py.prototype.onClick=function(F){this.api.S("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var J=this.api.J(),b=this.api.getVideoUrl(!g.f0(F),!1,!0,!0);if(g.dN(J)){var I={};g.dN(J)&&g.wO(this.api,"addEmbedsConversionTrackingParams",[I]);b=g.Os(b,I)}g.Fy(b,this.api,F);this.api.S("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Py.prototype.mO=function(){var F={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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 "}}]}, J=28666,b=this.api.getVideoData();this.api.isEmbedsShortsMode()?F={X:"svg",L:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},j:[{X:"path",L:{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.HE(b)&&(F={X:"svg",L:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},j:[{X:"path",L:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{X:"path",L:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{X:"path",L:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{X:"path",L:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",L:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{X:"path",L:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{X:"path",L:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{X:"path",L:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{X:"path",L:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{X:"path",L:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{X:"path",L:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{X:"path",L:{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"}}]},J=216163);g.HE(b)?g.uG(this.element,"ytp-youtube-music-button"):g.Mr(this.element,"ytp-youtube-music-button");F.L=Object.assign({},F.L,{"aria-hidden":"true"});this.updateValue("logoSvg",F);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,J,!0)}; Py.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};g.z(V_C,g.s5);g.A=V_C.prototype;g.A.aP=function(){if(this.G.S("web_player_max_seekable_on_ended")||!g.x(this.G.getPlayerStateObject(),2))this.progressBar.Q6(),this.WN.Q6()}; g.A.lN=function(){this.OU();this.rq.U?this.aP():this.progressBar.QN()}; g.A.KY=function(){this.aP();this.Y.start()}; g.A.OU=function(){var F;if(F=!this.G.J().U){F=this.progressBar;var J=2*g.ow()*F.W;F=F.T.getLength()*1E3/F.api.getPlaybackRate()/J<300}F=F&&this.G.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;J=!F;this.rq.U||(F=J=!1);J?this.eE||(this.eE=this.B(this.G,"progresssync",this.aP)):this.eE&&(this.iX(this.eE),this.eE=null);F?this.Y.isActive()||this.Y.start():this.Y.stop()}; g.A.mO=function(){var F=this.G.Ua(),J=this.G.mG().getPlayerSize(),b=BH7(this),I=Math.max(J.width-b*2,100);if(this.cN!==J.width||this.bR!==F){this.cN=J.width;this.bR=F;var u=THa(this);this.Z.element.style.width=u+"px";this.Z.element.style.left=b+"px";g.kra(this.progressBar,b,u,F);this.G.W1().Cw=u}b=this.T;I=Math.min(570*(F?1.5:1),I);F=Math.min(413*(F?1.5:1),Math.round((J.height-r0C(this))*.82));b.maxWidth=I;b.maxHeight=F;b.vp();this.OU();this.G.J().S("html5_player_dynamic_bottom_gradient")&&XnG(this.nW, J.height)}; g.A.onVideoDataChange=function(){var F=this.G.getVideoData();this.zj.style.background=F.T0?F.RV:"";this.Tj&&ov3(this.Tj,F.showSeekingControls);this.N&&ov3(this.N,F.showSeekingControls)}; g.A.Pb=function(){return this.Z.element};g.z(Sc3,XI);g.A=Sc3.prototype;g.A.aD=function(F){F.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.jE("innertubeCommand",this.onClickCommand),this.tx())}; g.A.tx=function(){this.enabled=!1;this.N.hide()}; g.A.onVideoDataChange=function(F,J){F==="dataloaded"&&sqz(this);F=[];var b,I,u,w;if(J=(w=g.O((b=J.getWatchNextResponse())==null?void 0:(I=b.playerOverlays)==null?void 0:(u=I.playerOverlayRenderer)==null?void 0:u.suggestedActionsRenderer,pWt))==null?void 0:w.suggestedActions)for(b=g.N(J),I=b.next();!I.done;I=b.next())(I=g.O(I.value,gKz))&&g.O(I.trigger,KF5)&&F.push(I);if(F.length!==0){b=[];F=g.N(F);for(I=F.next();!I.done;I=F.next())if(I=I.value,u=g.O(I.trigger,KF5))w=(w=I.title)?g.Kr(w):"View Chapters", J=u.timeRangeStartMillis,u=u.timeRangeEndMillis,J!=null&&u!=null&&I.tapCommand&&(b.push(new g.b6(J,u,{priority:9,namespace:"suggested_action_button_visible",id:w})),this.suggestedActions[w]=I.tapCommand);this.G.TU(b)}}; g.A.jM=function(){return this.enabled}; g.A.G0=function(){this.enabled?this.dD.start():$c(this);this.sY()}; g.A.X_=function(){sqz(this);XI.prototype.X_.call(this)};var j_={},r1=(j_.CHANNEL_NAME="ytp-title-channel-name",j_.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",j_.LINK="ytp-title-link",j_.SESSIONLINK="yt-uix-sessionlink",j_.SUBTEXT="ytp-title-subtext",j_.TEXT="ytp-title-text",j_.TITLE="ytp-title",j_);g.z(SO,g.U);SO.prototype.onClick=function(F){this.api.logClick(this.element);var J=this.api.J(),b=this.api.getVideoUrl(!g.f0(F),!1,!0);g.dN(J)&&(J={},g.wO(this.api,"addEmbedsConversionTrackingParams",[J]),b=g.Os(b,J));g.Fy(b,this.api,F)}; SO.prototype.VG=function(){var F=this.api.getVideoData(),J=this.api.J();this.updateValue("title",F.title);var b={X:"a",K:r1.CHANNEL_NAME,L:{href:"{{channelLink}}",target:"_blank"},sQ:"{{channelName}}"};this.api.J().T&&(b={X:"span",K:r1.CHANNEL_NAME,sQ:"{{channelName}}",L:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",b);Yca(this);this.api.getPresentingPlayerType()===2&&(b=this.api.getVideoData(),b.videoId&&b.isListed&&b.author&&b.Om&&b.profilePicture?(this.updateValue("channelLink", b.Om),this.updateValue("channelName",b.author),this.updateValue("channelTitleFocusable","0")):Yca(this));b=J.externalFullscreen||!this.api.isFullscreen()&&J.Tc;g.qr(this.link,r1.FULLERSCREEN_LINK,b);J.eE||!F.videoId||b||g.tw(F)||J.T?this.C&&(this.updateValue("url",null),this.iX(this.C),this.C=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.C||(this.C=this.B(this.link,"click",this.onClick)));J.T&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.dN(J)?F.expandedTitle: F.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.s3,g.U);g.A=g.s3.prototype;g.A.setEnabled=function(F){if(this.type!=null)if(F)switch(this.type){case 3:case 2:CsG(this);this.V.show();break;default:this.V.show()}else this.V.hide();this.Y=F}; g.A.EO=function(F,J,b,I,u,w,M,q){if(!this.WN||this.env.Y){this.type===3&&this.QN();this.type!==1&&(g.bG(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.Y&&this.V.show(),this.U&&this.U.dispose(),(this.U=this.api.Si())&&this.U.subscribe("l",this.DP,this));if(q){var v=g.fL(this.bg).height||141;this.fW.style.bottom=v+2+"px"}this.update({text:b,title:w!=null?w:"",eduText:q!=null?q:""});g.qr(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!w);this.api.isInline()&&g.uG(this.bottomText, "ytp-modern-tooltip-text");g.qr(this.element,"ytp-text-detail",!!I);b=-1;this.U&&(b=Tt(this.U,243*this.scale),this.env.S("web_l3_storyboard")&&this.U.levels.length===4&&(b=this.U.levels.length-1),b=v8a(this.U,b,J));Qqv(this,b);if(M)switch(J=g.fL(this.element).width,M){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=J+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=J/2+"px",this.title.style.textAlign="center"}X_o(this, !!I,F,u)}}; g.A.BZ=function(){this.type===1&&this.QN()}; g.A.R$=function(F,J){if(this.type)if(this.type===3)this.QN();else return;$yo(this,F,3,J)}; g.A.Dl=function(){this.C&&!this.N&&this.C.hasAttribute("title")&&(this.T=this.C.getAttribute("title")||"",this.C.removeAttribute("title"),this.Y&&CsG(this))}; g.A.DP=function(F,J){F<=this.Z&&this.Z<=J&&(F=this.Z,this.Z=NaN,Qqv(this,F))}; g.A.LGv=function(){AIv(this.U,this.Z,243*this.scale)}; g.A.QN=function(){switch(this.type){case 2:var F=this.C;F.removeEventListener("mouseout",this.Tj);F.addEventListener("mouseover",this.W);F.removeEventListener("blur",this.Tj);F.addEventListener("focus",this.W);R7z(this);break;case 3:R7z(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.DP,this),this.U=null),this.api.removeEventListener("videoready",this.eE),this.Gj.stop()}this.type=null;this.Y&&this.V.hide()}; g.A.DW=function(){if(this.C)for(var F=0;F<arguments.length;F++)g.uB(arguments[F],this.C)&&this.QN()}; g.A.X_=function(){this.type!=null&&this.QN();this.U&&this.U.dispose();g.U.prototype.X_.call(this)};g.z(kzJ,g.U);g.A=kzJ.prototype;g.A.QT=function(){this.visible=Ot4(this);this.wY(this.visible);this.icon&&h7C(this,this.icon);this.G.logVisibility(this.element,this.visible&&this.D)}; g.A.B1=function(){return this.G.getVideoData().videoId}; g.A.onClick=function(){this.G.logClick(this.element);var F=this.G.J(),J=this.B1();F.Gj?DyJ(this):olm(this,J)}; g.A.onReset=function(){this.isRequestPending=this.C=!1;this.VG(2);this.QT()}; g.A.VG=function(F,J){var b=this.G.J();h7C(this,F);J?this.update({title:J,image:null}):b.userDisplayName?(F={USER_NAME:b.userDisplayName},this.update({title:this.C?g.m8("Added as $USER_NAME",F):g.m8("Watch later as $USER_NAME",F),image:Z7(b)})):this.update({title:"Watch later",image:null});this.G.Dl()}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.logVisibility(this.element,this.visible&&F)};g.z(g.Y3,g.LV);g.A=g.Y3.prototype; g.A.init=function(){var F=this;this.Fd=new g.I9(this.api);this.zX=new Kn(this.api);this.BD=new g.U({X:"div",K:"ytp-chrome-top"});this.tooltip=new g.s3(this.api,this);this.channelAvatar=new KWz(this.api);this.title=new SO(this.api);this.AX=new g.Mc({X:"div",K:"ytp-chrome-top-buttons"});this.EV=new ufv(this.api,this.BD.element);this.cg=this.api.J().controlsType==="1"?new V_C(this.api,this,this.rq):null;this.contextMenu=new WWY(this.api,this.Fd);this.At=new g.U({X:"div",L:{tabindex:"0"}});this.W2=new g.U({X:"div", L:{tabindex:"0"}});var J=this.api.mG(),b=this.api.J(),I=this.api.getVideoData();this.uy&&(g.uG(this.api.getRootNode(),"ytp-embed"),g.uG(this.api.getRootNode(),"ytp-embed-playlist"),this.BH&&(g.uG(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.uG(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.VI=60,this.hU=89);this.api.J().T&&g.uG(this.api.getRootNode(),"ytp-embed-pfl");this.api.J().U&&(g.uG(this.api.getRootNode(),"ytp-mobile"),this.api.J().Y&&g.uG(this.api.getRootNode(),"ytp-embed-mobile")); I&&I.videoId&&(this.yN=I&&I.getEmbeddedPlayerResponse());g.k(this,this.Fd);g.Pp(this.api,this.Fd.element,4);g.k(this,this.zX);g.Pp(this.api,this.zX.element,4);I=new g.U({X:"div",K:"ytp-gradient-top"});g.k(this,I);g.Pp(this.api,I.element,1);this.Ko=new g.ZU(I,250,!0,100);g.k(this,this.Ko);g.k(this,this.BD);g.Pp(this.api,this.BD.element,1);this.zY=new g.ZU(this.BD,250,!0,100);g.k(this,this.zY);g.k(this,this.tooltip);g.Pp(this.api,this.tooltip.element,4);var u=new pnk(this.api);g.k(this,u);g.Pp(this.api, u.element,5);u.subscribe("show",function(v){F.Zb(u,v)}); this.FR.push(u);this.YG=new Eb(this.api,u);g.k(this,this.YG);!this.uy&&this.YG.Az(this.BD.element);g.k(this,this.channelAvatar);this.channelAvatar.Az(this.BD.element);g.k(this,this.title);this.title.Az(this.BD.element);this.uy&&(I=new CYJ(this.api),g.k(this,I),I.Az(this.BD.element));g.k(this,this.AX);this.AX.Az(this.BD.element);var w=new diz(this.api,this);g.k(this,w);g.Pp(this.api,w.element,5);w.subscribe("show",function(v){F.Zb(w,v)}); this.FR.push(w);this.searchButton=new V$(this.api);g.k(this,this.searchButton);this.searchButton.Az(this.AX.element);this.J6=new kzJ(this.api);g.k(this,this.J6);this.J6.Az(this.AX.element);this.shareButton=new g.Pm(this.api,this,w);g.k(this,this.shareButton);this.shareButton.Az(this.AX.element);this.copyLinkButton=new ec(this.api,this);g.k(this,this.copyLinkButton);this.copyLinkButton.Az(this.AX.element);this.uy&&this.YG.Az(this.AX.element);g.k(this,this.EV);this.EV.Az(this.AX.element);b.c5&&(I=new Sc(this.api), g.k(this,I),g.Pp(this.api,I.element,4));b.T||(I=new whz(this.api,this.EV),g.k(this,I),I.Az(this.AX.element));this.z7=new vvJ(this.api);g.k(this,this.z7);g.Pp(this.api,this.z7.element,5);this.z7.subscribe("show",function(){F.Zb(F.z7,F.z7.K4())}); this.FR.push(this.z7);this.overflowButton=new g.ds(this.api,this.z7);g.k(this,this.overflowButton);this.overflowButton.Az(this.AX.element);this.cg&&g.k(this,this.cg);b.controlsType==="3"&&(I=new G4(this.api),g.k(this,I),g.Pp(this.api,I.element,9));g.k(this,this.contextMenu);this.contextMenu.subscribe("show",this.fm,this);this.api.S("show_preskip_progress_bar_for_skippable_ads")||(I=new rJ(this.api,new b_(this.api)),g.k(this,I),g.Pp(this.api,I.element,4));this.At.listen("focus",this.Ub,this);g.k(this, this.At);this.W2.listen("focus",this.TG,this);g.k(this,this.W2);var M;(this.SV=b.R5?null:new MU4(this.api,J,this.contextMenu,this.rq,this.Fd,this.zX,function(){return F.bJ()},(M=this.cg)==null?void 0:M.progressBar))&&g.k(this,this.SV); this.uy||(this.Rg=new Bh7(this.api),g.k(this,this.Rg),g.Pp(this.api,this.Rg.element,4),this.gN=new PYz(this.api),g.k(this,this.gN),g.Pp(this.api,this.gN.element,4));this.hL=new Sc3(this.api);g.k(this,this.hL);g.Pp(this.api,this.hL.element,4);if(this.uy){var q=new xpm(this.api,this.api.J().zj);g.k(this,q);g.Pp(this.api,q.element,5);q.subscribe("show",function(v){F.Zb(q,v)}); J=new Hez(this.api,q);g.k(this,J);g.Pp(this.api,J.element,4)}this.YD.push(this.Fd.element);this.B(this.api,"fullscreentoggled",this.Up);this.B(this.api,"offlineslatestatechange",function(){F.api.G9()&&OO(F.rq,128,!1)}); this.B(this.api,"cardstatechange",function(){F.MP()}); this.B(this.api,"resize",this.ZyG);this.B(this.api,"videoplayerreset",this.onReset);this.B(this.api,"showpromotooltip",this.xIN);g.LV.prototype.init.call(this)}; g.A.W1=function(){return this.tooltip}; g.A.WZ=function(){return this.cg}; g.A.Zb=function(F,J){J?this.oU=F:this.oU=null;this.MP()}; g.A.rG=function(F,J){if(J)this.hx.push(F);else for(J=this.hx.length;J>=0;J--)if(this.hx[J]===F){this.hx.splice(J,1);break}OO(this.rq,64,this.hx.length>0)}; g.A.qR=function(){this.api.AD()&&this.api.U0();return!!this.oU||c0_(this)||g.LV.prototype.qR.call(this)}; g.A.u2=bk(3);g.A.by=bk(7);g.A.aE=bk(10); g.A.MP=function(){var F=!this.qR(),J=F&&this.api.AD()&&!g.x(this.api.getPlayerStateObject(),2)&&!g.tw(this.api.getVideoData())&&!this.api.J().T&&!this.api.isEmbedsShortsMode(),b=this.uy&&g.Ef(this.api)&&g.x(this.api.getPlayerStateObject(),128);F||b?(this.zY.show(),this.Ko.show()):(this.zY.hide(),this.Ko.hide(),this.api.DW(this.BD.element));J?this.EV.Bo():this.EV.fk();this.cg&&Psv(this.cg,this.eW||!F);this.api.S("web_player_hide_overflow_button_if_empty_menu")&&Uy_(this);g.LV.prototype.MP.call(this)}; g.A.kU=function(F,J,b,I,u){F.style.left="";F.style.top="";F.style.bottom="";var w=g.fL(F),M=I||this.cg&&g.uB(this.cg.Pb(),J),q=I=null;b!=null&&M||(I=g.fL(J),q=g.NB(J,this.api.getRootNode()),b==null&&(b=q.x+I.width/2));b-=w.width/2;M?(J=this.cg,I=BH7(J),q=THa(J),M=this.api.mG().getPlayerSize().height,b=g.AD(b,I,I+q-w.width),w=M-r0C(J)-w.height):g.uB(this.BD.element,J)?(J=this.api.mG().getPlayerSize().width,b=g.AD(b,12,J-w.width-12),w=this.Ua()?this.hU:this.VI,this.api.J().playerStyle==="gvn"&&(w+= 20),this.uy&&(w-=this.Ua()?26:18)):(J=this.api.mG().getPlayerSize(),b=g.AD(b,12,J.width-w.width-12),w=q.y>(J.height-I.height)/2?q.y-w.height-12:q.y+I.height+12);F.style.top=w+(u||0)+"px";F.style.left=b+"px"}; g.A.lN=function(F){F&&(this.api.DW(this.BD.element),this.cg&&this.api.DW(this.cg.Pb()));this.BH&&(g.qr(this.contextMenu.element,"ytp-autohide",F),g.qr(this.contextMenu.element,"ytp-autohide-active",!0));g.LV.prototype.lN.call(this,F)}; g.A.Ut=function(){g.LV.prototype.Ut.call(this);this.BH&&(g.qr(this.contextMenu.element,"ytp-autohide-active",!1),this.BH&&(this.contextMenu.hide(),this.z7&&this.z7.hide()))}; g.A.xK=function(F,J){var b=this.api.mG().getPlayerSize();b=new g.uu(0,0,b.width,b.height);if(F||this.rq.U&&!this.qR()){if(this.api.J().gT||J)F=this.Ua()?this.hU:this.VI,b.top+=F,b.height-=F;this.cg&&(b.height-=r0C(this.cg))}return b}; g.A.Up=function(F){var J=this.api.getRootNode();F?J.parentElement?(J.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.J().externalFullscreen||(J.parentElement.insertBefore(this.At.element,J),J.parentElement.insertBefore(this.W2.element,J.nextSibling))):g.Td(Error("Player not in DOM.")):(J.setAttribute("aria-label","YouTube Video Player"),this.At.detach(),this.W2.detach());this.mO();this.E1()}; g.A.Ua=function(){var F=this.api.J();return this.api.isFullscreen()&&!F.Y||!1}; g.A.showControls=function(F){this.pn=!F;this.MP()}; g.A.mO=function(){var F=this.Ua();this.tooltip.scale=F?1.5:1;this.contextMenu&&g.qr(this.contextMenu.element,"ytp-big-mode",F);this.MP();this.api.S("web_player_hide_overflow_button_if_empty_menu")||Uy_(this);this.E1();var J=this.api.isEmbedsShortsMode();J&&F?(F=(this.api.mG().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.aN(this.BD.element,"padding-left",F+"px"),g.aN(this.BD.element,"padding-right",F+"px")):J&&(g.aN(this.BD.element,"padding-left",""),g.aN(this.BD.element,"padding-right", ""));g.LV.prototype.mO.call(this)}; g.A.b6=function(){if(c0_(this)&&!g.Ef(this.api))return!1;var F=this.api.getVideoData();return!g.dN(this.api.J())||this.api.getPresentingPlayerType()===2||!this.yN||((F=this.yN||F.yN)?(F=F.embedPreview)?(F=F.thumbnailPreviewRenderer,F=F.videoDetails&&g.O(F.videoDetails,UEm)||null):F=null:F=null,F&&F.collapsedRenderer&&F.expandedRenderer)?g.LV.prototype.b6.call(this):!1}; g.A.E1=function(){g.LV.prototype.E1.call(this);this.api.logVisibility(this.title.element,!!this.CL);this.YG&&this.YG.tJ(!!this.CL);this.channelAvatar.tJ(!!this.CL);this.overflowButton&&this.overflowButton.tJ(this.Ru()&&!!this.CL);this.shareButton&&this.shareButton.tJ(!this.Ru()&&!!this.CL);this.J6&&this.J6.tJ(!this.Ru()&&!!this.CL);this.searchButton&&this.searchButton.tJ(!this.Ru()&&!!this.CL);this.copyLinkButton&&this.copyLinkButton.tJ(!this.Ru()&&!!this.CL);if(!this.CL){this.api.DW(this.BD.element); for(var F=0;F<this.FR.length;F++){var J=this.FR[F];J.K4()&&J.fk()}}}; g.A.gY=function(F){this.cg&&Psv(this.cg,this.qR());this.MP();g.LV.prototype.gY.call(this,F)}; g.A.handleGlobalKeyDown=function(F,J,b,I,u,w,M,q){return this.SV?this.SV.handleGlobalKeyDown(F,J,b,I,u,w,M,q):!1}; g.A.handleGlobalKeyUp=function(F,J,b,I,u,w,M){return this.SV?this.SV.handleGlobalKeyUp(F,J,b,I,u,w,M):!1}; g.A.bJ=function(){if(this.contextMenu.uT)return this.contextMenu.fk(),!0;if(this.hx.length)return this.hx[this.hx.length-1].fk(),!0;if(this.oU)return this.oU.fk(),!0;this.cg&&this.api.DW(this.cg.Pb());this.AX&&this.api.DW(this.AX.element);return g.LV.prototype.bJ.call(this)}; g.A.Rx=function(F,J){this.Hd=J;this.rG(F,J);this.fm()}; g.A.fm=function(){var F=this.Hd||this.contextMenu.K4();this.RA!==F&&(this.RA=F,this.api.jE("onAutonavPauseRequest",this.RA))}; g.A.Ub=function(){xyG(this,this.api.getRootNode(),!0).focus()}; g.A.TG=function(){xyG(this,this.api.getRootNode(),!1).focus()}; g.A.z6=function(){return this.cg&&this.cg.T}; g.A.q6=function(){this.rq.q6()}; g.A.Fw=function(){this.Fd.hide()}; g.A.PP=function(F){this.Fd.PP(!F.isOrWillBePlaying())}; g.A.xn=function(F,J,b,I){this.zX.xn(F,J,b,I)}; g.A.renderChapterSeekingAnimation=function(F,J,b){PKC(this.zX,F,J,b)}; g.A.ZyG=function(){nla(this,!0)}; g.A.onReset=function(){Uy_(this)}; g.A.xIN=function(F){nla(this,!1,F)}; g.A.MZ=function(){return this.contextMenu}; g.A.KO=function(F,J){var b;if((b=this.cg)!=null){var I=Number(F.element.getAttribute("data-priority"))||0,u=0,w=b.U.element;J&&b.G.S("delhi_modern_web_player")&&(w=b.U.RI(By[J]));J=g.N(w.children);for(b=J.next();!(b.done||I<(Number(b.value.getAttribute("data-priority"))||0));b=J.next())u++;F.Az(w,u)}}; g.A.FZ=function(){var F,J=(F=this.cg)==null?void 0:F.progressBar;if(J){var b;((b=J.U)==null?0:b.isEnabled)&&J.FZ()}};g.z(g.$3,g.GN);g.$3.prototype.u7=function(){return!1}; g.$3.prototype.create=function(){var F=this.player.J();g.sV(F)&&F.U||F.disableOrganicUi?this.chrome=new g.LV(this.player):this.chrome=new g.Y3(this.player);g.k(this,this.chrome);this.chrome.init();this.player.d6("ux")}; g.$3.prototype.p8=function(){return this.chrome};var C9=[],OsJ=!1;g.z(Xi,g.R);Xi.prototype.V=function(){this.C!=null&&this.app.getVideoData()!==this.C&&DR(this.C)&&llY(this.app,this.C,void 0,void 0,this.T)}; Xi.prototype.W=function(){if(this.C!=null&&this.app.getVideoData()!==this.C&&this.U!=null&&this.Z!=null&&this.D!=null&&DR(this.C)){var F=Htz(this.U,this.Z,this.D);F==null?llY(this.app,this.C,void 0,void 0,this.T):(this.U.UQ("sgap",F),this.U.getVideoData().Y&&this.U.lA(!1))}}; Xi.prototype.Y=function(F){var J=this.app.F_();if(J){var b=this.app.getCurrentTime();Math.abs(b-F.end/1E3)>5&&J.UQ("glrs",{cmt:b});J.seekTo(0,{seekSource:58});J.UQ("glrre",{cmt:b})}}; Xi.prototype.X_=function(){this.C=null;g.R.prototype.X_.call(this)};g.z(g.Qw,nB);g.A=g.Qw.prototype;g.A.isView=function(){return!0}; g.A.BR=function(){var F=this.mediaElement.getCurrentTime();if(F<this.start)try{var J=this.mediaElement.Z4(),b=AG(J,F);return!(this.start<b)}catch(I){}return!1}; g.A.mQ=function(){return al(this.mediaElement.mQ(),this.start,this.end)}; g.A.Z4=function(){return al(this.mediaElement.Z4(),this.start,this.end)}; g.A.Me=function(){return al(this.mediaElement.Me(),this.start,this.end)}; g.A.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start}; g.A.setCurrentTime=function(F){this.mediaElement.setCurrentTime(F+this.start)}; g.A.getDuration=function(){return isFinite(this.end)&&!this.C?this.end-this.start:this.mediaElement.getDuration()-this.start}; g.A.play=function(){if(this.BR()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(F){}}return this.mediaElement.play()}; g.A.Cy=function(){var F=nB.prototype.Cy.call(this);F.view=this.start+"-"+this.end;return F}; g.A.addEventListener=function(F,J){this.mediaElement.addEventListener(F,J)}; g.A.removeEventListener=function(F,J){this.mediaElement.removeEventListener(F,J)}; g.A.EP=function(){return this.mediaElement.EP()}; g.A.activate=function(F){this.mediaElement.activate(F)}; g.A.SS=function(){return this.mediaElement.SS()}; g.A.playVideo=function(){return this.mediaElement.playVideo()}; g.A.PL=function(){this.mediaElement.PL()}; g.A.Zw=function(){this.mediaElement.Zw()}; g.A.Yx=function(){return this.mediaElement.Yx()}; g.A.Pb=function(){return this.mediaElement.Pb()}; g.A.dB=function(){return this.mediaElement.dB()}; g.A.RF=function(F){this.mediaElement.RF(F)}; g.A.bb=function(){this.mediaElement.bb()}; g.A.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()}; g.A.setPlaybackRate=function(F){return this.mediaElement.setPlaybackRate(F)}; g.A.iS=function(){return this.mediaElement.iS()}; g.A.setLoop=function(F){this.mediaElement.setLoop(F)}; g.A.canPlayType=function(F,J){return this.mediaElement.canPlayType(F,J)}; g.A.isPaused=function(){return this.mediaElement.isPaused()}; g.A.isSeeking=function(){return this.mediaElement.isSeeking()}; g.A.isEnded=function(){return this.mediaElement.isEnded()}; g.A.rl=function(){return this.mediaElement.rl()}; g.A.sA=function(F){this.mediaElement.sA(F)}; g.A.l_=function(){return this.mediaElement.l_()}; g.A.load=function(){this.mediaElement.load()}; g.A.pause=function(){this.mediaElement.pause()}; g.A.kR=function(){return this.mediaElement.kR()}; g.A.CG=function(){return this.mediaElement.CG()}; g.A.rB=function(){return this.mediaElement.rB()}; g.A.Aw=function(){return this.mediaElement.Aw()}; g.A.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()}; g.A.Hh=function(){return this.mediaElement.Hh()}; g.A.Rv=function(){return this.mediaElement.Rv()}; g.A.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()}; g.A.IG=function(){return this.mediaElement.IG()}; g.A.getSize=function(){return this.mediaElement.getSize()}; g.A.setSize=function(F){this.mediaElement.setSize(F)}; g.A.getVolume=function(){return this.mediaElement.getVolume()}; g.A.setVolume=function(F){this.mediaElement.setVolume(F)}; g.A.setAttribute=function(F,J){this.mediaElement.setAttribute(F,J)}; g.A.removeAttribute=function(F){this.mediaElement.removeAttribute(F)}; g.A.hasAttribute=function(F){return this.mediaElement.hasAttribute(F)}; g.A.qN=bk(56);g.A.HP=bk(58);g.A.V8=bk(60);g.A.j7=bk(62);g.A.X5=function(){return this.mediaElement.X5()}; g.A.EW=function(F){this.mediaElement.EW(F)}; g.A.p5=function(F){return this.mediaElement.p5(F)}; g.A.IN=function(){return this.mediaElement.IN()}; g.A.stopVideo=function(){this.mediaElement.stopVideo()}; g.A.WL=function(F){this.mediaElement.WL(F)}; g.A.audioTracks=function(){return this.mediaElement.audioTracks()}; g.A.uD=function(F){this.mediaElement.uD(F)};g.z(JKz,g.R);g.A=JKz.prototype;g.A.getStatus=function(){return this.status}; g.A.Vx=function(){var F=this.C.getVideoData(),J=this.U.getVideoData(),b;if((b=F.T)&&!(b=!F.C)){b=F.C;for(var I=!1,u=!1,w=g.N(Object.values(b.C)),M=w.next();!M.done;M=w.next())M=M.value,M.info.audio&&M.index.isLoaded()&&(I=!0),M.info.video&&M.index.isLoaded()&&(u=!0);b.C["0"]&&(u=!0);b=I&&u}if(b)if(this.C.Qa()){w=Zta(this.policy,this.C,this.U,this.Pu);M=bZm(this);b=M.uc;u=M.UR;I=M.Jn;M=M.CK;if(!this.V){var q=this.U.Fb()*1E3,v=this.C.Fb();v=(I-b-v)*1E3;w&&w.msg==="in-the-past"&&(v=0);F=F.isAd();this.U.Ep(q, v,F);this.V=!0}w?(J="cannot_apply"+w.msg,delete w.msg,this.Wh(J,w)):this.status.status===2?qMv(this):(F=this.C.SS())&&hG(F)&&(!kn(F)&&g.O6()?this.Wh("mse_closed"):J.C&&vd(J.C)&&F.U&&!F.U.LV()?this.Wh("encr_upgrade"):(J=this.C.Qa(),J.isEnded()?this.Wh("elem_ended"):u<0?this.Wh("next_player_future"):(this.W=I,this.currentVideoDuration=I-b,this.T=WNz(F,b,I,!0),this.Z=WNz(F,u,M,!1),F=this.U.getVideoData().clientPlaybackNonce,this.C.UQ("gaplessPrep",{cpn:F}),this.C.w5(this.T,!1,wZG(this),this.t_.J().S("html5_shorts_gapless_keep_pending_requests")&& LC(this.C.getVideoData())),this.C.setMediaElement(I3Y(J,b,I,!this.C.getVideoData().isAd())),DB(this,2),qMv(this))))}else this.Wh("no-elem")}; g.A.S7=function(F){var J=F===AKY(this).MF,b=J?this.T.C:this.T.U;J=J?this.Z.C:this.Z.U;if(b.isActive&&!J.isActive){var I=this.W;Mt(F.N0(),I-.01)&&(DB(this,4),b.isActive=!1,b.I$=b.I$||b.isActive,(this.D===1?this.C:this.U).UQ("sbh",{}),J.isActive=!0,J.I$=J.I$||J.isActive,this.D!==0&&(this.C.getVideoData().ip=!0));F=this.Z.U;if(this.Z.C.isActive&&F.isActive&&(DB(this,5),this.D!==0)){F=this.U.cQ();b=this.C.cQ();this.C.UQ("sbs",{citag:b==null?void 0:b.itag,nitag:F==null?void 0:F.itag});this.U.UQ("gitags", {pitag:b==null?void 0:b.itag,citag:F==null?void 0:F.itag});var u;(u=this.U)==null||u.La()}}}; g.A.Mz=function(){this.Rs()&&this.Wh("player-reload-after-handoff")}; g.A.Wh=function(F,J){J=J===void 0?{}:J;if(!this.iR()&&this.status.status!==6){var b=this.status.status>=4&&F!=="player-reload-after-handoff";this.status={status:Infinity,error:F};if(this.C&&this.U){var I=this.U.getVideoData().clientPlaybackNonce;this.C.je(new E5("dai.transitionfailure",Object.assign(J,{cpn:I,transitionTimeMs:this.Pu,msg:F})));this.C.lA(b)}this.O1.reject(F);this.dispose()}}; g.A.Rs=function(){return this.status.status>=4&&this.status.status<6}; g.A.X_=function(){Mxo(this);this.C.unsubscribe("newelementrequired",this.Mz,this);if(this.T){var F=this.T.U;this.T.C.Us.unsubscribe("updateend",this.S7,this);F.Us.unsubscribe("updateend",this.S7,this)}g.R.prototype.X_.call(this)}; g.A.wj=function(F){g.e1(F,128)&&this.Wh("player-error-event")};g.z(k3,g.R);k3.prototype.clearQueue=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;this.Z&&this.Z.reject("Queue cleared");this.app.J().S("html5_gapless_fallback_on_qoe_restart_v2")||J&&this.U&&this.U.lA(!1);O3(this,F)}; k3.prototype.W9=function(){return!this.C}; k3.prototype.Rs=function(){var F;return((F=this.T)==null?void 0:F.Rs())||!1}; k3.prototype.X_=function(){O3(this);g.R.prototype.X_.call(this)};g.z(pZm,g.uA);g.A=pZm.prototype;g.A.getVisibilityState=function(F,J,b,I,u,w,M,q){return F?4:a6m()?3:J?2:b?1:I?5:u?7:w?8:M?9:q?10:0}; g.A.wT=function(F){this.fullscreen!==F&&(this.fullscreen=F,this.G0())}; g.A.setMinimized=function(F){this.U!==F&&(this.U=F,this.G0())}; g.A.setInline=function(F){this.inline!==F&&(this.inline=F,this.G0())}; g.A.mU=function(F){this.pictureInPicture!==F&&(this.pictureInPicture=F,this.G0())}; g.A.setSqueezeback=function(F){this.T!==F&&(this.T=F,this.G0())}; g.A.Wp=function(F){this.Z!==F&&(this.Z=F,this.G0())}; g.A.Hh=function(){return this.C}; g.A.tO=function(){return this.fullscreen!==0}; g.A.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.A.SP=function(){return this.fullscreen}; g.A.isMinimized=function(){return this.U}; g.A.isInline=function(){return this.inline}; g.A.isBackground=function(){return a6m()}; g.A.JN=function(){return this.pictureInPicture}; g.A.n$=function(){return!1}; g.A.I9=function(){return this.T}; g.A.tD=function(){return this.Z}; g.A.G0=function(){this.publish("visibilitychange");var F=this.getVisibilityState(this.Hh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.JN(),this.n$(),this.I9(),this.tD());F!==this.W&&this.publish("visibilitystatechange");this.W=F}; g.A.X_=function(){p0_(this.D);g.uA.prototype.X_.call(this)};g.z(gx3,g.R);g.A=gx3.prototype;g.A.Nf=function(){return this.Z}; g.A.uM=function(F){this.Z=F}; g.A.F_=function(){return this.T}; g.A.LA=function(F){this.T=F}; g.A.F4=function(F){return this.U[F]||null}; g.A.X_=function(){for(var F=g.N(Object.values(this.U)),J=F.next();!J.done;J=F.next())xU(J.value);g.R.prototype.X_.call(this)};g.z(oQ,g.R);g.A=oQ.prototype;g.A.enqueue=function(F,J){if(F.Z!==this)return!1;if(this.segments.length===0||(J===void 0?0:J))this.C=F;this.segments.push(F);return!0}; g.A.Ez=function(){return this.V2||0}; g.A.jo=function(){return this.Z||0}; g.A.removeAll=function(){for(;this.segments.length;){var F=void 0;(F=this.segments.pop())==null||F.dispose()}this.U.clear();this.T=void 0}; g.A.X_=function(){this.removeAll();g.R.prototype.X_.call(this)}; g.z(ExJ,g.R);g.A=ExJ.prototype;g.A.Ez=function(){return this.V2}; g.A.jo=function(){return this.T}; g.A.getType=function(){return this.type}; g.A.getVideoData=function(){return this.videoData}; g.A.gy=function(F){m7(F);this.videoData=F}; g.A.X_=function(){jC7(this);g.R.prototype.X_.call(this)};g.x3.prototype.El=function(F,J){if(J===1)return this.C.get(F);if(J===2)return this.T.get(F);if(J===3)return this.U.get(F)}; g.x3.prototype.M6=bk(50);g.x3.prototype.Za=function(F,J,b,I){b={VO:I,W$:b};J?this.T.set(F,b):this.C.set(F,b)}; g.x3.prototype.clearAll=function(){this.C.clear();this.T.clear();this.U.clear()}; g.z(g.n9,g.R);g.A=g.n9.prototype;g.A.B$=function(F,J,b){return new g.b6(F,J,{id:b,namespace:"serverstitchedcuerange",priority:9})}; g.A.VL=function(F){var J=F.l7?F.l7*1E3:F.V2,b=this.U.get(F.cpn);b&&this.playback.removeCueRange(b);this.U.delete(F.cpn);this.T.delete(F.cpn);b=this.D.indexOf(F);b>=0&&this.D.splice(b,1);b=[];for(var I=g.N(this.W),u=I.next();!u.done;u=I.next())u=u.value,u.end<=J?this.playback.removeCueRange(u):b.push(u);this.W=b;OZz(this,0,J+F.durationMs)}; g.A.onCueRangeEnter=function(F){this.dD.push(F);var J=F.getId();this.Ck({oncueEnter:1,cpn:J,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});var b=J==="";this.Jz.add(F.U);var I=this.T.get(J);if(b){var u;if(this.playback.getVideoData().vV()&&((u=this.C)==null?0:u.kh)&&this.Z){this.x_=0;this.C=void 0;this.nW&&(this.events.iX(this.nW),this.nW=null);this.Z="";this.zj=!0;return}}else if(this.Ck({enterAdCueRange:1}),this.playback.getVideoData().vV()&& (I==null?0:I.L$))return;if(this.zj&&!this.C)this.zj=!1,!b&&I&&(b=this.playback.getCurrentTime(),JU(this,{Os:F,isAd:!0,F2:!0,au:b,adCpn:J},{isAd:!1,F2:!1,au:b}),this.GF=I.cpn,L9(this,I),F=Hy(this,"midab",I),this.Ck(F),this.x_=1),this.N=!1;else if(this.C){if(this.C.F2)this.Ck({a_pair_of_same_transition_occurs_enter:1,acpn:this.C.adCpn,transitionTime:this.C.au,cpn:J,currentTime:this.playback.getCurrentTime()}),I=this.playback.getCurrentTime(),F={Os:F,isAd:!b,F2:!0,au:I,adCpn:J},J={Os:this.C.Os,isAd:this.C.isAd, F2:!1,au:I,adCpn:this.C.adCpn},this.C.Os&&this.Jz.delete(this.C.Os.U),JU(this,F,J);else{if(this.C.Os===F){this.Ck({same_cue_range_pair_enter:1,acpn:this.C.adCpn,transitionTime:this.C.au,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:F.start,cueRangeEndTime:F.end});this.C=void 0;return}if(this.C.adCpn===J){J&&this.Ck({dchtsc:J});this.C=void 0;return}F={Os:F,isAd:!b,F2:!0,au:this.playback.getCurrentTime(),adCpn:J};JU(this,F,this.C)}this.C=void 0;this.N=!1}else this.C={Os:F,isAd:!b, F2:!0,au:this.playback.getCurrentTime(),adCpn:J}}; g.A.onCueRangeExit=function(F){var J=F.getId();this.Ck({oncueExit:1,cpn:J,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});var b=J==="",I=this.T.get(J);if(this.playback.getVideoData().vV()&&!b&&I){if(I.L$)return;I.L$=!0;this.V.clear();if(this.rD.S("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.H$()){var u=I.V2;this.playback.KU(u/1E3,(u+I.durationMs)/1E3)}else this.playback.UQ("lifa",{remove:0})}if(this.Jz.has(F.U))if(this.Jz.delete(F.U), this.dD=this.dD.filter(function(w){return w!==F}),this.zj&&(this.N=this.zj=!1,this.Ck({cref:1})),this.C){if(this.C.F2){if(this.C.Os===F){this.Ck({same_cue_range_pair_exit:1, acpn:this.C.adCpn,transitionTime:this.C.au,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:F.start,cueRangeEndTime:F.end});this.C=void 0;return}if(this.C.adCpn===J){J&&this.Ck({dchtsc:J});this.C=void 0;return}J={Os:F,isAd:!b,F2:!1,au:this.playback.getCurrentTime(),adCpn:J};JU(this,this.C,J)}else if(this.Ck({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.C.adCpn,transitionTime:this.C.au,upcomingCpn:J,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.C.adCpn===J)return;this.C=void 0;this.N=!1}else this.C={Os:F,isAd:!b,F2:!1,au:this.playback.getCurrentTime(),adCpn:J};else this.Ck({ignore_single_exit:1})}; g.A.O0=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,V2:0,playerType:1,Xd:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.A.zc=function(){if(this.Bu)return!1;var F=void 0;this.GF&&(F=this.T.get(this.GF));return this.playback.getVideoData().vV()?!!F&&!F.L$:!!F}; g.A.seekTo=function(F,J,b,I){F=F===void 0?0:F;J=J===void 0?{}:J;b=b===void 0?!1:b;I=I===void 0?null:I;if(this.playback.getVideoData().vV()&&F<=this.kQ/1E3)this.playback.pauseVideo(),this.kQ=0,this.N=!0,this.playback.sV(),this.playback.seekTo(F),this.playback.playVideo();else if(this.N=!0,b)Vx_(this,F,J);else{b=this.app.F_();var u=b===this.KW?this.Q2:null;Iz(this,!1);this.Kk=F;this.xm=J;I!=null&&this.Om.start(I);b&&(this.Q2=u||b.getPlayerState(),b.MG(),this.KW=b)}}; g.A.X_=function(){Iz(this,!1);$T_(this);CNk(this);g.R.prototype.X_.call(this)}; g.A.iD=function(F){this.T1=F;this.Ck({swebm:F})}; g.A.Vz=function(F,J,b){if(b&&J){var I=this.V.get(F);if(I){I.locations||(I.locations=new Map);var u=Number(J.split(";")[0]);b=new g.yJ(b);this.Ck({hdlredir:1,itag:J,seg:F,hostport:zK(b)});I.locations.set(u,b)}}}; g.A.Rz=function(F,J,b,I,u,w){var M=I===3,q=QC4(this,F,J,I,b,w);if(!q){wh(this,J,M);var v=g.XZk(this,J)?"undec":"ncp";this.Ck({gvprp:v,mt:F,seg:J,tt:I,itag:b,ce:w});return null}M||this.V.set(J,q);w=q.i7;var a;I=((a=this.El(J-1,I,u))==null?void 0:a.VO)||"";I===""&&this.Ck({eds:1});a=DTC(this,q.ssdaiAdsConfig);u=this.playback.getVideoData();var e;M=((e=u.U)==null?void 0:e.containerType)||0;e=u.Nc[M];q=q.k8&&J>=q.k8?q.k8:void 0;e={zW:w?h9C(this,w):[],nw:a,VO:I,Fy:q,SR:L5(e.split(";")[0]),Hi:e.split(";")[1]|| ""};q={Zc:e};this.cN&&(F={gvprpro:"v",sq:J,mt:F.toFixed(3),itag:b,acpns:((v=e.zW)==null?void 0:v.join("_"))||"none",abid:w},this.Ck(F));return q}; g.A.RN=function(F){a:{if(!this.Bu){var J=R93(this,F);if(!(this.playback.getVideoData().vV()&&(J==null?0:J.L$)))break a}J=void 0}var b=J;if(!b)return this.Ck({gvprp:"ncp",mt:F}),null;J=b.i7;var I=DTC(this,b.ssdaiAdsConfig);b=b.k8&&b.lM&&F>=b.lM?b.k8:void 0;var u=this.playback.getVideoData(),w,M=((w=u.U)==null?void 0:w.containerType)||0;w=u.Nc[M];w={zW:J?h9C(this,J):[],nw:I,Fy:b,SR:L5(w.split(";")[0]),Hi:w.split(";")[1]||""};if(this.rD.S("html5_use_time_without_threshold_first")){var q;F={gvprpro:"v", mt:F.toFixed(3),acpns:((q=w.zW)==null?void 0:q.join("_"))||"none",abid:J};this.Ck(F)}return w}; g.A.R9=function(F,J,b,I,u,w){var M=Number(b.split(";")[0]),q=I===3;F=QC4(this,F,J,I,b,w);this.Ck({gdu:1,seg:J,itag:M,pb:""+!!F});if(!F)return wh(this,J,q),null;F.locations||(F.locations=new Map);if(!F.locations.has(M)){var v,a;w=(v=F.videoData.getPlayerResponse())==null?void 0:(a=v.streamingData)==null?void 0:a.adaptiveFormats;if(!w)return this.Ck({gdu:"noadpfmts",seg:J,itag:M}),wh(this,J,q),null;v=w.find(function(p){return p.itag===M}); if(!v||!v.url){var e=F.videoData.videoId;F=[];var K=g.N(w);for(I=K.next();!I.done;I=K.next())F.push(I.value.itag);this.Ck({gdu:"nofmt",seg:J,vid:e,itag:M,fullitag:b,itags:F.join(",")});wh(this,J,q);return null}F.locations.set(M,new g.yJ(v.url,!0))}w=F.locations.get(M);if(!w)return this.Ck({gdu:"nourl",seg:J,itag:M}),wh(this,J,q),null;w=new aA(w);this.T1&&(w.get("dvc")?this.Ck({dvc:w.get("dvc")||""}):w.set("dvc","webm"));(I=(K=this.El(J-1,I,u))==null?void 0:K.VO)&&w.set("daistate",I);F.k8&&J>=F.k8&& w.set("skipsq",""+F.k8);(K=this.playback.getVideoData().clientPlaybackNonce)&&w.set("cpn",K);K=[];F.i7&&(K=h9C(this,F.i7),K.length>0&&w.set("acpns",K.join(",")));q||this.V.set(J,F);q=null;q=w.get("aids");I=w.tF();(I==null?void 0:I.length)>2048&&this.Ck({urltoolong:1,sq:J,itag:M,len:I.length});this.cN&&(I&&(w=F.cpn,u=F.i7,xTY(this,w,u),u&&!this.M0.has(u)&&(w=cKv(this,w,u),v=UTm(this,u),this.Ck({iofa:w}),this.Ck({noawnzd:v-w}),this.Ck({acpns:K.join("."),aids:(e=q)==null?void 0:e.replace(/,/g,".")}), this.M0.add(u))),this.Ck({gdu:"v",seg:J,itag:b,ast:F.V2.toFixed(3),alen:F.durationMs.toFixed(3),acpn:F.cpn,avid:F.videoData.videoId}));return I}; g.A.nU=function(F,J,b){var I=uK(this,F,b);return(I=I?(I.V2+I.durationMs)/1E3:0)&&J>I?(this.rO(F,b,!0),this.playback.seekTo(I),!0):!1}; g.A.rO=function(F,J,b){b=b===void 0?!1:b;var I=uK(this,F,J);if(I){var u=void 0,w=I.i7;if(w){this.Ck({skipadonsq:J,sts:b,abid:w,acpn:I.cpn,avid:I.videoData.videoId});b=this.Tj.get(w);if(!b)return;b=g.N(b);for(w=b.next();!w.done;w=b.next())w=w.value,w.k8=J,w.lM=F,w.V2>I.V2&&(u=w)}this.Z=I.cpn;kQm(this);F=this.playback.getCurrentTime();Ff(this,I,u,F,F,!1,!0)}}; g.A.yb=function(){for(var F=g.N(this.D),J=F.next();!J.done;J=F.next())J=J.value,J.k8=NaN,J.lM=NaN;kQm(this);this.Ck({rsac:"resetSkipAd",sac:this.Z});this.Z=""}; g.A.El=function(F,J,b){return this.fW.El(F,J,b)}; g.A.M6=bk(49); g.A.Za=function(F,J,b,I,u,w,M,q,v){I.length>0&&this.Ck({onssinfo:1,sq:F,start:J.toFixed(3),cpns:I.join(","),ds:u.join(","),isVideo:M?1:0});v&&this.fW.Za(F,M,q,v);q=bE(this.playback.getVideoData())&&this.rD.S("html5_process_all_cuepoints");if(M||q){if(I.length&&u.length)for(this.Z&&this.Z===I[0]&&this.Ck({skipfail:1,sq:F,acpn:this.Z}),F=J+this.Kc(),M=0;M<I.length;M++)if(v=I[M],q=F,F=q+u[M],v=this.T.get(v))q-=w[M],v.l7=v.l7!=null?Math.min(v.l7,q):q;if(I.length&&u.length)for(J=(J+this.Kc())*1E3,b=0;b< I.length;b++)if(F=I[b],M=u[b]*1E3,F===this.playback.getVideoData().clientPlaybackNonce)ox7(this,J,J+M,!1),J+=M;else{this.oI.has(F)||(this.Ck({adCpnFromEmsg:1}),this.oI.add(F));q=0;b<w.length&&(q=w[b]*1E3);v=this.U.get(F);var a=!1;v?(v.start=J-q,v.end=J+M,this.playback.nJ()):(v=this.B$(J-q,J+M,F),this.U.set(F,v),this.Ck({newAdCR:1,cpn:F,startTime:v.start,endTime:v.end}),a=!0);J=v.end;ox7(this,v.start,v.end,!0);if(a)for(this.playback.addCueRange(v),F=this.playback.oG("serverstitchedcuerange",36E5), F=g.N(F),M=F.next();!M.done;M=F.next())this.U.delete(M.value.getId())}else b!==5&&b!==4||ox7(this,(J+this.Kc())*1E3,(J+this.Kc())*1E3+5E3,!1)}}; g.A.dG=bk(47);g.A.Kc=function(){return this.playback.Kc()}; g.A.AN=function(F){this.playback.UQ("timelineerror",{e:F})}; g.A.rk=function(F){this.WN&&this.eE&&this.qf.push(this.eE);F&&this.eE&&this.If.push(this.eE);this.eE=null;this.playback.rk(F)}; g.A.O3=function(F){if(this.Bu||F.identifier&&this.g9.has(F.identifier))this.Ck({startnoad:F.identifier}),ZB(this);else if(Bc(this.qf,function(b){return b.identifier===F.identifier}))this.Ck({timedoutcp:1}),this.Gj.start(0); else if(Bc(this.If,function(b){return b.identifier===F.identifier}))this.Ck({fetchedcp:1}),ZB(this); else if(this.Gj.isActive()){var J;this.Ck({racingcp:((J=this.eE)==null?void 0:J.identifier)+"_"+F.identifier})}else this.MI=(new Date).getTime()/1E3,this.Ck({adf:1}),(J=5E3,F.event==="predictStart")&&(J-=F.C),this.Um=Math.max(J,15E3),this.WN=!1,this.Gj.start(this.Um),this.eE=F,this.fW.clearAll(),this.bR=[]}; g.A.Ty=function(F,J,b,I){b=b||{reason:"disablessdai"};if(F&&J){if(!uK(this,F,J))return!1;b.sq=J}if(this.Bu)return!1;this.Bu=!0;this.x_>0&&(this.x_=0,this.GF="",this.api.publish("serverstitchedvideochange"));this.playback.sy(b,I);return!0}; g.A.CB=function(){this.Ck({rstdaist:1});this.fW.clearAll()}; g.A.Jx=function(F){var J;if(F!==((J=this.eE)==null?void 0:J.identifier))this.Ck({ignorenoad:F});else{this.g9.add(F);var b;((b=this.eE)==null?void 0:b.identifier)===F&&ZB(this)}}; g.A.Jp=function(){return this.x_}; g.A.h4=function(){return this.GF}; g.A.F0=function(F){if(this.playback.getVideoData().vV()&&(this.rD.S("html5_lifa_no_gab_on_predict_start")&&F.event==="predictStart"||F.event==="continue"||F.event==="stop"))return this.Ck({cuepoint_skipped:F.event}),!1;var J=XN(this.api.TF());if(J=J?J.F0(F):!1)this.Y={wJ:F.identifier,zL:F.startSecs};else if(this.Y&&this.Y.wJ===F.identifier&&F.startSecs>this.Y.zL+1){this.Ck({cueStChg:F.identifier,oldSt:this.Y.zL.toFixed(3),newSt:F.startSecs.toFixed(3),abid:this.Y.hj});if(this.Y.hj){var b=F.startSecs- this.Y.zL,I=this.Tj.get(this.Y.hj);if(I){I=g.N(I);for(var u=I.next();!u.done;u=I.next())u=u.value,u.V2>=0&&(u.V2+=b*1E3,this.rD.S("html5_ssdai_update_timeline_on_start_time_change")&&(u.Xd+=b*1E3),this.Ck({newApEt:u.V2,newApPrt:u.Xd,acpn:u.cpn}))}}this.Y.zL=F.startSecs}return J}; g.A.GA=function(F){return this.Bu?!1:!!R93(this,F)}; g.A.xq=function(F){var J=this;this.playback.pauseVideo();var b=this.playback.getCurrentTime(),I=this.T.get(this.GF),u=this.U.get(this.GF);if(I){this.Z=this.GF;this.N=!1;I.L$=!0;var w=this.playback.getCurrentTime();this.C={Os:u,isAd:!0,F2:!1,au:w,adCpn:this.GF,kh:I,E6z:F};this.playback.getVideoData().vV()&&this.playback.QE(I,this.O0(),w,this.playback.getCurrentTime(),!1,!0,F,(0,g.jR)());if(u==null?0:u.start)this.kQ=w*1E3-u.start;this.V.clear();this.playback.sV();this.GF=this.O0().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(b,{seekSource:89,Ky:"lifa_skip"});this.playback.playVideo();this.nW||(this.nW=this.events.B(this.api,"progresssync",function(){J.VL(I)})); return!0}this.Ck({skipFail:b},!0);return!1}; g.A.Ck=function(F,J){((J===void 0?0:J)||this.cN||this.playback.getVideoData().vV())&&this.playback.UQ("sdai",F)}; var rKY=0;g.z(nx4,g.n9);g.A=nx4.prototype;g.A.VL=function(F){var J=this.U.get(F.cpn);J&&this.playback.removeCueRange(J);this.U.delete(F.cpn);this.T.delete(F.cpn);F=this.D.indexOf(F);F>=0&&this.D.splice(F,1)}; g.A.onCueRangeEnter=function(F){var J=F.getId();this.playback.UQ("sdai",{oncueEnter:1,cpn:J,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});J=this.T.get(J);this.playback.UQ("sdai",{enterAdCueRange:1});var b=this.GF||this.O0().cpn,I;b=(I=this.T.get(b))!=null?I:this.O0();J&&(F={Os:F,PX:b,Ts:J,eO:this.playback.getCurrentTime()},this.wS(F))}; g.A.onCueRangeExit=function(F){for(var J=this.playback.getCurrentTime()*1E3,b=F.getId(),I=g.N(this.U.values()),u=I.next();!u.done;u=I.next())if(u=u.value,u.getId()!==b&&J>=u.start&&J<=u.end)return;if(J=this.T.get(b))F={Os:F,PX:J,Ts:this.O0(),eO:this.playback.getCurrentTime()},this.wS(F)}; g.A.wS=function(F){this.Z||this.N||this.g_(this.GF);var J=F.PX,b=F.Ts;if(b.cpn===this.GF)this.playback.UQ("sdai",{igtranssame:1,enter:b.cpn,exit:J.cpn});else{var I=this.N,u=!!this.Z;this.Z="";F=F.eO;var w=J.playerType===2?J.V2/1E3+J.videoData.KW:this.O0().videoData.KW;if(J.playerType===2&&b.playerType===2)u?this.playback.UQ("sdai",{igtransskip:1,enter:b.cpn,exit:J.cpn,seek:I,skip:this.Z}):Ff(this,J,b,w,F,I,u);else{this.GF=b.cpn;if(J.playerType===1&&b.playerType===2){this.kQ=0;L9(this,b);var M=Hy(this, "c2a",b);this.playback.UQ("sdai",M);this.x_++}else if(J.playerType===2&&b.playerType===1){M=J.videoData.KW;this.api.publish("serverstitchedvideochange");var q=Hy(this,"a2c");this.playback.UQ("sdai",q);this.x_=0;this.kQ=M}this.playback.QE(J,b,w,F,I,u)}this.Z="";this.N=!1}}; g.A.seekTo=function(F,J,b,I){F=F===void 0?0:F;J=J===void 0?{}:J;b=b===void 0?!1:b;I=I===void 0?null:I;this.g_(this.GF);g.n9.prototype.seekTo.call(this,F,J,b,I)}; g.A.rO=function(F,J,b){b=b===void 0?!1:b;var I=uK(this,F,J);if(I){var u=void 0,w=I.i7;if(w){this.playback.UQ("sdai",{skipadonsq:J,sts:b,abid:w,acpn:I.cpn,avid:I.videoData.videoId});b=this.Tj.get(w);if(!b)return;b=g.N(b);for(w=b.next();!w.done;w=b.next())w=w.value,w.k8=J,w.lM=F,w.V2>I.V2&&(u=w)}this.g_(this.GF);this.Z=I.cpn;kQm(this);F=this.playback.getCurrentTime();Ff(this,I,u,F,F,!1,!0)}}; g.A.Za=function(F,J,b,I,u,w,M,q,v){I.length>0&&this.playback.UQ("sdai",{onssinfo:1,sq:F,start:J.toFixed(3),cpns:I.join(","),ds:u.join(","),isVideo:M?1:0});v&&this.fW.Za(F,M,q,v);b=bE(this.playback.getVideoData())&&this.rD.S("html5_process_all_cuepoints");if(M||b){if(I.length&&u.length)for(this.Z&&this.Z===I[0]&&this.playback.UQ("sdai",{skipfail:1,sq:F,acpn:this.Z}),F=J+this.Kc(),M=0;M<I.length;M++)if(q=I[M],b=F,F=b+u[M],q=this.T.get(q))b-=w[M],q.l7=q.l7!=null?Math.min(q.l7,b):b;if(I.length&&u.length)for(M= (J+this.Kc())*1E3,J=0;J<I.length;J++)if(b=I[J],q=u[J]*1E3,b!==this.playback.getVideoData().clientPlaybackNonce){this.oI.has(b)||(this.playback.UQ("sdai",{adCpnFromEmsg:1}),this.oI.add(b));v=0;J<w.length&&(v=w[J]*1E3);if(F=this.U.get(b))F.start=M-v,F.end=M+q,this.playback.nJ();else for(F=this.B$(M-v,M+q,b),this.U.set(b,F),this.playback.UQ("sdai",{newAdCR:1,cpn:b,startTime:F.start,endTime:F.end}),this.playback.addCueRange(F),M=this.playback.oG("serverstitchedcuerange",36E5),M=g.N(M),b=M.next();!b.done;b= M.next())this.U.delete(b.value.getId());M=F.end}}}; g.A.g_=function(F){var J=F||this.GF,b=this.T.get(J);if(b){F=b.videoData;var I,u;J=b.l7||((u=(I=this.U.get(J))==null?void 0:I.start)!=null?u:0)/1E3;I=this.playback.getCurrentTime()-J;F.KW=I>0?I:0}else this.O0().videoData.KW=this.playback.getCurrentTime()};g.z(Ln4,g.R);g.A=Ln4.prototype; g.A.Cn=function(F,J){J=J===void 0?"":J;if(this.timeline.T===J)return!0;var b=this.timeline.C,I=b==null?void 0:b.getVideoData();if(!b||!I)return this.api.UQ("ssap",{htsm:b?0:1}),!1;if(this.api.S("html5_ssap_clear_timeline_before_update")){var u=this.timeline,w;(w=u.C)==null||jC7(w);u.U.clear()}u=hd(b);var M=!1;w=[];var q=new Map;b=[];var v=[],a=0,e=0,K=0,p=[];F=g.N(F);for(var m=F.next();!m.done;m=F.next())a:{var y=void 0,f=void 0,d=m.value,G=d.clipId;if(G){if(d.Xn){K=d.Xn.E9||0;m=d.Xn.lZ||1;var P= Number(((d.Xn.P3||0)/(d.Xn.Rd||1)*1E3).toFixed(0));K=m=P+Number((K/m*1E3).toFixed(0))}else m=P=K,this.g5.has(G)||this.JD.add(G);var r=(f=q.get(G))!=null?f:0,Q=this.timeline.T;f=!1;if(Q&&this.api.S("html5_ssap_clear_timeline_before_update")){if(Q=this.iF.get(G))Q.start=P,Q.end=m,f=!0}else{if(Q){var D=G;Q=P;var t=m,n=r,uk=bm(this.timeline,D);if(uk!=null&&uk.length){n<uk.length&&(uk[n].V2=Q,uk[n].T=t);if(D=this.iF.get(D))D.start=Q,D.end=t;Q=!0}else Q=!1}if(Q){q.set(G,r+1);M=!0;break a}}p.push(G);!f&& d.Xn&&(p=this.B$(P,m,p.join(",")),this.iF.set(G,p),b.push(p),p=[]);if(((y=d.Xn)==null?void 0:y.JH)===I.videoId){f=y=void 0;d=G;G=I;d!==G.clientPlaybackNonce&&this.api.UQ("ssap",{cnm:1,cid:d,cpn:G.clientPlaybackNonce});if(this.api.S("html5_ssap_clear_timeline_before_update"))G.xo=P,d=U3(this.timeline,1,P,m-P,G),w.push(d),P=cy(this.timeline,P,m,[d]),M=M||P;else if(Q=[],G&&(G.xo=P,Q=(f=bm(this.timeline,d))!=null?f:[]),!this.timeline.T&&Q.length&&r===0){M=Q[0];M.V2=P;M.T=m;G=(y=this.timeline.C)==null? void 0:y.C;if((y=G==null?void 0:G.get(0))&&G)for(f=0;f<y.length;f++)if(Q=y[f],Q.Ez()!==Q.jo()){Q.V2=P;Q.Z=m;y.splice(f,1);G.has(P)?G.get(P).push(Q):G.set(P,[Q]);break}w.push(M);q.set(d,r+1);M=!0}else d=U3(this.timeline,1,P,m-P,G),w.push(d),P=cy(this.timeline,P,m,[d]),M=M||P;v.length&&(v=Frv(this,a||0,e,v),M=M||v);e=a=m;v=[]}else r=void 0,y=this.xZ.get(G),f=y!=null?y:new g.RH(this.api.J(),{cpn:G}),f.aB=!0,this.JD.has(G)&&this.xZ.set(G,f),a=Math.min(P,a),e=Math.max(m,e),this.api.UQ("ssap",{e:P,d:m- P,c:G,p:y?1:0}),f.xo=P,m=U3(this.timeline,2,P,m-P,f,(r=d.jI)==null?void 0:r.Gg),v.push(m)}else this.api.UQ("ssap",{cm:1})}v.length&&(I=Frv(this,a||0,e,v),M=M||I);u&&w.length&&(dTk(this.timeline,u,w),this.api.S("html5_ssap_clear_timeline_before_update")&&(I=w[w.length-1].jo(),(u=this.timeline.C)!=null&&(u.T=I)));b.length&&this.playback.dO(b);if(M){this.timeline.T=J;I=this.playback.Y4();J=[];I=g.N(I);for(b=I.next();!b.done;b=I.next()){b=b.value;if(b.T){if(this.api.S("html5_ssap_fix_ad_completion_cue_range")&& b.start===0x7ffffffffffff)continue;u=V5(this,b.T);if(u===b.ac)continue;b.start=b.start-b.ac+u;b.end=b.end-b.ac+u;b.ac=u;J.push(b)}this.api.S("html5_ssap_fix_cue_range_updates")||this.playback.Qs(J)}this.api.S("html5_ssap_fix_cue_range_updates")&&this.playback.Qs(J);this.api.UQ("ssap",{tu:iz(this)});J=XN(this.api.TF());this.api.UQ("ssap",{am:J?1:0})}else this.api.UQ("ssap",{tnu:1});return!0}; g.A.addPlayerResponseForAssociation=function(F){var J=new g.RH(this.api.J(),F.playerVars);J.playerResponseCpn?J.clientPlaybackNonce=J.playerResponseCpn:this.api.UQ("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});J.aB=!0;if(F=F.As)J.As=F,J.clientPlaybackNonce=F.cpn;F=J.clientPlaybackNonce;this.api.UQ("ssap",{aprfa:F+"_"+J.videoId});if(F){this.xZ.set(F,J);var b=bm(this.timeline,F),I=!1;if(b==null?0:b.length){b=g.N(b);for(var u=b.next();!u.done;u=b.next())u=u.value,J.xo=u.Ez(),u.gy(J), u.U&&(I=!0)}else I=!J.videoId;if(!I){if(!LyJ(this.playback.wD.zF(J.videoId))){var w;this.api.UQ("ssap",{nlc:F,nlcc:(w=this.timeline.C)==null?void 0:hd(w)})}this.playback.wD.Db().g2(F,J,2)}}}; g.A.ID=function(){this.UF=!0;this.api.S("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.GF,B0(this),5)}; g.A.hh=function(F){if(g.e1(F,128)){var J;F=(J=F.state.e6)==null?void 0:J.errorCode;this.finishSegmentByCpn(this.GF,B0(this),7,F)}}; g.A.finishSegmentByCpn=function(F,J,b,I){if(this.GF===J)return[];this.UF&&(b=5,this.UF=!1);this.api.UQ("ssap",{fsbc:F+";"+J,fsbcr:b,fsbct:this.api.getCurrentTime().toFixed(),fsbce:I!=null?I:""});if(this.api.S("html5_ssap_timeline_handle_error_and_abandon")&&(b===5||b===7))return wbo(this,F,J,b),[];this.al=J;var u=!1;if(this.JD.has(F)&&(u=txz(this,b),!u))return[F];var w=bm(this.timeline,J);if(w){w.sort(function(v,a){return v.Ez()-a.Ez()}); var M=g.N(w);for(w=M.next();!w.done;w=M.next()){w=w.value;var q=this.playback.getCurrentTime()*1E3;if(w.Ez()>=q){this.zp.set(F,b);IKC(this,F,J);this.Fm.set(F,(0,g.jR)());if(b=this.iF.get(J))for(b=b.getId().split(","),b=g.N(b),M=b.next();!M.done;M=b.next())M=M.value,M!==J&&this.JD.has(M)&&(this.JD.delete(M),this.g5.add(M));this.g_();J=w.Ez()/1E3;w=void 0;b=(w=g.eB(this.api.J().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?w:0;this.api.S("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(J+ b/1E3,{g$:!0}):this.playback.seekTo(J+b/1E3);this.OA?(this.api.UQ("ssap",{gpfreload:this.GF}),HZ7(this)||(this.OA=!1),this.playback.sV(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"))):I&&this.playback.sV(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"));u&&this.api.playVideo(1,this.api.S("html5_ssap_keep_media_on_finish_segment"));return[F]}}}return[]}; g.A.Lt=function(){var F=this.timeline.C;if(!F)return 0;var J=F.jo();F=g.N(F.C.values());for(var b=F.next();!b.done;b=F.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())I=I.value,I.jo()>J&&(J=I.jo())}return J/1E3}; g.A.Ho=function(){var F=this.playback.getCurrentTime()*1E3;var J=Ala(this,F);if(!J){var b=bm(this.timeline,this.GF);if(b){b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,I.Ez()>F&&(J=I)}}return J&&J.getType()===1?J.Ez()/1E3:0}; g.A.getVideoData=function(F){if(F===2&&!this.zc()){if(this.Ny&&this.xZ.has(this.Ny))return this.xZ.get(this.Ny);this.api.UQ("ssap",{lpanf:""+B0(this)});return null}return aKz(this)}; g.A.zc=function(){var F=bm(this.timeline,this.GF);return(F==null?0:F.length)?F[0].getType()===2:!1}; g.A.bA=function(){var F=bm(this.timeline,this.GF);return(F==null?0:F.length)?F[0].U:!1}; g.A.seekTo=function(F,J){J=J===void 0?{}:J;var b=qA3(this,this.playback.getCurrentTime());this.playback.seekTo(F+b/1E3,J)}; g.A.B$=function(F,J,b){return new g.b6(F,J,{id:b,namespace:"ssap",priority:9})}; g.A.onCueRangeEnter=function(F){if(!this.dS.has(F.getId())){this.api.UQ("ssap",{oce:1,cpn:F.getId(),st:F.start,et:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});for(var J=F.getId().split(","),b=0;b<J.length&&this.al&&J[b]!==this.al;){var I=J[b];this.JD.has(I)&&(this.JD.delete(I),this.g5.add(I));b++}if(J.length>b+1)for(I=b+1;I<J.length;I++)this.A7.push(J[I]);J=J[b];this.JD.has(J)&&eI3(this,J);this.g5.has(J)||urz(this,J);J=g.N(this.iF.values());for(b= J.next();!b.done;b=J.next())b=b.value,b.start<=F.start&&!this.dS.has(F.getId())&&this.dS.add(b.getId())}}; g.A.Jp=function(){return this.x_}; g.A.h4=function(){return this.GF}; g.A.handleError=function(F,J){J=J===void 0?0:J;if(F!=="fmt.decode"&&F!=="fmt.unplayable"||!this.zc()||this.XP===this.GF)return!1;this.XP=this.GF;if(this.api.S("html5_enable_ssap_gapful_switch"))this.OA=!0,this.api.UQ("ssap",{gpfonerr:F}),this.playback.sV();else{this.playback.UQ("ssap",{skiperr:F,acpn:this.GF});var b=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.GF,b,J===1||J===2?7:6,F)}return!0}; g.A.g_=function(F){var J=F||this.GF;if(F=this.xZ.get(J)||this.playback.getVideoData())J=this.playback.getCurrentTime()-V5(this,J)/1E3,F.KW=J>0?J:0}; g.A.kUz=function(F){var J=this.xZ.get(this.GF);J&&this.playback.Y1(F-J.xo/1E3,J.lengthSeconds,this.GF)}; g.A.X_=function(){this.api.J().hJ()&&this.api.UQ("ssap",{di:""+this.GF,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.xZ.clear();this.JD.clear();this.dS.clear();this.zp.clear();this.Fm.clear();this.g5.clear();this.A7=[];ZZY(this);this.al="";g.Ve(this.events);g.R.prototype.X_.call(this)};g.z(gtz,g.R);g.A=gtz.prototype;g.A.onCueRangeEnter=function(F){if(this.C===this.app.F_()){var J=this.D.get(F);J?lKY(this,J.target,J.Pu,F):this.je("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:F.toString()})}else if(J=this.U.find(function(u){return u.vn.Os===F})){var b=J.vn,I=b.target; b=b.Pu;I?lKY(this,I,b,F):NnJ(this,J.Xd,b,F)}}; g.A.onQueuedVideoLoaded=function(){var F=this.V;az(this);if(F){if(!vh(this,F)){var J=this.app.F_();this.je("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:J==null?void 0:J.getVideoData().clientPlaybackNonce,ccpn:""+F.playerVars.cpn})}this.app.F_().addCueRange(F.vn.Os)}}; g.A.seekTo=function(F,J,b,I){F=F===void 0?0:F;J=J===void 0?{}:J;I=I===void 0?null:I;if(b===void 0?0:b)pbv(this,F,J);else{b=this.app.F_()||null;var u=b===this.Z?this.W:null;ee(this,!1);this.Tj=F;this.N=J;I!=null&&this.Y.start(I);b&&(this.W=u||b.getPlayerState(),b.MG(),this.Z=b)}}; g.A.hh=function(F){g.e1(F,128)&&j54(this)}; g.A.isManifestless=function(){return qb(this.C.getVideoData())}; g.A.X_=function(){ee(this,!1);VFo(this);g.R.prototype.X_.call(this)}; g.A.je=function(F,J){this.C.je(new E5(F,J))}; var m3m=0;var PZ7="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.z(gh,g.R);g.A=gh.prototype;g.A.get=function(F){Ke(this);var J=this.data.find(function(b){return b.key===F}); return J?J.value:null}; g.A.set=function(F,J,b){this.remove(F,!0);Ke(this);F={key:F,value:J,expire:Infinity};b&&isFinite(b)&&(b*=1E3,F.expire=(0,g.jR)()+b);for(this.data.push(F);this.data.length>this.T;)(b=this.data.shift())&&mW(this,b,!0);pe(this)}; g.A.remove=function(F,J){J=J===void 0?!1:J;var b=this.data.find(function(I){return I.key===F}); b&&(mW(this,b,J),g.Lz(this.data,function(I){return I.key===F}),pe(this))}; g.A.removeAll=function(F){if(F=F===void 0?!1:F)for(var J=g.N(this.data),b=J.next();!b.done;b=J.next())mW(this,b.value,F);this.data=[];pe(this)}; g.A.X_=function(){var F=this;g.R.prototype.X_.call(this);this.data.forEach(function(J){mW(F,J,!0)}); this.data=[]};g.z(yd,g.R);yd.prototype.bU=function(F){if(F)return this.U.get(F)}; yd.prototype.X_=function(){this.C.removeAll();this.U.removeAll();g.R.prototype.X_.call(this)};g.wo5=eP(function(){var F=window.AudioContext||window.webkitAudioContext;try{return new F}catch(J){return J.name}});g.z(YAa,g.U);g.A=YAa.prototype;g.A.EW=function(){g.wD(this.element,g.Ba.apply(0,arguments))}; g.A.rg=function(){this.UI&&(this.UI.removeEventListener("focus",this.Ds),g.ID(this.UI),this.UI=null)}; g.A.Uy=function(){this.iR();var F=this.app.J();F.OM||this.EW("tag-pool-enabled");F.W&&this.EW(g.QA.HOUSE_BRAND);F.playerStyle==="gvn"&&(this.EW("ytp-gvn"),this.element.style.backgroundColor="transparent");F.T1&&(this.JU=g.b0("yt-dom-content-change",this.resize,this));this.B(window,"orientationchange",this.resize,this);this.B(window,"resize",this.resize,this)}; g.A.GY=function(F){g.Pu(this.app.J());this.Sh=!F;iK(this)}; g.A.resize=function(){if(this.UI){var F=this.lk();if(!F.isEmpty()){var J=!g.mD(F,this.n_.getSize()),b=RIv(this);J&&(this.n_.width=F.width,this.n_.height=F.height);F=this.app.J();(b||J||F.T1)&&this.app.SE.publish("resize",this.getPlayerSize())}}}; g.A.xR=function(F,J){this.updateVideoData(J)}; g.A.updateVideoData=function(F){if(this.UI){var J=this.app.J();hY&&(this.UI.setAttribute("x-webkit-airplay","allow"),F.title?this.UI.setAttribute("title",F.title):this.UI.removeAttribute("title"));this.UI.setAttribute("controlslist","nodownload");J.Vc&&F.videoId&&(this.UI.poster=F.lr("default.jpg"))}J=g.Nb(F,"yt:bgcolor");this.N1.style.backgroundColor=J?J:"";this.hq=wm(g.Nb(F,"yt:stretch"));this.zq=wm(g.Nb(F,"yt:crop"),!0);g.qr(this.element,"ytp-dni",F.T0);this.resize()}; g.A.setGlobalCrop=function(F){this.DF=wm(F,!0);this.resize()}; g.A.setCenterCrop=function(F){this.ij=F;this.resize()}; g.A.wT=function(){}; g.A.getPlayerSize=function(){var F=this.app.J(),J=this.app.SE.isFullscreen(),b=F.externalFullscreen&&g.dN(F);if(J&&k6()&&!b)return new g.gl(window.outerWidth,window.outerHeight);b=!isNaN(this.gG.width)&&!isNaN(this.gG.height);var I=this.app.J().S("kevlar_player_enable_squeezeback_fullscreen_sizing");if(J&&!b&&I)return new g.gl(this.element.clientWidth,this.element.clientHeight);if(J||F.Sl){if(window.matchMedia){F="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Kx&&this.Kx.media=== F||(this.Kx=window.matchMedia(F));var u=this.Kx&&this.Kx.matches}if(u)return new g.gl(window.innerWidth,window.innerHeight)}else if(b)return this.gG.clone();return new g.gl(this.element.clientWidth,this.element.clientHeight)}; g.A.lk=function(){var F=this.app.J().S("enable_desktop_player_underlay"),J=this.getPlayerSize(),b=g.eB(this.app.J().experiments,"player_underlay_min_player_width");return F&&this.DE&&J.width>b?(F=g.eB(this.app.J().experiments,"player_underlay_video_width_fraction"),new g.gl(Math.min(J.height*this.getVideoAspectRatio(),J.width*F),Math.min(J.height,J.width*F/this.getVideoAspectRatio()))):J}; g.A.getVideoAspectRatio=function(){return isNaN(this.hq)?CZ7(this):this.hq}; g.A.getVideoContentRect=function(F){var J=this.lk();F=Xb7(this,J,this.getVideoAspectRatio(),F);return new g.uu((J.width-F.width)/2,(J.height-F.height)/2,F.width,F.height)}; g.A.PQ=function(F){this.DE=F;this.resize()}; g.A.cz=function(){return this.HG}; g.A.onMutedAutoplayChange=function(){iK(this)}; g.A.setInternalSize=function(F){g.mD(this.gG,F)||(this.gG=F,this.resize())}; g.A.X_=function(){this.JU&&g.Iu(this.JU);this.rg();g.U.prototype.X_.call(this)};g.A=D3a.prototype;g.A.click=function(F,J){this.elements.has(F);this.C.has(F);var b=g.W8();b&&F.visualElement&&g.Jr(b,F.visualElement,J)}; g.A.createClientVe=function(F,J,b,I){var u=this;I=I===void 0?!1:I;this.elements.has(F);this.elements.add(F);b=Wua(b);F.visualElement=b;var w=g.W8(),M=g.fO();w&&M&&(g.Nk("combine_ve_grafts")?fa(N7(),b,M):g.tE(g.oO)(void 0,w,M,b));J.addOnDisposeCallback(function(){u.elements.has(F)&&u.destroyVe(F)}); I&&this.U.add(F)}; g.A.createServerVe=function(F,J,b){var I=this;b=b===void 0?!1:b;this.elements.has(F);this.elements.add(F);J.addOnDisposeCallback(function(){I.destroyVe(F)}); b&&this.U.add(F)}; g.A.destroyVe=function(F){this.elements.has(F);this.elements.delete(F);this.T.delete(F);this.C.delete(F);this.U.delete(F)}; g.A.vy=function(F,J){this.clientPlaybackNonce!==J&&(this.clientPlaybackNonce=J,lf(N7(),F),kYz(this))}; g.A.setTrackingParams=function(F,J){this.elements.has(F);J&&(F.visualElement=g.NY(J))}; g.A.wY=function(F,J,b){this.elements.has(F);J?this.C.add(F):this.C.delete(F);var I=g.W8(),u=F.visualElement;this.U.has(F)?I&&u&&(J?g.LO(I,[u]):g.FX(I,[u])):J&&!this.T.has(F)&&(I&&u&&g.H8(I,u,void 0,b),this.T.add(F))}; g.A.hasVe=function(F){return this.elements.has(F)};g.z(g.Np,g.R);g.Np.create=function(F,J,b,I){try{var u=typeof F==="string"?F:"player"+g.n3(F),w=Gz[u];if(w){try{w.dispose()}catch(q){g.Td(q)}Gz[u]=null}var M=new g.Np(F,J,b,I);M.addOnDisposeCallback(function(){Gz[u]=null;M.sf&&M.sf()}); return Gz[u]=M}catch(q){throw g.Td(q),(q&&q instanceof Error?q:Error(String(q))).stack;}}; g.A=g.Np.prototype;g.A.o6=function(){return this.visibility}; g.A.uM=function(F){var J=this.Nf();if(F!==J){F.getVideoData().autonavState=J.getVideoData().autonavState;J.TW(this.XQ,this);var b=J.getPlaybackRate();xU(J);this.z0.uM(F);F.setPlaybackRate(b);F.Sn(this.XQ,this);ntC(this)}}; g.A.n8=function(){this.mf||(this.mf=g.IW(SV(),vXz()));return this.mf}; g.A.rg=function(F){if(this.mediaElement){this.pX&&(this.events.iX(this.pX),this.pX=null);g.Ve(this.Qt);var J=this.F_();J&&J.rg(!0,!1,F);this.template.rg();try{this.S("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.bb()}catch(b){g.rQ(b)}this.mediaElement=null}}; g.A.LA=function(F,J){if(F!==this.F_()){this.logger.debug(function(){return"start set presenting player, type "+F.getPlayerType()+", vid "+F.getVideoData().videoId}); var b=null,I=this.F_();I&&(b=I.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),CV(this.HV,3),Du(this,"cuerangesremoved",I.Y4()),this.s2&&!F.isGapless()&&I.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),I=F.wZ()&&I.wZ(),this.qW.AG("iv_s"),wHG(this,I));F.getPlayerType()===1&&this.uM(F);uMa(this,F);this.z0.LA(F);this.mediaElement&&F.setMediaElement(this.mediaElement);F.Sn(this.Af,this);F.rC()?YIa(this,"setPresenting",!1):(this.xR("newdata",F,F.getVideoData()), b&&!g.MO(b,F.getPlayerState())&&this.jU(new g.vL(F.getPlayerState(),b)),J=J&&this.S("html5_player_preload_ad_fix")&&F.getPlayerType()===1,F.JQ()&&!J&&this.xR("dataloaded",F,F.getVideoData()),(J=(J=F.getVideoData().U)&&J.video)&&this.SE.SZ("onPlaybackQualityChange",J.quality),Du(this,"cuerangesadded",F.Y4()),J=F.getPlayerState(),g.x(J,2)?Ilz(this):g.x(J,8)?F.playVideo():F.DR()&&F.pauseVideo(),J=this.Nf(),F.getPlayerType()===2&&(F.getVideoData().AQ=J.getVideoData().clientPlaybackNonce),F.getPlayerType()!== 2||this.Uo()||(b=F.getVideoData(),J.Bl(b.clientPlaybackNonce,b.If||"",b.breakType||0,b.LF,b.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.A.Hk=function(){if(this.Nf()!==this.F_()){var F=this.F_();this.logger.debug(function(){return"release presenting player, type "+(F==null?void 0:F.getPlayerType())+", vid "+(F==null?void 0:F.getVideoData().videoId)}); this.LA(this.Nf())}}; g.A.F4=function(F){if(F)if(F===1)F=this.Nf();else if(this.getVideoData().enableServerStitchedDai&&F===2)F=this.getVideoData().enablePreroll?this.z0.F4(2)||this.F_():this.F_();else if(g.oH(this.getVideoData())&&F===2){if(F=this.S("html5_ssap_return_content_player_during_preroll"))if(F=this.II)F=this.II,F=F.GF===""?!0:F.zc();F=F?this.F_():this.z0.F4(2)||this.F_()}else F=this.z0.F4(F)||null;else F=this.F_();return F}; g.A.Nf=function(){return this.z0.Nf()}; g.A.F_=function(){return this.z0.F_()}; g.A.v$=bk(44);g.A.jfQ=function(){je(this)||(this.logger.debug("application playback ready"),this.uJ(5))}; g.A.IyQ=function(F){if(!je(this)){this.logger.debug("playback ready");Tx3(this);var J=F.getPlayerState();F.DR()?this.pauseVideo():J.isOrWillBePlaying()&&this.playVideo()}}; g.A.canPlayType=function(F){return P4(F)}; g.A.J=function(){return this.rD}; g.A.getVideoData=function(){return this.F_().getVideoData()}; g.A.jP=bk(18);g.A.Yl=function(){return this.Nf().getVideoData()}; g.A.getVideoLoadedFraction=function(F){F=this.F4(F);return F?g.UW(F.getVideoData())?1:(F=F.Qa())?F.jN():0:0}; g.A.mG=function(){return this.template}; g.A.TF=function(){return this.HV}; g.A.Iu=function(){return this.qW}; g.A.Pp=function(F){var J=this.F4(1);J&&J.vk(F)}; g.A.w$=function(){var F=this.HV.w$();this.SE.publish("videoStatsPingCreated",F);return F}; g.A.getVolume=function(){return Math.round(this.SE.getVolume())}; g.A.isMuted=function(){return this.SE.isMuted()}; g.A.Pz=function(){if(this.Nf()===this.F_()&&this.AJ)return this.AJ.postId}; g.A.IeQ=function(){var F=this;this.S("use_rta_for_player")||(g.jB(this.rD)?g.LH(this.rD,g.ks(this.getVideoData())).then(function(J){sf(SV(),J);Wz_(F.getVideoData(),F.rD,F.n8())}):Wz_(this.getVideoData(),this.rD,this.n8()))}; g.A.Bp=function(F){this.SE.publish("poTokenVideoBindingChange",F)}; g.A.JM=function(F){this.SE.publish("d6de4videobindingchange",F)}; g.A.Am=function(){this.kC&&this.kC.Am()}; g.A.gm=function(F){this.kC=F}; g.A.Q_=function(F){if(F===1){this.qW.tick("vr");var J=this.F_();J.CV();orY(this.qW,J.getVideoData(),Bxz(this));T1a(this.HV)}J=this.rD;(tP(J)&&J.V||g.TB(J))&&(this.Uo()||this.SE.SZ("onAdStateChange",F))}; g.A.setLoopVideo=function(F){var J=this.F_();J===this.Nf()&&J.iS()!==F&&(J.setLoop(F),this.SE.jE("onLoopChange",F))}; g.A.getLoopVideo=function(){return this.F_().iS()}; g.A.setLoopRange=function(F){var J=!1;!!this.AJ!==!!F?J=!0:this.AJ&&F&&(J=this.AJ.startTimeMs!==F.startTimeMs||this.AJ.endTimeMs!==F.endTimeMs||this.AJ.postId!==F.postId||this.AJ.type!==F.type);if(J){(J=this.F_())&&LC(J.getVideoData())&&J.UQ("slr",{et:(F==null?void 0:F.endTimeMs)||-1});J=this.Nf();J.Yo("applooprange");if(F){var b=new g.b6(F.startTimeMs,F.endTimeMs,{id:"looprange",namespace:"applooprange"});J.addCueRange(b)}else{this.Yl().clipConfig=void 0;var I;((b=this.AJ)==null?void 0:b.type)!== "repeatChapter"||isNaN(Number((I=this.AJ)==null?void 0:I.loopCount))||(b={loopCount:String(this.AJ.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.AY("repeatChapterLoopEvent",b))}this.AJ=F;this.SE.jE("onLoopRangeChange",F||void 0);this.Nf()===this.F_()&&(this.eL(),J.wD.B5())}}; g.A.getLoopRange=function(){return this.AJ}; g.A.eL=function(){var F="",J=this.Nf();this.AJ?J!==this.F_()?F="pnea":pHY(this,J.getCurrentTime())&&(this.AJ.loopCount=0,F="ilr"):F="nlr";var b=this.F_();if(b&&LC(b.getVideoData()))if(this.S("html5_gapless_log_loop_range_info")){var I,u;b.UQ("slrre",{rej:F,ct:J.getCurrentTime(),lst:(I=this.AJ)==null?void 0:I.startTimeMs,let:(u=this.AJ)==null?void 0:u.endTimeMs})}else b.UQ("slrre",{});F||ihG(this)}; g.A.setPlaybackRate=function(F,J){if(!isNaN(F)){F=Lra(this,F);var b=this.Nf();b.getPlaybackRate()!==F&&(b.setPlaybackRate(F),J&&!this.rD.Z&&g.rm("yt-player-playback-rate",F),this.SE.SZ("onPlaybackRateChange",F))}}; g.A.getCurrentTime=function(F,J,b){J=J===void 0?!0:J;if(this.getPresentingPlayerType()===3)return dO(this.HV).getCurrentTime();var I=F===2&&this.getVideoData().enableServerStitchedDai,u=g.oH(this.getVideoData());F=I||u?this.F_():this.F4(F);if(!F)return 0;if(u&&this.II)return J=this.II,F=F.getCurrentTime(),b?b=Mp(J,b):(b=qA3(J,F),b=F-b/1E3),b;if(J){if(I&&this.jF&&(b=this.jF.kQ/1E3,b!==0))return b;b=EK(this,F);return sK(this,b.getCurrentTime(),b)}I&&this.jF?(b=this.jF,F=F.getCurrentTime(),b=(b=sC7(b, F*1E3))?F-b.start/1E3:F):b=F.getCurrentTime();return b}; g.A.aG=function(){var F=this.F4();if(!F)return 0;F=EK(this,F);return sK(this,F.aG(),F)}; g.A.getDuration=function(F,J){J=J===void 0?!0:J;var b=this.getVideoData(),I=F===2&&b.enableServerStitchedDai,u=g.oH(b);var w=I||u?this.F_():this.F4(F);if(!w)return 0;if(b.hasProgressBarBoundaries()&&!I&&!u){var M,q=Number((M=b.progressBarStartPosition)==null?void 0:M.utcTimeMillis),v;b=Number((v=b.progressBarEndPosition)==null?void 0:v.utcTimeMillis);if(!isNaN(q)&&!isNaN(b))return(b-q)/1E3}if(u&&this.II)return J=vtG(this.II,this.II.h4()),F===1&&J===0?w.getDuration():J;if(J)return w=dh(this,w),sK(this, w.getDuration(),w);I&&this.jF?(F=this.jF,w=w.getCurrentTime(),w=(w=YMk(F,w*1E3))?w.durationMs/1E3:0):w=w.getDuration();return w}; g.A.Ze=function(F){var J=this.F4(F);return J?this.Uo(J)?(J=dh(this,J),J.Ze()-J.getCurrentTime()+this.getCurrentTime(F)):J.Ze():0}; g.A.Ug=function(){return this.wf}; g.A.addPlayerResponseForAssociation=function(F){this.II&&this.II.addPlayerResponseForAssociation(F)}; g.A.finishSegmentByCpn=function(F,J,b){return this.II?this.II.finishSegmentByCpn(F,J,b):[]}; g.A.Uy=function(){this.template.Uy();var F=this.SE;F.state.element=this.template.element;var J=F.state.element,b;for(b in F.state.C)F.state.C.hasOwnProperty(b)&&(J[b]=F.state.C[b]);(F=QEm(this.template.element))&&this.events.B(this.template,F,this.onFullscreenChange);this.events.B(window,"resize",this.Eof)}; g.A.getDebugText=function(F){var J=this.Nf().Cy(F),b=this.F_(),I=this.Nf();if(b&&b!==I){b=b.Cy(F);I=g.N(Object.keys(b));for(var u=I.next();!u.done;u=I.next())u=u.value,J["ad"+u]=b[u];if(F){b=J;I={};if(u=Rf(document,"movie_player"))I.bounds=u.getBoundingClientRect(),I["class"]=u.className;u={};var w=g.c1("video-ads");w?(XHm(w,u),u.html=w.outerHTML):u.missing=1;w={};var M=g.c1("videoAdUiSkipContainer"),q=g.c1("ytp-ad-skip-button-container"),v=g.c1("ytp-skip-ad-button"),a=M||q||v;a?(XHm(a,w),w.ima=M? 1:0,w.bulleit=q?1:0,w.component=v?1:0):w.missing=1;I=JSON.stringify({player:I,videoAds:u,skipButton:w});b.ad_skipBtnDbgInfo=I}}F&&this.mediaElement&&(J["0sz"]=""+(+yj(this.mediaElement.getSize())===0),J.op=this.mediaElement.p5("opacity"),b=this.mediaElement.IG().y+this.mediaElement.getSize().height,J.yof=""+(+b<=0),J.dis=this.mediaElement.p5("display"));F&&((F=(0,g.rr)())&&(J.gpu=F),(F=this.rD.playerStyle)&&(J.ps=F),this.rD.zj&&(J.webview=1));J.debug_playbackQuality=this.SE.getPlaybackQuality(1); J.debug_date=(new Date).toString();J.origin=window.origin;J.timestamp=Date.now();delete J.uga;delete J.q;return JSON.stringify(J,null,2)}; g.A.getFeedbackProductData=function(){var F={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.J().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250218_01_RC00"},J=this.getPlayerStateObject().e6;J&&(F.player_error_code=J.errorCode,F.player_error_details=JSON.stringify(J.errorDetail));return F}; g.A.getPresentingPlayerType=function(F){if(this.appState===1)return 1;if(je(this))return 3;var J;if(F&&((J=this.jF)==null?0:J.zc(this.getCurrentTime())))return 2;var b;return g.oH(this.getVideoData())&&((b=this.II)==null?0:b.zc())?2:this.F_().getPlayerType()}; g.A.bA=function(){return g.oH(this.getVideoData())&&this.II?this.II.bA():!1}; g.A.getPlayerStateObject=function(F){return this.getPresentingPlayerType()===3?dO(this.HV).r0:this.F4(F).getPlayerState()}; g.A.getAppState=function(){return this.appState}; g.A.X8=function(F){switch(F.type){case "loadedmetadata":this.Co.start();F=g.N(this.UA);for(var J=F.next();!J.done;J=F.next())J=J.value,VG7(this,J.id,J.I4G,J.NqI,void 0,!1);this.UA=[];break;case "loadstart":this.qW.AG("gv");break;case "progress":case "timeupdate":qt(F.target.Z4())>=2&&this.qW.AG("l2s");break;case "playing":g.x2&&this.Co.start();if(g.jB(this.rD))F=!1;else{var b=this.F_();J=g.GP(this.TF());F=this.mediaElement.p5("display")==="none"||yj(this.mediaElement.getSize())===0;var I=z3(this.template), u=b.getVideoData();b=g.sV(this.rD);u=Fc(u);J=!I||J||b||u||this.rD.cN;F=F&&!J}F&&(F=this.F_(),F.Mj(),this.getVideoData().T1||(this.getVideoData().T1=1,this.ER(),F.playVideo()))}}; g.A.onLoadProgress=function(F,J){this.SE.IC("onLoadProgress",J)}; g.A.N9I=function(){this.SE.publish("playbackstalledatstart")}; g.A.Yc=function(F,J){this.SE.publish("sabrCaptionsDataLoaded",F,J)}; g.A.tFR=function(F){var J;(J=this.F_())==null||J.Tr(F)}; g.A.K1E=function(F){var J;(J=this.F_())==null||J.Uu(F)}; g.A.onVideoProgress=function(F,J){F=EK(this,F.P0);J=sK(this,F.getCurrentTime(),F);this.SE.SZ("onVideoProgress",J);this.S("html5_pip_visibility_on_resize")&&dzJ(this,this.visibility.JN())&&this.stopVideo()}; g.A.onAutoplayBlocked=function(){this.SE.SZ("onAutoplayBlocked");var F,J=(F=this.F_())==null?void 0:F.getVideoData();J&&(J.F8=!0);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.dN(this.rD)&&(F={autoplayBrowserPolicy:Rx(),autoplayIntended:Do(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.AY("embedsAutoplayStatusChanged",F))}; g.A.udN=function(){this.SE.publish("progresssync")}; g.A.NYQ=function(){this.SE.IC("onPlaybackPauseAtStart")}; g.A.a7W=function(F){if(this.getPresentingPlayerType()===1){g.e1(F,1)&&!g.x(F.state,64)&&this.Yl().isLivePlayback&&this.Nf().isAtLiveHead()&&this.SE.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.e1(F,2)){if(this.AJ&&this.AJ.endTimeMs>=(this.getDuration()-1)*1E3){ihG(this);return}Ilz(this)}if(g.x(F.state,128)){var J=F.state;this.cancelPlayback(5);J=J.e6;JSON.stringify({errorData:J,debugInfo:this.getDebugText(!0)});this.SE.SZ("onError",Ypm(J.errorCode));this.SE.IC("onDetailedError",{errorCode:J.errorCode, errorDetail:J.errorDetail,message:J.errorMessage,messageKey:J.Ap,cpn:J.cpn});(0,g.jR)()-this.rD.K7>6048E5&&this.SE.IC("onReloadRequired")}J={};if(F.state.isPlaying()&&!F.state.isBuffering()&&!Dj("pbresume","ad_to_video")&&Dj("_start","ad_to_video")){var b=this.getVideoData();J.clientPlaybackNonce=b.clientPlaybackNonce;b.videoId&&(J.videoId=b.videoId);g.Qk(J,"ad_to_video");XH("pbresume",void 0,"ad_to_video");T1a(this.HV)}this.SE.publish("applicationplayerstatechange",F)}}; g.A.jU=function(F){this.getPresentingPlayerType()!==3&&this.SE.publish("presentingplayerstatechange",F)}; g.A.hh=function(F){Wh(this,qO(F.state));g.x(F.state,1024)&&this.SE.isMutedByMutedAutoplay()&&(rh(this,{muted:!1,volume:this.wg.volume},!1),Se(this,!1))}; g.A.wz=function(F,J,b){F==="newdata"&&ntC(this);this.SE.publish("applicationvideodatachange",F,b)}; g.A.dC=function(F,J){this.SE.IC("onPlaybackAudioChange",this.SE.getAudioTrack().j3.name);this.SE.publish("internalaudioformatchange",this.SE.getAudioTrack().j3.id,J)}; g.A.K_=function(F){var J=this.F_().getVideoData();F===J&&this.SE.SZ("onPlaybackQualityChange",F.U.video.quality)}; g.A.yW=function(){var F=this.z0.F4(2);if(F){var J=F.getVideoData();F=F.zA();var b;(b=this.F_())==null||b.UQ("ssdai",{cleanaply:1,acpn:J==null?void 0:J.clientPlaybackNonce,avid:J.videoId,ccpn:F,sccpn:this.Yl().clientPlaybackNonce===F?1:0,isDai:this.Yl().enableServerStitchedDai?1:0});delete this.z0.U[2]}}; g.A.onVideoDataChange=function(F,J,b){this.xR(F,J.P0,b)}; g.A.xR=function(F,J,b){this.logger.debug(function(){return"on video data change "+F+", player type "+J.getPlayerType()+", vid "+b.videoId}); this.rD.hJ()&&J.UQ("vdc",{type:F,vid:b.videoId||"",cpn:b.clientPlaybackNonce||""});J===this.Nf()&&(this.rD.pF=b.oauthToken);if(J===this.Nf()){this.getVideoData().enableServerStitchedDai&&!this.jF?(this.Nf().UQ("sdai",{initSstm:1}),this.jF=this.S("html5_enable_ssdai_transition_with_only_enter_cuerange")?new nx4(this.SE,this.rD,this.Nf(),this):new g.n9(this.SE,this.rD,this.Nf(),this)):!this.getVideoData().enableServerStitchedDai&&this.jF&&(this.jF.dispose(),this.jF=null);var I,u;!g.oH(this.getVideoData())|| F!=="newdata"&&F!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((I=this.wf.C)==null?void 0:(u=I.getVideoData())==null?void 0:u.clientPlaybackNonce)?!g.oH(this.getVideoData())&&this.II&&(this.II.dispose(),this.II=null):(Wnm(this.wf),this.S("html5_ssap_cleanup_ad_player_on_new_data")&&this.yW(),I=U3(this.wf,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.wf.enqueue(I,!0),cy(this.wf,0,this.getDuration(1)*1E3,[I]),dTk(this.wf,this.getVideoData().clientPlaybackNonce,[I]),this.II&&(this.II.dispose(), this.II=null),this.II=new Ln4(this.SE,this.wf,this.Nf()),this.z0.Nf().pQ(this.II))}if(F==="newdata")this.logger.debug("new video data, destroy modules"),CV(this.HV,2),this.SE.publish("videoplayerreset",J);else{if(!this.mediaElement)return;F==="dataloaded"&&(this.Nf()===this.F_()?($2(b.PN,b.Vr),vh_(this)):AOv(this));J.getPlayerType()===1&&(this.rD.dD&&Cla(this),this.getVideoData().isLivePlayback&&!this.rD.SD&&this.Wh("html5.unsupportedlive",2,"DEVICE_FALLBACK"),b.isLoaded()&&((hSa(b)||this.getVideoData().mY)&& this.SE.publish("legacyadtrackingpingchange",this.getVideoData()),b.hasProgressBarBoundaries()&&Nxk(this)));this.SE.publish("videodatachange",F,b,J.getPlayerType())}this.SE.SZ("onVideoDataChange",{type:F,playertype:J.getPlayerType()});this.eL();(I=b.Yn)?this.sT.vy(I,b.clientPlaybackNonce):kYz(this.sT)}; g.A.Kn=function(){Vd(this,null);this.SE.IC("onPlaylistUpdate")}; g.A.s8D=function(F){delete this.tB[F.getId()];this.Nf().removeCueRange(F);a:{F=this.getVideoData();var J,b,I,u,w,M,q,v,a,e,K=((J=F.dD)==null?void 0:(b=J.contents)==null?void 0:(I=b.singleColumnWatchNextResults)==null?void 0:(u=I.autoplay)==null?void 0:(w=u.autoplay)==null?void 0:w.sets)||((M=F.dD)==null?void 0:(q=M.contents)==null?void 0:(v=q.twoColumnWatchNextResults)==null?void 0:(a=v.autoplay)==null?void 0:(e=a.autoplay)==null?void 0:e.sets);if(K)for(J=g.N(K),b=J.next();!b.done;b=J.next())if(b= b.value,u=I=void 0,b=b.autoplayVideo||((I=b.autoplayVideoRenderer)==null?void 0:(u=I.autoplayEndpointRenderer)==null?void 0:u.endpoint),I=g.O(b,g.x$),w=u=void 0,b!=null&&((u=I)==null?void 0:u.videoId)===F.videoId&&((w=I)==null?0:w.continuePlayback)){F=b;break a}F=null}(J=g.O(F,g.x$))&&this.SE.jE("onPlayVideo",{sessionData:{autonav:"1",itct:F==null?void 0:F.clickTrackingParams},videoId:J.videoId,watchEndpoint:J})}; g.A.uJ=function(F){var J=this;F!==this.appState&&(this.logger.debug(function(){return"app state change "+J.appState+" -> "+F}),F===2&&this.getPresentingPlayerType()===1&&(Wh(this,-1),Wh(this,5)),this.appState=F,this.SE.publish("appstatechange",F))}; g.A.Wh=function(F,J,b,I,u){this.Nf().Je(F,J,b,I,u)}; g.A.Nb=function(F,J){this.Nf().handleError(new E5(F,J))}; g.A.isAtLiveHead=function(F,J){J=J===void 0?!1:J;var b=this.F4(F);if(!b)return!1;F=dh(this,b);b=EK(this,b);return F!==b?F.isAtLiveHead(sK(this,b.getCurrentTime(),b),!0):F.isAtLiveHead(void 0,J)}; g.A.mJ=function(){var F=this.F4();return F?dh(this,F).mJ():0}; g.A.seekTo=function(F,J,b,I,u){J=J!==!1;if(I=this.F4(I))this.appState===2&&Bh(this),this.Uo(I)?YN(this)?this.jF.seekTo(F,{seekSource:u},J,b):this.xl.seekTo(F,{seekSource:u},J,b):g.oH(this.getVideoData())&&this.II?this.II.seekTo(F,{o$:!J,ZK:b,Ky:"application",seekSource:u}):I.seekTo(F,{o$:!J,ZK:b,Ky:"application",seekSource:u})}; g.A.seekBy=function(F,J,b,I){this.seekTo(this.getCurrentTime()+F,J,b,I)}; g.A.hI=function(){this.SE.SZ("SEEK_COMPLETE")}; g.A.Ir=function(){this.SE.jE("onAbnormalityDetected")}; g.A.onSnackbarMessage=function(F){this.SE.jE("onSnackbarMessage",F)}; g.A.ooR=function(F,J){F=F.P0;var b=F.getVideoData();if(this.appState===1||this.appState===2)b.startSeconds=J;this.appState===2?g.x(F.getPlayerState(),512)||Bh(this):this.SE.SZ("SEEK_TO",J)}; g.A.onAirPlayActiveChange=function(){this.SE.publish("airplayactivechange");this.rD.S("html5_external_airplay_events")&&this.SE.IC("onAirPlayActiveChange",this.SE.Hh())}; g.A.onAirPlayAvailabilityChange=function(){this.SE.publish("airplayavailabilitychange");this.rD.S("html5_external_airplay_events")&&this.SE.IC("onAirPlayAvailabilityChange",this.SE.X7())}; g.A.showAirplayPicker=function(){var F;(F=this.F_())==null||F.Rv()}; g.A.TT=function(){this.SE.publish("beginseeking")}; g.A.Pv=function(){this.SE.publish("endseeking")}; g.A.getStoryboardFormat=function(F){return(F=this.F4(F))?dh(this,F).getVideoData().getStoryboardFormat():null}; g.A.Si=function(F){return(F=this.F4(F))?dh(this,F).getVideoData().Si():null}; g.A.Uo=function(F){F=F||this.F_();var J=!1;if(F){F=F.getVideoData();if(YN(this))F=F===this.jF.playback.getVideoData();else a:if(J=this.xl,F===J.C.getVideoData()&&J.U.length)F=!0;else{J=g.N(J.U);for(var b=J.next();!b.done;b=J.next())if(F.r9===b.value.r9){F=!0;break a}F=!1}J=F}return J}; g.A.AP=function(F,J,b,I,u,w,M){this.logger.debug(function(){return"Adding video to timeline id="+F.video_id+"\n lengthMs="+I+" enterTimeMs="+u}); var q="",v=YN(this),a;(a=this.F_())==null||a.UQ("appattl",{sstm:this.jF?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:v});q=v?SMo(this.jF,F,J,b,I,u,w,M):zI4(this.xl,F,b,I,u,w);this.logger.debug(function(){return"Video added to timeline id="+F.video_id+" timelinePlaybackId="+q}); return q}; g.A.UN=function(F,J,b,I,u,w,M){if(YN(this)){var q=SMo(this.jF,F,J,b,I,u,w,M);this.logger.debug(function(){return"Remaining video added to timeline id="+F.video_id+" timelinePlaybackId="+q})}return""}; g.A.Jx=function(F){var J;(J=this.jF)==null||J.Jx(F)}; g.A.pO=function(F,J){F=F===void 0?-1:F;J=J===void 0?Infinity:J;YN(this)||VFo(this.xl,F,J)}; g.A.y8=function(F,J,b){if(YN(this)){var I=this.jF,u=I.NW.get(F);u?(b===void 0&&(b=u.Xd),u.durationMs=J,u.Xd=b):I.AN("Invalid_timelinePlaybackId_"+F+"_specified")}else{I=this.xl;u=null;for(var w=g.N(I.U),M=w.next();!M.done;M=w.next())if(M=M.value,M.r9===F){u=M;break}u?(b===void 0&&(b=u.Xd),GYa(I,u,J,b)):AU(I,"InvalidTimelinePlaybackId timelinePlaybackId="+F)}}; g.A.enqueueVideoByPlayerVars=function(F,J,b,I){b=b===void 0?Infinity:b;I=I===void 0?"":I;this.Uo();F=new g.RH(this.rD,F);I&&(F.r9=I);llY(this,F,J,b)}; g.A.queueNextVideo=function(F,J,b,I,u){b=b===void 0?NaN:b;b=this.preloadVideoByPlayerVars(F,J===void 0?1:J,b,I===void 0?"":I,u===void 0?"":u);F=this.F_();b&&F&&(J=b.P0,this.S("html5_check_queue_on_data_loaded")?this.J().supportsGaplessShorts()&&F.getVideoData().Y&&(b=this.Nm,I=this.s2.V,b.Z!==J&&(b.U=F,b.Z=J,b.T=1,b.C=J.getVideoData(),b.D=I,b.C.isLoaded()?b.W():b.C.subscribe("dataloaded",b.W,b))):(J=Htz(F,J,this.s2.V),J!=null?(F.UQ("sgap",J),F.getVideoData().Y&&F.lA(!1)):(F=b.getVideoData(),J=this.Nm, J.C!==F&&(J.C=F,J.T=1,F.isLoaded()?J.V():J.C.subscribe("dataloaded",J.V,J)))))}; g.A.VY=function(F,J,b,I){var u=this;b=b===void 0?0:b;I=I===void 0?0:I;var w=this.F_();w&&dh(this,w).PA();a3m(this.s2,F,J,b,I).then(function(){u.SE.IC("onQueuedVideoLoaded")},function(){})}; g.A.W9=function(){return this.s2.W9()}; g.A.eI=function(F){return this.s2.C===F.P0}; g.A.clearQueue=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;this.logger.debug("Clearing queue");this.s2.clearQueue(F,J)}; g.A.loadVideoByPlayerVars=function(F,J,b,I,u,w){J=J===void 0?1:J;var M=this.Nf();if(J===2&&this.Yl().enableServerStitchedDai&&M&&!M.wK())return M.UQ("lvonss",{vid:(F==null?void 0:F.videoId)||"",ptype:J}),!1;var q=!1;M=new g.RH(this.rD,F);M.reloadPlaybackParams=w;g.U7(this.rD)&&!M.NJ&&WU(this.qW);var v;w=this.qW;var a=(v=M.zj)!=null?v:"";w.timerName=a;this.qW.QJ("pl_i");this.S("web_player_early_cpn")&&M.clientPlaybackNonce&&this.qW.infoGel({clientPlaybackNonce:M.clientPlaybackNonce});if(zGa(M).supportsVp9Encoding=== !1){var e;(e=this.F_())==null||e.UQ("noVp9",{})}if(this.J().supportsGaplessShorts()){v=Kn3(this.s2,M,J);if(v==null){Wh(this,-1);F=this.s2;F.app.J().S("html5_gapless_new_slr")?mz_(F.app,"gaplessshortslooprange"):F.app.setLoopRange(null);F.app.getVideoData().GS=!0;var K;(K=F.C)==null||K.YB();var p;(p=F.C)!=null&&om(p.wD.zF());b={Ky:"gapless_to_next_video",seekSource:60};var m;(m=F.app.F_())==null||m.seekTo(e93(F),b);if(!F.app.getPlayerStateObject(J).isPlaying()){var y;(y=F.app.F_())==null||y.playVideo(!0)}F.W(); return!0}m=this.S("html5_shorts_gapless_preload_fallback");y=this.s2.C;m&&y&&!y.wD.iR()&&(K=y.getVideoData(),K=this.rD.S("html5_autonav_autoplay_in_preload_key")?Ce(this,J,K):Xf(this,J,K.videoId,K.r9),this.z0.C.set(K,y,3600));this.s2.clearQueue(m);var f;(f=this.F_())==null||f.UQ("sgap",{f:v})}if(u){for(;M.bB.length&&M.bB[0].isExpired();)M.bB.shift();q=M.bB.length-1;q=q>0&&u.U(M.bB[q])&&u.U(M.bB[q-1]);M.bB.push(u)}b||(F&&xHv(F)?(k2(this.rD)&&!this.FY&&(F.fetch=0),Vd(this,F)):this.playlist&&Vd(this, null),F&&(this.FY=JC(!1,F.external_list)));this.SE.publish("loadvideo");J=this.Ml(M,J,I);q&&this.Wh("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+M.bB.join()).replace(/[;:,]/g,"_"));return J}; g.A.preloadVideoByPlayerVars=function(F,J,b,I,u){J=J===void 0?1:J;b=b===void 0?NaN:b;I=I===void 0?"":I;u=u===void 0?"":u;var w="";if(this.rD.S("html5_autonav_autoplay_in_preload_key"))w=WvY(this,J,F,u);else{var M=M1(F);w=Xf(this,J,M,u)}if(this.z0.C.get(w))return this.logger.debug(function(){return"already preloaded "+w}),null; F=new g.RH(this.rD,F);u&&(F.r9=u);return flz(this,F,J,b,I)}; g.A.setMinimized=function(F){this.visibility.setMinimized(F);(F=sQv(this.HV))&&(this.isMinimized()?F.load():F.unload());this.SE.publish("minimized")}; g.A.setInline=function(F){this.visibility.setInline(F)}; g.A.setInlinePreview=function(F){this.visibility.setInline(F)}; g.A.mU=function(F){Ehv(this,F)||this.visibility.mU(F)}; g.A.setSqueezeback=function(F){this.visibility.setSqueezeback(F)}; g.A.Wy=function(){var F,J=(F=this.mediaElement)==null?void 0:F.Pb();J&&((this.S("html5_disable_pip_with_standard_api")||this.S("html5_pip_visibility_on_resize"))&&document.exitFullscreen().catch(function(){}),i8(J).catch(function(b){g.rQ(b)}))}; g.A.F1Q=function(){this.mediaElement.Pb();this.mediaElement.Pb().webkitPresentationMode==="picture-in-picture"?this.mU(!0):this.mU(!1)}; g.A.togglePictureInPicture=function(){var F=this.F_();F&&F.togglePictureInPicture()}; g.A.Ml=function(F,J,b){J=J===void 0?1:J;this.logger.debug(function(){return"start load video, id "+F.videoId+", type "+J}); Dj("_start",this.qW.timerName)||g.tE(Tp)(void 0,this.qW.timerName);var I=!1,u=Kvk(this,J,F,!1);u?(I=!0,F.dispose()):(u=MGo(this,J,F,b).P0,(this.S("html5_onesie")||this.S("html5_load_before_stop"))&&u.J2()&&u.PE(),this.Co.stop(),J===1&&J!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,J),this.LA(u));u===this.Nf()&&(this.rD.pF=F.oauthToken);if(!u.J2())return!1;if(u===this.Nf())return this.uJ(1),b=Bh(this),I&&this.S("html5_player_preload_ad_fix")&&u.getPlayerType()===1&& u.JQ()&&this.xR("dataloaded",u,u.getVideoData()),b;u.Df();return!0}; g.A.cueVideoByPlayerVars=function(F,J){var b=this;J=J===void 0?1:J;var I=this.Nf();if(this.Yl().enableServerStitchedDai&&I&&!I.wK()&&F&&Object.keys(F).length>0)I.UQ("qvonss",{vid:(F==null?void 0:F.videoId)||"",ptype:J});else if(F&&xHv(F))if(this.fB=!0,Vd(this,F),(F=g.dA(this.playlist))&&F.o8())Rz(this,F,J);else this.playlist.onReady(function(){Ph(b)}); else{J||(J=this.getPresentingPlayerType());J===1&&this.Kn();I=new g.RH(this.rD,F);var u=g.dN(this.rD)&&!this.rD.eE&&J===1&&!I.isAd()&&!I.If;this.SE.publish("cuevideo");u?(this.F_().getVideoData().loading=!0,Jd_(I,F?F:{}).then(function(w){Rz(b,w,J)}),I.dispose()):Rz(this,I,J)}}; g.A.yp=function(F,J,b,I,u,w,M){if(!F&&!b)throw Error("Playback source is invalid");if(j8(this.rD)||g.dX(this.rD))return J=J||{},J.lact=dP(),J.vis=this.SE.getVisibilityState(),this.SE.jE("onPlayVideo",{videoId:F,watchEndpoint:w,sessionData:J,listId:b}),!1;cqk(this.qW);this.qW.reset();F={video_id:F};I&&(F.autoplay="1");I&&(F.autonav="1");w&&(F.player_params=w.playerParams);M&&(F.oauth_token=M);b?(F.list=b,this.loadPlaylist(F)):this.loadVideoByPlayerVars(F,1);return!0}; g.A.cuePlaylist=function(F,J,b,I){this.fB=!0;j_z(this,F,J,b,I)}; g.A.loadPlaylist=function(F,J,b,I){this.fB=!1;j_z(this,F,J,b,I)}; g.A.im=function(){return this.SE.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.FI())}; g.A.jy=bk(13); g.A.nextVideo=function(F,J){var b=g.nC(this.Nf().getVideoData());g.Bp(this.SE)&&b?this.yp(b.videoId,J?b.U5:b.sessionData,b.playlistId,J,void 0,b.TD||void 0):this.FY?this.SE.IC("onPlaylistNext"):this.getPresentingPlayerType()===3?dO(this.HV).nextVideo():!this.playlist||k2(this.rD)&&!this.SE.isFullscreen()||(this.playlist.FI(F)&&Zn4(this.playlist,nrG(this.playlist)),this.playlist.loaded?(F=J&&this.rD.S("html5_player_autonav_logging"),J&&this.SE.publish("playlistautonextvideo"),this.Ml(g.dA(this.playlist,void 0, J,F),1)):this.fB=!1)}; g.A.previousVideo=function(F){this.FY?this.SE.IC("onPlaylistPrevious"):this.getPresentingPlayerType()===3?dO(this.HV).hB():!this.playlist||k2(this.rD)&&!this.SE.isFullscreen()||(this.playlist.Q5(F)&&Zn4(this.playlist,tcJ(this.playlist)),this.playlist.loaded?this.Ml(g.dA(this.playlist),1):this.fB=!1)}; g.A.playVideoAt=function(F){this.FY?this.SE.IC("onPlaylistIndex",F):this.playlist&&(this.playlist.loaded?this.Ml(g.dA(this.playlist,F),1):this.fB=!1,Zn4(this.playlist,F))}; g.A.getPlaylist=function(){return this.playlist}; g.A.xg=bk(23);g.A.yJG=function(F){this.SE.SZ("onCueRangeEnter",F.getId())}; g.A.pb_=function(F){this.SE.SZ("onCueRangeExit",F.getId())}; g.A.VE=function(){var F=g.Y0(this.TF());F&&F.VE()}; g.A.dO=function(F,J,b){var I=this.F4(J);if(I){var u=this.Yl();if(g.oH(u)){if(this.II)if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&I.getPlayerType()===2&&this.II.zc()&&(I=this.Nf()),J===1)for(var w=V5(this.II,u.clientPlaybackNonce),M=g.N(F),q=M.next();!q.done;q=M.next())q=q.value,q.start+=w,q.end+=w,q.ac=w,q.T=u.clientPlaybackNonce;else if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&J===2)for(this.getPresentingPlayerType(),u=g.N(F),w=u.next();!w.done;w=u.next())w.value.T=this.II.h4(); u=g.N(F);for(w=u.next();!w.done;w=u.next())M=void 0,w.value.playerType=(M=J)!=null?M:1}I.dO(F,b);J&&this.getPresentingPlayerType()!==J||Du(this,"cuerangesadded",F)}}; g.A.hc=function(F,J){var b=this.F4(J);b&&(b.hc(F),J&&this.getPresentingPlayerType()!==J||Du(this,"cuerangesremoved",F))}; g.A.ey=function(F){var J=this.F_()||this.Nf(),b=this.getPresentingPlayerType();return this.S("html5_ssap_enable_cpn_triggered_media_end")?J.ey(b,F):J.ey(b)}; g.A.nm_=function(){function F(){var I=J.screenLayer||(J.isMinimized()?3:0),u=g.W8(I);if(u&&u!=="UNDEFINED_CSN"){var w=J.rD.S("web_player_attach_player_response_ve"),M=J.rD.S("web_playback_associated_ve");I={cpn:J.getVideoData().clientPlaybackNonce,csn:u};J.getVideoData().WN&&(w||M)&&(w=g.NY(J.getVideoData().WN),g.H8(u,w),M&&(I.playbackVe=w.getAsJson()));J.getVideoData().queueInfo&&(I.queueInfo=J.getVideoData().queueInfo);u={};J.S("web_playback_associated_log_ctt")&&J.getVideoData().W&&(u.cttAuthInfo= {token:J.getVideoData().W,videoId:J.getVideoData().videoId});g.AY("playbackAssociated",I,u)}else g.rQ(new g.hC("CSN Missing or undefined during playback association"))} var J=this,b=this.F_();this.getPresentingPlayerType();orY(this.qW,b.getVideoData(),Bxz(this));G3(this)&&this.rD.Z&&$s(this.Yl())==="embedded"&&this.QR&&Math.random()<.01&&g.AY("autoplayTriggered",{intentional:this.intentionalPlayback});this.QR=!1;T1a(this.HV);this.S("web_player_defer_ad")&&qIm(this);this.SE.IC("onPlaybackStartExternal");(this.rD.S("mweb_client_log_screen_associated"),CH(this.rD))||F();b={};this.getVideoData().W&&(b.cttAuthInfo={token:this.getVideoData().W,videoId:this.getVideoData().videoId}); b.sampleRate=20;Rr("player_att",b);if(this.getVideoData().botguardData||this.S("fetch_att_independently"))g.hP(this.rD)||cG(this.rD)==="MWEB"?g.tC(g.HK(),function(){T3(J)}):T3(this); this.eL();yOa(this);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.dN(this.rD)&&(b={autoplayBrowserPolicy:Rx(),autoplayIntended:Do(this.getVideoData()),autoplayStatus:TXv(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.AY("embedsAutoplayStatusChanged",b))}; g.A.ID=function(){this.SE.publish("internalAbandon");$N(this)}; g.A.onApiChange=function(){var F=this.F_();this.rD.V&&F?this.SE.SZ("onApiChange",F.getPlayerType()):this.SE.SZ("onApiChange")}; g.A.vlD=function(){var F=this.mediaElement;F={volume:g.AD(Math.floor(F.getVolume()*100),0,100),muted:F.rl()};F.muted||Se(this,!1);this.wg=g.To(F);this.SE.SZ("onVolumeChange",F)}; g.A.mutedAutoplay=function(F){var J=this.getVideoData().videoId;isNaN(this.hE)&&(this.hE=this.getVideoData().startSeconds);if(!this.S("embeds_enable_full_length_inline_muted_autoplay"))J&&(this.loadVideoByPlayerVars({video_id:J,playmuted:!0,start:this.hE}),this.SE.IC("onMutedAutoplayStarts"));else if((F==null?0:F.videoId)||J)this.loadVideoByPlayerVars({video_id:(F==null?0:F.videoId)?F==null?void 0:F.videoId:J,playmuted:!0,start:this.hE,muted_autoplay_duration_mode:F==null?void 0:F.durationMode}), this.SE.IC("onMutedAutoplayStarts")}; g.A.onFullscreenChange=function(){var F=rO7(this);this.wT(F?1:0);s_C(this,!!F)}; g.A.wT=function(F){var J=!!F,b=!!this.SP()!==J;this.visibility.wT(F);this.template.wT(J);this.S("html5_media_fullscreen")&&!J&&this.mediaElement&&rO7(this)===this.mediaElement.Pb()&&this.mediaElement.X5();this.template.resize();b&&this.qW.tick("fsc");b&&(this.SE.publish("fullscreentoggled",J),F=this.Yl(),J={fullscreen:J,videoId:F.P$||F.videoId,time:this.getCurrentTime()},this.SE.getPlaylistId()&&(J.listId=this.SE.getPlaylistId()),this.SE.SZ("onFullscreenChange",J))}; g.A.tO=function(){return this.visibility.tO()}; g.A.isFullscreen=function(){return this.visibility.isFullscreen()}; g.A.SP=function(){return this.visibility.SP()}; g.A.Eof=function(){if(this.F_()){var F=window.screen.width*window.screen.height,J=window.outerHeight*window.outerWidth;this.S("html5_disable_pip_with_standard_api")&&(this.EF=Math.max(this.EF,F,J));var b=this.SP();b!==0&&b!==1||this.wT(rO7(this)?1:0);this.S("html5_pip_visibility_on_resize")?(F=J/this.EF<.33,this.visibility.mU(F),Ehv(this,F)):this.S("html5_disable_pip_with_standard_api")?this.mU(J/F<.33):this.mediaElement&&dzJ(this,J/F<.33)&&this.mediaElement.X5()}}; g.A.VeQ=function(F){this.getPresentingPlayerType()!==3&&this.SE.publish("liveviewshift",F)}; g.A.playVideo=function(F,J){this.logger.debug(function(){return"play video, player type "+F}); var b=this.F4(F);b&&(this.appState===2?(g.U7(this.rD)&&WU(this.qW),Bh(this)):g.x(b.getPlayerState(),2)?(J=36,this.getVideoData().yM()&&(J=37),this.seekTo(0,void 0,void 0,void 0,J)):b.playVideo(!1,J))}; g.A.pauseVideo=function(F,J){(F=this.F4(F))&&F.pauseVideo(J)}; g.A.stopVideo=function(F){F=F===void 0?!1:F;this.logger.debug(function(){return"stop video"}); var J=this.Nf().getVideoData(),b=new g.RH(this.rD,{video_id:J.P$||J.videoId,oauth_token:J.oauthToken});b.N=g.To(J.N);var I;!F||(I=this.webPlayerContextConfig)!=null&&I.disableStaleness||(b.Q1=!0);this.cancelPlayback(6);Rz(this,b,1)}; g.A.cancelPlayback=function(F,J){var b=this;this.logger.debug(function(){return"start cancel playback, type "+J}); var I=this.F4(J);I?J===2&&I.getPlayerType()===1&&(Aca(this.Yl())||g.oH(this.getVideoData()))?I.UQ("canclpb",{r:"no_adpb_ssdai"}):(this.rD.hJ()&&I.UQ("canclpb",{r:F}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+b.appState}):(I===this.F_()&&(this.logger.debug("cancel playback, destroy modules"),CV(this.HV,F)),J===1&&(I.stopVideo(),$N(this)),I.Cc(void 0,F!==6),Du(this,"cuerangesremoved",I.Y4()),I.wD.f8.reset(),this.s2&&I.isGapless()&& (I.rg(!0),I.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.A.sendVideoStatsEngageEvent=function(F,J,b){(J=this.F4(J))&&IMC(this.rD,F)?J.sendVideoStatsEngageEvent(F,b):b&&b()}; g.A.C8=function(F){var J=this.F4();return J&&IMC(this.rD,F)?J.C8(F):null}; g.A.updatePlaylist=function(){!k2(this.rD)&&g.dN(this.rD)&&alk(this);this.SE.IC("onPlaylistUpdate")}; g.A.setSizeStyle=function(F,J){this.q7=F;this.S("web_log_theater_mode_visibility")?this.Wp(J):this.u5=J;this.SE.publish("sizestylechange",F,J);this.template.resize()}; g.A.Wp=function(F){this.visibility.Wp(F)}; g.A.tD=function(){return this.S("web_log_theater_mode_visibility")?this.visibility.tD():this.u5}; g.A.isMinimized=function(){return this.visibility.isMinimized()}; g.A.isInline=function(){return this.visibility.isInline()}; g.A.JN=function(){return this.visibility.JN()}; g.A.n$=function(){return this.visibility.n$()}; g.A.I9=function(){return this.visibility.I9()}; g.A.Xt=function(){return this.q7}; g.A.getAdState=function(){if(this.getPresentingPlayerType()===3)return dO(this.HV).getAdState();if(!this.Uo()){var F=XN(this.TF());if(F)return F.getAdState()}return-1}; g.A.MFR=function(F){var J=this.template.getVideoContentRect();qB(this.Rb,J)||(this.Rb=J,(J=this.F_())&&J.Z$(),(J=this.Nf())&&J===this.F_()&&J.Z$(),this.SP()===1&&this.Ry&&s_C(this,!0));this.Aq&&g.mD(this.Aq,F)||(this.SE.publish("appresize",F),this.Aq=F)}; g.A.hX=function(){return this.SE.hX()}; g.A.agQ=function(){this.getPresentingPlayerType()===2&&this.xl.isManifestless()?j54(this.xl):(this.jF&&($T_(this.jF),$N(this)),YIa(this,"signature"))}; g.A.qsE=function(F){F&&YIa(this,"reloadPlayerEvent",void 0,F)}; g.A.ER=function(F){this.rg(F);fe(this)}; g.A.jC_=function(F){if(F.errorCode==="manifest.net.badstatus"){var J=this.rD.experiments.pW("html5_use_network_error_code_enums")?401:"401";F.details.rc===J&&this.SE.jE("onPlayerRequestAuthFailed")}}; g.A.Nq=function(F){this.SE.publish("heartbeatparams",F)}; g.A.LZ=function(F){this.SE.jE("onAutonavChangeRequest",F!==1)}; g.A.Qa=function(){return this.mediaElement}; g.A.setBlackout=function(F){if(this.rD.cN!==F){this.rD.cN=F;var J=this.F_();J&&(J.wD.B5(),this.rD.dD&&Cla(this),J.rT(F))}}; g.A.ayN=function(){var F=this.F_();if(F){var J=!this.SE.G9();F.qT(J)}}; g.A.onLoadedMetadata=function(){this.SE.IC("onLoadedMetadata")}; g.A.onDrmOutputRestricted=function(){this.SE.IC("onDrmOutputRestricted")}; g.A.Rq=function(){this.intentionalPlayback=!0}; g.A.X_=function(){this.HV.dispose();this.Nr.dispose();this.xl.dispose();this.jF&&this.jF.dispose();this.wf.removeAll();this.wf.dispose();this.II&&this.II.dispose();xU(this.Nf());this.rg();this.z0.dispose();g.vk(this.playlist);g.R.prototype.X_.call(this)}; g.A.S=function(F){return this.rD.S(F)}; g.A.setScreenLayer=function(F){this.screenLayer=F}; g.A.getInternalApi=function(){return this.SE.getInternalApi()}; g.A.createSubtitlesModuleIfNeeded=function(){return this.HV.createSubtitlesModuleIfNeeded()}; g.A.isOrchestrationLeader=function(){var F=Rs(this.HV);return F?F.isOrchestrationLeader():!1}; g.A.getVideoUrl=function(F,J,b,I,u){if(this.AJ&&this.AJ.postId)return F=this.rD.getVideoUrl(F),F=cj(F,"v"),F.replace("/watch","/clip/"+this.AJ.postId);var w=this.SE.isEmbedsShortsMode()||this.rD.WN==="shortspage",M=g.HE(this.getVideoData());return this.rD.getVideoUrl(F,J,b,I,u,w,M)}; g.A.Rs=function(){return this.s2.Rs()}; g.A.Y3=function(F,J,b){this.SE.publish("spsumpreject",F,J,b)}; g.A.mR=function(){try{for(var F=g.N(Object.values(this.z0.U)),J=F.next();!J.done;J=F.next()){var b=J.value;b.wD.iR()||b.mR()}if(this.S("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var I=g.N(Tn4(this.z0.C)),u=I.next();!u.done;u=I.next()){var w=u.value;w.wD.iR()||w.mR()}this.Nf().mR()}catch(M){g.rQ(M)}}; g.A.xq=function(){if(this.jF){var F=(0,g.jR)();return this.jF.xq(F)}return!1}; g.A.oK=function(F){var J=this.Nf();F&&(J=Q_a(this,F));if(J){var b=J.getVideoData();F=new Map;b=g.N(b.sabrContextUpdates);for(var I=b.next();!I.done;I=b.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;var w,M;if(M=u.scope===4)(w=J)==null?w=0:(M=void 0,w=!((M=w.wD.Zv)==null||!M.T.hD.has(I))),M=w;M&&F.set(I,u)}return F}this.Nf().UQ("scuget",{ncpf:"1",ccpn:F})}; var Gz={};var MDU={D_:[{qb:/Unable to load player module/,weight:20},{qb:/Failed to fetch/,weight:500},{qb:/XHR API fetch failed/,weight:10},{qb:/JSON parsing failed after XHR fetch/,weight:10},{qb:/Retrying OnePlatform request/,weight:10},{qb:/CSN Missing or undefined during playback association/,weight:100},{qb:/Non-recoverable error. Do not retry./,weight:0},{qb:/Internal Error. Retry with an exponential backoff./,weight:0},{qb:/API disabled by application./,weight:0}],Jg:[{callback:R3_,weight:500}]};var Lvv=/[&\?]action_proxy=1/,Hhm=/[&\?]token=([\w-]*)/,Flk=/[&\?]video_id=([\w-]*)/,JTk=/[&\?]index=([\d-]*)/,bNz=/[&\?]m_pos_ms=([\d-]*)/,ugv=/[&\?]vvt=([\w-]*)/,oh_="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(" "),IEv="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(" "),Uzk={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"},xzY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},tG3={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};oz.prototype.XT=function(F){this.player.Iu().tick(F)}; oz.prototype.fetch=function(F,J){var b=this;if(!F.match(/\[BISCOTTI_ID\]/g))return this.U(F,J);var I=this.C===1;I&&this.XT("a_bid_s");var u=kO4();if(u!==null)return I&&this.XT("a_bid_f"),this.U(F,J,u);u=OhY();I&&Nf(u,function(){b.XT("a_bid_f")}); return u.then(function(w){return b.U(F,J,w)})}; oz.prototype.U=function(F,J,b){var I=this,u=J===void 0?{}:J;J=u.SN;var w=u.Os;var M=u.cueProcessedMs;b=b===void 0?"":b;var q=this.player.getVideoData(1);u=this.player.J().jm;var v=0;if(M&&w&&!J){var a=w.end-w.start;a>0&&(v=Math.floor(a/1E3))}v=J?J.Bg:v;var e={AD_BLOCK:this.C++,AD_BREAK_LENGTH:v,AUTONAV_STATE:OK(this.player.J()),CA_TYPE:"image",CPN:q.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.mJ()*1E3,LACT:dP(),LIVE_INDEX:J?this.T++:1,LIVE_TARGETING_CONTEXT:J&&J.context?J.context:"",MIDROLL_POS:w? Math.round(w.start/1E3):0,MIDROLL_POS_MS:w?Math.round(w.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.mG().lk().height,P_W:this.player.mG().lk().width,YT_REMOTE:u?u.join(","):""},K=vx(qk);Object.keys(K).forEach(function(m){K[m]!=null&&(e[m.toUpperCase()]=K[m].toString())}); b!==""&&(e.BISCOTTI_ID=b);b={};AR(F)&&(b.sts="20138",(J=this.player.J().forcedExperiments)&&(b.forced_experiments=J));var p=ui(g.TM(F,e),b);return p.split("?").length!==2?i5(Error("Invalid AdBreakInfo URL")):g.LH(this.player.J(),q==null?void 0:q.oauthToken).then(function(m){if(m&&Mk()){var y=SV();sf(y,m)}m=I.player.n8(y);y=wD4(I,p,e,q.isMdxPlayback,M);return g.cf(m,y,"/youtubei/v1/player/ad_break").then(function(f){return f})})}; oz.prototype.reset=function(){this.T=this.C=1};g.z(MHa,oz); MHa.prototype.U=function(F,J,b){J=J===void 0?{}:J;var I=J.SN;var u=J.Os;var w=J.cueProcessedMs;b=b===void 0?"":b;J=this.C;this.C++;var M=this.player.J().S("h5_disable_macro_substitution_in_get_ad_break")?F:ATa(this,F,{SN:I,Os:u,cueProcessedMs:w},b,J);if(M.split("?").length!==2)return Math.random()<.1&&g.rQ(Error("Invalid AdBreakInfo URL")),i5(Error("Invalid AdBreakInfo URL"));var q=this.player.getVideoData(1).isMdxPlayback,v=b;b=Hhm.exec(M);b=b!=null&&b.length>=2?b[1]:"";F=Lvv.test(M);var a=Flk.exec(M); a=a!=null&&a.length>=2?a[1]:"";var e=JTk.exec(M);e=e!=null&&e.length>=2&&!Number.isNaN(Number(e[1]))?Number(e[1]):1;var K=bNz.exec(M);K=K!=null&&K.length>=2?K[1]:"0";var p=Y2(this.player.J().ME),m=g.UV(this.player.getVideoData(1).WN,!0);cOm(this,m,M,v===""?"":v,this.player.J(),this.player.getVideoData(1));v={splay:!1,lactMilliseconds:String(dP()),playerHeightPixels:Math.trunc(this.player.mG().lk().height),playerWidthPixels:Math.trunc(this.player.mG().lk().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20138,autonavState:OK(this.player.J())};if(q){q={};var y=this.player.J().jm;nhz(q,y?y.join(","):"")&&(v.mdxContext=q)}if(q=IEv.includes(p)?void 0:g.$6("PREF")){y=q.split(RegExp("[:&]"));for(var f=0,d=y.length;f<d;f++){var G=y[f].split("=");if((G[0].toUpperCase()==="SML"||G[0].toUpperCase()==="GSML")&&G.length>1&&G[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}v.autoCaptionsDefaultOn=Zh3(q)}M=ugv.exec(M);(M=M!=null&&M.length>=2?M[1]:"")&&a&&(m.user.credentialTransferTokens= [{token:M,scope:"VIDEO"}]);M={contentPlaybackContext:v};v=this.player.getVideoData(1).getGetAdBreakContext();q=this.player.getVideoData(1).clientPlaybackNonce;y=w!==void 0?Math.round(w).toString():void 0;f=(I==null?0:I.context)?I.context:void 0;d=0;w&&u&&!I&&(u=u.end-u.start,u>0&&(d=Math.floor(u/1E3)));I=(I=Math.trunc((I?I.Bg:d)*1E3))?String(I):void 0;u=this.player.mJ()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);J={adBlock:J,params:b,breakIndex:e,breakPositionMs:K,clientPlaybackNonce:q,topLevelDomain:p, isProxyAdTagRequest:F,context:m,overridePlaybackContext:M,cueProcessedMs:y,videoId:a?a:void 0,liveTargetingParams:f,breakLengthMs:I,driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:v?v:void 0};return q8G(this,J)};var Axm={wuR:"replaceUrlMacros",fW_:"onAboutThisAdPopupClosed",q2I:"executeCommand"};vwv.prototype.LN=function(){return"adPingingEndpoint"}; vwv.prototype.Th=function(F,J,b){ONz(this.EQ.get(),F,J,b)};aEm.prototype.LN=function(){return"changeEngagementPanelVisibilityAction"}; aEm.prototype.Th=function(F){this.G.jE("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:F})};eVz.prototype.LN=function(){return"loggingUrls"}; eVz.prototype.Th=function(F,J,b){F=g.N(F);for(var I=F.next();!I.done;I=F.next())I=I.value,ONz(this.EQ.get(),I.baseUrl,J,b,I.attributionSrcMode)};g.z(pDz,g.R);g.z(ch,g.R);g.A=ch.prototype;g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.a6=function(F,J,b,I,u,w,M,q){if(F==="")q_("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(F!==this.C||b){this.C=F;this.OQ.get().a6(F,J,b,I,u,w,M,q);this.QG.get().a6(F,J,b,I,u,w,M,q);var v;(v=this.cV)==null||v.get().a6(F,J,b,I,u,w,M,q);this.U.a6(F,J,b,I,u,w,M,q);v=g.N(this.listeners);for(var a=v.next();!a.done;a=v.next())a.value.a6(F,J,b,I,u,w,M,q)}else q_("Duplicate content video loaded signal")}; g.A.ID=function(){this.C&&this.mW(this.C)}; g.A.mW=function(F){this.C=void 0;for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.mW(F)};UK.prototype.j9=function(F,J,b,I,u){gwz(this);this.D=!J&&b===0;var w=this.G.getVideoData(1),M=this.G.getVideoData(2);w&&(this.contentCpn=w.clientPlaybackNonce,this.videoId=w.videoId,this.C=w.W);M&&(this.adCpn=M.clientPlaybackNonce,this.adVideoId=M.videoId,this.adFormat=M.adFormat);this.Z=F;I<=0?(gwz(this),this.D=!J&&b===0):(this.actionType=this.D?J?"unknown_type":"video_to_ad":J?"ad_to_video":"ad_to_ad",this.videoStreamType=u?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.T=!0,Dj("_start",this.actionType)&&iNk(this)))}; UK.prototype.reset=function(){return new UK(this.G)};g.z(xN,g.R);xN.prototype.addCueRange=function(F,J,b,I,u,w,M){w=w===void 0?3:w;M=M===void 0?1:M;this.C.has(F)?q_("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:F}):(F=new zV4(F,J,b,I,w),this.C.set(F.id,{Os:F,listener:u,Fa:M}),this.G.TU([F],M))}; xN.prototype.removeCueRange=function(F){var J=this.C.get(F);J?(this.G.L4([J.Os],J.Fa),this.C.delete(J.Os.id)):q_("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:F})}; xN.prototype.onCueRangeEnter=function(F){if(this.C.has(F.id))this.C.get(F.id).listener.onCueRangeEnter(F.id)}; xN.prototype.onCueRangeExit=function(F){if(this.C.has(F.id))this.C.get(F.id).listener.onCueRangeExit(F.id)}; g.z(zV4,g.b6);ne.prototype.Q_=function(F){this.G.Q_(F)}; ne.prototype.t3=function(F){var J=g.Ba.apply(1,arguments);F==="onAdStart"||F==="onAdEnd"?this.G.SZ.apply(this.G,[F].concat(g.W(J))):this.G.jE.apply(this.G,[F].concat(g.W(J)))};tU.prototype.f7=function(F){return F&&Zu(this)};var VHk=null;g.z(GH3,g.uA);GH3.prototype.nt=function(F){return this.C.hasOwnProperty(F)?this.C[F].nt():{}}; g.RG("ytads.bulleit.getVideoMetadata",function(F){return Hh().nt(F)}); g.RG("ytads.bulleit.triggerExternalActivityEvent",function(F,J,b){var I=Hh();b=jvv(b);b!==null&&I.publish(b,{queryId:F,viewabilityString:J})});g.A=Le.prototype;g.A.RQ=function(F,J){if(!this.C.has(F))return{};if(J==="seek"){J=this.G.J().S("html5_dai_enable_active_view_creating_completed_adblock");J=J===void 0?!1:J;var b=VF(f8).PH(F,{});b?fq(b):J&&(F=VF(f8).zM(null,cY(),!1,F),F.vS=3,cN_([F]));return{}}J=Bv3(J);if(J===null)return{};var I=this.G.I3();if(!I)return{};var u=this.G.getPresentingPlayerType(!0);if((b=this.G.getVideoData(u))==null||!b.isAd())return{};b={opt_adElement:I,opt_fullscreen:this.OQ.get().isFullscreen()};return chJ(J,F,b)}; g.A.Ei=function(F,J,b,I,u){this.C.has(F)&&(I<=0||u<=0||VF(f8).Ei(F,J,b,I,u))}; g.A.rM=function(F){var J;(J=this.C.get(F.queryId))==null||J.rM()}; g.A.I7=function(F){var J;(J=this.C.get(F.queryId))==null||J.I7()}; g.A.CQ=function(F){var J;(J=this.C.get(F.queryId))==null||J.CQ()}; g.A.LB=function(F){var J;(J=this.C.get(F.queryId))==null||J.LB()}; g.A.NO=function(F){var J;(J=this.C.get(F.queryId))==null||J.NO()};XD4.prototype.send=function(F,J,b,I){try{QvJ(this,F,J,b,I===void 0?!1:I)}catch(u){}};g.z(RVo,XD4);DAa.prototype.send=function(F,J,b,I){var u=!1;try{if(I==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||I==="ATTRIBUTION_SRC_MODE_XHR_OPTION")u=!0,F=eyz(F);I=u;var w=F.match(YV);if(w[1]==="https")var M=F;else w[1]="https",M=Bj("https",w[2],w[3],w[4],w[5],w[6],w[7]);var q=wcG(M);w=[];var v=t7o(M)&&this.uR.get().G.J().experiments.pW("add_auth_headers_to_remarketing_google_dot_com_ping");if(AR(M)||v)w.push({headerType:"USER_AUTH"}),w.push({headerType:"PLUS_PAGE_ID"}),w.push({headerType:"VISITOR_ID"}),w.push({headerType:"EOM_VISITOR_ID"}), w.push({headerType:"AUTH_USER"}),w.push({headerType:"DATASYNC_ID"});this.C.send({baseUrl:M,scrubReferrer:q,headers:w},J,b,I)}catch(a){}};uY.prototype.C8=function(){return this.G.C8(1)};g.z(w6,g.R);g.A=w6.prototype;g.A.Vd=function(){return this.G.getVideoData(1).clientPlaybackNonce}; g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.a6=function(){this.r4.clear();this.D5=null;this.CP.get().clear()}; g.A.mW=function(){}; g.A.PxG=function(F,J,b,I,u){J.videoId==="nPpU29QrbiU"&&this.G.UQ("ads_ssm_vdc_s",{pt:b,dvt:F});mz(this.uR.get())&&F!=="dataloaded"||tH7(this,J,b);if(Zu(this.uR.get())&&F==="newdata"&&u!==void 0){F=this.Vd();var w=J.clientPlaybackNonce,M={};NM(this,"rte",(M.ec=w,M.xc=I==null?void 0:I.clientPlaybackNonce,M.tr=u,M.pt=b,M.ia=w!==F,M.ctp=zj(w),M));J=J.clientPlaybackNonce;I=I==null?void 0:I.clientPlaybackNonce;u=ZNz(u);if(u!==1)if(I!==void 0)for(b=g.N(this.listeners),F=b.next();!F.done;F=b.next())F.value.cq(I, J,u);else q_("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:J,transitionReason:String(u)});u=g.N(this.listeners);for(I=u.next();!I.done;I=u.next())I.value.mX(J)}}; g.A.JFN=function(F,J){F!==void 0&&(this.D5=F,J===void 0?q_("Expected ad video start time on SS video changed"):this.r4.set(F,J));var b=this.G.getPresentingPlayerType(!0),I=this.G.getVideoData(b);this.G.getVideoData(1).UQ("ads_ssvc",{pt:b,cpn:I==null?void 0:I.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:J});I?tH7(this,I,b):q_("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:F})}; g.A.b_=function(F,J){var b=F.author,I=F.clientPlaybackNonce,u=F.isListed,w=F.r9,M=F.title,q=F.iq,v=F.I6,a=F.isMdxPlayback,e=F.kZ,K=F.mdxEnvironment,p=F.isAutonav,m=F.dK,y=F.NJ,f=F.Ta,d=F.videoId||"",G=F.profilePicture||"",P=F.uB||"",r=F.yM()||!1,Q=F.vV()||!1;F=F.lK||void 0;w=this.CP.get().C.get(w)||{layoutId:null,slotId:null};var D=this.G.getVideoData(1),t=D.MW();D=D.getPlayerResponse();J=1E3*this.G.getDuration(J);var n=1E3*this.G.getDuration(1),uk,AJ,F7=(D==null?void 0:(uk=D.playerConfig)==null? void 0:(AJ=uk.daiConfig)==null?void 0:AJ.enableDai)||!1,h,L;uk=(D==null?void 0:(h=D.playerConfig)==null?void 0:(L=h.daiConfig)==null?void 0:L.enablePreroll)||!1;return Object.assign({},w,{videoId:d,author:b,clientPlaybackNonce:I,Xk:J,tN:n,daiEnabled:F7,yg:uk,isListed:u,MW:t,profilePicture:G,title:M,uB:P,iq:q,I6:v,lK:F,isMdxPlayback:a,kZ:e,mdxEnvironment:K,isAutonav:p,dK:m,NJ:y,Ta:f,yM:r,vV:Q})}; g.A.X_=function(){this.listeners.length=0;this.Hm=null;g.R.prototype.X_.call(this)};g.z(Mi,g.R);g.A=Mi.prototype;g.A.a6=function(){var F=this;Zu(this.uR.get())||(this.C=Ku(function(){F.G.iR()||F.G.d6("ad",1)}))}; g.A.mW=function(){}; g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.XB=function(){}; g.A.playVideo=function(){this.G.playVideo()}; g.A.pauseVideo=function(){this.G.pauseVideo()}; g.A.resumeVideo=function(F){this.ZX(F)&&this.G.playVideo()}; g.A.ZX=function(F){return this.G.getPlayerState(F)===2}; g.A.getCurrentTimeSec=function(F,J,b){var I=this.QG.get().D5;if(F===2&&!J&&I!==null)return LlC(this,I);Un(this.uR.get(),"html5_ssap_use_cpn_to_get_time")||(b=void 0);return b!==void 0?this.G.getCurrentTime(F,J,b):this.G.getCurrentTime(F,J)}; g.A.getVolume=function(){return this.G.getVolume()}; g.A.isMuted=function(){return this.G.isMuted()}; g.A.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)}; g.A.getPlayerState=function(F){return this.G.getPlayerState(F)}; g.A.isFullscreen=function(){return this.G.isFullscreen()}; g.A.isAtLiveHead=function(){return this.G.isAtLiveHead()}; g.A.PQ=function(F){this.G.PQ(F)}; g.A.G$G=function(){var F=this.G.getPresentingPlayerType(!0),J=this.getCurrentTimeSec(F,!1);if(F===2){F=g.N(this.listeners);for(var b=F.next();!b.done;b=F.next())b.value.mP(J)}else if(F===1)for(F=g.N(this.xN),b=F.next();!b.done;b=F.next())b.value.XB(J)}; g.A.CC_=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.jT(F,this.getPresentingPlayerType())}; g.A.onFullscreenToggled=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.onFullscreenToggled(F)}; g.A.onVolumeChange=function(){for(var F=g.N(this.listeners),J=F.next();!J.done;J=F.next())J.value.onVolumeChange()}; g.A.Kv=function(){for(var F=this.G.isMinimized(),J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.Kv(F)}; g.A.bq=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.bq(F)}; g.A.mO=function(){for(var F=this.G.mG().lk(),J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.OJ(F)}; g.A.nF=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.nF(F)}; g.A.c9=function(){for(var F=g.N(this.listeners),J=F.next();!J.done;J=F.next())J.value.c9()};g.z(bya,g.R);g.z(eU,g.R);eU.prototype.X_=function(){this.Gf.iR()||this.Gf.get().removeListener(this);g.R.prototype.X_.call(this)};KR.prototype.fetch=function(F){var J=F.rU;return this.C.fetch(F.iW,{SN:F.SN===void 0?void 0:F.SN,Os:J,cueProcessedMs:F.cueProcessedMs===void 0?0:F.cueProcessedMs}).then(function(b){return I2a(b,J)})};g.z(pR,g.R);g.A=pR.prototype;g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.Mm=function(F){uOC(this,F,1)}; g.A.onAdUxClicked=function(F,J){g6(this,function(b){b.Oo(F,J)})}; g.A.C9=function(F){g6(this,function(J){J.Mt(F)})}; g.A.rz=function(F){g6(this,function(J){J.fb(F)})}; g.A.vmz=function(F){g6(this,function(J){J.qy(F)})};mJ.prototype.reduce=function(F){switch(F.event){case "unknown":return}var J=F.identifier;var b=this.C[J];b?J=b:(b={JP:null,gi:-Infinity},J=this.C[J]=b);b=F.startSecs+F.C/1E3;if(!(b<J.gi))if(J.gi=b,J.JP){if(b<J.JP.end){a:{b=J.JP;switch(F.event){case "start":case "continue":case "stop":break;default:F=null;break a}F=b.start+F.Bg;F=b.end<=F?null:F}if(F!==null)for(J.JP.end=F,J=this.U,g.eJ(J.T.C,F*1E3),J=g.N(J.listeners),b=J.next();!b.done;b=J.next())b.value.u3(F)}}else if(F=wwo(F,this.T))b=F.tER,J.JP= F.US,A4k(this.U,b)}; mJ.prototype.updateTime=function(){};g.z(ya,g.R);g.A=ya.prototype; g.A.a6=function(){this.D=new mJ(this,lE_(this.uR.get()));this.T=new MC_;var F=this.G.getVideoData(1);if(!F.enableServerStitchedDai){var J=this.G.getVideoData(1),b;((b=this.U)==null?void 0:b.clientPlaybackNonce)!==J.clientPlaybackNonce&&(this.U!=null&&this.U.unsubscribe("cuepointupdated",this.GT,this),J.subscribe("cuepointupdated",this.GT,this),this.U=J)}this.KX.length=0;var I;J=((I=F.C)==null?void 0:DtG(I,0))||[];I=g.N(J);for(J=I.next();!J.done;J=I.next())J=J.value,this.F0(J)&&(Ew_(this.uR.get())&& Lx(this.EQ.get(),"ocvl","cpi."+J.identifier+";cpe."+J.event+";cps."+J.startSecs),q_("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:J.identifier,cuePointEvent:J.event,contentCpn:F.clientPlaybackNonce}))}; g.A.mW=function(){}; g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.F0=function(F){vH_(this,F);this.D.reduce(F);F=this.Z;this.Z=!1;return F}; g.A.GT=function(F){var J=this.G.getVideoData(1).isDaiEnabled();if(J||!g.dX(this.G.J())){F=g.N(F);for(var b=F.next();!b.done;b=F.next())if(b=b.value,vH_(this,b),J)this.D.reduce(b);else if(this.G.getCurrentTime(1)!==0&&b.event==="start")if(this.uR.get().G.J().experiments.pW("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.C==null?0:b.startSecs+b.Bg>=this.C.startSecs&&b.startSecs<=this.C.startSecs+this.C.Bg)){var I=void 0;Ew_(this.uR.get())&&b.identifier!==((I=this.C)==null?void 0:I.identifier)&& Lx(this.EQ.get(),"ocud","cpi."+b.identifier+";cpe."+b.event+";cps."+b.startSecs+";");I=void 0;b.identifier!==((I=this.C)==null?void 0:I.identifier)&&q_("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.C=b,A4k(this,b)}}; g.A.X_=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.GT,this),this.U=null);this.listeners.length=0;this.KX.length=0;g.R.prototype.X_.call(this)};iY.prototype.addPlayerResponseForAssociation=function(F){this.G.addPlayerResponseForAssociation(F)};g.A=Ni.prototype;g.A.AP=function(F,J,b,I,u,w,M){return this.G.AP(F,J,b,I,u,w,M)}; g.A.pO=function(F,J){this.G.pO(F,J)}; g.A.y8=function(F,J,b){this.G.y8(F,J,b)}; g.A.Jx=function(F){this.G.Jx(F)}; g.A.UN=function(F,J,b,I,u,w,M){this.G.UN(F,J,b,I,u,w,M)}; g.A.l1=function(F){return this.G.l1(F)}; g.A.finishSegmentByCpn=function(F,J,b){b=ejm(b);this.G.finishSegmentByCpn(F,J,b)};g.z(pwG,g.R);g.z(gH3,g.R);g.z(moG,g.R);g.z(y4C,g.R);g.z(iy4,g.R);g.z(NW7,g.R);NW7.prototype.T=function(){return this.U};g.z(l2z,R4); l2z.prototype.Z=function(F){var J=F.content;if(J.componentType==="shopping-companion")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId,shoppingCompanionCarouselRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="action-companion")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1); this.C.jE("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId,actionCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="image-companion")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion", {contentVideoId:F&&F.videoId,imageCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="top-banner-image-text-icon-buttoned")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion", {contentVideoId:F&&F.videoId,topBannerImageTextIconButtonedLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="banner-image")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion", {contentVideoId:F&&F.videoId,bannerImageLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="ads-engagement-panel")switch(J=J.renderer,F.actionType){case 1:case 2:this.C.jE("updateEngagementPanelAction",J.addAction);this.C.jE("changeEngagementPanelVisibility", J.expandAction);break;case 3:this.C.jE("changeEngagementPanelVisibility",J.hideAction),this.C.jE("updateEngagementPanelAction",J.removeAction)}else if(J.componentType==="ads-engagement-panel-layout"){var b=J.renderer;switch(F.actionType){case 1:case 2:this.C.jE("updateEngagementPanelAction",{action:$W(b.addAction),layoutId:J.layoutId,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});this.C.jE("changeEngagementPanelVisibility",$W(b.expandAction));break;case 3:this.C.jE("changeEngagementPanelVisibility", $W(b.hideAction)),this.C.jE("updateEngagementPanelAction",{action:$W(b.removeAction)})}}};g.z(f2z,xS);g.A=f2z.prototype;g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);g.aN(this.T,"stroke-dasharray","0 "+this.U);this.T.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Z.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F!=null&&F.current!=null&&g.aN(this.T,"stroke-dasharray",F.current/F.seekableEnd*this.U+" "+this.U)}};g.z(Wmo,a4);g.A=Wmo.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if(J.backgroundImage&&J.backgroundImage.thumbnail)if(J.actionButton&&g.O(J.actionButton,g.TX))if(F=J.durationMilliseconds||0,typeof F!=="number"||F<=0)g.Td(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+F));else if(J.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null){var u=J.image.thumbnail.thumbnails;u!=null&& u.length>0&&g.d5(g.Zi(u[0].url))&&(u[0].url=I.profilePicture,g.d5(g.Zi(I.profilePicture))&&Fp7("VideoPlayer",239976093,"Expected non-empty profile picture."));u=J.backgroundImage.thumbnail.thumbnails;u!=null&&u.length>0&&g.d5(g.Zi(u[0].url))&&(u[0].url=I.lr());u=J.headline;u!=null&&g.d5(g.Zi(u.text))&&(u.text=I.author)}this.N.init(bA("ad-image"),J.image,b);this.W.init(bA("ad-text"),J.headline,b);this.T.init(bA("ad-text"),J.description,b);this.KW.init(bA("ad-image"),J.backgroundImage,b);I=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.T.element.classList.add("ytp-ad-action-interstitial-description-light");I.push("ytp-ad-action-interstitial-action-button-dark");this.api.J().U&&(I.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),I.push("ytp-ad-action-interstitial-action-button-dark"));this.api.J().S("enable_unified_action_endcap_on_web")&& !this.api.J().U&&(I.push("ytp-ad-action-interstitial-action-button-unified"),this.oI.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.nW.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.aH.classList.add("ytp-ad-action-interstitial-card-unified"),this.eE.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.WN.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.qf.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.dD.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,I);g.k(this,this.actionButton);this.actionButton.Az(this.oI); this.actionButton.init(bA("button"),g.O(J.actionButton,g.TX),b);OY(this.actionButton.element);I=cQ(this.actionButton.element);hy(this.actionButton.element,I+" This link opens in new tab");this.navigationEndpoint=J.navigationEndpoint;this.Z.B(this.qf,"click",this.Oy,this);this.Z.B(this.eE,"click",this.Oy,this);!this.api.J().S("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.J().U||this.Z.B(this.WN,"click",this.Oy,this);this.C=this.HA?new zg(this.api,F):new N_(F);g.k(this,this.C);if(J.skipButton){(F= g.O(J.skipButton,fHV))&&this.C&&(this.skipButton=new K0(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C,this.qm),g.k(this,this.skipButton),this.skipButton.Az(this.element),this.skipButton.init(bA("skip-button"),F,b));b=this.api.S("disable_ad_preview_for_instream_ads");if(F=J.adBadgeRenderer)if(F=g.O(F,lHb))I=new ym(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0,b),I.Az(this.dD),I.init(bA("simple-ad-badge"),F,this.macros),g.k(this,I);if(F=J.adInfoRenderer)if(F= g.O(F,PF))b=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,b),b.Az(this.dD),b.init(bA("ad-info-hover-text-button"),F,this.macros),g.k(this,b)}else J.nonskippableOverlayRenderer&&(F=g.O(J.nonskippableOverlayRenderer,BF))&&this.C&&(this.U=new Lr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C,!1),g.k(this,this.U),this.U.Az(this.element),this.U.init(bA("ad-preview"),F,b));J.countdownRenderer&&(J=J.countdownRenderer,g.O(J,WRW)&&this.C&& (b=new f2z(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C),g.k(this,b),b.Az(this.element),b.init(bA("timed-pie-countdown"),g.O(J,WRW),this.macros)));this.show();this.element.focus()}else g.Td(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Td(Error("AdActionInterstitialRenderer has no button."));else g.Td(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Td(Error("AdActionInterstitialRenderer has no description AdText."));else g.Td(Error("AdActionInterstitialRenderer has no headline AdText.")); else g.Td(Error("AdActionInterstitialRenderer has no image."))}; g.A.clear=function(){g.Ve(this.Z);this.hide()}; g.A.show=function(){do_(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();a4.prototype.show.call(this)}; g.A.hide=function(){do_(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();a4.prototype.hide.call(this)}; g.A.Oy=function(){this.navigationEndpoint&&(this.layoutId?this.vN.executeCommand(this.navigationEndpoint,this.layoutId):g.Td(Error("Missing layoutId for ad action interstitial.")))};var Pna={iconType:"CLOSE"},d6=new g.gl(320,63);g.z(VCC,a4);g.A=VCC.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.Z=J;this.N=g.JL(this.Z.onClickCommands||[]);this.dD=this.Z.onErrorCommand||null;if(F=this.Z.contentSupportedRenderer)F=this.Z.contentSupportedRenderer,J=this.Z.adInfoRenderer||null,g.O(F,izR)?(this.W=g.c1("ytp-ad-overlay-ad-info-button-container",this.T.element),BWz(this,J),F=r4C(this,g.O(F,izR))):g.O(F,ztW)?(this.W=g.c1("ytp-ad-overlay-ad-info-button-container",this.U.element),BWz(this,J),F=S2_(this,g.O(F,ztW))):g.O(F,N5b)?(this.W= g.c1("ytp-ad-overlay-ad-info-button-container",this.C.element),BWz(this,J),F=s$C(this,g.O(F,N5b))):(g.Td(Error("InvideoOverlayAdRenderer content could not be initialized.")),F=!1);F&&(this.show(),Y2o(this,!0))}; g.A.clear=function(){Y2o(this,!1);this.qf.reset();this.eE=0;this.T.hide();this.logVisibility(this.T.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.hide();this.dispose()}; g.A.w1G=function(){this.oI&&(this.layoutId?this.vN.executeCommand(this.oI,this.layoutId):g.Td(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.A.JZ=function(){a:{if(this.Z&&this.Z.closeButton&&this.Z.closeButton.buttonRenderer){var F=this.Z.closeButton.buttonRenderer;if(F.serviceEndpoint){F=[F.serviceEndpoint];break a}}F=[]}F=g.N(F);for(var J=F.next();!J.done;J=F.next())J=J.value,this.layoutId?this.vN.executeCommand(J,this.layoutId):g.Td(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.A.FOW=function(){this.KW||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.A.x3=function(){this.KW||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.x3("invideo-overlay")}; g.A.BwI=function(F){F.target===this.W&&g.c1("ytp-ad-button",this.nW.element).click()};g.z($o3,xS);g.A=$o3.prototype;g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);F=J.durationMs;this.T=F==null||F===0?0:F+this.C.getProgressState().current*1E3;if(J.text)var I=J.text.templatedAdText;else J.staticMessage&&(I=J.staticMessage);this.messageText.init(bA("ad-text"),I,b);this.messageText.Az(this.U.element);this.Z.show(100);this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){Cn4(this,!1);xS.prototype.hide.call(this);this.U.hide();this.messageText.hide();tr(this)}; g.A.show=function(){Cn4(this,!0);xS.prototype.show.call(this);nr(this);this.U.show();this.messageText.show()}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C!=null){var F=this.C.getProgressState();F!=null&&F.current!=null&&(F=1E3*F.current,!this.eE&&F>=this.T?(this.Z.hide(),this.eE=!0):this.messageText&&this.messageText.isTemplated()&&(F=Math.max(0,Math.ceil((this.T-F)/1E3)),F!==this.W&&(Uj(this.messageText,{TIME_REMAINING:String(F)}),this.W=F)))}};g.z(Xwz,a4);g.A=Xwz.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,{});J.image&&J.image.thumbnail?J.headline?J.description?J.actionButton&&g.O(J.actionButton,g.TX)?(this.T.init(bA("ad-image"),J.image,b),this.U.init(bA("ad-text"),J.headline,b),this.Z.init(bA("ad-text"),J.description,b),F=["ytp-ad-underlay-action-button"],this.api.J().S("use_blue_buttons_for_desktop_player_underlay")&&F.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN, F),J.backgroundColor&&g.aN(this.element,"background-color",g.$y(J.backgroundColor)),g.k(this,this.actionButton),this.actionButton.Az(this.W),this.actionButton.init(bA("button"),g.O(J.actionButton,g.TX),b),J=g.eB(this.api.J().experiments,"player_underlay_video_width_fraction"),this.api.J().S("place_shrunken_video_on_left_of_player")?(b=this.C,g.Mr(b,"ytp-ad-underlay-left-container"),g.uG(b,"ytp-ad-underlay-right-container"),g.aN(this.C,"margin-left",Math.round((J+.02)*100)+"%")):(b=this.C,g.Mr(b,"ytp-ad-underlay-right-container"), g.uG(b,"ytp-ad-underlay-left-container")),g.aN(this.C,"width",Math.round((1-J-.04)*100)+"%"),this.api.cz()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.T4.bind(this)),this.api.addEventListener("resize",this.Un.bind(this))):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.A.show=function(){Q$C(!0);this.actionButton&&this.actionButton.show();a4.prototype.show.call(this)}; g.A.hide=function(){Q$C(!1);this.actionButton&&this.actionButton.hide();a4.prototype.hide.call(this)}; g.A.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.T4.bind(this));this.api.removeEventListener("resize",this.Un.bind(this));this.hide()}; g.A.onClick=function(F){a4.prototype.onClick.call(this,F);this.actionButton&&g.uB(this.actionButton.element,F.target)&&this.api.pauseVideo()}; g.A.T4=function(F){F==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):F==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):F==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))}; g.A.Un=function(F){F.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):F.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.aN(this.U.element,"font-size",F.width/40+"px")};g.z(Eg,a4); Eg.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);J.toggledLoggingParams&&(this.toggledLoggingParams=J.toggledLoggingParams);J.answer&&g.O(J.answer,g.TX)?(F=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),F.Az(this.answer),F.init(bA("ytp-ad-survey-answer-button"),g.O(J.answer,g.TX),b),F.show()):J.answer&&g.O(J.answer,lj)&&(this.C=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.vN, ["ytp-ad-survey-answer-toggle-button"]),this.C.Az(this.answer),g.k(this,this.C),this.C.init(bA("survey-answer-button"),g.O(J.answer,lj),b));this.show()}; Eg.prototype.jj=function(F){this.layoutId?oi(this.vN,F,this.layoutId,this.macros):g.Td(new g.hC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Eg.prototype.onClick=function(F){a4.prototype.onClick.call(this,F);if(this.api.J().S("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Eg.prototype.clear=function(){this.hide()};g.z(Rjz,a4);Rjz.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);J.answer&&g.O(J.answer,lj)&&(this.button=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Az(this.C),this.button.init(bA("survey-none-of-the-above-button"),g.O(J.answer,lj),b));this.show()};g.z(jU,Pi);jU.prototype.init=function(F,J,b){Pi.prototype.init.call(this,F,J,b);F=!1;J.text&&(J=g.Kr(J.text),F=!g.d5(J));F||g.rQ(Error("No submit text was present in the renderer."))}; jU.prototype.onClick=function(F){this.publish("l");Pi.prototype.onClick.call(this,F)};g.z(G7,a4); G7.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);if(F=J.skipOrPreviewRenderer)g.O(F,IS)?(F=g.O(F,IS),b=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.Z,!0),b.Az(this.skipOrPreview),b.init(bA("skip-button"),F,this.macros),g.k(this,b),this.C=b):g.O(F,BF)&&(F=g.O(F,BF),b=new Lr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.Z,!1),b.Az(this.skipOrPreview),b.init(bA("ad-preview"),F,this.macros),FY(b),g.k(this,b),this.C=b);this.C== null&&g.Td(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(J)));J.submitButton&&(F=J.submitButton,g.O(F,g.TX)&&(F=g.O(F,g.TX),b=new jU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),b.Az(this.submitButton),b.init(bA("survey-submit"),F,this.macros),g.k(this,b),this.U=b));F=this.api.S("disable_ad_preview_for_instream_ads");if(b=J.adBadgeRenderer){b=g.O(b,lHb);var I=new ym(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0, F,!0);I.Az(this.T);I.init(bA("simple-ad-badge"),b,this.macros);this.adBadge=I.element;g.k(this,I)}if(b=J.adDurationRemaining)b=g.O(b,gLk),I=new WL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.Z,void 0,F),I.Az(this.T),I.init(bA("ad-duration-remaining"),b,this.macros),g.k(this,I);(J=J.adInfoRenderer)&&g.O(J,PF)&&(b=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,F),g.k(this,b),F&&this.adBadge!==void 0?this.T.insertBefore(b.element, this.adBadge.nextSibling):b.Az(this.T),b.init(bA("ad-info-hover-text-button"),g.O(J,PF),this.macros));this.show()}; G7.prototype.clear=function(){this.hide()};g.z(Va,a4);Va.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);hj3(this)}; Va.prototype.show=function(){this.T=Date.now();a4.prototype.show.call(this)}; Va.prototype.H3=function(){};g.z(c4z,Va);g.A=c4z.prototype;g.A.init=function(F,J,b){var I=this;Va.prototype.init.call(this,F,J,b);J.questionText&&DoC(this,J.questionText);J.answers&&J.answers.forEach(function(u,w){g.O(u,zr)&&kWa(I,g.O(u,zr),b,w)}); this.W=new Set(this.U.map(function(u){return u.C.C})); (F=J.noneOfTheAbove)&&(F=g.O(F,yee))&&Uo4(this,F,b);J.surveyAdQuestionCommon&&oHa(this,J.surveyAdQuestionCommon);J.submitEndpoints&&(this.submitEndpoints=J.submitEndpoints);this.B(this.element,"change",this.onChange);this.show()}; g.A.H3=function(){xoo(this,!1);this.Z.U.subscribe("l",this.reG,this)}; g.A.onChange=function(F){F.target===this.noneOfTheAbove.button.C?nHk(this):this.W.has(F.target)&&(this.noneOfTheAbove.button.toggleButton(!1),xoo(this,!0))}; g.A.reG=function(){var F=[],J=this.U.reduce(function(u,w,M){var q=w.toggledLoggingParams;w.C&&w.C.isToggled()&&q&&(u.push(q),F.push(M));return u},[]).join("&"),b=this.submitEndpoints.map(function(u){if(!u.loggingUrls)return u; u=g.rl(u);u.loggingUrls=u.loggingUrls.map(function(w){w.baseUrl&&(w.baseUrl=oc(w.baseUrl,J));return w}); return u}); if(b){b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,this.layoutId?oi(this.vN,I,this.layoutId,this.macros):g.Td(Error("Missing layoutId for multi_select_question."))}this.api.J().S("supports_multi_step_on_desktop")&&this.eE(F)}; g.A.clear=function(){this.api.J().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(Pn,Va);Pn.prototype.init=function(F,J,b){var I=this;Va.prototype.init.call(this,F,J,b);J.questionText&&DoC(this,J.questionText);J.answers&&J.answers.forEach(function(u,w){g.O(u,zr)&&kWa(I,g.O(u,zr),b,w)}); J.surveyAdQuestionCommon?oHa(this,J.surveyAdQuestionCommon):g.Td(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(J)));this.show()}; Pn.prototype.clear=function(){this.api.J().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(Bn,a4);Bn.prototype.init=function(F,J,b){var I=this;a4.prototype.init.call(this,F,J,b);if(this.api.J().S("supports_multi_step_on_desktop")){var u;this.conditioningRules=(u=J.conditioningRules)!=null?u:[];var w;this.U=(w=J.questions)!=null?w:[];var M;((M=J.questions)==null?0:M.length)&&Lmv(this,0)}else(J.questions||[]).forEach(function(q){g.O(q,GX)?Zyo(I,g.O(q,GX),b):g.O(q,j5)&&Hyz(I,g.O(q,j5),b)}); this.show()}; Bn.prototype.clear=function(){this.api.J().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Bn.prototype.Z=function(F){var J=this;if(this.api.J().S("supports_multi_step_on_desktop")){var b;if((b=this.conditioningRules)==null?0:b.length){var I;if(F.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(u){return u.questionIndex===J.C})==null)g.Td(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(u){if(u.questionIndex===J.C)switch(u.condition){case "CONDITION_ALL_OF":var w;if((w=u.answerIndices)==null?0:w.every(function(q){return F.includes(q)}))I=u.nextQuestionIndex; break;case "CONDITION_ANY_OF":var M;if((M=u.answerIndices)==null?0:M.some(function(q){return F.includes(q)}))I=u.nextQuestionIndex; break;default:g.Td(Error("Expected specified condition in survey conditioning rules."))}}),I!=null)Lmv(this,I); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Td(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.z(T7,a4); T7.prototype.init=function(F,J,b){var I=this;a4.prototype.init.call(this,F,J,b);F=J.timeoutSeconds||0;if(typeof F!=="number"||F<0)g.Td(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+F));else if(J.timeoutCommands)if(J.text)if(J.ctaButton&&g.O(J.ctaButton,g.TX))if(J.brandImage)if(J.backgroundImage&&g.O(J.backgroundImage,rc)&&g.O(J.backgroundImage,rc).landscape){this.layoutId||g.Td(Error("Missing layoutId for survey interstitial."));F3_(this.interstitial,g.O(J.backgroundImage, rc).landscape);F3_(this.logoImage,J.brandImage);g.wK(this.text,g.Kr(J.text));var u=["ytp-ad-survey-interstitial-action-button"];u.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,u);g.k(this,this.actionButton);this.actionButton.Az(this.U);this.actionButton.init(bA("button"),g.O(J.ctaButton,g.TX),b);this.actionButton.show();this.C=new zg(this.api,F*1E3);this.C.subscribe("g",function(){I.transition.hide()}); g.k(this,this.C);this.B(this.element,"click",function(w){var M=w.target===I.interstitial;w=I.actionButton.element.contains(w.target);if(M||w)if(I.transition.hide(),M)I.api.onAdUxClicked(I.componentType,I.layoutId)}); this.transition.show(100)}else g.Td(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Td(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Td(Error("SurveyTextInterstitialRenderer has no button."));else g.Td(Error("SurveyTextInterstitialRenderer has no text."));else g.Td(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; T7.prototype.clear=function(){this.hide()}; T7.prototype.show=function(){Jmk(!0);a4.prototype.show.call(this)}; T7.prototype.hide=function(){Jmk(!1);a4.prototype.hide.call(this)};g.z(r6,xS);g.A=r6.prototype; g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});if(J.durationMilliseconds){if(J.durationMilliseconds<0){g.Td(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+J.durationMilliseconds));return}this.U=J.durationMilliseconds}else this.U=this.C.YO();var b;if((b=J.previewText)==null||!b.text||g.d5(J.previewText.text))g.Td(Error("No text is returned for AdPreview."));else{this.W=J.previewText;J.previewText.isTemplated||g.wK(this.T,J.previewText.text);var I; if(((I=this.api.getVideoData(1))==null?0:I.Px)&&J.previewImage){var u,w;(F=((w=EH(((u=J.previewImage)==null?void 0:u.sources)||[],52,!1))==null?void 0:w.url)||"")&&F.length?(this.previewImage=new g.vi({X:"img",K:"ytp-preview-ad__image",L:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",F),g.k(this,this.previewImage),this.previewImage.Az(this.element)):g.Td(Error("Failed to get imageUrl in AdPreview."))}else this.T.classList.add("ytp-preview-ad__text--padding--wide")}}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();if(F!=null&&F.current)if(F=1E3*F.current,F>=this.U)this.transition.hide();else{var J;if((J=this.W)==null?0:J.isTemplated)if(J=Math.max(0,Math.ceil((this.U-F)/1E3)),J!==this.Z){var b,I;(F=(b=this.W)==null?void 0:(I=b.text)==null?void 0:I.replace("{TIME_REMAINING}",String(J)))&&g.wK(this.T,F);this.Z=J}}}};g.z(SU,a4); SU.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});var b,I;if((F=((I=EH(((b=J.image)==null?void 0:b.sources)||[],bPo(J),!0))==null?void 0:I.url)||"")&&F.length){b=this.RI("ytp-ad-avatar");b.src=F;var u,w;if(I=(u=J.interaction)==null?void 0:(w=u.accessibility)==null?void 0:w.label)b.alt=I;switch(J.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(J.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.Td(Error("Failed to get imageUrl in AdAvatar."))}; SU.prototype.clear=function(){this.hide()}; SU.prototype.onClick=function(F){a4.prototype.onClick.call(this,F)};g.z(sg,a4); sg.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});var b;F=(b=J.label)==null?void 0:b.content;if((b=F!=null&&!g.d5(F))||J.iconImage){b&&(this.buttonText=new g.vi({X:"span",K:"ytp-ad-button-vm__text",sQ:F}),g.k(this,this.buttonText),this.buttonText.Az(this.element));var I,u,w=((I=J.interaction)==null?0:(u=I.accessibility)==null?0:u.label)||b?F:"";w&&hy(this.element,w+" This link opens in new tab");OY(this.element);if(J.iconImage){I=void 0;if(J.iconImage){a:{u=J.iconImage;if(u.sources)for(u= g.N(u.sources),F=u.next();!F.done;F=u.next())if(F=F.value,w=void 0,(w=F.clientResource)==null?0:w.imageName){u=F;break a}u=void 0}if(u){var M;I={iconType:(M=u.clientResource)==null?void 0:M.imageName}}}M=Vr(I,!1,this.U);M!=null&&(this.buttonIcon=new g.vi({X:"span",K:"ytp-ad-button-vm__icon",j:[M]}),g.k(this,this.buttonIcon),J.iconLeading?(bB(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):b?(this.buttonIcon.Az(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Az(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(J.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.C?"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(J.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.rQ(Error("AdButton does not have label or an icon."))}; sg.prototype.clear=function(){this.hide()}; sg.prototype.onClick=function(F){a4.prototype.onClick.call(this,F)};g.z(I9C,xS);g.A=I9C.prototype; g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});this.api.J().S("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.RI("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"),bB(this.RI("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(F=g.O(J.avatar,Og)){var b=J.headline;if(b){var I=J.description;if(I){var u=g.O(J.button,h7);u?(this.adAvatar.init(bA("ad-avatar"),F),this.headline.init(bA("ad-simple-attributed-string"),new EV(b)),this.description.init(bA("ad-simple-attributed-string"),new EV(I)),b.content&&b.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(bA("ad-button"),u),this.startMilliseconds=J.startMs||0,this.api.cz()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.e4.bind(this)),nr(this)):g.Td(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Td(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Td(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Td(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F&&F.current&&1E3*F.current>=this.startMilliseconds&&(tr(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.A.Cj=function(){this.clear()}; g.A.onClick=function(F){this.api.pauseVideo();xS.prototype.onClick.call(this,F)}; g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.e4.bind(this))}; g.A.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();xS.prototype.show.call(this)}; g.A.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();xS.prototype.hide.call(this)}; g.A.e4=function(F){F==="hidden"?this.show():this.hide()};g.z(Yv,a4);g.A=Yv.prototype; g.A.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(!J.label||g.d5(J.label))g.Td(Error("No label is returned for SkipAdButton."));else if(g.wK(this.Z,J.label),F=Vr({iconType:"SKIP_NEXT_NEW"}),F==null)g.Td(Error("Unable to retrieve icon for SkipAdButton"));else if(this.T=new g.vi({X:"span",K:"ytp-skip-ad-button__icon",j:[F]}),g.k(this,this.T),this.T.Az(this.element),this.api.J().experiments.pW("enable_skip_to_next_messaging")&&(J=g.Zi(J.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",J), this.element.setAttribute("data-tooltip-target-fixed","")}; g.A.onClick=function(F){F&&F.preventDefault();var J,b;HD7(F,{contentCpn:(b=(J=this.api.getVideoData(1))==null?void 0:J.clientPlaybackNonce)!=null?b:""})===0?this.api.jE("onAbnormalityDetected"):(a4.prototype.onClick.call(this,F),this.api.jE("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.A.clear=function(){this.C.reset();this.hide()}; g.A.hide=function(){a4.prototype.hide.call(this)}; g.A.show=function(){this.C.start();a4.prototype.show.call(this);this.U&&this.api.J().experiments.pW("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(uDk,xS);g.A=uDk.prototype; g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});F=g.O(J.preskipState,B5R);if(this.Z||!this.api.J().experiments.pW("disable_ad_preview_for_instream_ads")){if(!F){g.Td(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var b;(b=this.U)==null||b.init(bA("preview-ad"),F);(b=this.U)!=null&&(b.transition.show(100),b.show())}(b=g.O(J.skippableState,reR))?(J.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=J.skipOffsetMilliseconds:(g.rQ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.T.init(bA("skip-button"),b),this.show()):g.Td(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.T&&this.T.hide();tr(this);xS.prototype.hide.call(this)}; g.A.clear=function(){var F;(F=this.U)==null||F.clear();this.T&&this.T.clear();tr(this);xS.prototype.hide.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(1E3*this.C.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var F;(F=this.U)!=null&&F.transition.hide();(F=this.T)!=null&&(F.transition.show(),F.show())}};g.z($v,a4); $v.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J.label){var b;((b=J.label)==null?0:b.content)&&!g.d5(J.label.content)&&(this.linkText=new g.vi({X:"span",K:"ytp-visit-advertiser-link__text",sQ:J.label.content}),g.k(this,this.linkText),this.linkText.Az(this.element));var I,u;if((I=J.interaction)==null?0:(u=I.accessibility)==null?0:u.label)hy(this.element,J.interaction.accessibility.label+" This link opens in new tab");else{var w;((w=J.label)==null?0:w.content)&&!g.d5(J.label.content)&&hy(this.element, J.label.content+" This link opens in new tab")}OY(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Td(Error("No label found in VisitAdvertiserLink."))}; $v.prototype.onClick=function(F){a4.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType,this.layoutId)}; $v.prototype.clear=function(){this.hide()};g.z(CR,a4); CR.prototype.init=function(F,J,b,I){a4.prototype.init.call(this,F,J,{});if(J.skipOrPreview){b=J.skipOrPreview;F=g.O(b,S1t);b=g.O(b,B5R);var u,w=this.api.J().S("clean_player_style_fix_on_web")&&((u=this.api.getVideoData())==null?void 0:u.isDaiEnabled());F?(this.rO=new uDk(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U),g.k(this,this.rO),this.rO.Az(this.N),this.rO.init(bA("skip-ad"),F)):!b||this.api.J().experiments.pW("disable_ad_preview_for_instream_ads")&&!w||(this.Z=new r6(this.api, this.layoutId,this.interactionLoggingClientData,this.vN,this.U,1),g.k(this,this.Z),this.Z.Az(this.N),this.Z.init(bA("ad-preview"),b),u=this.Z,u.transition.show(100),u.show());if(u=g.O(J.skipOrPreview,S1t))var M=u.skipOffsetMilliseconds}J.playerAdCard&&(u=g.O(J.playerAdCard,T5U))&&(this.playerAdCard=new I9C(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U),g.k(this,this.playerAdCard),this.playerAdCard.Az(this.WN),this.playerAdCard.init(bA("ad-avatar-lockup-card"),u));u=this.api.J().S("disable_ad_duration_remaining_for_instream_video_ads")|| J.adPodIndex!==void 0;J.adBadgeRenderer&&((F=g.O(J.adBadgeRenderer,oL))?(this.T=new Gg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,u),g.k(this,this.T),this.T.Az(this.C),this.T.init(bA("ad-badge"),F)):g.Td(Error("AdBadgeViewModel is not found in player overlay layout.")));J.adPodIndex&&(F=g.O(J.adPodIndex,jbL))&&(this.adPodIndex=new Vm(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,g.O(J.skipOrPreview,S1t)===void 0),g.k(this,this.adPodIndex),this.adPodIndex.Az(this.C), this.adPodIndex.init(bA("ad-pod-index"),F));J.adInfoRenderer&&(F=g.O(J.adInfoRenderer,PF))&&(this.adInfoButton=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,u),g.k(this,this.adInfoButton),this.api.J().S("enable_ad_pod_index_autohide")&&this.T!==void 0?this.C.insertBefore(this.adInfoButton.element,this.T.element.nextSibling):this.adInfoButton.Az(this.C),this.adInfoButton.init(bA("ad-info-hover-text-button"),F,this.macros));var q;F=this.api.J().S("clean_player_style_fix_on_web")&& ((q=this.api.getVideoData())==null?void 0:q.isDaiEnabled());J.adDurationRemaining&&(!u||F)&&(q=g.O(J.adDurationRemaining,gLk))&&(this.adDurationRemaining=new WL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,I.videoAdDurationSeconds,u),g.k(this,this.adDurationRemaining),u&&this.adPodIndex!==void 0?this.C.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?u?this.C.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.C.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Az(this.C),this.adDurationRemaining.init(bA("ad-duration-remaining"),q,this.macros),u&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));J.visitAdvertiserLink&&(I=g.O(J.visitAdvertiserLink,Y1m))&&(this.visitAdvertiserLink=new $v(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Az(this.C), this.visitAdvertiserLink.init(bA("visit-advertiser-link"),I));J.adDisclosureBanner&&(J=g.O(J.adDisclosureBanner,ELb))&&(this.adDisclosureBanner=new PL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.adDisclosureBanner),this.adDisclosureBanner.Az(this.eE),this.adDisclosureBanner.init(bA("ad-disclosure-banner"),J));this.api.J().S("show_preskip_progress_bar_for_skippable_ads")&&(this.W=new rJ(this.api,this.U,M,u),g.k(this,this.W),g.Pp(this.api,this.W.element,4));this.show()}; CR.prototype.clear=function(){this.hide()};g.z(wJk,a4);g.A=wJk.prototype; g.A.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J!=null&&J.title)if(F=J.title)if(this.headline.init(bA("ad-simple-attributed-string"),new EV(F)),F=g.O(J.moreInfoButton,h7)){if(this.moreInfoButton.init(bA("ad-button"),F),J.descriptions)J.descriptions.length>0&&(F=J.descriptions[0])&&(this.C=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.C),this.C.Az(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.C.init(bA("ad-simple-attributed-string"), new EV(F))),J.descriptions.length>1&&(J=J.descriptions[1])&&(this.U=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.U),this.U.Az(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(bA("ad-simple-attributed-string"),new EV(J)))}else g.Td(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Td(Error("No headline found in AdGridCardText."));else g.Td(Error("No headline found in AdGridCardText."))}; g.A.onClick=function(F){a4.prototype.onClick.call(this,F);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.A.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var F;(F=this.C)==null||F.clear();var J;(J=this.U)==null||J.clear()}; g.A.hide=function(){this.headline.hide();this.moreInfoButton.hide();var F;(F=this.C)==null||F.hide();var J;(J=this.U)==null||J.hide();a4.prototype.hide.call(this)}; g.A.show=function(){a4.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var F;(F=this.C)==null||F.show();var J;(J=this.U)==null||J.show()};g.z(Xm,a4);Xm.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J!=null&&J.gridCards)if(J.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Td(Error("Only single column style is currently supported in AdGridCardCollection."));else for(F=g.N(J.gridCards),J=F.next();!J.done;J=F.next()){if(J=g.O(J.value,PWH)){var b=new wJk(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,b);b.Az(this.element);b.init(bA("ad-grid-card-text"),J);this.C.push(b)}}else g.Td(Error("No grid cards found in AdGridCardCollection."))}; Xm.prototype.show=function(){for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J.value.show();a4.prototype.show.call(this)}; Xm.prototype.clear=function(){this.hide();for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J.value.clear()}; Xm.prototype.hide=function(){for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J.value.hide();a4.prototype.hide.call(this)};g.z(Qa,xS);g.A=Qa.prototype;g.A.init=function(F,J,b,I,u){u=u===void 0?0:u;xS.prototype.init.call(this,F,J,b,I);this.playerProgressOffsetMs=u;nr(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.uQ.bind(this));this.api.addEventListener("resize",this.Zo.bind(this));this.api.cz()?(this.U=!0,this.api.PQ(!0),this.show()):this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F&&F.current&&!this.U&&1E3*F.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.PQ(!0),this.show())}}; g.A.Cj=function(){this.U&&this.api.PQ(!1);this.hide()}; g.A.clear=function(){this.api.PQ(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.uQ.bind(this));this.api.removeEventListener("resize",this.Zo.bind(this));tr(this);this.hide()}; g.A.hide=function(){MTk(!1);xS.prototype.hide.call(this)}; g.A.show=function(){MTk(!0);xS.prototype.show.call(this)};g.z(Am3,Qa);g.A=Am3.prototype; g.A.init=function(F,J,b,I){if(J!=null&&J.adGridCardCollection)if(J!=null&&J.adButton){var u=Number(J.playerProgressOffsetMs||"0");isNaN(u)?Qa.prototype.init.call(this,F,J,b,I):Qa.prototype.init.call(this,F,J,b,I,u);F=J.headline;b=g.O(J.adAvatar,Og);F&&b?(this.headline=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.headline),this.headline.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(bA("ad-simple-attributed-string"),new EV(F)), this.adAvatar=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.adAvatar),this.adAvatar.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(bA("ad-avatar"),b)):this.Z.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");F=g.O(J.adGridCardCollection,Vmz);this.adGridCardCollection.init(bA("ad-grid-card-collection"),F);J=g.O(J.adButton,h7);this.adButton.init(bA("ad-button"),J); this.hide()}else g.Td(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Td(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.A.onClick=function(F){(this.adButton&&g.uB(this.adButton.element,F.target)||this.adAvatar&&g.uB(this.adAvatar.element,F.target))&&this.api.pauseVideo();Qa.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.A.Zo=function(){}; g.A.clear=function(){this.hide();var F;(F=this.headline)==null||F.clear();var J;(J=this.adAvatar)==null||J.clear();this.adGridCardCollection.clear();this.adButton.clear();Qa.prototype.clear.call(this)}; g.A.show=function(){var F;(F=this.headline)==null||F.show();var J;(J=this.adAvatar)==null||J.show();this.adGridCardCollection.show();this.adButton.show();Qa.prototype.show.call(this)}; g.A.hide=function(){var F;(F=this.headline)==null||F.hide();var J;(J=this.adAvatar)==null||J.hide();this.adGridCardCollection.hide();this.adButton.hide();Qa.prototype.hide.call(this)}; g.A.uQ=function(F){F==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):F==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):F==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))};g.z(RL,a4); RL.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J.attributes===void 0)g.Td(Error("No attributes found in AdDetailsLineViewModel."));else if(J.style===void 0)g.Td(Error("No style found in AdDetailsLineViewModel."));else{F=g.N(J.attributes);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.text!==void 0){b=b.text;var I=J.style,u=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,u);u.Az(this.element);a:switch(I){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":I="ytp-ad-details-line__text--style-responsive"; break a;default:I="ytp-ad-details-line__text--style-standard"}u.element.classList.add(I);u.init(bA("ad-simple-attributed-string"),new EV(b));this.C.push(u)}this.show()}}; RL.prototype.show=function(){this.C.forEach(function(F){F.show()}); a4.prototype.show.call(this)}; RL.prototype.clear=function(){this.hide()}; RL.prototype.hide=function(){this.C.forEach(function(F){F.hide()}); a4.prototype.hide.call(this)};g.z(DP,a4);DP.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});var b,I;(F=((I=EH(((b=J.image)==null?void 0:b.sources)||[]))==null?void 0:I.url)||"")&&F.length?(b=this.RI("ytp-image-background-image"),g.aN(b,"backgroundImage","url("+F+")"),J.blurLevel!==void 0&&g.aN(b,"filter","blur("+J.blurLevel+"px)"),J.gradient!==void 0&&(J=new g.U({X:"div",Dv:["ytp-image-background--gradient-vertical"]}),g.k(this,J),J.Az(this.element)),this.show()):g.Td(Error("Failed to get imageUrl in ImageBackground."))}; DP.prototype.clear=function(){this.hide()};g.z(qBJ,xS);g.A=qBJ.prototype;g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});g.aN(this.T,"stroke-dasharray","0 "+this.U);this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F!=null&&F.current!=null&&g.aN(this.T,"stroke-dasharray",F.current/F.seekableEnd*this.U+" "+this.U)}};g.z(kv,a4); kv.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(a9Y(J)){this.adAvatar=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adAvatar);this.adAvatar.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(bA("ad-avatar"),g.O(J.adAvatar,Og));this.headline=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.headline);this.headline.Az(this.RI("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(bA("ad-simple-attributed-string"),new EV(J.headline));if(F=g.O(J.adDetailsLine,d8e))this.detailsLine=new RL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.detailsLine),this.detailsLine.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(bA("ad-details-line"),F);this.adButton=new sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0);g.k(this,this.adButton); this.adButton.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(bA("ad-button"),g.O(J.adButton,h7));F=this.api.S("disable_ad_preview_for_instream_ads");this.adBadge=new Gg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,F);g.k(this,this.adBadge);this.adBadge.Az(this.Z);this.adBadge.init(bA("ad-badge"),g.O(J.adBadge,oL));this.adInfoButton=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element, void 0,F);g.k(this,this.adInfoButton);this.adInfoButton.Az(this.Z);this.adInfoButton.init(bA("ad-info-hover-text-button"),g.O(J.adInfoRenderer,PF),this.macros);if(F=g.O(J.skipAdButton,reR))this.skipAdButton=new Yv(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.skipAdButton),this.skipAdButton.Az(this.element),this.skipAdButton.init(bA("skip-button"),F);this.U=new N_(J.durationMilliseconds);g.k(this,this.U);if(F=g.O(J.countdownViewModel,sb5))this.C=new qBJ(this.api, this.layoutId,this.interactionLoggingClientData,this.vN,this.U),g.k(this,this.C),this.C.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.C.init(bA("timed-pie-countdown"),F);if(J=g.O(J.imageBackground,GV8))this.imageBackground=new DP(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.imageBackground),this.imageBackground.Az(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(bA("image-background"),J);this.show();this.element.focus()}}; kv.prototype.clear=function(){g.Ve(this.T);this.hide()}; kv.prototype.show=function(){v1o(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();a4.prototype.show.call(this)}; kv.prototype.hide=function(){v1o(!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.C&&this.C.hide();this.imageBackground&&this.imageBackground.hide();a4.prototype.hide.call(this)};var qqk="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.z(cn,R4); cn.prototype.Z=function(F){var J=F.id,b=F.content,I=b.componentType;if(!qqk.includes(I))switch(F.actionType){case 1:F=this.api;var u=this.vN,w=b.layoutId,M=b.interactionLoggingClientData,q=b instanceof Uh?b.HA:!1,v=b instanceof Uh||b instanceof iD?b.qm:!1;M=M===void 0?{}:M;q=q===void 0?!1:q;v=v===void 0?!1:v;switch(I){case "invideo-overlay":F=new VCC(F,w,M,u);break;case "player-overlay":F=new S1(F,w,M,u,new b_(F),v);break;case "player-overlay-layout":F=new CR(F,w,M,u,new b_(F));break;case "survey":F= new Bn(F,w,M,u);break;case "ad-action-interstitial":F=new Wmo(F,w,M,u,q,v);break;case "video-interstitial-buttoned-centered":F=new kv(F,w,M,u);break;case "survey-interstitial":F=new T7(F,w,M,u);break;case "ad-message":F=new $o3(F,w,M,u,new b_(F,1));break;case "player-underlay":F=new Xwz(F,w,M,u);break;case "display-underlay-text-grid-cards":F=new Am3(F,w,M,u,new b_(F));break;default:F=null}if(!F){g.rQ(Error("No UI component returned from ComponentFactory for type: "+I));break}g.Ea(this.U,J)?g.rQ(Error("Ad UI component already registered: "+ J)):this.U[J]=F;F.bind(b);b instanceof hs?this.T?this.T.append(F.bP):g.rQ(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(F.bP);break;case 2:J=e_m(this,F);if(J==null)break;J.bind(b);break;case 3:b=e_m(this,F),b!=null&&(g.q8(b),g.Ea(this.U,J)?(b=this.U,J in b&&delete b[J]):g.rQ(Error("Ad UI component does not exist: "+J)))}}; cn.prototype.X_=function(){g.vk(Object.values(this.U));this.U={};R4.prototype.X_.call(this)};g.z(K3z,g.GN);g.A=K3z.prototype;g.A.create=function(){try{pJ_(this),this.load(),this.created=!0,pJ_(this)}catch(F){q_(F instanceof Error?F:String(F))}}; g.A.load=function(){try{ym4(this)}finally{Zu(fR(this.C).SB)&&this.player.d6("ad",1)}}; g.A.destroy=function(){var F=this.player.getVideoData(1);this.C.C.wM.mW(F&&F.clientPlaybackNonce||"");this.unload();this.created=!1}; g.A.unload=function(){g.GN.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(J){q_(J instanceof Error?J:String(J))}if(this.U!=null){var F=this.U;this.U=null;F.dispose()}this.T.reset()}; g.A.u7=function(){return!1}; g.A.getAdState=function(){return-1}; g.A.getOptions=function(){return Object.values(Axm)}; g.A.qJ=function(F,J){J=J===void 0?{}:J;switch(F){case "replaceUrlMacros":return F=J,F.url?(J=svC(this.player),Object.assign(J,F.sVN),F=g.TM(F.url,J)):F=null,F;case "onAboutThisAdPopupClosed":this.bS(J);break;case "executeCommand":F=J;F.command&&F.layoutId&&this.executeCommand(F);break;default:return null}}; g.A.F0=function(F){var J;return!((J=this.C.C.cV)==null||!J.get().F0(F))}; g.A.bS=function(F){F.isMuted&&vWa(fR(this.C).pD,fR(this.C).Rk,F.layoutId);this.fP&&this.fP.bS()}; g.A.executeCommand=function(F){fR(this.C).vN.executeCommand(F.command,F.layoutId)};g.RG("yt.player.Application.create",g.Np.create);g.RG("yt.player.Application.createAlternate",g.Np.create);Qg4(Gd(),MDU);var v4W=g.kC("ytcsi.tick");v4W&&v4W("pe");g.jn("ad",K3z);g.z(g.nR,g.R);g.nR.prototype.start=function(F,J,b){this.config={from:F,qP:J,duration:b,startTime:(0,g.jR)()};this.next()}; g.nR.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.nR.prototype.next=function(){if(this.config){var F=this.config,J=F.from,b=F.qP,I=F.duration;F=F.startTime;var u=(0,g.jR)()-F;F=this.C;I=UB_(F,u/I);if(I==0)F=F.V;else if(I==1)F=F.Y;else{u=v1(F.V,F.D,I);var w=v1(F.D,F.W,I);F=v1(F.W,F.Y,I);u=v1(u,w,I);w=v1(w,F,I);F=v1(u,w,I)}F=g.AD(F,0,1);this.callback(J+(b-J)*F);F<1&&this.delay.start()}};g.z(g.t7,g.U);g.A=g.t7.prototype;g.A.hasSuggestions=function(){return this.suggestionData.length>0}; g.A.iG=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.A.show=function(){g.U.prototype.show.call(this);W3a(this)}; g.A.fC=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.A.Up=function(){this.mO(this.api.mG().getPlayerSize())}; g.A.mO=function(F){var J=this.api.isEmbedsShortsMode()?.5625:16/9,b=this.api.Ua();F=F.width-(b?112:58);b=Math.ceil(F/(b?320:192));var I=(F-b*8)/b;J=Math.floor(I/J);for(var u=g.N(this.C),w=u.next();!w.done;w=u.next())w=w.value.RI("ytp-suggestion-image"),w.style.width=I+"px",w.style.height=J+"px";this.suggestions.element.style.height=J+"px";this.Z=I;this.Y=J;this.containerWidth=F;this.columns=b;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.ZP(this)}; g.A.onVideoDataChange=function(){var F=this.api.J(),J=this.api.getVideoData();this.W=J.T0?!1:F.Z;this.suggestionData=J.suggestions?g.qN(J.suggestions,function(b){return b&&!b.playlistId}):[]; E1z(this);J.T0?this.title.update({title:g.m8("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:J.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.A.scrollTo=function(F){F=g.AD(F,this.containerWidth-this.suggestionData.length*(this.Z+8),0);this.V.start(this.scrollPosition,F,1E3);this.scrollPosition=F;g.ZP(this);W3a(this)};})(_yt_player); ";s:5:"error";s:0:"";s:4:"info";O:13:"Curl\CurlInfo":1:{s:7:"